Skip to content

Commit

Permalink
Merge pull request #1591 from NREL/feature/sizing_run_profiling
Browse files Browse the repository at this point in the history
Simulation time profiling
  • Loading branch information
mdahlhausen authored Sep 8, 2023
2 parents 89dcb6f + 2e3dc1d commit 37c5f34
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/openstudio-standards/utilities/simulation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def model_run_simulation_and_log_errors(model, run_dir = "#{Dir.pwd}/Run")
osm_name = 'in.osm'
osw_name = 'in.osw'
OpenStudio.logFree(OpenStudio::Debug, 'openstudio.model.Model', "Starting simulation here: #{run_dir}.")
OpenStudio.logFree(OpenStudio::Info, 'openstudio.model.Model', "Running simulation #{run_dir}.")
OpenStudio.logFree(OpenStudio::Info, 'openstudio.model.Model', "Started simulation #{run_dir} at #{Time.now.strftime('%T.%L')}")
forward_translator = OpenStudio::EnergyPlus::ForwardTranslator.new
idf = forward_translator.translateModel(model)
idf_path = OpenStudio::Path.new("#{run_dir}/#{idf_name}")
Expand Down Expand Up @@ -82,7 +82,7 @@ def model_run_simulation_and_log_errors(model, run_dir = "#{Dir.pwd}/Run")

sql_path = OpenStudio::Path.new("#{run_dir}/EnergyPlus/eplusout.sql")

OpenStudio.logFree(OpenStudio::Info, 'openstudio.model.Model', 'Finished run.')
OpenStudio.logFree(OpenStudio::Info, 'openstudio.model.Model', "Finished simulation #{run_dir} at #{Time.now.strftime('%T.%L')}")

else # method to running simulation within measure using OpenStudio 2.x WorkflowJSON

Expand Down Expand Up @@ -113,7 +113,7 @@ def model_run_simulation_and_log_errors(model, run_dir = "#{Dir.pwd}/Run")
# Run the sizing run
OpenstudioStandards.run_command(cmd)

OpenStudio.logFree(OpenStudio::Info, 'openstudio.model.Model', 'Finished run.')
OpenStudio.logFree(OpenStudio::Info, 'openstudio.model.Model', "Finished simulation #{run_dir} at #{Time.now.strftime('%T.%L')}")

sql_path = OpenStudio::Path.new("#{run_dir}/run/eplusout.sql")

Expand Down

0 comments on commit 37c5f34

Please sign in to comment.