Skip to content

Using logmsg in equations can cause SAM to crash #1285

@brtietz

Description

@brtietz

Describe the bug

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

image

(from Battery Dispatch Options BTM)

To Reproduce

Steps to reproduce the behavior:

  1. Open a BTM PV-Battery Case
  2. Select "peak shaving dispatch" with a custom load profile and custom load escalation
  3. Switch to another dispatch option
  4. 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

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions