For the sake of completeness: as discussed offline it seems to come from this line of code 1 and it might be worth checking, if a printoptions flag could be added to lower the memory footprint and pay with a slower print operation.