Skip to content

ReOpt error handling, timeout warnings #2131

@mjprilliman

Description

@mjprilliman

Describe the bug

Running ReOpt optimizing size and dispatch API calls exceeds the maximum simulation time of 600 seconds. There's a typo when pulling messages->error (invoke.cpp line 6461), so SAM crashes with a read access violation.

To Reproduce

Steps to reproduce the behavior:

  1. Go to PV Battery - Commercial
  2. Go to Battery Cell and System page
  3. Click on 'Get size and dispatch' button
  4. Wait 10 minutes, see crash

Expected behavior

Fixing the typo gives the following message:

Image Image

Investigate timeout issues, see # as well

Screenshots

If applicable, add screenshots to help explain your problem.

Operating System and Version

  • OS: [Windows, macOS, Linux]
  • Version SAM 2025.4.16r2

Additional context

Found when helping with user support question. ReOpt does not seem to timeout when finding a battery value of 0 kW, 0 kWh.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions