Load multiple models with PyFMI

I am trying to create multiple control commands in a main algorithm using pyfmi


For example:

models = []
for path in fmuList:


The problem I am getting is that it ends up with an exception:

***FMUException: Failed to instantiate slave.


By calling the same for the loop in the trace debugger pdb

, I can see that each model is loaded successfully, however, each is loaded to the same location in memory. For example:

<pyfmi.fmi.FMUModelCS1 object at 1xxxxxxxxx>
<pyfmi.fmi.FMUModelCS1 object at 1xxxxxxxxx>


How to create multiple FMUs correctly using pyfmi?


source to share

All Articles