Skip to content

Iteration with both values and endpoints blocks the simulation #2739

@BuiMCanmet

Description

@BuiMCanmet

Describe the bug
There seems to be a bug with the iteration feature when there is a combination of publications and endpoints. The simulation does get stuck unable to proceed/break out from the iteration loop. This bug was discovered during the office hours (2025-05-01).

What is the expected behavior?
The expected behavior is that the simulation should still be able to iterate within the publication even if an existing endpoint federate is present.

To Reproduce
Steps to reproduce the behavior:
Using the existing Advanced iteration example while adding the controller will recreate the issue.
I've create a repo https://github.com/[BuiMCanmet/helics_iteration_endpoints_values_example](https://github.com/BuiMCanmet/helics_iteration_endpoints_values_example) containing the reproducible example using

$ helics run --path advanced_iteration_runner.json

Environment (please complete the following information):

  • Operating System: Windows
  • Language Extension: Python
  • HELICS version: HELICS Library version 3.6.1 (2025-02-24) & Python HELICS version 3.6.1
$ helics_app --version

HELICS App version: 3.6.1 (2025-02-24)

Additional context and information
The temporary solution was to add the targeted argument to true for all endpoints connection. For the controller itself, it was to also add targeted +all destination_endpoints.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue concerning incorrect code operation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions