Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SystemSC calls fmi2EndIntegratorStep before updating inputs and simulation time to the end of the step #1326

Open
rruusu opened this issue Oct 30, 2024 · 1 comment

Comments

@rruusu
Copy link

rruusu commented Oct 30, 2024

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 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.

Version and OS

  • Version: OMSimulator v2.1.2.post5-gce342b6-mingw-notlm-debug
  • OS: Windows 11, 64-bit
@rruusu
Copy link
Author

rruusu commented Oct 30, 2024

I will post a fix to this to my fork shortly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant