With strongly coupled model, the EM FMUs receive an fmi2EndIntegratorStep before setting final input values and simulation time.
Expected behavior
FMI components will assume that the simulation time (via fmi2SetTime) and input variables have been set to the values that match the actual integrator result when fmi2EndIntegratorStep is called.
Instead, the time is the end of the previous step, and inputs are at whatever values the solver used for its last residual evaluation, which doesn't always match the actual state achieved after the call to fmi2EndIntegratorStep.
Description
With strongly coupled model, the EM FMUs receive an
fmi2EndIntegratorStep
before setting final input values and simulation time.Expected behavior
FMI components will assume that the simulation time (via
fmi2SetTime
) and input variables have been set to the values that match the actual integrator result whenfmi2EndIntegratorStep
is called.Instead, the time is the end of the previous step, and inputs are at whatever values the solver used for its last residual evaluation, which doesn't always match the actual state achieved after the call to
fmi2EndIntegratorStep
.Version and OS