Skip to content

Using simultaneously two Python FMUs #97

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

Closed
1 task
fcollonval opened this issue Mar 22, 2020 · 0 comments · Fixed by #109
Closed
1 task

Using simultaneously two Python FMUs #97

fcollonval opened this issue Mar 22, 2020 · 0 comments · Fixed by #109

Comments

@fcollonval
Copy link
Collaborator

using simultaneously two Python FMUs seems not possible

Not at all or is it the loggers that don't work? If it's the former we need to fix that for sure as that was something that worked before introducing the logger.

Originally posted by @markaren in #95 (comment)

Ok I started creating test case for co-simulation with multiple Python FMUs in https://github.com/NTNU-IHB/PythonFMU/tree/tdd-multiple-fmus.

The idea would be to use it to carry Test Driven Development on it.

Contrarily to what I said, you are right - at least with pyfmi - co-simulation of Python FMUs is possible. My problem was probably related to the test case. In the example notebook, I was trying to load a model with a missing dependency - using #95. And reloading the FMU after installing the dependency does not work as the import are ignored at the second call.

Could we keep this issue to track problem with co-simulation?

For now:

  • When using self.log with co-simulation and pyfmi on both FMUs, the simulation is carried out. But at least on Windows, an error is thrown when the FMU models are deleted:
...\Temp\JModelica.org\jm_tmp3prdw82t\binaries\win64\Slave2.dll - Access refused.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant