Correct the logic of the Manager's integration by using the status signals of the integrator to decide when to call step on Analyses, determining the end of simulation, and providing a reason for unexpected termination.
Correct the logic of the Manager's integration by using the status signals of the integrator to decide when to call step on Analyses, determining the end of simulation, and providing a reason for unexpected termination.

opensim-org/opensim-core,opensim-org/opensim-core,opensim-org/opensim-core,opensim-org/opensim-core,opensim-org/opensim-core,opensim-org/opensim-core,opensim-org/opensim-core