-
Notifications
You must be signed in to change notification settings - Fork 222
Closed
Milestone
Description
Issue overview
Two issues observed comparing the behavior of OpenStudio logging between Linux and Windows:
- Windows produces more warning messages than appear on Linux. Why?! I primarily do my testing on Linux, so I'm concerned that I might be missing things.
--- C:/Users/shorowit/Desktop/Linux.txt Thu Mar 30 15:24:05 2023
+++ C:/Users/shorowit/Desktop/Windows.txt Thu Mar 30 15:23:57 2023
@@ -3,2 +3,5 @@
[openstudio.measure.OSRunner] <1> Cannot find current Workflow Step
+[openstudio.measure.OSRunner] <1> Cannot find current Workflow Step
+[openstudio.EpwFile] <0> Successive data points (1995-Jan-31 to 1994-Feb-01, ending on line 753) are greater than 1 day apart in EPW file 'C:/git/openstudio-hpxml/HPXMLtoOpenStudio/resources/../../weather/USA_CO_Denver.Intl.AP.725650_TMY3.epw'. Data will be treated as typical (TMY)
+[openstudio.WorkflowStepResult] <0> WorkflowStepResult value called with undefined stepResult, returning 'Success'
Running simulation...
@@ -8,2 +11,6 @@
[openstudio.measure.OSRunner] <1> Cannot find current Workflow Step
+[openstudio.WorkflowStepResult] <0> WorkflowStepResult value called with undefined stepResult, returning 'Success'
+[openstudio.measure.OSRunner] <1> Cannot find current Workflow Step
+[openstudio.measure.OSRunner] <1> Cannot find current Workflow Step
+[openstudio.WorkflowStepResult] <0> WorkflowStepResult value called with undefined stepResult, returning 'Success'
Wrote output file: run/results_annual.csv.- When using
OpenStudio::Logger.instance.standardOutLogger.setLogLevel(OpenStudio::Fatal)to suppress warning messages, warnings are completely suppressed on Linux but not on Windows. For some of our workflows, this means we can get dozens and dozens of lines of output on Windows, which is annoying and makes it difficult to see the output of interest.
--- C:/Users/shorowit/Desktop/Linux.txt Thu Mar 30 15:24:02 2023
+++ C:/Users/shorowit/Desktop/Windows.txt Thu Mar 30 15:24:00 2023
@@ -2,2 +2,5 @@
Creating input...
+[openstudio.measure.OSRunner] <1> Cannot find current Workflow Step
+[openstudio.EpwFile] <0> Successive data points (1995-Jan-31 to 1994-Feb-01, ending on line 753) are greater than 1 day apart in EPW file 'C:/git/openstudio-hpxml/HPXMLtoOpenStudio/resources/../../weather/USA_CO_Denver.Intl.AP.725650_TMY3.epw'. Data will be treated as typical (TMY)
+[openstudio.WorkflowStepResult] <0> WorkflowStepResult value called with undefined stepResult, returning 'Success'
Running simulation...
@@ -5,2 +8,6 @@
Processing output...
+[openstudio.measure.OSRunner] <1> Cannot find current Workflow Step
+[openstudio.WorkflowStepResult] <0> WorkflowStepResult value called with undefined stepResult, returning 'Success'
+[openstudio.measure.OSRunner] <1> Cannot find current Workflow Step
+[openstudio.WorkflowStepResult] <0> WorkflowStepResult value called with undefined stepResult, returning 'Success'
Wrote output file: run/results_annual.csv.
Expected Behavior
OpenStudio should behave the same on Linux and Windows.
Steps to Reproduce
- Clone https://github.com/NREL/OpenStudio-HPXML
- To reproduce issue 1, run
openstudio workflow/run_simulation.rb -x workflow/sample_files/base.xml -o teston Windows and Linux. - To reproduce issue 2, comment out this line and run the above command again on Windows and Linux.
Details
Environment
Some additional details about your environment for this issue (if relevant):
- Windows 10 and Ubuntu 20.04 (WSL)
- OpenStudio 3.5
Reactions are currently unavailable