Closed jiayilong closed 1 year ago
Hi @jiayilong this error seems to originate from the FMU itself and not from PyFMI. In order to understand this better, can you try the following and see if it triggers the error?
from pyfmi import load_fmu
fmu_path = "./FMU/ASHRAE901_OfficeSmall_STD2019_Tucson.fmu"
fmu = load_fmu(fmu_path)
fmu.reset()
Closing this issue due to inactivity. Feel free to reopen once relevant again.
Hi everyone,
I'm encountering an error when trying to initialize an FMU in the reset() method of a custom PyFMIEnvironment class. The error message I'm seeing is:
"[ERROR][Slave] [error][FMU status:Error] fmiInitializeSlave: Could not rename the temporary input file. Initialization of Slave failed."
This error occurs every time I try to run the reset() method, but the simulation runs fine if I skip the reset() method and go straight to the step() method.
Here's a snippet of my code:
I'm running this code on Windows 10 with Python 3.8. I've tried restarting my computer and checking file permissions, but I'm still getting the same error.
If anyone has any ideas on what could be causing this error. Thank you very much for help.