quintel / mechanical_turk

Automatic tester for etengine
1 stars 0 forks source link

Excess electricity should match total stored electricity #141

Closed ChaelKruip closed 4 years ago

ChaelKruip commented 4 years ago

  1) Flexibility Electricity Conservation Electricity should be conserved between excess production and storage
     Failure/Error: expect(@scenario.turk_excess_electricity_storage_sum.value).to be_within(0.000001).of(@scenario.turk_excess_electricity_from_production.value)
       expected 0.15746755202276427 to be within 1.0e-06 of 1.595989060279976
     # ./spec/flexibility/flexibility_spec.rb:348:in `block (4 levels) in <top (required)>'

This is more than a rounding error it seems. @marliekeverweij can you pick this up or reassign?

michieldenhaan commented 4 years ago

This was probably caused by unexpected HV losses/surpluses due to the new heat module. Should be fixed with: https://github.com/quintel/etengine/pull/1089