Describe the bug
If uncommented, executing the code below can cause SAM to crash:

(from Battery Dispatch Options BTM)
To Reproduce
Steps to reproduce the behavior:
- Open a BTM PV-Battery Case
- Select "peak shaving dispatch" with a custom load profile and custom load escalation
- Switch to another dispatch option
- SAM crashes
Expected behavior
SAM should not crash
Workaround for the release is to comment out usages of logmsg in equations. We should discuss whether or not to allow this in lk callbacks in the future.
Operating System and Version
- OS: 2021.12.02 and 2022.11.21 RC2
Describe the bug
If uncommented, executing the code below can cause SAM to crash:
(from Battery Dispatch Options BTM)
To Reproduce
Steps to reproduce the behavior:
Expected behavior
SAM should not crash
Workaround for the release is to comment out usages of logmsg in equations. We should discuss whether or not to allow this in lk callbacks in the future.
Operating System and Version