Open ThoreWietzke opened 3 months ago
I suspect when you set up the Python multi-processing, you do not assign a separate working directory to each process. I am not sure however if that is indeed the case as your error message shows C:/.../spawn-MultizoneModel_v2_final_closedDoors.flo
and the ...
that is not shown in your message is what should be unique for each process.
Yes, a separate wkdir solves the issue. My expactation with the instance_name
in FMPy was, that it takes care of this.
I use a standalone FMU which is based on Spawn of EnergyPlus. Simulating the FMU with FMPy works fine. Since the simulation takes a long time and I want to compare different controllers, I want to use Python multiprocessing to do the simulations in parallel.
One instance is created and simulated, but the other fail with the following error message:
Setting an instance name has no effect, as only the output folder
spawn-MultizoneModel_v2_final_closedDoors.flo
is created. I already used FMUs created from EnergyPlusToFMU and they create their own output folder and multiprocessing works fine.Also, I can't help with the exact settings used to create the FMU as I don't have a Dymola lincense.