GMLC-TDC / HELICS

Hierarchical Engine for Large-scale Infrastructure Co-Simulation (HELICS)
https://docs.helics.org/en/latest/
BSD 3-Clause "New" or "Revised" License
125 stars 40 forks source link

Dynamic federation hangs at completion #2534

Open trevorhardy opened 1 year ago

trevorhardy commented 1 year ago

Describe the bug The dynamic federation example has a late-joining federate that is able to join the co-simulation but when the co-simulation ends and the federates all try to leave, the co-simulation hangs.

What is the expected behavior? Federates would be able to leave the co-simulation at its completion.

To Reproduce Example has been committed in the HELICS-example repo here.

Environment (please complete the following information):

Run to see log files. All federates have reached the end of their simulated time and are hanging when trying to leave. Battery.py has been used for debugging up to this point and logs the results of a global_time_debugging while making an asynchronous time request for h.HELICS_TIME_MAXTIME (which all other federates are also doing).

trevorhardy commented 1 year ago

@phlptp do you think this will be addressed in the upcoming release?

trevorhardy commented 6 months ago

Confirmed bug still exists in v3.5.0