Page 1 of 1

Integrator going beyond final time

Posted: Fri May 28, 2021 1:04 pm
by mlaudu
Hi,
I am running a simulation by integrating the model equations in OpenSim C++ API. I set the initial and final times; but the integrator threw an exception about being unable to proceed beyond the final time. Below is the simulation output in the command window:

Loaded model StanceModel from file LE2CP.osim
initial time = 1.35 final time = 2.2
SimTK Exception thrown at AbstractIntegratorRep.cpp:428:
Integrator step failed at time 2.2000000000000002 apparently because:
SimTK Exception thrown at AbstractIntegratorRep.cpp:547:
Error detected by Simbody method AbstractIntegrator::takeOneStep(): Unable to advance time past 2.2.
(Required condition 't1 > t0' was not met.)

Press Enter to continue.

I wonder why the integrator will have this behavior? Any advise on how to get around this problem will be appreciated.
Thanks.
Musa