Repeatability
The same inputs give the same bits on every run, CPU tier and operating system, and the dense and sparse engines agree to the bit.
How determinism worksEvidence
GridSim's solvers are checked against pandapower, published MATPOWER solutions and SciPy, and its frequency model is replayed against recorded GB events. Every figure on this page comes from a run recorded in the repository, with the script that measured it.
Three kinds of evidence
The same inputs give the same bits on every run, CPU tier and operating system, and the dense and sparse engines agree to the bit.
How determinism worksResults agree with independent tools solving the same equations, and every converged state can be audited against the conservation laws it must satisfy.
See the cross-checksThe frequency model replays sourced GB disturbances through a credibility gate before any counterfactual is allowed to run.
See the replaysPower flow against pandapower
The worst difference on the full 3,539-bus GB model is 3.3e-13 pu, a 2.7× margin inside the gate.
Each case is solved in GridSim, exported and re-solved independently in pandapower 3.5.5. The gate is 4096 machine epsilons, 9.09e-13, on voltage magnitude in per unit and angle in radians. Run it yourself with gridsim crossval case14.
| Case | Vm (pu) | Va (rad) |
|---|---|---|
| case9 | 4.4e-16 | 7.0e-17 |
| case14 | 4.4e-16 | 1.1e-15 |
| case30 | 6.7e-16 | 1.7e-15 |
| case57 | 1.8e-15 | 3.5e-15 |
| case118 | 8.9e-16 | 2.7e-15 |
| case300 | 5.2e-14 | 8.7e-14 |
| gb-synthetic, 2,227 buses | 1.9e-14 | 3.9e-14 |
| gb-full, 3,539 buses | 3.3e-13 | 3.0e-13 |
SciPy, MATPOWER and more
| Check | Reference | Gate | Measured |
|---|---|---|---|
| case9 power flow | Published MATPOWER solution | Vm to 3 decimals, Va to 2, loss to 2 | Exact to those decimals; 4 iterations to a mismatch of 1.6e-14 pu; loss 4.641 MW |
| Swing equation | SciPy RK45 | 0.02 Hz/s; 0.05 Hz | 1.6e-4 Hz/s and 2.2e-4 Hz on a 1,320 MW loss |
| Classical multi-machine swing | SciPy | 1e-3 rad | 3.7e-8 rad on case9 |
| Small-signal eigenvalues | Independent Python sidecar | 4096 machine epsilons × eigenvector condition number | 3.1e-8 relative on case9, at a condition number of 1.9e10 |
| State estimation | pandapower.estimation | 1e-6 pu; 1e-5 deg | case14 5.56e-12 pu and 7.74e-11 deg; case30 4.44e-16 pu; case118 2.36e-13 pu |
| Impedance-stability rebuild | Independent Python sidecar | 4096 machine epsilons | Worst case 28.06 machine epsilons |
| Harmonic penetration | Independent Python sidecar | 4096 machine epsilons (9.09e-13) | 9.7e-17 pu |
| Quasi-static time series | OpenDSS | 1e-10 pu, every tap and capacitor-bank operation at the same step | 1.8e-11 pu daily; 7.9e-12 pu at 1 s steps |
Any solved state can be audited against the laws it must satisfy: energy, Ohm's law, Joule heating, Kirchhoff's current law and complex-power balance. A state that passes the solver's tolerance but breaks a law is reported, and a non-converged result is never reported as a success.
gridsim crossval <case>: re-solve in pandapowergridsim physics-check and gridsim conformance: audit a solved stategridsim simdcheck and gridsim gpucheck: check the computeRecorded GB events
A counterfactual runs only after the baseline reproduces the recorded event. The gate allows ±15 % on RoCoF and ±0.15 Hz on the nadir, and nothing is tuned to pass it.
Simulated RoCoF −0.171 Hz/s against −0.170 Hz/s recorded, a 1 % error. Nadir 48.84 Hz against 48.80 Hz recorded, a 0.04 Hz error. Counterfactuals unlocked.
Against NESO’s 1-second frequency trace the per-sample RMSE is 0.099 Hz, above the 0.05 Hz bar, so the trace check reads MARGINAL for trajectory shape. The model reproduces the headline physics of the event, not every sample.
Frequency fell to 49.275 Hz. The model's own uncertainty envelope traces the residual to one nameable gap in the public record, the basis of the inertia measurement. RMSE against the trace is 0.281 Hz. Counterfactuals stay locked.
Both earlier placeholder versions of the 2019 event failed the same gate, with 27 to 33 % RoCoF error. Only the inputs changed, from curated to sourced; the swing model, tolerances and verdict logic stayed the same.
Replaying the 2019 eventThe 2023 marginal baselineThe replay as a case studyRead the record
Eight tools, 245 networks, one harness and an independent residual check before any timing counts.
Benchmark resultsSolve, export, read back and solve again: JSON v2 preserved the checked solution, and the read-back showed what each other format changed.
DetMath, the IL guard test, the CI matrix, and how a release labels every change to a numerical result.
Breaking-change disciplineDeterministic mathematicsEvery figure in a replay carries a provenance tag: recorded, derived, curated placeholder, synthetic or counterfactual. A 169-hour no-forward-inference horizon is enforced in code at every dated ingester.
Replaying the 2019 eventCheck it yourself
gridsim crossval case14
gridsim replay-event gb-2019-08-09Get started