You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When simulating a strictly coupled system with an FMU that sets *enterEventMode = true in a call to fmi2CompletedIntegratorStep, the simulation ends up in an endless loop of event re-evaluation.
This can be seen in debug logs as unexpected event detection when
there are no event indicators that have changed sign, or no event indicators at all, and
the time for the next event is indicated into the future on the last call to fmi2NewDiscreteStates
debug: Event detected in FMU "VSD.Root.VSD_level1" at time=0.000001
The result file logs an ever growing number of values for the time step in question.
Steps to reproduce the behavior
Steps:
Build a ME FMU that returns true for enterEventMode in a call to fmi2CompletedIntegratorStep.
Try to simulate a model containing said FMU in OMSimulator.
Result:
OMSimulator produces an unending stream of event evaluations at a single point in time.
Expected behavior
There should not be an endless loop of events.
Version and OS
Version: OMSimulator v2.1.2-mingw-notlm-debug
OS: Win11, 64-bit
The text was updated successfully, but these errors were encountered:
// restart event iteration from the beginning
i=-1;
continue;
However, callEventUpdate[i] is never modified until the call to fmi2CompletedIntegratorStep at the end of the step, after the restarted for-loop. This part is never reached and the value of callEventUpdate[i] will remain true, and the surrounding loop over the FMUs is restarted over and over again..
Description
When simulating a strictly coupled system with an FMU that sets
*enterEventMode = true
in a call tofmi2CompletedIntegratorStep
, the simulation ends up in an endless loop of event re-evaluation.This can be seen in debug logs as unexpected event detection when
fmi2NewDiscreteStates
The result file logs an ever growing number of values for the time step in question.
Steps to reproduce the behavior
Steps:
true
forenterEventMode
in a call tofmi2CompletedIntegratorStep
.Result:
Expected behavior
There should not be an endless loop of events.
Version and OS
The text was updated successfully, but these errors were encountered: