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

Tariff Selection Time and Date Dependent measure failure OS 2.2.0

asked 2017-09-14 16:46:08 -0600

Chris Light's avatar

updated 2017-09-18 02:47:20 -0600

I'm running into a fatal error with the Tariff Selection Time and Date Dependent measures in OpenStudio 2.2.0, exact error text copied below. None of the "Tariff Selection Time and Date Dependent..." measures work, all of them throw this error. BCL measures:

They all work in OS 1.1X versions without issue

Applying TariffSelectionTimeAndDateDependentWithMaximumDemandCharge
  Result: Fail
  Error: E:\Git\OS1\openstudiocore\src\measure\OSArgument.cpp@306 : Argument peak_start_hour has no value.
    C:/Users/xxxx/AppData/Local/Temp/OpenStudioApp.vU7180/resources/measures/TariffSelectionTimeAndDateDependentWithMaximumDemandCharge 1 1/resources/os_lib_helper_methods.rb:143:in `valueDisplayName'
    C:/Users/xxxx/AppData/Local/Temp/OpenStudioApp.vU7180/resources/measures/TariffSelectionTimeAndDateDependentWithMaximumDemandCharge 1 1/resources/os_lib_helper_methods.rb:143:in `block in checkDoubleAndIntegerArguments'
    C:/Users/xxxx/AppData/Local/Temp/OpenStudioApp.vU7180/resources/measures/TariffSelectionTimeAndDateDependentWithMaximumDemandCharge 1 1/resources/os_lib_helper_methods.rb:138:in `each'
    C:/Users/xxxx/AppData/Local/Temp/OpenStudioApp.vU7180/resources/measures/TariffSelectionTimeAndDateDependentWithMaximumDemandCharge 1 1/resources/os_lib_helper_methods.rb:138:in `checkDoubleAndIntegerArguments'
    C:/Users/xxxx/AppData/Local/Temp/OpenStudioApp.vU7180/resources/measures/TariffSelectionTimeAndDateDependentWithMaximumDemandCharge 1 1/measure.rb:213:in `run'
    :/ruby/2.2.0/gems/openstudio-workflow-1.3.1/lib/openstudio/workflow/util/measure.rb:452:in `apply_measure'
    :/ruby/2.2.0/gems/openstudio-workflow-1.3.1/lib/openstudio/workflow/util/measure.rb:74:in `block in apply_measures'
    :/ruby/2.2.0/gems/openstudio-workflow-1.3.1/lib/openstudio/workflow/util/measure.rb:32:in `each_index'
    :/ruby/2.2.0/gems/openstudio-workflow-1.3.1/lib/openstudio/workflow/util/measure.rb:32:in `apply_measures'
    :/ruby/2.2.0/gems/openstudio-workflow-1.3.1/lib/openstudio/workflow/jobs/run_ep_measures.rb:41:in `perform'
    :/ruby/2.2.0/gems/openstudio-workflow-1.3.1/lib/openstudio/workflow/run.rb:261:in `step'
    :/ruby/2.2.0/gems/openstudio-workflow-1.3.1/lib/openstudio/workflow/run.rb:210:in `run'
    :/openstudio_cli.rb:804:in `execute'
    :/openstudio_cli.rb:620:in `execute'
    :/openstudio_cli.rb:1517:in `<main>'
    eval:85:in `eval'
    eval:85:in `require_embedded_absolute'
    eval:70:in `block in require'
    eval:64:in `each'
    eval:64:in `require'
    eval:2:in `<main>'
Failed.

Any suggestions welcome.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2017-09-18 22:40:31 -0600

updated 2017-09-19 02:20:34 -0600

Looks like that measure on BCL has outdated version of os_lib_helper_methods.rb file that among other things checks double and integer arguments for some measures. Changes were made to fix issue with default argument values in 2.x. I won't be able to address this until October but for now you can click in each cell and type a value, even if it exactly the same as the default value. Do this for the arguments shown below.

# check expected values of double arguments
zero_24 = OsLib_HelperMethods.checkDoubleAndIntegerArguments(runner, user_arguments,{"min"=>0.0,"max"=>24.0,"min_eq_bool"=>true,"max_eq_bool"=>true,"arg_array" =>["peak_start_hour","peak_end_hour"]})
one_31 = OsLib_HelperMethods.checkDoubleAndIntegerArguments(runner, user_arguments,{"min"=>1.0,"max"=>31.0,"min_eq_bool"=>true,"max_eq_bool"=>true,"arg_array" =>["summer_start_day","summer_end_day"]})
one_12 = OsLib_HelperMethods.checkDoubleAndIntegerArguments(runner, user_arguments,{"min"=>1.0,"max"=>12.0,"min_eq_bool"=>true,"max_eq_bool"=>true,"arg_array" =>["summer_start_month","summer_end_month"]})
edit flag offensive delete link more

Comments

Thanks, that worked! Really appreciate it.

Chris Light's avatar Chris Light  ( 2017-09-18 22:56:17 -0600 )edit

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

Stats

Asked: 2017-09-14 16:46:08 -0600

Seen: 260 times

Last updated: Sep 19 '17