OpenModelica / OMSimulator

The OpenModelica FMI & SSP-based co-simulation environment.
Other
67 stars 49 forks source link

CVODE should not be reset after each time step in OMSimulator, unless events were triggered #1270

Open casella opened 8 months ago

casella commented 8 months ago

When simulating ME-FMUs with OMSimulator using CVODE, the timestepping mechanism is reset at each time step, restarting from a very small value. This only makes sense if an event was triggered, otherwise the simulation should restart with the same time step it used previously.