Describe the bug
BTM Custom Generation / Battery configurations generate an SSC error for subhourly simulations, even when
- Grid outages are not enabled, or
- Outages are enabled and critical load data has correct time step.
exec fail(battery): Critical load crit_load must have same number of values as load.
Simulation battery failed :exec fail(battery): Critical load crit_load must have same number of values as load.
batt_annual_discharge_energy not assigned
Simulation cashloan failed :batt_annual_discharge_energy not assigned
Sample file for testing: critical-load-subhourly-test.zip
To Reproduce
Steps to reproduce the behavior:
- Open sample file from above.
- Run a simulation for each case.
- See error.
Expected behavior
Errors should only be generated under the following conditions:
- Generation profile and load data have different time steps.
- Grid outage is enabled and critical load and load have different time steps.
Operating System and Version
- Windows 11
- SAM 2024.12.12
Workaround
Error is caused by a missing check for "Custom Generation Battery" configuration in Electric Load Data UI callback and equations. A workaround solution is to run the following LK script to replace runtime/ui/Electric Load Data.json with a corrected version:
- Download and extract sam-2048-crit-load-fix.zip.
- Start SAM and, in the Welcome window, click Open script.
- Open the
sam-2048-crit-load-fix.lk file.
- Click Run at the top of the script editor.
- At the "Choose Electric Load Data.json file" prompt, navigate to the .json file that you extracted in Step 1.
- When the script finishes, close SAM.
- Start SAM and test.
Describe the bug
BTM Custom Generation / Battery configurations generate an SSC error for subhourly simulations, even when
Sample file for testing: critical-load-subhourly-test.zip
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Errors should only be generated under the following conditions:
Operating System and Version
Workaround
Error is caused by a missing check for "Custom Generation Battery" configuration in Electric Load Data UI callback and equations. A workaround solution is to run the following LK script to replace
runtime/ui/Electric Load Data.jsonwith a corrected version:sam-2048-crit-load-fix.lkfile.