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

MSL-FMU initialization error #4504

Open
Helarga opened this issue Nov 14, 2024 · 0 comments
Open

MSL-FMU initialization error #4504

Helarga opened this issue Nov 14, 2024 · 0 comments

Comments

@Helarga
Copy link

Helarga commented Nov 14, 2024

We are working to couple two different domains—thermal and electrical—using FMUs, but we’ve encountered multiple initialization issues. To troubleshoot, we decided to revisit some foundational examples from the Modelica Standard Library (MSL).

I simplified one of these examples, specifically Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs, so only the upper part (DirectCapacity, InverseCapacity)which you can find here:

GenerationOfFMUs.mo

Exported two MSL components into FMUs

Modelica.Thermal.HeatTransfer.Examples.Utilities.DirectCapacity
Modelica.Thermal.HeatTransfer.Examples.Utilities.InverseCapacity

The generated FMUs are available at:

Despite this, we’re still facing similar initialization issues after running the example. The log file can be reviewed here:

Log File

Simulation Environment

  • Software: OpenModelica v1.22.2
  • Operating System: Windows 11
  • FMI: ME2

I’ve tried implementing a few solutions, such as delaying the temperature signal by adding a filter before exporting the FMU, but these attempts have not resolved the issue so far.

Any insights or recommendations would be greatly appreciated. Thank you very much for your time and assistance!

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