LBNL-UCB-STI / beam

The Framework for Modeling Behavior, Energy, Autonomy, and Mobility in Transportation Systems
https://transportation.lbl.gov/beam
Other
146 stars 57 forks source link

This test “PersonWithPersonalVehiclePlanSpec” causes BeamAgent to shutdown and yet the test passes. #3832

Open haitamlaarabi opened 8 months ago

haitamlaarabi commented 8 months ago
INFO ]: Hour 24.0 completed. Longest delay 0 ms. 0.5(GB)
[INFO ]: Stopping BeamAgentScheduler @ tick 86401. Iteration 0 executed in 0 seconds

[INFO ]: awaitingResponse is empty, nowInSeconds = 86401
[INFO ]: aroundPostStop. Stopping all scheduled tasks...
[INFO ]: awaitingResponse is empty, nowInSeconds = 86401
[INFO ]: aroundPostStop. Stopping all scheduled tasks...
[INFO ]: awaitingResponse is empty, nowInSeconds = 86401
[INFO ]: aroundPostStop. Stopping all scheduled tasks...
[INFO ]: awaitingResponse is empty, nowInSeconds = 86401
[INFO ]: aroundPostStop. Stopping all scheduled tasks...
[INFO ]: awaitingResponse is empty, nowInSeconds = 86401
[INFO ]: aroundPostStop. Stopping all scheduled tasks...
[ERROR]: BeamAgent Got Shutdown. This means actorRef.stop() was called externally, e.g. by supervisor because of an exception. In state PerformingActivity, with stateData BasePersonData(1,None,List(),Vector(),Some(BIKE),Some(bicycle-dummyAgent),BeamLeg(WALK @ 29300,dur:0,path: ) -> [0riders;0boarders;0alighters],1,false,0.0,Vector(),0,Vector(),None,EnrouteData(false,false,Vector()))
[ERROR]: BeamAgent Got Shutdown. This means actorRef.stop() was called externally, e.g. by supervisor because of an exception. In state PerformingActivity, with stateData BasePersonData(1,None,List(),Vector(),Some(CAR),Some(car-1),BeamLeg(WALK @ 29300,dur:0,path: ) -> [0riders;0boarders;0alighters],1,false,0.0,Vector(),0,Vector(),None,EnrouteData(false,false,Vector()))

[ERROR]: BeamAgent Got Shutdown. This means actorRef.stop() was called externally, e.g. by supervisor because of an exception. In state PerformingActivity, with stateData BasePersonData(1,None,List(),Vector(),Some(CAR),Some(car-1),BeamLeg(WALK @ 29300,dur:0,path: ) -> [0riders;0boarders;0alighters],1,false,0.0,Vector(),0,Vector(),None,EnrouteData(false,false,Vector()))

[ERROR]: BeamAgent Got Shutdown. This means actorRef.stop() was called externally, e.g. by supervisor because of an exception. In state PerformingActivity, with stateData BasePersonData(1,None,List(),Vector(),Some(WALK),None,BeamLeg(WALK @ 28800,dur:1814,path: ) -> [0riders;0boarders;0alighters],1,false,0.0,Vector(),0,Vector(),None,EnrouteData(false,false,Vector()))

[ERROR]: BeamAgent Got Shutdown. This means actorRef.stop() was called externally, e.g. by supervisor because of an exception. In state PerformingActivity, with stateData BasePersonData(1,None,List(),Vector(),Some(CAR),Some(car-dummyAgent),BeamLeg(WALK @ 29300,dur:50,path: 80 .. 142) -> [0riders;0boarders;0alighters],1,false,0.0,Vector(),0,Vector(),None,EnrouteData(false,false,Vector()))

[ERROR]: BeamAgent Got Shutdown. This means actorRef.stop() was called externally, e.g. by supervisor because of an exception. In state PerformingActivity, with stateData BasePersonData(1,None,List(),Vector(),Some(CAR),Some(car-2),BeamLeg(WALK @ 29300,dur:0,path: ) -> [0riders;0boarders;0alighters],1,false,0.0,Vector(),0,Vector(),None,EnrouteData(false,false,Vector()))

[ERROR]: BeamAgent Got Shutdown. This means actorRef.stop() was called externally, e.g. by supervisor because of an exception. In state PerformingActivity, with stateData BasePersonData(1,None,List(),Vector(),Some(CAR),Some(car-1),BeamLeg(WALK @ 29000,dur:0,path: ) -> [0riders;0boarders;0alighters],1,false,0.0,Vector(),0,Vector(),None,EnrouteData(false,false,Vector()))

[ERROR]: State: PerformingActivity Event: StopEvent(Shutdown,PerformingActivity,BasePersonData(1,None,List(),Vector(),Some(BIKE),Some(bicycle-dummyAgent),BeamLeg(WALK @ 29300,dur:0,path: ) -> [0riders;0boarders;0alighters],1,false,0.0,Vector(),0,Vector(),None,EnrouteData(false,false,Vector())))
[ERROR]: State: PerformingActivity Event: StopEvent(Shutdown,PerformingActivity,BasePersonData(1,None,List(),Vector(),Some(CAR),Some(car-1),BeamLeg(WALK @ 29300,dur:0,path: ) -> [0riders;0boarders;0alighters],1,false,0.0,Vector(),0,Vector(),None,EnrouteData(false,false,Vector())))
[ERROR]: State: PerformingActivity Event: StopEvent(Shutdown,PerformingActivity,BasePersonData(1,None,List(),Vector(),Some(CAR),Some(car-1),BeamLeg(WALK @ 29300,dur:0,path: ) -> [0riders;0boarders;0alighters],1,false,0.0,Vector(),0,Vector(),None,EnrouteData(false,false,Vector())))
[ERROR]: State: PerformingActivity Event: StopEvent(Shutdown,PerformingActivity,BasePersonData(1,None,List(),Vector(),Some(CAR),Some(car-dummyAgent),BeamLeg(WALK @ 29300,dur:50,path: 80 .. 142) -> [0riders;0boarders;0alighters],1,false,0.0,Vector(),0,Vector(),None,EnrouteData(false,false,Vector())))
[ERROR]: State: PerformingActivity Event: StopEvent(Shutdown,PerformingActivity,BasePersonData(1,None,List(),Vector(),Some(CAR),Some(car-2),BeamLeg(WALK @ 29300,dur:0,path: ) -> [0riders;0boarders;0alighters],1,false,0.0,Vector(),0,Vector(),None,EnrouteData(false,false,Vector())))
[ERROR]: State: PerformingActivity Event: StopEvent(Shutdown,PerformingActivity,BasePersonData(1,None,List(),Vector(),Some(CAR),Some(car-1),BeamLeg(WALK @ 29000,dur:0,path: ) -> [0riders;0boarders;0alighters],1,false,0.0,Vector(),0,Vector(),None,EnrouteData(false,false,Vector())))
[ERROR]: State: PerformingActivity Event: StopEvent(Shutdown,PerformingActivity,BasePersonData(1,None,List(),Vector(),Some(WALK),None,BeamLeg(WALK @ 28800,dur:1814,path: ) -> [0riders;0boarders;0alighters],1,false,0.0,Vector(),0,Vector(),None,EnrouteData(false,false,Vector())))
[ERROR]: Events leading up to this point:
    LogEntry(DrivingInterrupted,BasePersonData(0,Some(EmbodiedBeamTrip(CAR starts 28800 legModes WALK,CAR,CAR,WALK)),List(EmbodiedBeamLeg(BeamLeg(CAR @ 29250,dur:50,path: 142 .. 80),car-1,TRANSIT-TYPE-DEFAULT,true,0.0,true,false,None,0.0), EmbodiedBeamLeg(BeamLeg(WALK @ 29300,dur:50,path: 80 .. 142),body-dummyAgent,BODY-TYPE-DEFAULT,true,0.0,true,false,None,0.0)),Vector(car-dummyAgent, body-dummyAgent),Some(CAR),Some(car-dummyAgent),BeamLeg(CAR @ 29250,dur:50,path: 142 .. 80) -> [0riders;0boarders;0alighters],0,true,0.0,Vector(),0,Vector(),None,EnrouteData(false,false,Vector())),LastLegPassengerSchedule(13))
    LogEntry(PassengerScheduleEmpty,BasePersonData(0,Some(EmbodiedBeamTrip(CAR starts 28800 legModes WALK,CAR,CAR,WALK)),List(EmbodiedBeamLeg(BeamLeg(CAR @ 29250,dur:50,path: 142 .. 80),car-1,TRANSIT-TYPE-DEFAULT,true,0.0,true,false,None,0.0), EmbodiedBeamLeg(BeamLeg(WALK @ 29300,dur:50,path: 80 .. 142),body-dummyAgent,BODY-TYPE-DEFAULT,true,0.0,true,false,None,0.0)),Vector(car-dummyAgent, body-dummyAgent),Some(CAR),Some(car-dummyAgent),BeamLeg(CAR @ 29250,dur:50,path: 142 .. 80) -> [0riders;0boarders;0alighters],1,true,0.0,Vector(),0,Vector(),None,EnrouteData(false,false,Vector())),PassengerScheduleEmptyMessage(SpaceTime([x=167138.40001152368 | y=1116.999999999258],29450),1.0,13,Some(FuelConsumed(0.0,0.0))))
    LogEntry(ProcessingNextLegOrStartActivity,BasePersonData(0,Some(EmbodiedBeamTrip(CAR starts 28800 legModes WALK,CAR,CAR,WALK)),List(EmbodiedBeamLeg(BeamLeg(WALK @ 29300,dur:50,path: 80 .. 142),body-dummyAgent,BODY-TYPE-DEFAULT,true,0.0,true,false,None,0.0)),Vector(body-dummyAgent),Some(CAR),Some(car-dummyAgent),BeamLeg(CAR @ 29250,dur:50,path: 142 .. 80) -> [0riders;0boarders;0alighters],1,true,0.0,Vector(),0,Vector(),None,EnrouteData(false,false,Vector())),StateTimeout)
    LogEntry(ActuallyProcessingNextLegOrStartActivity,BasePersonData(0,Some(EmbodiedBeamTrip(CAR starts 28800 legModes WALK,CAR,CAR,WALK)),List(EmbodiedBeamLeg(BeamLeg(WALK @ 29300,dur:50,path: 80 .. 142),body-dummyAgent,BODY-TYPE-DEFAULT,true,0.0,true,false,None,0.0)),Vector(body-dummyAgent),Some(CAR),Some(car-dummyAgent),BeamLeg(CAR @ 29250,dur:50,path: 142 .. 80) -> [0riders;0boarders;0alighters],1,true,0.0,Vector(),0,Vector(),None,EnrouteData(false,false,Vector())),StateTimeout)
    LogEntry(WaitingToDrive,BasePersonData(0,Some(EmbodiedBeamTrip(CAR starts 28800 legModes WALK,CAR,CAR,WALK)),List(EmbodiedBeamLeg(BeamLeg(WALK @ 29300,dur:50,path: 80 .. 142),body-dummyAgent,BODY-TYPE-DEFAULT,true,0.0,true,false,None,0.0)),Vector(body-dummyAgent),Some(CAR),Some(car-dummyAgent),BeamLeg(WALK @ 29300,dur:50,path: 80 .. 142) -> [0riders;0boarders;0alighters],0,true,0.0,Vector(),0,Vector(),None,EnrouteData(false,false,Vector())),TriggerWithId(StartLegTrigger(29300,BeamLeg(WALK @ 29300,dur:50,path: 80 .. 142)),14))
    LogEntry(Driving,LiterallyDrivingData(BasePersonData(0,Some(EmbodiedBeamTrip(CAR starts 28800 legModes WALK,CAR,CAR,WALK)),List(EmbodiedBeamLeg(BeamLeg(WALK @ 29300,dur:50,path: 80 .. 142),body-dummyAgent,BODY-TYPE-DEFAULT,true,0.0,true,false,None,0.0)),Vector(body-dummyAgent),Some(CAR),Some(car-dummyAgent),BeamLeg(WALK @ 29300,dur:50,path: 80 .. 142) -> [0riders;0boarders;0alighters],0,true,0.0,Vector(),0,Vector(),None,EnrouteData(false,false,Vector())),29350.0,Some(29300)),TriggerWithId(EndLegTrigger(29350),15))
    LogEntry(DrivingInterrupted,BasePersonData(0,Some(EmbodiedBeamTrip(CAR starts 28800 legModes WALK,CAR,CAR,WALK)),List(EmbodiedBeamLeg(BeamLeg(WALK @ 29300,dur:50,path: 80 .. 142),body-dummyAgent,BODY-TYPE-DEFAULT,true,0.0,true,false,None,0.0)),Vector(body-dummyAgent),Some(CAR),Some(car-dummyAgent),BeamLeg(WALK @ 29300,dur:50,path: 80 .. 142) -> [0riders;0boarders;0alighters],0,true,0.0,Vector(),0,Vector(),None,EnrouteData(false,false,Vector())),LastLegPassengerSchedule(15))
    LogEntry(PassengerScheduleEmpty,BasePersonData(0,Some(EmbodiedBeamTrip(CAR starts 28800 legModes WALK,CAR,CAR,WALK)),List(EmbodiedBeamLeg(BeamLeg(WALK @ 29300,dur:50,path: 80 .. 142),body-dummyAgent,BODY-TYPE-DEFAULT,true,0.0,true,false,None,0.0)),Vector(body-dummyAgent),Some(CAR),Some(car-dummyAgent),BeamLeg(WALK @ 29300,dur:50,path: 80 .. 142) -> [0riders;0boarders;0alighters],1,true,0.0,Vector(),0,Vector(),None,EnrouteData(false,false,Vector())),PassengerScheduleEmptyMessage(SpaceTime([x=169346.40002223448 | y=876.7535999988836],29500),0.0,15,Some(FuelConsumed(60078.41499999999,0.0))))
    LogEntry(ProcessingNextLegOrStartActivity,BasePersonData(0,Some(EmbodiedBeamTrip(CAR starts 28800 legModes WALK,CAR,CAR,WALK)),List(),Vector(),Some(CAR),Some(car-dummyAgent),BeamLeg(WALK @ 29300,dur:50,path: 80 .. 142) -> [0riders;0boarders;0alighters],1,true,0.0,Vector(),0,Vector(),None,EnrouteData(false,false,Vector())),NotifyVehicleIdle(body-dummyAgent,dummyAgent,SpaceTime([x=169346.40002223448 | y=876.7535999988836],29350),BeamLeg(WALK @ 29300,dur:50,path: 80 .. 142) -> [0riders;0boarders;0alighters],BeamVehicleState(2149921.585,None,40564.55820754717,None,None,None),None,15))
    LogEntry(ProcessingNextLegOrStartActivity,BasePersonData(0,Some(EmbodiedBeamTrip(CAR starts 28800 legModes WALK,CAR,CAR,WALK)),List(),Vector(),Some(CAR),Some(car-dummyAgent),BeamLeg(WALK @ 29300,dur:50,path: 80 .. 142) -> [0riders;0boarders;0alighters],1,true,0.0,Vector(),0,Vector(),None,EnrouteData(false,false,Vector())),StateTimeout)
    LogEntry(ActuallyProcessingNextLegOrStartActivity,BasePersonData(0,Some(EmbodiedBeamTrip(CAR starts 28800 legModes WALK,CAR,CAR,WALK)),List(),Vector(),Some(CAR),Some(car-dummyAgent),BeamLeg(WALK @ 29300,dur:50,path: 80 .. 142) -> [0riders;0boarders;0alighters],1,true,0.0,Vector(),0,Vector(),None,EnrouteData(false,false,Vector())),StateTimeout)
    LogEntry(PerformingActivity,BasePersonData(1,None,List(),Vector(),Some(CAR),Some(car-dummyAgent),BeamLeg(WALK @ 29300,dur:50,path: 80 .. 142) -> [0riders;0boarders;0alighters],1,false,0.0,Vector(),0,Vector(),None,EnrouteData(false,false,Vector())),TriggerWithId(ActivityEndTrigger(61200),16))
[ERROR]
nikolayilyin commented 8 months ago

all tests that are uses src/test/scala/beam/utils/SimRunnerForTest.scala produces dying actors

haitamlaarabi commented 8 months ago

all tests that are uses src/test/scala/beam/utils/SimRunnerForTest.scala produces dying actors

@nikolayilyin Umm. I wonder what might be causing that? Could it be because we are not clearing everything in the beforeEach section?