Testing the Charging Hub Outage That Only Breaks the Grid at Peak Hour
A coupled traffic and grid simulation can pass every nominal scenario and still fail once a single charging hub drops out during the evening peak. The fault does not stay where it starts. Fleet rebalancing pushes the lost demand onto neighbouring hubs, those hubs push a transformer past its thermal limit, and the grid model curtails charging power. That curtailment then feeds back into dispatch as longer queues. The test that catches this has to recreate the load, inject the fault, and check whether the system degrades in a controlled way or slowly falls apart.
Why the nominal suite misses it
In most qualification plans, the agent-based traffic engine and the distribution grid model run as separate federates that exchange state through co-simulation interface standards such as FMI or HLA. Each federate gets validated on its own and the coupling gets checked with smooth demand curves. The cascade above depends on timing, and smooth curves never trigger it. Under load, the dispatcher is reacting to grid capacity it last received one coupling step ago. That staleness is harmless at off-peak occupancy and becomes the dominant error when every vehicle in a district is being redirected at the same moment. The failure is emergent behaviour, so no isolated unit test will reproduce it.
The test: a paired fault run against a twin
Run two simulations from the same random seed, the same synthetic population and the same peak-hour demand. The only difference is that in the second run the highest-utilisation hub goes offline partway through the peak. In that same run, the grid federate's responses are delayed so that they arrive one coupling step late, which reproduces what a congested co-simulation bus or a slow power flow solve does in production. Set the coupling step to the value the deployment will actually use, typically 60 seconds of simulated time for fleet charging studies, because the bug lives in the interaction between that interval and the dispatcher's reaction time. Because the runs are twins, you can diff them agent by agent and step by step, and any divergence beyond the outage itself is the system's own response. The signals to watch are served-trip ratio, queue length at the fallback hubs and transformer loading. Watch one more: the age of the grid state the dispatcher consumed at each decision. A healthy coupling layer flags that age and drops into a conservative mode. A fragile one keeps reusing the last value without reporting anything.
What separates graceful degradation from collapse
Losing service during the outage is expected and is not the failure. The failure is hysteresis, where the hub comes back online and the system does not recover because the rebalancer, now trained on inflated queues, keeps oscillating vehicles between hubs, and the grid federate keeps curtailing in response to the load that oscillation creates. The twin run makes this visible as a gap in served trips that persists after the fault clears. Without a baseline, the same gap would look like normal peak variance. Use this decision rule in the plan: the build qualifies only if served-trip ratio returns to the twin's trajectory within a fixed number of coupling steps after restoration, and you set that number from the operator's service level agreement rather than from what the current build happens to achieve. By my estimate, a recovery window of three to five coupling steps is achievable for a well-damped dispatcher. Anything that needs an order of magnitude more is usually a control loop fighting stale data, not a capacity problem.
The trade-off you inherit is cost: every fault scenario doubles the run count. A full peak-hour twin at city scale can take, on my estimate, several hours per pair on a modest cluster. That means you have to choose which hubs and which delay magnitudes to sweep, and the defensible choice is the hubs whose loss puts the most fleet demand onto the fewest feeders.
Technical FAQ: Should the grid delay be injected separately from the hub outage?
Run each one separately first, so that you know what each fault does on its own, and then run them together. The cascade only shows up when stale grid state and a demand shift coincide, and the combined run is the one that decides qualification.