From c70949bc66f0a37dcb3c7996206f8c5672ab8ce2 Mon Sep 17 00:00:00 2001 From: Josh <39366189+M-Colley@users.noreply.github.com> Date: Thu, 3 Dec 2026 19:21:02 +0000 Subject: [PATCH 1/3] Test clock-formatted trip records and statistics #7889 Signed-off-by: Josh <39366189+M-Colley@users.noreply.github.com> Co-authored-by: Codex --- .../human_readable/input_routes.rou.xml | 27 +++++++++++++++++++ .../statistic/human_readable/options.sumo | 3 +++ tests/sumo/output/statistic/testsuite.sumo | 3 +++ 3 files changed, 33 insertions(+) create mode 100644 tests/sumo/output/statistic/human_readable/input_routes.rou.xml create mode 100644 tests/sumo/output/statistic/human_readable/options.sumo diff --git a/tests/sumo/output/statistic/human_readable/input_routes.rou.xml b/tests/sumo/output/statistic/human_readable/input_routes.rou.xml new file mode 100644 index 000000000000..57fc18b2bee3 --- /dev/null +++ b/tests/sumo/output/statistic/human_readable/input_routes.rou.xml @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/sumo/output/statistic/human_readable/options.sumo b/tests/sumo/output/statistic/human_readable/options.sumo new file mode 100644 index 000000000000..47ba2aa5b327 --- /dev/null +++ b/tests/sumo/output/statistic/human_readable/options.sumo @@ -0,0 +1,3 @@ +--net-file net2.net.xml --route-files input_routes.rou.xml +--human-readable-time --step-length 0.5 --no-step-log --duration-log.statistics --time-to-teleport -1 +--statistic-output statistic.xml --tripinfo-output tripinfos.xml diff --git a/tests/sumo/output/statistic/testsuite.sumo b/tests/sumo/output/statistic/testsuite.sumo index 229103d65023..c686b8eef72a 100644 --- a/tests/sumo/output/statistic/testsuite.sumo +++ b/tests/sumo/output/statistic/testsuite.sumo @@ -5,3 +5,6 @@ with_undeparted with_durationLogStats bikes_with_undeparted persons + +# Format trip statistics with the human-readable time option +human_readable From f8b6488e121e088a6d2f7c70fe7442bafbe346b2 Mon Sep 17 00:00:00 2001 From: Josh <39366189+M-Colley@users.noreply.github.com> Date: Thu, 3 Dec 2026 19:21:03 +0000 Subject: [PATCH 2/3] Apply one time format to trip intervals and statistics #7889 Signed-off-by: Josh <39366189+M-Colley@users.noreply.github.com> Co-authored-by: Codex --- data/xsd/statistic_file.xsd | 7 +- data/xsd/tripinfo_file.xsd | 20 ++-- .../Using_the_Command_Line_Applications.md | 2 + src/microsim/devices/MSDevice_Tripinfo.cpp | 96 ++++++++++++------- src/microsim/devices/MSDevice_Tripinfo.h | 3 + src/microsim/transportables/MSPerson.cpp | 3 +- .../transportables/MSStageDriving.cpp | 8 +- .../transportables/MSStageTranship.cpp | 3 +- .../transportables/MSStageWaiting.cpp | 3 +- .../transportables/MSStageWalking.cpp | 6 +- .../transportables/MSTransportable.cpp | 9 +- 11 files changed, 99 insertions(+), 61 deletions(-) diff --git a/data/xsd/statistic_file.xsd b/data/xsd/statistic_file.xsd index 96a12aeaa26c..9543dc41b5be 100644 --- a/data/xsd/statistic_file.xsd +++ b/data/xsd/statistic_file.xsd @@ -64,7 +64,7 @@ - + @@ -78,7 +78,7 @@ - + @@ -88,7 +88,7 @@ - + @@ -98,6 +98,7 @@ + diff --git a/data/xsd/tripinfo_file.xsd b/data/xsd/tripinfo_file.xsd index c93ecdcdd2ef..ee6667b598bf 100644 --- a/data/xsd/tripinfo_file.xsd +++ b/data/xsd/tripinfo_file.xsd @@ -39,7 +39,7 @@ - + @@ -115,8 +115,8 @@ - - + + @@ -132,8 +132,8 @@ - - + + @@ -149,14 +149,14 @@ - + - + @@ -170,7 +170,7 @@ - + @@ -186,14 +186,14 @@ - + - + diff --git a/docs/web/docs/Basics/Using_the_Command_Line_Applications.md b/docs/web/docs/Basics/Using_the_Command_Line_Applications.md index 8bdf99206d48..9ed43ff06e4d 100644 --- a/docs/web/docs/Basics/Using_the_Command_Line_Applications.md +++ b/docs/web/docs/Basics/Using_the_Command_Line_Applications.md @@ -376,6 +376,8 @@ By default, all time values written by sumo are in seconds. All applications and Setting the option **--human-readable-time** also affects how some time values are formatted in sumo-gui dialogs (i.e. breakpoints). +Trip information uses this format for timestamps. Trip intervals with an absolute value of at least one hour also use this format in trip information, console statistics, and **--statistic-output**. Shorter intervals use seconds. A negative time starts with a minus sign. + ## Input All time values in options and xml input may always be given as seconds or in "HH:MM:SS" or "DD:HH:MM:SS" format. diff --git a/src/microsim/devices/MSDevice_Tripinfo.cpp b/src/microsim/devices/MSDevice_Tripinfo.cpp index d5b377a1c5d4..4cd623cc62b7 100644 --- a/src/microsim/devices/MSDevice_Tripinfo.cpp +++ b/src/microsim/devices/MSDevice_Tripinfo.cpp @@ -357,7 +357,7 @@ MSDevice_Tripinfo::generateOutput(OutputDevice* tripinfoOut) const { assert(param.depart <= SIMSTEP || param.departProcedure != DepartDefinition::GIVEN); departDelay = SIMSTEP - param.depart; } - os.writeAttr("departDelay", time2string(departDelay)); + os.writeAttr("departDelay", formatTimeInterval(departDelay)); os.writeAttr("arrival", time2string(myArrivalTime)); os.writeAttr("arrivalLane", myArrivalLane); os.writeAttr("arrivalPos", myArrivalPos); @@ -365,12 +365,12 @@ MSDevice_Tripinfo::generateOutput(OutputDevice* tripinfoOut) const { os.writeAttr("arrivalPosLat", myArrivalPosLat); } os.writeAttr("arrivalSpeed", myArrivalSpeed); - os.writeAttr("duration", time2string(duration)); + os.writeAttr("duration", formatTimeInterval(duration)); os.writeAttr("routeLength", routeLength); - os.writeAttr(SUMO_ATTR_WAITINGTIME, time2string(myWaitingTime)); + os.writeAttr(SUMO_ATTR_WAITINGTIME, formatTimeInterval(myWaitingTime)); os.writeAttr(SUMO_ATTR_WAITINGCOUNT, myWaitingCount); - os.writeAttr(SUMO_ATTR_STOPTIME, time2string(myStoppingTime)); - os.writeAttr(SUMO_ATTR_TIMELOSS, time2string(timeLoss)); + os.writeAttr(SUMO_ATTR_STOPTIME, formatTimeInterval(myStoppingTime)); + os.writeAttr(SUMO_ATTR_TIMELOSS, formatTimeInterval(timeLoss)); os.writeAttr("rerouteNo", myHolder.getNumberReroutes()); os.writeAttr("devices", toString(myHolder.getDevices())); os.writeAttr("vType", myHolder.getVehicleType().getID()); @@ -488,6 +488,34 @@ MSDevice_Tripinfo::addRideTransportData(const bool isPerson, const double distan } +static bool +useHumanReadableStatisticTime(double seconds) { + return gHumanReadableTime && std::abs(seconds) >= STEPS2TIME(SUMOTime_HOUR); +} + + +static std::string +formatStatisticTime(double seconds) { + return useHumanReadableStatisticTime(seconds) ? time2string(TIME2STEPS(seconds), true) : toString(seconds); +} + + +std::string +MSDevice_Tripinfo::formatTimeInterval(SUMOTime time) { + return time2string(time, gHumanReadableTime && (time <= -SUMOTime_HOUR || time >= SUMOTime_HOUR)); +} + + +static void +writeStatisticTime(OutputDevice& out, const std::string& attribute, double seconds) { + if (useHumanReadableStatisticTime(seconds)) { + out.writeAttr(attribute, time2string(TIME2STEPS(seconds), true)); + } else { + out.writeAttr(attribute, seconds); + } +} + + std::string MSDevice_Tripinfo::printStatistics() { std::ostringstream msg; @@ -497,31 +525,31 @@ MSDevice_Tripinfo::printStatistics() { msg << "Statistics (avg of " << myVehicleCount << "):\n"; msg << " RouteLength: " << getAvgRouteLength() << "\n" << " Speed: " << getAvgTripSpeed() << "\n" - << " Duration: " << getAvgDuration() << "\n" - << " WaitingTime: " << getAvgWaitingTime() << "\n" - << " TimeLoss: " << getAvgTimeLoss() << "\n" - << " DepartDelay: " << getAvgDepartDelay() << "\n"; + << " Duration: " << formatStatisticTime(getAvgDuration()) << "\n" + << " WaitingTime: " << formatStatisticTime(getAvgWaitingTime()) << "\n" + << " TimeLoss: " << formatStatisticTime(getAvgTimeLoss()) << "\n" + << " DepartDelay: " << formatStatisticTime(getAvgDepartDelay()) << "\n"; } if (myBikeCount > 0) { msg << "Bike Statistics (avg of " << myBikeCount << "):\n" << " RouteLength: " << getAvgBikeRouteLength() << "\n" << " Speed: " << getAvgBikeTripSpeed() << "\n" - << " Duration: " << getAvgBikeDuration() << "\n" - << " WaitingTime: " << getAvgBikeWaitingTime() << "\n" - << " TimeLoss: " << getAvgBikeTimeLoss() << "\n" - << " DepartDelay: " << getAvgBikeDepartDelay() << "\n"; + << " Duration: " << formatStatisticTime(getAvgBikeDuration()) << "\n" + << " WaitingTime: " << formatStatisticTime(getAvgBikeWaitingTime()) << "\n" + << " TimeLoss: " << formatStatisticTime(getAvgBikeTimeLoss()) << "\n" + << " DepartDelay: " << formatStatisticTime(getAvgBikeDepartDelay()) << "\n"; if (myVehicleCount > 0 && myWaitingDepartDelay >= 0) { msg << "Statistics (avg of " << (myVehicleCount + myBikeCount) << "):\n"; } } if (myWaitingDepartDelay >= 0) { - msg << " DepartDelayWaiting: " << getAvgDepartDelayWaiting() << "\n"; + msg << " DepartDelayWaiting: " << formatStatisticTime(getAvgDepartDelayWaiting()) << "\n"; } if (myWalkCount > 0) { msg << "Pedestrian Statistics (avg of " << myWalkCount << " walks):\n" << " RouteLength: " << getAvgWalkRouteLength() << "\n" - << " Duration: " << getAvgWalkDuration() << "\n" - << " TimeLoss: " << getAvgWalkTimeLoss() << "\n"; + << " Duration: " << formatStatisticTime(getAvgWalkDuration()) << "\n" + << " TimeLoss: " << formatStatisticTime(getAvgWalkTimeLoss()) << "\n"; } printRideStatistics(msg, "Ride", "rides", 0); printRideStatistics(msg, "Transport", "transports", 1); @@ -532,9 +560,9 @@ void MSDevice_Tripinfo::printRideStatistics(std::ostringstream& msg, const std::string& category, const std::string& modeName, const int index) { if (myRideCount[index] > 0) { msg << category << " Statistics (avg of " << myRideCount[index] << " " << modeName << "):\n"; - msg << " WaitingTime: " << STEPS2TIME(myTotalRideWaitingTime[index] / myRideCount[index]) << "\n"; + msg << " WaitingTime: " << formatStatisticTime(STEPS2TIME(myTotalRideWaitingTime[index] / myRideCount[index])) << "\n"; msg << " RouteLength: " << myTotalRideRouteLength[index] / myRideCount[index] << "\n"; - msg << " Duration: " << STEPS2TIME(myTotalRideDuration[index] / myRideCount[index]) << "\n"; + msg << " Duration: " << formatStatisticTime(STEPS2TIME(myTotalRideDuration[index] / myRideCount[index])) << "\n"; if (myRideBusCount[index] > 0) { msg << " Bus: " << myRideBusCount[index] << "\n"; } @@ -562,31 +590,31 @@ MSDevice_Tripinfo::writeStatistics(OutputDevice& od) { od.writeAttr("count", myVehicleCount); od.writeAttr("routeLength", getAvgRouteLength()); od.writeAttr("speed", getAvgTripSpeed()); - od.writeAttr("duration", getAvgDuration()); - od.writeAttr("waitingTime", getAvgWaitingTime()); - od.writeAttr("timeLoss", getAvgTimeLoss()); - od.writeAttr("departDelay", getAvgDepartDelay()); - od.writeAttr("departDelayWaiting", getAvgDepartDelayWaiting()); - od.writeAttr("totalTravelTime", time2string(myTotalDuration)); - od.writeAttr("totalDepartDelay", time2string(TIME2STEPS(getTotalDepartDelay() + getTotalBikeDepartDelay()))); + writeStatisticTime(od, "duration", getAvgDuration()); + writeStatisticTime(od, "waitingTime", getAvgWaitingTime()); + writeStatisticTime(od, "timeLoss", getAvgTimeLoss()); + writeStatisticTime(od, "departDelay", getAvgDepartDelay()); + writeStatisticTime(od, "departDelayWaiting", getAvgDepartDelayWaiting()); + od.writeAttr("totalTravelTime", formatTimeInterval(myTotalDuration)); + od.writeAttr("totalDepartDelay", formatTimeInterval(TIME2STEPS(getTotalDepartDelay() + getTotalBikeDepartDelay()))); od.closeTag(); if (myBikeCount > 0) { od.openTag("bikeTripStatistics"); od.writeAttr("count", myBikeCount); od.writeAttr("routeLength", getAvgBikeRouteLength()); od.writeAttr("speed", getAvgBikeTripSpeed()); - od.writeAttr("duration", getAvgBikeDuration()); - od.writeAttr("waitingTime", getAvgBikeWaitingTime()); - od.writeAttr("timeLoss", getAvgBikeTimeLoss()); - od.writeAttr("departDelay", getAvgBikeDepartDelay()); - od.writeAttr("totalTravelTime", time2string(myTotalBikeDuration)); + writeStatisticTime(od, "duration", getAvgBikeDuration()); + writeStatisticTime(od, "waitingTime", getAvgBikeWaitingTime()); + writeStatisticTime(od, "timeLoss", getAvgBikeTimeLoss()); + writeStatisticTime(od, "departDelay", getAvgBikeDepartDelay()); + od.writeAttr("totalTravelTime", formatTimeInterval(myTotalBikeDuration)); od.closeTag(); } od.openTag("pedestrianStatistics"); od.writeAttr("number", myWalkCount); od.writeAttr("routeLength", getAvgWalkRouteLength()); - od.writeAttr("duration", getAvgWalkDuration()); - od.writeAttr("timeLoss", getAvgWalkTimeLoss()); + writeStatisticTime(od, "duration", getAvgWalkDuration()); + writeStatisticTime(od, "timeLoss", getAvgWalkTimeLoss()); od.closeTag(); writeRideStatistics(od, "rideStatistics", 0); writeRideStatistics(od, "transportStatistics", 1); @@ -597,9 +625,9 @@ MSDevice_Tripinfo::writeRideStatistics(OutputDevice& od, const std::string& cate od.openTag(category); od.writeAttr("number", myRideCount[index]); if (myRideCount[index] > 0) { - od.writeAttr("waitingTime", STEPS2TIME(myTotalRideWaitingTime[index] / myRideCount[index])); + writeStatisticTime(od, "waitingTime", STEPS2TIME(myTotalRideWaitingTime[index] / myRideCount[index])); od.writeAttr("routeLength", myTotalRideRouteLength[index] / myRideCount[index]); - od.writeAttr("duration", STEPS2TIME(myTotalRideDuration[index] / myRideCount[index])); + writeStatisticTime(od, "duration", STEPS2TIME(myTotalRideDuration[index] / myRideCount[index])); od.writeAttr("bus", myRideBusCount[index]); od.writeAttr("train", myRideRailCount[index]); od.writeAttr("taxi", myRideTaxiCount[index]); diff --git a/src/microsim/devices/MSDevice_Tripinfo.h b/src/microsim/devices/MSDevice_Tripinfo.h index a07a827bc7ed..03a47c9e5732 100644 --- a/src/microsim/devices/MSDevice_Tripinfo.h +++ b/src/microsim/devices/MSDevice_Tripinfo.h @@ -71,6 +71,9 @@ class MSDevice_Tripinfo : public MSVehicleDevice { static void addRideTransportData(const bool isPerson, const double distance, const SUMOTime duration, const SUMOVehicleClass vClass, const std::string& line, const SUMOTime waitingTime); + /// @brief format a trip interval using clock notation for magnitudes of at least one hour + static std::string formatTimeInterval(SUMOTime time); + /// @brief get statistics for printing to stdout static std::string printStatistics(); diff --git a/src/microsim/transportables/MSPerson.cpp b/src/microsim/transportables/MSPerson.cpp index c65a472dd655..4c1a80127835 100644 --- a/src/microsim/transportables/MSPerson.cpp +++ b/src/microsim/transportables/MSPerson.cpp @@ -30,6 +30,7 @@ #include #include #include +#include #include #include #include @@ -128,7 +129,7 @@ MSPerson::MSPersonStage_Access::tripInfoOutput(OutputDevice& os, const MSTranspo } os.writeAttr("depart", time2string(myDeparted)); os.writeAttr("arrival", myArrived >= 0 ? time2string(myArrived) : "-1"); - os.writeAttr("duration", myArrived > 0 ? time2string(getDuration()) : "-1"); + os.writeAttr("duration", myArrived > 0 ? MSDevice_Tripinfo::formatTimeInterval(getDuration()) : "-1"); os.writeAttr("routeLength", myDist); os.closeTag(); } diff --git a/src/microsim/transportables/MSStageDriving.cpp b/src/microsim/transportables/MSStageDriving.cpp index 1859b8c1a9f3..868e47ccc68f 100644 --- a/src/microsim/transportables/MSStageDriving.cpp +++ b/src/microsim/transportables/MSStageDriving.cpp @@ -386,15 +386,15 @@ MSStageDriving::tripInfoOutput(OutputDevice& os, const MSTransportable* const tr const SUMOTime duration = myArrived - myDeparted; MSDevice_Tripinfo::addRideTransportData(transportable->isPerson(), myVehicleDistance, duration, myVehicleVClass, myVehicleLine, waitingTime); os.openTag(transportable->isPerson() ? "ride" : "transport"); - os.writeAttr("waitingTime", waitingTime != SUMOTime_MAX ? time2string(waitingTime) : "-1"); + os.writeAttr("waitingTime", waitingTime != SUMOTime_MAX ? MSDevice_Tripinfo::formatTimeInterval(waitingTime) : "-1"); os.writeAttr("vehicle", myVehicleID.empty() ? "NULL" : myVehicleID); os.writeAttr("depart", myDeparted >= 0 ? time2string(myDeparted) : "-1"); os.writeAttr("arrival", myArrived >= 0 ? time2string(myArrived) : "-1"); os.writeAttr("arrivalPos", myArrived >= 0 ? toString(getArrivalPos()) : "-1"); - os.writeAttr("duration", myArrived >= 0 ? time2string(duration) : - (myDeparted >= 0 ? time2string(now - myDeparted) : "-1")); + os.writeAttr("duration", myArrived >= 0 ? MSDevice_Tripinfo::formatTimeInterval(duration) : + (myDeparted >= 0 ? MSDevice_Tripinfo::formatTimeInterval(now - myDeparted) : "-1")); os.writeAttr(SUMO_ATTR_ROUTELENGTH, myArrived >= 0 || myVehicle != nullptr ? toString(getDistance()) : "-1"); - os.writeAttr("timeLoss", myArrived >= 0 ? time2string(getTimeLoss(transportable)) : "-1"); + os.writeAttr("timeLoss", myArrived >= 0 ? MSDevice_Tripinfo::formatTimeInterval(getTimeLoss(transportable)) : "-1"); os.closeTag(); } diff --git a/src/microsim/transportables/MSStageTranship.cpp b/src/microsim/transportables/MSStageTranship.cpp index 2088dfef1e08..64cd48f86476 100644 --- a/src/microsim/transportables/MSStageTranship.cpp +++ b/src/microsim/transportables/MSStageTranship.cpp @@ -28,6 +28,7 @@ #include #include #include +#include #include #include #include @@ -105,7 +106,7 @@ MSStageTranship::tripInfoOutput(OutputDevice& os, const MSTransportable* const) os.writeAttr("departPos", myDepartPos); os.writeAttr("arrival", time2string(myArrived)); os.writeAttr("arrivalPos", myArrivalPos); - os.writeAttr("duration", myArrived >= 0 ? time2string(getDuration()) : "-1"); + os.writeAttr("duration", myArrived >= 0 ? MSDevice_Tripinfo::formatTimeInterval(getDuration()) : "-1"); os.writeAttr("routeLength", getDistance()); os.writeAttr("maxSpeed", mySpeed); os.closeTag(); diff --git a/src/microsim/transportables/MSStageWaiting.cpp b/src/microsim/transportables/MSStageWaiting.cpp index 9cd56fdc6309..4c7330b65963 100644 --- a/src/microsim/transportables/MSStageWaiting.cpp +++ b/src/microsim/transportables/MSStageWaiting.cpp @@ -28,6 +28,7 @@ #include #include #include +#include #include #include #include @@ -122,7 +123,7 @@ void MSStageWaiting::tripInfoOutput(OutputDevice& os, const MSTransportable* const) const { if (myType != MSStageType::WAITING_FOR_DEPART) { os.openTag(SUMO_TAG_STOP); - os.writeAttr("duration", getDuration() != SUMOTime_MAX ? time2string(getDuration()) : "-1"); + os.writeAttr("duration", getDuration() != SUMOTime_MAX ? MSDevice_Tripinfo::formatTimeInterval(getDuration()) : "-1"); os.writeAttr("arrival", time2string(myArrived)); os.writeAttr("arrivalPos", toString(myArrivalPos)); os.writeAttr("actType", myActType == "" ? "waiting" : myActType); diff --git a/src/microsim/transportables/MSStageWalking.cpp b/src/microsim/transportables/MSStageWalking.cpp index 5992f9f5e987..8c6808c35537 100644 --- a/src/microsim/transportables/MSStageWalking.cpp +++ b/src/microsim/transportables/MSStageWalking.cpp @@ -289,11 +289,11 @@ MSStageWalking::tripInfoOutput(OutputDevice& os, const MSTransportable* const pe os.writeAttr("arrival", myArrived >= 0 ? time2string(myArrived) : "-1"); os.writeAttr("arrivalPos", myArrived >= 0 ? toString(myArrivalPos) : "-1"); os.writeAttr("duration", myDeparted < 0 ? "-1" : - time2string(myArrived >= 0 ? duration : MSNet::getInstance()->getCurrentTimeStep() - myDeparted)); + MSDevice_Tripinfo::formatTimeInterval(myArrived >= 0 ? duration : MSNet::getInstance()->getCurrentTimeStep() - myDeparted)); os.writeAttr("routeLength", myArrived >= 0 ? toString(distance) : "-1"); - os.writeAttr("timeLoss", time2string(timeLoss)); + os.writeAttr("timeLoss", MSDevice_Tripinfo::formatTimeInterval(timeLoss)); os.writeAttr("maxSpeed", maxSpeed); - os.writeAttr("waitingTime", time2string(getTotalWaitingTime())); + os.writeAttr("waitingTime", MSDevice_Tripinfo::formatTimeInterval(getTotalWaitingTime())); os.closeTag(); } diff --git a/src/microsim/transportables/MSTransportable.cpp b/src/microsim/transportables/MSTransportable.cpp index 524924f05e9b..8c8bef1895f0 100644 --- a/src/microsim/transportables/MSTransportable.cpp +++ b/src/microsim/transportables/MSTransportable.cpp @@ -31,6 +31,7 @@ #include #include #include +#include #include #include #include @@ -267,10 +268,10 @@ MSTransportable::tripInfoOutput(OutputDevice& os) const { travelTimeOK = false; } } - os.writeAttr(SUMO_ATTR_DURATION, durationOK ? time2string(duration) : "-1"); - os.writeAttr(SUMO_ATTR_WAITINGTIME, waitingTimeOK ? time2string(waitingTime) : "-1"); - os.writeAttr(SUMO_ATTR_TIMELOSS, timeLossOK ? time2string(timeLoss) : "-1"); - os.writeAttr(SUMO_ATTR_TRAVELTIME, travelTimeOK ? time2string(travelTime) : "-1"); + os.writeAttr(SUMO_ATTR_DURATION, durationOK ? MSDevice_Tripinfo::formatTimeInterval(duration) : "-1"); + os.writeAttr(SUMO_ATTR_WAITINGTIME, waitingTimeOK ? MSDevice_Tripinfo::formatTimeInterval(waitingTime) : "-1"); + os.writeAttr(SUMO_ATTR_TIMELOSS, timeLossOK ? MSDevice_Tripinfo::formatTimeInterval(timeLoss) : "-1"); + os.writeAttr(SUMO_ATTR_TRAVELTIME, travelTimeOK ? MSDevice_Tripinfo::formatTimeInterval(travelTime) : "-1"); for (MSStage* const i : *myPlan) { i->tripInfoOutput(os, this); } From 727e3cb572f8cad3dc1d375268118f8cbad88bdd Mon Sep 17 00:00:00 2001 From: Josh <39366189+M-Colley@users.noreply.github.com> Date: Thu, 3 Dec 2026 19:21:04 +0000 Subject: [PATCH 3/3] Record formatted trip intervals and schema results #7889 Signed-off-by: Josh <39366189+M-Colley@users.noreply.github.com> Co-authored-by: Codex --- .../sumo/bugs/8xxx/ticket8912/tripinfos.sumo | 2 +- .../bugs/8xxx/ticket8912/tripinfos.sumo.meso | 2 +- .../statistic/human_readable/errors.sumo | 0 .../statistic/human_readable/output.sumo | 47 +++++++++++ .../statistic/human_readable/statistic.sumo | 60 +++++++++++++++ .../statistic/human_readable/tripinfos.sumo | 65 ++++++++++++++++ .../human_readable_times/tripinfos.sumo | 4 +- .../human_readable_times/tripinfos.sumo.meso | 4 +- .../tests/sim_outputs/errors.tools | 77 ------------------- 9 files changed, 178 insertions(+), 83 deletions(-) create mode 100644 tests/sumo/output/statistic/human_readable/errors.sumo create mode 100644 tests/sumo/output/statistic/human_readable/output.sumo create mode 100644 tests/sumo/output/statistic/human_readable/statistic.sumo create mode 100644 tests/sumo/output/statistic/human_readable/tripinfos.sumo diff --git a/tests/sumo/bugs/8xxx/ticket8912/tripinfos.sumo b/tests/sumo/bugs/8xxx/ticket8912/tripinfos.sumo index 1eae3a2083ee..b03b26249fbe 100644 --- a/tests/sumo/bugs/8xxx/ticket8912/tripinfos.sumo +++ b/tests/sumo/bugs/8xxx/ticket8912/tripinfos.sumo @@ -39,5 +39,5 @@ SPDX-License-Identifier: EPL-2.0 --> - + diff --git a/tests/sumo/bugs/8xxx/ticket8912/tripinfos.sumo.meso b/tests/sumo/bugs/8xxx/ticket8912/tripinfos.sumo.meso index 500f3de218ac..6648984f89c9 100644 --- a/tests/sumo/bugs/8xxx/ticket8912/tripinfos.sumo.meso +++ b/tests/sumo/bugs/8xxx/ticket8912/tripinfos.sumo.meso @@ -48,5 +48,5 @@ SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later --> - + diff --git a/tests/sumo/output/statistic/human_readable/errors.sumo b/tests/sumo/output/statistic/human_readable/errors.sumo new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/tests/sumo/output/statistic/human_readable/output.sumo b/tests/sumo/output/statistic/human_readable/output.sumo new file mode 100644 index 000000000000..0ef2b9706ae6 --- /dev/null +++ b/tests/sumo/output/statistic/human_readable/output.sumo @@ -0,0 +1,47 @@ +Loading net-file from 'net2.net.xml' ... done (7ms). +Loading route-files incrementally from 'input_routes.rou.xml' +Loading done. +Simulation version v1.28.0 started with time: 00:00:00.00. +Simulation ended at time: 02:00:37.50. +Reason: All vehicles have left the simulation. +Performance: + Duration: 0.04s + Real time factor: 176524 + UPS: 355365.853659 + UPS-Persons: 528829.268293 +Vehicles: + Inserted: 3 + Running: 0 + Waiting: 0 +Persons: + Inserted: 2 + Running: 0 +Containers: + Inserted: 1 + Running: 0 +Statistics (avg of 2): + RouteLength: 193.85 + Speed: 8.55 + Duration: 01:00:24.25 + WaitingTime: 0.00 + TimeLoss: 5.47 + DepartDelay: 2.50 +Bike Statistics (avg of 1): + RouteLength: 190.00 + Speed: 5.21 + Duration: 36.50 + WaitingTime: 0.00 + TimeLoss: 2.07 + DepartDelay: 5.00 +Pedestrian Statistics (avg of 1 walks): + RouteLength: 5.00 + Duration: 4.00 + TimeLoss: 0.40 +Ride Statistics (avg of 1 rides): + WaitingTime: 3.50 + RouteLength: 152.95 + Duration: 02:00:22.00 +Transport Statistics (avg of 1 transports): + WaitingTime: 1.50 + RouteLength: 192.80 + Duration: 19.00 diff --git a/tests/sumo/output/statistic/human_readable/statistic.sumo b/tests/sumo/output/statistic/human_readable/statistic.sumo new file mode 100644 index 000000000000..4561ea057a73 --- /dev/null +++ b/tests/sumo/output/statistic/human_readable/statistic.sumo @@ -0,0 +1,60 @@ + + + + + + + + + + + + + + + + + diff --git a/tests/sumo/output/statistic/human_readable/tripinfos.sumo b/tests/sumo/output/statistic/human_readable/tripinfos.sumo new file mode 100644 index 000000000000..a2239f1c8ece --- /dev/null +++ b/tests/sumo/output/statistic/human_readable/tripinfos.sumo @@ -0,0 +1,65 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/sumo/output/tripinfo/human_readable_times/tripinfos.sumo b/tests/sumo/output/tripinfo/human_readable_times/tripinfos.sumo index fa8bd9972ff7..f6229443eb2d 100644 --- a/tests/sumo/output/tripinfo/human_readable_times/tripinfos.sumo +++ b/tests/sumo/output/tripinfo/human_readable_times/tripinfos.sumo @@ -39,6 +39,6 @@ SPDX-License-Identifier: EPL-2.0 --> - - + + diff --git a/tests/sumo/output/tripinfo/human_readable_times/tripinfos.sumo.meso b/tests/sumo/output/tripinfo/human_readable_times/tripinfos.sumo.meso index 962bcf470786..20295b4969f7 100644 --- a/tests/sumo/output/tripinfo/human_readable_times/tripinfos.sumo.meso +++ b/tests/sumo/output/tripinfo/human_readable_times/tripinfos.sumo.meso @@ -47,6 +47,6 @@ SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later --> - - + + diff --git a/tests/tools/xml/schemaCheck/tests/sim_outputs/errors.tools b/tests/tools/xml/schemaCheck/tests/sim_outputs/errors.tools index 407e598b8e15..3fe2d4580fa1 100644 --- a/tests/tools/xml/schemaCheck/tests/sim_outputs/errors.tools +++ b/tests/tools/xml/schemaCheck/tests/sim_outputs/errors.tools @@ -1,12 +1,3 @@ -sumo/basic/container/triggered/tripinfos.sumo.meso:44:0:ERROR:SCHEMASV:SCHEMAV_CVC_DATATYPE_VALID_1_2_3: Element 'containerinfo', attribute 'waitingTime': '-2.60' is not a valid value of the union type 'timeTypeWithErrorValue'. -sumo/basic/container/triggered/tripinfos.sumo.meso:45:0:ERROR:SCHEMASV:SCHEMAV_CVC_DATATYPE_VALID_1_2_3: Element 'transport', attribute 'waitingTime': '-2.60' is not a valid value of the union type 'timeTypeWithErrorValue'. -sumo/basic/container/triggered_oldStyle/tripinfos.sumo.meso:44:0:ERROR:SCHEMASV:SCHEMAV_CVC_DATATYPE_VALID_1_2_3: Element 'containerinfo', attribute 'waitingTime': '-2.60' is not a valid value of the union type 'timeTypeWithErrorValue'. -sumo/basic/container/triggered_oldStyle/tripinfos.sumo.meso:45:0:ERROR:SCHEMASV:SCHEMAV_CVC_DATATYPE_VALID_1_2_3: Element 'transport', attribute 'waitingTime': '-2.60' is not a valid value of the union type 'timeTypeWithErrorValue'. -sumo/cf_model/IDM/insert_with_speedLimit_speedFactor0.8/tripinfos.sumo:35:0:ERROR:SCHEMASV:SCHEMAV_CVC_DATATYPE_VALID_1_2_3: Element 'tripinfo', attribute 'timeLoss': '-0.06' is not a valid value of the union type 'timeType'. -sumo/extended/rerouter/person/closing_walk_ride_walk/tripinfos.sumo:47:0:ERROR:SCHEMASV:SCHEMAV_CVC_DATATYPE_VALID_1_2_3: Element 'personinfo', attribute 'timeLoss': '-155.12' is not a valid value of the union type 'timeTypeWithErrorValue'. -sumo/extended/rerouter/person/closing_walk_ride_walk/tripinfos.sumo.meso:51:0:ERROR:SCHEMASV:SCHEMAV_CVC_DATATYPE_VALID_1_2_3: Element 'personinfo', attribute 'timeLoss': '-178.92' is not a valid value of the union type 'timeTypeWithErrorValue'. -sumo/extended/rerouter/person/closing_walk_ride_walk_detour/tripinfos.sumo:47:0:ERROR:SCHEMASV:SCHEMAV_CVC_DATATYPE_VALID_1_2_3: Element 'personinfo', attribute 'timeLoss': '-149.54' is not a valid value of the union type 'timeTypeWithErrorValue'. -sumo/extended/rerouter/person/closing_walk_ride_walk_detour/tripinfos.sumo.meso:51:0:ERROR:SCHEMASV:SCHEMAV_CVC_DATATYPE_VALID_1_2_3: Element 'personinfo', attribute 'timeLoss': '-168.09' is not a valid value of the union type 'timeTypeWithErrorValue'. sumo/extended/state/load_shifted/tripinfos.sumo.meso:51:0:ERROR:SCHEMASV:SCHEMAV_CVC_DATATYPE_VALID_1_2_3: Element 'tripinfo', attribute 'depart': '-10.00' is not a valid value of the union type 'timeTypeWithErrorValue'. sumo/extended/state/load_shifted/tripinfos.sumo:49:0:ERROR:SCHEMASV:SCHEMAV_CVC_DATATYPE_VALID_1_2_3: Element 'tripinfo', attribute 'depart': '-10.00' is not a valid value of the union type 'timeTypeWithErrorValue'. sumo/output/emission-output/attributes/rawdump.sumo:50:0:ERROR:SCHEMASV:SCHEMAV_CVC_COMPLEX_TYPE_4: Element 'vehicle': The attribute 'eclass' is required but missing. @@ -421,74 +412,6 @@ sumo/output/examples/cross3ltl_meandata_amitran_filter/aggregated300.sumo.meso:1 sumo/output/examples/cross3ltl_meandata_amitran_filter/aggregated300.sumo.meso:195:0:ERROR:SCHEMASV:SCHEMAV_CVC_COMPLEX_TYPE_4: Element 'actorConfig': The attribute 'averageSpeed' is required but missing. sumo/output/examples/cross3ltl_meandata_amitran_filter/aggregated300.sumo.meso:197:0:ERROR:SCHEMASV:SCHEMAV_CVC_COMPLEX_TYPE_4: Element 'link': The attribute 'averageSpeed' is required but missing. sumo/output/examples/cross3ltl_meandata_amitran_filter/aggregated300.sumo.meso:198:0:ERROR:SCHEMASV:SCHEMAV_CVC_COMPLEX_TYPE_4: Element 'actorConfig': The attribute 'averageSpeed' is required but missing. -sumo/pedestrian_model/jupedsim/identical_start_pos/tripinfos.sumo:45:0:ERROR:SCHEMASV:SCHEMAV_CVC_DATATYPE_VALID_1_2_3: Element 'personinfo', attribute 'timeLoss': '-0.93' is not a valid value of the union type 'timeTypeWithErrorValue'. -sumo/pedestrian_model/jupedsim/larger_net/tripinfos.sumo:52:0:ERROR:SCHEMASV:SCHEMAV_CVC_DATATYPE_VALID_1_2_3: Element 'personinfo', attribute 'timeLoss': '-1.86' is not a valid value of the union type 'timeTypeWithErrorValue'. -sumo/pedestrian_model/jupedsim/larger_net/tripinfos.sumo:94:0:ERROR:SCHEMASV:SCHEMAV_CVC_DATATYPE_VALID_1_2_3: Element 'personinfo', attribute 'timeLoss': '-3.35' is not a valid value of the union type 'timeTypeWithErrorValue'. -sumo/pedestrian_model/jupedsim/two_edges/tripinfos.sumo:45:0:ERROR:SCHEMASV:SCHEMAV_CVC_DATATYPE_VALID_1_2_3: Element 'personinfo', attribute 'timeLoss': '-0.93' is not a valid value of the union type 'timeTypeWithErrorValue'. -sumo/pedestrian_model/jupedsim/vanishing_area/tripinfos.sumo:47:0:ERROR:SCHEMASV:SCHEMAV_CVC_DATATYPE_VALID_1_2_3: Element 'personinfo', attribute 'timeLoss': '-4.66' is not a valid value of the union type 'timeTypeWithErrorValue'. -sumo/pedestrian_model/jupedsim/vanishing_area/tripinfos.sumo:50:0:ERROR:SCHEMASV:SCHEMAV_CVC_DATATYPE_VALID_1_2_3: Element 'personinfo', attribute 'timeLoss': '-3.16' is not a valid value of the union type 'timeTypeWithErrorValue'. -sumo/pedestrian_model/jupedsim/vanishing_area/tripinfos.sumo:53:0:ERROR:SCHEMASV:SCHEMAV_CVC_DATATYPE_VALID_1_2_3: Element 'personinfo', attribute 'timeLoss': '-4.66' is not a valid value of the union type 'timeTypeWithErrorValue'. -sumo/pedestrian_model/jupedsim/vanishing_area/tripinfos.sumo:56:0:ERROR:SCHEMASV:SCHEMAV_CVC_DATATYPE_VALID_1_2_3: Element 'personinfo', attribute 'timeLoss': '-3.66' is not a valid value of the union type 'timeTypeWithErrorValue'. -sumo/pedestrian_model/jupedsim/vanishing_area/tripinfos.sumo:59:0:ERROR:SCHEMASV:SCHEMAV_CVC_DATATYPE_VALID_1_2_3: Element 'personinfo', attribute 'timeLoss': '-2.16' is not a valid value of the union type 'timeTypeWithErrorValue'. -sumo/pedestrian_model/jupedsim/vanishing_area/tripinfos.sumo:62:0:ERROR:SCHEMASV:SCHEMAV_CVC_DATATYPE_VALID_1_2_3: Element 'personinfo', attribute 'timeLoss': '-2.16' is not a valid value of the union type 'timeTypeWithErrorValue'. -sumo/pedestrian_model/jupedsim/vanishing_area/tripinfos.sumo:65:0:ERROR:SCHEMASV:SCHEMAV_CVC_DATATYPE_VALID_1_2_3: Element 'personinfo', attribute 'timeLoss': '-3.66' is not a valid value of the union type 'timeTypeWithErrorValue'. -sumo/pedestrian_model/jupedsim/vanishing_area/tripinfos.sumo:68:0:ERROR:SCHEMASV:SCHEMAV_CVC_DATATYPE_VALID_1_2_3: Element 'personinfo', attribute 'timeLoss': '-2.16' is not a valid value of the union type 'timeTypeWithErrorValue'. -sumo/pedestrian_model/jupedsim/vanishing_area/tripinfos.sumo:71:0:ERROR:SCHEMASV:SCHEMAV_CVC_DATATYPE_VALID_1_2_3: Element 'personinfo', attribute 'timeLoss': '-1.66' is not a valid value of the union type 'timeTypeWithErrorValue'. -sumo/pedestrian_model/jupedsim/vanishing_area/tripinfos.sumo:74:0:ERROR:SCHEMASV:SCHEMAV_CVC_DATATYPE_VALID_1_2_3: Element 'personinfo', attribute 'timeLoss': '-1.16' is not a valid value of the union type 'timeTypeWithErrorValue'. -sumo/pedestrian_model/jupedsim/vanishing_area/tripinfos.sumo:83:0:ERROR:SCHEMASV:SCHEMAV_CVC_DATATYPE_VALID_1_2_3: Element 'personinfo', attribute 'timeLoss': '-1.66' is not a valid value of the union type 'timeTypeWithErrorValue'. -sumo/pedestrian_model/jupedsim/vanishing_area/tripinfos.sumo:86:0:ERROR:SCHEMASV:SCHEMAV_CVC_DATATYPE_VALID_1_2_3: Element 'personinfo', attribute 'timeLoss': '-0.16' is not a valid value of the union type 'timeTypeWithErrorValue'. -sumo/pedestrian_model/jupedsim/vanishing_area/tripinfos.sumo:89:0:ERROR:SCHEMASV:SCHEMAV_CVC_DATATYPE_VALID_1_2_3: Element 'personinfo', attribute 'timeLoss': '-1.16' is not a valid value of the union type 'timeTypeWithErrorValue'. -sumo/pedestrian_model/jupedsim/vanishing_area/tripinfos.sumo:92:0:ERROR:SCHEMASV:SCHEMAV_CVC_DATATYPE_VALID_1_2_3: Element 'personinfo', attribute 'timeLoss': '-0.66' is not a valid value of the union type 'timeTypeWithErrorValue'. -sumo/pedestrian_model/jupedsim/vanishing_area/tripinfos.sumo:95:0:ERROR:SCHEMASV:SCHEMAV_CVC_DATATYPE_VALID_1_2_3: Element 'personinfo', attribute 'timeLoss': '-0.16' is not a valid value of the union type 'timeTypeWithErrorValue'. -sumo/pedestrian_model/jupedsim/vanishing_area/tripinfos.sumo:98:0:ERROR:SCHEMASV:SCHEMAV_CVC_DATATYPE_VALID_1_2_3: Element 'personinfo', attribute 'timeLoss': '-0.16' is not a valid value of the union type 'timeTypeWithErrorValue'. -sumo/pedestrian_model/jupedsim/vanishing_area/tripinfos.sumo:104:0:ERROR:SCHEMASV:SCHEMAV_CVC_DATATYPE_VALID_1_2_3: Element 'personinfo', attribute 'timeLoss': '-2.66' is not a valid value of the union type 'timeTypeWithErrorValue'. -sumo/pedestrian_model/jupedsim/vanishing_area/tripinfos.sumo:110:0:ERROR:SCHEMASV:SCHEMAV_CVC_DATATYPE_VALID_1_2_3: Element 'personinfo', attribute 'timeLoss': '-0.66' is not a valid value of the union type 'timeTypeWithErrorValue'. -sumo/pedestrian_model/jupedsim/vanishing_area/tripinfos.sumo:116:0:ERROR:SCHEMASV:SCHEMAV_CVC_DATATYPE_VALID_1_2_3: Element 'personinfo', attribute 'timeLoss': '-0.66' is not a valid value of the union type 'timeTypeWithErrorValue'. -sumo/pedestrian_model/jupedsim/vanishing_area/tripinfos.sumo:119:0:ERROR:SCHEMASV:SCHEMAV_CVC_DATATYPE_VALID_1_2_3: Element 'personinfo', attribute 'timeLoss': '-0.16' is not a valid value of the union type 'timeTypeWithErrorValue'. -sumo/pedestrian_model/jupedsim/vanishing_area/tripinfos.sumo:122:0:ERROR:SCHEMASV:SCHEMAV_CVC_DATATYPE_VALID_1_2_3: Element 'personinfo', attribute 'timeLoss': '-1.66' is not a valid value of the union type 'timeTypeWithErrorValue'. -sumo/pedestrian_model/jupedsim/vanishing_area/tripinfos.sumo:143:0:ERROR:SCHEMASV:SCHEMAV_CVC_DATATYPE_VALID_1_2_3: Element 'personinfo', attribute 'timeLoss': '-0.66' is not a valid value of the union type 'timeTypeWithErrorValue'. -sumo/pedestrian_model/jupedsim/vanishing_area/tripinfos.sumo:182:0:ERROR:SCHEMASV:SCHEMAV_CVC_DATATYPE_VALID_1_2_3: Element 'personinfo', attribute 'timeLoss': '-1.16' is not a valid value of the union type 'timeTypeWithErrorValue'. -sumo/pedestrian_model/jupedsim/vanishing_area/tripinfos.sumo:191:0:ERROR:SCHEMASV:SCHEMAV_CVC_DATATYPE_VALID_1_2_3: Element 'personinfo', attribute 'timeLoss': '-2.16' is not a valid value of the union type 'timeTypeWithErrorValue'. -sumo/pedestrian_model/jupedsim/walking_area/tripinfos.sumo:49:0:ERROR:SCHEMASV:SCHEMAV_CVC_DATATYPE_VALID_1_2_3: Element 'personinfo', attribute 'timeLoss': '-1.01' is not a valid value of the union type 'timeTypeWithErrorValue'. -sumo/pedestrian_model/jupedsim/walking_area/tripinfos.sumo:52:0:ERROR:SCHEMASV:SCHEMAV_CVC_DATATYPE_VALID_1_2_3: Element 'personinfo', attribute 'timeLoss': '-1.51' is not a valid value of the union type 'timeTypeWithErrorValue'. -sumo/pedestrian_model/jupedsim/walking_area/tripinfos.sumo:55:0:ERROR:SCHEMASV:SCHEMAV_CVC_DATATYPE_VALID_1_2_3: Element 'personinfo', attribute 'timeLoss': '-1.51' is not a valid value of the union type 'timeTypeWithErrorValue'. -sumo/pedestrian_model/jupedsim/walking_area/tripinfos.sumo:61:0:ERROR:SCHEMASV:SCHEMAV_CVC_DATATYPE_VALID_1_2_3: Element 'personinfo', attribute 'timeLoss': '-0.33' is not a valid value of the union type 'timeTypeWithErrorValue'. -sumo/pedestrian_model/jupedsim/walking_area/tripinfos.sumo:64:0:ERROR:SCHEMASV:SCHEMAV_CVC_DATATYPE_VALID_1_2_3: Element 'personinfo', attribute 'timeLoss': '-1.82' is not a valid value of the union type 'timeTypeWithErrorValue'. -sumo/pedestrian_model/jupedsim/walking_area/tripinfos.sumo:67:0:ERROR:SCHEMASV:SCHEMAV_CVC_DATATYPE_VALID_1_2_3: Element 'personinfo', attribute 'timeLoss': '-1.82' is not a valid value of the union type 'timeTypeWithErrorValue'. -sumo/pedestrian_model/jupedsim/walking_area/tripinfos.sumo:70:0:ERROR:SCHEMASV:SCHEMAV_CVC_DATATYPE_VALID_1_2_3: Element 'personinfo', attribute 'timeLoss': '-1.32' is not a valid value of the union type 'timeTypeWithErrorValue'. -sumo/pedestrian_model/jupedsim/walking_area/tripinfos.sumo:73:0:ERROR:SCHEMASV:SCHEMAV_CVC_DATATYPE_VALID_1_2_3: Element 'personinfo', attribute 'timeLoss': '-1.32' is not a valid value of the union type 'timeTypeWithErrorValue'. -sumo/pedestrian_model/jupedsim/tls_backward/tripinfos.sumo:71:0:ERROR:SCHEMASV:SCHEMAV_CVC_DATATYPE_VALID_1_2_3: Element 'personinfo', attribute 'timeLoss': '-1.01' is not a valid value of the union type 'timeTypeWithErrorValue'. -sumo/pedestrian_model/jupedsim/tls_backward/tripinfos.sumo:79:0:ERROR:SCHEMASV:SCHEMAV_CVC_DATATYPE_VALID_1_2_3: Element 'personinfo', attribute 'timeLoss': '-1.01' is not a valid value of the union type 'timeTypeWithErrorValue'. -sumo/pedestrian_model/jupedsim/tls_backward/tripinfos.sumo:83:0:ERROR:SCHEMASV:SCHEMAV_CVC_DATATYPE_VALID_1_2_3: Element 'personinfo', attribute 'timeLoss': '-1.01' is not a valid value of the union type 'timeTypeWithErrorValue'. -sumo/pedestrian_model/jupedsim/tls_backward/tripinfos.sumo:179:0:ERROR:SCHEMASV:SCHEMAV_CVC_DATATYPE_VALID_1_2_3: Element 'personinfo', attribute 'timeLoss': '-1.01' is not a valid value of the union type 'timeTypeWithErrorValue'. -sumo/pedestrian_model/jupedsim/tls_backward/tripinfos.sumo:187:0:ERROR:SCHEMASV:SCHEMAV_CVC_DATATYPE_VALID_1_2_3: Element 'personinfo', attribute 'timeLoss': '-1.01' is not a valid value of the union type 'timeTypeWithErrorValue'. -sumo/pedestrian_model/jupedsim/tls_backward/tripinfos.sumo:191:0:ERROR:SCHEMASV:SCHEMAV_CVC_DATATYPE_VALID_1_2_3: Element 'personinfo', attribute 'timeLoss': '-1.01' is not a valid value of the union type 'timeTypeWithErrorValue'. -sumo/pedestrian_model/jupedsim/tls_backward/tripinfos.sumo:284:0:ERROR:SCHEMASV:SCHEMAV_CVC_DATATYPE_VALID_1_2_3: Element 'personinfo', attribute 'timeLoss': '-1.01' is not a valid value of the union type 'timeTypeWithErrorValue'. -sumo/pedestrian_model/jupedsim/tls_backward/tripinfos.sumo:292:0:ERROR:SCHEMASV:SCHEMAV_CVC_DATATYPE_VALID_1_2_3: Element 'personinfo', attribute 'timeLoss': '-1.01' is not a valid value of the union type 'timeTypeWithErrorValue'. -sumo/pedestrian_model/jupedsim/tls_backward/tripinfos.sumo:296:0:ERROR:SCHEMASV:SCHEMAV_CVC_DATATYPE_VALID_1_2_3: Element 'personinfo', attribute 'timeLoss': '-1.01' is not a valid value of the union type 'timeTypeWithErrorValue'. -sumo/pedestrian_model/jupedsim/tls_backward/tripinfos.sumo:389:0:ERROR:SCHEMASV:SCHEMAV_CVC_DATATYPE_VALID_1_2_3: Element 'personinfo', attribute 'timeLoss': '-1.01' is not a valid value of the union type 'timeTypeWithErrorValue'. -sumo/pedestrian_model/jupedsim/tls_backward/tripinfos.sumo:397:0:ERROR:SCHEMASV:SCHEMAV_CVC_DATATYPE_VALID_1_2_3: Element 'personinfo', attribute 'timeLoss': '-1.01' is not a valid value of the union type 'timeTypeWithErrorValue'. -sumo/pedestrian_model/jupedsim/tls_backward/tripinfos.sumo:401:0:ERROR:SCHEMASV:SCHEMAV_CVC_DATATYPE_VALID_1_2_3: Element 'personinfo', attribute 'timeLoss': '-1.01' is not a valid value of the union type 'timeTypeWithErrorValue'. -sumo/pedestrian_model/jupedsim/tls_backward/tripinfos.sumo.nt:71:0:ERROR:SCHEMASV:SCHEMAV_CVC_DATATYPE_VALID_1_2_3: Element 'personinfo', attribute 'timeLoss': '-1.01' is not a valid value of the union type 'timeTypeWithErrorValue'. -sumo/pedestrian_model/jupedsim/tls_backward/tripinfos.sumo.nt:79:0:ERROR:SCHEMASV:SCHEMAV_CVC_DATATYPE_VALID_1_2_3: Element 'personinfo', attribute 'timeLoss': '-1.01' is not a valid value of the union type 'timeTypeWithErrorValue'. -sumo/pedestrian_model/jupedsim/tls_backward/tripinfos.sumo.nt:83:0:ERROR:SCHEMASV:SCHEMAV_CVC_DATATYPE_VALID_1_2_3: Element 'personinfo', attribute 'timeLoss': '-1.01' is not a valid value of the union type 'timeTypeWithErrorValue'. -sumo/pedestrian_model/jupedsim/tls_backward/tripinfos.sumo.nt:179:0:ERROR:SCHEMASV:SCHEMAV_CVC_DATATYPE_VALID_1_2_3: Element 'personinfo', attribute 'timeLoss': '-1.01' is not a valid value of the union type 'timeTypeWithErrorValue'. -sumo/pedestrian_model/jupedsim/tls_backward/tripinfos.sumo.nt:187:0:ERROR:SCHEMASV:SCHEMAV_CVC_DATATYPE_VALID_1_2_3: Element 'personinfo', attribute 'timeLoss': '-1.01' is not a valid value of the union type 'timeTypeWithErrorValue'. -sumo/pedestrian_model/jupedsim/tls_backward/tripinfos.sumo.nt:191:0:ERROR:SCHEMASV:SCHEMAV_CVC_DATATYPE_VALID_1_2_3: Element 'personinfo', attribute 'timeLoss': '-1.01' is not a valid value of the union type 'timeTypeWithErrorValue'. -sumo/pedestrian_model/jupedsim/tls_backward/tripinfos.sumo.nt:284:0:ERROR:SCHEMASV:SCHEMAV_CVC_DATATYPE_VALID_1_2_3: Element 'personinfo', attribute 'timeLoss': '-1.01' is not a valid value of the union type 'timeTypeWithErrorValue'. -sumo/pedestrian_model/jupedsim/tls_backward/tripinfos.sumo.nt:292:0:ERROR:SCHEMASV:SCHEMAV_CVC_DATATYPE_VALID_1_2_3: Element 'personinfo', attribute 'timeLoss': '-1.01' is not a valid value of the union type 'timeTypeWithErrorValue'. -sumo/pedestrian_model/jupedsim/tls_backward/tripinfos.sumo.nt:296:0:ERROR:SCHEMASV:SCHEMAV_CVC_DATATYPE_VALID_1_2_3: Element 'personinfo', attribute 'timeLoss': '-1.01' is not a valid value of the union type 'timeTypeWithErrorValue'. -sumo/pedestrian_model/jupedsim/tls_backward/tripinfos.sumo.nt:381:0:ERROR:SCHEMASV:SCHEMAV_CVC_DATATYPE_VALID_1_2_3: Element 'personinfo', attribute 'timeLoss': '-0.01' is not a valid value of the union type 'timeTypeWithErrorValue'. -sumo/pedestrian_model/jupedsim/tls_backward/tripinfos.sumo.nt:389:0:ERROR:SCHEMASV:SCHEMAV_CVC_DATATYPE_VALID_1_2_3: Element 'personinfo', attribute 'timeLoss': '-1.01' is not a valid value of the union type 'timeTypeWithErrorValue'. -sumo/pedestrian_model/jupedsim/tls_backward/tripinfos.sumo.nt:397:0:ERROR:SCHEMASV:SCHEMAV_CVC_DATATYPE_VALID_1_2_3: Element 'personinfo', attribute 'timeLoss': '-1.01' is not a valid value of the union type 'timeTypeWithErrorValue'. -sumo/pedestrian_model/jupedsim/tls_backward/tripinfos.sumo.nt:401:0:ERROR:SCHEMASV:SCHEMAV_CVC_DATATYPE_VALID_1_2_3: Element 'personinfo', attribute 'timeLoss': '-1.01' is not a valid value of the union type 'timeTypeWithErrorValue'. -sumo/pedestrian_model/striping/bugs/ticket2060/tripinfos.sumo:42:0:ERROR:SCHEMASV:SCHEMAV_CVC_DATATYPE_VALID_1_2_3: Element 'personinfo', attribute 'timeLoss': '-3.67' is not a valid value of the union type 'timeTypeWithErrorValue'. -sumo/pedestrian_model/striping/bugs/ticket2060/tripinfos.sumo:45:0:ERROR:SCHEMASV:SCHEMAV_CVC_DATATYPE_VALID_1_2_3: Element 'personinfo', attribute 'timeLoss': '-3.44' is not a valid value of the union type 'timeTypeWithErrorValue'. -sumo/pedestrian_model/striping/bugs/ticket2060/tripinfos.sumo:48:0:ERROR:SCHEMASV:SCHEMAV_CVC_DATATYPE_VALID_1_2_3: Element 'personinfo', attribute 'timeLoss': '-3.70' is not a valid value of the union type 'timeTypeWithErrorValue'. -sumo/pedestrian_model/striping/bugs/ticket2060/tripinfos.sumo:51:0:ERROR:SCHEMASV:SCHEMAV_CVC_DATATYPE_VALID_1_2_3: Element 'personinfo', attribute 'timeLoss': '-3.29' is not a valid value of the union type 'timeTypeWithErrorValue'. -sumo/pedestrian_model/striping/disconnected_route/tripinfos.sumo:43:0:ERROR:SCHEMASV:SCHEMAV_CVC_DATATYPE_VALID_1_2_3: Element 'personinfo', attribute 'timeLoss': '-141.54' is not a valid value of the union type 'timeTypeWithErrorValue'. -sumo/pedestrian_model/striping/errors/disconnected_route_ignore/tripinfos.sumo:43:0:ERROR:SCHEMASV:SCHEMAV_CVC_DATATYPE_VALID_1_2_3: Element 'personinfo', attribute 'timeLoss': '-2.55' is not a valid value of the union type 'timeTypeWithErrorValue'. -sumo/pedestrian_model/striping/errors/disconnected_trip_ignore/tripinfos.sumo:43:0:ERROR:SCHEMASV:SCHEMAV_CVC_DATATYPE_VALID_1_2_3: Element 'personinfo', attribute 'timeLoss': '-2.55' is not a valid value of the union type 'timeTypeWithErrorValue'. sumo/spec/arrival/arrivalPos_unreachable/tripinfos.sumo:42:0:ERROR:SCHEMASV:SCHEMAV_CVC_DATATYPE_VALID_1_2_3: Element 'tripinfo', attribute 'routeLength': '-10.00' is not a valid value of the union type 'nonNegativeFloatTypeWithErrorValue'. sumo/tls/actuated/param_vTypes/detector.sumo.meso.ltm:55:0:ERROR:SCHEMASV:SCHEMAV_CVC_DATATYPE_VALID_1_2_1: Element 'interval', attribute 'harmonicMeanSpeed': 'inf' is not a valid value of the atomic type 'xs:decimal'. sumo/tls/actuated/param_vTypes/detector.sumo.meso.ltm:58:0:ERROR:SCHEMASV:SCHEMAV_CVC_DATATYPE_VALID_1_2_1: Element 'interval', attribute 'harmonicMeanSpeed': 'inf' is not a valid value of the atomic type 'xs:decimal'.