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

Generated FMU can't be loaded second time #228

Open
nordanz opened this issue Feb 24, 2025 · 1 comment
Open

Generated FMU can't be loaded second time #228

nordanz opened this issue Feb 24, 2025 · 1 comment

Comments

@nordanz
Copy link

nordanz commented Feb 24, 2025

Hello there,

Using generated FMU in fmpy I encountered 2 problems:

Create 2 different FMUs (or the same fmu) and try to load them in fmpy one by one. the second fmu will throw the following exception:

[FATAL] Fatal py exception encountered: [ctor] findClass
AttributeError("module 'fmugen' has no attribute 'SineWaveProcessor'")
pythonfmu -V
0.6.5

For the other problem I can create another issue, but it can be related to the same problem here, so I put it anyway here: After simulation is finished I get the following error

free(): corrupted unsorted chunks
Aborted (core dumped)
@nordanz
Copy link
Author

nordanz commented Feb 24, 2025

One update, it seems if I use the same filename for the FMU (for e.g. fmugen.py) then the second FMU cannot be loaded. I adapted the filenames to the class names, but still the second issue persist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant