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
127 stars 41 forks source link

filter federate example hangs #1995

Open trevorhardy opened 3 years ago

trevorhardy commented 3 years ago

Describe the bug At some point in the filter federate example, all federates are requesting a time and none are ever granted, hanging the co-simulation.

To Reproduce Run filter federate example and look at the logs to confirm all federates have requested a time and are waiting to be granted one.

Environment (please complete the following information):

Additional context and information I retested this on my installation and this is failing under v3b1 as well though I thought it was previously working under that release.

trevorhardy commented 2 years ago

v3.1 update:

When setting "event_triggered" undefined the co-simulation hangs. When setting "event_triggered" to "true" and "grant_timeout" to "0" the co-simulation runs to completion. When setting "event_triggered" to "true" and "grant_timeout" to "1" the co-simulation runs to completion BUT generates a different result than when "grant_timeout" is "0".

With grant_timeout = 0: Screen Shot 2021-12-06 at 11 27 30 AM

With grant_timeout = 1: Screen Shot 2021-12-06 at 11 26 29 AM

Progress?

trevorhardy commented 2 years ago

Checked on v3.2.0 and federation is still hanging.

phlptp commented 2 years ago

@trevorhardy can you check on 3.2.1?

trevorhardy commented 2 years ago

Check on v3.2.1 and federation is still hanging.

phlptp commented 1 year ago

@trevorhardy you want to test this again with the latest release (or 3.4 when it comes out)

trevorhardy commented 1 year ago

Yes. I can't remember whether I tested this in v3.3 and I'll be sure to do so under v3.4.

trevorhardy commented 1 year ago

Federation still hangs in v3.4.0. All federates requesting a time and none being granted one.

trevorhardy commented 7 months ago

Federation still hangs in v3.5.0. All federates requesting a time and none being granted one.