Skip to content

Commit

Permalink
adding failing test, refs eclipse-sumo#21 eclipse-sumo#7696
Browse files Browse the repository at this point in the history
  • Loading branch information
behrisch committed Oct 16, 2020
1 parent 4a18efe commit bb6da1d
Show file tree
Hide file tree
Showing 18 changed files with 915 additions and 1 deletion.
30 changes: 30 additions & 0 deletions tests/sumo/extended/state/load_collision_stopped/errors.sumo
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
Warning: Missing yellow phase in tlLogic '0', program 'freaky' for tl-index 0 when switching to phase 1
Warning: Vehicle 'always_right.0'; collision with vehicle 'horizontal.0', lane='2o_0', gap=-5.00, time=27.00 stage=move.
Warning: Vehicle 'always_right.1'; collision with vehicle 'horizontal.1', lane='2o_0', gap=-5.00, time=31.00 stage=move.
Warning: Vehicle 'always_right.2'; collision with vehicle 'horizontal.2', lane='2o_0', gap=-5.00, time=35.00 stage=move.
Warning: Vehicle 'always_right.3'; collision with vehicle 'horizontal.3', lane='2o_0', gap=-5.00, time=39.00 stage=move.
Warning: Teleporting vehicle 'always_right.0' after earlier collision, lane='2o_0, time=79.00.
Warning: Vehicle 'always_right.0' teleports beyond arrival edge '2o', time 79.00.
Warning: Teleporting vehicle 'horizontal.0' after earlier collision, lane='2o_0, time=80.00.
Warning: Vehicle 'horizontal.0' teleports beyond arrival edge '2o', time 80.00.
Warning: Teleporting vehicle 'always_right.1' after earlier collision, lane='2o_0, time=83.00.
Warning: Vehicle 'always_right.1' teleports beyond arrival edge '2o', time 83.00.
Warning: Teleporting vehicle 'horizontal.1' after earlier collision, lane='2o_0, time=84.00.
Warning: Vehicle 'horizontal.1' teleports beyond arrival edge '2o', time 84.00.
Warning: Teleporting vehicle 'horizontal.2' after earlier collision, lane='2o_0, time=87.00.
Warning: Vehicle 'horizontal.2' teleports beyond arrival edge '2o', time 87.00.
Warning: Teleporting vehicle 'always_right.2' after earlier collision, lane='2o_0, time=87.00.
Warning: Vehicle 'always_right.2' teleports beyond arrival edge '2o', time 87.00.
Warning: Teleporting vehicle 'always_right.3' after earlier collision, lane='2o_0, time=90.00.
Warning: Vehicle 'always_right.3' teleports beyond arrival edge '2o', time 90.00.
Warning: Teleporting vehicle 'horizontal.3' after earlier collision, lane='2o_0, time=91.00.
Warning: Vehicle 'horizontal.3' teleports beyond arrival edge '2o', time 91.00.
Warning: Vehicle 'always_right.4'; collision with vehicle 'horizontal.4', lane='2o_0', gap=-5.00, time=93.00 stage=move.
Warning: Teleporting vehicle 'horizontal.4' after earlier collision, lane='2o_0, time=144.00.
Warning: Vehicle 'horizontal.4' teleports beyond arrival edge '2o', time 144.00.
Warning: Teleporting vehicle 'always_right.4' after earlier collision, lane='2o_0, time=144.00.
Warning: Vehicle 'always_right.4' teleports beyond arrival edge '2o', time 144.00.
Warning: Teleporting vehicle 'horizontal.5'; waited too long (yield), lane='1si_1', time=447.00.
Warning: Vehicle 'horizontal.5' ends teleporting on edge '2o', time 447.00.
Warning: Teleporting vehicle 'always_right.5'; waited too long (yield), lane='3si_0', time=448.00.
Warning: Vehicle 'always_right.5' ends teleporting on edge '2o', time 448.00.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<additional>
<tlLogic id="0" type="static" programID="freaky" offset="0">
<phase duration="100" state="GGGGGGGGGGGGGGGG"/>
<phase duration="400" state="rrrrrrrrrrrrrrrr"/>
</tlLogic>
</additional>
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/routes_file.xsd">
<vType id="SUMO_DEFAULT_TYPE" accel="0.8" decel="4.5" sigma="0" length="3" minGap="2" maxSpeed="70"/>
<route id="always_right" edges="3si 2o"/>
<flow id="always_right" type="SUMO_DEFAULT_TYPE" route="always_right" begin="0" end="10000" period="1"/>
<route id="horizontal" edges="1si 2o"/>
<flow id="horizontal" type="SUMO_DEFAULT_TYPE" route="horizontal" begin="0" end="10000" period="1"/>
</routes>
179 changes: 179 additions & 0 deletions tests/sumo/extended/state/load_collision_stopped/input_state.xml

Large diffs are not rendered by default.

155 changes: 155 additions & 0 deletions tests/sumo/extended/state/load_collision_stopped/net.net.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,155 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on Fri 15 Nov 2013 09:33:42 AM CET by Netedit Version dev-SVN-r15111
This data file and the accompanying materials
are made available under the terms of the Eclipse Public License v2.0
which accompanies this distribution, and is available at
http://www.eclipse.org/legal/epl-v20.html
SPDX-License-Identifier: EPL-2.0
<configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/netedit.exeConfiguration.xsd">
<input>
<sumo-net-file value="net.net.xml"/>
</input>
<output>
<output-file value="net.net.xml"/>
</output>
<processing>
<no-internal-links value="true"/>
<no-turnarounds value="true"/>
<offset.disable-normalization value="true"/>
</processing>
</configuration>
-->

<net version="0.13" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/net_file.xsd">

<location netOffset="500.00,500.00" convBoundary="0.00,0.00,1000.00,1000.00" origBoundary="-500.00,-500.00,500.00,500.00" projParameter="!"/>

<edge id="1fi" from="1" to="m1" priority="2">
<lane id="1fi_0" index="0" speed="11.11" length="250.00" shape="0.00,498.35 248.50,498.35"/>
</edge>
<edge id="1o" from="0" to="1" priority="1">
<lane id="1o_0" index="0" speed="11.11" length="500.00" shape="488.65,501.65 0.00,501.65"/>
</edge>
<edge id="1si" from="m1" to="0" priority="3">
<lane id="1si_0" index="0" speed="13.89" length="250.00" shape="251.50,491.75 488.65,491.75"/>
<lane id="1si_1" index="1" speed="13.89" length="250.00" shape="251.50,495.05 488.65,495.05"/>
<lane id="1si_2" index="2" speed="13.89" length="250.00" shape="251.50,498.35 488.65,498.35"/>
</edge>
<edge id="2fi" from="2" to="m2" priority="2">
<lane id="2fi_0" index="0" speed="11.11" length="250.00" shape="1000.00,501.65 751.50,501.65"/>
</edge>
<edge id="2o" from="0" to="2" priority="1">
<lane id="2o_0" index="0" speed="11.11" length="500.00" shape="511.35,498.35 1000.00,498.35"/>
</edge>
<edge id="2si" from="m2" to="0" priority="3">
<lane id="2si_0" index="0" speed="13.89" length="250.00" shape="748.50,508.25 511.35,508.25"/>
<lane id="2si_1" index="1" speed="13.89" length="250.00" shape="748.50,504.95 511.35,504.95"/>
<lane id="2si_2" index="2" speed="13.89" length="250.00" shape="748.50,501.65 511.35,501.65"/>
</edge>
<edge id="3fi" from="3" to="m3" priority="2">
<lane id="3fi_0" index="0" speed="11.11" length="250.00" shape="501.65,0.00 501.65,248.50"/>
</edge>
<edge id="3o" from="0" to="3" priority="1">
<lane id="3o_0" index="0" speed="11.11" length="500.00" shape="498.35,488.65 498.35,0.00"/>
</edge>
<edge id="3si" from="m3" to="0" priority="3">
<lane id="3si_0" index="0" speed="13.89" length="250.00" shape="508.25,251.50 508.25,488.65"/>
<lane id="3si_1" index="1" speed="13.89" length="250.00" shape="504.95,251.50 504.95,488.65"/>
<lane id="3si_2" index="2" speed="13.89" length="250.00" shape="501.65,251.50 501.65,488.65"/>
</edge>
<edge id="4fi" from="4" to="m4" priority="2">
<lane id="4fi_0" index="0" speed="11.11" length="250.00" shape="498.35,1000.00 498.35,751.50"/>
</edge>
<edge id="4o" from="0" to="4" priority="1">
<lane id="4o_0" index="0" speed="11.11" length="500.00" shape="501.65,511.35 501.65,1000.00"/>
</edge>
<edge id="4si" from="m4" to="0" priority="3">
<lane id="4si_0" index="0" speed="13.89" length="250.00" shape="491.75,748.50 491.75,511.35"/>
<lane id="4si_1" index="1" speed="13.89" length="250.00" shape="495.05,748.50 495.05,511.35"/>
<lane id="4si_2" index="2" speed="13.89" length="250.00" shape="498.35,748.50 498.35,511.35"/>
</edge>

<tlLogic id="0" type="static" programID="0" offset="0">
<phase duration="31" state="GGggrrrrGGggrrrr"/>
<phase duration="4" state="yyggrrrryyggrrrr"/>
<phase duration="6" state="rrGGrrrrrrGGrrrr"/>
<phase duration="4" state="rryyrrrrrryyrrrr"/>
<phase duration="31" state="rrrrGGggrrrrGGgg"/>
<phase duration="4" state="rrrryyggrrrryygg"/>
<phase duration="6" state="rrrrrrGGrrrrrrGG"/>
<phase duration="4" state="rrrrrryyrrrrrryy"/>
</tlLogic>

<junction id="0" type="traffic_light_unregulated" x="500.00" y="500.00" incLanes="4si_0 4si_1 4si_2 2si_0 2si_1 2si_2 3si_0 3si_1 3si_2 1si_0 1si_1 1si_2" intLanes="" shape="490.15,511.35 503.25,511.35 511.35,509.85 511.35,496.75 509.85,488.65 496.75,488.65 488.65,490.15 488.65,503.25"/>
<junction id="1" type="priority" x="0.00" y="500.00" incLanes="1o_0" intLanes="" shape="-0.00,499.95 -0.00,496.75 0.00,503.25 0.00,500.05">
<request index="0" response="0" foes="0"/>
</junction>
<junction id="2" type="priority" x="1000.00" y="500.00" incLanes="2o_0" intLanes="" shape="1000.00,500.05 1000.00,503.25 1000.00,496.75 1000.00,499.95">
<request index="0" response="0" foes="0"/>
</junction>
<junction id="3" type="priority" x="500.00" y="0.00" incLanes="3o_0" intLanes="" shape="500.05,-0.00 503.25,-0.00 496.75,0.00 499.95,0.00">
<request index="0" response="0" foes="0"/>
</junction>
<junction id="4" type="priority" x="500.00" y="1000.00" incLanes="4o_0" intLanes="" shape="499.95,1000.00 496.75,1000.00 503.25,1000.00 500.05,1000.00">
<request index="0" response="0" foes="0"/>
</junction>
<junction id="m1" type="priority" x="250.00" y="500.00" incLanes="1fi_0" intLanes="" shape="251.50,499.95 251.50,490.15 248.50,496.75 248.50,499.95">
<request index="0" response="000" foes="000"/>
<request index="1" response="000" foes="000"/>
<request index="2" response="000" foes="000"/>
</junction>
<junction id="m2" type="priority" x="750.00" y="500.00" incLanes="2fi_0" intLanes="" shape="751.50,503.25 751.50,500.05 748.50,500.05 748.50,509.85">
<request index="0" response="000" foes="000"/>
<request index="1" response="000" foes="000"/>
<request index="2" response="000" foes="000"/>
</junction>
<junction id="m3" type="priority" x="500.00" y="250.00" incLanes="3fi_0" intLanes="" shape="500.05,251.50 509.85,251.50 503.25,248.50 500.05,248.50">
<request index="0" response="000" foes="000"/>
<request index="1" response="000" foes="000"/>
<request index="2" response="000" foes="000"/>
</junction>
<junction id="m4" type="priority" x="500.00" y="750.00" incLanes="4fi_0" intLanes="" shape="496.75,751.50 499.95,751.50 499.95,748.50 490.15,748.50">
<request index="0" response="000" foes="000"/>
<request index="1" response="000" foes="000"/>
<request index="2" response="000" foes="000"/>
</junction>

<connection from="1fi" to="1si" fromLane="0" toLane="0" dir="s" state="M"/>
<connection from="1fi" to="1si" fromLane="0" toLane="1" dir="s" state="M"/>
<connection from="1fi" to="1si" fromLane="0" toLane="2" dir="s" state="M"/>
<connection from="1o" to="1fi" fromLane="0" toLane="0" dir="t" state="M"/>
<connection from="1si" to="3o" fromLane="0" toLane="0" tl="0" linkIndex="12" dir="r" state="o"/>
<connection from="1si" to="2o" fromLane="1" toLane="0" tl="0" linkIndex="13" dir="s" state="o"/>
<connection from="1si" to="4o" fromLane="2" toLane="0" tl="0" linkIndex="14" dir="l" state="o"/>
<connection from="1si" to="1o" fromLane="2" toLane="0" tl="0" linkIndex="15" dir="t" state="o"/>
<connection from="2fi" to="2si" fromLane="0" toLane="0" dir="s" state="M"/>
<connection from="2fi" to="2si" fromLane="0" toLane="1" dir="s" state="M"/>
<connection from="2fi" to="2si" fromLane="0" toLane="2" dir="s" state="M"/>
<connection from="2o" to="2fi" fromLane="0" toLane="0" dir="t" state="M"/>
<connection from="2si" to="4o" fromLane="0" toLane="0" tl="0" linkIndex="4" dir="r" state="o"/>
<connection from="2si" to="1o" fromLane="1" toLane="0" tl="0" linkIndex="5" dir="s" state="o"/>
<connection from="2si" to="3o" fromLane="2" toLane="0" tl="0" linkIndex="6" dir="l" state="o"/>
<connection from="2si" to="2o" fromLane="2" toLane="0" tl="0" linkIndex="7" dir="t" state="o"/>
<connection from="3fi" to="3si" fromLane="0" toLane="0" dir="s" state="M"/>
<connection from="3fi" to="3si" fromLane="0" toLane="1" dir="s" state="M"/>
<connection from="3fi" to="3si" fromLane="0" toLane="2" dir="s" state="M"/>
<connection from="3o" to="3fi" fromLane="0" toLane="0" dir="t" state="M"/>
<connection from="3si" to="2o" fromLane="0" toLane="0" tl="0" linkIndex="8" dir="r" state="o"/>
<connection from="3si" to="4o" fromLane="1" toLane="0" tl="0" linkIndex="9" dir="s" state="o"/>
<connection from="3si" to="1o" fromLane="2" toLane="0" tl="0" linkIndex="10" dir="l" state="o"/>
<connection from="3si" to="3o" fromLane="2" toLane="0" tl="0" linkIndex="11" dir="t" state="o"/>
<connection from="4fi" to="4si" fromLane="0" toLane="0" dir="s" state="M"/>
<connection from="4fi" to="4si" fromLane="0" toLane="1" dir="s" state="M"/>
<connection from="4fi" to="4si" fromLane="0" toLane="2" dir="s" state="M"/>
<connection from="4o" to="4fi" fromLane="0" toLane="0" dir="t" state="M"/>
<connection from="4si" to="1o" fromLane="0" toLane="0" tl="0" linkIndex="0" dir="r" state="o"/>
<connection from="4si" to="3o" fromLane="1" toLane="0" tl="0" linkIndex="1" dir="s" state="o"/>
<connection from="4si" to="2o" fromLane="2" toLane="0" tl="0" linkIndex="2" dir="l" state="o"/>
<connection from="4si" to="4o" fromLane="2" toLane="0" tl="0" linkIndex="3" dir="t" state="o"/>

</net>
5 changes: 5 additions & 0 deletions tests/sumo/extended/state/load_collision_stopped/options.sumo
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
--no-step-log -v --net-file=net.net.xml --additional-files
input_additional.add.xml --route-files input_routes.rou.xml --end 500
--collision.stoptime 50 --default.emergencydecel decel
--load-state input_state.xml
--stop-output stopinfos.xml
17 changes: 17 additions & 0 deletions tests/sumo/extended/state/load_collision_stopped/output.sumo
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Loading net-file from 'net.net.xml' ... done (2ms).
Loading additional-files from 'input_additional.add.xml' ...
done (1ms).
Loading done.
Simulation version v1_7_0+0582-8fbee7662e started with time: 0.00
Simulation ended at time: 500.00
Reason: The final simulation step has been reached.
Performance:
Duration: 0.22s
Real time factor: 2314.81
UPS: 224824.074074
Vehicles:
Inserted: 160 (Loaded: 1000)
Running: 148
Waiting: 840
Teleports: 7 (Collisions: 5, Yield: 2)

55 changes: 55 additions & 0 deletions tests/sumo/extended/state/load_collision_stopped/stopinfos.sumo
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on Fri Oct 16 22:00:09 2020 by Eclipse SUMO sumo Version v1_7_0+0582-8fbee7662e
This data file and the accompanying materials
are made available under the terms of the Eclipse Public License v2.0
which accompanies this distribution, and is available at
http://www.eclipse.org/legal/epl-v20.html
SPDX-License-Identifier: EPL-2.0
<configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/sumoConfiguration.xsd">
<input>
<net-file value="net.net.xml"/>
<route-files value="input_routes.rou.xml"/>
<additional-files value="input_additional.add.xml"/>
</input>
<output>
<write-license value="true"/>
<stop-output value="stopinfos.xml"/>
<save-state.times value="50"/>
<save-state.files value="state.xml"/>
</output>
<time>
<end value="500"/>
</time>
<processing>
<collision.stoptime value="50"/>
<default.speeddev value="0"/>
<default.emergencydecel value="decel"/>
</processing>
<report>
<verbose value="true"/>
<xml-validation value="never"/>
<xml-validation.routes value="never"/>
<no-step-log value="true"/>
</report>
</configuration>
-->

<stops xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/stopinfo_file.xsd">
<stopinfo id="always_right.0" type="SUMO_DEFAULT_TYPE" lane="2o_0" pos="19.83" parking="0" started="29.00" ended="79.00" delay="79.00" initialPersons="0" loadedPersons="0" unloadedPersons="0" initialContainers="0" loadedContainers="0" unloadedContainers="0"/>
<stopinfo id="horizontal.0" type="SUMO_DEFAULT_TYPE" lane="2o_0" pos="19.83" parking="0" started="30.00" ended="80.00" delay="80.00" initialPersons="0" loadedPersons="0" unloadedPersons="0" initialContainers="0" loadedContainers="0" unloadedContainers="0"/>
<stopinfo id="always_right.1" type="SUMO_DEFAULT_TYPE" lane="2o_0" pos="14.83" parking="0" started="33.00" ended="83.00" delay="83.00" initialPersons="0" loadedPersons="0" unloadedPersons="0" initialContainers="0" loadedContainers="0" unloadedContainers="0"/>
<stopinfo id="horizontal.1" type="SUMO_DEFAULT_TYPE" lane="2o_0" pos="14.83" parking="0" started="34.00" ended="84.00" delay="84.00" initialPersons="0" loadedPersons="0" unloadedPersons="0" initialContainers="0" loadedContainers="0" unloadedContainers="0"/>
<stopinfo id="horizontal.2" type="SUMO_DEFAULT_TYPE" lane="2o_0" pos="9.83" parking="0" started="37.00" ended="87.00" delay="87.00" initialPersons="0" loadedPersons="0" unloadedPersons="0" initialContainers="0" loadedContainers="0" unloadedContainers="0"/>
<stopinfo id="always_right.2" type="SUMO_DEFAULT_TYPE" lane="2o_0" pos="9.83" parking="0" started="37.00" ended="87.00" delay="87.00" initialPersons="0" loadedPersons="0" unloadedPersons="0" initialContainers="0" loadedContainers="0" unloadedContainers="0"/>
<stopinfo id="always_right.3" type="SUMO_DEFAULT_TYPE" lane="2o_0" pos="2.58" parking="0" started="40.00" ended="90.00" delay="90.00" initialPersons="0" loadedPersons="0" unloadedPersons="0" initialContainers="0" loadedContainers="0" unloadedContainers="0"/>
<stopinfo id="horizontal.3" type="SUMO_DEFAULT_TYPE" lane="2o_0" pos="4.83" parking="0" started="41.00" ended="91.00" delay="91.00" initialPersons="0" loadedPersons="0" unloadedPersons="0" initialContainers="0" loadedContainers="0" unloadedContainers="0"/>
<stopinfo id="horizontal.4" type="SUMO_DEFAULT_TYPE" lane="2o_0" pos="2.38" parking="0" started="94.00" ended="144.00" delay="144.00" initialPersons="0" loadedPersons="0" unloadedPersons="0" initialContainers="0" loadedContainers="0" unloadedContainers="0"/>
<stopinfo id="always_right.4" type="SUMO_DEFAULT_TYPE" lane="2o_0" pos="0.13" parking="0" started="94.00" ended="144.00" delay="144.00" initialPersons="0" loadedPersons="0" unloadedPersons="0" initialContainers="0" loadedContainers="0" unloadedContainers="0"/>
</stops>
Loading

0 comments on commit bb6da1d

Please sign in to comment.