Battery retail rates fails with hourly dispatch and TOU demand charges
brtietz opened this issue · comments
Describe the bug
It appears https://github.com/NREL/ssc/pull/1135/files added a new bug that shows up in the default SAM case. It looks like an uninitialized memory or other overrun issue. Turning off the demand charges solves the issue.
To Reproduce
Steps to reproduce the behavior:
- Open a PV-Battery commercial case
- Change the battery dispatch to retail rates
- Run the simulation
- See error
Expected behavior
Retail rates dispatch should run this configuration of rates.
Screenshots
Example output:
Desktop (please complete the following information):
- Version 2023.12.17r1
My review of #1135 missed this. Perhaps an additional test before approving PRs for for battery dispatch and utility rate code changes should be to run the "default" case for each battery dispatch option to check for simulation errors.
This was fixed in #1152