Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simulation time profiling #1591

Merged
merged 2 commits into from
Sep 8, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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