# Output files The files a run writes into its `output_dir`, as read from a run of the Delft starter case (columns, their types, and the metrics `kpis.parquet` holds). A file appears only when the run has what it records. ## `diagnostics.parquet` | Column | Type | Meaning | |---|---|---| | `run_id` | string | The run's name, as given to `Scenario.run`; the same in every row. | | `category` | string | What kind of condition: `data_quality` (an input problem resolved by a documented fallback), `modelling` (a run-time condition resolved by the model's rules, such as no feasible path) or `numeric`. | | `code` | string | The condition, as a stable name (for example `no_feasible_path`, `trip_truncated`). | | `severity` | string | `info` (resolved by a documented rule, expected) or `warning` (resolved, but likely worth your attention). | | `element_kind` | string | What the condition is about (for example `trip`, `link`, `node`); null for a condition about the run as a whole. | | `element_id` | uint32 | The element's internal id within the run; null for a condition about the run as a whole. | | `count` | uint64 | How many times the condition was recorded for this element. | ## `events.parquet` | Column | Type | Meaning | |---|---|---| | `run_id` | string | The run's name, as given to `Scenario.run`; the same in every row. | | `second` | uint32 | When the event happened, in seconds after midnight: the arrival for a completed trip, the window's end for a trip still under way, the departure for a trip that could not start. | | `event_type` | string | What happened to the trip: `trip_completed`, `trip_truncated` (still under way at the window's end), `no_vehicle_available`, `no_feasible_path` or `mode_not_available`. The file keeps a fixed 1 % sample of the events, every hundredth row. | | `entity_kind` | string | What the event is about: always `trip`. | | `entity_id` | uint32 | The trip's internal id in the run. | ## `kpis.parquet` | Column | Type | Meaning | |---|---|---| | `run_id` | string | The run's name, as given to `Scenario.run`; the same in every row. | | `design_id` | string | The design the run belongs to: always `default`. | | `replication` | uint32 | The replication: always 0. | | `iteration` | uint32 | The loading the row describes: 0 is the free-flow loading; a run that iterates writes its per-iteration metrics for every iteration and the rest for the last one. | | `mode` | string | The trips the row counts: `all`, or one mode (`car`, `bike`, `walk`, `transit`, `car_transit`, `bike_transit`) that has trips. | | `metric` | string | The metric's name (see the table of metrics below). | | `value` | double | The metric's value, in the unit its name or its description gives. | ## `link_bins.parquet` | Column | Type | Meaning | |---|---|---| | `run_id` | string | The run's name, as given to `Scenario.run`; the same in every row. | | `bin` | uint32 | The time bin's index, counted from midnight: bin b covers b × bin length to (b + 1) × bin length seconds after midnight (the bin length is the file's `openmobisim.bin_seconds` metadata, the scenario's `link_bin_s`). | | `start_s` | uint32 | The bin's start, in seconds after midnight. | | `link` | string | The road link's external id, the one that survives a rebuilt network. | | `link_index` | uint32 | The road link's internal index, the row of the network's arrays; meaningful only next to the file's `openmobisim.network_fingerprint` metadata. | | `crossings` | uint32 | How many traversals of the link finished in the bin, unweighted. | | `pcu` | double | The traffic that left the link in the bin, in passenger car units: each traversal counted with its traveller's weight and its vehicle's size (a bus is `bus_pcu`). The flow in PCU per hour is pcu × 3 600 / bin length. | | `pcu_seconds` | double | The PCU-weighted time those traversals took, in seconds; pcu_seconds / pcu is the mean traversal time. | ## `link_bins_bike.parquet` | Column | Type | Meaning | |---|---|---| | `run_id` | string | The run's name, as given to `Scenario.run`; the same in every row. | | `bin` | uint32 | The time bin's index, counted from midnight: bin b covers b × bin length to (b + 1) × bin length seconds after midnight (the bin length is the file's `openmobisim.bin_seconds` metadata, the scenario's `link_bin_s`). | | `start_s` | uint32 | The bin's start, in seconds after midnight. | | `link` | string | The bike layer link's external id, the one that survives a rebuilt network. | | `link_index` | uint32 | The bike layer link's internal index, the row of the network's arrays; meaningful only next to the file's `openmobisim.network_fingerprint` metadata. | | `crossings` | uint32 | How many traversals of the link finished in the bin, unweighted. | | `travellers` | double | The travellers who left the link in the bin, each counted with their weight (a bike counts no passenger car units). | | `traveller_seconds` | double | The weighted time those traversals took, in seconds; traveller_seconds / travellers is the mean traversal time. | ## `link_bins_walk.parquet` | Column | Type | Meaning | |---|---|---| | `run_id` | string | The run's name, as given to `Scenario.run`; the same in every row. | | `bin` | uint32 | The time bin's index, counted from midnight: bin b covers b × bin length to (b + 1) × bin length seconds after midnight (the bin length is the file's `openmobisim.bin_seconds` metadata, the scenario's `link_bin_s`). | | `start_s` | uint32 | The bin's start, in seconds after midnight. | | `link` | string | The walk layer link's external id, the one that survives a rebuilt network. | | `link_index` | uint32 | The walk layer link's internal index, the row of the network's arrays; meaningful only next to the file's `openmobisim.network_fingerprint` metadata. | | `crossings` | uint32 | How many traversals of the link finished in the bin, unweighted. | | `travellers` | double | The travellers who left the link in the bin, each counted with their weight (a walk counts no passenger car units). | | `traveller_seconds` | double | The weighted time those traversals took, in seconds; traveller_seconds / travellers is the mean traversal time. | ## `parking_bins.parquet` | Column | Type | Meaning | |---|---|---| | `run_id` | string | The run's name, as given to `Scenario.run`; the same in every row. | | `bin` | uint32 | The time bin's index, counted from the window's start (bin 0 starts there; the bin length is `parking_options` `bin_s`). The last bin ends with the window, so it may be shorter. | | `start_s` | uint32 | The bin's start, in seconds after midnight. | | `parking` | uint32 | The parking's index in the run. | | `parking_id` | string | The parking's id in its parking table. | | `hub_id` | string | The id of the hub the parking belongs to (parkings sharing a `hub_id` share a hub). | | `vehicle` | string | What the parking holds: `car` or `bike`. | | `capacity` | uint32 | Its capacity, in vehicles. | | `arrivals` | double | Vehicles parked in the bin, weighted by traveller weight. | | `departures` | double | Vehicles fetched in the bin, weighted by traveller weight. | | `occupancy_mean` | double | The mean number of vehicles parked over the bin (weighted). | | `occupancy_max` | double | The most vehicles parked at once in the bin (weighted). | | `full_s` | double | The seconds of the bin during which the parking was full (occupancy at or above capacity). | | `overflow_max` | double | The most vehicles above capacity at once in the bin: a full parking refuses nobody, so occupancy may exceed capacity. | | `hub_group` | string | The hub group the parking shares with the stops beside it: the group of the nearest stop within `hub_group_m` (`Scenario.run`, 150 m in a straight line), or the hub its table named, or its own hub. A label for grouping a station's parkings and stops; no result depends on it. | ## `transit_calls.parquet` | Column | Type | Meaning | |---|---|---| | `run_id` | string | The run's name, as given to `Scenario.run`; the same in every row. | | `run` | string | The vehicle run, by its GTFS `trip_id`. | | `line` | string | The line's short name (GTFS `route_short_name`). | | `kind` | string | The service: `bus`, `tram`, `metro`, `rail`, `ferry` or `other`. | | `stop_id` | string | The stop, by its GTFS `stop_id`. | | `sequence` | uint32 | The call's place in its run, from 0. | | `scheduled_arrival_s` | uint32 | The scheduled arrival, in seconds after the service day's midnight. | | `scheduled_departure_s` | uint32 | The scheduled departure, in seconds after the service day's midnight. | | `arrival_s` | uint32 | The arrival in the run, in seconds after midnight: the loading's time for a bus that rode the roads, the schedule's for every other run; null where a bus had not reached the call by the window's end. | | `departure_s` | uint32 | The departure in the run, in seconds after midnight, as for `arrival_s`; a bus on the roads never leaves a stop before its scheduled time. | | `boardings` | double | Passengers boarding at the call, weighted by traveller weight. | | `alightings` | double | Passengers alighting at the call, weighted by traveller weight. | | `on_board` | double | Passengers on board as the vehicle leaves the call (weighted). | | `hub_group` | string | The stop's hub group: its station (GTFS `parent_station`), or the stop itself without one; the parkings beside it share it (`parking_bins.parquet`). A label; no result depends on it. | ## `trip_results.parquet` | Column | Type | Meaning | |---|---|---| | `run_id` | string | The run's name, as given to `Scenario.run`; the same in every row. | | `trip` | uint32 | The trip's index in the run, from 0, in trip order (by traveller, then by the order of their day); the same index as `Run.route_changes()`'s `trip`. | | `traveller_id` | string | The trip's traveller, as given in the demand. | | `trip_seq` | uint32 | The trip's place in its traveller's day, from 0. | | `user_class` | string | The traveller's class, as given in the demand. | | `weight` | uint32 | The people the traveller stands for (1 unless the demand is sampled). | | `origin_lon` | double | Where the trip starts: longitude in degrees, as given. | | `origin_lat` | double | Where the trip starts: latitude in degrees, as given. | | `destination_lon` | double | Where the trip ends: longitude in degrees, as given. | | `destination_lat` | double | Where the trip ends: latitude in degrees, as given. | | `departure_s` | uint32 | When the trip departs, in seconds after midnight. | | `mode` | string | The mode the trip took: its stated mode (a trip without one is a car trip, or the run's only mode); with mode choice, the mode chosen. Empty (null) for a trip that chose and had nothing to choose. | | `mode_choice` | bool | Whether the trip chose its mode (`true`) or was given it. | | `outcome` | string | What became of the trip in the last loading: `completed`, `truncated` (still travelling when the window ended), `no_vehicle_available`, `no_feasible_path`, `mode_not_available` or `no_alternative` (the trips `Run.report_no_alternative()` lists, but for any that then went by car; one that chose its mode has an empty `mode`). See [What becomes of each trip](../concepts/outputs.md). | | `arrival_s` | uint32 | When the trip arrived, in seconds after midnight; empty (null) unless it completed. | | `travel_time_s` | uint32 | Its arrival less its departure, in seconds; empty (null) unless it completed. | | `link_at_end` | uint32 | For a trip still travelling when the window ended whose car was on the roads: the road link it was on (driving, or at the link's stop line) or waited at its origin to enter, as an index into the network's links (the `link` of `link_bins.parquet`). Empty (null) for every other trip, and for one on foot, on a bike, in a transit vehicle or at a stop when the window ended. | ## The metrics in `kpis.parquet` | Metric | Modes | Meaning | |---|---|---| | `boardings` | transit | Passengers boarding transit vehicles, summed over every call of the timetable, weighted by traveller weight (people). Written for the last loading. | | `bus_delay_mean_s` | transit | The mean delay, in seconds, at the last stop of the bus runs that rode the roads and reached it within the window: realised minus scheduled arrival (negative: early). No row if no run arrived. Written for the last loading. | | `bus_runs_arrived` | transit | Of the bus runs that rode the roads, how many reached their last stop within the window. Written for the last loading. | | `bus_runs_on_roads` | transit | How many bus runs rode the roads among the cars; the others ran by the schedule (rail, metro, trams, ferries, and bus patterns the roads could not carry plausibly). Written for the last loading. | | `changed_share` | all | The share of travellers whose route changed in this iteration. Written for every iteration of a run that iterates. | | `completed_people` | all, bike, bike_transit, car, transit, walk | The completed trips weighted by their travellers' weights: the people who arrived within the window. A mean trip time is `total_travel_time_s` over this. Under `all` for every iteration; per mode for the last loading. | | `completed_trips` | all, bike, bike_transit, car, transit, walk | Simulated trips that arrived within the window, unweighted. Under `all` for every iteration; per mode for the last loading. | | `completion_rate` | all, bike, bike_transit, car, transit, walk | Completed trips over the trips that entered the network (completed plus still under way at the window's end), unweighted; 1 if none entered. Trips that never started (no vehicle, no path, mode not available) are not in it. Written for the last loading. | | `gap` | all, bike, bike_transit, car, transit, walk | Under `all`, the relative gap of route choice: the extra travel time of the chosen routes over the least-time route of each traveller's choice set, at the times that loading produced, Σ w (t_chosen − t_least) / Σ w t_least, w the traveller weight, over the trips that finished within the window. Under a mode, the same gap for the itinerary trips of that mode (transit, park-and-ride, bike-and-ride, and with mode choice the trips that chose a car, bike or walk), each against the best door-to-door time of the mode it kept. A stochastic choice model does not reach 0 by design. Written for every iteration of a run that iterates. | | `gap_excess` | all | The disequilibrium of route choice: `gap` less `gap_expected`, the part of the gap the choice model does not explain (sampling noise included). Equal to `gap` for an all-or-nothing model. Written for every iteration of a run that iterates. | | `gap_expected` | all | The gap the choice model itself expects at these times: the same sum with each traveller's expected travel time under the model's probabilities in place of the route sampled. The gap a perfectly converged run has; 0 for an all-or-nothing model. Written for every iteration of a run that iterates. | | `gap_flow` | all | A check of the stochastic choice model against itself: the share of travellers whose route differs from where the model's probabilities at the current times would put them (half the total variation between the observed and expected route flows, by origin–destination pair). Not a gap to the shortest route. Written for every iteration of a run that iterates. | | `gap_flow_excess` | all | `gap_flow` less `gap_flow_floor`: the stochastic model's disequilibrium left after sampling noise. Written for every iteration of a run that iterates. | | `gap_flow_floor` | all | What `gap_flow` would be by chance alone: the same measure for a fresh sample drawn from the same probabilities. Written for every iteration of a run that iterates. | | `gap_network` | all | The relative gap against the whole network rather than the choice set: the least travel time over any route at the current times, found by a time-dependent search, for a keyed sample of the trips that finished (`equilibration_options` `gap_sample`). Shows whether a choice set lacked a route traffic has made worthwhile. Measured at the last iteration only. | | `gap_network_excess` | all | `gap_network` less the part the choice model explains inside the choice set, so a route the set was missing counts in full. At the last iteration only. | | `hub_mismatch_s` | all, bike_transit | The hub expectation mismatch, in seconds: per traveller who parked, the mean absolute difference between the parking time expected when choosing and the one paid. Under `all` for every iteration; under `car_transit` (car parks) and `bike_transit` (bike parkings) for the last loading. | | `incomplete_share` | all | The share of travellers, by weight, whose trip had not finished when the window ended; they are left out of the gaps. Written for every iteration of a run that iterates. | | `itinerary_gap_excess` | all | The disequilibrium of the itineraries: over every transit, park-and-ride, bike-and-ride and mode-choosing trip, the gap to the best alternative of the mode it kept, less what the choice model itself expects. With `gap_excess` and `gap_network_excess`, one of the three whose worst is the run's `convergence_gap`. Written for every iteration of a run that iterates and has such trips. | | `itinerary_replanned_trips` | all | Transit, park-and-ride and bike-and-ride trips whose chosen line could not be followed, so the earliest journey from there was taken instead. Written for the last loading. | | `mode_changed_share` | all | With mode choice: of the trips choosing their mode that had chosen before, the share by traveller weight whose mode changed on the way to this loading. No row at the first iteration. Written for every iteration of a run that iterates. | | `mode_not_available_trips` | all, bike, bike_transit, car, transit, walk | Trips whose mode this run cannot simulate, because what it needs (a bike or walk layer, a timetable, parkings) is missing. Unweighted. Written for the last loading. | | `mode_share` | bike, bike_transit, car, transit, walk | With mode choice: the mode's share of all people, the trips weighted by their travellers' weights, those left with no mode included. Written for the last loading. | | `no_feasible_path_trips` | all, bike, bike_transit, car, transit, walk | Trips that had their vehicle but no path to their destination. Unweighted. Written for the last loading. | | `no_vehicle_available_trips` | all, bike, bike_transit, car, transit, walk | Trips whose mode needs a vehicle (a car or bike) the traveller did not have at the origin. Unweighted. Written for the last loading. | | `parking_arrivals` | bike_transit | Vehicles parked, weighted by traveller weight: cars at car parks under `car_transit`, bikes at bike parkings under `bike_transit`. Written for the last loading. | | `parking_full_share` | bike_transit | `parking_overflow_arrivals` over `parking_arrivals`: the share of parked vehicles that found their parking full. No row if nothing parked. Written for the last loading. | | `parking_overflow_arrivals` | bike_transit | Of the vehicles parked, those that found the parking full (weighted). A full parking refuses nobody: parking there takes longer. Written for the last loading. | | `people` | all, bike, bike_transit, car, transit, walk | The trips weighted by their travellers' weights: the people they stand for. Under `all` it includes the trips left with no mode. Written for the last loading. | | `reselected_share` | all | The share of travellers, by weight, who chose again in this iteration (about 1 / (i + 1) at iteration i under `msa`). Written for every iteration of a run that iterates. | | `time_change` | all | How much the link times moved since the last loading, as a share of the last loading's, weighted by traffic. No row at iteration 0. Written for every iteration of a run that iterates. | | `total_travel_time_s` | all, bike, bike_transit, car, transit, walk | The travel time of the completed trips, in seconds, each times its traveller's weight (people-seconds). Under `all` for every iteration; per mode for the last loading. | | `trips` | all, bike, bike_transit, car, transit, walk | Simulated trips in the run's demand (those departing inside the window), unweighted. Written for the last loading. | | `truncated_trips` | all, bike, bike_transit, car, transit, walk | Simulated trips still under way when the window ended, unweighted; their times are not measured. Under `all` for every iteration; per mode for the last loading. | | `vehicles_left_at_parkings` | bike_transit | Vehicles still parked when the window ended (weighted): left at a parking for the rest of the day. Written for the last loading. | ## `manifest.json` | Key | Meaning | |---|---| | `manifest_version` | A number raised whenever the manifest's own layout changes. | | `openmobisim_version` | The version of openmobisim that made the run. | | `git_sha` | The git commit the core was built from (empty when it was built outside a repository), so a result can be traced to the exact code. | | `code_version` | A number raised whenever the layout or meaning of a file openmobisim writes changes. | | `defaults_version` | A number raised whenever any default value changes, so results made under other defaults are told apart; part of the run's fingerprint. | | `platform` | The platform the code was built for (a target such as `aarch64-apple-darwin`): the same fingerprint gives the same numbers on the same platform. | | `window_end_seconds` | The simulation window's end, in seconds after midnight. | | `window_start_seconds` | The simulation window's start, in seconds after midnight: the run starts there. | | `trips_outside_window` | Trips of the demand departing outside the window, left out of the run. | | `people_outside_window` | The people those trips stand for (their travellers' weights summed). | | `default_weight` | How many people a traveller stands for when its trip row gives no weight. | | `simulated_travellers` | How many travellers the run's demand named. | | `car_owning_travellers` | How many of them own a car. | | `total_trips` | Every trip in the run's demand (those departing inside the window). | | `kpi_weighting` | How `total_travel_time_s` is computed: `traveller_weight_scaled`, each trip's time times its traveller's weight. | | `master_seed` | The scenario's master seed, the one number every random stream starts from. | | `run_fingerprint` | A hash of every input that can change the run's results (16 hexadecimal digits): two runs with the same fingerprint were given the same inputs. | | `network_fingerprint` | A hash identifying the network (16 hexadecimal digits); an internal link index in this run's files is meaningful only next to it. | | `flow_level` | The loading's level: 0 free flow; 2, 3 or 4 the link transmission model. | | `flow_step_seconds` | The loading step, in seconds, under the link transmission model; null at level 0. | | `route_method` | The route method's name. | | `route_descriptor` | The route method with every option and default, in a canonical form. | | `choice_model` | The choice model's name. | | `choice_descriptor` | The choice model with every option and default, in a canonical form, traveller classes' own coefficients included. | | `live_streams` | The random streams the run drew from: `choice` under a sampled choice model, `msa_reselection` under an equilibration that redraws who chooses again. | | `equilibration` | The equilibration strategy's name. | | `equilibration_descriptor` | The strategy with every option and default, in a canonical form. | | `route_update` | The route update's name: `none` if the route sets stayed as the method made them. | | `route_update_descriptor` | The update with every option and default, in a canonical form. | | `choice_detour_limit` | How far above the best route's expected time, as a share, a route may be and still be offered; 0 offers every route of the set. | | `choice_max_routes` | The most routes a traveller is offered; 0 offers every route within the detour limit. | | `walk_max_s` | The longest walk mode choice offers, in seconds, when trips choose their mode; null otherwise. | | `bike_max_s` | The longest bike ride mode choice offers, in seconds, when trips choose their mode; null otherwise. | | `class_limits` | The traveller classes' own choice-set limits, in seconds, by class and name; null if no class gives any. | | `link_values` | Your link values' names, by layer; null if none were given. | | `threads` | How many threads the run's parallel work used (`Scenario.run(threads=)`; every logical core by default). Not in the fingerprint: results do not depend on it. | | `disruptions` | How many road and transit disruptions the run had and whether travellers knew of them in advance (`road`, `transit`, `known`); null if none. | | `prices` | The prices by name, in euros, when the choice model weighs money; null otherwise. | | `person_values` | The names of your per-traveller values; null if none were given. | | `trip_values` | The names of your per-trip values; null if none were given. | | `iterations_run` | How many loadings the run made. | | `converged` | Whether the equilibration stopped before its most iterations because it had converged. | | `outputs` | Which files the run wrote: `all`, or `minimal` (this file and `kpis.csv` only, for mass runs; `Scenario.run(outputs=...)`). | | `link_bin_seconds` | The bin length of `link_bins.parquet`, in seconds, if the run recorded it; null otherwise. | | `link_bins_file` | `link_bins.parquet` if the run recorded per-link results; null otherwise. | ## `timings.csv` | Column | Meaning | |---|---| | `stage` | What was timed: `network_read`, `demand_read`, `setup`, `static_routes` (bike and walk routes), `itineraries_setup`, `route_sets`, then per iteration `route_choice`, `itinerary_choice`, `partial_loading` and `route_update` (the free-flow loading's groups), `loading`, and `network_gap`; then `disrupted_loading` when travellers did not know of the disruptions; at the end `results_assembled`, `results_written` and `total`. A stage may appear several times; add up the rows you want. | | `iteration` | The iteration the stage belongs to; empty before the iterations start or after they end. | | `seconds` | Elapsed wall-clock seconds. Times differ from one run to the next, so they are kept out of every result and the fingerprint. |