diff --git a/tests/scenarios/README.md b/tests/scenarios/README.md index a98cc6a35..6f3eaa308 100644 --- a/tests/scenarios/README.md +++ b/tests/scenarios/README.md @@ -430,6 +430,12 @@ vehicle holds one command at a time. The AI knows nothing of the genset: it clos and drives the timetable on it, at most 520 kW x 0.85 = 442 kW at the wheels (`traction_power`). `e6actad_catenary_td_timetable` is the same variant without the events: it stays on the catenary and takes several times that, which shows the check tells the two apart. +`e6actad_genset_out_of_fuel` is the genset run with a tank of 1 l on the genset (`GensetFuelCapacity=1` added to the +`Power:` line). The genset runs dry some 25 s after the train leaves, about 200 m out, at full power: the log says +`Genset of : out of fuel`, the genset stops, the line breaker opens on the falling voltage and from 300 m on +the train takes no traction force (`traction` `at_most` 0). The AI doesn't know why it lost the power (stage 3 of +#536): it coasts on, and on 2026-12-03 it rolled past Przystanek at 20 km/h without braking, so the case doesn't +check where the train ends. ### Heavy trains diff --git a/tests/scenarios/cases/e6actad_genset_out_of_fuel.json b/tests/scenarios/cases/e6actad_genset_out_of_fuel.json new file mode 100644 index 000000000..491895412 --- /dev/null +++ b/tests/scenarios/cases/e6actad_genset_out_of_fuel.json @@ -0,0 +1,28 @@ +{ + "description": "GE#536 stage 2: the E6ACTad of e6actad_genset_td_timetable with a genset tank of 1 l (GensetFuelCapacity=1). Switched to its genset by the scenery before it leaves, it starts on it and the genset runs dry some 25 s after the start, about 200 m out, at full power: the log says out of fuel, the genset stops, the line breaker opens on the falling voltage and the train takes no traction force from there on. The AI knows nothing of the genset (stage 3): the case checks only what the vehicle does, not where the coasting train ends. Makes its own E6ACTad for the run (vehicle_variants g6, as e6actad_genset_td_timetable, with the tank).", + "base_scenery": "td.scn", + "time": "10:34", + "fragment": "td_timetable_genset.scn", + "vehicle_variants": [ + { "name": "g6", "from": "pkp/e6act_v2/e6actad", "fiz_from": "pkp/e6act_v2/e6acta.fiz.inc", "replace": [ + ["InactiveCabFlag=15", "InactiveCabFlag=15 GensetStart=Manual"], + ["PhysicalLayout=3", "PhysicalLayout=3 GensetPower=520 GensetVoltage=3000 GensetIdleRPM=700 GensetMaxRPM=1800 GensetStartTime=8 GensetSpinUpTime=3 GensetPmaxRatio=0.85 GensetFuelCapacity=1"] + ] } + ], + "vars": { + "consist": "node -1 0 {{vehicle}} dynamic pkp\\e6act_v2 e6actad-017 {{variant_g6}} 0 headdriver 0 0 enddynamic" + }, + "ini": ["gfxrenderer null"], + "track_events": { + "tdo_n1734": "event0 autotest_genset" + }, + "duration": 300, + "timeout": 600, + "checks": [ + { "type": "log_contains", "pattern": "Genset of autotest_e6actad_genset_out_of_fuel: running" }, + { "type": "log_contains", "pattern": "Genset of autotest_e6actad_genset_out_of_fuel: out of fuel" }, + { "type": "starts", "min_speed": 5, "within": 180 }, + { "type": "traction_power", "max_kw": 451, "min_peak_kw": 380 }, + { "type": "traction", "from_distance": 300, "to_distance": 1200, "at_most": 0 } + ] +}