Open jmarrec opened 4 years ago
This can be better seen querying the ReportVariableWithTime for eg:
SELECT ReportDataIndex, TimeIndex, ReportDataDictionaryIndex, Value, Month, Day, Hour, Minute, Interval, Name, ReportingFrequency From ReportVariableWithTime
See line 25, the Daily one is correct for everything, except it uses the same TimeIndex as the Timestep one that reports for 24:00, and therefore 'Interval' is 60
Output:Variable do it correctly:
I added these two:
Output:Variable,*,Site Outdoor Air Drybulb Temperature,Timestep;
Output:Variable,*,Site Outdoor Air Drybulb Temperature,Daily;
SELECT ReportDataIndex, TimeIndex, ReportDataDictionaryIndex, Value, Month, Day, Hour, Minute, Interval, Name, ReportingFrequency From ReportVariableWithTime
WHERE Name='Site Outdoor Air Drybulb Temperature'
Interestingly, adding the Output:Variables makes the Output:Meter ones use the added TimeIndex so they report correctly too.
In my file with runs for an annual run (non leap) + 2 design days:
SELECT COUNT(TimeIndex) FROM Time
: 8808 = (365+2) * 24SELECT COUNT(TimeIndex) FROM Time
: 9175 = (365+2) * 25
Issue overview
If I add this meter:
Then in the
Time
SQL table, I can find theTimeIndex
es corresponding to the meter, and they all have anInterval
value of 1440 (24 hr * 60 minute), as expected.Now if I ALSO add the same Meter with a Reporting Frequency of "Timestep" (and assuming my Timestep is 1"), suddenly the Interval becomes 60 minutes (Timestep of 1 = 60 minutes)
Example based on
1ZoneUncontrolled.idf
, added this at the end:Sql query used:
Is this the expected behavior? (I was assuming no, but maybe it is)
Context
I'm investigating an issue with a Calibration reporting measure in OpenStudio 3.0.0. It worked fine on 2.9.1 (E+ 9.2.0), and it's failing on 3.0.0 (E+ 9.3.0)
Similar to https://github.com/NREL/OpenStudio/issues/1692 which led to ttps://github.com/NREL/EnergyPlus/issues/4979
I have tested the above in 9.3.0, but also on 9.2.0, and 9.2.0 behaves the same way, so it's not a regression per say.
Details
Some additional details for this issue (if relevant):
Checklist
Add to this list or remove from it as applicable. This is a simple templated set of guidelines.