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

Simulation may fail under Windows when using external C libraries #38

Open
pstelzig opened this issue Jul 1, 2024 · 0 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@pstelzig
Copy link
Owner

pstelzig commented Jul 1, 2024

Problem description

Describe the bug
Users report that under Windows simulation in the test may fail if the Modelica model that shall be tested uses an external "C" library. They report that the simulation binary cannot find the external C library. The problem appears not to exist under Linux.

To Reproduce
A minimum working example to reproduce the bug will be constructed in the comments to this issue.

System information (please complete the following information):

  • OS: Windows 11
  • OpenModelica version: >= 1.21
  • Python version: unknown
  • MoPyRegtest version: v0.5.0

Additional context
Users report that under Windows, when compiling a Modelica model the OpenModelica compiler omc creates a .bat file alongside the .exe with the simulation binary. The issue only occurs if the .exe is executed, but not if the .bat file is used.

Desired behavior

  • Regression tests defined with MoPyRegtest have to work both under Windows and Linux if the Modelica model under test uses external "C" libraries.
  • A unit test shall be created from the minimum working example to ensure working of the fix
@pstelzig pstelzig added the bug Something isn't working label Jul 1, 2024
@pstelzig pstelzig self-assigned this Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant