When something goes wrong#
Most problems announce themselves: a warning at the end of a run, an error before it starts, or a number in the results that looks wrong. This page goes from symptom to cause. Every warning and error is listed in Warnings and errors.
Trips are missing from the results#
Symptom |
Cause |
Where to look |
What to change |
|---|---|---|---|
|
Trips depart outside the simulation window and were left out |
The window, or the departures. See The simulation window |
|
|
No mode a trip may use reaches its destination within the limits |
|
The limit named for each reason. See Modes |
Many |
Trips still travelling when the window ends |
The departures’ times; |
A longer window, or departures earlier in it |
|
A trip states a mode whose vehicle its traveller does not have at the origin (a car trip of a class without a car) |
The trips’ |
The class’s ownership, or the trips’ modes. Check that classes were drawn only for the trips that did not have one |
|
The roads do not connect origin and destination |
|
The network |
Traffic stands still#
At the full model (flow_level=4), queues take road space and can spill back up to junctions, and in the worst case
lock in a loop.
openmobisim.Run.report_gridlock()says what stood still when the window ended: the vehicles still on the network or waiting to enter, and the closed loops of links waiting on one another.
The point queue (flow_level=2, the default) cannot lock, because its queues take no road space. Its delays are
optimistic where a real queue would have backed up. openmobisim.Run.report_spillback() lists those links:
the ones where the most traffic on the link at once exceeded what it can store, by more than a few cars. See
The loading.
The run did not converge, or converged poorly#
run.convergedsays whethermsamet its stopping rule before its iteration limit.run.convergence_verdictjudges the gap:goodbelow 5 %,acceptablebelow 15 %,poorabove.
The two measure different things. A run can stop as converged while its verdict is only acceptable, because the
stopping rule does not read the same gap. run.convergence() gives every iteration’s measures. More iterations
(equilibration_options={"iterations": …}), or a smaller gap_tolerance, let a run settle further. See
Equilibration.
A run is slow#
run.timings() and timings.csv say where the time went, stage by stage and iteration by iteration. See
Running faster.
An option is refused#
A misspelt name is refused with the list of valid names; a value out of range, with the reason. See Calibrating parameters.
Results differ from a colleague’s#
Compare the fingerprints. If they differ, so did the inputs: manifest.json records every setting. If they match but
the numbers differ slightly, compare the platforms in the two manifests. The bit-for-bit guarantee holds on one
platform. See Reproducibility.