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

Incorrect error message "FMU "XX" doesn't support co-simulation mode." even thought "model exchange" is the mode that is missing. #1314

Open
GorbadPS3 opened this issue Oct 2, 2024 · 0 comments

Comments

@GorbadPS3
Copy link

GorbadPS3 commented Oct 2, 2024

Description

When I attempt to run an SSP model that looks like this:

image

It works correctly, as long as the highlighted "Modelica_Blocks..." FMU's modelDescription.xml contains both ModelExchange and CoSimulation definitions.

However, if I remove "ModelExchange" definition from the modelDescription.xml, I am seeing the following error:

Wed Oct 02 15:40:05 2024 | info: Initializing logging (OMSimulator v2.1.2.post6-g637a1c9-win-notlm)
Wed Oct 02 15:40:05 2024 | error: [NewComponent] FMU "Modelica_Blocks_Sources_Trapezoid" doesn't support co-simulation mode.

If I remove the "CoSimulation" definition from the modelDescription.xml, then I am not seeing an error.

This suggests that the error message is incorrect. Looking at the class "ComponentFMUME.cpp", it looks like the error message might be wrong there.

Steps to reproduce the behavior

Try running an FMU model in OMSimulator without ModelExchange, when OMSimulator wants to use ModelExchange.

Expected behavior

Expected error message to mention that ModelExchange is missing.

Version and OS

  • Version: v2.1.2.post6-g637a1c9-win-notlm
  • OS: Win11, 64bit
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