I'm so sorry for taking so long to answer; the last couple of months have been quite hectic!
So, as mentioned back in December, it appears that newer versions of E+ log the EnergyPlus Completed Successfully
messages as errors - or at least that's what eppy seems to think.
This means that the q
verbose mode is not actually silent, even if one's model is error-free, and this is potentially unwanted behavior in cases where eppy is used in conjunction with another module that also prints stuff to the console. For example, if you're running multiple E+ simulations with various IDF files in order to optimize a specific cariable, such as an HVAC setpoint, then it is useful to print relevant metrics at specified time intervals. However, if eppy is constantly printing stuf to the console, the output that actually matters is obscured by the aforementioned messages.
That being said, the above-mentioned behavior can be "fixed" as of eppy v0.5.57 by setting the verbose
mode to s
for "silent". This option differs from the usual q
, since it redirects both stdout
and stderr
to null
, as opposed to only the former. Of course, one must make sure that their model is error-free before using this functionality, since it completely disables all module output.
A usage example of the s
mode would be the following:
eppy.modeleditor.IDF(idf_filepath, epw_filepath).run(output_directory=output_filepath, verbose="s")
.
Also, note that eppy v0.5.57 or later support both upper- and lower-case verbose modes, such that verbose="S"
and verbose="s"
are both valid.
What do you mean by simulation log. Are you referring to the outputs that E+ makes to the console/screen ?
yes the output it makes on the screen as it is simulating the model
there has been a recent pull request that may be your solution. see https://github.com/santoshphilip/eppy... and https://github.com/santoshphilip/eppy... It is now in the develop branch of eppy
Hi,
I'm actually the guy who made that pull request.
If you're talking about some red
EnergyPlus Completed Successfully
messages, it appears that later versions of E+ log them as errors.The solution is to redirect
stderr
tonull
.You can either clone the developer version of eppy and use that, or you can just get the updated
runfunctions.py
file from thedevelop
branch and replace your original file with it. Do not forget to set theverbose
mode tos
after before restarting!I’ll make a new release of eppy that will include this pull request