Differences in output depending on trip or route input
When I run a simulation using a trip file as input (Input ex 1), it generates a route file as output (Output ex 1). I then sort that route file (Output ex 1) by departure time and use it as the input (Input ex 2) for a second run of the exact same simulation (same config except for the input under route-files), which produces a second route file as output (Output ex 2).
Even though the departure times in the original trip file and in Output 1 are identical, some departure times in Output 2 differ when compared to those in Output 1. Additionally, other outputs like speed and density also show differences between the two simulation runs.
The files are attached below: sumo_question.zip Sumo Version: Version v1_23_1+0494-295e2b2f54b
Are these differences to be expected? Is there a way to minimise these differences? Any help is greatly appreciated.
- sorting by departure time is not enough: you need to sort by intended departure time (--vehroute-output.intended-depart)
- sorting by intended departure time is not enough: you need ensure that vehicles departing in the same step have the same ordering in both input files
Option --vehroute-output.sorted doesn't take this ordering into account either but it would be a sensible enhancement. In the meantime, you could take care of this in your own sorting code.
Thanks so much for the quick and clear explanation!
see also #16870