Open t-ober opened 1 year ago
It seems like the GridAgent times out after 3 seconds. This makes debugging quite inconvenient. I would opt for waiting longer until we time out.
GridAgent
log excerpt:
akka.pattern.AskTimeoutException: Ask timed out on [Actor[akka://simona/user/$a/GridAgent_135#-297706558]] after [30000 ms]. Message of type [edu.ie3.simona.ontology.messages.PowerMessage$RequestGridPowerMessage] was sent by [Actor[akka://simona/user/$a/GridAgent_1#240320069]]. A typical reason for `AskTimeoutException` is that the recipient actor didn't send a reply. 10:23:55.235 ERROR edu.ie3.simona.sim.SimonaSim - An actor (Actor[akka://simona/user/$a/GridAgent_1#240320069]) unexpectedly terminated. Shut down all children gracefully and report simulation failure. See logs and possible stacktrace for details. 10:23:55.244 INFO akka.actor.LocalActorRef - Message [edu.ie3.simona.ontology.messages.StopMessage] from Actor[akka://simona/user/$a#455818566] to Actor[akka://simona/user/$a/GridAgent_1#240320069] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[akka://simona/user/$a/GridAgent_1#240320069] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 10:23:55.388 ERROR edu.ie3.simona.agent.grid.GridAgent - [GridAgent_135:HandlePowerFlowCalculations] Unhandled event 'Event(StopMessage(false),PowerFlowDoneData(GridAgentBaseData(GridEnvironment(GridModel(135,RefSystem(10 kV,3464.101615137754774109785366023500 A,60 MVA,1.666666666666666666666666666666666 Ω),GridComponents(List(NodeModel(5d07ed20-5410-4014-8a38-afbb90cb68af,MV3.101 Bus 91,Interval [0, 31622340],false,1 p.u.,CommonVoltageLevel{id='Mittelspannung', nominalVoltage=10 kV, synonymousIds=[Mittelspannung, ms, ms_10kv, mv, mv_10kV], voltageRange=Interval [10 kV, 20 kV)}), NodeModel(6ae27f87-a713-4204-adfa-b262b222d240,MV3.101 Bus 19,Interval [0, 31622340],false,1 p.u.,CommonVoltageLevel{id='Mittelspannung', nominalVoltage=10 kV, synonymousIds=[Mittelspannung, ms, ms_10kv, mv, mv_10kV], voltageRange=Interval [10 kV, 20 kV)}), NodeModel(0c5e6268-ba9c-41e0-b472-0aea5a3163c6,MV3.101 Bus 77,Interval [0, 31622340],false,1 p.u.,CommonVoltageLevel{id='Mittelspannung', nominalVoltage=10 kV, synonymousIds=[Mittelspannung, ms, ms_10kv, mv, mv_10kV], voltageRange=Interval [10 kV, 20 kV)}), NodeModel(13765175-44d3-4aa2-aa3e-7ed85822fcef,MV3.101 Bus 30,Interval [0, 31622340],false,1 p.u.,CommonVoltageLevel{id='Mittelspannung', nominalVoltage=10 kV, synonymousIds=[Mittelspannung, ms, ms_10kv, mv, mv_10kV], voltageRange=Interval [10 kV, 20 kV)}), NodeModel(79143963-b1bb-4eca-8ba8-d3712f5696c5,MV3.101 Bus 124,Interval [0, 31622340],false,1 p.u.,CommonVoltageLevel{id='Mittelspannung', nominalVoltage=10 kV, synonymousIds=[Mittelspannung, ms, ms_10kv, mv, mv_10kV], voltageRange=Interval [10 kV, 20 kV)}), NodeModel(d873af06-2e6e-4629-9c42-a30b4aeb4fa7,MV3.101 Bus 90,Interval [0, 31622340],false,1 p.u.,CommonVoltageLevel{id='Mittelspannung', nominalVoltage=10 kV, synonymousIds=[Mittelspannung, ms, ms_10kv, mv, mv_10kV], voltageRange=Interval [10 kV, 20 kV)}), NodeModel(fd124414-dbc6-4f6b-90b5-34918ee7b8f6,MV3.101 Bus 45,Interval [0, 31622340],false,1 p.u.,CommonVoltageLevel{id='Mittelspannung', nominalVoltage=10 kV, synonymousIds=[Mittelspannung, ms, ms_10kv, mv, mv_10kV], voltageRange=Interval [10 kV, 20 kV)}), NodeModel(265fe176-27b8-4d24-b805-68a258ef9077,MV3.101 Bus 101,Interval [0, 31622340],false,1 p.u.,CommonVoltageLevel{id='Mittelspannung', nominalVoltage=10 kV, synonymousIds=[Mittelspannung, ms, ms_10kv, mv, mv_10kV], voltageRange=Interval [10 kV, 20 kV)}), NodeModel(a6f270ec-f5e8-4c3d-817d-664539f01387,MV3.101 Bus 22,Interval [0, 31622340],false,1 p.u.,CommonVoltageLevel{id='Mittelspannung', nominalVoltage=10 kV, synonymousIds=[Mittelspannung, ms, ms_10kv, mv, mv_10kV], voltageRange=Interval [10 kV, 20 kV)}), NodeModel(fc4af780-3f60-42fc-bc69-d38fadf92050,MV3.101 Bus 35,Interval [0, 31622340],false,1 p.u.,CommonVoltageLevel{id='Mittelspannung', nominalVoltage=10 kV, synonymousIds=[Mittelspannung, ms, ms_10kv, mv, mv_10kV], voltageRange=Interval [10 kV, 20 kV)}), NodeModel(ee484025-9503-4938-8690-5a7f0861370e,MV3.101 Bus 92,Interval [0, 31622340],false,1 p.u.,CommonVoltageLevel{id='Mittelspannung', nominalVoltage=10 kV, synonymousIds=[Mittelspannung, ms, ms_10kv, mv, mv_10kV], voltageRange=Interval [10 kV, 20 kV)}), NodeModel(af2a653a-5fbb-48f4-94fe-da098579ebe7,MV3.101 Bus 76,Interval [0, 31622340],false,1 p.u.,CommonVoltageLevel{id='Mittelspannung', nominalVoltage=10 kV, synonymousIds=[Mittelspannung, ms, ms_10kv, mv, mv_10kV], voltageRange=Interval [10 kV, 20 kV)}), NodeModel(6e136d5d-19d7-4556-88a3-3dbdd803c6b1,MV3.101 Bus 26,Interval [0, 31622340],false,1 p.u.,CommonVoltageLevel{id='Mittelspannung', nominalVoltage=10 kV, synonymousIds=[Mittelspannung, ms, ms_10kv, mv, mv_10kV], voltageRange=Interval [10 kV, 20 kV)}), NodeModel(51f05c04-30ac-4430-b970-0081f1b6d8b1,MV3.101 Bus 88,Interval [0, 31622340],false,1 p.u.,CommonVoltageLevel{id='Mittelspannung', nominalVoltage=10 kV, synonymousIds=[Mittelspannung, ms, ms_10kv, mv, mv_10kV], voltageRange=Interval [10 kV, 20 kV)}), NodeModel(c9a17f26-fdc3-434d-bd81-ce7cafe7821a,MV3.101 Bus 85,Interval [0, 31622340],false,1 p.u.,CommonVoltageLevel{id='Mittelspannung', nominalVoltage=10 kV, synonymousIds=[Mittelspannung, ms, ms_10kv, mv, mv_10kV], voltageRange=Interval [10 kV, 20 kV)}), NodeModel(97b96777-900f-49d2-90b5-044c38bc371e,MV3.101 Bus 25,Interval [0, 31622340],false,1 p.u.,CommonVoltageLevel{id='Mittelspannung', nominalVoltage=10 kV, synonymousIds=[Mittelspannung, ms, ms_10kv, mv, mv_10kV], voltageRange=Interval [10 kV, 20 kV)}), NodeModel(8f2d1b47-8115-4139-93d2-3ddb6a9119ff,MV3.101 Bus 106,Interval [0, 31622340],false,1 p.u.,CommonVoltageLevel{id='Mittelspannung', nominalVoltage=10 kV, synonymousIds=[Mittelspannung, ms, ms_10kv, mv, mv_10kV], voltageRange=Interval [10 kV, 20 kV)}), NodeModel(c50941eb-01ee-4bd5-be6a-c005af0639df,MV3.101 Bus 28,Interval [0, 31622340],false,1 p.u.,CommonVoltageLevel{id='Mittelspannung', nominalVoltage=10 kV, synonymousIds=[Mittelspannung, ms, ms_10kv, mv, mv_10kV], voltageRange=Interval [10 kV, 20 kV)}), NodeModel(e9333524-c914-4799-961b-cfe5adfc5f52,MV3.101 Bus 143,Interval [0, 31622340],false,1 p.u.,CommonVoltageLevel{id='Mittelspannung', nominalVoltage=10 kV, synonymousIds=[Mittelspannung, ms, ms_10kv, mv, mv_10kV], voltageRange=Interval [10 kV, 20 kV)}), NodeModel(f6761178-0491-441c-b7e6-4126b29fbada,MV3.101 Bus 99,Interval [0, 31622340],false,1 p.u.,CommonVoltageLevel{id='Mittelspannung', nominalVoltage=10 kV, synonymousIds=[Mittelspannung, ms, ms_10kv, mv, mv_10kV], voltageRange=Interval [10 kV, 20 kV)}), NodeModel(a21d803a-04cb-43c3-b531-7111536ef7a0,MV3.101 Bus 49,Interval [0, 31622340],false,1 p.u.,CommonVoltageLevel{id='Mittelspannung', nominalVoltage=10 kV, synonymousIds=[Mittelspannung, ms, ms_10kv, mv, mv_10kV], voltageRange=Interval [10 kV, 20 kV)}), NodeModel(98c94532-d796-4df2-864f-08b93b2244ab,MV3.101 Bus 20,Interval [0, 31622340],false,1 p.u.,CommonVoltageLevel{id='Mittelspannung', nominalVoltage=10 kV, synonymousIds=[Mittelspannung, ms, ms_10kv, mv, mv_10kV], voltageRange=Interval [10 kV, 20 kV)}), NodeModel(41fcce35-df2e-4053-8c3f-2aba19d62a77,MV3.101 Bus 50_1,Interval [0, 31622340],false,1 p.u.,CommonVoltageLevel{id='Mittelspannung', nominalVoltage=10 kV, synonymousIds=[Mittelspannung, ms, ms_10kv, mv, mv_10kV], voltageRange=Interval [10 kV, 20 kV)}), NodeModel(3df23ce8-f8ed-4562-b3d3-3904e1aacfa6,MV3.101 Bus 100,Interval [0, 31622340],false,1 p.u.,CommonVoltageLevel{id='Mittelspannung', nominalVoltage=10 kV, synonymousIds=[Mittelspannung, ms, ms_10kv, mv, mv_10kV], voltageRange=Interval [10 kV, 20 kV)}), NodeModel(b7e2b6d4-7566-417f-b5a3-f2ead1ceed98,MV3.101 Bus 31,Interval [0, 31622340],false,1 p.u.,CommonVoltageLevel{id='Mittelspannung', nominalVoltage=10 kV, synonymousIds=[Mittelspannung, ms, ms_10kv, mv, mv_10kV], voltageRange=Interval [10 kV, 20 kV)}), NodeModel(46f61d50-fb44-491d-a4e6-468102797132,MV3.101 Bus 97,Interval [0, 31622340],false,1 p.u.,CommonVoltageLevel{id='Mittelspannung', nominalVoltage=10 kV, synonymousIds=[Mittelspannung, ms, ms_10kv, mv, mv_10kV], voltageRange=Interval [10 kV, 20 kV)}),
Also it seems like the GridAgent does not handle the event, which he probably should : [GridAgent_135:HandlePowerFlowCalculations] Unhandled event 'Event(StopMessage(false)
[GridAgent_135:HandlePowerFlowCalculations] Unhandled event 'Event(StopMessage(false)
It seems like the
GridAgent
times out after 3 seconds. This makes debugging quite inconvenient. I would opt for waiting longer until we time out.log excerpt: