Load multiple models with PyFMI
I am trying to create multiple control commands in a main algorithm using
models =  for path in fmuList: models.append(pyfmi.load_fmu(path))
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
, 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
No one has answered this question yet
Check out similar questions: