Outputs

What a run writes, when each file is missing, and how to read the results without being misled. Every file below is written by run.py only when you ask for it with its flag. The web GUI and the terminal UI ask for all of them except the pre-evacuation times, in the run’s folder. From Python, the same data are fields of the ScenarioResult that run_scenario() returns.

FileFlagWritten whenRows
Trajectory SQLite--output-sqlite PATHalwaysJuPedSim frames at 10 frames/s
Run manifestwith --output-sqlitealwaysone JSON object, <stem>.manifest.json beside the SQLite
agent_scalars tableinside the SQLitea FED track ranone per agent per FED update
agent_exits tableinside the SQLitealwaysone per agent that left
agent_distributions tableinside the SQLitea distribution has a population keyone per agent placed at the start
Smoke history--output-smoke-history CSVa smoke model ran (--fds-dir with an extinction slice, or --constant-extinction)one per agent per --smoke-update-interval
FED history--output-fed-history CSVthe gas FED or the heat FED ranone per agent per --smoke-update-interval
Route history--output-route-history CSVrerouting is on (the default), or an exit has open_from_s or closed_after_s; without rerouting it then holds only the rows of agents whose exit is closed: exit_closed, initial (exit not open yet) or default_route (#395)one per change of target: switch, fallback, better path, explore or wander; initial only when an agent without an exit is first given one, so a deck whose agents start with an exit can write a file with only its header
Route cost history--output-route-cost-history CSVrerouting is onone per candidate route per agent per evaluation
Exit history--output-exit-history CSValwaysone per agent that walks the stage graph
Exposure summary--output-fed-summary CSVa FED or a smoke history was keptone per agent
Pre-evacuation times--output-pre-evacuation-times CSValways; header only when no agent has a pre-movement timeone per agent with a pre-movement time

A run of the terminal UI also leaves child.log (the run’s own messages) in its folder, and command.sh and run.py when you save them. They are not model outputs; see Terminal UI.

The run command, flags and defaults are on Usage. The example columns below come from

uv run python run.py --scenario assets/iso_table22_coupled/config_a.json \
    --fds-dir assets/iso_table22_coupled/fds/a \
    --output-sqlite results/run.sqlite --output-smoke-history results/smoke.csv \
    --output-fed-history results/fed.csv --output-route-history results/routes.csv \
    --output-route-cost-history results/route_costs.csv

Trajectory SQLite

The JuPedSim trajectory file, unchanged in schema: agent positions every 0.1 s (10 frames per second whatever the simulation step, which is the deck’s simulationParams.dt, 0.01 s by default). Load it with PedPy, scripts/plot_trajectories.py, scripts/vis.py, or fds-viewer.

When a FED track ran, the file also holds an extra table, agent_scalars(frame, id, fed, heat_fed, speed, in_fds_domain): gas FED, heat FED and walking speed (base_speed × speed_factor, m/s) per agent per frame of a FED update, and in_fds_domain (1 inside the FDS slices, 0 outside, NULL without FDS output; see the FED history). The JuPedSim tables are untouched, so JuPedSim tools still read the file. heat_fed sits before speed: read the columns by name, not by position.

Every file, and the trajectory of the exported Python script, also holds agent_exits(id, exit_time_s): the time each agent that left did so (ScenarioResult.exit_times). An agent still inside at the end has no row. pyfds_evac.analysis.load_exit_times reads it for the RSET map (ASET/RSET maps).

When at least one distribution of the scenario has a population key in its parameters (Scenario JSON), the file also holds a table, agent_distributions(id, distribution): the key of the distribution each agent placed at the start came from, for example jps-distributions_0 (ScenarioResult.agent_distributions). id is the JuPedSim agent id, as in the trajectory. Flow-spawned agents (use_flow_spawning, flow_schedule) are not listed, so a deck that spawns only by flow writes an empty table. The table is written even then, so an empty table differs from a run without the key. The value of population is not read: its presence switches the table on, and a run without the key leaves the file as it was. assets/station_fahy/validate.py reads the table to attribute each agent to its distribution.

Run manifest

The provenance record of the run. From Python it is result.manifest_file; with --output-sqlite it is copied beside the trajectory as <stem>.manifest.json.

KeyMeaning
versionsinstalled versions of pyfds-evac, jupedsim, fdsreader, fdsvismap
uv_lock_sha256hash of the uv.lock of the checkout, null for an installed wheel
git_commit, git_dirtycommit of the checkout, and whether tracked files had uncommitted changes; both null for an installed wheel
seedthe seed of the run
agent_seedinghow per-agent, per-distribution and model draws are derived from the seed, spawn-key-blake2b-v3; runs of another scheme, or without the key, draw differently under the same seed (v1 runs place agents from seed + index, #360)
dtthe simulation time step [s] the run used (simulationParams.dt)
scenario_paththe scenario file that was loaded
fds_dir, fds_versionabsolute FDS directory, and the FDS version read from its .smv; null without FDS output
created_utctime the run finished, UTC
outcomehow the run ended: execution (always finished: a manifest is written only for a run that finished), status (completed or incomplete), end_reason (all_evacuated, time_limit, flows_closed, all_mobile_left or deadlock), agents_remaining and agents_not_spawned, and deadlock (agents, since_s, positions, ended_run) when a deadlock was detected, as in Reading the results
heat_clothingclothed or unclothed, when an ISO 13571 convective heat law ran
heat_fed_threshold_overridethe --heat-fed-threshold value, only when it was set
heat_endpoint, heat_validitythe SFPE endpoint and its validity limits, only with --heat-endpoint; heat_validity also holds humidity (ok, humid or unknown), humid_rows, humid_agents and max_water_vapour_fraction
smoke_blindtrue, only with --smoke-blind
fds_coveragewhen FDS slices are sampled: the setup check of the scenario against the slice coverage, with quantities, walkable_area_m2, walkable_outside_m2, areas_outside_m2 (exits, checkpoints, spawn areas), signs_outside, signs_off_vismap_grid_m and edges_outside_m (route edges)
fds_outsidewith fds_coverage: the history rows sampled outside the FDS slices, as rows, agents and agent_seconds, the same as metrics["fds_outside"]
replay_exitsonly with --replay-exits: agents, the number of replayed spawns, and sha256, of the sorted origin<TAB>spawn_index<TAB>exit_id lines, one per spawn and joined by newlines, to match the run whose exit history was replayed
heat_fed_method, heat_flux_parametersonly with --heat-fed-method total-flux: ε, h, skin temperature, dose D, radiant threshold, the list of assumed parameters, and, per option, the layer parameters or radiant_source, u_factor and radiant_flux
slice_heights_min the manifest’s configuration → run record, inside smoke_speed, gas_fed, heat_fed and visibility, for each model that reads FDS slices: the FDS quantity name and the height [m] of the slice it read. Compare with slice_height_m beside it, the height requested: a deck with only 2.0 m slices, run at the default 1.6 m, shows 2.0 next to 1.6. With --heat-regime layer, heat_fed also lists the layer’s second slice as TEMPERATURE (layer); compare it with layer_height_m. Absent for a constant-extinction smoke model and a clear-air visibility model

Example, from the command above:

{
  "versions": {"pyfds-evac": "0.1.0", "jupedsim": "1.4.2",
               "fdsreader": "1.11.7", "fdsvismap": "0.2.1"},
  "uv_lock_sha256": "08fc497c…",
  "git_commit": "80a7608…",
  "git_dirty": false,
  "seed": 420,
  "agent_seeding": "spawn-key-blake2b-v3",
  "dt": 0.01,
  "scenario_path": "/…/assets/iso_table22_coupled/config_a.json",
  "fds_dir": "/…/assets/iso_table22_coupled/fds/a",
  "fds_version": "FDS-6.10.1-0-g12efa16-release",
  "created_utc": "2026-09-29T12:53:08+00:00"
}

Smoke history

ColumnUnitMeaning
time_sssimulation time
agent_id—JuPedSim agent id
x, ymagent position
base_speedm/sthe agent’s speed before the smoke factor (its v0 in open space)
desired_speedm/sspeed after the smoke factor
speed_factor—desired_speed / base_speed from the speed law
extinction_per_m1/mextinction coefficient K at the agent
in_fds_domain—with FDS output only: True where the extinction slice covers the agent, False where it reads K = 0 (clear air) outside it

FED history

One row per agent per update. The gas and heat columns are both present whenever the file is written. A track that did not run shows clean air: without the gas FED, the gases read 0 (O₂ 20.9 %) and every gas rate and fed_cumulative read 0.0; without the heat FED, temperature_celsius reads 20.0 °C and heat_fed_cumulative 0.0.

ColumnUnitMeaning
time_s, agent_id, x, ys, —, mas in the smoke history
co_percent, co2_percent, o2_percentvol %gas concentrations at the agent
hcn_ppm, no_ppm, no2_ppm, hcl_ppmppm0 when the case has no such slice
co_rate_per_min, cn_rate_per_min, nox_rate_per_min, fld_rate_per_min1/minnarcotic and irritant terms, before the CO₂ hyperventilation factor
hv_co2—CO₂ hyperventilation factor that multiplies the four terms above
o2_rate_per_min1/minhypoxia term, added after the factor
fed_rate_per_min1/mintotal gas FED rate
fed_cumulative—running gas FED
temperature_celsius°Cgas temperature at the agent
heat_fed_rate_per_min, heat_fed_cumulative1/min, —heat FED rate and running total, a separate track
incapacitation_cause—empty, gas, heat or gas+heat on the agent’s last row, the update at which the threshold was crossed
fic—fractional irritant concentration, with the SFPE incapacitation denominators (HCl 900 ppm), not the ISO 13571 ones (HCl 1000 ppm)
fic_speed_factor—irritant speed fraction F_irr (Eq. 70.11), 1 unless --enable-fic-speed
incapacitated—True on the agent’s last row, the update at which a threshold is crossed; the record ends there
base_speed, desired_speed, speed_factorm/s, m/s, —speed as the agent is moving at this update, all slowdowns combined

Extra columns appear with some heat options:

ColumnsPresent with
heat_endpoint, heat_outside_validity, heat_humidity--heat-endpoint; heat_outside_validity is True above 205 °C or for a non-finite sample, heat_humidity is ok below 10 % water vapour by volume, humid at or above it, and unknown without a WATER VAPOR VOLUME FRACTION slice
heat_water_vapour_fraction--heat-endpoint with a WATER VAPOR VOLUME FRACTION slice: the sampled fraction [mol/mol, 0-1]
heat_flux_kw_m2--heat-fed-method total-flux: the heat flux to the skin [kW/m²]
heat_integrated_intensity_kw_m2--heat-radiant-source integrated-intensity: U at the agent [kW/m²]
heat_radiometer_kw_m2--heat-radiant-source radiometer: the net radiometer reading at the agent [kW/m²]; NaN outside the FDS domain
heat_radiometer_incident_kw_m2--heat-radiant-source radiometer: the incident flux that reading implies, reading/ε + σT_s⁴ [kW/m²], a diagnostic that does not enter the dose
heat_layer_temperature_c--heat-regime layer: layer temperature [°C]
hbr_ppm, hf_ppm, so2_ppm, acrolein_ppm, formaldehyde_ppmFDS output with that species slice; each is written right after hcl_ppm, only when sampled
in_fds_domainFDS output: True where every sampled gas and heat slice covers the agent, False where it reads ambient air outside them

The equations behind each rate are on Models › FED and Models › Heat.

Exposure summary

--output-fed-summary CSV writes one row per agent from the FED and smoke histories and the exit times of the run (ScenarioResult.exit_times, the simulation time at which JuPedSim removed the agent). In Python, result.exposure_summary() returns the same rows. A run that kept neither history writes no file. The run’s console output ends with one line per criterion: outcome counts and the first crossing time. The same totals are exposure_totals(rows) in pyfds_evac.core.exposure_summary; they are not written to the CSV. How to read it: ASET/RSET check with FED.

ColumnUnitMeaning
agent_id—JuPedSim id
exit_time_sssimulation time at which the agent was removed; empty if it is still inside
censored—True when the agent is still inside at the end of the run (time limit, deadlock, incapacitated and left in place). Never inferred from the last frame
last_sample_s, incapacitated_sslast history sample while inside; time of incapacitation, empty if none (the record ends there, so later crossings are unobserved)
outside_fds_samples—with FDS output: samples read as ambient air outside the slices; a crossing there is not evidence
heat_evaluated—False when no heat model ran
fed_max, heat_fed_max, fic_max, k_max—, —, —, 1/mmaximum of the gas FED, the heat FED, the FIC and the extinction coefficient while inside
t_fed_ge_<thr>_s, t_heat_fed_ge_<thr>_s, t_fic_ge_<thr>_ssfirst sample time with the value >= the threshold; empty if never. Exactly two thresholds, --summary-fed-low and --summary-fed-high (0.3 and 1); in Python, ExposureSummaryConfig.fed_thresholds takes any list
t_k_ge_<K>_ssfirst sample time with K >= C / limit; <K> is that number (0.3 by default)
diff_<criterion>_sscrossing time minus exit time: negative means the limit was reached before the agent left; empty when censored or never crossed
outcome_<criterion>—fail: crossed while inside (an agent still inside that crossed fails, without a margin); pass: left, with no crossing; open: still inside with no crossing, or no sample, so the margin is undetermined; not_evaluated: the run did not compute the quantity
  • The FIC is the engine’s: SFPE incapacitation denominators (HCl 900 ppm), not the ISO 13571 FEC (HCl 1000 ppm), and one threshold list serves the FED and the FIC. No ISO FEC is reported.
  • Visibility: K >= C / limit. The defaults are a limit of 10 m (Engineers Australia 2014 p. 15, NZBC C/VM2 commentary p. 30, vfdb TB 04-01 Table 8.3) and C = 3 for light-reflecting signs, so K = 0.3 1/m; use --summary-visibility-c 8 for light-emitting signs (C from Jin, as quoted in vfdb p. 314 and ISO 13571:2012 Note 2 p. 11). The vfdb limit D_L = 0.1 1/m is K = 0.23 1/m, which Schröder et al. (2020) used.
  • A criterion without its history reads not_evaluated with empty cells: heat without a heat model (the 20 °C of the FED history is ambient, not a result), the gas FED and the FIC in a heat-only run, K without a smoke model.
  • Crossing times have the resolution of the history: the first sample at or after the true crossing. The sample at the exit time counts as inside.

Route history

ColumnMeaning
time_s, agent_idwhen, and who
old_exit, new_exitexit before and after; new_exit is a node for explore, wander, return and stay. old_exit is empty for explore, wander, return and stay, for an initial row, and for a default_route row at spawn. The first exit an agent takes writes a row only as a default_route row at spawn, an initial row at a re-evaluation, or an allocation_preference row at spawn (the opening choice moves an agent of a preference area off its allocated exit, which is then old_exit); any other opening choice, including one that overrides the exit a journey scripts, writes none. The paragraphs below say when each is written. An agent that leaves its default route for another exit while the default exit is open has the default exit as old_exit
old_cost, new_costranking cost of the two routes, rounded to 4 decimals; old_cost is empty when there was none
reasoninitial, default_route, allocation_preference, fed_reroute, smoke_reroute, exit_closed, exit_opened, learned_exit, congestion, shorter_path, exit_unreachable, resume, fallback, better_path, explore, wander, return or stay

The reasons are defined on Routing in practice. A change of exit is labelled by its cause (#92): smoke_reroute only when smoke made the switch, fed_reroute when the dose did, shorter_path when time or length alone did.

An initial row is written only when an agent that has no exit at a re-evaluation is given its first one: for an agent on its default route, when that exit is its default exit or the default exit is not open. A default_route row is written for an agent that follows its default route, the journey or the nearest exit on foot: at spawn when its map holds no exit, or when its known exits are all closed or unreachable. For a default exit that has not opened yet, the spawn row names the open exit the agent is sent to; with no exit open there is none. Other agents that start with a journey exit get no row until they change target, so a run without any switch (such as the example above, Route history rows: 0) writes a file with only its header. This does not mean rerouting was off.

Route cost history

One row per candidate route at each evaluation of each agent. The columns are the fields of RouteCost, defined on Routing in practice, plus the context of the evaluation:

ColumnMeaning
time_s, agent_id, sourcewhen, who, and the graph node the route starts from
current_exit, current_fedthe agent’s exit and gas FED at this evaluation
route_rank, exit_id, pathrank of this route (1 is best), its exit, and its node sequence
path_length_m, k_ave_route, travel_time_s, fed_max_routeroute measures
composite_cost, rank_cost, k_max_route, tau_route, k_leg_max, cleancost terms; which one orders the routes depends on the cost model
feasible, rejected, rejection_reasonwhether the route was available, and why not. When every route is refused, the route the agent is sent along stays rejected and its reason starts with fallback: ; read that prefix to tell it from a refusal that ended the tick
queue_time_s, exit_count, exit_queue_ahead, exit_capacityqueue estimate at the exit: queue_time_s is exit_queue_ahead / exit_capacity (the agents ahead of this agent at that exit, 0 while w_queue is 0); exit_count is every agent counted at the exit
length_outside_mlength of the route outside the FDS slice coverage [m], measured on the edges between its nodes, like path_length_m, so it does not change as the agent walks; empty without FDS data. Outside the slices the route is costed in clear air (#431)

Under the default "gate" model, routes are ordered on tau_route, not on composite_cost; see Usage › Route cost curves.

Exit history

One row per agent that walks the stage graph, in spawn order. From Python it is result.exit_history. --replay-exits reads its origin, spawn_index and exit_id columns.

ColumnMeaning
agent_idJuPedSim agent id, as in the trajectory SQLite
originwhere the agent was spawned: initial for the agents placed at t = 0, flow:<distribution> for a flow source
spawn_indexorder in which the agent was spawned from its origin in this run, from 0
exit_idthe exit the agent left through; for an agent still inside at the end, the exit it was heading for

Pre-evacuation times

One row per agent that has a pre-movement time, in agent id order. From Python it is result.pre_evacuation_times. Flow-spawned agents have no pre-movement and no row. The web GUI and the terminal UI do not write this file.

ColumnMeaning
agent_idJuPedSim agent id, as in the trajectory SQLite
distributionthe key of the distribution the agent was placed from, e.g. jps-distributions_0
premovement_time_sthe drawn pre-movement time [s], premovement_offset_s included
movement_start_sthe simulation time [s] the agent was released, at the first step at or after premovement_time_s; empty if it never was (incapacitated first, or still held at the end)

Detection and reaction times are not split out; see #113.

Knowledge history

--output-knowledge-history CSV writes one row per exit an agent came to know, by time, then agent id. From Python it is result.knowledge_history, filled when run_scenario is called with collect_cognitive_map_history=True (the CLI always sets it). An agent knows, at time t, the exits of its rows with time_s up to t, so a row is written for every exit known at spawn too. The web GUI and the terminal UI do not write this file.

ColumnMeaning
time_ssimulation time [s] the exit became known; for the exits known at spawn, the time the agent’s map was made (its spawn, or its first route evaluation)
agent_idJuPedSim agent id, as in the trajectory SQLite
exit_idthe exit stage id
howentrance (listed in the distribution’s entrance), familiarity_draw (the familiarity draw at spawn; with familiarity full every exit), sight (seen, at spawn or later; a node is seen only by its sign), arrival (revealed on reaching a node), look (revealed from a node point the agent walked to look from)

An exit known for more than one reason has one row, with the first.

Reading the results

ScenarioResult (and the summary line of run.py) reports:

FieldMeaning
evacuation_timesimulated time when the loop stopped: all agents left, only incapacitated agents left inside, the flows closed, a deadlock was detected, or the time limit
metrics["last_exit_time"]simulated time the last agent left, by direct-steering removal or through a JuPedSim exit, rounded to 0.01 s; None when nobody left. Never later than evacuation_time
total_agents, agents_evacuated, agents_remaininghead counts at the end
agents_not_spawnedflow agents that had not entered when the run stopped: cut off by max_simulation_time, or still waiting for a free position when their flow window closed. A configuration error while building a flow agent stops the run instead of being counted here
metrics["flow_spawns_deferred"]how often a flow found no free position in its spawn area and waited, counted per flow and time step: two flows waiting in one step count twice; the run then prints one line per such flow (#710)
status"completed" when every agent entered and left; "incomplete" when the run reached max_simulation_time with agents inside or still to enter, when the building emptied after its flow windows closed with flow agents not spawned, when only incapacitated agents remain inside and no flow window is open, or when the whole crowd stood still and the run stopped as a deadlock
end_reasonwhy the run stopped: "all_evacuated" for a completed run; "time_limit" when max_simulation_time stopped it; "flows_closed" when the building emptied after the last flow window with agents still to enter had closed, before the time limit; "all_mobile_left" when every mobile agent has left, only incapacitated agents remain inside and no flow window is open; "deadlock" when every mobile agent inside stood still (net displacement below 0.03 m over the last 100 s) and no agent was in pre-movement, at a waiting stage or still to spawn. The run stops at once, before the time limit, unless a FED model is on and a stuck agent’s dose can still reach its threshold before the time limit (see below). Also in metrics["end_reason"]
successTrue only for a completed run; run.py then exits with status 0, and with status 2 for an incomplete run
metrics["route_switches"]per agent, each time step whose decision changes the agent’s target (new_exit), or its path to an exit it holds (a row with an old_exit). A time step counts at most once, judged by its last row, the decision the agent acts on. The agent’s first step counts only if its row names an old exit, the exit seeded at spawn. Reasons are not read (#733, #744). Each new explore or wander node counts, also moving on after reaching the previous one, so the count is not a number of reversals. Present when the route history has rows, so it can be 0
metrics["fed_enabled"]True when the gas FED ran, False otherwise (CO, CO2 or O2 missing, or no --fds-dir). With False there is no fed_max, and a heat-only run’s fed_cumulative column is all zero
metrics["fed_max"]highest gas FED of any agent; present only when the gas FED ran. It stops at the collapse row of an incapacitated agent
metrics["heat_fed_max"]highest heat FED; present only when the heat FED ran. It stops at the collapse row of an incapacitated agent

Four things to keep in mind:

  • An incapacitated agent stays in the simulation. It stays where it collapsed until the run ends, is never counted in agents_evacuated and is not sampled after its collapse row. The run ends when every mobile agent has left and no flow window is open: end_reason is "all_mobile_left", the run is "incomplete" and success is False. evacuation_time is then the end of the loop, not an exit time. Read metrics["last_exit_time"] or the trajectory for exit times, as the RSET how-to does (#141).
  • A deadlocked run stops early. When every mobile agent inside has moved less than 0.03 m, net, over the last 100 s, the run stops at once with end_reason "deadlock", "incomplete" and success False, instead of running to max_simulation_time. The rule is fixed and has no option. Incapacitated agents are not counted. The rule waits while any other agent is in pre-movement, at a waiting stage, idle until a decision gives it somewhere to go, or has a desired speed of 0, and for 100 s after such an agent starts to move; it also waits while a flow source can still spawn agents or an exit has yet to open. A crowd that stands still with nothing left to wait for, such as one whose only reachable exit has closed or whose max_throughput lets an agent through less often than every 100 s, can be reported the same way. evacuation_time is the detection time, not an egress time, and metrics["deadlock"] and the manifest outcome["deadlock"] list the stuck agents’ count, the start of the window (since_s), their positions and ended_run. With a gas or heat FED model on that can incapacitate, a deadlock does not end the run while a stuck agent’s dose can still reach that agent’s incapacitation threshold before max_simulation_time: at its latest FED rate, (threshold - dose) / rate is at most the time left (rate and dose are those of the latest FED update, up to one update interval old), for the gas or the heat dose, whichever is sooner (the agent’s own drawn threshold in probabilistic mode). A rate of 0 never reaches it. The run then logs the detection once and goes on, so the stuck agents’ incapacitation is recorded. The criterion is checked at every deadlock check, so a run that went on can still end as a deadlock later. It otherwise ends by the usual rules (all_mobile_left, time_limit), and metrics["deadlock"] keeps the deadlock that ended the run, or the first one with ended_run False when the run went on to another end (#988). Cool air, where the dose cannot reach the threshold in time, leaves the rule as it was. A working bottleneck, with some agents still moving, never fires the rule. pyFDS-Evac only reports the jam; it does not clear it (see Known defects).
  • No FED is not zero FED. If neither FED track ran, fed_history is None, metrics has no fed_max, and --output-fed-history writes no file. If only the heat FED ran, the FED history exists and its fed_cumulative column is all zero. Check metrics["fed_enabled"], or the FED is disabled warning (#137).
  • The progress line counts planned agents. With flow spawning it names its denominator, Evacuated 142/200 planned, and can show more agents than the final summary, which counts those actually spawned. Runs without flow sources print Evacuated 1/1.
Last updated on