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

Re-Simulation fails from OMEdit with external libraries and Cpp #10725

Closed
rfranke opened this issue May 22, 2023 · 0 comments
Closed

Re-Simulation fails from OMEdit with external libraries and Cpp #10725

rfranke opened this issue May 22, 2023 · 0 comments
Assignees
Labels
bug COMP/GUI/OMEdit Issue and pull request related to OMEdit
Milestone

Comments

@rfranke
Copy link
Member

rfranke commented May 22, 2023

Description

Re-simulation works under Linux. It fails under Windows. Take ExternalMedia as example. The contained test models use ExternalMediaLib.dll.

Steps to Reproduce

  • Start OMEdit
  • Set Tools -> Options -> Simulation -> Target Language to Cpp.
  • Open ÈxternalMedia.Test.CoolProp.CO2.TestStatesSupercritical, simulate.
  • Then press re-simulate button from plotting pane.

This raises the warning:

Failed to read the neccesary PATH values from
'C:/.../OpenModelica/OMEdit/ExternalMedia.Test.CoolProp.CO2.TestStatesSupercritical/TestStatesSupercritical.bat'
If simulation fails please check that you have the bat file and it is formatted correctly 

followed by the error

Simulation stopped with error in model factory: Failed loading System library!
C:\...\OpenModelica\OMEdit\ExternalMedia.Test.CoolProp.CO2.TestStatesSupercritical\OMCppTestStatesSupercritical.dll 

Expected Behavior

Re-simulation should run like the first simulation.

Version and OS

  • OpenModelica Version: v1.22.0-dev-97-g721e7e1a28 (64-bit)
  • OS: Windows 10, 64 bit
  • ExternalMedia 4.0.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug COMP/GUI/OMEdit Issue and pull request related to OMEdit
Projects
None yet
Development

No branches or pull requests

4 participants