Reached-end of simulation check corrected
PreIntegration returns if its length is 0.0
-id option was changed to -iDir