NREL / openstudio-standards

Other
83 stars 58 forks source link

Add Kamel's Utility tariff to the NECB QAQC analysis spreadsheet and test. #168

Closed phylroy closed 7 years ago

phylroy commented 7 years ago

Padmassun with support from Kamel.

Run this only for the time being with models/ climates that work.

I have moved Kamel's Utility measure to the measures repository under the NRCan measures folder.

https://github.com/NREL/OpenStudio-measures/tree/nrcan/NRCAN_working_measures/BTAPUtilityTariffs

This measure will add cost to the meters (gas, electricity) which is a function of the location in canada..

I would like you to:

  1. Add the BTAPUtilityTariffs measure to the NECB QAQC Spreadsheet
  2. Add an output to the JSON that contains the cost per fuel type (Annual Electric cost, Annual Gas Cost, etc..)
  3. Test this measure the across all climate files and work with kamel to fix as required. Start with a small set of climates first, then run all the working climate files.
padmassun commented 7 years ago

The errors occurred for all the weather files (see near the end of comment) for the following bldg types: LargeOffice Warehouse RetailStripmall

P.S. these errors were formatted by me for easier reading. the original errors were outputted in one line

Error 1

there was no timestep object to alter

Error 2

Found error in state '
    openstudio'
     with message ["/opt/rbenv/versions/2.0.0-p481/lib/ruby/gems/2.0.0/bundler/gems/OpenStudio-workflow-gem-ca6ec0037615/lib/openstudio/workflow/jobs/lib/apply_measures.rb failed with message Runner error /opt/rbenv/versions/2.0.0-p481/lib/ruby/gems/2.0.0/bundler/gems/OpenStudio-workflow-gem-ca6ec0037615/lib/openstudio/workflow/jobs/lib/apply_measures.rb failed with Measure UtilityTariffsModelSetup reported an error, check log, /opt/rbenv/versions/2.0.0-p481/lib/ruby/gems/2.0.0/bundler/gems/OpenStudio-workflow-gem-ca6ec0037615/lib/openstudio/workflow/jobs/lib/apply_measures.rb:206:in 
apply_measure'
    \n/opt/rbenv/versions/2.0.0-p481/lib/ruby/gems/2.0.0/bundler/gems/OpenStudio-workflow-gem-ca6ec0037615/lib/openstudio/workflow/jobs/lib/apply_measures.rb:244:in 
block in apply_measures'
    \n/opt/rbenv/versions/2.0.0-p481/lib/ruby/gems/2.0.0/bundler/gems/OpenStudio-workflow-gem-ca6ec0037615/lib/openstudio/workflow/jobs/lib/apply_measures.rb:241:in 
each'
    \n/opt/rbenv/versions/2.0.0-p481/lib/ruby/gems/2.0.0/bundler/gems/OpenStudio-workflow-gem-ca6ec0037615/lib/openstudio/workflow/jobs/lib/apply_measures.rb:241:in 
apply_measures'
    \n/opt/rbenv/versions/2.0.0-p481/lib/ruby/gems/2.0.0/bundler/gems/OpenStudio-workflow-gem-ca6ec0037615/lib/openstudio/workflow/jobs/run_openstudio/run_openstudio.rb:75:in 
perform'
    \n/opt/rbenv/versions/2.0.0-p481/lib/ruby/gems/2.0.0/bundler/gems/OpenStudio-workflow-gem-ca6ec0037615/lib/openstudio/workflow/run.rb:220:in 
run_openstudio'
    \n/opt/rbenv/versions/2.0.0-p481/lib/ruby/gems/2.0.0/bundler/gems/OpenStudio-workflow-gem-ca6ec0037615/lib/openstudio/workflow/run.rb:189:in 
step'
    \n/opt/rbenv/versions/2.0.0-p481/lib/ruby/gems/2.0.0/bundler/gems/OpenStudio-workflow-gem-ca6ec0037615/lib/openstudio/workflow/run.rb:147:in 
run'
    \n/mnt/openstudio/simulate_data_point.rb:163:in 
'
     in /opt/rbenv/versions/2.0.0-p481/lib/ruby/gems/2.0.0/bundler/gems/OpenStudio-workflow-gem-ca6ec0037615/lib/openstudio/workflow/jobs/lib/apply_measures.rb:209:in 
rescue in apply_measure'
    \n/opt/rbenv/versions/2.0.0-p481/lib/ruby/gems/2.0.0/bundler/gems/OpenStudio-workflow-gem-ca6ec0037615/lib/openstudio/workflow/jobs/lib/apply_measures.rb:202:in 
apply_measure'
    \n/opt/rbenv/versions/2.0.0-p481/lib/ruby/gems/2.0.0/bundler/gems/OpenStudio-workflow-gem-ca6ec0037615/lib/openstudio/workflow/jobs/lib/apply_measures.rb:244:in 
block in apply_measures'
    \n/opt/rbenv/versions/2.0.0-p481/lib/ruby/gems/2.0.0/bundler/gems/OpenStudio-workflow-gem-ca6ec0037615/lib/openstudio/workflow/jobs/lib/apply_measures.rb:241:in 
each'
    \n/opt/rbenv/versions/2.0.0-p481/lib/ruby/gems/2.0.0/bundler/gems/OpenStudio-workflow-gem-ca6ec0037615/lib/openstudio/workflow/jobs/lib/apply_measures.rb:241:in 
apply_measures'
    \n/opt/rbenv/versions/2.0.0-p481/lib/ruby/gems/2.0.0/bundler/gems/OpenStudio-workflow-gem-ca6ec0037615/lib/openstudio/workflow/jobs/run_openstudio/run_openstudio.rb:75:in 
perform'
    \n/opt/rbenv/versions/2.0.0-p481/lib/ruby/gems/2.0.0/bundler/gems/OpenStudio-workflow-gem-ca6ec0037615/lib/openstudio/workflow/run.rb:220:in 
run_openstudio'
    \n/opt/rbenv/versions/2.0.0-p481/lib/ruby/gems/2.0.0/bundler/gems/OpenStudio-workflow-gem-ca6ec0037615/lib/openstudio/workflow/run.rb:189:in 
step'
    \n/opt/rbenv/versions/2.0.0-p481/lib/ruby/gems/2.0.0/bundler/gems/OpenStudio-workflow-gem-ca6ec0037615/lib/openstudio/workflow/run.rb:147:in 
run'
    \n/mnt/openstudio/simulate_data_point.rb:163:in 
'
    :/opt/rbenv/versions/2.0.0-p481/lib/ruby/gems/2.0.0/bundler/gems/OpenStudio-workflow-gem-ca6ec0037615/lib/openstudio/workflow/jobs/lib/apply_measures.rb:227:in 
rescue in apply_measure'
    \n/opt/rbenv/versions/2.0.0-p481/lib/ruby/gems/2.0.0/bundler/gems/OpenStudio-workflow-gem-ca6ec0037615/lib/openstudio/workflow/jobs/lib/apply_measures.rb:233:in 
apply_measure'
    \n/opt/rbenv/versions/2.0.0-p481/lib/ruby/gems/2.0.0/bundler/gems/OpenStudio-workflow-gem-ca6ec0037615/lib/openstudio/workflow/jobs/lib/apply_measures.rb:244:in 
block in apply_measures'
    \n/opt/rbenv/versions/2.0.0-p481/lib/ruby/gems/2.0.0/bundler/gems/OpenStudio-workflow-gem-ca6ec0037615/lib/openstudio/workflow/jobs/lib/apply_measures.rb:241:in 
each'
    \n/opt/rbenv/versions/2.0.0-p481/lib/ruby/gems/2.0.0/bundler/gems/OpenStudio-workflow-gem-ca6ec0037615/lib/openstudio/workflow/jobs/lib/apply_measures.rb:241:in 
apply_measures'
    \n/opt/rbenv/versions/2.0.0-p481/lib/ruby/gems/2.0.0/bundler/gems/OpenStudio-workflow-gem-ca6ec0037615/lib/openstudio/workflow/jobs/run_openstudio/run_openstudio.rb:75:in 
perform'
    \n/opt/rbenv/versions/2.0.0-p481/lib/ruby/gems/2.0.0/bundler/gems/OpenStudio-workflow-gem-ca6ec0037615/lib/openstudio/workflow/run.rb:220:in 
run_openstudio'
    \n/opt/rbenv/versions/2.0.0-p481/lib/ruby/gems/2.0.0/bundler/gems/OpenStudio-workflow-gem-ca6ec0037615/lib/openstudio/workflow/run.rb:189:in 
step'
    \n/opt/rbenv/versions/2.0.0-p481/lib/ruby/gems/2.0.0/bundler/gems/OpenStudio-workflow-gem-ca6ec0037615/lib/openstudio/workflow/run.rb:147:in 
run'
    \n/mnt/openstudio/simulate_data_point.rb:163:in 
'
    "]}

Error 3

/opt/rbenv/versions/2.0.0-p481/lib/ruby/gems/2.0.0/bundler/gems/OpenStudio-workflow-gem-ca6ec0037615/lib/openstudio/workflow/jobs/lib/apply_measures.rb failed with message Runner error /opt/rbenv/versions/2.0.0-p481/lib/ruby/gems/2.0.0/bundler/gems/OpenStudio-workflow-gem-ca6ec0037615/lib/openstudio/workflow/jobs/lib/apply_measures.rb failed with Measure UtilityTariffsModelSetup reported an error, check log, /opt/rbenv/versions/2.0.0-p481/lib/ruby/gems/2.0.0/bundler/gems/OpenStudio-workflow-gem-ca6ec0037615/lib/openstudio/workflow/jobs/lib/apply_measures.rb:206:in 
apply_measure'
    /opt/rbenv/versions/2.0.0-p481/lib/ruby/gems/2.0.0/bundler/gems/OpenStudio-workflow-gem-ca6ec0037615/lib/openstudio/workflow/jobs/lib/apply_measures.rb:244:in 
block in apply_measures'
    /opt/rbenv/versions/2.0.0-p481/lib/ruby/gems/2.0.0/bundler/gems/OpenStudio-workflow-gem-ca6ec0037615/lib/openstudio/workflow/jobs/lib/apply_measures.rb:241:in 
each'
    /opt/rbenv/versions/2.0.0-p481/lib/ruby/gems/2.0.0/bundler/gems/OpenStudio-workflow-gem-ca6ec0037615/lib/openstudio/workflow/jobs/lib/apply_measures.rb:241:in 
apply_measures'
    /opt/rbenv/versions/2.0.0-p481/lib/ruby/gems/2.0.0/bundler/gems/OpenStudio-workflow-gem-ca6ec0037615/lib/openstudio/workflow/jobs/run_openstudio/run_openstudio.rb:75:in 
perform'
    /opt/rbenv/versions/2.0.0-p481/lib/ruby/gems/2.0.0/bundler/gems/OpenStudio-workflow-gem-ca6ec0037615/lib/openstudio/workflow/run.rb:220:in 
run_openstudio'
    /opt/rbenv/versions/2.0.0-p481/lib/ruby/gems/2.0.0/bundler/gems/OpenStudio-workflow-gem-ca6ec0037615/lib/openstudio/workflow/run.rb:189:in 
step'
    /opt/rbenv/versions/2.0.0-p481/lib/ruby/gems/2.0.0/bundler/gems/OpenStudio-workflow-gem-ca6ec0037615/lib/openstudio/workflow/run.rb:147:in 
run'
    /mnt/openstudio/simulate_data_point.rb:163:in 
'
     in /opt/rbenv/versions/2.0.0-p481/lib/ruby/gems/2.0.0/bundler/gems/OpenStudio-workflow-gem-ca6ec0037615/lib/openstudio/workflow/jobs/lib/apply_measures.rb:209:in 
rescue in apply_measure'
    /opt/rbenv/versions/2.0.0-p481/lib/ruby/gems/2.0.0/bundler/gems/OpenStudio-workflow-gem-ca6ec0037615/lib/openstudio/workflow/jobs/lib/apply_measures.rb:202:in 
apply_measure'
    /opt/rbenv/versions/2.0.0-p481/lib/ruby/gems/2.0.0/bundler/gems/OpenStudio-workflow-gem-ca6ec0037615/lib/openstudio/workflow/jobs/lib/apply_measures.rb:244:in 
block in apply_measures'
    /opt/rbenv/versions/2.0.0-p481/lib/ruby/gems/2.0.0/bundler/gems/OpenStudio-workflow-gem-ca6ec0037615/lib/openstudio/workflow/jobs/lib/apply_measures.rb:241:in 
each'
    /opt/rbenv/versions/2.0.0-p481/lib/ruby/gems/2.0.0/bundler/gems/OpenStudio-workflow-gem-ca6ec0037615/lib/openstudio/workflow/jobs/lib/apply_measures.rb:241:in 
apply_measures'
    /opt/rbenv/versions/2.0.0-p481/lib/ruby/gems/2.0.0/bundler/gems/OpenStudio-workflow-gem-ca6ec0037615/lib/openstudio/workflow/jobs/run_openstudio/run_openstudio.rb:75:in 
perform'
    /opt/rbenv/versions/2.0.0-p481/lib/ruby/gems/2.0.0/bundler/gems/OpenStudio-workflow-gem-ca6ec0037615/lib/openstudio/workflow/run.rb:220:in 
run_openstudio'
    /opt/rbenv/versions/2.0.0-p481/lib/ruby/gems/2.0.0/bundler/gems/OpenStudio-workflow-gem-ca6ec0037615/lib/openstudio/workflow/run.rb:189:in 
step'
    /opt/rbenv/versions/2.0.0-p481/lib/ruby/gems/2.0.0/bundler/gems/OpenStudio-workflow-gem-ca6ec0037615/lib/openstudio/workflow/run.rb:147:in 
run'
    /mnt/openstudio/simulate_data_point.rb:163:in 
'

List of weather file which failed

CAN_AB_Calgary.718770_CWEC.epw
CAN_AB_Edmonton.711230_CWEC.epw
CAN_AB_Fort.McMurray.719320_CWEC.epw
CAN_AB_Grande.Prairie.719400_CWEC.epw
CAN_AB_Lethbridge.712430_CWEC.epw
CAN_AB_Medicine.Hat.718720_CWEC.epw
CAN_BC_Abbotsford.711080_CWEC.epw
CAN_BC_Comox.718930_CWEC.epw
CAN_BC_Cranbrook.718800_CWEC.epw
CAN_BC_Fort.St.John.719430_CWEC.epw
CAN_BC_Kamloops.718870_CWEC.epw
CAN_BC_Port.Hardy.711090_CWEC.epw
CAN_BC_Prince.George.718960_CWEC.epw
CAN_BC_Prince.Rupert.718980_CWEC.epw
CAN_BC_Sandspit.711010_CWEC.epw
CAN_BC_Smithers.719500_CWEC.epw
CAN_BC_Summerland.717680_CWEC.epw
CAN_BC_Vancouver.718920_CWEC.epw
CAN_BC_Victoria.717990_CWEC.epw
CAN_MB_Brandon.711400_CWEC.epw
CAN_MB_Churchill.719130_CWEC.epw
CAN_MB_The.Pas.718670_CWEC.epw
CAN_MB_Winnipeg.718520_CWEC.epw
CAN_NB_Fredericton.717000_CWEC.epw
CAN_NB_Miramichi.717440_CWEC.epw
CAN_NB_Saint.John.716090_CWEC.epw
CAN_NF_Gander.718030_CWEC.epw
CAN_NF_Goose.718160_CWEC.epw
CAN_NF_St.Johns.718010_CWEC.epw
CAN_NF_Stephenville.718150_CWEC.epw
CAN_NS_Greenwood.713970_CWEC.epw
CAN_NS_Sable.Island.716000_CWEC.epw
CAN_NS_Shearwater.716010_CWEC.epw
CAN_NS_Sydney.717070_CWEC.epw
CAN_NT_Inuvik.719570_CWEC.epw
CAN_NU_Resolute.719240_CWEC.epw
CAN_ON_London.716230_CWEC.epw
CAN_ON_Mount.Forest.716310_CWEC.epw
CAN_ON_North.Bay.717310_CWEC.epw
CAN_ON_Ottawa.716280_CWEC.epw
CAN_ON_Sault.Ste.Marie.712600_CWEC.epw
CAN_ON_Thunder.Bay.717490_CWEC.epw
CAN_ON_Timmins.717390_CWEC.epw
CAN_ON_Toronto.716240_CWEC.epw
CAN_ON_Trenton.716210_CWEC.epw
CAN_ON_Windsor.715380_CWEC.epw
CAN_PE_Charlottetown.717060_CWEC.epw
CAN_PQ_Bagotville.717270_CWEC.epw
CAN_PQ_Baie.Comeau.711870_CWEC.epw
CAN_PQ_Kuujjuarapik.719050_CWEC.epw
CAN_PQ_Kuujuaq.719060_CWEC.epw
CAN_PQ_La.Grande.Riviere.718270_CWEC.epw
CAN_PQ_Lake.Eon.714210_CWEC.epw
CAN_PQ_Mont.Joli.717180_CWEC.epw
CAN_PQ_Montreal.Intl.AP.716270_CWEC.epw
CAN_PQ_Quebec.717140_CWEC.epw
CAN_PQ_Riviere.du.Loup.717150_CWEC.epw
CAN_PQ_Roberval.717280_CWEC.epw
CAN_PQ_Schefferville.718280_CWEC.epw
CAN_PQ_Sept-Iles.718110_CWEC.epw
CAN_PQ_Sherbrooke.716100_CWEC.epw
CAN_PQ_St.Hubert.713710_CWEC.epw
CAN_PQ_Ste.Agathe.des.Monts.717200_CWEC.epw
CAN_PQ_Val.d.Or.717250_CWEC.epw
CAN_SK_Estevan.718620_CWEC.epw
CAN_SK_North.Battleford.718760_CWEC.epw
CAN_SK_Regina.718630_CWEC.epw
CAN_SK_Saskatoon.718660_CWEC.epw
CAN_SK_Swift.Current.718700_CWEC.epw
CAN_YT_Whitehorse.719640_CWEC.epw