Could not open file out\eplusout.mtd for output (write)
I am training an RL agent by using EnergyPlus as the environment. The RL agent calls the PyEnergyPlus functions for interactions between the RL agent and the EnergyPlus environment. The training process works well for 103 epochs, but after that, an error occurs: "FATAL: InitializeMeters: Could not open file out\eplusout.mtd for output (write)." The following are the total error logs.
EnergyPlus Starting EnergyPlus, Version 22.2.0-c249759bad, YMD=2025.04.21 22:57 Program terminated: EnergyPlus Terminated--Error(s) Detected.
**FATAL:InitializeMeters: Could not open file out\eplusout.mtd for output (write).
EnergyPlus Run Time=00hr 00min 0.44sec
I have checked the relevant path and file (eplusout.mtd) and found that the file exists (size: 1011 KB). My question is how to solve this error.
best regards