Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question
0

Could not open file out\eplusout.mtd for output (write)

asked Apr 22

panda rose's avatar

updated Apr 22

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

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
0

answered Apr 22

This would appear to mean that the document is already open/locked by another process. You could try deleting that file to see if it actually gets removed. If it's locked by some other process you would get a warning that you can't delete it.

Preview: (hide)
link

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Training Workshops

Careers

Question Tools

1 follower

Stats

Asked: Apr 22

Seen: 26 times

Last updated: Apr 22