Konjugate benchmark report

Konjugate 2.0.1 · engine 0.2.0 · commit e30c15f · --full · 2026-11-25T06:52:58.055Z

Konjugate is evaluated against established numerical and engineering benchmarks, with reproducible reference comparisons, conservation checks and performance measurements. Each problem below is run headless by the native engine from a committed model and compared with an analytic solution or an independent high-accuracy numerical reference. Konjugate integrates with fixed-step explicit or semi-implicit Euler node by node, both first order, or with Runge–Kutta 4 applied to the whole model at once, fourth order and as accurate across the coupling between nodes as within them; the results show where each is accurate and where it is not. How the numbers are made, and how to reproduce them, is in benchmarks/README.md.

584 / 584
checks within their thresholds
23
problems
883
engine runs
4.80e7
node substeps integrated

✓ Every check is within its threshold.

Thermal RC network

Four thermal masses, five conductances, a 500 W heater and a fixed ambient, one node per mass: transient and steady-state error against the matrix-exponential solution, and the energy balance.

Directory benchmarks/thermal/rcNetwork/ · models rcNetwork.kjt · numerical reference reference.json: scipy.linalg.expm of the augmented matrix [[A, b], [0, 0]], in temperatures above ambient (SciPy 1.13.1, NumPy 2.0.2)

Heated mass A temperatureExact solution against explicit Euler at two global steps
  • Exact (matrix exponential)
  • Konjugate, h = 16 s
  • Konjugate, h = 64 s
28030032034036001234Time (h)Temperature (K)
Data table (every 2th point; all 65 are in plots/thermalHeatedMass.csv)
Time (h)Exact (matrix exponential)Konjugate, h = 16 sKonjugate, h = 64 s
0293.1293.1293.1
0.1422297.8297.8297.8
0.2844301.5301.5301.5
0.4267304.7304.7304.7
0.5689307.5307.5307.6
0.7111310310.1310.1
0.8533312.4312.4312.5
0.9956314.6314.6314.6
1.138316.6316.6316.6
1.28318.4318.4318.5
1.422320.2320.2320.2
1.564321.8321.8321.9
1.707323.4323.4323.5
1.849324.9324.9324.9
1.991326.3326.3326.4
2.133327.7327.7327.7
2.276329329329
2.418330.2330.2330.3
2.56331.4331.4331.5
2.702332.6332.6332.6
2.844333.7333.7333.7
2.987334.8334.8334.8
3.129335.8335.9335.9
3.271336.9336.9336.9
3.413337.9337.9337.9
3.556338.8338.8338.9
3.698339.8339.8339.8
3.84340.7340.7340.7
3.982341.6341.6341.6
4.124342.4342.4342.5
4.267343.3343.3343.3
4.409344.1344.1344.1
4.551344.9344.9344.9
Heated mass A: error at two global steps|Konjugate - exact|, explicit Euler; a quarter of the step gives about a quarter of the error
  • h = 64 s
  • h = 16 s
00.020.040.060.0801234Time (h)Absolute error (K)
Data table (every 2th point; all 65 are in plots/thermalStepError.csv)
Time (h)h = 64 sh = 16 s
000
0.14220.056850.01383
0.28440.062740.01554
0.42670.064550.01607
0.56890.066880.01665
0.71110.068730.0171
0.85330.069420.01727
0.99560.068920.01715
1.1380.067490.0168
1.280.065450.01631
1.4220.063070.01572
1.5640.060560.01511
1.7070.058070.0145
1.8490.055710.01392
1.9910.053540.01338
2.1330.051580.01289
2.2760.049850.01247
2.4180.048360.0121
2.560.047080.01178
2.7020.046010.01151
2.8440.045120.01129
2.9870.04440.01111
3.1290.043810.01096
3.2710.043340.01084
3.4130.042980.01075
3.5560.04270.01068
3.6980.042490.01062
3.840.042330.01058
3.9820.042220.01055
4.1240.042140.01053
4.2670.042080.01052
4.4090.042040.01051
4.5510.042010.0105
Temperature error over time|Konjugate - exact| per mass, explicit Euler, h = 16 s
  • Mass A (heated)
  • Mass B
  • Mass C
  • Mass D
00.010.020.0301234Time (h)Absolute error (K)
Data table (every 2th point; all 65 are in plots/thermalError.csv)
Time (h)Mass A (heated)Mass BMass CMass D
00000
0.14220.013830.029870.0017920.01122
0.28440.015540.015214.31e-40.01634
0.42670.016070.0026730.0021340.01825
0.56890.016650.0039780.0029360.01832
0.71110.01710.0070380.0030890.01733
0.85330.017270.0083510.0028230.01576
0.99560.017150.0088770.0022950.01392
1.1380.01680.0090540.0016040.012
1.280.016310.0090768.20e-40.01011
1.4220.015720.0090329.22e-60.00832
1.5640.015110.0089638.47e-40.006659
1.7070.01450.008890.0016690.005144
1.8490.013920.0088230.0024580.003778
1.9910.013380.0087680.0032040.002557
2.1330.012890.0087270.0038980.001471
2.2760.012470.0087020.004545.10e-4
2.4180.01210.0086910.0051273.36e-4
2.560.011780.0086930.0056620.00108
2.7020.011510.0087060.0061450.001731
2.8440.011290.0087290.0065810.002301
2.9870.011110.008760.0069710.002799
3.1290.010960.0087960.007320.003232
3.2710.010840.0088370.0076310.003609
3.4130.010750.008880.0079080.003936
3.5560.010680.0089240.0081520.00422
3.6980.010620.0089680.0083680.004466
3.840.010580.0090110.0085570.004678
3.9820.010550.0090520.0087230.004861
4.1240.010530.009090.0088670.005018
4.2670.010520.0091240.0089920.005152
4.4090.010510.0091540.0090990.005266
4.5510.01050.0091810.009190.005363

Checks

CheckWhat it measuresValueThresholdResult
transientRelativeErrorLargest temperature error over the transient, relative to each mass's range (h = 16 s)0.001467≤ 0.0018✓ Pass
energyBalanceResidualEnergy balance from Konjugate's own states, Σ C ΔT against heat supplied minus heat lost, relative to heat supplied5.57e-15≤ 1.00e-12✓ Pass
steadyStateErrorLargest final-temperature error against the exact steady state after 524288 s1.81e-10≤ 1.00e-8✓ Pass
semiImplicitDifferenceSemi-implicit against explicit integration: identical, since each node has one state and other nodes are read from the snapshot0≤ 0✓ Pass
referenceAgreementThis reference against SciPy's scipy.linalg.expm (reference.json), largest difference relative to each column's magnitude (temperatures and heat lost)1.19e-12≤ 1.00e-10✓ Pass
All 3 result rows
CaseMethodh (s)SubstepsHorizon (s)Max abs errorRMSERelative errorConservation errorSteady-state errorStepsSubsteps runEvaluationsNote
transientexplicit Euler16116,3800.029870.0098520.0014675.57e-15–1,0246,14413,310conservation = energy-balance residual / heat supplied
transientexplicit Euler64116,3800.12520.039730.005932.42e-15–2561,5363,328conservation = energy-balance residual / heat supplied
steady stateexplicit Euler6415.24e5––––1.81e-108,19249,1501.06e5final temperatures against A T* = -b

RLC circuits

A series RLC circuit and a pair of RLC loops coupled through a resistor, driven by a 10 V step: currents, voltages and energy dissipated against the exact solution, for explicit and semi-implicit Euler.

Directory benchmarks/electrical/rlcCircuits/ · models seriesRlc.kjt, coupledRlc.kjt · numerical reference reference.json: scipy.linalg.expm of the augmented matrix, energy dissipated from the energy balance V q - stored (SciPy 1.13.1, NumPy 2.0.2)

Series RLC: inductor currentExact solution against Konjugate at h = 2^-14 s
  • Exact (matrix exponential)
  • Konjugate, explicit Euler
  • Konjugate, semi-implicit Euler
-1-0.500.510102030Time (ms)Current (A)
Data table (every 2th point; all 65 are in plots/seriesRlcCurrent.csv)
Time (ms)Exact (matrix exponential)Konjugate, explicit EulerKonjugate, semi-implicit Euler
0000
0.97660.75280.77780.7566
1.9530.770.81380.7699
2.930.16840.17260.1619
3.906-0.4611-0.5295-0.4678
4.883-0.6102-0.7046-0.6091
5.859-0.2449-0.2751-0.2355
6.8360.25140.3270.2608
7.8130.45860.58210.4589
8.7890.26230.32370.2527
9.766-0.1089-0.1693-0.1198
10.74-0.3272-0.4596-0.3296
11.72-0.2451-0.3331-0.2369
12.70.018430.052530.02967
13.670.22050.34560.2248
14.650.21040.31580.2044
15.630.033830.028760.02331
16.6-0.1384-0.2454-0.1442
17.58-0.1694-0.2819-0.1659
18.55-0.05944-0.08073-0.05036
19.530.078570.16150.08509
20.510.12930.23940.128
21.480.06760.10950.06031
22.46-0.03718-0.0943-0.04376
23.44-0.09364-0.1942-0.09408
24.41-0.0652-0.1209-0.05979
25.390.010330.042970.01645
26.370.06420.15050.06586
27.340.057170.11990.05351
28.320.005672-0.0058293.40e-4
29.3-0.04123-0.1108-0.04361
30.27-0.04684-0.1108-0.04466
31.25-0.014-0.01926-0.009618
Series RLC: energy dissipatedExact (energy balance) against Konjugate's integrated R i², h = 2^-14 s
  • Exact
  • Konjugate, explicit Euler
  • Konjugate, semi-implicit Euler
00.0020.0040.0060.0080102030Time (ms)Energy (J)
Data table (every 2th point; all 65 are in plots/seriesRlcDissipated.csv)
Time (ms)ExactKonjugate, explicit EulerKonjugate, semi-implicit Euler
0000
0.97664.45e-44.32e-44.86e-4
1.9530.0017880.0018960.001837
2.930.0023370.0025510.002346
3.9060.002460.00270.002487
4.8830.0031340.0035790.003177
5.8590.0035680.004180.003582
6.8360.0036090.0042420.003625
7.8130.0039140.0047230.003946
8.7890.0042160.0052170.004231
9.7660.004250.0052750.00426
10.740.0043720.0055120.004394
11.720.0045610.0058820.004576
12.70.00460.0059560.004607
13.670.0046420.0060590.004656
14.650.0047490.0063130.004762
15.630.0047870.0063990.004794
16.60.0047990.0064360.004809
17.580.0048550.0065970.004865
18.550.0048860.0066820.004892
19.530.004890.0066950.004897
20.510.0049150.0067880.004924
21.480.0049380.0068630.004944
22.460.004940.0068710.004946
23.440.0049510.006920.004958
24.410.0049650.0069790.004971
25.390.0049680.0069870.004973
26.370.0049720.007010.004978
27.340.004980.0070530.004986
28.320.0049830.0070640.004988
29.30.0049840.0070730.00499
30.270.0049890.0071010.004994
31.250.0049910.0071130.004996
Coupled RLC pair: inductor current (driven loop)Exact solution against Konjugate at h = 2^-14 s
  • Exact (matrix exponential)
  • Konjugate, explicit Euler
  • Konjugate, semi-implicit Euler
-0.200.20.40.60.810102030Time (ms)Current (A)
Data table (every 2th point; all 65 are in plots/coupledRlcCurrent.csv)
Time (ms)Exact (matrix exponential)Konjugate, explicit EulerKonjugate, semi-implicit Euler
0000
0.97660.76530.78720.7683
1.9530.89340.92830.8915
2.930.51930.5240.512
3.9060.1040.056320.09669
4.8830.02187-0.04420.02023
5.8590.29790.27860.3025
6.8360.65440.71270.6601
7.8130.78580.87910.7866
8.7890.61310.65740.6078
9.7660.31740.26530.3108
10.740.15660.047280.155
11.720.24430.17330.2494
12.70.47590.50970.4832
13.670.64310.7560.646
14.650.6180.71180.6139
15.630.44650.43760.4392
16.60.28830.1830.2843
17.580.27070.16110.2735
18.550.38950.37160.3964
19.530.52950.61850.5344
20.510.57350.69070.5722
21.480.49840.54140.4923
22.460.38130.31410.3759
23.440.32350.20680.3234
24.410.36420.30030.3692
25.390.45720.49960.4627
26.370.51950.62840.5208
27.340.50430.58360.5006
28.320.43440.41690.4292
29.30.3740.27870.3719
30.270.37140.28310.3738
31.250.42080.4150.4255
Coupled RLC pair: energy dissipatedExact (energy balance) against Konjugate's integrated R i², h = 2^-14 s
  • Exact
  • Konjugate, explicit Euler
  • Konjugate, semi-implicit Euler
00.050.10.150102030Time (ms)Energy (J)
Data table (every 2th point; all 65 are in plots/coupledRlcDissipated.csv)
Time (ms)ExactKonjugate, explicit EulerKonjugate, semi-implicit Euler
0000
0.97665.39e-45.09e-46.00e-4
1.9530.0030860.0031360.003249
2.930.0066110.0067980.006794
3.9060.010370.010590.01054
4.8830.014630.014910.01479
5.8590.019170.019520.01931
6.8360.023950.024390.0241
7.8130.028970.029670.02912
8.7890.033610.034490.03373
9.7660.037610.038420.03772
10.740.041520.042260.04163
11.720.045670.046460.0458
12.70.050070.050960.05022
13.670.054720.055840.05487
14.650.059320.060710.05946
15.630.063560.064970.06368
16.60.067570.068840.06768
17.580.071640.072870.07176
18.550.075890.077180.07603
19.530.080320.081770.08047
20.510.084820.086530.08496
21.480.089160.090990.08929
22.460.09330.095020.09341
23.440.097380.098990.0975
24.410.10160.10320.1017
25.390.10590.10760.106
26.370.11030.11220.1104
27.340.11460.11670.1148
28.320.11890.12090.119
29.30.1230.12490.1231
30.270.12720.1290.1273
31.250.13140.13330.1315

Checks

CheckWhat it measuresValueThresholdResult
seriesRelativeErrorExplicitSeries RLC: largest current/voltage error relative to range, explicit Euler, h = 2^-16 s0.01979≤ 0.025✓ Pass
seriesDissipatedEnergyErrorExplicitSeries RLC: largest error in energy dissipated, relative to the exact total, explicit Euler0.08144≤ 0.1✓ Pass
seriesEnergyBalanceDefectExplicitSeries RLC: energy-balance defect V q - stored - dissipated from Konjugate's own states, relative to the source's work, explicit Euler0.04293≤ 0.054✓ Pass
seriesRelativeErrorSemiImplicitSeries RLC: largest current/voltage error relative to range, semi-implicit Euler, h = 2^-16 s0.004388≤ 0.0055✓ Pass
seriesDissipatedEnergyErrorSemiImplicitSeries RLC: largest error in energy dissipated, relative to the exact total, semi-implicit Euler0.002764≤ 0.0035✓ Pass
seriesEnergyBalanceDefectSemiImplicitSeries RLC: energy-balance defect V q - stored - dissipated from Konjugate's own states, relative to the source's work, semi-implicit Euler0.00287≤ 0.0036✓ Pass
seriesReferenceAgreementSeries RLC: this reference against SciPy's expm and energy balance (reference.json), largest difference relative to each column's magnitude4.38e-14≤ 1.00e-10✓ Pass
coupledRelativeErrorExplicitCoupled RLC pair: largest current/voltage error relative to range, explicit Euler, h = 2^-16 s0.02765≤ 0.035✓ Pass
coupledDissipatedEnergyErrorExplicitCoupled RLC pair: largest error in energy dissipated, relative to the exact total, explicit Euler0.002923≤ 0.0037✓ Pass
coupledEnergyBalanceDefectExplicitCoupled RLC pair: energy-balance defect V q - stored - dissipated from Konjugate's own states, relative to the source's work, explicit Euler0.002784≤ 0.0035✓ Pass
coupledRelativeErrorSemiImplicitCoupled RLC pair: largest current/voltage error relative to range, semi-implicit Euler, h = 2^-16 s0.004811≤ 0.006✓ Pass
coupledDissipatedEnergyErrorSemiImplicitCoupled RLC pair: largest error in energy dissipated, relative to the exact total, semi-implicit Euler3.36e-4≤ 4.20e-4✓ Pass
coupledEnergyBalanceDefectSemiImplicitCoupled RLC pair: energy-balance defect V q - stored - dissipated from Konjugate's own states, relative to the source's work, semi-implicit Euler2.21e-4≤ 2.80e-4✓ Pass
coupledReferenceAgreementCoupled RLC pair: this reference against SciPy's expm and energy balance (reference.json), largest difference relative to each column's magnitude2.50e-14≤ 1.00e-10✓ Pass
All 8 result rows
CaseMethodh (s)SubstepsHorizon (s)Max abs errorRMSERelative errorConservation errorStepsSubsteps runEvaluationsNote
Series RLC: currents and voltagesexplicit Euler1.53e-510.031250.29020.11120.019790.042932,0484,09610,240dissipated-energy error 8.14e-2 of the total; conservation = energy-balance defect / source work
Series RLC: currents and voltagesexplicit Euler6.10e-510.031251.3210.53250.089870.22665121,0242,560dissipated-energy error 4.25e-1 of the total; conservation = energy-balance defect / source work
Series RLC: currents and voltagessemi-implicit Euler1.53e-510.031250.075050.023890.0043880.002872,0484,09610,240dissipated-energy error 2.76e-3 of the total; conservation = energy-balance defect / source work
Series RLC: currents and voltagessemi-implicit Euler6.10e-510.031250.30220.097020.017670.011915121,0242,560dissipated-energy error 1.13e-2 of the total; conservation = energy-balance defect / source work
Coupled RLC pair: currents and voltagesexplicit Euler1.53e-510.031250.27790.10990.027650.0027842,0486,14424,580dissipated-energy error 2.92e-3 of the total; conservation = energy-balance defect / source work
Coupled RLC pair: currents and voltagesexplicit Euler6.10e-510.031251.340.54540.13340.015865121,5366,144dissipated-energy error 1.58e-2 of the total; conservation = energy-balance defect / source work
Coupled RLC pair: currents and voltagessemi-implicit Euler1.53e-510.031250.066650.017710.0048112.21e-42,0486,14424,580dissipated-energy error 3.36e-4 of the total; conservation = energy-balance defect / source work
Coupled RLC pair: currents and voltagessemi-implicit Euler6.10e-510.031250.26820.072290.019369.76e-45121,5366,144dissipated-energy error 1.40e-3 of the total; conservation = energy-balance defect / source work

Harmonic oscillator

An undamped mass on a spring, one node: trajectory error against the exact solution and energy over a long run, explicit against semi-implicit Euler and Verlet.

Directory benchmarks/mechanical/harmonicOscillator/ · models harmonicOscillator.kjt

Harmonic oscillator: displacementExact solution against Konjugate, h = 2^-6 s
  • Exact
  • Konjugate, explicit Euler
  • Konjugate, semi-implicit Euler
  • Konjugate, Verlet
-2-10120204060Time (s)Displacement (m)
Data table (every 7th point; all 257 are in plots/oscillatorTrajectory.csv)
Time (s)ExactKonjugate, explicit EulerKonjugate, semi-implicit EulerKonjugate, Verlet
01111
1.75-0.1782-0.1806-0.1706-0.1783
3.5-0.9365-0.9625-0.9392-0.9364
5.250.51210.53310.50540.5121
70.75390.79670.7590.7539
8.75-0.7808-0.8356-0.776-0.7809
10.5-0.4755-0.517-0.4823-0.4754
12.250.95041.0450.9480.9504
140.13670.15380.14430.1366
15.75-0.9991-1.13-0.9994-0.9991
17.50.21940.250.2120.2196
19.250.92091.0710.92390.9208
21-0.5477-0.6437-0.5414-0.5479
22.75-0.7256-0.8683-0.7308-0.7255
24.50.80640.97510.80190.8066
26.250.43810.54020.44490.4379
28-0.9626-1.197-0.9606-0.9627
29.75-0.09499-0.1229-0.1025-0.09469
31.50.99651.2750.99710.9964
33.25-0.2602-0.334-0.253-0.2606
35-0.9037-1.189-0.9069-0.9035
36.750.58240.77280.57640.5827
38.50.69610.94330.70140.6958
40.25-0.8305-1.135-0.8264-0.8308
42-0.4-0.5596-0.4068-0.3996
43.750.97311.3680.97140.9732
45.50.053070.080990.060410.05261
47.25-0.9921-1.436-0.993-0.992
490.30060.43520.29360.3011
50.750.88491.3180.88830.8847
52.5-0.6161-0.9233-0.6103-0.6165
54.25-0.6653-1.021-0.6707-0.6649
560.85321.3180.84940.8535
57.750.36110.57380.36790.3606
59.5-0.982-1.561-0.9806-0.9821
61.25-0.01106-0.02588-0.01825-0.01043
630.98591.6140.98710.9858
Harmonic oscillator: energy drift over a long runLargest |E - E(0)| / E(0) up to each time, h = 2^-6 s
  • Konjugate, explicit Euler
  • Konjugate, semi-implicit Euler
  • Konjugate, Verlet
1e-41e-211001e41e62505007501,000Time (s)Largest relative energy drift so far
Data table (every 26th point; all 1024 are in plots/oscillatorEnergy.csv)
Time (s)Konjugate, explicit EulerKonjugate, semi-implicit EulerKonjugate, Verlet
10.015750.007194.32e-5
270.52470.0077996.10e-5
531.2890.0078286.10e-5
792.4360.0078426.10e-5
1054.1570.0078546.10e-5
1316.7420.0078636.10e-5
15710.620.0078696.10e-5
18316.440.0078746.10e-5
20925.190.0078746.10e-5
23538.310.0078746.10e-5
26158.010.0078746.10e-5
28787.570.0078746.10e-5
3131320.0078746.10e-5
339198.60.0078746.10e-5
365298.60.0078746.10e-5
391448.70.0078746.10e-5
417674.10.0078746.10e-5
4431,0120.0078746.10e-5
4691,5200.0078746.10e-5
4952,2820.0078746.10e-5
5213,4270.0078746.10e-5
5475,1440.0078746.10e-5
5737,7230.0078746.10e-5
59911,5900.0078746.10e-5
62517,4000.0078746.10e-5
65126,1200.0078746.10e-5
67739,2100.0078746.10e-5
70358,8700.0078746.10e-5
72988,3600.0078746.10e-5
7551.33e50.0078746.10e-5
7811.99e50.0078746.10e-5
8072.99e50.0078746.10e-5
8334.49e50.0078746.10e-5
8596.73e50.0078746.10e-5
8851.01e60.0078746.10e-5
9111.52e60.0078746.10e-5
9372.28e60.0078746.10e-5
9633.42e60.0078746.10e-5
9895.13e60.0078746.10e-5
1,0157.71e60.0078746.10e-5

Checks

CheckWhat it measuresValueThresholdResult
relativeErrorExplicitLargest state error relative to its range over 64 s, explicit Euler, h = 2^-6 s0.3149≤ 0.39✓ Pass
energyDriftExplicitLargest relative energy drift over 1024 s, explicit Euler, h = 2^-6 s8.87e67.10e6 to 1.10e7✓ Pass
relativeErrorSemiImplicitLargest state error relative to its range over 64 s, semi-implicit Euler, h = 2^-6 s0.003889≤ 0.0049✓ Pass
energyDriftSemiImplicitLargest relative energy drift over 1024 s, semi-implicit Euler, h = 2^-6 s0.007874≤ 0.0098✓ Pass
relativeErrorVerletLargest state error relative to its range over 64 s, Verlet, h = 2^-6 s3.18e-4≤ 4.00e-4✓ Pass
energyDriftVerletLargest relative energy drift over 1024 s, Verlet, h = 2^-6 s6.10e-5≤ 7.70e-5✓ Pass
All 6 result rows
CaseMethodh (s)SubstepsHorizon (s)Max abs errorRMSERelative errorConservation errorStepsSubsteps runEvaluationsNote
Harmonic oscillator: trajectoryexplicit Euler0.015631640.62980.24870.31491.7184,0964,0968,192conservation = largest relative energy drift
Harmonic oscillator: long-run energyexplicit Euler0.0156311,024–––8.87e665,54065,5401.31e5final relative energy change 8.87e+6
Harmonic oscillator: trajectorysemi-implicit Euler0.015631640.0077780.0037390.0038890.0078744,0964,0968,192conservation = largest relative energy drift
Harmonic oscillator: long-run energysemi-implicit Euler0.0156311,024–––0.00787465,54065,5401.31e5final relative energy change -2.29e-3
Harmonic oscillator: trajectoryVerlet0.015631646.37e-42.67e-43.18e-46.10e-54,0964,09612,290conservation = largest relative energy drift
Harmonic oscillator: long-run energyVerlet0.0156311,024–––6.10e-565,54065,5401.97e5final relative energy change 1.34e-6

Pendulum at large amplitude

A pendulum released from rest at 2 rad, one node: trajectory error against the exact elliptic-function solution and energy over a long run, explicit against semi-implicit Euler and Verlet.

Directory benchmarks/mechanical/pendulum/ · models pendulum.kjt · numerical reference reference.json: scipy.special.ellipj (exact), and solve_ivp DOP853 (SciPy 1.13.1, NumPy 2.0.2, rtol 1e-12)

Pendulum: angleExact solution against Konjugate, h = 2^-10 s
  • Exact
  • Konjugate, explicit Euler
  • Konjugate, semi-implicit Euler
  • Konjugate, Verlet
-3-2-10123051015Time (s)Angle (rad)
Data table (every 7th point; all 257 are in plots/pendulumTrajectory.csv)
Time (s)ExactKonjugate, explicit EulerKonjugate, semi-implicit EulerKonjugate, Verlet
02222
0.43751.1131.1151.1151.113
0.875-1.027-1.028-1.025-1.027
1.313-1.998-2.008-1.998-1.998
1.75-1.195-1.218-1.196-1.195
2.1880.93760.92120.93550.9376
2.6251.9932.0091.9921.993
3.0631.2731.3331.2751.273
3.5-0.8452-0.7873-0.8429-0.8452
3.938-1.983-2.001-1.983-1.983
4.375-1.347-1.456-1.349-1.347
4.8130.74960.62330.74730.7496
5.251.971.9791.971.97
5.6881.4171.5831.4191.417
6.125-0.6513-0.427-0.6489-0.6513
6.563-1.953-1.939-1.953-1.953
7-1.484-1.708-1.485-1.484
7.4380.55050.19750.5480.5505
7.8751.9331.8751.9321.933
8.3131.5461.8261.5471.546
8.75-0.44750.06374-0.445-0.4475
9.188-1.908-1.78-1.907-1.908
9.625-1.604-1.932-1.605-1.604
10.060.3428-0.35180.34020.3428
10.51.881.6471.8791.88
10.941.6582.0171.6591.658
11.38-0.23670.6578-0.2341-0.2367
11.81-1.848-1.467-1.847-1.848
12.25-1.708-2.077-1.709-1.708
12.690.1296-0.96910.1270.1296
13.131.8111.231.811.811
13.561.7542.1041.7551.754
14-0.022021.271-0.01943-0.02201
14.44-1.771-0.9282-1.77-1.771
14.88-1.795-2.09-1.796-1.795
15.31-0.08566-1.547-0.08824-0.08567
15.751.7270.55831.7261.727
Pendulum: energy drift over a long runLargest |E - E(0)| / (E(0) + g L) up to each time, h = 2^-10 s
  • Konjugate, explicit Euler
  • Konjugate, semi-implicit Euler
  • Konjugate, Verlet
1e-71e-61e-51e-41e-31e-21e-150100Time (s)Largest relative energy drift so far
Data table (every 13th point; all 512 are in plots/pendulumEnergy.csv)
Time (s)Konjugate, explicit EulerKonjugate, semi-implicit EulerKonjugate, Verlet
0.257.11e-47.87e-41.05e-7
3.50.017590.0012581.23e-6
6.750.032630.0012591.23e-6
100.047760.001261.23e-6
13.250.06460.001261.23e-6
16.50.079040.0012611.23e-6
19.750.09430.0012621.23e-6
230.11090.0012631.23e-6
26.250.12520.0012641.23e-6
29.50.13940.0012641.23e-6
32.750.15490.0012651.23e-6
360.17080.0012661.23e-6
39.250.18490.0012661.23e-6
42.50.19870.0012671.23e-6
45.750.21230.0012681.23e-6
490.22590.0012681.23e-6
52.250.23930.0012681.23e-6
55.50.25270.0012691.23e-6
58.750.26590.0012691.23e-6
620.27880.0012691.23e-6
65.250.29170.0012691.23e-6
68.50.30450.001271.23e-6
71.750.31720.001271.23e-6
750.32980.001271.23e-6
78.250.34110.001271.23e-6
81.50.34950.001271.23e-6
84.750.36160.001271.23e-6
880.37320.001271.23e-6
91.250.38020.001271.23e-6
94.50.3920.001271.23e-6
97.750.39820.001271.23e-6
1010.40480.001271.23e-6
104.30.41410.001271.23e-6
107.50.42140.001271.23e-6
110.80.4270.001271.23e-6
1140.43490.001271.23e-6
117.30.44360.001271.23e-6
120.50.45360.001271.23e-6
123.80.45960.001271.23e-6
1270.47020.001271.23e-6

Checks

CheckWhat it measuresValueThresholdResult
relativeErrorExplicitLargest state error relative to its range over 16 s, explicit Euler, h = 2^-10 s0.4082≤ 0.51✓ Pass
energyDriftExplicitLargest relative energy drift over 128 s, explicit Euler, h = 2^-10 s0.47130.38 to 0.59✓ Pass
relativeErrorSemiImplicitLargest state error relative to its range over 16 s, semi-implicit Euler, h = 2^-10 s6.46e-4≤ 8.10e-4✓ Pass
energyDriftSemiImplicitLargest relative energy drift over 128 s, semi-implicit Euler, h = 2^-10 s0.00127≤ 0.0016✓ Pass
relativeErrorVerletLargest state error relative to its range over 16 s, Verlet, h = 2^-10 s3.27e-6≤ 4.10e-6✓ Pass
energyDriftVerletLargest relative energy drift over 128 s, Verlet, h = 2^-10 s1.23e-6≤ 1.60e-6✓ Pass
referenceAgreementEllipticThis reference against scipy.special.ellipj (reference.json), largest difference relative to each column's magnitude2.78e-15≤ 1.00e-10✓ Pass
referenceAgreementSolveIvpThis reference against SciPy solve_ivp, DOP853 at rtol = atol = 1e-12 (reference.json), relative to each column's magnitude: a numerical check, not an exact one1.47e-11≤ 1.00e-9✓ Pass
All 6 result rows
CaseMethodh (s)SubstepsHorizon (s)Max abs errorRMSERelative errorConservation errorStepsSubsteps runEvaluationsNote
Pendulum: trajectoryexplicit Euler9.77e-41163.1880.93860.40820.0777716,38016,38032,770conservation = largest relative energy drift
Pendulum: long-run energyexplicit Euler9.77e-41128–––0.47131.31e51.31e52.62e5final relative energy change 4.71e-1
Pendulum: trajectorysemi-implicit Euler9.77e-41160.0025860.0011866.46e-40.0012716,38016,38032,770conservation = largest relative energy drift
Pendulum: long-run energysemi-implicit Euler9.77e-41128–––0.001271.31e51.31e52.62e5final relative energy change 1.07e-4
Pendulum: trajectoryVerlet9.77e-41162.45e-59.59e-63.27e-61.23e-616,38016,38049,150conservation = largest relative energy drift
Pendulum: long-run energyVerlet9.77e-41128–––1.23e-61.31e51.31e53.93e5final relative energy change -4.03e-9

Lotka–Volterra

Predator and prey over about 50 cycles, as one node and as two: drift of the conserved quantity for explicit and semi-implicit Euler (Verlet does not apply, and is refused in words), and trajectory error against a SciPy DOP853 reference.

Directory benchmarks/population/lotkaVolterra/ · models oneNode.kjt, twoNodes.kjt · numerical reference reference.json: solve_ivp DOP853 (SciPy 1.13.1, NumPy 2.0.2, rtol 1e-12)

Lotka–Volterra phase portraitPredator against prey over the first 32 s, h = 2^-6 s
  • SciPy DOP853 reference
  • Konjugate, explicit Euler
  • Konjugate, semi-implicit Euler
02.557.51012.5102030PreyPredator
Data table (every 13th point; all 513 are in plots/lotkaVolterraPhase.csv)
SciPy DOP853 reference: PreyPredatorKonjugate, explicit Euler: PreyPredatorKonjugate, semi-implicit Euler: PreyPredator
101010101010
0.82149.7160.76549.7260.79069.606
0.12917.2230.11547.2110.12357.123
0.042235.250.037255.2330.040855.171
0.0243.8030.021133.7860.023583.741
0.02042.7530.017992.7370.020332.705
0.023221.9920.020521.9780.023391.956
0.032641.4430.028881.4310.033131.415
0.053421.0460.047281.0360.054461.025
0.097620.76020.086280.75160.099660.7443
0.1930.55550.17020.54790.1970.5435
0.40380.41070.35490.40360.41110.4018
0.87870.31180.76930.30420.89130.3052
1.9620.25141.7120.24151.9810.2464
4.4390.23243.8630.21594.460.2286
9.9970.29318.7180.25239.9940.2897
21.180.719718.930.528221.120.7097
27.224.49930.392.96327.864.366
4.16310.796.80911.074.37110.73
0.39418.8240.46639.6750.3968.775
0.081426.4730.072677.10.080446.429
0.032894.6960.024265.1420.032484.659
0.021813.40.014133.7170.021653.37
0.020742.4610.012272.6860.02072.437
0.02561.7810.014191.9410.025661.762
0.038141.290.020191.4030.038341.275
0.065130.93610.033311.0150.06550.9242
0.12270.68130.061150.7350.12320.672
0.24790.49940.12120.53430.24840.4922
0.52670.37180.25380.39130.52570.3662
1.1580.28670.55230.29131.150.2822
2.6010.23941.2340.22522.5710.2355
5.8920.23992.8040.18985.7940.2355
13.140.3626.4060.194912.870.3518
25.931.24914.410.312125.61.174
18.657.76428.841.23120.37.367
1.70710.4218.48.9681.87510.41
0.2097.9491.09311.150.21717.961
0.055665.7940.10658.3190.056275.798
0.027184.20.025066.0310.027194.198
Lotka–Volterra conserved quantity(V(t) - V(0)) / (V(0) - V*), one node, h = 2^-6 s
  • Konjugate, explicit Euler
  • Konjugate, semi-implicit Euler
-2.502.557.51012.50200400Time (s)Relative drift of V
Data table (every 26th point; all 1025 are in plots/lotkaVolterraInvariant.csv)
Time (s)Konjugate, explicit EulerKonjugate, semi-implicit Euler
000
130.048940.003945
260.13180.009003
390.22630.01032
520.33090.008276
650.45010.005587
780.55810.003225
910.60660.001558
1040.75084.00e-4
1170.9185-0.002212
1300.9555-0.01205
1431.1320.01815
1561.3480.005657
1691.3770.01032
1821.6210.009564
1951.8790.007029
2081.9390.004421
2212.280.002358
2342.3080.001009
2472.713-3.73e-4
2602.742-0.00557
2733.229-0.005337
2863.2580.004415
2993.6640.008655
3123.8850.01039
3253.9230.008465
3384.6680.005779
3514.7010.003376
3644.740.001655
3775.6954.90e-4
3905.732-0.001865
4035.769-0.01117
4167.0430.02039
4297.0790.005146
4427.1180.01021
4558.8560.009712
4688.9230.007227
4818.9610.004596
49490.002483
50711.280.00109

Checks

CheckWhat it measuresValueThresholdResult
invariantDriftExplicitLargest drift of V over 512 s, relative to V(0) - V*, one node, explicit Euler, h = 2^-6 s11.639.3 to 15✓ Pass
relativeErrorExplicitLargest population error against the SciPy reference relative to its range, one node, explicit Euler, h = 2^-6 s5.493≤ 6.9✓ Pass
invariantDriftSemiImplicitLargest drift of V over 512 s, relative to V(0) - V*, one node, semi-implicit Euler, h = 2^-6 s0.02102≤ 0.026✓ Pass
relativeErrorSemiImplicitLargest population error against the SciPy reference relative to its range, one node, semi-implicit Euler, h = 2^-6 s0.7049≤ 0.88✓ Pass
splitMatchesOneNodeExplicitTwo-node explicit against one-node explicit: largest relative difference (the same Euler steps, summed in another order)0≤ 1.00e-12✓ Pass
splitSemiImplicitMatchesExplicitTwo-node semi-implicit against two-node explicit: identical, since each node holds one state0≤ 0✓ Pass
verletRefusedInWordsVerlet refused, saying which rate reads its own state, as one node and as two (1 if so): each population's rate reads itself11 to 1✓ Pass
referenceInvariantDriftThe SciPy reference's own drift of V, relative to V(0) - V*: how far the numerical reference itself is from exact9.67e-11≤ 1.00e-9✓ Pass
All 7 result rows
CaseMethodh (s)SubstepsHorizon (s)Max abs errorRMSERelative errorConservation errorStepsSubsteps runEvaluationsNote
Lotka–Volterra, one nodeexplicit Euler0.06251512∞∞∞∞–––diverged: the engine stopped on a non-finite derivative before the end of the run
Lotka–Volterra, one nodesemi-implicit Euler0.0625151230.296.6871.0430.089828,1928,19232,770errors against SciPy DOP853; conservation = largest drift of V / (V(0) - V*); final 2.10e-2
Lotka–Volterra, one nodeexplicit Euler0.015631512159.512.595.49311.6332,77032,7701.31e5errors against SciPy DOP853; conservation = largest drift of V / (V(0) - V*); final 1.16e+1
Lotka–Volterra, one nodesemi-implicit Euler0.01563151220.472.4240.70490.0210232,77032,7701.31e5errors against SciPy DOP853; conservation = largest drift of V / (V(0) - V*); final 8.98e-3
Lotka–Volterra, one nodeexplicit Euler0.003906151246.328.5081.5951.0091.31e51.31e55.24e5errors against SciPy DOP853; conservation = largest drift of V / (V(0) - V*); final 1.01e+0
Lotka–Volterra, one nodesemi-implicit Euler0.00390615126.0250.61890.20750.0051771.31e51.31e55.24e5errors against SciPy DOP853; conservation = largest drift of V / (V(0) - V*); final 2.40e-3
Lotka–Volterra, two nodesexplicit Euler0.015631512159.512.595.49311.6332,77065,5401.31e5prey and predator as separate nodes coupled through the snapshot

Convergence order

Error against global step over six halvings for the thermal network, both RLC circuits, the harmonic oscillator and the pendulum: the observed order of explicit and semi-implicit Euler, of Verlet on the oscillator and the pendulum, of Runge–Kutta 4, of Dormand–Prince 5(4) and of Rodas4 at fixed steps over halvings of their own, before the error reaches rounding; and the error of Adaptive, of Stiff and of BDF against their tolerance from 1e-3 to 1e-10, with the work it took.

Directory benchmarks/verification/convergenceOrder/ · models (shared with the problems it studies)

Thermal RC network: error against step sizeLargest error relative to range over 16384 s
  • Konjugate, explicit Euler
  • First order (slope 1)
  • Konjugate, Runge–Kutta 4
  • Fourth order (slope 4)
  • Konjugate, Rodas4, error control off (1 step per global step)
1e-111e-91e-71e-51e-3256128643216842Global step h (s)Relative error
Data table
Konjugate, explicit Euler: Global step h (s)Relative errorFirst order (slope 1): Global step h (s)Relative errorKonjugate, Runge–Kutta 4: Global step h (s)Relative errorFourth order (slope 4): Global step h (s)Relative errorKonjugate, Rodas4, error control off (1 step per global step): Global step h (s)Relative error
640.00593640.00593642.06e-7642.06e-72564.36e-6
320.002944320.002965321.21e-8321.29e-81282.63e-7
160.001467160.001482167.35e-10168.04e-10641.62e-8
87.32e-487.41e-484.53e-1185.03e-11321.00e-9
43.66e-443.71e-442.98e-1243.14e-12166.25e-11
21.83e-421.85e-4––––––
Thermal RC network: work against precisionContributions evaluated against the largest error relative to range; lower and further left is better
  • Konjugate, explicit Euler
  • Konjugate, Runge–Kutta 4
  • Konjugate, Rodas4, error control off (1 step per global step)
  • Konjugate, Adaptive, Dormand–Prince 5(4) (tolerances)
  • Konjugate, Stiff, Rodas4 (tolerances)
  • Konjugate, BDF (tolerances)
200050001e42e45e41e52e51e-111e-91e-71e-51e-3Relative errorContributions evaluated
Data table
Konjugate, explicit Euler: Relative errorContributions evaluatedKonjugate, Runge–Kutta 4: Relative errorContributions evaluatedKonjugate, Rodas4, error control off (1 step per global step): Relative errorContributions evaluatedKonjugate, Adaptive, Dormand–Prince 5(4) (tolerances): Relative errorContributions evaluatedKonjugate, Stiff, Rodas4 (tolerances): Relative errorContributions evaluatedKonjugate, BDF (tolerances): Relative errorContributions evaluated
0.005933,3282.06e-713,3104.36e-64,9921.35e-42,4053.36e-52,1972.94e-52,275
0.0029446,6561.21e-826,6202.63e-79,9841.35e-52,6395.56e-62,3533.88e-62,795
0.00146713,3107.35e-1053,2501.62e-819,9701.18e-62,9511.68e-63,0556.86e-73,211
7.32e-426,6204.53e-111.06e51.00e-939,9401.62e-73,7314.36e-74,0695.16e-84,225
3.66e-453,2502.98e-122.13e56.25e-1179,8703.20e-84,5111.19e-76,0191.65e-85,551
1.83e-41.06e5––––6.14e-96,3051.55e-89,7633.09e-97,293
––––––1.04e-98,6451.82e-916,3204.39e-109,971
––––––1.35e-1012,0802.07e-1027,8606.57e-1114,470
Series RLC: error against step sizeLargest error relative to range over 0.03125 s
  • Konjugate, explicit Euler
  • First order (slope 1)
  • Konjugate, semi-implicit Euler
  • Konjugate, Runge–Kutta 4
  • Fourth order (slope 4)
  • Konjugate, Dormand–Prince 5(4), error control off (1 step per global step)
  • Fifth order (slope 5)
  • Konjugate, Rodas4, error control off (1 step per global step)
1e-121e-101e-81e-61e-41e-22⁻¹¹2⁻¹²2⁻¹³2⁻¹⁴2⁻¹⁵2⁻¹⁶2⁻¹⁷2⁻¹⁸2⁻¹⁹Global step h (s)Relative error
Data table
Konjugate, explicit Euler: Global step h (s)Relative errorFirst order (slope 1): Global step h (s)Relative errorKonjugate, semi-implicit Euler: Global step h (s)Relative errorKonjugate, Runge–Kutta 4: Global step h (s)Relative errorFourth order (slope 4): Global step h (s)Relative errorKonjugate, Dormand–Prince 5(4), error control off (1 step per global step): Global step h (s)Relative errorFifth order (slope 5): Global step h (s)Relative errorKonjugate, Rodas4, error control off (1 step per global step): Global step h (s)Relative error
6.10e-50.089876.10e-50.089876.10e-50.017672.44e-47.52e-52.44e-47.52e-52.44e-46.37e-72.44e-46.37e-74.88e-41.02e-4
3.05e-50.041273.05e-50.044933.05e-50.0087961.22e-44.59e-61.22e-44.70e-61.22e-41.93e-81.22e-41.99e-82.44e-46.36e-6
1.53e-50.019791.53e-50.022471.53e-50.0043886.10e-52.85e-76.10e-52.94e-76.10e-55.85e-106.10e-56.22e-101.22e-43.96e-7
7.63e-60.0096927.63e-60.011237.63e-60.0021923.05e-51.78e-83.05e-51.84e-83.05e-51.80e-113.05e-51.94e-116.10e-52.47e-8
3.81e-60.0047963.81e-60.0056173.81e-60.0010951.53e-51.11e-91.53e-51.15e-91.53e-55.62e-131.53e-56.07e-133.05e-51.54e-9
1.91e-60.0023861.91e-60.0028081.91e-65.48e-47.63e-66.92e-117.63e-67.17e-11––––1.53e-59.65e-11
Series RLC: work against precisionContributions evaluated against the largest error relative to range; lower and further left is better
  • Konjugate, explicit Euler
  • Konjugate, semi-implicit Euler
  • Konjugate, Runge–Kutta 4
  • Konjugate, Dormand–Prince 5(4), error control off (1 step per global step)
  • Konjugate, Rodas4, error control off (1 step per global step)
  • Konjugate, Adaptive, Dormand–Prince 5(4) (tolerances)
  • Konjugate, Stiff, Rodas4 (tolerances)
  • Konjugate, BDF (tolerances)
200050001e42e45e41e-121e-101e-81e-61e-41e-2Relative errorContributions evaluated
Data table
Konjugate, explicit Euler: Relative errorContributions evaluatedKonjugate, semi-implicit Euler: Relative errorContributions evaluatedKonjugate, Runge–Kutta 4: Relative errorContributions evaluatedKonjugate, Dormand–Prince 5(4), error control off (1 step per global step): Relative errorContributions evaluatedKonjugate, Rodas4, error control off (1 step per global step): Relative errorContributions evaluatedKonjugate, Adaptive, Dormand–Prince 5(4) (tolerances): Relative errorContributions evaluatedKonjugate, Stiff, Rodas4 (tolerances): Relative errorContributions evaluatedKonjugate, BDF (tolerances): Relative errorContributions evaluated
0.089872,5600.017672,5607.52e-52,5606.37e-74,4801.02e-41,9204.75e-41,4954.15e-41,8851.58e-42,005
0.041275,1200.0087965,1204.59e-65,1201.93e-88,9606.36e-63,8405.20e-52,1554.05e-53,1852.02e-52,805
0.0197910,2400.00438810,2402.85e-710,2405.85e-1017,9203.96e-77,6805.80e-63,0854.11e-65,2952.53e-64,140
0.00969220,4800.00219220,4801.78e-820,4801.80e-1135,8402.47e-815,3606.03e-74,4354.23e-78,6153.49e-75,985
0.00479640,9600.00109540,9601.11e-940,9605.62e-1371,6801.54e-930,7206.57e-86,7754.34e-814,7704.46e-88,685
0.00238681,9205.48e-481,9206.92e-1181,920––9.65e-1161,4406.68e-910,6504.37e-925,9505.84e-912,720
––––––––––6.88e-1016,4104.37e-1045,7107.44e-1018,530
––––––––––7.06e-1125,8904.37e-1181,0009.16e-1127,820
Coupled RLC pair: error against step sizeLargest error relative to range over 0.03125 s
  • Konjugate, explicit Euler
  • First order (slope 1)
  • Konjugate, semi-implicit Euler
  • Konjugate, Runge–Kutta 4
  • Fourth order (slope 4)
  • Konjugate, Dormand–Prince 5(4), error control off (1 step per global step)
  • Fifth order (slope 5)
  • Konjugate, Rodas4, error control off (1 step per global step)
1e-121e-101e-81e-61e-41e-22⁻¹¹2⁻¹²2⁻¹³2⁻¹⁴2⁻¹⁵2⁻¹⁶2⁻¹⁷2⁻¹⁸2⁻¹⁹Global step h (s)Relative error
Data table
Konjugate, explicit Euler: Global step h (s)Relative errorFirst order (slope 1): Global step h (s)Relative errorKonjugate, semi-implicit Euler: Global step h (s)Relative errorKonjugate, Runge–Kutta 4: Global step h (s)Relative errorFourth order (slope 4): Global step h (s)Relative errorKonjugate, Dormand–Prince 5(4), error control off (1 step per global step): Global step h (s)Relative errorFifth order (slope 5): Global step h (s)Relative errorKonjugate, Rodas4, error control off (1 step per global step): Global step h (s)Relative error
6.10e-50.13346.10e-50.13346.10e-50.019362.44e-41.02e-42.44e-41.02e-42.44e-48.59e-72.44e-48.59e-74.88e-41.40e-4
3.05e-50.05883.05e-50.066683.05e-50.0096411.22e-46.28e-61.22e-46.38e-61.22e-42.59e-81.22e-42.68e-82.44e-48.73e-6
1.53e-50.027651.53e-50.033341.53e-50.0048116.10e-53.91e-76.10e-53.99e-76.10e-58.01e-106.10e-58.39e-101.22e-45.44e-7
7.63e-60.013427.63e-60.016677.63e-60.0024033.05e-52.44e-83.05e-52.49e-83.05e-52.50e-113.05e-52.62e-116.10e-53.40e-8
3.81e-60.0066093.81e-60.0083363.81e-60.0012011.53e-51.52e-91.53e-51.56e-91.53e-57.83e-131.53e-58.19e-133.05e-52.12e-9
1.91e-60.003281.91e-60.0041681.91e-66.00e-47.63e-69.52e-117.63e-69.74e-11––––1.53e-51.33e-10
Coupled RLC pair: work against precisionContributions evaluated against the largest error relative to range; lower and further left is better
  • Konjugate, explicit Euler
  • Konjugate, semi-implicit Euler
  • Konjugate, Runge–Kutta 4
  • Konjugate, Dormand–Prince 5(4), error control off (1 step per global step)
  • Konjugate, Rodas4, error control off (1 step per global step)
  • Konjugate, Adaptive, Dormand–Prince 5(4) (tolerances)
  • Konjugate, Stiff, Rodas4 (tolerances)
  • Konjugate, BDF (tolerances)
50001e42e45e41e52e51e-121e-101e-81e-61e-41e-2Relative errorContributions evaluated
Data table
Konjugate, explicit Euler: Relative errorContributions evaluatedKonjugate, semi-implicit Euler: Relative errorContributions evaluatedKonjugate, Runge–Kutta 4: Relative errorContributions evaluatedKonjugate, Dormand–Prince 5(4), error control off (1 step per global step): Relative errorContributions evaluatedKonjugate, Rodas4, error control off (1 step per global step): Relative errorContributions evaluatedKonjugate, Adaptive, Dormand–Prince 5(4) (tolerances): Relative errorContributions evaluatedKonjugate, Stiff, Rodas4 (tolerances): Relative errorContributions evaluatedKonjugate, BDF (tolerances): Relative errorContributions evaluated
0.13346,1440.019366,1441.02e-46,1448.59e-710,7501.40e-44,6088.85e-43,9486.99e-44,7042.33e-45,148
0.058812,2900.00964112,2906.28e-612,2902.59e-821,5008.73e-69,2168.81e-55,2447.06e-57,8364.04e-56,804
0.0276524,5800.00481124,5803.91e-724,5808.01e-1043,0105.44e-718,4309.72e-67,6207.50e-612,6205.39e-69,948
0.0134249,1500.00240349,1502.44e-849,1502.50e-1186,0203.40e-836,8601.01e-611,3607.62e-721,3707.26e-713,760
0.00660998,3000.00120198,3001.52e-998,3007.83e-131.72e52.12e-973,7301.07e-717,1207.56e-836,9509.24e-820,360
0.003281.97e56.00e-41.97e59.52e-111.97e5––1.33e-101.47e51.09e-826,4807.60e-964,8801.17e-830,130
––––––––––1.11e-940,7407.57e-101.15e51.47e-944,890
––––––––––1.12e-1063,7107.55e-112.03e51.83e-1067,020
Harmonic oscillator: error against step sizeLargest error relative to range over 16 s
  • Konjugate, explicit Euler
  • First order (slope 1)
  • Konjugate, semi-implicit Euler
  • Konjugate, Verlet
  • Second order (slope 2)
  • Konjugate, Runge–Kutta 4
  • Fourth order (slope 4)
  • Konjugate, Dormand–Prince 5(4), error control off (1 step per global step)
  • Fifth order (slope 5)
  • Konjugate, Rodas4, error control off (1 step per global step)
1e-131e-111e-91e-71e-51e-31e-12⁻²2⁻³2⁻⁴2⁻⁵2⁻⁶2⁻⁷2⁻⁸2⁻⁹2⁻¹⁰2⁻¹¹Global step h (s)Relative error
Data table
Konjugate, explicit Euler: Global step h (s)Relative errorFirst order (slope 1): Global step h (s)Relative errorKonjugate, semi-implicit Euler: Global step h (s)Relative errorKonjugate, Verlet: Global step h (s)Relative errorSecond order (slope 2): Global step h (s)Relative errorKonjugate, Runge–Kutta 4: Global step h (s)Relative errorFourth order (slope 4): Global step h (s)Relative errorKonjugate, Dormand–Prince 5(4), error control off (1 step per global step): Global step h (s)Relative errorFifth order (slope 5): Global step h (s)Relative errorKonjugate, Rodas4, error control off (1 step per global step): Global step h (s)Relative error
0.015630.065460.015630.065460.015630.0038910.015638.24e-50.015638.24e-50.06251.00e-60.06251.00e-60.1256.80e-80.1256.80e-80.252.24e-5
0.0078130.031720.0078130.032730.0078130.0019470.0078132.06e-50.0078132.06e-50.031256.27e-80.031256.27e-80.06252.09e-90.06252.13e-90.1251.40e-6
0.0039060.015610.0039060.016370.0039069.75e-40.0039065.15e-60.0039065.15e-60.015633.91e-90.015633.92e-90.031256.52e-110.031256.64e-110.06258.73e-8
0.0019530.0077470.0019530.0081830.0019534.88e-40.0019531.29e-60.0019531.29e-60.0078132.45e-100.0078132.45e-100.015632.04e-120.015632.08e-120.031255.46e-9
9.77e-40.0038589.77e-40.0040919.77e-42.44e-49.77e-43.22e-79.77e-43.22e-70.0039061.53e-110.0039061.53e-110.0078136.28e-140.0078136.49e-140.015633.41e-10
4.88e-40.0019254.88e-40.0020464.88e-41.22e-44.88e-48.05e-84.88e-48.05e-80.0019539.56e-130.0019539.56e-13––––0.0078132.13e-11
Harmonic oscillator: work against precisionContributions evaluated against the largest error relative to range; lower and further left is better
  • Konjugate, explicit Euler
  • Konjugate, semi-implicit Euler
  • Konjugate, Verlet
  • Konjugate, Runge–Kutta 4
  • Konjugate, Dormand–Prince 5(4), error control off (1 step per global step)
  • Konjugate, Rodas4, error control off (1 step per global step)
  • Konjugate, Adaptive, Dormand–Prince 5(4) (tolerances)
  • Konjugate, Stiff, Rodas4 (tolerances)
  • Konjugate, BDF (tolerances)
10001e41e51e-131e-111e-91e-71e-51e-31e-1Relative errorContributions evaluated
Data table
Konjugate, explicit Euler: Relative errorContributions evaluatedKonjugate, semi-implicit Euler: Relative errorContributions evaluatedKonjugate, Verlet: Relative errorContributions evaluatedKonjugate, Runge–Kutta 4: Relative errorContributions evaluatedKonjugate, Dormand–Prince 5(4), error control off (1 step per global step): Relative errorContributions evaluatedKonjugate, Rodas4, error control off (1 step per global step): Relative errorContributions evaluatedKonjugate, Adaptive, Dormand–Prince 5(4) (tolerances): Relative errorContributions evaluatedKonjugate, Stiff, Rodas4 (tolerances): Relative errorContributions evaluatedKonjugate, BDF (tolerances): Relative errorContributions evaluated
0.065462,0480.0038912,0488.24e-53,0721.00e-62,0486.80e-81,7922.24e-57682.84e-44666.69e-44341.22e-4550
0.031724,0960.0019474,0962.06e-56,1446.27e-84,0962.09e-93,5841.40e-61,5364.44e-56467.23e-56922.24e-5734
0.015618,1929.75e-48,1925.15e-612,2903.91e-98,1926.52e-117,1688.73e-83,0724.97e-68747.69e-61,2503.84e-61,006
0.00774716,3804.88e-416,3801.29e-624,5802.45e-1016,3802.04e-1214,3405.46e-96,1446.05e-71,2587.63e-72,0267.45e-71,358
0.00385832,7702.44e-432,7703.22e-749,1501.53e-1132,7706.28e-1428,6703.41e-1012,2906.14e-81,9187.62e-83,3701.01e-71,986
0.00192565,5401.22e-465,5408.05e-898,3009.56e-1365,540––2.13e-1124,5806.33e-92,8547.72e-95,8221.41e-82,786
––––––––––––6.51e-104,4147.69e-1010,1301.81e-94,042
––––––––––––6.59e-116,7907.67e-1117,9102.27e-106,006
Pendulum (θ0 = 2 rad): error against step sizeLargest error relative to range over 8 s
  • Konjugate, explicit Euler
  • First order (slope 1)
  • Konjugate, semi-implicit Euler
  • Konjugate, Verlet
  • Second order (slope 2)
  • Konjugate, Runge–Kutta 4
  • Fourth order (slope 4)
  • Konjugate, Dormand–Prince 5(4), error control off (1 step per global step)
  • Fifth order (slope 5)
  • Konjugate, Rodas4, error control off (1 step per global step)
1e-121e-101e-81e-61e-41e-22⁻⁴2⁻⁵2⁻⁶2⁻⁷2⁻⁸2⁻⁹2⁻¹⁰2⁻¹¹2⁻¹²2⁻¹³2⁻¹⁴Global step h (s)Relative error
Data table
Konjugate, explicit Euler: Global step h (s)Relative errorFirst order (slope 1): Global step h (s)Relative errorKonjugate, semi-implicit Euler: Global step h (s)Relative errorKonjugate, Verlet: Global step h (s)Relative errorSecond order (slope 2): Global step h (s)Relative errorKonjugate, Runge–Kutta 4: Global step h (s)Relative errorFourth order (slope 4): Global step h (s)Relative errorKonjugate, Dormand–Prince 5(4), error control off (1 step per global step): Global step h (s)Relative errorFifth order (slope 5): Global step h (s)Relative errorKonjugate, Rodas4, error control off (1 step per global step): Global step h (s)Relative error
0.0019530.19230.0019530.19230.0019530.0012920.0019536.25e-60.0019536.25e-60.0039066.93e-100.0039066.93e-100.015632.86e-90.015632.86e-90.06258.63e-6
9.77e-40.092099.77e-40.096179.77e-46.45e-49.77e-41.56e-69.77e-41.56e-60.0019534.67e-110.0019534.33e-110.0078138.67e-110.0078138.95e-110.031252.65e-7
4.88e-40.045254.88e-40.048094.88e-43.22e-44.88e-43.90e-74.88e-43.90e-79.77e-43.07e-129.77e-42.71e-120.0039062.67e-120.0039062.80e-120.015638.64e-9
2.44e-40.022392.44e-40.024042.44e-41.61e-42.44e-49.76e-82.44e-49.76e-8––––––––0.0078133.01e-10
1.22e-40.011141.22e-40.012021.22e-48.04e-51.22e-42.44e-81.22e-42.44e-8––––––––0.0039061.15e-11
6.10e-50.0055526.10e-50.0060116.10e-54.02e-56.10e-56.10e-96.10e-56.10e-9––––––––––
Pendulum (θ0 = 2 rad): work against precisionContributions evaluated against the largest error relative to range; lower and further left is better
  • Konjugate, explicit Euler
  • Konjugate, semi-implicit Euler
  • Konjugate, Verlet
  • Konjugate, Runge–Kutta 4
  • Konjugate, Dormand–Prince 5(4), error control off (1 step per global step)
  • Konjugate, Rodas4, error control off (1 step per global step)
  • Konjugate, Adaptive, Dormand–Prince 5(4) (tolerances)
  • Konjugate, Stiff, Rodas4 (tolerances)
  • Konjugate, BDF (tolerances)
10001e41e51e-121e-101e-81e-61e-41e-2Relative errorContributions evaluated
Data table
Konjugate, explicit Euler: Relative errorContributions evaluatedKonjugate, semi-implicit Euler: Relative errorContributions evaluatedKonjugate, Verlet: Relative errorContributions evaluatedKonjugate, Runge–Kutta 4: Relative errorContributions evaluatedKonjugate, Dormand–Prince 5(4), error control off (1 step per global step): Relative errorContributions evaluatedKonjugate, Rodas4, error control off (1 step per global step): Relative errorContributions evaluatedKonjugate, Adaptive, Dormand–Prince 5(4) (tolerances): Relative errorContributions evaluatedKonjugate, Stiff, Rodas4 (tolerances): Relative errorContributions evaluatedKonjugate, BDF (tolerances): Relative errorContributions evaluated
0.19238,1920.0012928,1926.25e-612,2906.93e-1016,3802.86e-97,1688.63e-61,5360.018935027.49e-51,0468.80e-41,128
0.0920916,3806.45e-416,3801.56e-624,5804.67e-1132,7708.67e-1114,3402.65e-73,0720.0011477302.42e-61,5762.45e-41,488
0.0452532,7703.22e-432,7703.90e-749,1503.07e-1265,5402.67e-1228,6708.64e-96,1446.09e-51,0902.29e-72,5502.92e-52,080
0.0223965,5401.61e-465,5409.76e-898,300––––3.01e-1012,2905.12e-61,6062.51e-84,2403.71e-62,952
0.011141.31e58.04e-51.31e52.44e-81.97e5––––1.15e-1124,5805.02e-72,4342.02e-97,2283.61e-74,374
0.0055522.62e54.02e-52.62e56.10e-93.93e5––––––5.31e-83,5621.29e-1012,5603.69e-86,546
––––––––––––5.35e-95,3027.08e-1222,1405.13e-99,178
––––––––––––5.27e-108,1829.10e-1339,2106.12e-1013,580

Checks

CheckWhat it measuresValueThresholdResult
thermalOrderExplicitThermal RC network, explicit Euler: observed order, least-squares over 6 step sizes1.0040.95 to 1.1✓ Pass
thermalFinestOrderExplicitThermal RC network, explicit Euler: observed order from the finest halving1.0010.97 to 1.03✓ Pass
thermalOrderRungeKutta4Thermal RC network, Runge–Kutta 4: observed order, least-squares over 5 step sizes4.0223.9 to 4.1✓ Pass
thermalFinestOrderRungeKutta4Thermal RC network, Runge–Kutta 4: observed order from the finest halving3.9243.9 to 4.1✓ Pass
thermalOrderRodas4Thermal RC network, Rodas4, error control off (1 step per global step): observed order, least-squares over 5 step sizes4.0223.9 to 4.1✓ Pass
thermalFinestOrderRodas4Thermal RC network, Rodas4, error control off (1 step per global step): observed order from the finest halving4.0063.9 to 4.1✓ Pass
thermalToleranceSlopeThermal RC network, Adaptive: slope of log error against log tolerance, least squares over 8 tolerances from 0.001 to 1e-100.83480.8 to 1.15✓ Pass
thermalToleranceFactorThermal RC network, Adaptive: largest error over its relative tolerance1.348≤ 20✓ Pass
thermalStiffToleranceSlopeThermal RC network, Stiff: slope of log error against log tolerance, least squares over 8 tolerances0.72120.65 to 1.15✓ Pass
thermalStiffToleranceFactorThermal RC network, Stiff: largest error over its relative tolerance2.068≤ 20✓ Pass
thermalBdfToleranceSlopeThermal RC network, BDF: slope of log error against log tolerance, least squares over 8 tolerances0.79550.6 to 1.05✓ Pass
thermalBdfToleranceFactorThermal RC network, BDF: largest error over its relative tolerance0.6568≤ 20✓ Pass
seriesRlcOrderExplicitSeries RLC, explicit Euler: observed order, least-squares over 6 step sizes1.0430.95 to 1.1✓ Pass
seriesRlcFinestOrderExplicitSeries RLC, explicit Euler: observed order from the finest halving1.0070.97 to 1.03✓ Pass
seriesRlcOrderSemiImplicitSeries RLC, semi-implicit Euler: observed order, least-squares over 6 step sizes1.0020.95 to 1.1✓ Pass
seriesRlcFinestOrderSemiImplicitSeries RLC, semi-implicit Euler: observed order from the finest halving10.97 to 1.03✓ Pass
seriesRlcOrderRungeKutta4Series RLC, Runge–Kutta 4: observed order, least-squares over 6 step sizes4.0093.9 to 4.1✓ Pass
seriesRlcFinestOrderRungeKutta4Series RLC, Runge–Kutta 4: observed order from the finest halving4.0023.9 to 4.1✓ Pass
seriesRlcOrderDormandPrince54Series RLC, Dormand–Prince 5(4), error control off (1 step per global step): observed order, least-squares over 5 step sizes5.0294.9 to 5.1✓ Pass
seriesRlcFinestOrderDormandPrince54Series RLC, Dormand–Prince 5(4), error control off (1 step per global step): observed order from the finest halving5.0014.9 to 5.1✓ Pass
seriesRlcOrderRodas4Series RLC, Rodas4, error control off (1 step per global step): observed order, least-squares over 6 step sizes4.0033.9 to 4.1✓ Pass
seriesRlcFinestOrderRodas4Series RLC, Rodas4, error control off (1 step per global step): observed order from the finest halving43.9 to 4.1✓ Pass
seriesRlcToleranceSlopeSeries RLC, Adaptive: slope of log error against log tolerance, least squares over 8 tolerances from 0.001 to 1e-100.97580.8 to 1.15✓ Pass
seriesRlcToleranceFactorSeries RLC, Adaptive: largest error over its relative tolerance0.7055≤ 20✓ Pass
seriesRlcStiffToleranceSlopeSeries RLC, Stiff: slope of log error against log tolerance, least squares over 8 tolerances0.99520.65 to 1.15✓ Pass
seriesRlcStiffToleranceFactorSeries RLC, Stiff: largest error over its relative tolerance0.4369≤ 20✓ Pass
seriesRlcBdfToleranceSlopeSeries RLC, BDF: slope of log error against log tolerance, least squares over 8 tolerances0.88860.6 to 1.05✓ Pass
seriesRlcBdfToleranceFactorSeries RLC, BDF: largest error over its relative tolerance0.9161≤ 20✓ Pass
coupledRlcOrderExplicitCoupled RLC pair, explicit Euler: observed order, least-squares over 6 step sizes1.0640.95 to 1.1✓ Pass
coupledRlcFinestOrderExplicitCoupled RLC pair, explicit Euler: observed order from the finest halving1.0110.97 to 1.03✓ Pass
coupledRlcOrderSemiImplicitCoupled RLC pair, semi-implicit Euler: observed order, least-squares over 6 step sizes1.0020.95 to 1.1✓ Pass
coupledRlcFinestOrderSemiImplicitCoupled RLC pair, semi-implicit Euler: observed order from the finest halving10.97 to 1.03✓ Pass
coupledRlcOrderRungeKutta4Coupled RLC pair, Runge–Kutta 4: observed order, least-squares over 6 step sizes4.0063.9 to 4.1✓ Pass
coupledRlcFinestOrderRungeKutta4Coupled RLC pair, Runge–Kutta 4: observed order from the finest halving4.0013.9 to 4.1✓ Pass
coupledRlcOrderDormandPrince54Coupled RLC pair, Dormand–Prince 5(4), error control off (1 step per global step): observed order, least-squares over 5 step sizes5.0154.9 to 5.1✓ Pass
coupledRlcFinestOrderDormandPrince54Coupled RLC pair, Dormand–Prince 5(4), error control off (1 step per global step): observed order from the finest halving4.9964.9 to 5.1✓ Pass
coupledRlcOrderRodas4Coupled RLC pair, Rodas4, error control off (1 step per global step): observed order, least-squares over 6 step sizes4.0023.9 to 4.1✓ Pass
coupledRlcFinestOrderRodas4Coupled RLC pair, Rodas4, error control off (1 step per global step): observed order from the finest halving43.9 to 4.1✓ Pass
coupledRlcToleranceSlopeCoupled RLC pair, Adaptive: slope of log error against log tolerance, least squares over 8 tolerances from 0.001 to 1e-100.98340.8 to 1.15✓ Pass
coupledRlcToleranceFactorCoupled RLC pair, Adaptive: largest error over its relative tolerance1.118≤ 20✓ Pass
coupledRlcStiffToleranceSlopeCoupled RLC pair, Stiff: slope of log error against log tolerance, least squares over 8 tolerances0.99520.65 to 1.15✓ Pass
coupledRlcStiffToleranceFactorCoupled RLC pair, Stiff: largest error over its relative tolerance0.7616≤ 20✓ Pass
coupledRlcBdfToleranceSlopeCoupled RLC pair, BDF: slope of log error against log tolerance, least squares over 8 tolerances0.87870.6 to 1.05✓ Pass
coupledRlcBdfToleranceFactorCoupled RLC pair, BDF: largest error over its relative tolerance1.828≤ 20✓ Pass
oscillatorOrderExplicitHarmonic oscillator, explicit Euler: observed order, least-squares over 6 step sizes1.0160.95 to 1.1✓ Pass
oscillatorFinestOrderExplicitHarmonic oscillator, explicit Euler: observed order from the finest halving1.0030.97 to 1.03✓ Pass
oscillatorOrderSemiImplicitHarmonic oscillator, semi-implicit Euler: observed order, least-squares over 6 step sizes0.99880.95 to 1.1✓ Pass
oscillatorFinestOrderSemiImplicitHarmonic oscillator, semi-implicit Euler: observed order from the finest halving0.99940.97 to 1.03✓ Pass
oscillatorOrderVerletHarmonic oscillator, Verlet: observed order, least-squares over 6 step sizes21.9 to 2.1✓ Pass
oscillatorFinestOrderVerletHarmonic oscillator, Verlet: observed order from the finest halving21.9 to 2.1✓ Pass
oscillatorOrderRungeKutta4Harmonic oscillator, Runge–Kutta 4: observed order, least-squares over 6 step sizes43.9 to 4.1✓ Pass
oscillatorFinestOrderRungeKutta4Harmonic oscillator, Runge–Kutta 4: observed order from the finest halving43.9 to 4.1✓ Pass
oscillatorOrderDormandPrince54Harmonic oscillator, Dormand–Prince 5(4), error control off (1 step per global step): observed order, least-squares over 5 step sizes5.0094.9 to 5.1✓ Pass
oscillatorFinestOrderDormandPrince54Harmonic oscillator, Dormand–Prince 5(4), error control off (1 step per global step): observed order from the finest halving5.0214.9 to 5.1✓ Pass
oscillatorOrderRodas4Harmonic oscillator, Rodas4, error control off (1 step per global step): observed order, least-squares over 6 step sizes43.9 to 4.1✓ Pass
oscillatorFinestOrderRodas4Harmonic oscillator, Rodas4, error control off (1 step per global step): observed order from the finest halving43.9 to 4.1✓ Pass
oscillatorToleranceSlopeHarmonic oscillator, Adaptive: slope of log error against log tolerance, least squares over 8 tolerances from 0.001 to 1e-100.95580.8 to 1.15✓ Pass
oscillatorToleranceFactorHarmonic oscillator, Adaptive: largest error over its relative tolerance0.6594≤ 20✓ Pass
oscillatorStiffToleranceSlopeHarmonic oscillator, Stiff: slope of log error against log tolerance, least squares over 8 tolerances0.99340.65 to 1.15✓ Pass
oscillatorStiffToleranceFactorHarmonic oscillator, Stiff: largest error over its relative tolerance0.7724≤ 20✓ Pass
oscillatorBdfToleranceSlopeHarmonic oscillator, BDF: slope of log error against log tolerance, least squares over 8 tolerances0.81840.6 to 1.05✓ Pass
oscillatorBdfToleranceFactorHarmonic oscillator, BDF: largest error over its relative tolerance2.272≤ 20✓ Pass
pendulumOrderExplicitPendulum (θ0 = 2 rad), explicit Euler: observed order, least-squares over 6 step sizes1.0210.95 to 1.1✓ Pass
pendulumFinestOrderExplicitPendulum (θ0 = 2 rad), explicit Euler: observed order from the finest halving1.0040.97 to 1.03✓ Pass
pendulumOrderSemiImplicitPendulum (θ0 = 2 rad), semi-implicit Euler: observed order, least-squares over 6 step sizes1.0010.95 to 1.1✓ Pass
pendulumFinestOrderSemiImplicitPendulum (θ0 = 2 rad), semi-implicit Euler: observed order from the finest halving10.97 to 1.03✓ Pass
pendulumOrderVerletPendulum (θ0 = 2 rad), Verlet: observed order, least-squares over 6 step sizes21.9 to 2.1✓ Pass
pendulumFinestOrderVerletPendulum (θ0 = 2 rad), Verlet: observed order from the finest halving21.9 to 2.1✓ Pass
pendulumOrderRungeKutta4Pendulum (θ0 = 2 rad), Runge–Kutta 4: observed order, least-squares over 3 step sizes3.913.9 to 4.1✓ Pass
pendulumFinestOrderRungeKutta4Pendulum (θ0 = 2 rad), Runge–Kutta 4: observed order from the finest halving3.9313.9 to 4.1✓ Pass
pendulumOrderDormandPrince54Pendulum (θ0 = 2 rad), Dormand–Prince 5(4), error control off (1 step per global step): observed order, least-squares over 3 step sizes5.0334.9 to 5.1✓ Pass
pendulumFinestOrderDormandPrince54Pendulum (θ0 = 2 rad), Dormand–Prince 5(4), error control off (1 step per global step): observed order from the finest halving5.0224.9 to 5.1✓ Pass
pendulumOrderRodas4Pendulum (θ0 = 2 rad), Rodas4, error control off (1 step per global step): observed order, least-squares over 5 step sizes4.884.4 to 5.1✓ Pass
pendulumFinestOrderRodas4Pendulum (θ0 = 2 rad), Rodas4, error control off (1 step per global step): observed order from the finest halving4.7034.3 to 5.1✓ Pass
pendulumToleranceSlopePendulum (θ0 = 2 rad), Adaptive: slope of log error against log tolerance, least squares over 8 tolerances from 0.001 to 1e-101.0680.8 to 1.15✓ Pass
pendulumToleranceFactorPendulum (θ0 = 2 rad), Adaptive: largest error over its relative tolerance18.93≤ 20✓ Pass
pendulumStiffToleranceSlopePendulum (θ0 = 2 rad), Stiff: slope of log error against log tolerance, least squares over 8 tolerances1.1180.65 to 1.15✓ Pass
pendulumStiffToleranceFactorPendulum (θ0 = 2 rad), Stiff: largest error over its relative tolerance0.07488≤ 20✓ Pass
pendulumBdfToleranceSlopePendulum (θ0 = 2 rad), BDF: slope of log error against log tolerance, least squares over 8 tolerances0.90720.6 to 1.05✓ Pass
pendulumBdfToleranceFactorPendulum (θ0 = 2 rad), BDF: largest error over its relative tolerance6.117≤ 20✓ Pass
All 258 result rows
CaseMethodh (s)SubstepsHorizon (s)Max abs errorRMSERelative errorObserved orderStepsSubsteps runEvaluationsNote
Thermal RC network: convergenceexplicit Euler64116,3800.12520.039730.00593–2561,5363,328
Thermal RC network: convergenceexplicit Euler32116,3800.060660.019760.002944–5123,0726,656
Thermal RC network: convergenceexplicit Euler16116,3800.029870.0098520.001467–1,0246,14413,310
Thermal RC network: convergenceexplicit Euler8116,3800.014820.004927.32e-4–2,04812,29026,620
Thermal RC network: convergenceexplicit Euler4116,3800.0073840.0024583.66e-4–4,09624,58053,250
Thermal RC network: convergenceexplicit Euler2116,3800.0036850.0012291.83e-41.0048,19249,1501.06e5observed order: fitted 1.004; per halving 1.010, 1.005, 1.003, 1.001, 1.001
Thermal RC network: convergenceRunge–Kutta 464116,3807.30e-68.41e-72.06e-7–2561,53613,310
Thermal RC network: convergenceRunge–Kutta 432116,3804.30e-74.95e-81.21e-8–5123,07226,620
Thermal RC network: convergenceRunge–Kutta 416116,3802.61e-83.00e-97.35e-10–1,0246,14453,250
Thermal RC network: convergenceRunge–Kutta 48116,3801.60e-91.86e-104.53e-11–2,04812,2901.06e5
Thermal RC network: convergenceRunge–Kutta 44116,3809.94e-112.34e-112.98e-124.0224,09624,5802.13e5observed order: fitted 4.022; per halving 4.087, 4.043, 4.022, 3.924
Thermal RC network: convergenceRodas4, error control off (1 step per global step)256116,3801.55e-41.78e-54.36e-6–643844,992
Thermal RC network: convergenceRodas4, error control off (1 step per global step)128116,3809.34e-61.08e-62.63e-7–1287689,984
Thermal RC network: convergenceRodas4, error control off (1 step per global step)64116,3805.74e-76.62e-81.62e-8–2561,53619,970
Thermal RC network: convergenceRodas4, error control off (1 step per global step)32116,3803.56e-84.10e-91.00e-9–5123,07239,940
Thermal RC network: convergenceRodas4, error control off (1 step per global step)16116,3802.21e-92.56e-106.25e-114.0221,0246,14479,870observed order: fitted 4.022; per halving 4.049, 4.024, 4.012, 4.006
Thermal RC network: toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 0.001)1,024116,3800.0046656.18e-41.35e-4–161682,40528 steps, 0 rejected, 185 evaluations of the model; error 0.14 times the tolerance
Thermal RC network: toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 0.0001)1,024116,3804.65e-46.56e-51.35e-5–161862,63931 steps, 0 rejected, 203 evaluations of the model; error 0.13 times the tolerance
Thermal RC network: toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 0.00001)1,024116,3804.06e-58.17e-61.18e-6–162102,95135 steps, 0 rejected, 227 evaluations of the model; error 0.12 times the tolerance
Thermal RC network: toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 0.000001)1,024116,3804.19e-61.17e-61.62e-7–162703,73145 steps, 0 rejected, 287 evaluations of the model; error 0.16 times the tolerance
Thermal RC network: toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 1e-7)1,024116,3807.18e-72.19e-73.20e-8–163304,51155 steps, 0 rejected, 347 evaluations of the model; error 0.32 times the tolerance
Thermal RC network: toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 1e-8)1,024116,3807.79e-83.62e-86.14e-9–164686,30578 steps, 0 rejected, 485 evaluations of the model; error 0.61 times the tolerance
Thermal RC network: toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 1e-9)1,024116,3801.31e-85.10e-91.04e-9–166488,645108 steps, 0 rejected, 665 evaluations of the model; error 1.04 times the tolerance
Thermal RC network: toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 1e-10)1,024116,3801.70e-96.75e-101.35e-10–1691212,080152 steps, 0 rejected, 929 evaluations of the model; error 1.35 times the tolerance; error against tolerance: fitted slope 0.835
Thermal RC network: toleranceStiff, Rodas4 (relative tolerance 0.001)1,024116,3800.0011611.77e-43.36e-5–161682,19728 steps, 0 rejected, 169 evaluations of the model (28 Jacobians, 28 factorisations); error 0.03 times the tolerance
Thermal RC network: toleranceStiff, Rodas4 (relative tolerance 0.0001)1,024116,3801.92e-43.57e-55.56e-6–161802,35330 steps, 0 rejected, 181 evaluations of the model (30 Jacobians, 30 factorisations); error 0.06 times the tolerance
Thermal RC network: toleranceStiff, Rodas4 (relative tolerance 0.00001)1,024116,3802.62e-58.12e-61.68e-6–162343,05539 steps, 0 rejected, 235 evaluations of the model (39 Jacobians, 39 factorisations); error 0.17 times the tolerance
Thermal RC network: toleranceStiff, Rodas4 (relative tolerance 0.000001)1,024116,3805.48e-62.12e-64.36e-7–163124,06952 steps, 0 rejected, 313 evaluations of the model (52 Jacobians, 52 factorisations); error 0.44 times the tolerance
Thermal RC network: toleranceStiff, Rodas4 (relative tolerance 1e-7)1,024116,3801.50e-66.05e-71.19e-7–164626,01977 steps, 0 rejected, 463 evaluations of the model (77 Jacobians, 77 factorisations); error 1.19 times the tolerance
Thermal RC network: toleranceStiff, Rodas4 (relative tolerance 1e-8)1,024116,3801.97e-77.82e-81.55e-8–167509,763125 steps, 0 rejected, 751 evaluations of the model (125 Jacobians, 125 factorisations); error 1.55 times the tolerance
Thermal RC network: toleranceStiff, Rodas4 (relative tolerance 1e-9)1,024116,3802.31e-89.07e-91.82e-9–161,25416,320209 steps, 0 rejected, 1255 evaluations of the model (209 Jacobians, 209 factorisations); error 1.82 times the tolerance
Thermal RC network: toleranceStiff, Rodas4 (relative tolerance 1e-10)1,024116,3802.60e-91.02e-92.07e-10–162,14227,860357 steps, 0 rejected, 2143 evaluations of the model (357 Jacobians, 357 factorisations); error 2.07 times the tolerance; error against tolerance: fitted slope 0.721
Thermal RC network: toleranceStiff, BDF (relative tolerance 0.001)1,024116,3800.0010161.36e-42.94e-5–164802,27580 steps, 0 rejected, 175 evaluations of the model (16 Jacobians, 41 factorisations); error 0.03 times the tolerance
Thermal RC network: toleranceStiff, BDF (relative tolerance 0.0001)1,024116,3806.24e-51.59e-53.88e-6–165942,79599 steps, 0 rejected, 215 evaluations of the model (16 Jacobians, 47 factorisations); error 0.04 times the tolerance
Thermal RC network: toleranceStiff, BDF (relative tolerance 0.00001)1,024116,3801.33e-53.79e-66.86e-7–166903,211115 steps, 0 rejected, 247 evaluations of the model (16 Jacobians, 43 factorisations); error 0.07 times the tolerance
Thermal RC network: toleranceStiff, BDF (relative tolerance 0.000001)1,024116,3801.76e-64.08e-75.16e-8–169244,225154 steps, 0 rejected, 325 evaluations of the model (16 Jacobians, 55 factorisations); error 0.05 times the tolerance
Thermal RC network: toleranceStiff, BDF (relative tolerance 1e-7)1,024116,3802.55e-78.55e-81.65e-8–161,2305,551205 steps, 0 rejected, 427 evaluations of the model (16 Jacobians, 62 factorisations); error 0.17 times the tolerance
Thermal RC network: toleranceStiff, BDF (relative tolerance 1e-8)1,024116,3804.16e-81.67e-83.09e-9–161,6327,293272 steps, 0 rejected, 561 evaluations of the model (16 Jacobians, 74 factorisations); error 0.31 times the tolerance
Thermal RC network: toleranceStiff, BDF (relative tolerance 1e-9)1,024116,3805.52e-92.81e-94.39e-10–162,2509,971375 steps, 0 rejected, 767 evaluations of the model (16 Jacobians, 96 factorisations); error 0.44 times the tolerance
Thermal RC network: toleranceStiff, BDF (relative tolerance 1e-10)1,024116,3808.26e-103.97e-106.57e-11–163,28814,470548 steps, 0 rejected, 1113 evaluations of the model (16 Jacobians, 128 factorisations); error 0.66 times the tolerance; error against tolerance: fitted slope 0.796
Series RLC: convergenceexplicit Euler6.10e-510.031251.3210.53250.08987–5121,0242,560
Series RLC: convergenceexplicit Euler3.05e-510.031250.60170.23550.04127–1,0242,0485,120
Series RLC: convergenceexplicit Euler1.53e-510.031250.29020.11120.01979–2,0484,09610,240
Series RLC: convergenceexplicit Euler7.63e-610.031250.14250.054120.009692–4,0968,19220,480
Series RLC: convergenceexplicit Euler3.81e-610.031250.070640.02670.004796–8,19216,38040,960
Series RLC: convergenceexplicit Euler1.91e-610.031250.035160.013260.0023861.04316,38032,77081,920observed order: fitted 1.043; per halving 1.123, 1.060, 1.030, 1.015, 1.007
Series RLC: convergencesemi-implicit Euler6.10e-510.031250.30220.097020.01767–5121,0242,560
Series RLC: convergencesemi-implicit Euler3.05e-510.031250.15040.048020.008796–1,0242,0485,120
Series RLC: convergencesemi-implicit Euler1.53e-510.031250.075050.023890.004388–2,0484,09610,240
Series RLC: convergencesemi-implicit Euler7.63e-610.031250.037480.011910.002192–4,0968,19220,480
Series RLC: convergencesemi-implicit Euler3.81e-610.031250.018730.005950.001095–8,19216,38040,960
Series RLC: convergencesemi-implicit Euler1.91e-610.031250.0093640.0029735.48e-41.00216,38032,77081,920observed order: fitted 1.002; per halving 1.006, 1.003, 1.002, 1.001, 1.000
Series RLC: convergenceRunge–Kutta 42.44e-410.031250.0011074.17e-47.52e-5–1282562,560
Series RLC: convergenceRunge–Kutta 41.22e-410.031256.89e-52.58e-54.59e-6–2565125,120
Series RLC: convergenceRunge–Kutta 46.10e-510.031254.28e-61.60e-62.85e-7–5121,02410,240
Series RLC: convergenceRunge–Kutta 43.05e-510.031252.67e-71.00e-71.78e-8–1,0242,04820,480
Series RLC: convergenceRunge–Kutta 41.53e-510.031251.66e-86.24e-91.11e-9–2,0484,09640,960
Series RLC: convergenceRunge–Kutta 47.63e-610.031251.04e-93.90e-106.92e-114.0094,0968,19281,920observed order: fitted 4.009; per halving 4.033, 4.008, 4.005, 4.003, 4.002
Series RLC: convergenceDormand–Prince 5(4), error control off (1 step per global step)2.44e-410.031259.39e-63.54e-66.37e-7–1282564,480
Series RLC: convergenceDormand–Prince 5(4), error control off (1 step per global step)1.22e-410.031252.83e-71.07e-71.93e-8–2565128,960
Series RLC: convergenceDormand–Prince 5(4), error control off (1 step per global step)6.10e-510.031258.61e-93.29e-95.85e-10–5121,02417,920
Series RLC: convergenceDormand–Prince 5(4), error control off (1 step per global step)3.05e-510.031252.68e-101.02e-101.80e-11–1,0242,04835,840
Series RLC: convergenceDormand–Prince 5(4), error control off (1 step per global step)1.53e-510.031258.35e-123.19e-125.62e-135.0292,0484,09671,680observed order: fitted 5.029; per halving 5.046, 5.041, 5.023, 5.001
Series RLC: convergenceRodas4, error control off (1 step per global step)4.88e-410.031250.0015355.75e-41.02e-4–641281,920
Series RLC: convergenceRodas4, error control off (1 step per global step)2.44e-410.031259.53e-53.58e-56.36e-6–1282563,840
Series RLC: convergenceRodas4, error control off (1 step per global step)1.22e-410.031255.94e-62.23e-63.96e-7–2565127,680
Series RLC: convergenceRodas4, error control off (1 step per global step)6.10e-510.031253.71e-71.39e-72.47e-8–5121,02415,360
Series RLC: convergenceRodas4, error control off (1 step per global step)3.05e-510.031252.31e-88.70e-91.54e-9–1,0242,04830,720
Series RLC: convergenceRodas4, error control off (1 step per global step)1.53e-510.031251.45e-95.43e-109.65e-114.0032,0484,09661,440observed order: fitted 4.003; per halving 4.008, 4.004, 4.002, 4.001, 4.000
Series RLC: toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 0.001)0.00195310.031250.0066650.0024534.75e-4–16921,49546 steps, 1 rejected, 299 evaluations of the model; error 0.48 times the tolerance
Series RLC: toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 0.0001)0.00195310.031256.48e-42.72e-45.20e-5–161302,15565 steps, 4 rejected, 431 evaluations of the model; error 0.52 times the tolerance
Series RLC: toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 0.00001)0.00195310.031257.54e-53.06e-55.80e-6–161843,08592 steps, 8 rejected, 617 evaluations of the model; error 0.58 times the tolerance
Series RLC: toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 0.000001)0.00195310.031258.47e-63.33e-66.03e-7–162784,435139 steps, 6 rejected, 887 evaluations of the model; error 0.60 times the tolerance
Series RLC: toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 1e-7)0.00195310.031258.78e-73.46e-76.57e-8–164306,775215 steps, 8 rejected, 1355 evaluations of the model; error 0.66 times the tolerance
Series RLC: toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 1e-8)0.00195310.031258.67e-83.51e-86.68e-9–1668410,650342 steps, 10 rejected, 2129 evaluations of the model; error 0.67 times the tolerance
Series RLC: toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 1e-9)0.00195310.031258.61e-93.57e-96.88e-10–161,07216,410536 steps, 8 rejected, 3281 evaluations of the model; error 0.69 times the tolerance
Series RLC: toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 1e-10)0.00195310.031258.65e-103.64e-107.06e-11–161,70025,890850 steps, 10 rejected, 5177 evaluations of the model; error 0.71 times the tolerance; error against tolerance: fitted slope 0.976
Series RLC: toleranceStiff, Rodas4 (relative tolerance 0.001)0.00195310.031250.0053930.0018734.15e-4–161121,88556 steps, 8 rejected, 377 evaluations of the model (56 Jacobians, 64 factorisations); error 0.42 times the tolerance
Series RLC: toleranceStiff, Rodas4 (relative tolerance 0.0001)0.00195310.031254.82e-41.81e-44.05e-5–161923,18596 steps, 12 rejected, 637 evaluations of the model (96 Jacobians, 108 factorisations); error 0.41 times the tolerance
Series RLC: toleranceStiff, Rodas4 (relative tolerance 0.00001)0.00195310.031254.88e-51.87e-54.11e-6–163265,295163 steps, 16 rejected, 1059 evaluations of the model (163 Jacobians, 179 factorisations); error 0.41 times the tolerance
Series RLC: toleranceStiff, Rodas4 (relative tolerance 0.000001)0.00195310.031255.11e-61.95e-64.23e-7–165548,615277 steps, 12 rejected, 1723 evaluations of the model (277 Jacobians, 289 factorisations); error 0.42 times the tolerance
Series RLC: toleranceStiff, Rodas4 (relative tolerance 1e-7)0.00195310.031255.24e-72.01e-74.34e-8–1697414,770487 steps, 6 rejected, 2953 evaluations of the model (487 Jacobians, 493 factorisations); error 0.43 times the tolerance
Series RLC: toleranceStiff, Rodas4 (relative tolerance 1e-8)0.00195310.031255.22e-82.03e-84.37e-9–161,71825,950859 steps, 7 rejected, 5190 evaluations of the model (859 Jacobians, 866 factorisations); error 0.44 times the tolerance
Series RLC: toleranceStiff, Rodas4 (relative tolerance 1e-9)0.00195310.031255.24e-92.04e-94.37e-10–163,04245,7101521 steps, 3 rejected, 9142 evaluations of the model (1521 Jacobians, 1524 factorisations); error 0.44 times the tolerance
Series RLC: toleranceStiff, Rodas4 (relative tolerance 1e-10)0.00195310.031255.25e-102.04e-104.37e-11–165,39681,0002698 steps, 2 rejected, 16199 evaluations of the model (2698 Jacobians, 2700 factorisations); error 0.44 times the tolerance; error against tolerance: fitted slope 0.995
Series RLC: toleranceStiff, BDF (relative tolerance 0.001)0.00195310.031250.0018486.69e-41.58e-4–163762,005188 steps, 4 rejected, 401 evaluations of the model (16 Jacobians, 63 factorisations); error 0.16 times the tolerance
Series RLC: toleranceStiff, BDF (relative tolerance 0.0001)0.00195310.031252.62e-41.00e-42.02e-5–165362,805268 steps, 4 rejected, 561 evaluations of the model (16 Jacobians, 80 factorisations); error 0.20 times the tolerance
Series RLC: toleranceStiff, BDF (relative tolerance 0.00001)0.00195310.031253.43e-51.25e-52.53e-6–167824,140391 steps, 14 rejected, 828 evaluations of the model (16 Jacobians, 107 factorisations); error 0.25 times the tolerance
Series RLC: toleranceStiff, BDF (relative tolerance 0.000001)0.00195310.031254.61e-61.76e-63.49e-7–161,1385,985569 steps, 19 rejected, 1197 evaluations of the model (16 Jacobians, 142 factorisations); error 0.35 times the tolerance
Series RLC: toleranceStiff, BDF (relative tolerance 1e-7)0.00195310.031256.00e-72.26e-74.46e-8–161,6748,685837 steps, 20 rejected, 1737 evaluations of the model (16 Jacobians, 182 factorisations); error 0.45 times the tolerance
Series RLC: toleranceStiff, BDF (relative tolerance 1e-8)0.00195310.031257.79e-82.98e-85.84e-9–162,46012,7201230 steps, 23 rejected, 2543 evaluations of the model (16 Jacobians, 245 factorisations); error 0.58 times the tolerance
Series RLC: toleranceStiff, BDF (relative tolerance 1e-9)0.00195310.031259.81e-93.80e-97.44e-10–163,66418,5301832 steps, 12 rejected, 3706 evaluations of the model (16 Jacobians, 342 factorisations); error 0.74 times the tolerance
Series RLC: toleranceStiff, BDF (relative tolerance 1e-10)0.00195310.031251.20e-94.70e-109.16e-11–165,52227,8202761 steps, 12 rejected, 5563 evaluations of the model (16 Jacobians, 496 factorisations); error 0.92 times the tolerance; error against tolerance: fitted slope 0.889
Coupled RLC pair: convergenceexplicit Euler6.10e-510.031251.340.54540.1334–5121,5366,144
Coupled RLC pair: convergenceexplicit Euler3.05e-510.031250.59090.23540.0588–1,0243,07212,290
Coupled RLC pair: convergenceexplicit Euler1.53e-510.031250.27790.10990.02765–2,0486,14424,580
Coupled RLC pair: convergenceexplicit Euler7.63e-610.031250.13480.053190.01342–4,09612,29049,150
Coupled RLC pair: convergenceexplicit Euler3.81e-610.031250.066420.026170.006609–8,19224,58098,300
Coupled RLC pair: convergenceexplicit Euler1.91e-610.031250.032960.012980.003281.06416,38049,1501.97e5observed order: fitted 1.064; per halving 1.182, 1.088, 1.043, 1.022, 1.011
Coupled RLC pair: convergencesemi-implicit Euler6.10e-510.031250.26820.072290.01936–5121,5366,144
Coupled RLC pair: convergencesemi-implicit Euler3.05e-510.031250.13360.035660.009641–1,0243,07212,290
Coupled RLC pair: convergencesemi-implicit Euler1.53e-510.031250.066650.017710.004811–2,0486,14424,580
Coupled RLC pair: convergencesemi-implicit Euler7.63e-610.031250.033290.0088240.002403–4,09612,29049,150
Coupled RLC pair: convergencesemi-implicit Euler3.81e-610.031250.016640.0044040.001201–8,19224,58098,300
Coupled RLC pair: convergencesemi-implicit Euler1.91e-610.031250.0083170.00226.00e-41.00216,38049,1501.97e5observed order: fitted 1.002; per halving 1.006, 1.003, 1.001, 1.001, 1.000
Coupled RLC pair: convergenceRunge–Kutta 42.44e-410.031250.0010274.05e-41.02e-4–1283846,144
Coupled RLC pair: convergenceRunge–Kutta 41.22e-410.031256.27e-52.51e-56.28e-6–25676812,290
Coupled RLC pair: convergenceRunge–Kutta 46.10e-510.031253.89e-61.56e-63.91e-7–5121,53624,580
Coupled RLC pair: convergenceRunge–Kutta 43.05e-510.031252.44e-79.74e-82.44e-8–1,0243,07249,150
Coupled RLC pair: convergenceRunge–Kutta 41.53e-510.031251.53e-86.08e-91.52e-9–2,0486,14498,300
Coupled RLC pair: convergenceRunge–Kutta 47.63e-610.031259.54e-103.80e-109.52e-114.0064,09612,2901.97e5observed order: fitted 4.006; per halving 4.025, 4.003, 4.003, 4.002, 4.001
Coupled RLC pair: convergenceDormand–Prince 5(4), error control off (1 step per global step)2.44e-410.031258.63e-63.41e-68.59e-7–12838410,750
Coupled RLC pair: convergenceDormand–Prince 5(4), error control off (1 step per global step)1.22e-410.031252.61e-71.04e-72.59e-8–25676821,500
Coupled RLC pair: convergenceDormand–Prince 5(4), error control off (1 step per global step)6.10e-510.031258.05e-93.20e-98.01e-10–5121,53643,010
Coupled RLC pair: convergenceDormand–Prince 5(4), error control off (1 step per global step)3.05e-510.031252.51e-109.96e-112.50e-11–1,0243,07286,020
Coupled RLC pair: convergenceDormand–Prince 5(4), error control off (1 step per global step)1.53e-510.031257.87e-123.10e-127.83e-135.0152,0486,1441.72e5observed order: fitted 5.015; per halving 5.049, 5.017, 5.001, 4.996
Coupled RLC pair: convergenceRodas4, error control off (1 step per global step)4.88e-410.031250.0013935.60e-41.40e-4–641924,608
Coupled RLC pair: convergenceRodas4, error control off (1 step per global step)2.44e-410.031258.71e-53.48e-58.73e-6–1283849,216
Coupled RLC pair: convergenceRodas4, error control off (1 step per global step)1.22e-410.031255.45e-62.17e-65.44e-7–25676818,430
Coupled RLC pair: convergenceRodas4, error control off (1 step per global step)6.10e-510.031253.41e-71.36e-73.40e-8–5121,53636,860
Coupled RLC pair: convergenceRodas4, error control off (1 step per global step)3.05e-510.031252.13e-88.47e-92.12e-9–1,0243,07273,730
Coupled RLC pair: convergenceRodas4, error control off (1 step per global step)1.53e-510.031251.33e-95.29e-101.33e-104.0022,0486,1441.47e5observed order: fitted 4.002; per halving 4.006, 4.003, 4.001, 4.001, 4.000
Coupled RLC pair: toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 0.001)0.00195310.031250.0069170.0025038.85e-4–161533,94851 steps, 1 rejected, 329 evaluations of the model; error 0.89 times the tolerance
Coupled RLC pair: toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 0.0001)0.00195310.031256.88e-42.73e-48.81e-5–162045,24468 steps, 2 rejected, 437 evaluations of the model; error 0.88 times the tolerance
Coupled RLC pair: toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 0.00001)0.00195310.031257.60e-53.07e-59.72e-6–162887,62096 steps, 7 rejected, 635 evaluations of the model; error 0.97 times the tolerance
Coupled RLC pair: toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 0.000001)0.00195310.031257.91e-63.23e-61.01e-6–1643811,360146 steps, 9 rejected, 947 evaluations of the model; error 1.01 times the tolerance
Coupled RLC pair: toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 1e-7)0.00195310.031258.38e-73.44e-71.07e-7–1667817,120226 steps, 9 rejected, 1427 evaluations of the model; error 1.07 times the tolerance
Coupled RLC pair: toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 1e-8)0.00195310.031258.56e-83.54e-81.09e-8–161,05926,480353 steps, 12 rejected, 2207 evaluations of the model; error 1.09 times the tolerance
Coupled RLC pair: toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 1e-9)0.00195310.031258.69e-93.63e-91.11e-9–161,66540,740555 steps, 8 rejected, 3395 evaluations of the model; error 1.11 times the tolerance
Coupled RLC pair: toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 1e-10)0.00195310.031258.73e-103.65e-101.12e-10–162,61963,710873 steps, 9 rejected, 5309 evaluations of the model; error 1.12 times the tolerance; error against tolerance: fitted slope 0.983
Coupled RLC pair: toleranceStiff, Rodas4 (relative tolerance 0.001)0.00195310.031250.005460.0020016.99e-4–161684,70456 steps, 11 rejected, 392 evaluations of the model (56 Jacobians, 67 factorisations); error 0.70 times the tolerance
Coupled RLC pair: toleranceStiff, Rodas4 (relative tolerance 0.0001)0.00195310.031255.52e-42.07e-47.06e-5–162917,83697 steps, 14 rejected, 653 evaluations of the model (97 Jacobians, 111 factorisations); error 0.71 times the tolerance
Coupled RLC pair: toleranceStiff, Rodas4 (relative tolerance 0.00001)0.00195310.031255.86e-52.20e-57.50e-6–1649812,620166 steps, 11 rejected, 1052 evaluations of the model (166 Jacobians, 177 factorisations); error 0.75 times the tolerance
Coupled RLC pair: toleranceStiff, Rodas4 (relative tolerance 0.000001)0.00195310.031255.95e-62.24e-67.62e-7–1687021,370290 steps, 8 rejected, 1781 evaluations of the model (290 Jacobians, 298 factorisations); error 0.76 times the tolerance
Coupled RLC pair: toleranceStiff, Rodas4 (relative tolerance 1e-7)0.00195310.031255.91e-72.22e-77.56e-8–161,52436,950508 steps, 6 rejected, 3079 evaluations of the model (508 Jacobians, 514 factorisations); error 0.76 times the tolerance
Coupled RLC pair: toleranceStiff, Rodas4 (relative tolerance 1e-8)0.00195310.031255.94e-82.23e-87.60e-9–162,68864,880896 steps, 6 rejected, 5407 evaluations of the model (896 Jacobians, 902 factorisations); error 0.76 times the tolerance
Coupled RLC pair: toleranceStiff, Rodas4 (relative tolerance 1e-9)0.00195310.031255.91e-92.23e-97.57e-10–164,7641.15e51588 steps, 4 rejected, 9549 evaluations of the model (1588 Jacobians, 1592 factorisations); error 0.76 times the tolerance
Coupled RLC pair: toleranceStiff, Rodas4 (relative tolerance 1e-10)0.00195310.031255.90e-102.23e-107.55e-11–168,4662.03e52822 steps, 5 rejected, 16958 evaluations of the model (2822 Jacobians, 2827 factorisations); error 0.75 times the tolerance; error against tolerance: fitted slope 0.995
Coupled RLC pair: toleranceStiff, BDF (relative tolerance 0.001)0.00195310.031250.0018226.11e-42.33e-4–166035,148201 steps, 5 rejected, 429 evaluations of the model (16 Jacobians, 70 factorisations); error 0.23 times the tolerance
Coupled RLC pair: toleranceStiff, BDF (relative tolerance 0.0001)0.00195310.031253.16e-41.19e-44.04e-5–168106,804270 steps, 5 rejected, 567 evaluations of the model (16 Jacobians, 81 factorisations); error 0.40 times the tolerance
Coupled RLC pair: toleranceStiff, BDF (relative tolerance 0.00001)0.00195310.031254.21e-51.67e-55.39e-6–161,1799,948393 steps, 13 rejected, 829 evaluations of the model (16 Jacobians, 106 factorisations); error 0.54 times the tolerance
Coupled RLC pair: toleranceStiff, BDF (relative tolerance 0.000001)0.00195310.031255.67e-62.30e-67.26e-7–161,66513,760555 steps, 10 rejected, 1147 evaluations of the model (16 Jacobians, 126 factorisations); error 0.73 times the tolerance
Coupled RLC pair: toleranceStiff, BDF (relative tolerance 1e-7)0.00195310.031257.22e-72.94e-79.24e-8–162,48420,360828 steps, 12 rejected, 1697 evaluations of the model (16 Jacobians, 174 factorisations); error 0.92 times the tolerance
Coupled RLC pair: toleranceStiff, BDF (relative tolerance 1e-8)0.00195310.031259.16e-83.72e-81.17e-8–163,70530,1301235 steps, 12 rejected, 2511 evaluations of the model (16 Jacobians, 246 factorisations); error 1.17 times the tolerance
Coupled RLC pair: toleranceStiff, BDF (relative tolerance 1e-9)0.00195310.031251.15e-84.63e-91.47e-9–165,53844,8901846 steps, 16 rejected, 3741 evaluations of the model (16 Jacobians, 349 factorisations); error 1.47 times the tolerance
Coupled RLC pair: toleranceStiff, BDF (relative tolerance 1e-10)0.00195310.031251.43e-95.73e-101.83e-10–168,31367,0202771 steps, 13 rejected, 5585 evaluations of the model (16 Jacobians, 498 factorisations); error 1.83 times the tolerance; error against tolerance: fitted slope 0.879
Harmonic oscillator: convergenceexplicit Euler0.015631160.13090.053730.06546–1,0241,0242,048
Harmonic oscillator: convergenceexplicit Euler0.0078131160.063410.026230.03172–2,0482,0484,096
Harmonic oscillator: convergenceexplicit Euler0.0039061160.031220.012960.01561–4,0964,0968,192
Harmonic oscillator: convergenceexplicit Euler0.0019531160.015490.0064420.007747–8,1928,19216,380
Harmonic oscillator: convergenceexplicit Euler9.77e-41160.0077130.0032110.003858–16,38016,38032,770
Harmonic oscillator: convergenceexplicit Euler4.88e-41160.0038490.0016030.0019251.01632,77032,77065,540observed order: fitted 1.016; per halving 1.045, 1.022, 1.011, 1.006, 1.003
Harmonic oscillator: convergencesemi-implicit Euler0.015631160.0077780.0038070.003891–1,0241,0242,048
Harmonic oscillator: convergencesemi-implicit Euler0.0078131160.0038930.0019130.001947–2,0482,0484,096
Harmonic oscillator: convergencesemi-implicit Euler0.0039061160.0019499.59e-49.75e-4–4,0964,0968,192
Harmonic oscillator: convergencesemi-implicit Euler0.0019531169.75e-44.80e-44.88e-4–8,1928,19216,380
Harmonic oscillator: convergencesemi-implicit Euler9.77e-41164.88e-42.40e-42.44e-4–16,38016,38032,770
Harmonic oscillator: convergencesemi-implicit Euler4.88e-41162.44e-41.20e-41.22e-40.998832,77032,77065,540observed order: fitted 0.999; per halving 0.999, 0.998, 0.999, 0.999, 0.999
Harmonic oscillator: convergenceVerlet0.015631161.65e-46.80e-58.24e-5–1,0241,0243,072
Harmonic oscillator: convergenceVerlet0.0078131164.12e-51.70e-52.06e-5–2,0482,0486,144
Harmonic oscillator: convergenceVerlet0.0039061161.03e-54.25e-65.15e-6–4,0964,09612,290
Harmonic oscillator: convergenceVerlet0.0019531162.57e-61.06e-61.29e-6–8,1928,19224,580
Harmonic oscillator: convergenceVerlet9.77e-41166.43e-72.66e-73.22e-7–16,38016,38049,150
Harmonic oscillator: convergenceVerlet4.88e-41161.61e-76.64e-88.05e-8232,77032,77098,300observed order: fitted 2.000; per halving 2.000, 2.000, 2.000, 2.000, 2.000
Harmonic oscillator: convergenceRunge–Kutta 40.06251162.00e-68.34e-71.00e-6–2562562,048
Harmonic oscillator: convergenceRunge–Kutta 40.031251161.25e-75.21e-86.27e-8–5125124,096
Harmonic oscillator: convergenceRunge–Kutta 40.015631167.82e-93.26e-93.91e-9–1,0241,0248,192
Harmonic oscillator: convergenceRunge–Kutta 40.0078131164.89e-102.04e-102.45e-10–2,0482,04816,380
Harmonic oscillator: convergenceRunge–Kutta 40.0039061163.05e-111.27e-111.53e-11–4,0964,09632,770
Harmonic oscillator: convergenceRunge–Kutta 40.0019531161.91e-127.95e-139.56e-1348,1928,19265,540observed order: fitted 4.000; per halving 4.000, 4.000, 4.000, 4.000, 4.000
Harmonic oscillator: convergenceDormand–Prince 5(4), error control off (1 step per global step)0.1251161.36e-75.59e-86.80e-8–1281281,792
Harmonic oscillator: convergenceDormand–Prince 5(4), error control off (1 step per global step)0.06251164.17e-91.74e-92.09e-9–2562563,584
Harmonic oscillator: convergenceDormand–Prince 5(4), error control off (1 step per global step)0.031251161.30e-105.43e-116.52e-11–5125127,168
Harmonic oscillator: convergenceDormand–Prince 5(4), error control off (1 step per global step)0.015631164.07e-121.70e-122.04e-12–1,0241,02414,340
Harmonic oscillator: convergenceDormand–Prince 5(4), error control off (1 step per global step)0.0078131161.25e-135.22e-146.28e-145.0092,0482,04828,670observed order: fitted 5.009; per halving 5.026, 4.999, 5.000, 5.021
Harmonic oscillator: convergenceRodas4, error control off (1 step per global step)0.251164.47e-51.86e-52.24e-5–6464768
Harmonic oscillator: convergenceRodas4, error control off (1 step per global step)0.1251162.79e-61.16e-61.40e-6–1281281,536
Harmonic oscillator: convergenceRodas4, error control off (1 step per global step)0.06251161.74e-77.27e-88.73e-8–2562563,072
Harmonic oscillator: convergenceRodas4, error control off (1 step per global step)0.031251161.09e-84.54e-95.46e-9–5125126,144
Harmonic oscillator: convergenceRodas4, error control off (1 step per global step)0.015631166.81e-102.84e-103.41e-10–1,0241,02412,290
Harmonic oscillator: convergenceRodas4, error control off (1 step per global step)0.0078131164.26e-111.77e-112.13e-1142,0482,04824,580observed order: fitted 4.000; per halving 4.002, 4.001, 4.000, 4.000, 4.000
Harmonic oscillator: toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 0.001)11165.65e-42.56e-42.84e-4–163646636 steps, 0 rejected, 233 evaluations of the model; error 0.28 times the tolerance
Harmonic oscillator: toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 0.0001)11168.83e-53.84e-54.44e-5–165164651 steps, 0 rejected, 323 evaluations of the model; error 0.44 times the tolerance
Harmonic oscillator: toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 0.00001)11169.89e-64.11e-64.97e-6–166887468 steps, 2 rejected, 437 evaluations of the model; error 0.50 times the tolerance
Harmonic oscillator: toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 0.000001)11161.20e-65.02e-76.05e-7–16961,25896 steps, 6 rejected, 629 evaluations of the model; error 0.61 times the tolerance
Harmonic oscillator: toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 1e-7)11161.22e-75.08e-86.14e-8–161471,918147 steps, 10 rejected, 959 evaluations of the model; error 0.61 times the tolerance
Harmonic oscillator: toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 1e-8)11161.26e-85.31e-96.33e-9–162292,854229 steps, 6 rejected, 1427 evaluations of the model; error 0.63 times the tolerance
Harmonic oscillator: toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 1e-9)11161.29e-95.52e-106.51e-10–163564,414356 steps, 9 rejected, 2207 evaluations of the model; error 0.65 times the tolerance
Harmonic oscillator: toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 1e-10)11161.31e-105.63e-116.59e-11–165566,790556 steps, 7 rejected, 3395 evaluations of the model; error 0.66 times the tolerance; error against tolerance: fitted slope 0.956
Harmonic oscillator: toleranceStiff, Rodas4 (relative tolerance 0.001)11160.0013325.63e-46.69e-4–163643436 steps, 0 rejected, 217 evaluations of the model (36 Jacobians, 36 factorisations); error 0.67 times the tolerance
Harmonic oscillator: toleranceStiff, Rodas4 (relative tolerance 0.0001)11161.44e-46.14e-57.23e-5–165569255 steps, 3 rejected, 346 evaluations of the model (55 Jacobians, 58 factorisations); error 0.72 times the tolerance
Harmonic oscillator: toleranceStiff, Rodas4 (relative tolerance 0.00001)11161.53e-56.57e-67.69e-6–16991,25099 steps, 6 rejected, 625 evaluations of the model (99 Jacobians, 105 factorisations); error 0.77 times the tolerance
Harmonic oscillator: toleranceStiff, Rodas4 (relative tolerance 0.000001)11161.52e-66.54e-77.63e-7–161622,026162 steps, 8 rejected, 1013 evaluations of the model (162 Jacobians, 170 factorisations); error 0.76 times the tolerance
Harmonic oscillator: toleranceStiff, Rodas4 (relative tolerance 1e-7)11161.52e-76.54e-87.62e-8–162743,370274 steps, 8 rejected, 1685 evaluations of the model (274 Jacobians, 282 factorisations); error 0.76 times the tolerance
Harmonic oscillator: toleranceStiff, Rodas4 (relative tolerance 1e-8)11161.54e-86.64e-97.72e-9–164805,822480 steps, 6 rejected, 2911 evaluations of the model (480 Jacobians, 486 factorisations); error 0.77 times the tolerance
Harmonic oscillator: toleranceStiff, Rodas4 (relative tolerance 1e-9)11161.53e-96.61e-107.69e-10–1683910,130839 steps, 6 rejected, 5065 evaluations of the model (839 Jacobians, 845 factorisations); error 0.77 times the tolerance
Harmonic oscillator: toleranceStiff, Rodas4 (relative tolerance 1e-10)11161.53e-106.60e-117.67e-11–161,48917,9101489 steps, 4 rejected, 8955 evaluations of the model (1489 Jacobians, 1493 factorisations); error 0.77 times the tolerance; error against tolerance: fitted slope 0.993
Harmonic oscillator: toleranceStiff, BDF (relative tolerance 0.001)11162.42e-48.63e-51.22e-4–16126550126 steps, 3 rejected, 275 evaluations of the model (16 Jacobians, 55 factorisations); error 0.12 times the tolerance
Harmonic oscillator: toleranceStiff, BDF (relative tolerance 0.0001)11164.47e-51.75e-52.24e-5–16169734169 steps, 6 rejected, 367 evaluations of the model (16 Jacobians, 63 factorisations); error 0.22 times the tolerance
Harmonic oscillator: toleranceStiff, BDF (relative tolerance 0.00001)11167.65e-62.99e-63.84e-6–162351,006235 steps, 8 rejected, 503 evaluations of the model (16 Jacobians, 74 factorisations); error 0.38 times the tolerance
Harmonic oscillator: toleranceStiff, BDF (relative tolerance 0.000001)11161.48e-66.08e-77.45e-7–163241,358324 steps, 7 rejected, 679 evaluations of the model (16 Jacobians, 86 factorisations); error 0.75 times the tolerance
Harmonic oscillator: toleranceStiff, BDF (relative tolerance 1e-7)11162.01e-78.44e-81.01e-7–164751,986475 steps, 13 rejected, 993 evaluations of the model (16 Jacobians, 122 factorisations); error 1.01 times the tolerance
Harmonic oscillator: toleranceStiff, BDF (relative tolerance 1e-8)11162.80e-81.19e-81.41e-8–166782,786678 steps, 10 rejected, 1393 evaluations of the model (16 Jacobians, 152 factorisations); error 1.41 times the tolerance
Harmonic oscillator: toleranceStiff, BDF (relative tolerance 1e-9)11163.61e-91.54e-91.81e-9–169954,042995 steps, 7 rejected, 2021 evaluations of the model (16 Jacobians, 205 factorisations); error 1.81 times the tolerance
Harmonic oscillator: toleranceStiff, BDF (relative tolerance 1e-10)11164.52e-101.94e-102.27e-10–161,4856,0061485 steps, 8 rejected, 3003 evaluations of the model (16 Jacobians, 284 factorisations); error 2.27 times the tolerance; error against tolerance: fitted slope 0.818
Pendulum (θ0 = 2 rad): convergenceexplicit Euler0.001953181.5590.48060.1923–4,0964,0968,192
Pendulum (θ0 = 2 rad): convergenceexplicit Euler9.77e-4180.75460.23550.09209–8,1928,19216,380
Pendulum (θ0 = 2 rad): convergenceexplicit Euler4.88e-4180.37170.11650.04525–16,38016,38032,770
Pendulum (θ0 = 2 rad): convergenceexplicit Euler2.44e-4180.18450.057940.02239–32,77032,77065,540
Pendulum (θ0 = 2 rad): convergenceexplicit Euler1.22e-4180.09190.028890.01114–65,54065,5401.31e5
Pendulum (θ0 = 2 rad): convergenceexplicit Euler6.10e-5180.045860.014430.0055521.0211.31e51.31e52.62e5observed order: fitted 1.021; per halving 1.063, 1.025, 1.015, 1.008, 1.004
Pendulum (θ0 = 2 rad): convergencesemi-implicit Euler0.001953180.0051680.0023680.001292–4,0964,0968,192
Pendulum (θ0 = 2 rad): convergencesemi-implicit Euler9.77e-4180.0025790.0011836.45e-4–8,1928,19216,380
Pendulum (θ0 = 2 rad): convergencesemi-implicit Euler4.88e-4180.0012885.91e-43.22e-4–16,38016,38032,770
Pendulum (θ0 = 2 rad): convergencesemi-implicit Euler2.44e-4186.44e-42.95e-41.61e-4–32,77032,77065,540
Pendulum (θ0 = 2 rad): convergencesemi-implicit Euler1.22e-4183.22e-41.48e-48.04e-5–65,54065,5401.31e5
Pendulum (θ0 = 2 rad): convergencesemi-implicit Euler6.10e-5181.61e-47.38e-54.02e-51.0011.31e51.31e52.62e5observed order: fitted 1.001; per halving 1.003, 1.001, 1.001, 1.000, 1.000
Pendulum (θ0 = 2 rad): convergenceVerlet0.001953184.75e-51.95e-56.25e-6–4,0964,09612,290
Pendulum (θ0 = 2 rad): convergenceVerlet9.77e-4181.19e-54.88e-61.56e-6–8,1928,19224,580
Pendulum (θ0 = 2 rad): convergenceVerlet4.88e-4182.97e-61.22e-63.90e-7–16,38016,38049,150
Pendulum (θ0 = 2 rad): convergenceVerlet2.44e-4187.42e-73.05e-79.76e-8–32,77032,77098,300
Pendulum (θ0 = 2 rad): convergenceVerlet1.22e-4181.85e-77.62e-82.44e-8–65,54065,5401.97e5
Pendulum (θ0 = 2 rad): convergenceVerlet6.10e-5184.64e-81.90e-86.10e-921.31e51.31e53.93e5observed order: fitted 2.000; per halving 2.000, 2.000, 2.000, 2.000, 2.000
Pendulum (θ0 = 2 rad): convergenceRunge–Kutta 40.003906185.11e-92.15e-96.93e-10–2,0482,04816,380
Pendulum (θ0 = 2 rad): convergenceRunge–Kutta 40.001953183.48e-101.43e-104.67e-11–4,0964,09632,770
Pendulum (θ0 = 2 rad): convergenceRunge–Kutta 49.77e-4182.30e-119.30e-123.07e-123.918,1928,19265,540observed order: fitted 3.910; per halving 3.890, 3.931
Pendulum (θ0 = 2 rad): convergenceDormand–Prince 5(4), error control off (1 step per global step)0.01563182.38e-87.50e-92.86e-9–5125127,168
Pendulum (θ0 = 2 rad): convergenceDormand–Prince 5(4), error control off (1 step per global step)0.007813187.20e-102.27e-108.67e-11–1,0241,02414,340
Pendulum (θ0 = 2 rad): convergenceDormand–Prince 5(4), error control off (1 step per global step)0.003906182.22e-116.97e-122.67e-125.0332,0482,04828,670observed order: fitted 5.033; per halving 5.045, 5.022
Pendulum (θ0 = 2 rad): convergenceRodas4, error control off (1 step per global step)0.0625187.15e-52.23e-58.63e-6–1281281,536
Pendulum (θ0 = 2 rad): convergenceRodas4, error control off (1 step per global step)0.03125182.17e-66.85e-72.65e-7–2562563,072
Pendulum (θ0 = 2 rad): convergenceRodas4, error control off (1 step per global step)0.01563186.90e-82.20e-88.64e-9–5125126,144
Pendulum (θ0 = 2 rad): convergenceRodas4, error control off (1 step per global step)0.007813182.23e-97.26e-103.01e-10–1,0241,02412,290
Pendulum (θ0 = 2 rad): convergenceRodas4, error control off (1 step per global step)0.003906187.44e-112.53e-111.15e-114.882,0482,04824,580observed order: fitted 4.880; per halving 5.027, 4.936, 4.844, 4.703
Pendulum (θ0 = 2 rad): toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 0.001)0.5180.18190.063540.01893–163650236 steps, 3 rejected, 251 evaluations of the model; error 18.93 times the tolerance
Pendulum (θ0 = 2 rad): toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 0.0001)0.5180.010830.0038510.001147–165273052 steps, 6 rejected, 365 evaluations of the model; error 11.47 times the tolerance
Pendulum (θ0 = 2 rad): toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 0.00001)0.5185.73e-42.04e-46.09e-5–16771,09077 steps, 11 rejected, 545 evaluations of the model; error 6.09 times the tolerance
Pendulum (θ0 = 2 rad): toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 0.000001)0.5184.92e-51.71e-55.12e-6–161161,606116 steps, 15 rejected, 803 evaluations of the model; error 5.12 times the tolerance
Pendulum (θ0 = 2 rad): toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 1e-7)0.5184.85e-61.67e-65.02e-7–161762,434176 steps, 24 rejected, 1217 evaluations of the model; error 5.02 times the tolerance
Pendulum (θ0 = 2 rad): toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 1e-8)0.5185.16e-71.77e-75.31e-8–162783,562278 steps, 16 rejected, 1781 evaluations of the model; error 5.31 times the tolerance
Pendulum (θ0 = 2 rad): toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 1e-9)0.5185.22e-81.78e-85.35e-9–164265,302426 steps, 13 rejected, 2651 evaluations of the model; error 5.35 times the tolerance
Pendulum (θ0 = 2 rad): toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 1e-10)0.5185.17e-91.76e-95.27e-10–166708,182670 steps, 9 rejected, 4091 evaluations of the model; error 5.27 times the tolerance; error against tolerance: fitted slope 1.068
Pendulum (θ0 = 2 rad): toleranceStiff, Rodas4 (relative tolerance 0.001)0.5187.21e-42.53e-47.49e-5–16721,04672 steps, 18 rejected, 523 evaluations of the model (72 Jacobians, 90 factorisations); error 0.07 times the tolerance
Pendulum (θ0 = 2 rad): toleranceStiff, Rodas4 (relative tolerance 0.0001)0.5182.52e-57.71e-62.42e-6–161171,576117 steps, 17 rejected, 788 evaluations of the model (117 Jacobians, 134 factorisations); error 0.02 times the tolerance
Pendulum (θ0 = 2 rad): toleranceStiff, Rodas4 (relative tolerance 0.00001)0.5182.08e-66.46e-72.29e-7–161992,550199 steps, 16 rejected, 1275 evaluations of the model (199 Jacobians, 215 factorisations); error 0.02 times the tolerance
Pendulum (θ0 = 2 rad): toleranceStiff, Rodas4 (relative tolerance 0.000001)0.5182.24e-76.94e-82.51e-8–163394,240339 steps, 17 rejected, 2120 evaluations of the model (339 Jacobians, 356 factorisations); error 0.03 times the tolerance
Pendulum (θ0 = 2 rad): toleranceStiff, Rodas4 (relative tolerance 1e-7)0.5181.67e-85.23e-92.02e-9–165937,228593 steps, 11 rejected, 3614 evaluations of the model (593 Jacobians, 604 factorisations); error 0.02 times the tolerance
Pendulum (θ0 = 2 rad): toleranceStiff, Rodas4 (relative tolerance 1e-8)0.5189.75e-102.97e-101.29e-10–161,04312,5601043 steps, 4 rejected, 6279 evaluations of the model (1043 Jacobians, 1047 factorisations); error 0.01 times the tolerance
Pendulum (θ0 = 2 rad): toleranceStiff, Rodas4 (relative tolerance 1e-9)0.5183.16e-111.48e-117.08e-12–161,84222,1401842 steps, 3 rejected, 11068 evaluations of the model (1842 Jacobians, 1845 factorisations); error 0.01 times the tolerance
Pendulum (θ0 = 2 rad): toleranceStiff, Rodas4 (relative tolerance 1e-10)0.5184.96e-122.35e-129.10e-13–163,26539,2103265 steps, 3 rejected, 19606 evaluations of the model (3265 Jacobians, 3268 factorisations); error 0.01 times the tolerance; error against tolerance: fitted slope 1.118
Pendulum (θ0 = 2 rad): toleranceStiff, BDF (relative tolerance 0.001)0.5180.0092790.0027248.80e-4–162471,128247 steps, 22 rejected, 564 evaluations of the model (16 Jacobians, 94 factorisations); error 0.88 times the tolerance
Pendulum (θ0 = 2 rad): toleranceStiff, BDF (relative tolerance 0.0001)0.5180.0025368.17e-42.45e-4–163321,488332 steps, 21 rejected, 744 evaluations of the model (16 Jacobians, 102 factorisations); error 2.45 times the tolerance
Pendulum (θ0 = 2 rad): toleranceStiff, BDF (relative tolerance 0.00001)0.5182.90e-49.73e-52.92e-5–164672,080467 steps, 18 rejected, 1040 evaluations of the model (16 Jacobians, 126 factorisations); error 2.92 times the tolerance
Pendulum (θ0 = 2 rad): toleranceStiff, BDF (relative tolerance 0.000001)0.5183.63e-51.23e-53.71e-6–166752,952675 steps, 14 rejected, 1476 evaluations of the model (16 Jacobians, 151 factorisations); error 3.71 times the tolerance
Pendulum (θ0 = 2 rad): toleranceStiff, BDF (relative tolerance 1e-7)0.5183.57e-61.19e-63.61e-7–169994,374999 steps, 9 rejected, 2187 evaluations of the model (16 Jacobians, 205 factorisations); error 3.61 times the tolerance
Pendulum (θ0 = 2 rad): toleranceStiff, BDF (relative tolerance 1e-8)0.5183.66e-71.23e-73.69e-8–161,4966,5461496 steps, 5 rejected, 3273 evaluations of the model (17 Jacobians, 289 factorisations); error 3.69 times the tolerance
Pendulum (θ0 = 2 rad): toleranceStiff, BDF (relative tolerance 1e-9)0.5185.06e-81.70e-85.13e-9–162,2369,1782236 steps, 9 rejected, 4589 evaluations of the model (16 Jacobians, 415 factorisations); error 5.13 times the tolerance
Pendulum (θ0 = 2 rad): toleranceStiff, BDF (relative tolerance 1e-10)0.5186.02e-92.02e-96.12e-10–163,37113,5803371 steps, 10 rejected, 6788 evaluations of the model (17 Jacobians, 602 factorisations); error 6.12 times the tolerance; error against tolerance: fitted slope 0.907

Prothero–Robinson

dy/dt = λ (y - sin t) + cos t from y = 0, whose solution is sin t: Rodas4 at fixed steps is fourth order when the problem is not stiff (λ = -1), and when it is (λ = -1e6, -1e4) its error is proportional to h / |λ|, first order in h but divided by the stiffness; and the steps Stiff and Adaptive take at the same tolerance on the stiff case.

Directory benchmarks/verification/protheroRobinson/ · models stiff.kjt, moderate.kjt, control.kjt

Prothero–Robinson: error against step sizeLargest error against sin t, relative to range, over 4 s
  • Konjugate, Rodas4 at fixed steps, λ = -1000000
  • Konjugate, Rodas4 at fixed steps, λ = -10000
  • Konjugate, Rodas4 at fixed steps, λ = -1
  • Fourth order (slope 4)
1e-111e-101e-91e-81e-71e-61e-52⁻¹2⁻²2⁻³2⁻⁴2⁻⁵2⁻⁶Step h (s)Relative error
Data table
Step h (s)Konjugate, Rodas4 at fixed steps, λ = -1000000Konjugate, Rodas4 at fixed steps, λ = -10000Konjugate, Rodas4 at fixed steps, λ = -1Fourth order (slope 4)
0.51.46e-81.45e-62.11e-52.11e-5
0.254.42e-94.40e-71.21e-61.32e-6
0.1251.66e-91.64e-77.19e-88.24e-8
0.06257.49e-107.33e-84.37e-95.15e-9
0.031253.68e-103.51e-82.69e-103.22e-10
0.015631.83e-101.66e-81.67e-112.01e-11

Checks

CheckWhat it measuresValueThresholdResult
orderStiffProthero–Robinson, λ = -1000000, Rodas4 at fixed steps: observed order, least squares over 6 steps1.2420.9 to 1.5✓ Pass
errorStiffProthero–Robinson, λ = -1000000, Rodas4 at fixed steps: the largest error relative to range, at the coarsest step1.46e-8≤ 3.00e-8✓ Pass
orderModerateProthero–Robinson, λ = -10000, Rodas4 at fixed steps: observed order, least squares over 6 steps1.2680.9 to 1.5✓ Pass
errorModerateProthero–Robinson, λ = -10000, Rodas4 at fixed steps: the largest error relative to range, at the coarsest step1.45e-6≤ 3.00e-6✓ Pass
orderControlProthero–Robinson, λ = -1, Rodas4 at fixed steps: observed order, least squares over 6 steps4.0513.9 to 4.3✓ Pass
errorControlProthero–Robinson, λ = -1, Rodas4 at fixed steps: the largest error relative to range, at the coarsest step2.11e-5≤ 3.00e-5✓ Pass
finestOrderControlProthero–Robinson, λ = -1, Rodas4 at fixed steps with the exact Jacobian: observed order over the finest halving4.0113.9 to 4.1✓ Pass
finestOrderControlFiniteDifferenceProthero–Robinson, λ = -1, Rodas4 at fixed steps with finite differences: observed order over the finest halving, the Jacobian's error showing4.7354.3 to 5.2✓ Pass
stiffnessScalingProthero–Robinson, Rodas4 at fixed steps: |log10(error at λ = -1e4 / error at λ = -1e6) - 2|, largest over every step (0: the error is exactly proportional to 1 / |λ|)0.04185≤ 0.1✓ Pass
stiffToleranceErrorProthero–Robinson, λ = -1000000, Stiff at relative tolerance 0.000001: largest error against sin t2.99e-8≤ 1.00e-6✓ Pass
explicitStepRatioProthero–Robinson, λ = -1000000: steps Adaptive takes for each step Stiff takes, at the same tolerance37,800≥ 10,000✓ Pass
All 26 result rows
CaseMethodh (s)SubstepsHorizon (s)Max abs errorRMSERelative errorObserved orderStepsSubsteps runEvaluationsNote
Prothero–Robinson, λ = -1000000: convergenceRodas4, error control off (1 step per global step)0.5142.55e-81.86e-81.46e-8–8848
Prothero–Robinson, λ = -1000000: convergenceRodas4, error control off (1 step per global step)0.25147.75e-95.61e-94.42e-9–161696
Prothero–Robinson, λ = -1000000: convergenceRodas4, error control off (1 step per global step)0.125142.91e-92.07e-91.66e-9–3232192
Prothero–Robinson, λ = -1000000: convergenceRodas4, error control off (1 step per global step)0.0625141.31e-99.08e-107.49e-10–6464384
Prothero–Robinson, λ = -1000000: convergenceRodas4, error control off (1 step per global step)0.03125146.46e-104.32e-103.68e-10–128128768
Prothero–Robinson, λ = -1000000: convergenceRodas4, error control off (1 step per global step)0.01563143.21e-102.12e-101.83e-101.2422562561,536observed order: fitted 1.242; per halving 1.721, 1.412, 1.146, 1.026, 1.010
Prothero–Robinson, λ = -10000: convergenceRodas4, error control off (1 step per global step)0.5142.55e-61.86e-61.45e-6–8848
Prothero–Robinson, λ = -10000: convergenceRodas4, error control off (1 step per global step)0.25147.72e-75.59e-74.40e-7–161696
Prothero–Robinson, λ = -10000: convergenceRodas4, error control off (1 step per global step)0.125142.88e-72.05e-71.64e-7–3232192
Prothero–Robinson, λ = -10000: convergenceRodas4, error control off (1 step per global step)0.0625141.29e-78.88e-87.33e-8–6464384
Prothero–Robinson, λ = -10000: convergenceRodas4, error control off (1 step per global step)0.03125146.16e-84.12e-83.51e-8–128128768
Prothero–Robinson, λ = -10000: convergenceRodas4, error control off (1 step per global step)0.01563142.91e-81.92e-81.66e-81.2682562561,536observed order: fitted 1.268; per halving 1.724, 1.421, 1.166, 1.061, 1.081
Prothero–Robinson, λ = -1: convergenceRodas4, error control off (1 step per global step)0.5143.70e-52.35e-52.11e-5–8848
Prothero–Robinson, λ = -1: convergenceRodas4, error control off (1 step per global step)0.25142.12e-61.34e-61.21e-6–161696
Prothero–Robinson, λ = -1: convergenceRodas4, error control off (1 step per global step)0.125141.26e-77.97e-87.19e-8–3232192
Prothero–Robinson, λ = -1: convergenceRodas4, error control off (1 step per global step)0.0625147.67e-94.85e-94.37e-9–6464384
Prothero–Robinson, λ = -1: convergenceRodas4, error control off (1 step per global step)0.03125144.72e-102.99e-102.69e-10–128128768
Prothero–Robinson, λ = -1: convergenceRodas4, error control off (1 step per global step)0.01563142.93e-111.85e-111.67e-114.0512562561,536observed order: fitted 4.051; per halving 4.124, 4.073, 4.040, 4.021, 4.011
Prothero–Robinson, λ = -1: convergence, finite-difference JacobianRodas4, error control off (1 step per global step, finite-difference Jacobian)0.5143.70e-52.35e-52.11e-5–8864
Prothero–Robinson, λ = -1: convergence, finite-difference JacobianRodas4, error control off (1 step per global step, finite-difference Jacobian)0.25142.12e-61.34e-61.21e-6–1616128
Prothero–Robinson, λ = -1: convergence, finite-difference JacobianRodas4, error control off (1 step per global step, finite-difference Jacobian)0.125141.26e-77.95e-87.18e-8–3232256
Prothero–Robinson, λ = -1: convergence, finite-difference JacobianRodas4, error control off (1 step per global step, finite-difference Jacobian)0.0625147.62e-94.80e-94.35e-9–6464512
Prothero–Robinson, λ = -1: convergence, finite-difference JacobianRodas4, error control off (1 step per global step, finite-difference Jacobian)0.03125144.48e-102.81e-102.55e-10–1281281,024
Prothero–Robinson, λ = -1: convergence, finite-difference JacobianRodas4, error control off (1 step per global step, finite-difference Jacobian)0.01563141.68e-111.12e-119.59e-124.1722562562,048observed order: fitted 4.172; per halving 4.124, 4.074, 4.047, 4.088, 4.735
Prothero–Robinson, λ = -1000000: Stiff, Rodas4 (relative tolerance 0.000001)Stiff, Rodas4 (relative tolerance 0.000001)0.5112.51e-81.46e-82.99e-8–28498 steps, 0 rejected, 49 evaluations of the model
Prothero–Robinson, λ = -1000000: Adaptive, Dormand–Prince 5(4) (relative tolerance 0.000001)Adaptive, Dormand–Prince 5(4) (relative tolerance 0.000001)0.5113.71e-72.25e-74.41e-7–23.02e51.81e6302419 steps, 5 rejected, 1814547 evaluations of the model

Graph coupling: one node against three

Three damped masses joined by springs, written as one node and as three nodes coupled through the snapshot: the coupling error against the global step and the node substeps, Runge–Kutta 4, under which the three nodes are the one node and the error is fourth order, Dormand–Prince 5(4), fifth order at fixed steps and, under Adaptive, the one-node model's steps, and Rodas4, the one node to the bit and fourth order at fixed steps and, under Stiff, the one node within its tolerance.

Directory benchmarks/coupling/graphSplit/ · models monolithic.kjt, split.kjt

Substeps at a fixed global stepError relative to range against the exact solution, H = 2^-4 s
  • Split, three nodes, H with n substeps
  • One node at the same step H/n
  • Coupling error (split against one node)
2e-25e-21e-12e-12⁻¹124816Substeps per global step (n)Relative error
Data table
Split, three nodes, H with n substeps: Substeps per global step (n)Relative errorOne node at the same step H/n: Substeps per global step (n)Relative errorCoupling error (split against one node): Substeps per global step (n)Relative error
10.522310.522320.02609
20.203520.185940.04004
40.100840.0793780.04722
80.0622380.03679160.05085
160.05729160.01772––
Coupling error against the global stepSplit model against one node at the same effective step, relative to range
  • 2 substeps
  • 4 substeps
  • 16 substeps
  • First order (slope 1)
2e-35e-31e-22e-25e-22⁻⁴2⁻⁵2⁻⁶2⁻⁷2⁻⁸Global step H (s)Relative coupling error
Data table
Global step H (s)2 substeps4 substeps16 substepsFirst order (slope 1)
0.06250.026090.040040.050850.04004
0.031250.013330.020210.025540.02002
0.015630.0067440.010190.012810.01001
0.0078130.00340.0051190.0064160.005005
0.0039060.0017070.0025650.0032110.002503
Three nodes under Runge–Kutta 4, Dormand–Prince 5(4) and Rodas4Error of the three-node model against the exact solution, relative to range
  • Explicit Euler, one substep
  • Explicit Euler, 16 substeps
  • Runge–Kutta 4, the whole model
  • Fourth order (slope 4)
  • Dormand–Prince 5(4), error control off
  • Fifth order (slope 5)
  • Rodas4, error control off
1e-111e-91e-71e-51e-31e-12⁻⁴2⁻⁵2⁻⁶2⁻⁷2⁻⁸Global step H (s)Relative error
Data table
Explicit Euler, one substep: Global step H (s)Relative errorExplicit Euler, 16 substeps: Global step H (s)Relative errorRunge–Kutta 4, the whole model: Global step H (s)Relative errorFourth order (slope 4): Global step H (s)Relative errorDormand–Prince 5(4), error control off: Global step H (s)Relative errorFifth order (slope 5): Global step H (s)Relative errorRodas4, error control off: Global step H (s)Relative error
0.06250.52230.06250.057290.06251.91e-50.06251.91e-50.1253.60e-60.1253.60e-60.1252.65e-5
0.031250.18590.031250.028580.031251.19e-60.031251.19e-60.06251.07e-70.06251.13e-70.06251.65e-6
0.015630.079370.015630.014270.015637.40e-80.015637.46e-80.031253.26e-90.031253.52e-90.031251.03e-7
0.0078130.036790.0078130.007130.0078134.61e-90.0078134.66e-90.015631.00e-100.015631.10e-100.015636.42e-9
0.0039060.017720.0039060.0035640.0039062.88e-100.0039062.92e-100.0078133.14e-120.0078133.44e-120.0078134.01e-10

Checks

CheckWhat it measuresValueThresholdResult
couplingErrorOneSubstepWith one substep, the three-node model against the one-node model at the same step: largest difference (they take the same explicit Euler steps)0≤ 1.00e-12✓ Pass
couplingErrorOrderObserved order of the coupling error in the global step H, at 4 substeps (fitted over all H)0.9910.9 to 1.1✓ Pass
substepsFloorRatioAt H = 2^-4 s and 16 substeps, the split model's error over its coupling error: near 1 once substeps have removed the nodes' own error1.1271 to 1.5✓ Pass
couplingFactorPerSubstepDoublingCoupling error at the largest substep count over the next smaller one, same H: near 1 (substeps do not remove it)1.0770.9 to 1.25✓ Pass
semiImplicitSplitDifferenceSemi-implicit, one substep: split against one node, relative to range (the snapshot makes the coupling explicit)0.05996≤ 0.075✓ Pass
rungeKutta4SplitDifferenceRunge–Kutta 4: the three-node model against the one-node model at the same step, relative to range, largest over every H (the same method on the same equations)0≤ 1.00e-12✓ Pass
rungeKutta4ErrorOrderRunge–Kutta 4: observed order of the three-node model's error against the exact solution in H (fitted over all H)4.0053.9 to 4.1✓ Pass
rungeKutta4FinestErrorOrderRunge–Kutta 4: observed order of the three-node model's error from the finest halving of H4.0023.9 to 4.1✓ Pass
dormandPrince54ErrorOrderDormand–Prince 5(4), error control off: observed order of the three-node model's error against the exact solution in H (fitted over all H)5.0324.9 to 5.1✓ Pass
dormandPrince54FinestErrorOrderDormand–Prince 5(4), error control off: observed order of the three-node model's error from the finest halving of H4.9994.9 to 5.1✓ Pass
adaptiveSplitDifferenceAdaptive: the three-node model against the one-node model at the same tolerance, relative to range, largest over every tolerance (the error norm summed node by node)4.22e-15≤ 1.00e-12✓ Pass
rodas4SplitDifferenceRodas4, error control off: the three-node model against the one-node model at the same step, relative to range, largest over every H0≤ 1.00e-12✓ Pass
rodas4ErrorOrderRodas4, error control off: observed order of the three-node model's error against the exact solution in H (fitted over all H)4.0033.9 to 4.1✓ Pass
rodas4FinestErrorOrderRodas4, error control off: observed order of the three-node model's error from the finest halving of H4.0013.9 to 4.1✓ Pass
stiffSplitDifferenceStiff: the three-node model against the one-node model at the same tolerance, relative to range, over the relative tolerance, largest over every tolerance4.59e-7≤ 1✓ Pass
bdfSplitDifferenceBDF: the three-node model against the one-node model at the same tolerance, relative to range, over the relative tolerance, largest over every tolerance0.008131≤ 0.1✓ Pass
All 54 result rows
CaseMethodh (s)SubstepsHorizon (s)Max abs errorRMSERelative errorObserved orderStepsSubsteps runEvaluationsNote
split, three nodesexplicit Euler0.06251160.4040.10310.5223–2567682,560coupling error (against one node at h = H/n) 0.00e+0; one node at H/n 5.22e-1
split, three nodesexplicit Euler0.06252160.18910.04160.2035–2561,5365,120coupling error (against one node at h = H/n) 2.61e-2; one node at H/n 1.86e-1
split, three nodesexplicit Euler0.06254160.094680.020180.1008–2563,07210,240coupling error (against one node at h = H/n) 4.00e-2; one node at H/n 7.94e-2
split, three nodesexplicit Euler0.06258160.050460.011170.06223–2566,14420,480coupling error (against one node at h = H/n) 4.72e-2; one node at H/n 3.68e-2
split, three nodesexplicit Euler0.062516160.031520.0072480.05729–25612,29040,960coupling error (against one node at h = H/n) 5.09e-2; one node at H/n 1.77e-2
split, three nodesexplicit Euler0.031251160.18390.03960.1859–5121,5365,120coupling error (against one node at h = H/n) 0.00e+0; one node at H/n 1.86e-1
split, three nodesexplicit Euler0.031252160.089990.018540.08517–5123,07210,240coupling error (against one node at h = H/n) 1.33e-2; one node at H/n 7.94e-2
split, three nodesexplicit Euler0.031254160.0460.009480.04619–5126,14420,480coupling error (against one node at h = H/n) 2.02e-2; one node at H/n 3.68e-2
split, three nodesexplicit Euler0.031258160.024710.0053580.03029–51212,29040,960coupling error (against one node at h = H/n) 2.37e-2; one node at H/n 1.77e-2
split, three nodesexplicit Euler0.0312516160.015390.0035040.02858–51224,58081,920coupling error (against one node at h = H/n) 2.55e-2; one node at H/n 8.70e-3
split, three nodesexplicit Euler0.015631160.087790.017850.07937–1,0243,07210,240coupling error (against one node at h = H/n) 0.00e+0; one node at H/n 7.94e-2
split, three nodesexplicit Euler0.015632160.043910.0088040.03922–1,0246,14420,480coupling error (against one node at h = H/n) 6.74e-3; one node at H/n 3.68e-2
split, three nodesexplicit Euler0.015634160.022680.0046040.02213–1,02412,29040,960coupling error (against one node at h = H/n) 1.02e-2; one node at H/n 1.77e-2
split, three nodesexplicit Euler0.015638160.012230.0026260.01499–1,02424,58081,920coupling error (against one node at h = H/n) 1.19e-2; one node at H/n 8.70e-3
split, three nodesexplicit Euler0.0156316160.0076020.0017240.01427–1,02449,1501.64e5coupling error (against one node at h = H/n) 1.28e-2; one node at H/n 4.31e-3
split, three nodesexplicit Euler0.0078131160.04290.0085150.03679–2,0486,14420,480coupling error (against one node at h = H/n) 0.00e+0; one node at H/n 3.68e-2
split, three nodesexplicit Euler0.0078132160.021690.0042960.01884–2,04812,29040,960coupling error (against one node at h = H/n) 3.40e-3; one node at H/n 1.77e-2
split, three nodesexplicit Euler0.0078134160.011260.002270.01083–2,04824,58081,920coupling error (against one node at h = H/n) 5.12e-3; one node at H/n 8.70e-3
split, three nodesexplicit Euler0.0078138160.0060820.00130.00746–2,04849,1501.64e5coupling error (against one node at h = H/n) 5.98e-3; one node at H/n 4.31e-3
split, three nodesexplicit Euler0.00781316160.0037788.55e-40.00713–2,04898,3003.28e5coupling error (against one node at h = H/n) 6.42e-3; one node at H/n 2.15e-3
split, three nodesexplicit Euler0.0039061160.021210.0041630.01772–4,09612,29040,960coupling error (against one node at h = H/n) 0.00e+0; one node at H/n 1.77e-2
split, three nodesexplicit Euler0.0039062160.010780.0021230.009237–4,09624,58081,920coupling error (against one node at h = H/n) 1.71e-3; one node at H/n 8.70e-3
split, three nodesexplicit Euler0.0039064160.0056090.0011270.005358–4,09649,1501.64e5coupling error (against one node at h = H/n) 2.57e-3; one node at H/n 4.31e-3
split, three nodesexplicit Euler0.0039068160.0030336.47e-40.00372–4,09698,3003.28e5coupling error (against one node at h = H/n) 3.00e-3; one node at H/n 2.15e-3
split, three nodesexplicit Euler0.00390616160.0018834.26e-40.003564–4,0961.97e56.55e5coupling error (against one node at h = H/n) 3.21e-3; one node at H/n 1.07e-3
coupling error order in Hexplicit Euler–4––––0.991–––pairwise 0.987, 0.987, 0.994, 0.997
one nodesemi-implicit Euler0.015631160.014770.0040590.04126––––
split, three nodessemi-implicit Euler0.015631160.021720.0036160.03035––––
one nodeexplicit Euler0.015631160.087790.017850.07937––––
split, three nodesRunge–Kutta 40.06251162.23e-53.96e-61.91e-5–25676810,240against one node at the same step 0.00e+0
split, three nodesRunge–Kutta 40.031251161.39e-62.45e-71.19e-6–5121,53620,480against one node at the same step 0.00e+0
split, three nodesRunge–Kutta 40.015631168.62e-81.52e-87.40e-8–1,0243,07240,960against one node at the same step 0.00e+0
split, three nodesRunge–Kutta 40.0078131165.37e-99.49e-104.61e-9–2,0486,14481,920against one node at the same step 0.00e+0
split, three nodesRunge–Kutta 40.0039061163.35e-105.92e-112.88e-10–4,09612,2901.64e5against one node at the same step 0.00e+0
error order in HRunge–Kutta 4–1––––4.005–––pairwise 4.007, 4.006, 4.004, 4.002
split, three nodesDormand–Prince 5(4), error control off (1 step per global step)0.1251164.23e-67.28e-73.60e-6–1283848,960
split, three nodesDormand–Prince 5(4), error control off (1 step per global step)0.06251161.20e-72.12e-81.07e-7–25676817,920
split, three nodesDormand–Prince 5(4), error control off (1 step per global step)0.031251163.64e-96.44e-103.26e-9–5121,53635,840
split, three nodesDormand–Prince 5(4), error control off (1 step per global step)0.015631161.11e-101.99e-111.00e-10–1,0243,07271,680
split, three nodesDormand–Prince 5(4), error control off (1 step per global step)0.0078131163.44e-126.17e-133.14e-12–2,0486,1441.43e5
error order in HDormand–Prince 5(4), error control off (1 step per global step)–1––––5.032–––pairwise 5.074, 5.037, 5.021, 4.999
split, three nodesAdaptive, Dormand–Prince 5(4) (relative tolerance 0.000001)0.1251161.67e-73.04e-81.62e-7–12879517,190against one node with the same tolerance 1.30e-15; 265 steps (one node 265), 0 rejected
split, three nodesAdaptive, Dormand–Prince 5(4) (relative tolerance 1e-8)0.1251162.26e-94.09e-102.15e-9–1281,76436,810against one node with the same tolerance 1.60e-15; 588 steps (one node 588), 4 rejected
split, three nodesAdaptive, Dormand–Prince 5(4) (relative tolerance 1e-10)0.1251162.61e-114.77e-122.53e-11–1284,10183,610against one node with the same tolerance 4.22e-15; 1367 steps (one node 1367), 5 rejected
split, three nodesRodas4, error control off (1 step per global step)0.1251163.09e-55.45e-62.65e-5–1283847,680against one node at the same step 0.00e+0; 128 Jacobians
split, three nodesRodas4, error control off (1 step per global step)0.06251161.92e-63.39e-71.65e-6–25676815,360against one node at the same step 0.00e+0; 256 Jacobians
split, three nodesRodas4, error control off (1 step per global step)0.031251161.20e-72.11e-81.03e-7–5121,53630,720against one node at the same step 0.00e+0; 512 Jacobians
split, three nodesRodas4, error control off (1 step per global step)0.015631167.48e-91.32e-96.42e-9–1,0243,07261,440against one node at the same step 0.00e+0; 1024 Jacobians
split, three nodesRodas4, error control off (1 step per global step)0.0078131164.67e-108.25e-114.01e-10–2,0486,1441.23e5against one node at the same step 0.00e+0; 2048 Jacobians
error order in HRodas4, error control off (1 step per global step)–1––––4.003–––pairwise 4.006, 4.003, 4.001, 4.001
split, three nodesStiff, Rodas4 (relative tolerance 0.000001)0.1251162.56e-74.33e-82.13e-7–1281,41329,070against one node with the same tolerance 2.71e-15; 471 steps (one node 471), 16 rejected
split, three nodesStiff, Rodas4 (relative tolerance 1e-8)0.1251162.55e-94.31e-102.13e-9–1284,17383,570against one node with the same tolerance 4.59e-15; 1391 steps (one node 1391), 2 rejected
split, three nodesStiff, BDF (relative tolerance 0.000001)0.1251161.23e-72.28e-81.21e-7–1282,84420,450against one node with the same tolerance 8.13e-9; 948 steps (one node 942), 378 factorisations
split, three nodesStiff, BDF (relative tolerance 1e-8)0.1251163.24e-95.91e-103.01e-9–1285,70639,670against one node with the same tolerance 6.30e-12; 1902 steps (one node 1906), 562 factorisations

Graph scalability: chains, grids and random networks

Generated thermal graphs from 100 nodes up (to 100,000 under --full), on the serial, thread-pool and partitioned backends, under Euler node by node and Runge–Kutta 4: the same numbers bit for bit on every backend, the engine's work as counted, the method's exact steps to rounding, and the exact solution's error; under --full, wall time, throughput, peak memory, parallel speed-up and the time to load, compile and solve.

Directory benchmarks/scaling/graphScalability/ · models (shared with the problems it studies)

Error against the exact solution, by graph sizeLargest error over every node and sample, h = 0.02 s; identical on every backend
  • chain, explicit Euler
  • chain, Runge–Kutta 4
  • grid, explicit Euler
  • grid, Runge–Kutta 4
  • random network, explicit Euler
  • random network, Runge–Kutta 4
1e-71e-61e-51e-41e-31e-2100400NodesMax abs error (K)
Data table
chain, explicit Euler: NodesMax abs error (K)chain, Runge–Kutta 4: NodesMax abs error (K)grid, explicit Euler: NodesMax abs error (K)grid, Runge–Kutta 4: NodesMax abs error (K)random network, explicit Euler: NodesMax abs error (K)random network, Runge–Kutta 4: NodesMax abs error (K)
1000.0055941002.74e-81000.0053961001.27e-71000.010131005.04e-7
4000.0056324002.76e-84000.0054644001.32e-7––––

Checks

CheckWhat it measuresValueThresholdResult
backendBitDifferencesSampled values that differ, bit for bit, between the serial backend and the thread-pool or partitioned backend, over every graph, size and method0≤ 0✓ Pass
backendWorkDifferencesRuns whose reported work (global steps, node substeps, contributions evaluated) differs from the serial run of the same graph and method0≤ 0✓ Pass
workCountDifferencesWork counts that differ from what the model implies: N substeps a global step; each contribution once a substep under Euler, once a stage under Runge–Kutta 40≤ 0✓ Pass
backendNotAsRequestedRuns whose effective backend or worker count is not the one requested (so a parallel backend really ran in parallel)0≤ 0✓ Pass
eulerExactStepsDifferenceexplicit Euler: largest difference from the method's exact steps (closed form for the chain and grid, stepped independently for the random network), relative to the largest starting temperature1.74e-14≤ 1.00e-12✓ Pass
eulerExactSolutionErrorexplicit Euler: largest error against the exact solution, K (chain and grid at every size, the random network by the matrix exponential at 100 nodes), h = 0.02 s to t = 1 s0.01013≤ 0.0127✓ Pass
rungeKutta4ExactStepsDifferenceRunge–Kutta 4: largest difference from the method's exact steps (closed form for the chain and grid, stepped independently for the random network), relative to the largest starting temperature1.75e-14≤ 1.00e-12✓ Pass
rungeKutta4ExactSolutionErrorRunge–Kutta 4: largest error against the exact solution, K (chain and grid at every size, the random network by the matrix exponential at 100 nodes), h = 0.02 s to t = 1 s5.04e-7≤ 6.30e-7✓ Pass
randomHeatConservationRandom network: largest drift of the total heat Σ C_i T_i from Konjugate's own states, relative to Σ C_i |T_i(0)|, over every size and method3.76e-17≤ 1.00e-12✓ Pass
All 12 result rows
CaseMethodh (s)SubstepsHorizon (s)Max abs errorRMSERelative errorConservation errorStepsSubsteps runEvaluationsNote
chain, 100 nodesexplicit Euler0.02110.0055940.002210.02287–505,00010,000198 relationships; serial, thread pool (4 workers) and partitioned (4 partitions): identical bit for bit; partition cut 3.03 % of communication; against the method's exact steps 2.8e-15
chain, 100 nodesRunge–Kutta 40.02112.74e-81.07e-85.91e-7–505,00040,000198 relationships; serial, thread pool (4 workers) and partitioned (4 partitions): identical bit for bit; partition cut 3.03 % of communication; against the method's exact steps 2.5e-15
chain, 400 nodesexplicit Euler0.02110.0056320.0022140.02285–5020,00040,000798 relationships; serial, thread pool (4 workers) and partitioned (4 partitions): identical bit for bit; partition cut 0.75 % of communication; against the method's exact steps 1.7e-14
chain, 400 nodesRunge–Kutta 40.02112.76e-81.07e-86.04e-7–5020,0001.60e5798 relationships; serial, thread pool (4 workers) and partitioned (4 partitions): identical bit for bit; partition cut 0.75 % of communication; against the method's exact steps 1.7e-14
grid, 100 nodesexplicit Euler0.02110.0053960.0018690.06262–505,00019,800360 relationships; serial, thread pool (4 workers) and partitioned (4 partitions): identical bit for bit; partition cut 11.11 % of communication; against the method's exact steps 6.6e-16
grid, 100 nodesRunge–Kutta 40.02111.27e-73.69e-81.55e-6–505,00079,200360 relationships; serial, thread pool (4 workers) and partitioned (4 partitions): identical bit for bit; partition cut 11.11 % of communication; against the method's exact steps 7.4e-16
grid, 400 nodesexplicit Euler0.02110.0054640.0017820.1368–5020,00079,8001520 relationships; serial, thread pool (4 workers) and partitioned (4 partitions): identical bit for bit; partition cut 6.32 % of communication; against the method's exact steps 1.5e-15
grid, 400 nodesRunge–Kutta 40.02111.32e-73.66e-86.50e-6–5020,0003.19e51520 relationships; serial, thread pool (4 workers) and partitioned (4 partitions): identical bit for bit; partition cut 6.32 % of communication; against the method's exact steps 1.3e-15
random network, 100 nodesexplicit Euler0.02110.010130.0030750.031163.76e-17505,00020,000400 relationships; serial, thread pool (4 workers) and partitioned (4 partitions): identical bit for bit; partition cut 27.50 % of communication; against the method's exact steps 8.3e-17
random network, 100 nodesRunge–Kutta 40.02115.04e-74.86e-81.28e-62.51e-17505,00080,000400 relationships; serial, thread pool (4 workers) and partitioned (4 partitions): identical bit for bit; partition cut 27.50 % of communication; against the method's exact steps 1.1e-16
random network, 400 nodesexplicit Euler0.0211–––2.71e-175020,00080,0001600 relationships; serial, thread pool (4 workers) and partitioned (4 partitions): identical bit for bit; partition cut 27.00 % of communication; against the method's exact steps 1.1e-16; no exact solution at this size
random network, 400 nodesRunge–Kutta 40.0211–––1.50e-175020,0003.20e51600 relationships; serial, thread pool (4 workers) and partitioned (4 partitions): identical bit for bit; partition cut 27.00 % of communication; against the method's exact steps 1.1e-16; no exact solution at this size

A large stiff network: Rodas4 and BDF

The scaling benchmark's thermal grid from 16 to 10,000 nodes over a horizon set by its slowest mode, cooling smoothly and heated in jumps every 2 s and every 0.25 s, under Stiff's two solvers, Rosenbrock (Rodas4) and BDF, at the same tolerance: the factorisations, Jacobians and evaluations each takes, its error, its engine time on the machine that ran it (not checked), and the size from which BDF takes less of each.

Directory benchmarks/scaling/stiffNetwork/ · models (shared with the problems it studies)

Thermal grid: engine time against sizeEngine compute time on the machine that ran the benchmark (not checked)
  • Rodas4
  • BDF
1e-31e-21e-1116642561,0244,0961e4NodesSeconds
Data table
NodesRodas4BDF
169.60e-47.93e-4
640.0050680.004182
2560.016590.01403
1,0240.074510.07276
4,0960.52810.4452
10,0002.0931.84
Thermal grid, heated in jumps every 2 s: engine time against sizeEngine compute time on the machine that ran the benchmark (not checked)
  • Rodas4
  • BDF
2e-12⁻¹2561,024NodesSeconds
Data table
NodesRodas4BDF
2560.13590.1209
1,0240.56930.5342
Thermal grid, heated in jumps every 0.25 s: engine time against sizeEngine compute time on the machine that ran the benchmark (not checked)
  • Rodas4
  • BDF
2⁻¹12561,024NodesSeconds
Data table
NodesRodas4BDF
2560.28360.3801
1,0241.1581.727

Checks

CheckWhat it measuresValueThresholdResult
smooth16ErrorRodas4Thermal grid of 16 nodes, Stiff, Rodas4 (relative tolerance 0.000001): largest error relative to range, against the exact solution7.05e-8≤ 2.00e-7✓ Pass
smooth16ErrorBdfThermal grid of 16 nodes, Stiff, BDF (relative tolerance 0.000001): largest error relative to range, against the exact solution4.28e-8≤ 9.00e-8✓ Pass
smooth16FactorisationRatioThermal grid of 16 nodes: Rodas4's factorisations for each of BDF's1.38≥ 1✓ Pass
smooth16JacobianRatioThermal grid of 16 nodes: Rodas4's Jacobians for each of BDF's6.9≥ 5.5✓ Pass
smooth64ErrorRodas4Thermal grid of 64 nodes, Stiff, Rodas4 (relative tolerance 0.000001): largest error relative to range, against the exact solution6.27e-8≤ 2.00e-7✓ Pass
smooth64ErrorBdfThermal grid of 64 nodes, Stiff, BDF (relative tolerance 0.000001): largest error relative to range, against the exact solution3.67e-8≤ 8.00e-8✓ Pass
smooth64FactorisationRatioThermal grid of 64 nodes: Rodas4's factorisations for each of BDF's1.358≥ 1✓ Pass
smooth64JacobianRatioThermal grid of 64 nodes: Rodas4's Jacobians for each of BDF's7.1≥ 5.6✓ Pass
smooth256ErrorRodas4Thermal grid of 256 nodes, Stiff, Rodas4 (relative tolerance 0.000001): largest error relative to range, against the exact solution4.67e-8≤ 1.00e-7✓ Pass
smooth256ErrorBdfThermal grid of 256 nodes, Stiff, BDF (relative tolerance 0.000001): largest error relative to range, against the exact solution3.87e-8≤ 6.00e-8✓ Pass
smooth256FactorisationRatioThermal grid of 256 nodes: Rodas4's factorisations for each of BDF's1.194≥ 1✓ Pass
smooth256JacobianRatioThermal grid of 256 nodes: Rodas4's Jacobians for each of BDF's7.2≥ 5.7✓ Pass
smooth1024ErrorRodas4Thermal grid of 1024 nodes, Stiff, Rodas4 (relative tolerance 0.000001): largest error relative to range, against the exact solution1.28e-8≤ 3.00e-8✓ Pass
smooth1024ErrorBdfThermal grid of 1024 nodes, Stiff, BDF (relative tolerance 0.000001): largest error relative to range, against the exact solution9.55e-8≤ 2.00e-7✓ Pass
smooth1024EvaluationRatioRodas4Thermal grid of 1024 nodes, Stiff, Rodas4 (relative tolerance 0.000001): evaluations with the exact Jacobian over those with finite differences0.4621≤ 0.55✓ Pass
smooth1024ErrorRatioRodas4Thermal grid of 1024 nodes, Stiff, Rodas4 (relative tolerance 0.000001): error with the exact Jacobian over that with finite differences0.9993≤ 1.2✓ Pass
smooth1024EvaluationRatioBdfThermal grid of 1024 nodes, Stiff, BDF (relative tolerance 0.000001): evaluations with the exact Jacobian over those with finite differences0.872≤ 0.9✓ Pass
smooth1024ErrorRatioBdfThermal grid of 1024 nodes, Stiff, BDF (relative tolerance 0.000001): error with the exact Jacobian over that with finite differences1≤ 1.2✓ Pass
smooth1024FactorisationRatioThermal grid of 1024 nodes: Rodas4's factorisations for each of BDF's1.131≥ 1✓ Pass
smooth1024JacobianRatioThermal grid of 1024 nodes: Rodas4's Jacobians for each of BDF's6.9≥ 5.5✓ Pass
smooth4096ErrorRodas4Thermal grid of 4096 nodes, Stiff, Rodas4 (relative tolerance 0.000001): largest error relative to range, against the exact solution2.80e-9≤ 6.00e-9✓ Pass
smooth4096ErrorBdfThermal grid of 4096 nodes, Stiff, BDF (relative tolerance 0.000001): largest error relative to range, against the exact solution6.10e-8≤ 3.00e-7✓ Pass
smooth4096FactorisationRatioThermal grid of 4096 nodes: Rodas4's factorisations for each of BDF's1.385≥ 1✓ Pass
smooth4096JacobianRatioThermal grid of 4096 nodes: Rodas4's Jacobians for each of BDF's7.2≥ 5.7✓ Pass
smooth10000ErrorRodas4Thermal grid of 10000 nodes, Stiff, Rodas4 (relative tolerance 0.000001): largest error relative to range, against the exact solution1.38e-9≤ 3.00e-9✓ Pass
smooth10000ErrorBdfThermal grid of 10000 nodes, Stiff, BDF (relative tolerance 0.000001): largest error relative to range, against the exact solution4.43e-8≤ 2.00e-7✓ Pass
smooth10000FactorisationRatioThermal grid of 10000 nodes: Rodas4's factorisations for each of BDF's1.352≥ 1✓ Pass
smooth10000JacobianRatioThermal grid of 10000 nodes: Rodas4's Jacobians for each of BDF's7.3≥ 5.8✓ Pass
jumps256ErrorRodas4Thermal grid heated in jumps every 2 s of 256 nodes, Stiff, Rodas4 (relative tolerance 0.000001): largest error relative to range, against Rodas4 at a tight tolerance5.80e-7≤ 2.00e-6✓ Pass
jumps256ErrorBdfThermal grid heated in jumps every 2 s of 256 nodes, Stiff, BDF (relative tolerance 0.000001): largest error relative to range, against Rodas4 at a tight tolerance1.77e-7≤ 4.00e-7✓ Pass
jumps256FactorisationRatioThermal grid heated in jumps every 2 s of 256 nodes: Rodas4's factorisations for each of BDF's1.216≥ 1✓ Pass
jumps256JacobianRatioThermal grid heated in jumps every 2 s of 256 nodes: Rodas4's Jacobians for each of BDF's53≥ 42.4✓ Pass
jumps1024ErrorRodas4Thermal grid heated in jumps every 2 s of 1024 nodes, Stiff, Rodas4 (relative tolerance 0.000001): largest error relative to range, against Rodas4 at a tight tolerance1.63e-5≤ 4.00e-5✓ Pass
jumps1024ErrorBdfThermal grid heated in jumps every 2 s of 1024 nodes, Stiff, BDF (relative tolerance 0.000001): largest error relative to range, against Rodas4 at a tight tolerance5.60e-6≤ 2.00e-5✓ Pass
jumps1024FactorisationRatioThermal grid heated in jumps every 2 s of 1024 nodes: Rodas4's factorisations for each of BDF's1.146≥ 1✓ Pass
jumps1024JacobianRatioThermal grid heated in jumps every 2 s of 1024 nodes: Rodas4's Jacobians for each of BDF's46.5≥ 37.2✓ Pass
frequentJumps256ErrorRodas4Thermal grid heated in jumps every 0.25 s of 256 nodes, Stiff, Rodas4 (relative tolerance 0.000001): largest error relative to range, against Rodas4 at a tight tolerance3.40e-6≤ 7.00e-6✓ Pass
frequentJumps256ErrorBdfThermal grid heated in jumps every 0.25 s of 256 nodes, Stiff, BDF (relative tolerance 0.000001): largest error relative to range, against Rodas4 at a tight tolerance4.76e-6≤ 2.00e-5✓ Pass
frequentJumps256FactorisationRatioThermal grid heated in jumps every 0.25 s of 256 nodes: Rodas4's factorisations for each of BDF's0.6081≥ 0.5✓ Pass
frequentJumps256JacobianRatioThermal grid heated in jumps every 0.25 s of 256 nodes: Rodas4's Jacobians for each of BDF's105.3≥ 84.2✓ Pass
frequentJumps1024ErrorRodas4Thermal grid heated in jumps every 0.25 s of 1024 nodes, Stiff, Rodas4 (relative tolerance 0.000001): largest error relative to range, against Rodas4 at a tight tolerance1.21e-5≤ 3.00e-5✓ Pass
frequentJumps1024ErrorBdfThermal grid heated in jumps every 0.25 s of 1024 nodes, Stiff, BDF (relative tolerance 0.000001): largest error relative to range, against Rodas4 at a tight tolerance7.30e-6≤ 2.00e-5✓ Pass
frequentJumps1024FactorisationRatioThermal grid heated in jumps every 0.25 s of 1024 nodes: Rodas4's factorisations for each of BDF's0.5516≥ 0.4✓ Pass
frequentJumps1024JacobianRatioThermal grid heated in jumps every 0.25 s of 1024 nodes: Rodas4's Jacobians for each of BDF's90.1≥ 72✓ Pass
All 22 result rows
CaseMethodh (s)SubstepsHorizon (s)Max abs errorRMSERelative errorStepsSubsteps runEvaluationsNote
Thermal grid, 16 nodesStiff, Rodas4 (relative tolerance 0.000001)0.5152.92e-89.98e-97.05e-8101,10424,90069 steps, 0 rejected, 69 Jacobians, 69 factorisations, 415 evaluations of the model; 0.00 s of engine compute on this machine (not checked)
Thermal grid, 16 nodesStiff, BDF (relative tolerance 0.000001)0.5152.45e-86.41e-94.28e-8102,97623,100186 steps, 1 rejected, 10 Jacobians, 50 factorisations, 385 evaluations of the model, history started again 0 times; 0.00 s of engine compute on this machine (not checked)
Thermal grid, 64 nodesStiff, Rodas4 (relative tolerance 0.000001)11102.12e-88.52e-96.27e-8104,5441.09e571 steps, 1 rejected, 71 Jacobians, 72 factorisations, 432 evaluations of the model; 0.01 s of engine compute on this machine (not checked)
Thermal grid, 64 nodesStiff, BDF (relative tolerance 0.000001)11101.52e-83.39e-93.67e-81012,8001.04e5200 steps, 1 rejected, 10 Jacobians, 53 factorisations, 413 evaluations of the model, history started again 0 times; 0.00 s of engine compute on this machine (not checked)
Thermal grid, 256 nodesStiff, Rodas4 (relative tolerance 0.000001)21202.36e-88.68e-94.67e-81018,4304.52e572 steps, 2 rejected, 72 Jacobians, 74 factorisations, 443 evaluations of the model; 0.02 s of engine compute on this machine (not checked)
Thermal grid, 256 nodesStiff, BDF (relative tolerance 0.000001)21202.37e-87.97e-93.87e-81054,0204.52e5211 steps, 5 rejected, 10 Jacobians, 62 factorisations, 443 evaluations of the model, history started again 0 times; 0.01 s of engine compute on this machine (not checked)
Thermal grid, 1024 nodesStiff, Rodas4 (relative tolerance 0.000001)41405.68e-91.86e-91.28e-81070,6601.70e669 steps, 0 rejected, 69 Jacobians, 69 factorisations, 415 evaluations of the model; 0.07 s of engine compute on this machine (not checked)
Thermal grid, 1024 nodesStiff, BDF (relative tolerance 0.000001)41404.24e-81.41e-89.55e-8102.31e51.95e6226 steps, 7 rejected, 10 Jacobians, 61 factorisations, 477 evaluations of the model, history started again 0 times; 0.07 s of engine compute on this machine (not checked)
Thermal grid, 1024 nodes: the exact Jacobian against finite differencesStiff, Rodas4 (relative tolerance 0.000001, finite-difference Jacobian)41405.68e-91.86e-91.28e-81070,6603.67e669 steps, 69 Jacobians, 898 evaluations, 0.10 s, against 69, 69, 415 and 0.07 s with the exact Jacobian, whose error is 1.28e-8 (engine times on this machine, not checked)
Thermal grid, 1024 nodes: the exact Jacobian against finite differencesStiff, BDF (relative tolerance 0.000001, finite-difference Jacobian)41404.24e-81.41e-89.55e-8102.31e52.24e6226 steps, 10 Jacobians, 547 evaluations, 0.08 s, against 226, 10, 477 and 0.07 s with the exact Jacobian, whose error is 9.55e-8 (engine times on this machine, not checked)
Thermal grid, 4096 nodesStiff, Rodas4 (relative tolerance 0.000001)1011009.16e-102.90e-102.80e-9102.95e57.09e672 steps, 0 rejected, 72 Jacobians, 72 factorisations, 433 evaluations of the model; 0.53 s of engine compute on this machine (not checked)
Thermal grid, 4096 nodesStiff, BDF (relative tolerance 0.000001)1011002.00e-87.05e-96.10e-8108.93e57.35e6218 steps, 1 rejected, 10 Jacobians, 52 factorisations, 449 evaluations of the model, history started again 0 times; 0.45 s of engine compute on this machine (not checked)
Thermal grid, 10000 nodesStiff, Rodas4 (relative tolerance 0.000001)2012003.90e-101.21e-101.38e-9107.30e51.76e773 steps, 0 rejected, 73 Jacobians, 73 factorisations, 439 evaluations of the model; 2.09 s of engine compute on this machine (not checked)
Thermal grid, 10000 nodesStiff, BDF (relative tolerance 0.000001)2012001.25e-84.72e-94.43e-8102.23e61.86e7223 steps, 4 rejected, 10 Jacobians, 54 factorisations, 465 evaluations of the model, history started again 0 times; 1.84 s of engine compute on this machine (not checked)
Thermal grid, heated in jumps every 2 s, 256 nodesStiff, Rodas4 (relative tolerance 0.000001)41409.99e-86.29e-95.80e-7101.36e53.99e6530 steps, 39 rejected, 530 Jacobians, 569 factorisations, 3906 evaluations of the model; 0.14 s of engine compute on this machine (not checked)
Thermal grid, heated in jumps every 2 s, 256 nodesStiff, BDF (relative tolerance 0.000001)41404.19e-82.40e-91.77e-7104.72e53.95e61842 steps, 84 rejected, 10 Jacobians, 468 factorisations, 3873 evaluations of the model, history started again 19 times; 0.12 s of engine compute on this machine (not checked)
Thermal grid, heated in jumps every 2 s, 1024 nodesStiff, Rodas4 (relative tolerance 0.000001)41401.66e-75.80e-91.63e-5104.76e51.41e7465 steps, 38 rejected, 465 Jacobians, 503 factorisations, 3446 evaluations of the model; 0.57 s of engine compute on this machine (not checked)
Thermal grid, heated in jumps every 2 s, 1024 nodesStiff, BDF (relative tolerance 0.000001)41406.84e-82.24e-95.60e-6101.74e61.47e71701 steps, 80 rejected, 10 Jacobians, 439 factorisations, 3583 evaluations of the model, history started again 19 times; 0.53 s of engine compute on this machine (not checked)
Thermal grid, heated in jumps every 0.25 s, 256 nodesStiff, Rodas4 (relative tolerance 0.000001)41402.28e-71.87e-83.40e-6102.70e58.34e61053 steps, 159 rejected, 1053 Jacobians, 1212 factorisations, 8167 evaluations of the model; 0.28 s of engine compute on this machine (not checked)
Thermal grid, heated in jumps every 0.25 s, 256 nodesStiff, BDF (relative tolerance 0.000001)41403.19e-71.94e-84.76e-6101.40e61.23e75455 steps, 483 rejected, 10 Jacobians, 1993 factorisations, 12037 evaluations of the model, history started again 159 times; 0.38 s of engine compute on this machine (not checked)
Thermal grid, heated in jumps every 0.25 s, 1024 nodesStiff, Rodas4 (relative tolerance 0.000001)41404.65e-71.92e-81.21e-5109.23e52.90e7901 steps, 157 rejected, 901 Jacobians, 1058 factorisations, 7093 evaluations of the model; 1.16 s of engine compute on this machine (not checked)
Thermal grid, heated in jumps every 0.25 s, 1024 nodesStiff, BDF (relative tolerance 0.000001)41402.81e-78.74e-97.30e-6105.06e64.51e74942 steps, 483 rejected, 10 Jacobians, 1918 factorisations, 11011 evaluations of the model, history started again 159 times; 1.73 s of engine compute on this machine (not checked)

Causal reconstruction: finding known graphs and equations again

Synthetic time series generated from known graphs and equations (chains, forks, colliders, a feedback loop, random sparse graphs of 10 and 20 variables; noise from σ = 0.5 to 32; quadratic and source-target product terms; a delay of two rows, an effect within one row, a hidden common cause, a near-noiseless copy; and a continuous-time system sampled from every 0.1 s to every 2 s), the graph hidden, and Konjugate's causal inference asked to find it: edge precision, recall and F1, direction, and the error of the recovered equations, including where it fails.

Directory benchmarks/causal/reconstruction/ · models (shared with the problems it studies)

Recovery against noiseDiamond x1 → x2, x3 → x4, 1,500 rows; noise σ on the three downstream variables
  • precision
  • recall
  • F1
  • direction
0.50.60.70.80.912⁻¹2832Downstream noise σShare
Data table
Downstream noise σprecisionrecallF1direction
0.50.666710.80.5
21111
810.750.85711
3210.50.66671
Recovery against the number of rowsRandom sparse graph, 10 variables, the first n rows
  • precision
  • recall
  • F1
  • direction
0.20.40.60.8125050010001,500RowsShare
Data table
RowsprecisionrecallF1direction
2500.370410.54050.5
5000.62510.76920.8
1,0001111
1,5001111
Continuous time: equations against the sampling intervalLinear ODE chain x1 → x2 → x3 → x4, rates -1, 1, 0.8, -0.8 s⁻¹
  • equation error, every edge
  • equation error, found edges
  • own-rate error
2⁻¹11e-12⁻¹12Sampling interval Δt (s)Relative error
Data table
Sampling interval Δt (s)equation error, every edgeequation error, found edgesown-rate error
0.11–1
0.50.42280.42280.2212
10.5940.5940.3787
20.8090.8090.5653

Checks

CheckWhat it measuresValueThresholdResult
chain.f1Chain x1 → x2 → x3: directed-edge F1 (harmonic mean of precision and recall over edges with a direction)1≥ 0.95✓ Pass
fork.f1Fork (common cause) x1 → x2, x1 → x3: directed-edge F1 (harmonic mean of precision and recall over edges with a direction)1≥ 0.95✓ Pass
collider.f1Collider x1 → x3 ← x2: directed-edge F1 (harmonic mean of precision and recall over edges with a direction)1≥ 0.95✓ Pass
diamond.f1Diamond x1 → x2, x3 → x4: directed-edge F1 (harmonic mean of precision and recall over edges with a direction)0.8≥ 0.75✓ Pass
feedback.f1Feedback loop x1 → x2 → x3 → x1: directed-edge F1 (harmonic mean of precision and recall over edges with a direction)1≥ 0.95✓ Pass
randomDag10.f1Random sparse graph, 10 variables: directed-edge F1 (harmonic mean of precision and recall over edges with a direction)1≥ 0.95✓ Pass
randomDag20.f1Random sparse graph, 20 variables: directed-edge F1 (harmonic mean of precision and recall over edges with a direction)0.913≥ 0.86✓ Pass
diamondNoise2.f1Diamond, downstream noise σ = 2: directed-edge F1 (harmonic mean of precision and recall over edges with a direction)1≥ 0.95✓ Pass
quadratic.f1Quadratic term x2 = 0.6 x1 + 0.4 x1² + …: directed-edge F1 (harmonic mean of precision and recall over edges with a direction)1≥ 0.95✓ Pass
bilinear.f1Source-target product x2 += 0.3 x1 x2 (with a linear path): directed-edge F1 (harmonic mean of precision and recall over edges with a direction)1≥ 0.95✓ Pass
odeChainDt0p5.f1Linear ODE chain x1 → x2 → x3 → x4, sampled every 0.5 s: directed-edge F1 (harmonic mean of precision and recall over edges with a direction)1≥ 0.95✓ Pass
odeChainDt1.f1Linear ODE chain x1 → x2 → x3 → x4, sampled every 1 s: directed-edge F1 (harmonic mean of precision and recall over edges with a direction)1≥ 0.95✓ Pass
odeChainDt0p5.equationErrorLinear ODE chain x1 → x2 → x3 → x4, sampled every 0.5 s: equation error: ‖estimated - true rates‖ / ‖true rates‖ over every true or proposed edge, a missing edge counting as zero0.42280.34 to 0.53✓ Pass
odeChainDt1.equationErrorLinear ODE chain x1 → x2 → x3 → x4, sampled every 1 s: equation error: ‖estimated - true rates‖ / ‖true rates‖ over every true or proposed edge, a missing edge counting as zero0.5940.48 to 0.74✓ Pass
diamondNoise8.recallDiamond, downstream noise σ = 8: share of the true edges found with their direction (known limit: The root x1 explains too little of x2 and x3 against their own noise for the skeleton to keep the pairs; the edges into x4, whose causes now vary widely, are still found.)0.750.7 to 0.8✓ Pass
diamondNoise32.recallDiamond, downstream noise σ = 32: share of the true edges found with their direction (known limit: The root x1 explains too little of x2 and x3 against their own noise for the skeleton to keep the pairs; the edges into x4, whose causes now vary widely, are still found.)0.50.45 to 0.55✓ Pass
pureQuadratic.recallPurely quadratic term x2 = 0.8 x1² + …: share of the true edges found with their direction (known limit: x1 is symmetric about zero, so x1² has no linear correlation with x1; the skeleton (stage 1) is linear and prunes the pair before any power is fitted.)00 to 0✓ Pass
lag2.foundEquationErrorDelay of two rows x1(t-2) → x2(t): equation error over the true edges that were found (known limit: infer fits lag 1 only (a lag of 2 has no single-Euler-step equation); x1's own persistence lets x1(t-1) stand in for x1(t-2), so the edge is found but its rate is wrong.)0.52790.42 to 0.66✓ Pass
instantaneous.directionAccuracyEffect within one row x2(t) = 0.8 x1(t) + …: share of the true edges found at all whose direction is reported exactly (known limit: The effect is faster than the sampling, so there is no lagged evidence of its direction; at best the pair is found as correlation without a direction.)00 to 0✓ Pass
hiddenConfounder.falseEdgesHidden common cause z → x1, z → x2 (z not in the CSV): edges proposed that are not in the true graph (known limit: Nothing can tell a hidden common cause from a direct link using the observed columns alone; x1 and x2 truly share no edge, so any edge found between them is false.)22 to 2✓ Pass
nearDeterministic.recallNear-noiseless copy x1 → x2, x3(t) = x2(t) + 0.01 ε: share of the true edges found with their direction (known limit: The skeleton conditions on every other current and lagged column at once; x3 is an almost exact copy of x2 in the same row, so conditioned on it x2 has nothing left to correlate with x1 (the collider-bias limitation docs/causalInference.md describes). The copy itself, within one row, is outside the lag-1 model.)00 to 0✓ Pass
odeChainDt0p1.recallLinear ODE chain x1 → x2 → x3 → x4, sampled every 0.1 s: share of the true edges found with their direction (known limit: Sampled finely, each variable changes little in one row; conditioned on the source's current value, its previous one adds only about Δt/2 of the coupling, below the skeleton's fixed threshold of 0.1 in partial correlation. More rows do not help (6,000 rows give the same), since the threshold is on the size of the correlation, not its significance.)00 to 0✓ Pass
odeChainDt2.equationErrorLinear ODE chain x1 → x2 → x3 → x4, sampled every 2 s: equation error: ‖estimated - true rates‖ / ‖true rates‖ over every true or proposed edge, a missing edge counting as zero (known limit: Sampled coarsely, Φ = exp(A Δt) is far from I + A Δt, and (Φ - I)/Δt, the rate infer reports, is far from A: the structure is still found, but every rate is badly biased towards zero.)0.8090.65 to 1✓ Pass
pooled.directionAccuracyEvery dataset expected to be recovered: share of the true edges found at all whose direction is reported exactly, weighted by true edges0.9298≥ 0.9✓ Pass
pooled.foundEquationErrorEvery discrete-time dataset expected to be recovered (the model class infer fits): largest equation error over the true edges that were found0.0466≤ 0.058✓ Pass
sampleSize.f1GainRandom sparse graph, 10 variables: F1 with all 1500 rows less F1 with the first 2500.45950.4 to 0.52✓ Pass
All 25 result rows
CaseMethodRelative errorNote
Chain x1 → x2 → x3infer0.007251500 rows; edges true 2, proposed 2, right 2; precision 1.00, recall 1.00, F1 1.00; skeleton F1 1.00; direction 1.00; equation error 0.0073 (on found edges 0.0073), own-rate error 0.023
Fork (common cause) x1 → x2, x1 → x3infer0.019771500 rows; edges true 2, proposed 2, right 2; precision 1.00, recall 1.00, F1 1.00; skeleton F1 1.00; direction 1.00; equation error 0.020 (on found edges 0.020), own-rate error 0.025
Collider x1 → x3 ← x2infer0.016371500 rows; edges true 2, proposed 2, right 2; precision 1.00, recall 1.00, F1 1.00; skeleton F1 1.00; direction 1.00; equation error 0.016 (on found edges 0.016), own-rate error 0.017
Diamond x1 → x2, x3 → x4infer0.087041500 rows; edges true 4, proposed 6, right 4; precision 0.67, recall 1.00, F1 0.80; skeleton F1 1.00; direction 0.50; largest false edge's rate 0.076 (smallest true rate 0.50); equation error 0.087 (on found edges 0.039), own-rate error 0.012
Feedback loop x1 → x2 → x3 → x1infer0.036411500 rows; edges true 3, proposed 3, right 3; precision 1.00, recall 1.00, F1 1.00; skeleton F1 1.00; direction 1.00; equation error 0.036 (on found edges 0.036), own-rate error 0.034
Random sparse graph, 10 variablesinfer0.036121500 rows; edges true 10, proposed 10, right 10; precision 1.00, recall 1.00, F1 1.00; skeleton F1 1.00; direction 1.00; equation error 0.036 (on found edges 0.036), own-rate error 0.046
Random sparse graph, 20 variablesinfer0.065261000 rows; edges true 21, proposed 25, right 21; precision 0.84, recall 1.00, F1 0.91; skeleton F1 0.98; direction 0.90; largest false edge's rate 0.10 (smallest true rate 0.40); equation error 0.065 (on found edges 0.047), own-rate error 0.040
Diamond, downstream noise σ = 2infer0.028691500 rows; edges true 4, proposed 4, right 4; precision 1.00, recall 1.00, F1 1.00; skeleton F1 1.00; direction 1.00; equation error 0.029 (on found edges 0.029), own-rate error 0.013
Diamond, downstream noise σ = 8infer0.45511500 rows; edges true 4, proposed 3, right 3; precision 1.00, recall 0.75, F1 0.86; skeleton F1 0.86; direction 1.00; equation error 0.46 (on found edges 0.016), own-rate error 0.061; known limit: The root x1 explains too little of x2 and x3 against their own noise for the skeleton to keep the pairs; the edges into x4, whose causes now vary widely, are still found.
Diamond, downstream noise σ = 32infer0.75891500 rows; edges true 4, proposed 2, right 2; precision 1.00, recall 0.50, F1 0.67; skeleton F1 0.67; direction 1.00; equation error 0.76 (on found edges 0.053), own-rate error 0.032; known limit: The root x1 explains too little of x2 and x3 against their own noise for the skeleton to keep the pairs; the edges into x4, whose causes now vary widely, are still found.
Quadratic term x2 = 0.6 x1 + 0.4 x1² + …infer --degrees 1,20.013691500 rows; edges true 2, proposed 2, right 2; precision 1.00, recall 1.00, F1 1.00; skeleton F1 1.00; direction 1.00; equation error 0.014 (on found edges 0.014), own-rate error 0.016
Purely quadratic term x2 = 0.8 x1² + …infer --degrees 1,211500 rows; edges true 1, proposed 0, right 0; precision –, recall 0.00, F1 –; skeleton F1 –; direction –; equation error 1.0 (on found edges –), own-rate error 1.0; known limit: x1 is symmetric about zero, so x1² has no linear correlation with x1; the skeleton (stage 1) is linear and prunes the pair before any power is fitted.
Source-target product x2 += 0.3 x1 x2 (with a linear path)infer --include-interaction-terms true0.019871500 rows; edges true 1, proposed 1, right 1; precision 1.00, recall 1.00, F1 1.00; skeleton F1 1.00; direction 1.00; equation error 0.020 (on found edges 0.020), own-rate error 0.0088
Delay of two rows x1(t-2) → x2(t)infer0.53161500 rows; edges true 1, proposed 2, right 1; precision 0.50, recall 1.00, F1 0.67; skeleton F1 1.00; direction 0.00; largest false edge's rate 0.050 (smallest true rate 0.80); equation error 0.53 (on found edges 0.53), own-rate error 0.38; known limit: infer fits lag 1 only (a lag of 2 has no single-Euler-step equation); x1's own persistence lets x1(t-1) stand in for x1(t-2), so the edge is found but its rate is wrong.
Effect within one row x2(t) = 0.8 x1(t) + …infer0.53271500 rows; edges true 1, proposed 2, right 1; precision 0.50, recall 1.00, F1 0.67; skeleton F1 1.00; direction 0.00; largest false edge's rate 0.077 (smallest true rate 0.80); equation error 0.53 (on found edges 0.52), own-rate error 0.012; known limit: The effect is faster than the sampling, so there is no lagged evidence of its direction; at best the pair is found as correlation without a direction.
Hidden common cause z → x1, z → x2 (z not in the CSV)infer–1500 rows; edges true 0, proposed 2, right 0; precision 0.00, recall –, F1 –; skeleton F1 –; direction –; largest false edge's rate 0.31 (smallest true rate Infinity); equation error – (on found edges –), own-rate error –; known limit: Nothing can tell a hidden common cause from a direct link using the observed columns alone; x1 and x2 truly share no edge, so any edge found between them is false.
Near-noiseless copy x1 → x2, x3(t) = x2(t) + 0.01 εinfer11500 rows; edges true 2, proposed 0, right 0; precision –, recall 0.00, F1 –; skeleton F1 –; direction –; equation error 1.0 (on found edges –), own-rate error 1.0; known limit: The skeleton conditions on every other current and lagged column at once; x3 is an almost exact copy of x2 in the same row, so conditioned on it x2 has nothing left to correlate with x1 (the collider-bias limitation docs/causalInference.md describes). The copy itself, within one row, is outside the lag-1 model.
Linear ODE chain x1 → x2 → x3 → x4, sampled every 0.1 sinfer11500 rows; edges true 3, proposed 0, right 0; precision –, recall 0.00, F1 –; skeleton F1 –; direction –; equation error 1.0 (on found edges –), own-rate error 1.0; known limit: Sampled finely, each variable changes little in one row; conditioned on the source's current value, its previous one adds only about Δt/2 of the coupling, below the skeleton's fixed threshold of 0.1 in partial correlation. More rows do not help (6,000 rows give the same), since the threshold is on the size of the correlation, not its significance.
Linear ODE chain x1 → x2 → x3 → x4, sampled every 0.5 sinfer0.42281500 rows; edges true 3, proposed 3, right 3; precision 1.00, recall 1.00, F1 1.00; skeleton F1 1.00; direction 1.00; equation error 0.42 (on found edges 0.42), own-rate error 0.22
Linear ODE chain x1 → x2 → x3 → x4, sampled every 1 sinfer0.5941500 rows; edges true 3, proposed 3, right 3; precision 1.00, recall 1.00, F1 1.00; skeleton F1 1.00; direction 1.00; equation error 0.59 (on found edges 0.59), own-rate error 0.38
Linear ODE chain x1 → x2 → x3 → x4, sampled every 2 sinfer0.8091500 rows; edges true 3, proposed 3, right 3; precision 1.00, recall 1.00, F1 1.00; skeleton F1 1.00; direction 1.00; equation error 0.81 (on found edges 0.81), own-rate error 0.57; known limit: Sampled coarsely, Φ = exp(A Δt) is far from I + A Δt, and (Φ - I)/Δt, the rate infer reports, is far from A: the structure is still found, but every rate is badly biased towards zero.
Random sparse graph, 10 variables, first 250 rowsinfer0.2108250 rows; edges true 10, proposed 27, right 10; precision 0.37, recall 1.00, F1 0.54; skeleton F1 0.67 (1 pair correlation only); direction 0.50; largest false edge's rate 0.14 (smallest true rate 0.41); equation error 0.21 (on found edges 0.11), own-rate error 0.084
Random sparse graph, 10 variables, first 500 rowsinfer0.1107500 rows; edges true 10, proposed 16, right 10; precision 0.63, recall 1.00, F1 0.77; skeleton F1 0.83 (1 pair correlation only); direction 0.80; largest false edge's rate 0.084 (smallest true rate 0.41); equation error 0.11 (on found edges 0.082), own-rate error 0.038
Random sparse graph, 10 variables, first 1000 rowsinfer0.043041000 rows; edges true 10, proposed 10, right 10; precision 1.00, recall 1.00, F1 1.00; skeleton F1 1.00; direction 1.00; equation error 0.043 (on found edges 0.043), own-rate error 0.050
Random sparse graph, 10 variables, first 1500 rowsinfer0.036121500 rows; edges true 10, proposed 10, right 10; precision 1.00, recall 1.00, F1 1.00; skeleton F1 1.00; direction 1.00; equation error 0.036 (on found edges 0.036), own-rate error 0.046

Van der Pol oscillator

The Van der Pol oscillator from x = 2, y = 0, one node, at μ = 1 (smooth) and μ = 10 (relaxation): trajectory error against a SciPy Radau reference, the limit cycle's period and amplitude, the phase portrait and the observed order, for explicit and semi-implicit Euler and Runge–Kutta 4, and Adaptive's error, period and amplitude against its tolerance with the work it took. and μ = 1000 (stiff) with Stiff (Rodas4) and BDF: its trajectory, limit cycle, error against tolerance and work, beside Adaptive over the cycle's first 160 s.

Directory benchmarks/oscillators/vanDerPol/ · models mu1.kjt, mu10.kjt, mu1000.kjt · numerical reference reference.json: solve_ivp Radau with the exact Jacobian; DOP853 as a check for mu = 1 and 10; event location for the period and amplitude (SciPy 1.13.1, NumPy 2.0.2, rtol 1e-12)

Van der Pol, μ = 1: phase portraity = dx/dt against x over 40 s, from (2, 0)
  • SciPy Radau reference
  • Konjugate, explicit Euler, h = 2^-10 s
  • Konjugate, semi-implicit Euler, h = 2^-10 s
  • Konjugate, Runge–Kutta 4, h = 2^-6 s
-4-2024-2-1012xy = dx/dt
Data table (every 17th point; all 641 are in plots/vanDerPol1Phase.csv)
SciPy Radau reference: xy = dx/dtKonjugate, explicit Euler, h = 2^-10 s: xy = dx/dtKonjugate, semi-implicit Euler, h = 2^-10 s: xy = dx/dtKonjugate, Runge–Kutta 4, h = 2^-6 s: xy = dx/dt
20202020
1.458-0.81321.459-0.81321.458-0.81361.458-0.8132
0.07824-2.0920.0796-2.0910.07813-2.0930.07824-2.092
-1.988-0.3265-1.99-0.3272-1.988-0.3239-1.988-0.3265
-1.5710.7413-1.5730.7407-1.570.7425-1.5710.7413
-0.35791.797-0.36311.791-0.35451.801-0.35791.797
1.9070.83521.9060.84741.9080.82481.9070.8352
1.673-0.67391.677-0.67241.671-0.67571.673-0.6739
0.598-1.5430.6061-1.5350.5922-1.550.598-1.543
-1.741-1.486-1.734-1.513-1.746-1.466-1.741-1.486
-1.7650.6065-1.770.6041-1.7620.6093-1.7650.6065
-0.80511.337-0.81521.328-0.79761.345-0.80511.337
1.4782.1381.4622.1721.492.1131.4782.138
1.848-0.53211.853-0.52831.844-0.53621.848-0.5321
0.9855-1.1730.9971-1.1630.9769-1.1810.9855-1.173
-1.135-2.573-1.109-2.594-1.154-2.558-1.135-2.573
-1.9180.4396-1.9240.4329-1.9140.4461-1.9180.4396
-1.1451.041-1.1571.031-1.1351.049-1.1451.041
0.75292.6720.71922.6670.77732.6750.75292.672
1.973-0.31131.978-0.29891.969-0.32231.973-0.3113
1.287-0.93351.3-0.92411.276-0.94131.287-0.9335
-0.3775-2.503-0.3402-2.476-0.4051-2.522-0.3775-2.503
-2.0050.1188-2.0080.09523-2.0030.1383-2.0050.1188
-1.4150.8443-1.4290.8351-1.4040.852-1.4150.8443
0.037232.21-7.28e-42.1720.065782.2380.037232.21
2.0020.178820.22242.0030.14472.0020.1788
1.531-0.76761.546-0.75861.519-0.77531.531-0.7676
0.2589-1.9030.2959-1.8630.2307-1.9340.2589-1.903
-1.946-0.6264-1.935-0.7001-1.954-0.5705-1.946-0.6264
-1.6360.6986-1.6520.6893-1.6250.7064-1.6360.6986
-0.51311.632-0.54851.595-0.48591.661-0.51311.632
1.8131.2341.7871.3381.8331.1551.8131.234
1.732-0.63191.748-0.62171.721-0.64061.732-0.6319
0.7316-1.4090.7654-1.3760.7056-1.4350.7316-1.409
-1.587-1.91-1.539-2.02-1.621-1.824-1.587-1.91
-1.8180.5612-1.8330.5486-1.8070.5716-1.8180.5612
-0.92131.23-0.95361.201-0.89631.253-0.92131.23
1.2692.4491.2032.521.3182.3881.2692.449
Van der Pol, μ = 1: x against timeReference against Konjugate over 40 s
  • SciPy Radau reference
  • Konjugate, explicit Euler, h = 2^-10 s
  • Konjugate, semi-implicit Euler, h = 2^-10 s
  • Konjugate, Runge–Kutta 4, h = 2^-6 s
-3-2-10123010203040Time (s)x
Data table (every 17th point; all 641 are in plots/vanDerPol1Trajectory.csv)
Time (s)SciPy Radau referenceKonjugate, explicit Euler, h = 2^-10 sKonjugate, semi-implicit Euler, h = 2^-10 sKonjugate, Runge–Kutta 4, h = 2^-6 s
02222
1.0631.4581.4591.4581.458
2.1250.078240.07960.078130.07824
3.188-1.988-1.99-1.988-1.988
4.25-1.571-1.573-1.57-1.571
5.313-0.3579-0.3631-0.3545-0.3579
6.3751.9071.9061.9081.907
7.4381.6731.6771.6711.673
8.50.5980.60610.59220.598
9.563-1.741-1.734-1.746-1.741
10.63-1.765-1.77-1.762-1.765
11.69-0.8051-0.8152-0.7976-0.8051
12.751.4781.4621.491.478
13.811.8481.8531.8441.848
14.880.98550.99710.97690.9855
15.94-1.135-1.109-1.154-1.135
17-1.918-1.924-1.914-1.918
18.06-1.145-1.157-1.135-1.145
19.130.75290.71920.77730.7529
20.191.9731.9781.9691.973
21.251.2871.31.2761.287
22.31-0.3775-0.3402-0.4051-0.3775
23.38-2.005-2.008-2.003-2.005
24.44-1.415-1.429-1.404-1.415
25.50.03723-7.28e-40.065780.03723
26.562.00222.0032.002
27.631.5311.5461.5191.531
28.690.25890.29590.23070.2589
29.75-1.946-1.935-1.954-1.946
30.81-1.636-1.652-1.625-1.636
31.88-0.5131-0.5485-0.4859-0.5131
32.941.8131.7871.8331.813
341.7321.7481.7211.732
35.060.73160.76540.70560.7316
36.13-1.587-1.539-1.621-1.587
37.19-1.818-1.833-1.807-1.818
38.25-0.9213-0.9536-0.8963-0.9213
39.311.2691.2031.3181.269
Van der Pol, μ = 1: error against step sizeLargest error relative to range over 8 s
  • Konjugate, explicit Euler
  • Konjugate, semi-implicit Euler
  • Konjugate, Runge–Kutta 4
1e-111e-91e-71e-51e-32⁻⁴2⁻⁵2⁻⁶2⁻⁷2⁻⁸2⁻⁹2⁻¹⁰2⁻¹¹2⁻¹²Global step h (s)Relative error
Data table
Konjugate, explicit Euler: Global step h (s)Relative errorKonjugate, semi-implicit Euler: Global step h (s)Relative errorKonjugate, Runge–Kutta 4: Global step h (s)Relative error
0.0078130.024520.0078130.017390.06258.34e-6
0.0039060.012130.0039060.00870.031255.28e-7
0.0019530.0060330.0019530.0043510.015633.32e-8
9.77e-40.0030089.77e-40.0021760.0078132.08e-9
4.88e-40.0015024.88e-40.0010880.0039061.30e-10
2.44e-47.50e-42.44e-45.44e-40.0019538.05e-12
Van der Pol, μ = 1: Adaptive's error against its toleranceLargest error relative to range over 40 s, sampled every 0.5 s
  • Konjugate, Adaptive, Dormand–Prince 5(4)
  • Proportional (slope 1)
1e-91e-81e-71e-61e-51e-41e-31e-41e-51e-61e-71e-81e-91e-10Relative toleranceRelative error
Data table
Relative toleranceKonjugate, Adaptive, Dormand–Prince 5(4)Proportional (slope 1)
1.00e-40.0013690.001369
1.00e-58.91e-51.37e-4
1.00e-64.91e-61.37e-5
1.00e-73.91e-71.37e-6
1.00e-83.63e-81.37e-7
1.00e-93.35e-91.37e-8
1.00e-103.00e-101.37e-9
Van der Pol, μ = 10: phase portraity = dx/dt against x over 64 s, from (2, 0)
  • SciPy Radau reference
  • Konjugate, explicit Euler, h = 2^-10 s
  • Konjugate, semi-implicit Euler, h = 2^-10 s
  • Konjugate, Runge–Kutta 4, h = 2^-8 s
-20-1001020-2-1012xy = dx/dt
Data table (every 52th point; all 2049 are in plots/vanDerPol10Phase.csv)
SciPy Radau reference: xy = dx/dtKonjugate, explicit Euler, h = 2^-10 s: xy = dx/dtKonjugate, semi-implicit Euler, h = 2^-10 s: xy = dx/dtKonjugate, Runge–Kutta 4, h = 2^-8 s: xy = dx/dt
20202020
1.889-0.073361.889-0.073361.889-0.073361.889-0.07336
1.762-0.083341.762-0.083341.762-0.083351.762-0.08334
1.615-0.099621.615-0.099621.615-0.099641.615-0.09962
1.429-0.13381.429-0.13381.429-0.13381.429-0.1338
1.126-0.29991.126-0.29971.126-0.30041.126-0.2999
-1.9880.06721-1.9950.06684-1.9820.06756-1.9880.06721
-1.8730.07444-1.8810.07393-1.8660.07494-1.8730.07444
-1.7440.08499-1.7530.08421-1.7370.08575-1.7440.08499
-1.5930.1026-1.6030.1012-1.5840.104-1.5930.1026
-1.40.1415-1.4140.1378-1.3870.1455-1.40.1415
-1.0540.3943-1.090.3425-1.0140.4637-1.0540.3943
1.974-0.068021.987-0.067261.961-0.068761.974-0.06802
1.858-0.075581.872-0.074521.843-0.076631.858-0.07558
1.726-0.086741.743-0.085111.71-0.088391.726-0.08674
1.571-0.10581.592-0.10281.552-0.1091.571-0.1058
1.37-0.15081.398-0.14211.341-0.16081.37-0.1508
0.9523-0.59941.048-0.40330.8029-1.1060.9523-0.5994
-1.9590.06886-1.9790.0677-1.940.07004-1.9590.06886
-1.8410.07677-1.8640.07513-1.820.07845-1.8410.07677
-1.7080.08862-1.7330.08604-1.6830.09131-1.7080.08862
-1.5490.1094-1.580.1045-1.5180.1149-1.5490.1094
-1.3370.1623-1.3820.147-1.2890.1822-1.3370.1623
-0.77361.235-0.99780.49530.252910.03-0.77361.235
1.945-0.069741.972-0.068141.919-0.071391.945-0.06974
1.825-0.078031.855-0.075751.796-0.080411.825-0.07803
1.689-0.090631.724-0.087011.655-0.094571.689-0.09063
1.525-0.11351.568-0.10631.482-0.12181.525-0.1135
1.301-0.17671.365-0.15231.229-0.21451.301-0.1767
0.2391-5.2020.934-0.6469-2.0080.026180.2391-5.202
-1.930.07066-1.9640.06859-1.8970.07283-1.930.07066
-1.8090.07935-1.8470.07638-1.7710.08255-1.8090.07935
-1.670.0928-1.7140.08801-1.6250.09822-1.670.0928
-1.5010.118-1.5560.1082-1.4440.1303-1.5010.118
-1.2620.1956-1.3470.1583-1.1570.2698-1.2620.1956
1.864.548-0.8470.92691.989-0.067151.864.548
1.915-0.071621.956-0.069051.875-0.074361.915-0.07162
1.792-0.080761.838-0.077041.746-0.084871.792-0.08076
1.65-0.095141.704-0.089051.595-0.10241.65-0.09514
1.476-0.12311.544-0.11031.403-0.1411.476-0.1231
Van der Pol, μ = 10: x against timeReference against Konjugate over 64 s
  • SciPy Radau reference
  • Konjugate, explicit Euler, h = 2^-10 s
  • Konjugate, semi-implicit Euler, h = 2^-10 s
  • Konjugate, Runge–Kutta 4, h = 2^-8 s
-3-2-101230204060Time (s)x
Data table (every 52th point; all 2049 are in plots/vanDerPol10Trajectory.csv)
Time (s)SciPy Radau referenceKonjugate, explicit Euler, h = 2^-10 sKonjugate, semi-implicit Euler, h = 2^-10 sKonjugate, Runge–Kutta 4, h = 2^-8 s
02222
1.6251.8891.8891.8891.889
3.251.7621.7621.7621.762
4.8751.6151.6151.6151.615
6.51.4291.4291.4291.429
8.1251.1261.1261.1261.126
9.75-1.988-1.995-1.982-1.988
11.38-1.873-1.881-1.866-1.873
13-1.744-1.753-1.737-1.744
14.63-1.593-1.603-1.584-1.593
16.25-1.4-1.414-1.387-1.4
17.88-1.054-1.09-1.014-1.054
19.51.9741.9871.9611.974
21.131.8581.8721.8431.858
22.751.7261.7431.711.726
24.381.5711.5921.5521.571
261.371.3981.3411.37
27.630.95231.0480.80290.9523
29.25-1.959-1.979-1.94-1.959
30.88-1.841-1.864-1.82-1.841
32.5-1.708-1.733-1.683-1.708
34.13-1.549-1.58-1.518-1.549
35.75-1.337-1.382-1.289-1.337
37.38-0.7736-0.99780.2529-0.7736
391.9451.9721.9191.945
40.631.8251.8551.7961.825
42.251.6891.7241.6551.689
43.881.5251.5681.4821.525
45.51.3011.3651.2291.301
47.130.23910.934-2.0080.2391
48.75-1.93-1.964-1.897-1.93
50.38-1.809-1.847-1.771-1.809
52-1.67-1.714-1.625-1.67
53.63-1.501-1.556-1.444-1.501
55.25-1.262-1.347-1.157-1.262
56.881.86-0.8471.9891.86
58.51.9151.9561.8751.915
60.131.7921.8381.7461.792
61.751.651.7041.5951.65
63.381.4761.5441.4031.476
Van der Pol, μ = 10: error against step sizeLargest error relative to range over 12 s
  • Konjugate, explicit Euler
  • Konjugate, semi-implicit Euler
  • Konjugate, Runge–Kutta 4
1e-91e-71e-51e-31e-12⁻⁶2⁻⁷2⁻⁸2⁻⁹2⁻¹⁰2⁻¹¹2⁻¹²Global step h (s)Relative error
Data table
Konjugate, explicit Euler: Global step h (s)Relative errorKonjugate, semi-implicit Euler: Global step h (s)Relative errorKonjugate, Runge–Kutta 4: Global step h (s)Relative error
0.0078130.31890.0078130.055630.015634.74e-5
0.0039060.15410.0039060.027650.0078132.64e-6
0.0019530.073870.0019530.013790.0039061.58e-7
9.77e-40.036019.77e-40.0068840.0019539.86e-9
4.88e-40.017764.88e-40.003449.77e-46.08e-10
2.44e-40.0088192.44e-40.001719––
Van der Pol, μ = 10: Adaptive's error against its toleranceLargest error relative to range over 64 s, sampled every 0.5 s
  • Konjugate, Adaptive, Dormand–Prince 5(4)
  • Proportional (slope 1)
1e-91e-81e-71e-61e-51e-41e-31e-41e-51e-61e-71e-81e-91e-10Relative toleranceRelative error
Data table
Relative toleranceKonjugate, Adaptive, Dormand–Prince 5(4)Proportional (slope 1)
1.00e-40.0013910.001391
1.00e-51.27e-41.39e-4
1.00e-69.83e-61.39e-5
1.00e-71.61e-61.39e-6
1.00e-81.77e-71.39e-7
1.00e-91.25e-81.39e-8
1.00e-101.34e-91.39e-9
Van der Pol, μ = 1000: error against toleranceLargest error relative to range over 3200 s, and the work it took
  • Konjugate, Stiff, Rodas4
  • Error equal to the tolerance
1e-91e-81e-71e-61e-51e-41e-31e-91e-81e-71e-61e-51e-4Relative toleranceRelative error
Data table
Relative toleranceKonjugate, Stiff, Rodas4Error equal to the tolerance
1.00e-40.0019551.00e-4
1.00e-57.81e-41.00e-5
1.00e-61.14e-41.00e-6
1.00e-71.87e-51.00e-7
1.00e-82.48e-61.00e-8
1.00e-93.23e-71.00e-9
Van der Pol, μ = 1000: phase portraity = dx/dt against x over 3200 s, from (2, 0)
  • SciPy Radau reference
  • Konjugate, Stiff, Rodas4 (relative tolerance 1e-8), h = 2^-1 s
  • Konjugate, Stiff, BDF (relative tolerance 1e-8), h = 2^-1 s
-0.2-0.15-0.1-0.0500.05-2-1012xy = dx/dt
Data table (every 161th point; all 6401 are in plots/vanDerPol1000Phase.csv)
SciPy Radau reference: xy = dx/dtKonjugate, Stiff, Rodas4 (relative tolerance 1e-8), h = 2^-1 s: xy = dx/dtKonjugate, Stiff, BDF (relative tolerance 1e-8), h = 2^-1 s: xy = dx/dt
202020
1.945-6.99e-41.945-6.99e-41.945-6.99e-4
1.887-7.37e-41.887-7.37e-41.887-7.37e-4
1.826-7.82e-41.826-7.82e-41.826-7.82e-4
1.761-8.38e-41.761-8.38e-41.761-8.38e-4
1.691-9.09e-41.691-9.09e-41.691-9.09e-4
1.614-0.0010061.614-0.0010061.614-0.001006
1.528-0.0011451.528-0.0011451.528-0.001145
1.427-0.0013761.427-0.0013761.427-0.001376
1.299-0.0018871.299-0.0018871.299-0.001887
1.043-0.011711.043-0.011711.043-0.01171
-1.9476.98e-4-1.9476.98e-4-1.9476.98e-4
-1.8897.36e-4-1.8897.36e-4-1.8897.36e-4
-1.8287.81e-4-1.8287.81e-4-1.8287.81e-4
-1.7638.36e-4-1.7638.36e-4-1.7638.36e-4
-1.6939.07e-4-1.6939.07e-4-1.6939.07e-4
-1.6160.001002-1.6160.001002-1.6160.001002
-1.530.00114-1.530.00114-1.530.00114
-1.430.001367-1.430.001367-1.430.001367
-1.3040.001864-1.3040.001864-1.3040.001864
-1.0640.008001-1.0640.008001-1.0640.008001
1.948-6.97e-41.948-6.97e-41.948-6.97e-4
1.891-7.34e-41.891-7.34e-41.891-7.34e-4
1.83-7.79e-41.83-7.79e-41.83-7.79e-4
1.765-8.35e-41.765-8.35e-41.765-8.35e-4
1.695-9.05e-41.695-9.05e-41.695-9.05e-4
1.618-9.99e-41.618-9.99e-41.618-9.99e-4
1.533-0.0011361.533-0.0011361.533-0.001136
1.433-0.0013591.433-0.0013591.433-0.001359
1.308-0.0018421.308-0.0018421.308-0.001842
1.08-0.0064771.08-0.0064771.08-0.006477
-1.956.96e-4-1.956.96e-4-1.956.96e-4
-1.8927.33e-4-1.8927.33e-4-1.8927.33e-4
-1.8317.78e-4-1.8317.78e-4-1.8317.78e-4
-1.7678.33e-4-1.7678.33e-4-1.7678.33e-4
-1.6979.03e-4-1.6979.03e-4-1.6979.03e-4
-1.6219.96e-4-1.6219.96e-4-1.6219.96e-4
-1.5350.001131-1.5350.001131-1.5350.001131
-1.4360.001351-1.4360.001351-1.4360.001351
-1.3120.00182-1.3120.00182-1.3120.00182
Van der Pol, μ = 1000: x against timeReference against Konjugate over 3200 s
  • SciPy Radau reference
  • Konjugate, Stiff, Rodas4 (relative tolerance 1e-8), h = 2^-1 s
  • Konjugate, Stiff, BDF (relative tolerance 1e-8), h = 2^-1 s
-3-2-101201,0002,0003,000Time (s)x
Data table (every 161th point; all 6401 are in plots/vanDerPol1000Trajectory.csv)
Time (s)SciPy Radau referenceKonjugate, Stiff, Rodas4 (relative tolerance 1e-8), h = 2^-1 sKonjugate, Stiff, BDF (relative tolerance 1e-8), h = 2^-1 s
0222
80.51.9451.9451.945
1611.8871.8871.887
241.51.8261.8261.826
3221.7611.7611.761
402.51.6911.6911.691
4831.6141.6141.614
563.51.5281.5281.528
6441.4271.4271.427
724.51.2991.2991.299
8051.0431.0431.043
885.5-1.947-1.947-1.947
966-1.889-1.889-1.889
1,047-1.828-1.828-1.828
1,127-1.763-1.763-1.763
1,208-1.693-1.693-1.693
1,288-1.616-1.616-1.616
1,369-1.53-1.53-1.53
1,449-1.43-1.43-1.43
1,530-1.304-1.304-1.304
1,610-1.064-1.064-1.064
1,6911.9481.9481.948
1,7711.8911.8911.891
1,8521.831.831.83
1,9321.7651.7651.765
2,0131.6951.6951.695
2,0931.6181.6181.618
2,1741.5331.5331.533
2,2541.4331.4331.433
2,3351.3081.3081.308
2,4151.081.081.08
2,496-1.95-1.95-1.95
2,576-1.892-1.892-1.892
2,657-1.831-1.831-1.831
2,737-1.767-1.767-1.767
2,818-1.697-1.697-1.697
2,898-1.621-1.621-1.621
2,979-1.535-1.535-1.535
3,059-1.436-1.436-1.436
3,140-1.312-1.312-1.312

Checks

CheckWhat it measuresValueThresholdResult
mu1RelativeErrorExplicitVan der Pol, μ = 1: largest error relative to range over 40 s, explicit Euler, h = 2^-10 s0.02413≤ 0.031✓ Pass
mu1PeriodErrorExplicitVan der Pol, μ = 1: limit-cycle period, relative error, explicit Euler, h = 2^-10 s7.16e-4≤ 9.00e-4✓ Pass
mu1AmplitudeErrorExplicitVan der Pol, μ = 1: limit-cycle amplitude, relative error, explicit Euler, h = 2^-10 s9.26e-4≤ 0.0012✓ Pass
mu1RelativeErrorSemiImplicitVan der Pol, μ = 1: largest error relative to range over 40 s, semi-implicit Euler, h = 2^-10 s0.01831≤ 0.023✓ Pass
mu1PeriodErrorSemiImplicitVan der Pol, μ = 1: limit-cycle period, relative error, semi-implicit Euler, h = 2^-10 s5.50e-4≤ 6.90e-4✓ Pass
mu1AmplitudeErrorSemiImplicitVan der Pol, μ = 1: limit-cycle amplitude, relative error, semi-implicit Euler, h = 2^-10 s3.10e-4≤ 3.90e-4✓ Pass
mu1RelativeErrorRungeKutta4Van der Pol, μ = 1: largest error relative to range over 40 s, Runge–Kutta 4, h = 2^-6 s2.63e-7≤ 3.30e-7✓ Pass
mu1PeriodErrorRungeKutta4Van der Pol, μ = 1: limit-cycle period, relative error, Runge–Kutta 4, h = 2^-6 s1.28e-8≤ 1.60e-8✓ Pass
mu1AmplitudeErrorRungeKutta4Van der Pol, μ = 1: limit-cycle amplitude, relative error, Runge–Kutta 4, h = 2^-6 s1.84e-7≤ 2.40e-7✓ Pass
mu1OrderExplicitVan der Pol, μ = 1, explicit Euler: observed order, least-squares over 6 step sizes, 8 s1.0060.95 to 1.1✓ Pass
mu1FinestOrderExplicitVan der Pol, μ = 1, explicit Euler: observed order from the finest halving1.0010.97 to 1.03✓ Pass
mu1OrderSemiImplicitVan der Pol, μ = 1, semi-implicit Euler: observed order, least-squares over 6 step sizes, 8 s0.99980.95 to 1.1✓ Pass
mu1FinestOrderSemiImplicitVan der Pol, μ = 1, semi-implicit Euler: observed order from the finest halving10.97 to 1.03✓ Pass
mu1OrderRungeKutta4Van der Pol, μ = 1, Runge–Kutta 4: observed order, least-squares over 6 step sizes, 8 s3.9963.9 to 4.1✓ Pass
mu1FinestOrderRungeKutta4Van der Pol, μ = 1, Runge–Kutta 4: observed order from the finest halving4.0133.9 to 4.1✓ Pass
mu1PeriodErrorAdaptiveVan der Pol, μ = 1: limit-cycle period, relative error, Adaptive at relative tolerance 1e-84.18e-9≤ 1.00e-8✓ Pass
mu1AmplitudeErrorAdaptiveVan der Pol, μ = 1: limit-cycle amplitude, relative error, Adaptive at relative tolerance 1e-8 (the sampling's floor)1.81e-7≤ 2.40e-7✓ Pass
mu1ToleranceSlopeAdaptiveVan der Pol, μ = 1, Adaptive: slope of log error against log tolerance over 7 tolerances from 0.0001 to 1e-101.1060.85 to 1.2✓ Pass
mu1ToleranceFactorAdaptiveVan der Pol, μ = 1, Adaptive: largest trajectory error over its relative tolerance13.69≤ 25✓ Pass
mu1ReferenceAgreementVan der Pol, μ = 1: the Radau reference against DOP853 at the same tolerances, relative to each column's magnitude3.90e-12≤ 1.00e-10✓ Pass
mu1ReferencePeriodAgreementVan der Pol, μ = 1: the reference period, Radau against DOP853, relative7.86e-15≤ 1.00e-11✓ Pass
mu10RelativeErrorExplicitVan der Pol, μ = 10: largest error relative to range over 64 s, explicit Euler, h = 2^-10 s0.6893≤ 0.87✓ Pass
mu10PeriodErrorExplicitVan der Pol, μ = 10: limit-cycle period, relative error, explicit Euler, h = 2^-10 s0.01025≤ 0.013✓ Pass
mu10AmplitudeErrorExplicitVan der Pol, μ = 10: limit-cycle amplitude, relative error, explicit Euler, h = 2^-10 s0.003201≤ 0.0041✓ Pass
mu10RelativeErrorSemiImplicitVan der Pol, μ = 10: largest error relative to range over 64 s, semi-implicit Euler, h = 2^-10 s0.6799≤ 0.85✓ Pass
mu10PeriodErrorSemiImplicitVan der Pol, μ = 10: limit-cycle period, relative error, semi-implicit Euler, h = 2^-10 s0.0097≤ 0.013✓ Pass
mu10AmplitudeErrorSemiImplicitVan der Pol, μ = 10: limit-cycle amplitude, relative error, semi-implicit Euler, h = 2^-10 s0.002977≤ 0.0038✓ Pass
mu10RelativeErrorRungeKutta4Van der Pol, μ = 10: largest error relative to range over 64 s, Runge–Kutta 4, h = 2^-8 s2.52e-5≤ 3.20e-5✓ Pass
mu10PeriodErrorRungeKutta4Van der Pol, μ = 10: limit-cycle period, relative error, Runge–Kutta 4, h = 2^-8 s1.04e-7≤ 1.40e-7✓ Pass
mu10AmplitudeErrorRungeKutta4Van der Pol, μ = 10: limit-cycle amplitude, relative error, Runge–Kutta 4, h = 2^-8 s1.14e-6≤ 1.50e-6✓ Pass
mu10OrderExplicitVan der Pol, μ = 10, explicit Euler: observed order, least-squares over 6 step sizes, 12 s1.0360.95 to 1.1✓ Pass
mu10FinestOrderExplicitVan der Pol, μ = 10, explicit Euler: observed order from the finest halving1.010.97 to 1.03✓ Pass
mu10OrderSemiImplicitVan der Pol, μ = 10, semi-implicit Euler: observed order, least-squares over 6 step sizes, 12 s1.0030.95 to 1.1✓ Pass
mu10FinestOrderSemiImplicitVan der Pol, μ = 10, semi-implicit Euler: observed order from the finest halving10.97 to 1.03✓ Pass
mu10OrderRungeKutta4Van der Pol, μ = 10, Runge–Kutta 4: observed order, least-squares over 5 step sizes, 12 s4.0563.9 to 4.1✓ Pass
mu10FinestOrderRungeKutta4Van der Pol, μ = 10, Runge–Kutta 4: observed order from the finest halving4.0193.9 to 4.1✓ Pass
mu10PeriodErrorAdaptiveVan der Pol, μ = 10: limit-cycle period, relative error, Adaptive at relative tolerance 1e-86.65e-9≤ 2.00e-8✓ Pass
mu10AmplitudeErrorAdaptiveVan der Pol, μ = 10: limit-cycle amplitude, relative error, Adaptive at relative tolerance 1e-8 (the sampling's floor)1.11e-6≤ 1.50e-6✓ Pass
mu10ToleranceSlopeAdaptiveVan der Pol, μ = 10, Adaptive: slope of log error against log tolerance over 7 tolerances from 0.0001 to 1e-100.99320.85 to 1.2✓ Pass
mu10ToleranceFactorAdaptiveVan der Pol, μ = 10, Adaptive: largest trajectory error over its relative tolerance17.7≤ 25✓ Pass
mu10ReferenceAgreementVan der Pol, μ = 10: the Radau reference against DOP853 at the same tolerances, relative to each column's magnitude7.33e-11≤ 1.00e-9✓ Pass
mu10ReferencePeriodAgreementVan der Pol, μ = 10: the reference period, Radau against DOP853, relative1.12e-13≤ 1.00e-11✓ Pass
mu1000StepsRodas4Van der Pol, μ = 1000: steps taken over 3200 s at relative tolerance 0.000001, Stiff, Rodas41,043≤ 1,500✓ Pass
mu1000EvaluationRatioRodas4Van der Pol, μ = 1000, Stiff, Rodas4: evaluations with the exact Jacobian over those with finite differences, at relative tolerance 0.0000010.7553≤ 0.85✓ Pass
mu1000ErrorRatioRodas4Van der Pol, μ = 1000, Stiff, Rodas4: error with the exact Jacobian over that with finite differences, at relative tolerance 0.0000011≤ 1.2✓ Pass
mu1000ToleranceSlopeRodas4Van der Pol, μ = 1000: slope of log error against log tolerance, Stiff, Rodas4, over 6 tolerances0.77680.65 to 1.15✓ Pass
mu1000ExplicitStepRatioVan der Pol, μ = 1000: steps Adaptive takes over the first 160 s for each step Stiff takes, at the same tolerance6,415≥ 1,000✓ Pass
mu1000RelativeErrorRodas4Van der Pol, μ = 1000: largest error relative to range over 3200 s, Stiff, Rodas4 (relative tolerance 1e-8), h = 2^-1 s6.16e-6≤ 1.00e-5✓ Pass
mu1000PeriodErrorRodas4Van der Pol, μ = 1000: limit-cycle period, relative error, Stiff, Rodas4 (relative tolerance 1e-8), h = 2^-1 s4.19e-5≤ 1.00e-4✓ Pass
mu1000AmplitudeErrorRodas4Van der Pol, μ = 1000: limit-cycle amplitude, relative error, Stiff, Rodas4 (relative tolerance 1e-8), h = 2^-1 s0.01226≤ 0.015✓ Pass
mu1000RelativeErrorBdfVan der Pol, μ = 1000: largest error relative to range over 3200 s, Stiff, BDF (relative tolerance 1e-8), h = 2^-1 s4.93e-5≤ 1.50e-4✓ Pass
mu1000PeriodErrorBdfVan der Pol, μ = 1000: limit-cycle period, relative error, Stiff, BDF (relative tolerance 1e-8), h = 2^-1 s4.19e-5≤ 1.00e-4✓ Pass
mu1000AmplitudeErrorBdfVan der Pol, μ = 1000: limit-cycle amplitude, relative error, Stiff, BDF (relative tolerance 1e-8), h = 2^-1 s0.01226≤ 0.015✓ Pass
All 88 result rows
CaseMethodh (s)SubstepsHorizon (s)Max abs errorRMSERelative errorObserved orderStepsSubsteps runEvaluationsNote
Van der Pol, μ = 1: trajectoryexplicit Euler9.77e-41400.12920.028040.02413–40,96040,96081,920errors against SciPy Radau over 40 s
Van der Pol, μ = 1: limit cycleexplicit Euler9.77e-41120––9.26e-4–1.23e51.23e52.46e5period 6.668056 s (reference 6.663287 s, error 7.16e-4); amplitude 2.010480 (reference 2.008620, error 9.26e-4)
Van der Pol, μ = 1: trajectorysemi-implicit Euler9.77e-41400.098060.021460.01831–40,96040,96081,920errors against SciPy Radau over 40 s
Van der Pol, μ = 1: limit cyclesemi-implicit Euler9.77e-41120––5.50e-4–1.23e51.23e52.46e5period 6.659625 s (reference 6.663287 s, error 5.50e-4); amplitude 2.007998 (reference 2.008620, error 3.10e-4)
Van der Pol, μ = 1: trajectoryRunge–Kutta 40.015631401.41e-63.11e-72.63e-7–2,5602,56020,480errors against SciPy Radau over 40 s
Van der Pol, μ = 1: limit cycleRunge–Kutta 40.015631120––1.84e-7–7,6807,68061,440period 6.663287 s (reference 6.663287 s, error 1.28e-8); amplitude 2.008620 (reference 2.008620, error 1.84e-7)
Van der Pol, μ = 1: convergenceexplicit Euler0.007813180.13130.030410.02452–1,0241,0242,048
Van der Pol, μ = 1: convergenceexplicit Euler0.003906180.064970.015090.01213–2,0482,0484,096
Van der Pol, μ = 1: convergenceexplicit Euler0.001953180.03230.0075130.006033–4,0964,0968,192
Van der Pol, μ = 1: convergenceexplicit Euler9.77e-4180.01610.0037490.003008–8,1928,19216,380
Van der Pol, μ = 1: convergenceexplicit Euler4.88e-4180.008040.0018730.001502–16,38016,38032,770
Van der Pol, μ = 1: convergenceexplicit Euler2.44e-4180.0040179.36e-47.50e-41.00632,77032,77065,540observed order: fitted 1.006; per halving 1.015, 1.008, 1.004, 1.002, 1.001
Van der Pol, μ = 1: convergencesemi-implicit Euler0.007813180.093110.02250.01739–1,0241,0242,048
Van der Pol, μ = 1: convergencesemi-implicit Euler0.003906180.046580.011240.0087–2,0482,0484,096
Van der Pol, μ = 1: convergencesemi-implicit Euler0.001953180.02330.0056190.004351–4,0964,0968,192
Van der Pol, μ = 1: convergencesemi-implicit Euler9.77e-4180.011650.0028090.002176–8,1928,19216,380
Van der Pol, μ = 1: convergencesemi-implicit Euler4.88e-4180.0058250.0014040.001088–16,38016,38032,770
Van der Pol, μ = 1: convergencesemi-implicit Euler2.44e-4180.0029127.02e-45.44e-40.999832,77032,77065,540observed order: fitted 1.000; per halving 0.999, 1.000, 1.000, 1.000, 1.000
Van der Pol, μ = 1: convergenceRunge–Kutta 40.0625184.47e-51.14e-58.34e-6–1281281,024
Van der Pol, μ = 1: convergenceRunge–Kutta 40.03125182.83e-67.19e-75.28e-7–2562562,048
Van der Pol, μ = 1: convergenceRunge–Kutta 40.01563181.78e-74.50e-83.32e-8–5125124,096
Van der Pol, μ = 1: convergenceRunge–Kutta 40.007813181.11e-82.81e-92.08e-9–1,0241,0248,192
Van der Pol, μ = 1: convergenceRunge–Kutta 40.003906186.96e-101.76e-101.30e-10–2,0482,04816,380
Van der Pol, μ = 1: convergenceRunge–Kutta 40.001953184.31e-111.09e-118.05e-123.9964,0964,09632,770observed order: fitted 3.996; per halving 3.981, 3.992, 3.997, 3.999, 4.013
Van der Pol, μ = 1: trajectory against toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 0.0001)0.51400.0073290.0015140.001369–801912,838error 13.7 times the tolerance; 191 steps, 32 rejected, 1419 evaluations of the model
Van der Pol, μ = 1: limit cycle against toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 0.0001)0.06251120––1.69e-7–1,9201,92326,920period error 1.62e-8, amplitude error 1.69e-7; 1923 steps, 0 rejected, 13459 evaluations of the model
Van der Pol, μ = 1: trajectory against toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 0.00001)0.51404.77e-41.05e-48.91e-5–802753,954error 8.9 times the tolerance; 275 steps, 41 rejected, 1977 evaluations of the model
Van der Pol, μ = 1: limit cycle against toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 0.00001)0.06251120––1.69e-7–1,9201,92426,930period error 1.62e-8, amplitude error 1.69e-7; 1924 steps, 0 rejected, 13465 evaluations of the model
Van der Pol, μ = 1: trajectory against toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 0.000001)0.51402.63e-55.91e-64.91e-6–804195,838error 4.9 times the tolerance; 419 steps, 54 rejected, 2919 evaluations of the model
Van der Pol, μ = 1: limit cycle against toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 0.000001)0.06251120––1.69e-7–1,9202,17230,050period error 1.27e-8, amplitude error 1.69e-7; 2172 steps, 12 rejected, 15025 evaluations of the model
Van der Pol, μ = 1: trajectory against toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 1e-7)0.51402.09e-64.63e-73.91e-7–806118,418error 3.9 times the tolerance; 611 steps, 77 rejected, 4209 evaluations of the model
Van der Pol, μ = 1: limit cycle against toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 1e-7)0.06251120––1.76e-7–1,9203,02440,350period error 7.19e-10, amplitude error 1.76e-7; 3024 steps, 18 rejected, 20173 evaluations of the model
Van der Pol, μ = 1: trajectory against toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 1e-8)0.51401.95e-74.25e-83.63e-8–8094612,470error 3.6 times the tolerance; 946 steps, 80 rejected, 6237 evaluations of the model
Van der Pol, μ = 1: limit cycle against toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 1e-8)0.06251120––1.81e-7–1,9203,67849,410period error 4.18e-9, amplitude error 1.81e-7; 3678 steps, 119 rejected, 24703 evaluations of the model
Van der Pol, μ = 1: trajectory against toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 1e-9)0.51401.79e-83.90e-93.35e-9–801,45018,410error 3.3 times the tolerance; 1450 steps, 71 rejected, 9207 evaluations of the model
Van der Pol, μ = 1: limit cycle against toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 1e-9)0.06251120––1.82e-7–1,9205,52071,130period error 4.89e-9, amplitude error 1.82e-7; 5520 steps, 87 rejected, 35563 evaluations of the model
Van der Pol, μ = 1: trajectory against toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 1e-10)0.51401.61e-93.52e-103.00e-10–802,25627,740error 3.0 times the tolerance; 2256 steps, 42 rejected, 13869 evaluations of the model; error against tolerance: fitted slope 1.106
Van der Pol, μ = 1: limit cycle against toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 1e-10)0.06251120––1.82e-7–1,9207,86499,110period error 4.95e-9, amplitude error 1.82e-7; 7864 steps, 75 rejected, 49555 evaluations of the model
Van der Pol, μ = 10: trajectoryexplicit Euler9.77e-416414.31.2310.6893–65,54065,5401.31e5errors against SciPy Radau over 64 s
Van der Pol, μ = 10: limit cycleexplicit Euler9.77e-41200––0.01025–2.05e52.05e54.10e5period 19.273896 s (reference 19.078370 s, error 1.02e-2); amplitude 2.020732 (reference 2.014285, error 3.20e-3)
Van der Pol, μ = 10: trajectorysemi-implicit Euler9.77e-416414.241.2080.6799–65,54065,5401.31e5errors against SciPy Radau over 64 s
Van der Pol, μ = 10: limit cyclesemi-implicit Euler9.77e-41200––0.0097–2.05e52.05e54.10e5period 18.893313 s (reference 19.078370 s, error 9.70e-3); amplitude 2.008290 (reference 2.014285, error 2.98e-3)
Van der Pol, μ = 10: trajectoryRunge–Kutta 40.0039061647.13e-42.92e-52.52e-5–16,38016,3801.31e5errors against SciPy Radau over 64 s
Van der Pol, μ = 10: limit cycleRunge–Kutta 40.0039061200––1.14e-6–51,20051,2004.10e5period 19.078372 s (reference 19.078370 s, error 1.04e-7); amplitude 2.014288 (reference 2.014285, error 1.14e-6)
Van der Pol, μ = 10: convergenceexplicit Euler0.0078131124.5460.26050.3189–1,5361,5363,072
Van der Pol, μ = 10: convergenceexplicit Euler0.0039061122.1970.12970.1541–3,0723,0726,144
Van der Pol, μ = 10: convergenceexplicit Euler0.0019531121.0530.064530.07387–6,1446,14412,290
Van der Pol, μ = 10: convergenceexplicit Euler9.77e-41120.51340.032160.03601–12,29012,29024,580
Van der Pol, μ = 10: convergenceexplicit Euler4.88e-41120.25320.016050.01776–24,58024,58049,150
Van der Pol, μ = 10: convergenceexplicit Euler2.44e-41120.12570.0080170.0088191.03649,15049,15098,300observed order: fitted 1.036; per halving 1.049, 1.061, 1.037, 1.020, 1.010
Van der Pol, μ = 10: convergencesemi-implicit Euler0.0078131120.79320.054450.05563–1,5361,5363,072
Van der Pol, μ = 10: convergencesemi-implicit Euler0.0039061120.39420.027250.02765–3,0723,0726,144
Van der Pol, μ = 10: convergencesemi-implicit Euler0.0019531120.19650.013630.01379–6,1446,14412,290
Van der Pol, μ = 10: convergencesemi-implicit Euler9.77e-41120.098150.0068190.006884–12,29012,29024,580
Van der Pol, μ = 10: convergencesemi-implicit Euler4.88e-41120.049040.003410.00344–24,58024,58049,150
Van der Pol, μ = 10: convergencesemi-implicit Euler2.44e-41120.024510.0017050.0017191.00349,15049,15098,300observed order: fitted 1.003; per halving 1.009, 1.004, 1.002, 1.001, 1.000
Van der Pol, μ = 10: convergenceRunge–Kutta 40.015631126.75e-44.73e-54.74e-5–7687686,144
Van der Pol, μ = 10: convergenceRunge–Kutta 40.0078131123.76e-52.78e-62.64e-6–1,5361,53612,290
Van der Pol, μ = 10: convergenceRunge–Kutta 40.0039061122.25e-61.69e-71.58e-7–3,0723,07224,580
Van der Pol, μ = 10: convergenceRunge–Kutta 40.0019531121.41e-71.04e-89.86e-9–6,1446,14449,150
Van der Pol, μ = 10: convergenceRunge–Kutta 49.77e-41128.67e-96.38e-106.08e-104.05612,29012,29098,300observed order: fitted 4.056; per halving 4.165, 4.063, 4.002, 4.019
Van der Pol, μ = 10: trajectory against toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 0.0001)0.51640.016620.0012570.001391–1286308,454error 13.9 times the tolerance; 630 steps, 53 rejected, 4227 evaluations of the model
Van der Pol, μ = 10: limit cycle against toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 0.0001)0.031251200––2.08e-5–6,4006,65892,910period error 2.08e-5, amplitude error 7.99e-6; 6658 steps, 18 rejected, 46457 evaluations of the model
Van der Pol, μ = 10: trajectory against toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 0.00001)0.51640.0015151.42e-41.27e-4–12884911,070error 12.7 times the tolerance; 849 steps, 52 rejected, 5535 evaluations of the model
Van der Pol, μ = 10: limit cycle against toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 0.00001)0.031251200––2.41e-6–6,4006,93996,550period error 2.41e-6, amplitude error 1.53e-6; 6939 steps, 40 rejected, 48275 evaluations of the model
Van der Pol, μ = 10: trajectory against toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 0.000001)0.51641.17e-41.43e-59.83e-6–1281,22315,550error 9.8 times the tolerance; 1223 steps, 51 rejected, 7773 evaluations of the model
Van der Pol, μ = 10: limit cycle against toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 0.000001)0.031251200––1.07e-6–6,4007,4541.03e5period error 5.77e-8, amplitude error 1.07e-6; 7454 steps, 57 rejected, 51467 evaluations of the model
Van der Pol, μ = 10: trajectory against toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 1e-7)0.51641.92e-52.36e-61.61e-6–1281,83622,780error 16.1 times the tolerance; 1836 steps, 41 rejected, 11391 evaluations of the model
Van der Pol, μ = 10: limit cycle against toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 1e-7)0.031251200––1.10e-6–6,4008,2211.12e5period error 1.43e-8, amplitude error 1.10e-6; 8221 steps, 41 rejected, 55973 evaluations of the model
Van der Pol, μ = 10: trajectory against toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 1e-8)0.51642.11e-62.46e-71.77e-7–1282,78533,890error 17.7 times the tolerance; 2785 steps, 18 rejected, 16947 evaluations of the model
Van der Pol, μ = 10: limit cycle against toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 1e-8)0.031251200––1.11e-6–6,40015,1001.94e5period error 6.65e-9, amplitude error 1.11e-6; 15102 steps, 36 rejected, 97229 evaluations of the model
Van der Pol, μ = 10: trajectory against toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 1e-9)0.51641.50e-71.87e-81.25e-8–1284,31652,280error 12.5 times the tolerance; 4316 steps, 19 rejected, 26139 evaluations of the model
Van der Pol, μ = 10: limit cycle against toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 1e-9)0.031251200––1.11e-6–6,40017,0402.18e5period error 8.63e-9, amplitude error 1.11e-6; 17036 steps, 32 rejected, 108809 evaluations of the model
Van der Pol, μ = 10: trajectory against toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 1e-10)0.51641.60e-81.98e-91.34e-9–1286,72381,100error 13.4 times the tolerance; 6723 steps, 14 rejected, 40551 evaluations of the model; error against tolerance: fitted slope 0.993
Van der Pol, μ = 10: limit cycle against toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 1e-10)0.031251200––1.11e-6–6,40025,7903.23e5period error 8.86e-9, amplitude error 1.11e-6; 25788 steps, 41 rejected, 161375 evaluations of the model
Van der Pol, μ = 1000: toleranceStiff, Rodas4 (relative tolerance 0.0001)1613,2003.60e-43.45e-50.001955–2004755,932475 steps, 23 rejected, 2966 evaluations of the model, 475 Jacobians
Van der Pol, μ = 1000: toleranceStiff, Rodas4 (relative tolerance 0.00001)1613,2009.80e-59.62e-67.81e-4–2006768,404676 steps, 29 rejected, 4202 evaluations of the model, 676 Jacobians
Van der Pol, μ = 1000: toleranceStiff, Rodas4 (relative tolerance 0.000001)1613,2001.46e-51.47e-61.14e-4–2001,04312,8801043 steps, 36 rejected, 6439 evaluations of the model, 1043 Jacobians
Van der Pol, μ = 1000: the exact Jacobian against finite differencesStiff, Rodas4 (relative tolerance 0.000001, finite-difference Jacobian)1613,2001.46e-51.47e-61.14e-4–2001,04317,0501043 steps and 8525 evaluations, against 1043 and 6439 with the exact Jacobian, whose error is 1.14e-4
Van der Pol, μ = 1000: toleranceStiff, Rodas4 (relative tolerance 1e-7)1613,2002.36e-62.47e-71.87e-5–2001,73121,0201731 steps, 25 rejected, 10512 evaluations of the model, 1731 Jacobians
Van der Pol, μ = 1000: toleranceStiff, Rodas4 (relative tolerance 1e-8)1613,2003.28e-73.57e-82.48e-6–2003,08737,1603087 steps, 11 rejected, 18578 evaluations of the model, 3087 Jacobians
Van der Pol, μ = 1000: toleranceStiff, Rodas4 (relative tolerance 1e-9)1613,2004.01e-84.52e-93.23e-7–2005,81669,9005816 steps, 11 rejected, 34952 evaluations of the model, 5816 Jacobians
Van der Pol, μ = 1000: first 160 sStiff, Rodas4 (relative tolerance 0.000001)1611602.21e-108.02e-111.97e-9–102128421 steps, 3 rejected, 142 evaluations of the model
Van der Pol, μ = 1000: first 160 sAdaptive, Dormand–Prince 5(4) (relative tolerance 0.000001)1611604.93e-72.27e-76.69e-4–101.35e51.62e6134716 steps, 8 rejected, 808355 evaluations of the model
Van der Pol, μ = 1000: trajectoryStiff, Rodas4 (relative tolerance 1e-8)0.513,2001.46e-61.29e-86.16e-6–6,4009,0171.08e5errors against SciPy Radau over 3200 s
Van der Pol, μ = 1000: limit cycleStiff, Rodas4 (relative tolerance 1e-8)0.518,000––0.01226–16,00023,8002.86e5period 1614.333559 s (reference 1614.401126 s, error 4.19e-5); amplitude 1.975558 (reference 2.000073, error 1.23e-2)
Van der Pol, μ = 1000: trajectoryStiff, BDF (relative tolerance 1e-8)0.513,2001.17e-51.04e-74.93e-5–6,40011,26067,590errors against SciPy Radau over 3200 s
Van der Pol, μ = 1000: limit cycleStiff, BDF (relative tolerance 1e-8)0.518,000––0.01226–16,00030,3001.83e5period 1614.333559 s (reference 1614.401126 s, error 4.19e-5); amplitude 1.975559 (reference 2.000073, error 1.23e-2)

Robertson chemical kinetics

Robertson's stiff kinetics from A = 1 to 1e11 s, as one node and as two, under Stiff (Rodas4), Rodas5P and BDF with an absolute tolerance per species: the concentrations at Hairer and Wanner's checkpoints against a SciPy Radau reference, the total A + B + C kept at 1, no concentration below zero, the steps it takes, the two-node model against the one-node model, and Adaptive over the first 40 s beside it.

Directory benchmarks/chemistry/robertson/ · models oneNode.kjt, twoNodes.kjt · numerical reference reference.json: solve_ivp Radau with the exact Jacobian; BDF as a check; the IVP test set's published values at 1e11 (SciPy 1.13.1, NumPy 2.0.2, rtol 1e-12)

Robertson: concentrations against timeAt the checkpoints, 0.4 s to 1e11 s; B multiplied by 1e4 to share the axis
  • SciPy Radau, A
  • SciPy Radau, 1e4 B
  • SciPy Radau, C
  • Konjugate, Stiff, Rodas4 (relative tolerance 1e-8), A
  • Konjugate, Stiff, Rodas4 (relative tolerance 1e-8), 1e4 B
  • Konjugate, Stiff, Rodas4 (relative tolerance 1e-8), C
00.20.40.60.8111001e41e61e81e10Time (s)Concentration (mol/L)
Data table
Time (s)SciPy Radau, ASciPy Radau, 1e4 BSciPy Radau, CKonjugate, Stiff, Rodas4 (relative tolerance 1e-8), AKonjugate, Stiff, Rodas4 (relative tolerance 1e-8), 1e4 BKonjugate, Stiff, Rodas4 (relative tolerance 1e-8), C
0.40.98520.33860.014790.98520.33860.01479
40.90550.2240.094460.90550.2240.09446
400.71580.091860.28420.71580.091860.2842
4000.45050.032230.54950.45050.032230.5495
4,0000.18320.0089420.81680.18320.0089420.8168
40,0000.038980.0016220.9610.038980.0016220.961
4.00e50.0049381.98e-40.99510.0049381.98e-40.9951
4.00e65.17e-42.07e-50.99955.17e-42.07e-50.9995
4.00e75.20e-52.08e-60.99995.20e-52.08e-60.9999
4.00e85.21e-62.08e-715.21e-62.08e-71
4.00e95.21e-72.08e-815.21e-72.08e-81
1.00e112.08e-88.33e-1012.08e-88.33e-101

Checks

CheckWhat it measuresValueThresholdResult
relativeErrorAOneNodeRobertson, one node, Stiff: largest relative error of A at the checkpoints 0.4 s to 1e11 s4.80e-7≤ 2.00e-6✓ Pass
relativeErrorBOneNodeRobertson, one node, Stiff: largest relative error of B at the checkpoints 0.4 s to 1e11 s4.80e-7≤ 2.00e-6✓ Pass
relativeErrorCOneNodeRobertson, one node, Stiff: largest relative error of C at the checkpoints 0.4 s to 1e11 s1.12e-9≤ 1.00e-8✓ Pass
conservationOneNodeRobertson, one node, Stiff: largest |A + B + C - 1| at the checkpoints and every 1e9 s to 1e11 s3.55e-15≤ 1.00e-13✓ Pass
lowestConcentrationOneNodeRobertson, one node, Stiff: the lowest concentration reached (negative would be unphysical)0≥ -1.00e-18✓ Pass
stepsOneNodeRobertson, one node, Stiff: steps taken from 0 to 1e11 s1,311≤ 2,000✓ Pass
relativeErrorATwoNodesRobertson, two nodes, Stiff: largest relative error of A at the checkpoints 0.4 s to 1e11 s4.80e-7≤ 2.00e-6✓ Pass
relativeErrorBTwoNodesRobertson, two nodes, Stiff: largest relative error of B at the checkpoints 0.4 s to 1e11 s4.80e-7≤ 2.00e-6✓ Pass
relativeErrorCTwoNodesRobertson, two nodes, Stiff: largest relative error of C at the checkpoints 0.4 s to 1e11 s1.12e-9≤ 1.00e-8✓ Pass
conservationTwoNodesRobertson, two nodes, Stiff: largest |A + B + C - 1| at the checkpoints and every 1e9 s to 1e11 s3.11e-15≤ 1.00e-13✓ Pass
lowestConcentrationTwoNodesRobertson, two nodes, Stiff: the lowest concentration reached (negative would be unphysical)0≥ -1.00e-18✓ Pass
stepsTwoNodesRobertson, two nodes, Stiff: steps taken from 0 to 1e11 s1,311≤ 2,000✓ Pass
relativeErrorAOneNodeBdfRobertson, one node, BDF: largest relative error of A at the checkpoints 0.4 s to 1e11 s7.40e-7≤ 2.00e-6✓ Pass
relativeErrorBOneNodeBdfRobertson, one node, BDF: largest relative error of B at the checkpoints 0.4 s to 1e11 s7.40e-7≤ 2.00e-6✓ Pass
relativeErrorCOneNodeBdfRobertson, one node, BDF: largest relative error of C at the checkpoints 0.4 s to 1e11 s1.05e-9≤ 1.00e-8✓ Pass
conservationOneNodeBdfRobertson, one node, BDF: largest |A + B + C - 1| at the checkpoints and every 1e9 s to 1e11 s8.88e-16≤ 1.00e-13✓ Pass
lowestConcentrationOneNodeBdfRobertson, one node, BDF: the lowest concentration reached (negative would be unphysical)0≥ -1.00e-18✓ Pass
stepsOneNodeBdfRobertson, one node, BDF: steps taken from 0 to 1e11 s2,754≤ 3,500✓ Pass
relativeErrorATwoNodesBdfRobertson, two nodes, BDF: largest relative error of A at the checkpoints 0.4 s to 1e11 s6.99e-7≤ 2.00e-6✓ Pass
relativeErrorBTwoNodesBdfRobertson, two nodes, BDF: largest relative error of B at the checkpoints 0.4 s to 1e11 s6.99e-7≤ 2.00e-6✓ Pass
relativeErrorCTwoNodesBdfRobertson, two nodes, BDF: largest relative error of C at the checkpoints 0.4 s to 1e11 s1.05e-9≤ 1.00e-8✓ Pass
conservationTwoNodesBdfRobertson, two nodes, BDF: largest |A + B + C - 1| at the checkpoints and every 1e9 s to 1e11 s2.66e-15≤ 1.00e-13✓ Pass
lowestConcentrationTwoNodesBdfRobertson, two nodes, BDF: the lowest concentration reached (negative would be unphysical)0≥ -1.00e-18✓ Pass
stepsTwoNodesBdfRobertson, two nodes, BDF: steps taken from 0 to 1e11 s2,754≤ 3,500✓ Pass
relativeErrorAOneNodeRodas5pRobertson, one node, Rodas5P: largest relative error of A at the checkpoints 0.4 s to 1e11 s8.24e-7≤ 2.00e-6✓ Pass
relativeErrorBOneNodeRodas5pRobertson, one node, Rodas5P: largest relative error of B at the checkpoints 0.4 s to 1e11 s8.24e-7≤ 2.00e-6✓ Pass
relativeErrorCOneNodeRodas5pRobertson, one node, Rodas5P: largest relative error of C at the checkpoints 0.4 s to 1e11 s1.85e-9≤ 1.00e-8✓ Pass
conservationOneNodeRodas5pRobertson, one node, Rodas5P: largest |A + B + C - 1| at the checkpoints and every 1e9 s to 1e11 s1.78e-15≤ 1.00e-13✓ Pass
lowestConcentrationOneNodeRodas5pRobertson, one node, Rodas5P: the lowest concentration reached (negative would be unphysical)0≥ -1.00e-18✓ Pass
stepsOneNodeRodas5pRobertson, one node, Rodas5P: steps taken from 0 to 1e11 s611≤ 1,000✓ Pass
relativeErrorATwoNodesRodas5pRobertson, two nodes, Rodas5P: largest relative error of A at the checkpoints 0.4 s to 1e11 s8.24e-7≤ 2.00e-6✓ Pass
relativeErrorBTwoNodesRodas5pRobertson, two nodes, Rodas5P: largest relative error of B at the checkpoints 0.4 s to 1e11 s8.24e-7≤ 2.00e-6✓ Pass
relativeErrorCTwoNodesRodas5pRobertson, two nodes, Rodas5P: largest relative error of C at the checkpoints 0.4 s to 1e11 s1.85e-9≤ 1.00e-8✓ Pass
conservationTwoNodesRodas5pRobertson, two nodes, Rodas5P: largest |A + B + C - 1| at the checkpoints and every 1e9 s to 1e11 s2.44e-15≤ 1.00e-13✓ Pass
lowestConcentrationTwoNodesRodas5pRobertson, two nodes, Rodas5P: the lowest concentration reached (negative would be unphysical)0≥ -1.00e-18✓ Pass
stepsTwoNodesRodas5pRobertson, two nodes, Rodas5P: steps taken from 0 to 1e11 s611≤ 1,000✓ Pass
evaluationRatioRodas4Robertson, one node, Stiff: evaluations of the model to 1e11 s with the exact Jacobian over those with finite differences0.6642≤ 0.75✓ Pass
errorRatioRodas4Robertson, one node, Stiff: the largest error at the checkpoints with the exact Jacobian over that with finite differences0.9454≤ 1.2✓ Pass
evaluationRatioBdfRobertson, one node, BDF: evaluations of the model to 1e11 s with the exact Jacobian over those with finite differences0.9887≤ 1✓ Pass
errorRatioBdfRobertson, one node, BDF: the largest error at the checkpoints with the exact Jacobian over that with finite differences1.058≤ 1.2✓ Pass
stepRatioRodas5pRobertson, one node: steps Rodas4 takes to 1e11 s for each step Rodas5P takes, at the same tolerance2.146≥ 1.8✓ Pass
splitDifferenceRobertson, Stiff: the two-node model against the one-node model at every checkpoint, relative to the reference, largest over species4.91e-11≤ 1.00e-6✓ Pass
splitDifferenceBdfRobertson, BDF: the two-node model against the one-node model at every checkpoint, relative to the reference, largest over species4.08e-8≤ 1.00e-6✓ Pass
explicitStepRatioRobertson: steps Adaptive takes over the first 40 s for each step Stiff takes, at the same tolerances317.4≥ 100✓ Pass
referenceAgreementThe Radau reference against BDF at the same tolerances, relative, worst species and checkpoint8.57e-11≤ 1.00e-9✓ Pass
testSetAgreementThe Radau reference at 1e11 against the IVP test set's published values, relative, worst species6.49e-13≤ 1.00e-10✓ Pass
All 76 result rows
CaseMethodh (s)SubstepsHorizon (s)Relative errorConservation errorStepsSubsteps runEvaluationsNote
Robertson, one node: t = 4.0e-1 sStiff, Rodas4 (relative tolerance 1e-8)0.410.48.56e-102.22e-1511662,991A 0.9851721139, B 0.00003386395376, C 0.01479402219; 166 steps, 0 rejected
Robertson, one node: t = 4.0e+0 sStiff, Rodas4 (relative tolerance 1e-8)4146.60e-102.22e-1513105,583A 0.9055186786, B 0.00002240475686, C 0.09445891666; 310 steps, 0 rejected
Robertson, one node: t = 4.0e+1 sStiff, Rodas4 (relative tolerance 1e-8)401401.51e-92.44e-1514347,815A 0.7158270684, B 0.000009185534751, C 0.2841637461; 434 steps, 0 rejected
Robertson, one node: t = 4.0e+2 sStiff, Rodas4 (relative tolerance 1e-8)40014002.27e-91.78e-1515179,309A 0.4505186679, B 0.000003222901434, C 0.5494781092; 517 steps, 0 rejected
Robertson, one node: t = 4.0e+3 sStiff, Rodas4 (relative tolerance 1e-8)4,00014,0001.54e-92.66e-15161411,060A 0.1832022575, B 8.942371239e-7, C 0.8167968482; 614 steps, 0 rejected
Robertson, one node: t = 4.0e+4 sStiff, Rodas4 (relative tolerance 1e-8)40,000140,0005.40e-102.66e-15172713,090A 0.03898337707, B 1.621768315e-7, C 0.9610164608; 727 steps, 0 rejected
Robertson, one node: t = 4.0e+5 sStiff, Rodas4 (relative tolerance 1e-8)4.00e514.00e53.28e-102.66e-15185215,340A 0.004938274523, B 1.984994089e-8, C 0.9950617056; 852 steps, 0 rejected
Robertson, one node: t = 4.0e+6 sStiff, Rodas4 (relative tolerance 1e-8)4.00e614.00e66.52e-103.55e-15198117,660A 0.0005168096018, B 2.068294493e-9, C 0.9994831883; 981 steps, 0 rejected
Robertson, one node: t = 4.0e+7 sStiff, Rodas4 (relative tolerance 1e-8)4.00e714.00e79.80e-103.11e-1511,10419,880A 0.00005203071849, B 2.081335734e-10, C 0.9999479691; 1104 steps, 0 rejected
Robertson, one node: t = 4.0e+8 sStiff, Rodas4 (relative tolerance 1e-8)4.00e814.00e83.02e-91.78e-1511,20221,640A 0.000005207702119, B 2.083091566e-11, C 0.9999947923; 1202 steps, 0 rejected
Robertson, one node: t = 4.0e+9 sStiff, Rodas4 (relative tolerance 1e-8)4.00e914.00e92.21e-82.22e-1511,26522,770A 5.208276727e-7, B 2.083311763e-12, C 0.9999994792; 1265 steps, 0 rejected
Robertson, one node: t = 1.0e+11 sStiff, Rodas4 (relative tolerance 1e-8)1.00e1111.00e114.80e-73.11e-1511,31123,600A 2.083341151e-8, B 8.333364774e-14, C 0.9999999792; 1311 steps, 0 rejected
Robertson, two nodes: t = 4.0e-1 sStiff, Rodas4 (relative tolerance 1e-8)0.410.48.56e-102.22e-1513323,988A 0.9851721139, B 0.00003386395376, C 0.01479402219; 166 steps, 0 rejected
Robertson, two nodes: t = 4.0e+0 sStiff, Rodas4 (relative tolerance 1e-8)4146.60e-102.00e-1516207,444A 0.9055186786, B 0.00002240475686, C 0.09445891666; 310 steps, 0 rejected
Robertson, two nodes: t = 4.0e+1 sStiff, Rodas4 (relative tolerance 1e-8)401401.51e-92.22e-15186810,420A 0.7158270684, B 0.000009185534751, C 0.2841637461; 434 steps, 0 rejected
Robertson, two nodes: t = 4.0e+2 sStiff, Rodas4 (relative tolerance 1e-8)40014002.27e-92.00e-1511,03412,410A 0.4505186679, B 0.000003222901434, C 0.5494781092; 517 steps, 0 rejected
Robertson, two nodes: t = 4.0e+3 sStiff, Rodas4 (relative tolerance 1e-8)4,00014,0001.54e-91.78e-1511,22814,740A 0.1832022575, B 8.942371239e-7, C 0.8167968482; 614 steps, 0 rejected
Robertson, two nodes: t = 4.0e+4 sStiff, Rodas4 (relative tolerance 1e-8)40,000140,0005.40e-101.33e-1511,45417,450A 0.03898337707, B 1.621768315e-7, C 0.9610164608; 727 steps, 0 rejected
Robertson, two nodes: t = 4.0e+5 sStiff, Rodas4 (relative tolerance 1e-8)4.00e514.00e53.28e-101.11e-1511,70420,450A 0.004938274523, B 1.984994089e-8, C 0.9950617056; 852 steps, 0 rejected
Robertson, two nodes: t = 4.0e+6 sStiff, Rodas4 (relative tolerance 1e-8)4.00e614.00e66.52e-101.55e-1511,96223,550A 0.0005168096018, B 2.068294493e-9, C 0.9994831883; 981 steps, 0 rejected
Robertson, two nodes: t = 4.0e+7 sStiff, Rodas4 (relative tolerance 1e-8)4.00e714.00e79.80e-101.78e-1512,20826,500A 0.00005203071849, B 2.081335734e-10, C 0.9999479691; 1104 steps, 0 rejected
Robertson, two nodes: t = 4.0e+8 sStiff, Rodas4 (relative tolerance 1e-8)4.00e814.00e83.02e-92.00e-1512,40428,850A 0.000005207702119, B 2.083091566e-11, C 0.9999947923; 1202 steps, 0 rejected
Robertson, two nodes: t = 4.0e+9 sStiff, Rodas4 (relative tolerance 1e-8)4.00e914.00e92.21e-81.33e-1512,53030,360A 5.208276727e-7, B 2.083311763e-12, C 0.9999994792; 1265 steps, 0 rejected
Robertson, two nodes: t = 1.0e+11 sStiff, Rodas4 (relative tolerance 1e-8)1.00e1111.00e114.80e-71.33e-1512,62231,470A 2.083341151e-8, B 8.333364774e-14, C 0.9999999792; 1311 steps, 0 rejected
Robertson, one node: t = 4.0e-1 sStiff, BDF (relative tolerance 1e-8)0.410.43.25e-102.22e-1613322,898A 0.9851721139, B 0.00003386395379, C 0.01479402218; 332 steps, 2 rejected
Robertson, one node: t = 4.0e+0 sStiff, BDF (relative tolerance 1e-8)4141.05e-9014173,684A 0.9055186787, B 0.00002240475689, C 0.09445891656; 417 steps, 2 rejected
Robertson, one node: t = 4.0e+1 sStiff, BDF (relative tolerance 1e-8)401409.44e-106.66e-1616055,691A 0.7158270689, B 0.000009185534773, C 0.2841637455; 605 steps, 2 rejected
Robertson, one node: t = 4.0e+2 sStiff, BDF (relative tolerance 1e-8)40014001.12e-91.11e-1618228,022A 0.4505186688, B 0.000003222901445, C 0.5494781083; 822 steps, 2 rejected
Robertson, one node: t = 4.0e+3 sStiff, BDF (relative tolerance 1e-8)4,00014,0001.79e-91.11e-1611,04810,420A 0.1832022580, B 8.942371269e-7, C 0.8167968477; 1048 steps, 2 rejected
Robertson, one node: t = 4.0e+4 sStiff, BDF (relative tolerance 1e-8)40,000140,0002.77e-98.88e-1611,29913,000A 0.03898337719, B 1.621768320e-7, C 0.9610164606; 1299 steps, 2 rejected
Robertson, one node: t = 4.0e+5 sStiff, BDF (relative tolerance 1e-8)4.00e514.00e53.30e-92.22e-1611,58916,310A 0.004938274537, B 1.984994095e-8, C 0.9950617056; 1589 steps, 2 rejected
Robertson, one node: t = 4.0e+6 sStiff, BDF (relative tolerance 1e-8)4.00e614.00e63.65e-96.66e-1611,87619,060A 0.0005168096034, B 2.068294499e-9, C 0.9994831883; 1876 steps, 2 rejected
Robertson, one node: t = 4.0e+7 sStiff, BDF (relative tolerance 1e-8)4.00e714.00e74.87e-9012,15521,690A 0.00005203071869, B 2.081335742e-10, C 0.9999479691; 2155 steps, 2 rejected
Robertson, one node: t = 4.0e+8 sStiff, BDF (relative tolerance 1e-8)4.00e814.00e81.12e-8012,39924,040A 0.000005207702162, B 2.083091583e-11, C 0.9999947923; 2399 steps, 2 rejected
Robertson, one node: t = 4.0e+9 sStiff, BDF (relative tolerance 1e-8)4.00e914.00e95.04e-81.11e-1612,58425,890A 5.208276874e-7, B 2.083311822e-12, C 0.9999994792; 2584 steps, 2 rejected
Robertson, one node: t = 1.0e+11 sStiff, BDF (relative tolerance 1e-8)1.00e1111.00e117.40e-74.44e-1612,75427,560A 2.083341690e-8, B 8.333366933e-14, C 0.9999999792; 2754 steps, 2 rejected
Robertson, two nodes: t = 4.0e-1 sStiff, BDF (relative tolerance 1e-8)0.410.43.25e-102.22e-1616643,864A 0.9851721139, B 0.00003386395379, C 0.01479402218; 332 steps, 2 rejected
Robertson, two nodes: t = 4.0e+0 sStiff, BDF (relative tolerance 1e-8)4141.05e-9018344,912A 0.9055186787, B 0.00002240475689, C 0.09445891656; 417 steps, 2 rejected
Robertson, two nodes: t = 4.0e+1 sStiff, BDF (relative tolerance 1e-8)401409.44e-102.22e-1611,2107,588A 0.7158270689, B 0.000009185534773, C 0.2841637455; 605 steps, 2 rejected
Robertson, two nodes: t = 4.0e+2 sStiff, BDF (relative tolerance 1e-8)40014001.12e-9011,64410,700A 0.4505186688, B 0.000003222901445, C 0.5494781083; 822 steps, 2 rejected
Robertson, two nodes: t = 4.0e+3 sStiff, BDF (relative tolerance 1e-8)4,00014,0001.79e-9012,09613,890A 0.1832022580, B 8.942371269e-7, C 0.8167968477; 1048 steps, 2 rejected
Robertson, two nodes: t = 4.0e+4 sStiff, BDF (relative tolerance 1e-8)40,000140,0002.82e-98.88e-1612,59617,320A 0.03898337719, B 1.621768320e-7, C 0.9610164606; 1298 steps, 2 rejected
Robertson, two nodes: t = 4.0e+5 sStiff, BDF (relative tolerance 1e-8)4.00e514.00e53.40e-91.55e-1513,17621,730A 0.004938274538, B 1.984994095e-8, C 0.9950617056; 1588 steps, 2 rejected
Robertson, two nodes: t = 4.0e+6 sStiff, BDF (relative tolerance 1e-8)4.00e614.00e63.63e-92.66e-1513,75225,400A 0.0005168096034, B 2.068294499e-9, C 0.9994831883; 1876 steps, 2 rejected
Robertson, two nodes: t = 4.0e+7 sStiff, BDF (relative tolerance 1e-8)4.00e714.00e74.82e-92.00e-1514,31028,900A 0.00005203071869, B 2.081335742e-10, C 0.9999479691; 2155 steps, 2 rejected
Robertson, two nodes: t = 4.0e+8 sStiff, BDF (relative tolerance 1e-8)4.00e814.00e81.14e-82.00e-1514,79632,040A 0.000005207702163, B 2.083091583e-11, C 0.9999947923; 2398 steps, 2 rejected
Robertson, two nodes: t = 4.0e+9 sStiff, BDF (relative tolerance 1e-8)4.00e914.00e95.10e-81.33e-1515,16634,510A 5.208276877e-7, B 2.083311823e-12, C 0.9999994792; 2583 steps, 2 rejected
Robertson, two nodes: t = 1.0e+11 sStiff, BDF (relative tolerance 1e-8)1.00e1111.00e116.99e-71.11e-1515,50836,720A 2.083341605e-8, B 8.333366593e-14, C 0.9999999792; 2754 steps, 2 rejected
Robertson, one node: t = 4.0e-1 sStiff, Rodas5P (relative tolerance 1e-8)0.410.43.19e-104.44e-161671,674A 0.9851721139, B 0.00003386395378, C 0.01479402219; 67 steps, 3 rejected
Robertson, one node: t = 4.0e+0 sStiff, Rodas5P (relative tolerance 1e-8)4141.61e-92.22e-1611032,538A 0.9055186786, B 0.00002240475691, C 0.09445891666; 103 steps, 3 rejected
Robertson, one node: t = 4.0e+1 sStiff, Rodas5P (relative tolerance 1e-8)401401.85e-94.44e-1611513,690A 0.7158270682, B 0.000009185534752, C 0.2841637463; 151 steps, 3 rejected
Robertson, one node: t = 4.0e+2 sStiff, Rodas5P (relative tolerance 1e-8)40014001.26e-91.33e-1512024,914A 0.4505186681, B 0.000003222901438, C 0.5494781090; 202 steps, 3 rejected
Robertson, one node: t = 4.0e+3 sStiff, Rodas5P (relative tolerance 1e-8)4,00014,0006.80e-91.11e-1512455,946A 0.1832022568, B 8.942371192e-7, C 0.8167968490; 245 steps, 3 rejected
Robertson, one node: t = 4.0e+4 sStiff, Rodas5P (relative tolerance 1e-8)40,000140,0005.36e-91.33e-1512947,122A 0.03898337688, B 1.621768307e-7, C 0.9610164609; 294 steps, 3 rejected
Robertson, one node: t = 4.0e+5 sStiff, Rodas5P (relative tolerance 1e-8)4.00e514.00e53.28e-91.55e-1513558,586A 0.004938274505, B 1.984994081e-8, C 0.9950617056; 355 steps, 3 rejected
Robertson, one node: t = 4.0e+6 sStiff, Rodas5P (relative tolerance 1e-8)4.00e614.00e62.91e-91.55e-15142110,170A 0.0005168096000, B 2.068294485e-9, C 0.9994831883; 421 steps, 3 rejected
Robertson, one node: t = 4.0e+7 sStiff, Rodas5P (relative tolerance 1e-8)4.00e714.00e73.79e-91.78e-15148511,710A 0.00005203071824, B 2.081335724e-10, C 0.9999479691; 485 steps, 3 rejected
Robertson, one node: t = 4.0e+8 sStiff, Rodas5P (relative tolerance 1e-8)4.00e814.00e81.03e-84.44e-16153913,000A 0.000005207702050, B 2.083091538e-11, C 0.9999947923; 539 steps, 3 rejected
Robertson, one node: t = 4.0e+9 sStiff, Rodas5P (relative tolerance 1e-8)4.00e914.00e96.23e-86.66e-16157813,940A 5.208276287e-7, B 2.083311587e-12, C 0.9999994792; 578 steps, 3 rejected
Robertson, one node: t = 1.0e+11 sStiff, Rodas5P (relative tolerance 1e-8)1.00e1111.00e118.24e-78.88e-16161114,730A 2.083338432e-8, B 8.333353901e-14, C 0.9999999792; 611 steps, 3 rejected
Robertson, two nodes: t = 4.0e-1 sStiff, Rodas5P (relative tolerance 1e-8)0.410.43.19e-102.22e-1611342,232A 0.9851721139, B 0.00003386395378, C 0.01479402219; 67 steps, 3 rejected
Robertson, two nodes: t = 4.0e+0 sStiff, Rodas5P (relative tolerance 1e-8)4141.61e-92.22e-1612063,384A 0.9055186786, B 0.00002240475691, C 0.09445891666; 103 steps, 3 rejected
Robertson, two nodes: t = 4.0e+1 sStiff, Rodas5P (relative tolerance 1e-8)401401.85e-92.22e-1613024,920A 0.7158270682, B 0.000009185534752, C 0.2841637463; 151 steps, 3 rejected
Robertson, two nodes: t = 4.0e+2 sStiff, Rodas5P (relative tolerance 1e-8)40014001.26e-98.88e-1614046,552A 0.4505186681, B 0.000003222901438, C 0.5494781090; 202 steps, 3 rejected
Robertson, two nodes: t = 4.0e+3 sStiff, Rodas5P (relative tolerance 1e-8)4,00014,0006.80e-98.88e-1614907,928A 0.1832022568, B 8.942371192e-7, C 0.8167968490; 245 steps, 3 rejected
Robertson, two nodes: t = 4.0e+4 sStiff, Rodas5P (relative tolerance 1e-8)40,000140,0005.36e-96.66e-1615889,496A 0.03898337688, B 1.621768307e-7, C 0.9610164609; 294 steps, 3 rejected
Robertson, two nodes: t = 4.0e+5 sStiff, Rodas5P (relative tolerance 1e-8)4.00e514.00e53.28e-92.22e-16171011,450A 0.004938274505, B 1.984994081e-8, C 0.9950617056; 355 steps, 3 rejected
Robertson, two nodes: t = 4.0e+6 sStiff, Rodas5P (relative tolerance 1e-8)4.00e614.00e62.91e-94.44e-16184213,560A 0.0005168096000, B 2.068294485e-9, C 0.9994831883; 421 steps, 3 rejected
Robertson, two nodes: t = 4.0e+7 sStiff, Rodas5P (relative tolerance 1e-8)4.00e714.00e73.79e-98.88e-16197015,610A 0.00005203071824, B 2.081335724e-10, C 0.9999479691; 485 steps, 3 rejected
Robertson, two nodes: t = 4.0e+8 sStiff, Rodas5P (relative tolerance 1e-8)4.00e814.00e81.03e-84.44e-1611,07817,340A 0.000005207702050, B 2.083091538e-11, C 0.9999947923; 539 steps, 3 rejected
Robertson, two nodes: t = 4.0e+9 sStiff, Rodas5P (relative tolerance 1e-8)4.00e914.00e96.23e-85.55e-1611,15618,580A 5.208276287e-7, B 2.083311587e-12, C 0.9999994792; 578 steps, 3 rejected
Robertson, two nodes: t = 1.0e+11 sStiff, Rodas5P (relative tolerance 1e-8)1.00e1111.00e118.24e-73.33e-1611,22219,640A 2.083338432e-8, B 8.333353901e-14, C 0.9999999792; 611 steps, 3 rejected
Robertson, one node: the exact Jacobian against finite differencesStiff, Rodas4 (relative tolerance 1e-8, finite-difference Jacobian)–1–5.08e-7–11,31635,5401,316 steps and 11,845 evaluations to 1e11 s, against 1,311 and 7,867 with the exact Jacobian, whose largest error is 4.80e-7
Robertson, one node: the exact Jacobian against finite differencesStiff, BDF (relative tolerance 1e-8, finite-difference Jacobian)–1–6.99e-7–12,75427,8702,754 steps and 9,291 evaluations to 1e11 s, against 2,754 and 9,186 with the exact Jacobian, whose largest error is 7.40e-7
Robertson, one node: first 40 sStiff, Rodas4 (relative tolerance 0.000001)40140––11091,980109 steps, 1 rejected, 660 evaluations of the model
Robertson, one node: first 40 sAdaptive, Dormand–Prince 5(4) (relative tolerance 0.000001)40140––134,6006.23e534595 steps, 1 rejected, 207578 evaluations of the model

Lorenz system

The Lorenz system (σ = 10, ρ = 28, β = 8/3) from (1, 1, 1), as one node and as two: trajectory error against a 70-digit Taylor reference and the predictability horizon of each method and step, and of Adaptive against its tolerance with the work it took, then what survives chaos: the attractor's statistics and the largest Lyapunov exponent against a SciPy ensemble, for explicit and semi-implicit Euler, Runge–Kutta 4 and Adaptive.

Directory benchmarks/chaos/lorenz/ · models oneNode.kjt, twoNodes.kjt, tangent.kjt · numerical reference reference.json: Taylor series in multiple precision (mpmath): order 40, step 1/256 s, 70 digits; checked against order 30, step 1/128 s, 50 digits. Statistics: an ensemble solved by solve_ivp DOP853 at rtol = atol = 1e-10; the Lyapunov exponent by Benettin's method. (SciPy 1.13.1, NumPy 2.0.2)

Lorenz: x against timeThe Taylor reference against Konjugate over 24 s: each method follows it, then loses it
  • Taylor reference (70 digits)
  • Konjugate, explicit Euler, h = 2^-12 s
  • Konjugate, semi-implicit Euler, h = 2^-12 s
  • Konjugate, Runge–Kutta 4, h = 2^-7 s
-20-1001020010203040Time (s)x
Data table (every 65th point; all 2561 are in plots/lorenzTrajectory.csv)
Taylor reference (70 digits): Time (s)xKonjugate, explicit Euler, h = 2^-12 s: Time (s)xKonjugate, semi-implicit Euler, h = 2^-12 s: Time (s)xKonjugate, Runge–Kutta 4, h = 2^-7 s: Time (s)x
01010101
1.016-9.2071.016-9.1531.016-9.1991.016-9.207
2.031-8.6222.031-8.6432.031-8.6322.031-8.622
3.047-6.9933.047-7.0563.047-6.9883.047-6.993
4.063-10.24.063-10.114.063-10.194.063-10.2
5.078-7.2985.078-7.4045.078-7.3145.078-7.298
6.094-7.5936.094-7.5056.094-7.5566.094-7.593
7.109-10.227.109-10.327.109-10.257.109-10.22
8.125-5.5218.125-5.5038.125-5.4938.125-5.521
9.141-11.119.141-11.069.141-11.139.141-11.11
10.16-5.69210.16-5.58110.16-5.62110.16-5.692
11.17-8.94211.17-9.23811.17-9.09311.17-8.942
12.19-4.40212.19-3.27512.19-4.01912.19-4.402
13.2-14.7913.2-9.36613.2-15.0713.2-14.79
14.229.74114.223.80514.222.82914.229.735
15.23-5.315.23-1.63715.23-0.984815.23-5.299
16.25-11.3616.2511.5816.2512.2816.25-11.37
17.270.44717.27-13.4417.272.50117.270.4462
18.28-1.20518.282.68118.28-3.09118.28-1.159
19.313.1219.35.12919.3-14.0919.313.09
20.311.97720.31-6.45420.31-2.48720.312.069
21.33-0.967621.33-0.927821.33-0.19421.33-0.06526
22.3412.6522.3411.1122.348.17622.347.103
23.362.92223.363.74923.365.21923.366.974
24.3810.33––––––
25.39-15.82––––––
26.412.636––––––
27.427.267––––––
28.44-6.572––––––
29.451.252––––––
30.4710.44––––––
31.485.799––––––
32.51.689––––––
33.523.936––––––
34.53-9.139––––––
35.550.08416––––––
36.56-6.442––––––
37.58-7.63––––––
38.59-0.8328––––––
39.619.679––––––
Lorenz: error against timeLargest error relative to range at each sample; the guide is e^(λt), λ = 0.906 /s; an error stops growing at the attractor's size
  • Konjugate, explicit Euler, h = 2^-12 s
  • Konjugate, semi-implicit Euler, h = 2^-12 s
  • Konjugate, Runge–Kutta 4, h = 2^-7 s
  • SciPy DOP853, rtol 1e-12
  • e^(λt) guide
1e-161e-131e-101e-71e-41e-110203040Time (s)Relative error
Data table (every 64th point; all 2560 are in plots/lorenzErrorGrowth.csv)
Konjugate, explicit Euler, h = 2^-12 s: Time (s)Relative errorKonjugate, semi-implicit Euler, h = 2^-12 s: Time (s)Relative errorKonjugate, Runge–Kutta 4, h = 2^-7 s: Time (s)Relative errorSciPy DOP853, rtol 1e-12: Time (s)Relative errore^(λt) guide: Time (s)Relative error
0.015631.18e-50.015631.15e-50.015632.27e-80.015633.31e-140.015631.01e-16
1.0160.0035421.0162.93e-41.0164.37e-71.0168.73e-141.0162.51e-16
2.0160.0036762.0164.65e-42.0167.63e-72.0161.51e-132.0166.21e-16
3.0160.0023493.0166.36e-43.0168.73e-73.0162.25e-133.0161.54e-15
4.0160.0029774.0169.79e-44.0161.27e-64.0163.77e-134.0163.80e-15
5.0160.0026865.0166.61e-45.0161.33e-65.0162.92e-135.0169.40e-15
6.0160.0034676.0160.0011626.0162.13e-66.0166.16e-136.0162.33e-14
7.0160.0037837.0160.0010457.0162.64e-67.0165.45e-137.0165.76e-14
8.0160.0054198.0160.0013378.0164.42e-68.0168.01e-138.0161.42e-13
9.0160.0057439.0160.0011959.0168.65e-69.0164.52e-139.0163.52e-13
10.020.00454710.020.00155610.026.00e-610.026.86e-1310.028.72e-13
11.020.0133311.020.00633111.021.82e-511.021.88e-1211.022.16e-12
12.020.0157912.020.005712.021.14e-512.021.81e-1212.025.34e-12
13.020.148613.020.0458313.023.01e-513.021.58e-1113.021.32e-11
14.020.432614.020.407314.021.95e-414.022.29e-1014.023.27e-11
15.020.153715.020.0637315.024.13e-515.025.60e-1115.028.08e-11
16.020.316416.020.347516.021.52e-416.021.44e-1016.022.00e-10
17.020.648317.020.783517.020.00132117.021.29e-917.024.95e-10
18.020.232118.020.379318.022.71e-418.022.78e-1018.021.22e-9
19.020.10719.020.217319.020.00326619.023.25e-919.023.03e-9
20.020.592820.020.646620.020.00208420.021.99e-920.027.50e-9
21.020.227321.020.184521.020.00803421.028.69e-921.021.85e-8
22.020.059822.020.236522.020.458522.028.87e-822.024.59e-8
23.020.385323.020.264723.020.227123.027.02e-823.021.14e-7
––––––24.027.27e-824.022.81e-7
––––––25.025.34e-725.026.95e-7
––––––26.021.23e-626.021.72e-6
––––––27.021.05e-627.024.25e-6
––––––28.026.27e-628.021.05e-5
––––––29.021.01e-429.022.60e-5
––––––30.025.12e-530.026.44e-5
––––––31.029.24e-531.021.59e-4
––––––32.027.52e-432.023.94e-4
––––––33.023.94e-433.029.76e-4
––––––34.020.00383534.020.002415
––––––35.020.0072735.020.005975
––––––36.020.19536.020.01478
––––––37.020.0569637.020.03658
––––––38.020.0929338.020.0905
––––––39.020.388539.020.2239
Lorenz: predictability horizon against step sizeThe first time the error exceeds 1 % of a state's range; the DOP853 reference at 1e-12 reaches 33.64 s
  • Konjugate, explicit Euler
  • Konjugate, Runge–Kutta 4
01020302⁻⁶2⁻⁷2⁻⁸2⁻⁹2⁻¹⁰2⁻¹¹2⁻¹²2⁻¹³Global step h (s)Predictability horizon (s)
Data table
Konjugate, explicit Euler: Global step h (s)Predictability horizon (s)Konjugate, Runge–Kutta 4: Global step h (s)Predictability horizon (s)
9.77e-40.28130.0156314
4.88e-45.7810.00781318.52
2.44e-410.860.00390621.59
1.22e-411.550.00195325.2
––9.77e-427.48
Lorenz: error against step sizeLargest error relative to range over the first 2 s
  • Konjugate, explicit Euler
  • Konjugate, semi-implicit Euler
  • Konjugate, Runge–Kutta 4
1e-101e-81e-61e-41e-22⁻⁶2⁻⁷2⁻⁸2⁻⁹2⁻¹⁰2⁻¹¹2⁻¹²2⁻¹³Global step h (s)Relative error
Data table
Konjugate, explicit Euler: Global step h (s)Relative errorKonjugate, semi-implicit Euler: Global step h (s)Relative errorKonjugate, Runge–Kutta 4: Global step h (s)Relative error
0.0039060.078970.0039060.031920.015631.22e-4
0.0019530.034030.0019530.015980.0078137.45e-6
9.77e-40.016059.77e-40.0079960.0039064.55e-7
4.88e-40.0079744.88e-40.0039990.0019532.82e-8
2.44e-40.003982.44e-40.0029.77e-41.76e-9
1.22e-40.0019891.22e-41.00e-34.88e-41.10e-10
Lorenz: Adaptive's predictability horizon against its toleranceThe first time the error exceeds 1 % of a state's range; each point's model evaluations in the results table
10152025301e-41e-51e-61e-71e-81e-91e-101e-11Relative tolerancePredictability horizon (s)
Data table
Relative toleranceKonjugate, Adaptive, Dormand–Prince 5(4)
1.00e-412.38
1.00e-514
1.00e-617
1.00e-718.5
1.00e-821.5
1.00e-924.38
1.00e-1027.38
1.00e-1129
Lorenz: Adaptive's work against its horizonEvaluations of the whole model against the predictability horizon reached
1e42e45e41e5152025Predictability horizon (s)Evaluations of the model
Data table
Predictability horizon (s)Konjugate, Adaptive, Dormand–Prince 5(4)
12.386,267
148,889
1712,690
18.518,780
21.528,110
24.3843,280
27.3868,130
291.07e5

Checks

CheckWhat it measuresValueThresholdResult
shortRelativeErrorExplicitLargest error relative to range over the first 8 s, one node, explicit Euler, h = 2^-12 s0.007295≤ 0.0092✓ Pass
horizonExplicitPredictability horizon (s): the first time the error exceeds 1 % of a state's range, one node, explicit Euler, h = 2^-12 s10.869.7 to 12✓ Pass
shortRelativeErrorSemiImplicitLargest error relative to range over the first 8 s, one node, semi-implicit Euler, h = 2^-12 s0.002≤ 0.0026✓ Pass
horizonSemiImplicitPredictability horizon (s): the first time the error exceeds 1 % of a state's range, one node, semi-implicit Euler, h = 2^-12 s11.5910 to 13✓ Pass
shortRelativeErrorRungeKutta4Largest error relative to range over the first 8 s, one node, Runge–Kutta 4, h = 2^-7 s7.07e-6≤ 8.90e-6✓ Pass
horizonRungeKutta4Predictability horizon (s): the first time the error exceeds 1 % of a state's range, one node, Runge–Kutta 4, h = 2^-7 s18.5216 to 21✓ Pass
referenceDop853HorizonSciPy DOP853 at rtol = atol = 1e-12 against the Taylor reference: its own predictability horizon (s), at the same 1 %33.6430 to 38✓ Pass
referenceTaylorSelfAgreementThe Taylor reference against itself at a lower order and precision, largest difference over 40 s: its own error5.98e-30≤ 1.00e-20✓ Pass
horizonExplicitStep1Predictability horizon (s) at h = 2^-10 s, run to 16 s, explicit Euler0.28130.25 to 0.31✓ Pass
horizonExplicitStep2Predictability horizon (s) at h = 2^-11 s, run to 16 s, explicit Euler5.7815.2 to 6.4✓ Pass
horizonExplicitStep3Predictability horizon (s) at h = 2^-12 s, run to 16 s, explicit Euler10.869.7 to 12✓ Pass
horizonExplicitStep4Predictability horizon (s) at h = 2^-13 s, run to 16 s, explicit Euler11.5510 to 13✓ Pass
horizonRungeKutta4Step1Predictability horizon (s) at h = 2^-6 s, run to 32 s, Runge–Kutta 41412 to 16✓ Pass
horizonRungeKutta4Step2Predictability horizon (s) at h = 2^-7 s, run to 32 s, Runge–Kutta 418.5216 to 21✓ Pass
horizonRungeKutta4Step3Predictability horizon (s) at h = 2^-8 s, run to 32 s, Runge–Kutta 421.5919 to 24✓ Pass
horizonRungeKutta4Step4Predictability horizon (s) at h = 2^-9 s, run to 32 s, Runge–Kutta 425.222 to 28✓ Pass
horizonRungeKutta4Step5Predictability horizon (s) at h = 2^-10 s, run to 32 s, Runge–Kutta 427.4824 to 31✓ Pass
horizonGainPerHalvingRungeKutta4Horizon gained per halving of the step, least-squares, as a fraction of p ln 2 / λ (3.06 s for order 4), Runge–Kutta 41.10.8 to 1.3✓ Pass
orderExplicitObserved order over 6 step sizes, 2 s, explicit Euler1.0530.95 to 1.1✓ Pass
finestOrderExplicitObserved order from the finest halving, explicit Euler1.0010.97 to 1.03✓ Pass
orderSemiImplicitObserved order over 6 step sizes, 2 s, semi-implicit Euler0.99940.95 to 1.1✓ Pass
finestOrderSemiImplicitObserved order from the finest halving, semi-implicit Euler0.99990.97 to 1.03✓ Pass
orderRungeKutta4Observed order over 6 step sizes, 2 s, Runge–Kutta 44.0173.9 to 4.1✓ Pass
finestOrderRungeKutta4Observed order from the finest halving, Runge–Kutta 44.0013.9 to 4.1✓ Pass
splitDifferenceExplicitTwo nodes against one, explicit Euler: the same steps, summed in another order, largest difference relative to range over the first 8 s3.80e-15≤ 1.00e-12✓ Pass
splitDifferenceSemiImplicitTwo nodes against one, semi-implicit Euler: x is no longer updated before y and z, a first-order difference, relative to range over the first 8 s0.0044350.0035 to 0.0056✓ Pass
splitDifferenceRungeKutta4Two nodes against one, Runge–Kutta 4: the same steps, summed in another order, largest difference relative to range over the first 8 s1.14e-15≤ 1.00e-12✓ Pass
meanZScoreExplicitMean of z over 500 s after 20 s: |Konjugate - reference| in units of the scatter of one run that long, explicit Euler, h = 2^-9 s6.5175.2 to 8.2✓ Pass
standardDeviationZScoreExplicitStandard deviation of z over 500 s after 20 s: |Konjugate - reference| in units of the scatter of one run that long, explicit Euler, h = 2^-9 s1.9951.5 to 2.5✓ Pass
rmsXScoreExplicitRoot mean square of x over 500 s after 20 s: |Konjugate - reference| in units of the scatter of one run that long, explicit Euler, h = 2^-9 s7.9626.3 to 10✓ Pass
lyapunovExponentScoreExplicitLargest Lyapunov exponent over 500 s after 20 s: |Konjugate - reference| in units of the scatter of one run that long, explicit Euler, h = 2^-9 s3.9153.1 to 4.9✓ Pass
meanZScoreSemiImplicitMean of z over 500 s after 20 s: |Konjugate - reference| in units of the scatter of one run that long, semi-implicit Euler, h = 2^-9 s1.1070.88 to 1.4✓ Pass
standardDeviationZScoreSemiImplicitStandard deviation of z over 500 s after 20 s: |Konjugate - reference| in units of the scatter of one run that long, semi-implicit Euler, h = 2^-9 s0.20480.16 to 0.26✓ Pass
rmsXScoreSemiImplicitRoot mean square of x over 500 s after 20 s: |Konjugate - reference| in units of the scatter of one run that long, semi-implicit Euler, h = 2^-9 s2.7812.2 to 3.5✓ Pass
lyapunovExponentScoreSemiImplicitLargest Lyapunov exponent over 500 s after 20 s: |Konjugate - reference| in units of the scatter of one run that long, semi-implicit Euler, h = 2^-9 s2.532 to 3.2✓ Pass
meanZScoreRungeKutta4CoarseMean of z over 500 s after 20 s: |Konjugate - reference| in units of the scatter of one run that long, Runge–Kutta 4, h = 2^-7 s2.1161.6 to 2.7✓ Pass
standardDeviationZScoreRungeKutta4CoarseStandard deviation of z over 500 s after 20 s: |Konjugate - reference| in units of the scatter of one run that long, Runge–Kutta 4, h = 2^-7 s2.1651.7 to 2.8✓ Pass
rmsXScoreRungeKutta4CoarseRoot mean square of x over 500 s after 20 s: |Konjugate - reference| in units of the scatter of one run that long, Runge–Kutta 4, h = 2^-7 s2.0431.6 to 2.6✓ Pass
lyapunovExponentScoreRungeKutta4CoarseLargest Lyapunov exponent over 500 s after 20 s: |Konjugate - reference| in units of the scatter of one run that long, Runge–Kutta 4, h = 2^-7 s2.3591.8 to 3✓ Pass
meanZScoreRungeKutta4Mean of z over 500 s after 20 s: |Konjugate - reference| in units of the scatter of one run that long, Runge–Kutta 4, h = 2^-8 s0.4966≤ 3✓ Pass
standardDeviationZScoreRungeKutta4Standard deviation of z over 500 s after 20 s: |Konjugate - reference| in units of the scatter of one run that long, Runge–Kutta 4, h = 2^-8 s0.4142≤ 3✓ Pass
rmsXScoreRungeKutta4Root mean square of x over 500 s after 20 s: |Konjugate - reference| in units of the scatter of one run that long, Runge–Kutta 4, h = 2^-8 s0.369≤ 3✓ Pass
lyapunovExponentScoreRungeKutta4Largest Lyapunov exponent over 500 s after 20 s: |Konjugate - reference| in units of the scatter of one run that long, Runge–Kutta 4, h = 2^-8 s0.3158≤ 3✓ Pass
horizonAdaptiveTolerance1Predictability horizon (s) at relative tolerance 0.0001, run to 40 s, Adaptive, Dormand–Prince 5(4) (relative tolerance 0.0001)12.3810.9 to 13.9✓ Pass
horizonAdaptiveTolerance2Predictability horizon (s) at relative tolerance 0.00001, run to 40 s, Adaptive, Dormand–Prince 5(4) (relative tolerance 0.00001)1412.3 to 15.7✓ Pass
horizonAdaptiveTolerance3Predictability horizon (s) at relative tolerance 0.000001, run to 40 s, Adaptive, Dormand–Prince 5(4) (relative tolerance 0.000001)1715 to 19✓ Pass
horizonAdaptiveTolerance4Predictability horizon (s) at relative tolerance 1e-7, run to 40 s, Adaptive, Dormand–Prince 5(4) (relative tolerance 1e-7)18.516.3 to 20.7✓ Pass
horizonAdaptiveTolerance5Predictability horizon (s) at relative tolerance 1e-8, run to 40 s, Adaptive, Dormand–Prince 5(4) (relative tolerance 1e-8)21.518.9 to 24.1✓ Pass
horizonAdaptiveTolerance6Predictability horizon (s) at relative tolerance 1e-9, run to 40 s, Adaptive, Dormand–Prince 5(4) (relative tolerance 1e-9)24.3821.4 to 27.3✓ Pass
horizonAdaptiveTolerance7Predictability horizon (s) at relative tolerance 1e-10, run to 40 s, Adaptive, Dormand–Prince 5(4) (relative tolerance 1e-10)27.3824.1 to 30.7✓ Pass
horizonAdaptiveTolerance8Predictability horizon (s) at relative tolerance 1e-11, run to 40 s, Adaptive, Dormand–Prince 5(4) (relative tolerance 1e-11)2925.5 to 32.5✓ Pass
horizonGainPerDecadeAdaptiveHorizon gained per decade of tolerance, least-squares, as a fraction of ln 10 / λ (2.54 s), Adaptive0.9760.75 to 1.2✓ Pass
splitDifferenceAdaptiveTwo nodes against one under Adaptive at relative tolerance 1e-8: the same steps (the error summed node by node), largest difference relative to range over the first 8 s7.30e-15≤ 1.00e-12✓ Pass
meanZScoreAdaptiveMean of z over 500 s after 20 s: |Konjugate - reference| in units of the scatter of one run that long, Adaptive, Dormand–Prince 5(4) (relative tolerance 1e-8)1.571≤ 3✓ Pass
standardDeviationZScoreAdaptiveStandard deviation of z over 500 s after 20 s: |Konjugate - reference| in units of the scatter of one run that long, Adaptive, Dormand–Prince 5(4) (relative tolerance 1e-8)1.55≤ 3✓ Pass
rmsXScoreAdaptiveRoot mean square of x over 500 s after 20 s: |Konjugate - reference| in units of the scatter of one run that long, Adaptive, Dormand–Prince 5(4) (relative tolerance 1e-8)1.593≤ 3✓ Pass
lyapunovExponentScoreAdaptiveLargest Lyapunov exponent over 500 s after 20 s: |Konjugate - reference| in units of the scatter of one run that long, Adaptive, Dormand–Prince 5(4) (relative tolerance 1e-8)1.57≤ 3✓ Pass
referenceLyapunovAgainstLiteratureThe reference ensemble's mean Lyapunov exponent against Viswanath's 0.9056, in units of the ensemble mean's standard error0.616≤ 3✓ Pass
All 41 result rows
CaseMethodh (s)SubstepsHorizon (s)Max abs errorRMSERelative errorObserved orderStepsSubsteps runEvaluationsNote
Lorenz, one node: first 8 sexplicit Euler2.44e-4180.34090.1150.007295–98,30098,3002.95e5errors against the Taylor reference; predictability horizon (error first above 1 % of a state's range) 10.86 s
Lorenz, one node: first 8 ssemi-implicit Euler2.44e-4180.093460.029550.002–98,30098,3002.95e5errors against the Taylor reference; predictability horizon (error first above 1 % of a state's range) 11.59 s
Lorenz, one node: first 8 sRunge–Kutta 40.007813182.80e-46.75e-57.07e-6–3,0723,07236,860errors against the Taylor reference; predictability horizon (error first above 1 % of a state's range) 18.52 s
Lorenz, one node: predictability horizon against stepexplicit Euler1.22e-4116–––––––horizons 0.28, 5.78, 10.86, 11.55 s at h = 2^-10, 2^-11, 2^-12, 2^-13 s; least-squares gain per halving 3.89 s (p ln 2 / λ = 0.77 s)
Lorenz, one node: predictability horizon against stepRunge–Kutta 49.77e-4132–––––––horizons 14.00, 18.52, 21.59, 25.20, 27.48 s at h = 2^-6, 2^-7, 2^-8, 2^-9, 2^-10 s; least-squares gain per halving 3.37 s (p ln 2 / λ = 3.06 s)
Lorenz, one node: convergenceexplicit Euler0.003906123.691.7410.07897–5125121,536
Lorenz, one node: convergenceexplicit Euler0.001953121.590.78790.03403–1,0241,0243,072
Lorenz, one node: convergenceexplicit Euler9.77e-4120.74990.37770.01605–2,0482,0486,144
Lorenz, one node: convergenceexplicit Euler4.88e-4120.37260.18530.007974–4,0964,09612,290
Lorenz, one node: convergenceexplicit Euler2.44e-4120.1860.091780.00398–8,1928,19224,580
Lorenz, one node: convergenceexplicit Euler1.22e-4120.092920.045680.0019891.05316,38016,38049,150observed order: fitted 1.053; per halving 1.215, 1.084, 1.009, 1.002, 1.001
Lorenz, one node: convergencesemi-implicit Euler0.003906121.4920.27180.03192–5125121,536
Lorenz, one node: convergencesemi-implicit Euler0.001953120.74680.13570.01598–1,0241,0243,072
Lorenz, one node: convergencesemi-implicit Euler9.77e-4120.37360.067790.007996–2,0482,0486,144
Lorenz, one node: convergencesemi-implicit Euler4.88e-4120.18690.033880.003999–4,0964,09612,290
Lorenz, one node: convergencesemi-implicit Euler2.44e-4120.093450.016940.002–8,1928,19224,580
Lorenz, one node: convergencesemi-implicit Euler1.22e-4120.046730.0084691.00e-30.999416,38016,38049,150observed order: fitted 0.999; per halving 0.998, 0.999, 1.000, 1.000, 1.000
Lorenz, one node: convergenceRunge–Kutta 40.01563120.004618.49e-41.22e-4–1281281,536
Lorenz, one node: convergenceRunge–Kutta 40.007813122.80e-44.37e-57.45e-6–2562563,072
Lorenz, one node: convergenceRunge–Kutta 40.003906121.71e-52.63e-64.55e-7–5125126,144
Lorenz, one node: convergenceRunge–Kutta 40.001953121.06e-61.65e-72.82e-8–1,0241,02412,290
Lorenz, one node: convergenceRunge–Kutta 49.77e-4126.62e-81.04e-81.76e-9–2,0482,04824,580
Lorenz, one node: convergenceRunge–Kutta 44.88e-4124.14e-96.51e-101.10e-104.0174,0964,09649,150observed order: fitted 4.017; per halving 4.040, 4.033, 4.011, 4.002, 4.001
Lorenz, two nodes: first 8 sexplicit Euler2.44e-4180.34090.1150.007295–98,3001.97e55.90e5difference from the one-node model over the first 8 s, relative to range: 3.80e-15; predictability horizon 10.86 s
Lorenz, two nodes: first 8 ssemi-implicit Euler2.44e-4180.14330.041630.003615–98,3001.97e55.90e5difference from the one-node model over the first 8 s, relative to range: 4.44e-3; predictability horizon 10.23 s
Lorenz, two nodes: first 8 sRunge–Kutta 40.007813182.80e-46.75e-57.07e-6–3,0726,14473,730difference from the one-node model over the first 8 s, relative to range: 1.14e-15; predictability horizon 18.52 s
Lorenz, one node: attractor statistics over 500 sexplicit Euler0.0019531520––––2.66e52.66e51.60e6mean of z 23.7989 (reference 23.5501 ± 0.0382, +6.52 σ); standard deviation of z 8.5471 (reference 8.6222 ± 0.0377, -2.00 σ); root mean square of x 7.9780 (reference 7.9246 ± 0.0067, +7.96 σ); largest Lyapunov exponent 0.9342 (reference 0.9059 ± 0.0072, +3.91 σ)
Lorenz, one node: attractor statistics over 500 ssemi-implicit Euler0.0019531520––––2.66e52.66e51.60e6mean of z 23.5924 (reference 23.5501 ± 0.0382, +1.11 σ); standard deviation of z 8.6145 (reference 8.6222 ± 0.0377, -0.20 σ); root mean square of x 7.9432 (reference 7.9246 ± 0.0067, +2.78 σ); largest Lyapunov exponent 0.9242 (reference 0.9059 ± 0.0072, +2.53 σ)
Lorenz, one node: attractor statistics over 500 sRunge–Kutta 40.0078131520––––66,56066,5601.60e6mean of z 23.4693 (reference 23.5501 ± 0.0382, -2.12 σ); standard deviation of z 8.7038 (reference 8.6222 ± 0.0377, +2.16 σ); root mean square of x 7.9109 (reference 7.9246 ± 0.0067, -2.04 σ); largest Lyapunov exponent 0.9229 (reference 0.9059 ± 0.0072, +2.36 σ)
Lorenz, one node: attractor statistics over 500 sRunge–Kutta 40.0039061520––––1.33e51.33e53.19e6mean of z 23.5691 (reference 23.5501 ± 0.0382, +0.50 σ); standard deviation of z 8.6066 (reference 8.6222 ± 0.0377, -0.41 σ); root mean square of x 7.9270 (reference 7.9246 ± 0.0067, +0.37 σ); largest Lyapunov exponent 0.9036 (reference 0.9059 ± 0.0072, -0.32 σ)
Lorenz, one node: predictability horizon against toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 0.0001)0.125140––––32092618,800horizon 12.38 s; 926 steps, 65 rejected, 6267 evaluations of the model
Lorenz, one node: predictability horizon against toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 0.00001)0.125140––––3201,34726,670horizon 14.00 s; 1347 steps, 81 rejected, 8889 evaluations of the model
Lorenz, one node: predictability horizon against toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 0.000001)0.125140––––3201,98938,060horizon 17.00 s; 1989 steps, 72 rejected, 12687 evaluations of the model
Lorenz, one node: predictability horizon against toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 1e-7)0.125140––––3203,01156,330horizon 18.50 s; 3011 steps, 65 rejected, 18777 evaluations of the model
Lorenz, one node: predictability horizon against toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 1e-8)0.125140––––3204,59484,320horizon 21.50 s; 4594 steps, 37 rejected, 28107 evaluations of the model
Lorenz, one node: predictability horizon against toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 1e-9)0.125140––––3207,1281.30e5horizon 24.38 s; 7128 steps, 32 rejected, 43281 evaluations of the model
Lorenz, one node: predictability horizon against toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 1e-10)0.125140––––32011,2502.04e5horizon 27.38 s; 11249 steps, 52 rejected, 68127 evaluations of the model
Lorenz, one node: predictability horizon against toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 1e-11)0.125140––––32017,7503.21e5horizon 29.00 s; 17750 steps, 54 rejected, 107145 evaluations of the model
Lorenz, one node: horizon gained per decade of toleranceAdaptive, Dormand–Prince 5(4)–1––––––––least-squares gain 2.48 s per decade (ln 10 / λ = 2.54 s)
Lorenz, two nodes: first 8 sAdaptive, Dormand–Prince 5(4) (relative tolerance 1e-8)0.0156318––––1,5367,0501.36e5difference from the one-node model over the first 8 s, relative to range: 7.30e-15
Lorenz, one node: attractor statistics over 500 sAdaptive, Dormand–Prince 5(4) (relative tolerance 1e-8)0.06251520––––8,32083,5003.16e6mean of z 23.4902 (-1.57 σ); standard deviation of z 8.6807 (+1.55 σ); root mean square of x 7.9139 (-1.59 σ); largest Lyapunov exponent 0.9172 (+1.57 σ); 83496 steps, 2993 rejected

Double pendulum

A double pendulum released from rest with both arms horizontal, one node: trajectory error and predictability horizon against a SciPy DOP853 reference, energy over a long run (explicit and semi-implicit Euler against Runge–Kutta 4), sensitivity to a 1e-9 rad change in the starting angle, and the observed order; and Adaptive's horizon and energy drift against its tolerance, with the work it took.

Directory benchmarks/mechanical/doublePendulum/ · models doublePendulum.kjt, perturbed.kjt · numerical reference reference.json: solve_ivp DOP853 at rtol = atol = 1e-13; its own error estimated against 1e-12 (SciPy 1.13.1, NumPy 2.0.2, rtol 1e-13)

Double pendulum: lower angleθ2 from rest with both arms at 2 rad, the reference against Konjugate over 20 s
  • SciPy DOP853 reference
  • Konjugate, explicit Euler, h = 2^-11 s
  • Konjugate, semi-implicit Euler, h = 2^-11 s
  • Konjugate, Runge–Kutta 4, h = 2^-8 s
-40-2002005101520Time (s)θ2 (rad)
Data table (every 33th point; all 1281 are in plots/doublePendulumAngle.csv)
Time (s)SciPy DOP853 referenceKonjugate, explicit Euler, h = 2^-11 sKonjugate, semi-implicit Euler, h = 2^-11 sKonjugate, Runge–Kutta 4, h = 2^-8 s
02222
0.51561.7171.7181.7171.717
1.031-1.011-1.017-1.01-1.011
1.547-1.548-1.534-1.546-1.548
2.063-1.919-1.852-1.918-1.919
2.5780.62920.54880.6390.6292
3.0941.2141.2591.2131.214
3.6091.0071.2170.99351.007
4.1250.80780.95030.81940.8078
4.641-2.129-2.166-2.152-2.129
5.156-4.957-3.243-4.947-4.957
5.672-7.955-3.16-7.943-7.955
6.188-6.461-3.728-6.601-6.461
6.703-5.537-5.436-5.633-5.537
7.219-5.285-7.547-6.26-5.285
7.734-7.997-8.687-6.312-7.997
8.25-10.79-8.926-9.584-10.79
8.766-13.54-4.748-13.04-13.54
9.281-12.89-2.044-17.14-12.89
9.797-10.19-0.1559-21.54-10.19
10.31-12.521.681-22.08-12.52
10.83-14.96-1.799-21.22-14.96
11.34-13.01-5.458-17.03-13
11.86-11.88-9.665-17.04-11.88
12.38-12.48-13.73-18.56-12.43
12.89-12.49-12.89-19.3-12.61
13.41-15.98-10.88-22.55-16.18
13.92-19.72-8.634-25.82-19.99
14.44-23.34-4.438-27.25-23.32
14.95-26.63-5.477-27.85-26.21
15.47-25.1-8.079-31.03-25.47
15.98-23.9-6.68-35.44-25.19
16.5-23.57-3.016-38.57-24.83
17.02-26.171.748-38.63-23.94
17.53-28.096.181-35.59-27.36
18.05-30.9610.07-37.18-30.8
18.56-31.9914.09-39.92-34.08
19.08-33.1112.99-37.6-36.83
19.59-33.149.908-35.28-37.61
Double pendulum: sensitivity to the starting angleLargest angle difference between runs started 1e-9 rad apart, and a method's own error, against time
  • SciPy DOP853: separation of the two starts
  • Konjugate, explicit Euler: separation of the two starts
  • Konjugate, semi-implicit Euler: separation of the two starts
  • Konjugate, Runge–Kutta 4: separation of the two starts
  • Konjugate, Runge–Kutta 4: its error against the reference
1e-131e-101e-71e-41e-15101520Time (s)Angle difference (rad)
Data table (every 32th point; all 1280 are in plots/doublePendulumSensitivity.csv)
Time (s)SciPy DOP853: separation of the two startsKonjugate, explicit Euler: separation of the two startsKonjugate, semi-implicit Euler: separation of the two startsKonjugate, Runge–Kutta 4: separation of the two startsKonjugate, Runge–Kutta 4: its error against the reference
0.015631.00e-91.00e-91.00e-91.00e-92.04e-13
0.51561.13e-91.13e-91.13e-91.13e-96.15e-10
1.0165.89e-105.88e-105.91e-105.89e-101.38e-8
1.5161.02e-91.02e-91.02e-91.02e-91.59e-8
2.0164.41e-94.59e-94.36e-94.41e-91.34e-7
2.5161.43e-91.71e-91.44e-91.43e-91.38e-7
3.0161.95e-92.35e-91.92e-91.95e-97.47e-8
3.5168.20e-96.83e-98.06e-98.20e-93.47e-7
4.0163.13e-82.51e-83.08e-83.13e-89.64e-7
4.5164.92e-81.63e-84.67e-84.92e-81.32e-6
5.0164.15e-87.79e-84.17e-84.15e-81.57e-6
5.5162.45e-72.08e-72.39e-72.45e-78.46e-6
6.0169.40e-82.30e-67.57e-89.40e-83.38e-6
6.5164.02e-77.37e-63.05e-74.02e-71.40e-5
7.0161.26e-64.07e-61.10e-61.26e-64.37e-5
7.5162.76e-64.45e-61.62e-62.76e-69.56e-5
8.0161.63e-61.03e-64.81e-61.63e-65.62e-5
8.5164.27e-65.50e-61.13e-54.27e-61.47e-4
9.0166.03e-66.92e-61.50e-56.03e-62.07e-4
9.5162.16e-67.68e-51.49e-52.16e-67.51e-5
10.027.37e-66.52e-57.11e-57.37e-62.52e-4
10.524.52e-51.09e-42.09e-44.51e-50.00154
11.025.66e-58.75e-53.04e-45.61e-50.001919
11.523.08e-43.11e-47.84e-43.02e-40.01039
12.028.47e-43.23e-40.0027098.52e-40.02894
12.520.0038146.47e-40.0039310.0038140.1308
13.020.0053861.92e-40.0051490.0059740.1944
13.520.0075070.0028680.0061830.0068570.245
14.020.0084580.00840.021570.0057730.2403
14.520.0090140.0060450.053510.0052740.2378
15.020.017380.014550.16010.013040.52
15.520.010780.040040.59350.014850.4964
16.020.061610.15820.71790.017471.276
16.520.22730.30711.7530.10972.866
17.020.11781.8885.5260.21397.935
17.520.74053.7612.320.23648.409
18.021.2977.73913.470.23898.138
18.520.61791212.210.20854.001
19.020.839414.310.680.40313.409
19.521.30214.039.9730.34826.009
Double pendulum: energy drift over a long runLargest |E - E(0)| / (E(0) + 3 g L) up to each time, over 60 s
  • Konjugate, explicit Euler, h = 2^-11 s
  • Konjugate, semi-implicit Euler, h = 2^-11 s
  • Konjugate, Runge–Kutta 4, h = 2^-8 s
1e-121e-101e-81e-61e-41e-2204060Time (s)Largest relative energy drift so far
Data table (every 24th point; all 960 are in plots/doublePendulumEnergy.csv)
Time (s)Konjugate, explicit Euler, h = 2^-11 sKonjugate, semi-implicit Euler, h = 2^-11 sKonjugate, Runge–Kutta 4, h = 2^-8 s
0.06255.83e-55.89e-51.60e-12
1.5630.002980.0019223.34e-9
3.0630.0059060.0033973.34e-9
4.5630.0089790.0071714.17e-8
6.0630.01110.010931.05e-7
7.5630.013570.013711.05e-7
9.0630.017880.017671.49e-7
10.560.021180.017671.77e-7
12.060.026090.017671.77e-7
13.560.028910.017842.06e-7
15.060.032290.022254.55e-7
16.560.03730.022834.55e-7
18.060.044770.024024.55e-7
19.560.046790.0276.84e-7
21.060.050420.029846.88e-7
22.560.056450.032837.57e-7
24.060.060390.032838.12e-7
25.560.064210.035478.12e-7
27.060.067450.03579.99e-7
28.560.069840.039269.99e-7
30.060.073270.043261.01e-6
31.560.079670.044251.01e-6
33.060.08280.044671.09e-6
34.560.08790.049861.09e-6
36.060.090610.049861.11e-6
37.560.094420.051961.19e-6
39.060.09950.05431.23e-6
40.560.1050.057151.32e-6
42.060.1090.059951.32e-6
43.560.11230.059951.36e-6
45.060.11760.064131.47e-6
46.560.12510.066681.57e-6
48.060.12760.069111.57e-6
49.560.13190.070541.71e-6
51.060.13460.072871.72e-6
52.560.13760.075811.72e-6
54.060.14010.079721.79e-6
55.560.14220.081281.89e-6
57.060.14540.081791.91e-6
58.560.15150.082122.00e-6
Double pendulum: Adaptive's energy drift against its toleranceLargest relative energy drift over 60 s
  • Konjugate, Adaptive, Dormand–Prince 5(4)
  • Proportional (slope 1)
1e-91e-71e-51e-31e-41e-51e-61e-71e-81e-91e-10Relative toleranceLargest relative energy drift
Data table
Relative toleranceKonjugate, Adaptive, Dormand–Prince 5(4)Proportional (slope 1)
1.00e-40.041470.04147
1.00e-55.40e-40.004147
1.00e-61.49e-54.15e-4
1.00e-74.27e-74.15e-5
1.00e-84.89e-84.15e-6
1.00e-95.52e-94.15e-7
1.00e-104.07e-104.15e-8
Double pendulum: Adaptive's horizon against its toleranceThe first time either angle's error exceeds 0.1 rad, up to the 16.98 s the reference is trusted for
57.51012.51517.51e-41e-51e-61e-71e-81e-91e-10Relative tolerancePredictability horizon (s)
Data table
Relative toleranceKonjugate, Adaptive, Dormand–Prince 5(4)
1.00e-46.5
1.00e-57.625
1.00e-610.5
1.00e-711.88
1.00e-813
1.00e-915.88
1.00e-1016.88
Double pendulum: error against step sizeLargest error relative to range over the first 2 s
  • Konjugate, explicit Euler
  • Konjugate, semi-implicit Euler
  • Konjugate, Runge–Kutta 4
1e-111e-91e-71e-51e-31e-12⁻⁸2⁻⁹2⁻¹⁰2⁻¹¹2⁻¹²2⁻¹³Global step h (s)Relative error
Data table
Konjugate, explicit Euler: Global step h (s)Relative errorKonjugate, semi-implicit Euler: Global step h (s)Relative errorKonjugate, Runge–Kutta 4: Global step h (s)Relative error
0.0039060.20760.0039060.015470.0039064.50e-8
0.0019530.10580.0019530.0078110.0019533.04e-9
9.77e-40.050149.77e-40.0039289.77e-41.97e-10
4.88e-40.02414.88e-40.001974.88e-41.24e-11
2.44e-40.011792.44e-49.86e-4––
1.22e-40.0058231.22e-44.93e-4––

Checks

CheckWhat it measuresValueThresholdResult
shortRelativeErrorExplicitLargest error relative to range over the first 5 s, explicit Euler, h = 2^-11 s0.2476≤ 0.31✓ Pass
horizonExplicitPredictability horizon (s): the first time either angle's error exceeds 0.1 rad, up to the 16.98 s the reference is trusted for, explicit Euler, h = 2^-11 s3.3132.9 to 3.7✓ Pass
sensitivityTimeExplicitRuns 1e-9 rad apart separate by 0.1 rad: Konjugate's time against the reference's 16.20 s, |difference| (s), explicit Euler, h = 2^-11 s0.5≤ 0.63✓ Pass
shortRelativeErrorSemiImplicitLargest error relative to range over the first 5 s, semi-implicit Euler, h = 2^-11 s0.01761≤ 0.023✓ Pass
horizonSemiImplicitPredictability horizon (s): the first time either angle's error exceeds 0.1 rad, up to the 16.98 s the reference is trusted for, semi-implicit Euler, h = 2^-11 s6.0945.4 to 6.8✓ Pass
sensitivityTimeSemiImplicitRuns 1e-9 rad apart separate by 0.1 rad: Konjugate's time against the reference's 16.20 s, |difference| (s), semi-implicit Euler, h = 2^-11 s1.375≤ 1.8✓ Pass
shortRelativeErrorRungeKutta4Largest error relative to range over the first 5 s, Runge–Kutta 4, h = 2^-8 s6.96e-7≤ 8.80e-7✓ Pass
horizonRungeKutta4Predictability horizon (s): the first time either angle's error exceeds 0.1 rad, up to the 16.98 s the reference is trusted for, Runge–Kutta 4, h = 2^-8 s12.4811 to 14✓ Pass
sensitivityTimeRungeKutta4Runs 1e-9 rad apart separate by 0.1 rad: Konjugate's time against the reference's 16.20 s, |difference| (s), Runge–Kutta 4, h = 2^-8 s0.2813≤ 0.36✓ Pass
verletRefusedInWordsVerlet refused, saying which rate reads its own state (1 if so): each angular velocity's rate reads itself, the kinetic energy depending on the angles11 to 1✓ Pass
referenceTrustedTimeHow long the reference is trusted (s): until its own error, DOP853 at 1e-13 against 1e-12, first exceeds 0.001 (1 % of the horizon angle)16.9815 to 19✓ Pass
referenceOwnErrorThe reference's own error over the first 5 s: DOP853 at 1e-13 against 1e-12, largest difference (rad, rad/s)2.76e-10≤ 1.00e-9✓ Pass
referenceEnergyDriftThe reference's own energy drift over 20 s, relative to the energy above the bottom1.03e-12≤ 1.00e-10✓ Pass
energyDriftExplicitLargest relative energy drift over 60 s, explicit Euler, h = 2^-11 s0.1530.12 to 0.2✓ Pass
energyDriftSemiImplicitLargest relative energy drift over 60 s, semi-implicit Euler, h = 2^-11 s0.082120.065 to 0.11✓ Pass
energyDriftRungeKutta4Largest relative energy drift over 60 s, Runge–Kutta 4, h = 2^-8 s2.00e-6≤ 2.60e-6✓ Pass
energyDriftToleranceSlopeAdaptiveAdaptive: slope of log energy drift over 60 s against log tolerance, 7 tolerances from 0.0001 to 1e-101.3031.1 to 1.5✓ Pass
energyDriftTightestAdaptiveAdaptive: largest relative energy drift over 60 s at relative tolerance 1e-104.07e-10≤ 1.00e-9✓ Pass
horizonLoosestAdaptivePredictability horizon (s) at relative tolerance 0.0001, Adaptive6.55.7 to 7.3✓ Pass
horizonTightestAdaptivePredictability horizon (s) at relative tolerance 1e-10, Adaptive, up to the 16.98 s the reference is trusted for16.8815 to 19✓ Pass
orderExplicitObserved order over 6 step sizes, 2 s, explicit Euler1.0380.95 to 1.1✓ Pass
finestOrderExplicitObserved order from the finest halving, explicit Euler1.0170.97 to 1.03✓ Pass
orderSemiImplicitObserved order over 6 step sizes, 2 s, semi-implicit Euler0.99440.95 to 1.1✓ Pass
finestOrderSemiImplicitObserved order from the finest halving, semi-implicit Euler0.9990.97 to 1.03✓ Pass
orderRungeKutta4Observed order over 4 step sizes, 2 s, Runge–Kutta 43.9453.9 to 4.1✓ Pass
finestOrderRungeKutta4Observed order from the finest halving, Runge–Kutta 43.9933.9 to 4.1✓ Pass
All 29 result rows
CaseMethodh (s)SubstepsHorizon (s)Max abs errorRMSERelative errorConservation errorObserved orderStepsSubsteps runEvaluationsNote
Double pendulum: first 5 sexplicit Euler4.88e-4153.960.66210.24760.009344–40,96040,9601.64e5angle error first above 0.1 rad at 3.31 s; from θ1 + 1e-9 rad its own run separates by 0.1 rad at 15.70 s (reference 16.20 s)
Double pendulum: first 5 ssemi-implicit Euler4.88e-4150.31940.048470.017610.007292–40,96040,9601.64e5angle error first above 0.1 rad at 6.09 s; from θ1 + 1e-9 rad its own run separates by 0.1 rad at 14.83 s (reference 16.20 s)
Double pendulum: first 5 sRunge–Kutta 40.003906151.05e-51.68e-66.96e-74.17e-8–5,1205,12081,920angle error first above 0.1 rad at 12.48 s; from θ1 + 1e-9 rad its own run separates by 0.1 rad at 16.48 s (reference 16.20 s)
Double pendulum: long-run energyexplicit Euler4.88e-4160–––0.153–1.23e51.23e54.92e5final relative energy change 1.53e-1
Double pendulum: long-run energysemi-implicit Euler4.88e-4160–––0.08212–1.23e51.23e54.92e5final relative energy change -8.03e-2
Double pendulum: long-run energyRunge–Kutta 40.003906160–––2.00e-6–15,36015,3602.46e5final relative energy change -2.00e-6
Double pendulum: against toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 0.0001)–160–––0.04147–9601,31037,400angle error first above 0.1 rad at 6.50 s; energy drift over 60 s 4.15e-2; 1310 steps, 88 rejected, 9349 evaluations of the model
Double pendulum: against toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 0.00001)–160–––5.40e-4–9601,78849,200angle error first above 0.1 rad at 7.63 s; energy drift over 60 s 5.40e-4; 1788 steps, 102 rejected, 12301 evaluations of the model
Double pendulum: against toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 0.000001)–160–––1.49e-5–9602,56069,290angle error first above 0.1 rad at 10.50 s; energy drift over 60 s 1.49e-5; 2560 steps, 167 rejected, 17323 evaluations of the model
Double pendulum: against toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 1e-7)–160–––4.27e-7–9603,60195,430angle error first above 0.1 rad at 11.88 s; energy drift over 60 s 4.27e-7; 3601 steps, 215 rejected, 23857 evaluations of the model
Double pendulum: against toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 1e-8)–160–––4.89e-8–9605,1381.33e5angle error first above 0.1 rad at 13.00 s; energy drift over 60 s 4.89e-8; 5138 steps, 252 rejected, 33301 evaluations of the model
Double pendulum: against toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 1e-9)–160–––5.52e-9–9607,9792.00e5angle error first above 0.1 rad at 15.88 s; energy drift over 60 s 5.52e-9; 7979 steps, 212 rejected, 50107 evaluations of the model
Double pendulum: against toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 1e-10)–160–––4.07e-10–96012,6503.12e5angle error first above 0.1 rad at 16.88 s; energy drift over 60 s 4.07e-10; 12646 steps, 194 rejected, 78001 evaluations of the model; energy drift against tolerance: fitted slope 1.303
Double pendulum: convergenceexplicit Euler0.003906121.7340.3860.2076––5125122,048
Double pendulum: convergenceexplicit Euler0.001953120.88340.2020.1058––1,0241,0244,096
Double pendulum: convergenceexplicit Euler9.77e-4120.41870.097330.05014––2,0482,0488,192
Double pendulum: convergenceexplicit Euler4.88e-4120.20130.047080.0241––4,0964,09616,380
Double pendulum: convergenceexplicit Euler2.44e-4120.098420.02310.01179––8,1928,19232,770
Double pendulum: convergenceexplicit Euler1.22e-4120.048630.011440.005823–1.03816,38016,38065,540observed order: fitted 1.038; per halving 0.973, 1.077, 1.057, 1.032, 1.017
Double pendulum: convergencesemi-implicit Euler0.003906120.13450.032460.01547––5125122,048
Double pendulum: convergencesemi-implicit Euler0.001953120.067940.016330.007811––1,0241,0244,096
Double pendulum: convergencesemi-implicit Euler9.77e-4120.034160.0081890.003928––2,0482,0488,192
Double pendulum: convergencesemi-implicit Euler4.88e-4120.017130.00410.00197––4,0964,09616,380
Double pendulum: convergencesemi-implicit Euler2.44e-4120.0085780.0020529.86e-4––8,1928,19232,770
Double pendulum: convergencesemi-implicit Euler1.22e-4120.0042920.0010264.93e-4–0.994416,38016,38065,540observed order: fitted 0.994; per halving 0.986, 0.992, 0.996, 0.998, 0.999
Double pendulum: convergenceRunge–Kutta 40.003906123.76e-79.34e-84.50e-8––5125128,192
Double pendulum: convergenceRunge–Kutta 40.001953122.54e-86.25e-93.04e-9––1,0241,02416,380
Double pendulum: convergenceRunge–Kutta 49.77e-4121.64e-94.03e-101.97e-10––2,0482,04832,770
Double pendulum: convergenceRunge–Kutta 44.88e-4121.03e-102.53e-111.24e-11–3.9454,0964,09665,540observed order: fitted 3.945; per halving 3.890, 3.949, 3.993

Bouncing ball on a stiff floor

A ball dropped onto a floor that is a stiff spring and damper while the ball is below it, one node: the switch is a condition on the height, located and stepped to by Runge–Kutta 4, Adaptive and Stiff; trajectory error and observed order against the exact piecewise solution, each contact's start and end against the exact instants, Adaptive's and Stiff's error against their tolerance with the work they took, and explicit Euler, which does not locate.

Directory benchmarks/mechanical/bouncingBall/ · models bouncingBall.kjt

Bouncing ball: height against timeExact against Runge–Kutta 4 with its contacts located, h = 2^-12 s
  • Exact
  • Konjugate, Runge–Kutta 4
-0.2500.250.50.75100.511.52Time (s)Height (m)
Data table (every 4th point; all 129 are in plots/bouncingBallHeight.csv)
Time (s)ExactKonjugate, Runge–Kutta 4
011
0.06250.98080.9808
0.1250.92340.9234
0.18750.82760.8276
0.250.69340.6934
0.31250.5210.521
0.3750.31020.3102
0.43750.061150.06115
0.50.051010.05101
0.56250.22150.2215
0.6250.35370.3537
0.68750.44760.4476
0.750.50320.5032
0.81250.52040.5204
0.8750.49930.4993
0.93750.43990.4399
10.34220.3422
1.0630.20620.2062
1.1250.03180.0318
1.1880.044120.04412
1.250.15610.1561
1.3130.22980.2298
1.3750.26510.2651
1.4380.26220.2622
1.50.22090.2209
1.5630.14130.1413
1.6250.023320.02332
1.6880.03010.0301
1.750.10140.1014
1.8130.13440.1344
1.8750.1290.129
1.9380.085340.08534
20.003350.00335
Bouncing ball: error against step sizeLargest error relative to range over 2 s
  • Konjugate, explicit Euler
  • Konjugate, Runge–Kutta 4
  • Fourth order (slope 4)
1e-71e-51e-31e-12⁻⁹2⁻¹⁰2⁻¹¹2⁻¹²2⁻¹³2⁻¹⁴2⁻¹⁵Global step h (s)Relative error
Data table
Konjugate, explicit Euler: Global step h (s)Relative errorKonjugate, Runge–Kutta 4: Global step h (s)Relative errorFourth order (slope 4): Global step h (s)Relative error
2.44e-40.63580.0019532.80e-40.0019532.80e-4
1.22e-40.51899.77e-42.43e-59.77e-41.75e-5
6.10e-50.41384.88e-41.71e-64.88e-41.10e-6
3.05e-50.20122.44e-41.14e-72.44e-46.84e-8
Bouncing ball: Adaptive's and Stiff's error against their toleranceLargest error relative to range, every contact located
  • Konjugate, Adaptive, Dormand–Prince 5(4)
  • Konjugate, Stiff, Rodas4
  • Proportional (slope 1)
1e-91e-81e-71e-61e-51e-41e-31e-41e-51e-61e-71e-81e-91e-10Relative toleranceRelative error
Data table
Relative toleranceKonjugate, Adaptive, Dormand–Prince 5(4)Konjugate, Stiff, Rodas4Proportional (slope 1)
1.00e-40.0014223.12e-40.001422
1.00e-51.13e-43.39e-51.42e-4
1.00e-61.01e-53.40e-61.42e-5
1.00e-78.75e-73.39e-71.42e-6
1.00e-89.10e-83.46e-81.42e-7
1.00e-98.92e-93.47e-91.42e-8
1.00e-108.75e-103.53e-101.42e-9

Checks

CheckWhat it measuresValueThresholdResult
orderExplicitObserved order over 4 step sizes, explicit Euler0.53060.4 to 0.7✓ Pass
relativeErrorExplicitLargest error relative to range over 2 s at h = 2^-15 s, explicit Euler0.2012≤ 0.26✓ Pass
orderRungeKutta4Observed order over 4 step sizes, Runge–Kutta 43.7613.6 to 4✓ Pass
relativeErrorRungeKutta4Largest error relative to range over 2 s at h = 2^-12 s, Runge–Kutta 41.14e-7≤ 1.50e-7✓ Pass
switchTimeErrorRungeKutta4Largest error in a contact's start or end (s) at h = 2^-12 s, Runge–Kutta 45.89e-9≤ 7.70e-9✓ Pass
switchTimeErrorAdaptiveLargest error in a contact's start or end (s), Adaptive at relative tolerance 1e-84.69e-9≤ 6.10e-9✓ Pass
toleranceSlopeAdaptiveAdaptive: slope of log error against log tolerance over 7 tolerances1.0320.9 to 1.15✓ Pass
toleranceFactorAdaptiveAdaptive: largest error over its relative tolerance14.22≤ 20✓ Pass
switchTimeErrorRodas4Largest error in a contact's start or end (s), Stiff at relative tolerance 1e-81.79e-9≤ 2.30e-9✓ Pass
toleranceSlopeRodas4Stiff: slope of log error against log tolerance over 7 tolerances0.99320.9 to 1.1✓ Pass
toleranceFactorRodas4Stiff: largest error over its relative tolerance3.533≤ 4.5✓ Pass
exactRestitutionThe exact model's first bounce: exit speed over entry speed, from its closed form (about e^(-ζπ/√(1-ζ²)))0.72140.715 to 0.73✓ Pass
All 22 result rows
CaseMethodh (s)SubstepsHorizon (s)Max abs errorRMSERelative errorObserved orderStepsSubsteps runEvaluationsNote
Bouncing ball: trajectoryexplicit Euler2.44e-4124.7560.61420.6358–8,1928,19216,380switches not located
Bouncing ball: trajectoryexplicit Euler1.22e-4123.8810.42650.5189–16,38016,38032,770switches not located
Bouncing ball: trajectoryexplicit Euler6.10e-5123.0950.24680.4138–32,77032,77065,540switches not located
Bouncing ball: trajectoryexplicit Euler3.05e-5121.5050.12110.20120.530665,54065,5401.31e5switches not located; observed order: fitted 0.531; per halving 0.293, 0.327, 1.040
Bouncing ball: trajectoryRunge–Kutta 40.001953120.0020972.18e-42.80e-4–1,0241,0248,3006 switches located; largest switch-time error 1.45e-5 s
Bouncing ball: trajectoryRunge–Kutta 49.77e-4121.82e-41.89e-52.43e-5–2,0482,04816,4906 switches located; largest switch-time error 1.25e-6 s
Bouncing ball: trajectoryRunge–Kutta 44.88e-4121.28e-51.33e-61.71e-6–4,0964,09632,8806 switches located; largest switch-time error 8.83e-8 s
Bouncing ball: trajectoryRunge–Kutta 42.44e-4128.54e-78.90e-81.14e-73.7618,1928,19265,6406 switches located; largest switch-time error 5.89e-9 s; observed order: fitted 3.761; per halving 3.529, 3.828, 3.904
Bouncing ball: against toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 0.0001)0.01563120.010640.001090.001422–1281502,2146 switches located, largest switch-time error 7.35e-5 s; 150 steps, 6 rejected, 1107 evaluations of the model
Bouncing ball: against toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 0.00001)0.01563128.45e-48.85e-51.13e-4–1281652,3826 switches located, largest switch-time error 5.81e-6 s; 165 steps, 5 rejected, 1191 evaluations of the model
Bouncing ball: against toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 0.000001)0.01563127.55e-58.03e-61.01e-5–1281852,6586 switches located, largest switch-time error 5.19e-7 s; 185 steps, 8 rejected, 1329 evaluations of the model
Bouncing ball: against toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 1e-7)0.01563126.55e-66.86e-78.75e-7–1282153,0426 switches located, largest switch-time error 4.50e-8 s; 215 steps, 10 rejected, 1521 evaluations of the model
Bouncing ball: against toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 1e-8)0.01563126.81e-77.12e-89.10e-8–1282623,6066 switches located, largest switch-time error 4.69e-9 s; 262 steps, 10 rejected, 1803 evaluations of the model
Bouncing ball: against toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 1e-9)0.01563126.67e-86.96e-98.92e-9–1283364,4946 switches located, largest switch-time error 4.59e-10 s; 336 steps, 10 rejected, 2247 evaluations of the model
Bouncing ball: against toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 1e-10)0.01563126.55e-96.82e-108.75e-10–1284575,9466 switches located, largest switch-time error 4.51e-11 s; 457 steps, 10 rejected, 2973 evaluations of the model; error against tolerance: fitted slope 1.032
Bouncing ball: against toleranceStiff, Rodas4 (relative tolerance 0.0001)0.01563120.0023312.42e-43.12e-4–1281672,1566 switches located, largest switch-time error 1.61e-5 s; 167 steps, 9 rejected, 1078 evaluations of the model
Bouncing ball: against toleranceStiff, Rodas4 (relative tolerance 0.00001)0.01563122.54e-42.63e-53.39e-5–1281922,4866 switches located, largest switch-time error 1.75e-6 s; 192 steps, 12 rejected, 1243 evaluations of the model
Bouncing ball: against toleranceStiff, Rodas4 (relative tolerance 0.000001)0.01563122.54e-52.65e-63.40e-6–1282362,9646 switches located, largest switch-time error 1.75e-7 s; 236 steps, 7 rejected, 1482 evaluations of the model
Bouncing ball: against toleranceStiff, Rodas4 (relative tolerance 1e-7)0.01563122.54e-62.64e-73.39e-7–1283163,9246 switches located, largest switch-time error 1.75e-8 s; 316 steps, 7 rejected, 1962 evaluations of the model
Bouncing ball: against toleranceStiff, Rodas4 (relative tolerance 1e-8)0.01563122.59e-72.69e-83.46e-8–1284505,5426 switches located, largest switch-time error 1.79e-9 s; 450 steps, 8 rejected, 2771 evaluations of the model
Bouncing ball: against toleranceStiff, Rodas4 (relative tolerance 1e-9)0.01563122.59e-82.69e-93.47e-9–1286928,4566 switches located, largest switch-time error 1.79e-10 s; 692 steps, 9 rejected, 4228 evaluations of the model
Bouncing ball: against toleranceStiff, Rodas4 (relative tolerance 1e-10)0.01563122.64e-92.75e-103.53e-10–1281,12513,6606 switches located, largest switch-time error 1.82e-11 s; 1125 steps, 10 rejected, 6831 evaluations of the model; error against tolerance: fitted slope 0.993

Switching circuits

A synchronous buck converter, switched at 20 kHz and averaged, against its exact piecewise solution, and a half-wave rectifier with a piecewise-linear diode against an event-located SciPy solution, both cross-checked with ngspice: currents, voltages and energy, under explicit Euler and Runge–Kutta 4, which locates each switch, and Adaptive and Stiff, which locate them too, against their tolerance.

Directory benchmarks/electrical/switchedCircuits/ · models buckSwitched.kjt, buckAveraged.kjt, rectifier.kjt · numerical reference reference.json: Buck: scipy.linalg.expm interval by interval (exact); rectifier: solve_ivp DOP853, rtol = atol = 1e-12, restarted at each diode switching instant; ngspice transient runs of both as a cross-check (SciPy 1.13.1, NumPy 2.0.2)

Buck converter: inductor current at start-upExact switched and averaged against Konjugate, h = 2^-20 s, first 2 ms
  • Exact, switched (matrix exponential per interval)
  • Konjugate, switched, explicit Euler
  • Konjugate, switched, Runge–Kutta 4
  • Exact, averaged
024600.511.5Time (ms)Current (A)
Data table (every 7th point; all 263 are in plots/buckInductorCurrent.csv)
Time (ms)Exact, switched (matrix exponential per interval)Konjugate, switched, explicit EulerKonjugate, switched, Runge–Kutta 4Exact, averaged
00000
0.053412.5312.4772.5312.406
0.10684.2914.3054.2914.158
0.16025.1085.0685.1084.994
0.21365.0875.1015.0874.947
0.2674.5144.4564.5144.259
0.32043.6843.7163.6843.27
0.37382.6012.5072.6012.304
0.42721.8221.7421.8221.596
0.48071.421.3741.421.253
0.53411.3551.3531.3551.264
0.58751.5141.5531.5141.535
0.64091.7581.8271.7581.929
0.69431.9642.0471.9642.317
0.74772.052.0262.052.603
0.80112.1172.0952.1172.744
0.85452.3272.2572.3272.742
0.90792.4462.4432.4462.636
0.96132.532.4712.532.479
1.0152.6282.6242.6282.323
1.0682.7722.7032.7722.207
1.1222.7932.7422.7932.15
1.1752.6422.6212.6422.149
1.2282.5272.542.5272.191
1.2822.4272.4682.4272.253
1.3352.3222.3822.3222.316
1.3892.1982.2652.1982.363
1.4422.052.0062.052.386
1.4951.8821.8561.8822.387
1.5491.71.6971.72.371
1.6021.7731.7641.7732.346
1.6561.9971.941.9972.321
1.7092.2282.2322.2282.302
1.7622.4672.4092.4672.292
1.8162.7152.6042.7152.292
1.8692.9682.9322.9682.298
1.9232.9092.9212.9092.308
1.9762.7532.7912.7532.318
Half-wave rectifier: capacitor voltageSciPy DOP853 (event-located) against Konjugate, h = 2^-16 s
  • Reference (DOP853, events)
  • Source voltage
  • Konjugate, explicit Euler
  • Konjugate, Runge–Kutta 4
-10-505100255075100125Time (ms)Voltage (V)
Data table (every 7th point; all 257 are in plots/rectifierVoltage.csv)
Time (ms)Reference (DOP853, events)Source voltageKonjugate, explicit EulerKonjugate, Runge–Kutta 4
00000
3.4187.8468.797.8487.846
6.8369.5368.3829.549.536
10.258.868-0.79688.878.868
13.678.245-9.1428.2488.245
17.097.667-7.9217.6697.667
20.517.1291.5897.1317.129
23.938.7259.4368.7258.725
27.349.4357.419.4389.435
30.768.773-2.378.7768.773
34.188.158-9.678.168.158
37.67.585-6.8517.5887.585
41.027.0533.1377.0557.053
44.439.3069.8429.3089.306
47.859.3346.2499.3379.334
51.278.679-3.8838.6828.679
54.698.07-9.9528.0728.07
58.117.504-5.6077.5067.504
61.526.9774.6056.9796.977
64.949.6719.9989.6749.671
68.369.2334.9299.2369.233
71.788.586-5.2988.5888.586
75.27.983-9.9817.9867.983
78.617.423-4.227.4257.423
82.036.9035.9576.9046.903
85.459.7999.9019.8029.799
88.879.1343.4849.1379.134
92.298.493-6.5788.4968.493
95.77.897-9.7577.97.897
99.127.343-2.7267.3467.343
102.56.8727.1576.876.872
1069.7189.5519.7219.718
109.49.0361.9519.0399.036
112.88.402-7.6918.4058.402
116.27.813-9.2857.8157.813
119.67.265-1.1637.2677.265
1237.428.1767.4157.42
Buck converter: error against the stepLargest error relative to range. Runge–Kutta 4 locates each switching edge and converges at fourth order switched or averaged; explicit Euler, which does not, at first
  • Switched, explicit Euler
  • Switched, Runge–Kutta 4
  • Averaged, explicit Euler
  • Averaged, Runge–Kutta 4
1e-121e-101e-81e-61e-41e-25e-71e-62e-65e-6Step h (s)Relative error
Data table
Switched, explicit Euler: Step h (s)Relative errorSwitched, Runge–Kutta 4: Step h (s)Relative errorAveraged, explicit Euler: Step h (s)Relative errorAveraged, Runge–Kutta 4: Step h (s)Relative error
7.63e-60.22077.63e-62.80e-77.63e-60.050847.63e-63.62e-7
3.81e-60.17293.81e-61.92e-83.81e-60.024223.81e-62.23e-8
1.91e-60.056191.91e-61.24e-91.91e-60.011831.91e-61.39e-9
9.54e-70.02799.54e-77.88e-119.54e-70.0058469.54e-78.63e-11
4.77e-70.0088084.77e-74.97e-124.77e-70.002906––
2.38e-70.0058552.38e-73.17e-132.38e-70.001449––
Half-wave rectifier: error against the stepLargest capacitor-voltage error relative to range; Runge–Kutta 4 locates where the diode switches and keeps its fourth order
  • Explicit Euler
  • Runge–Kutta 4
1e-101e-81e-61e-41e-21e-52e-55e-51e-42e-4Step h (s)Relative error
Data table
Step h (s)Explicit EulerRunge–Kutta 4
2.44e-40.018265.26e-5
1.22e-40.0079392.63e-6
6.10e-50.0037371.47e-7
3.05e-50.0018178.68e-9
1.53e-58.96e-45.27e-10
7.63e-64.45e-43.24e-11

Checks

CheckWhat it measuresValueThresholdResult
switchedExplicitRelativeErrorBuck, switched: largest current/voltage error relative to range, explicit Euler, h = 2^-20 s0.0279≤ 0.035✓ Pass
switchedExplicitInputEnergyErrorBuck, switched: largest error in the energy drawn from the input, relative to the exact total, explicit Euler0.0224≤ 0.029✓ Pass
switchedExplicitEnergyBalanceDefectBuck, switched: energy-balance defect E_in - stored - lost - delivered from Konjugate's own states, relative to the energy drawn, explicit Euler0.01532≤ 0.02✓ Pass
switchedExplicitOrderBuck, switched: observed order of the error in h, explicit Euler (fitted over every h)1.1451.03 to 1.26✓ Pass
switchedRungeKutta4RelativeErrorBuck, switched: largest current/voltage error relative to range, Runge–Kutta 4, h = 2^-20 s7.88e-11≤ 1.10e-10✓ Pass
switchedRungeKutta4InputEnergyErrorBuck, switched: largest error in the energy drawn from the input, relative to the exact total, Runge–Kutta 41.33e-10≤ 1.80e-10✓ Pass
switchedRungeKutta4EnergyBalanceDefectBuck, switched: energy-balance defect E_in - stored - lost - delivered from Konjugate's own states, relative to the energy drawn, Runge–Kutta 42.59e-10≤ 3.40e-10✓ Pass
switchedRungeKutta4OrderBuck, switched: observed order of the error in h, Runge–Kutta 4 (fitted over every h)3.9563.8 to 4.2✓ Pass
averagedExplicitRelativeErrorBuck, averaged: largest current/voltage error relative to range, explicit Euler, h = 2^-20 s0.005846≤ 0.0074✓ Pass
averagedExplicitInputEnergyErrorBuck, averaged: largest error in the energy drawn from the input, relative to the exact total, explicit Euler1.65e-4≤ 2.10e-4✓ Pass
averagedExplicitEnergyBalanceDefectBuck, averaged: energy-balance defect E_in - stored - lost - delivered from Konjugate's own states, relative to the energy drawn, explicit Euler2.44e-4≤ 3.10e-4✓ Pass
averagedExplicitOrderBuck, averaged: observed order of the error in h, explicit Euler (fitted over every h)1.0250.95 to 1.1✓ Pass
averagedRungeKutta4RelativeErrorBuck, averaged: largest current/voltage error relative to range, Runge–Kutta 4, h = 2^-20 s8.63e-11≤ 1.10e-10✓ Pass
averagedRungeKutta4InputEnergyErrorBuck, averaged: largest error in the energy drawn from the input, relative to the exact total, Runge–Kutta 42.46e-12≤ 3.10e-12✓ Pass
averagedRungeKutta4EnergyBalanceDefectBuck, averaged: energy-balance defect E_in - stored - lost - delivered from Konjugate's own states, relative to the energy drawn, Runge–Kutta 42.23e-12≤ 1.00e-10✓ Pass
averagedRungeKutta4OrderBuck, averaged: observed order of the error in h, Runge–Kutta 4 (fitted over every h)4.0113.9 to 4.1✓ Pass
buckReferenceAgreementBuck, switched: this exact reference against SciPy's expm interval by interval (reference.json), largest difference relative to each column's magnitude2.25e-14≤ 1.00e-10✓ Pass
buckAveragedReferenceAgreementBuck, averaged: this exact reference against SciPy's expm (reference.json)1.72e-14≤ 1.00e-10✓ Pass
buckNgspiceAgreementBuck, switched: ngspice (real switches, 1 ns gate edges) against the exact solution, largest difference relative to each column's magnitude1.05e-5≤ 3.00e-5✓ Pass
rectifierExplicitRelativeErrorRectifier: largest capacitor-voltage error relative to range, explicit Euler, h = 2^-16 s8.96e-4≤ 0.0012✓ Pass
rectifierExplicitDiodeEnergyErrorRectifier: largest error in the energy lost in the diode, relative to the reference total, explicit Euler0.002677≤ 0.0034✓ Pass
rectifierExplicitEnergyBalanceDefectRectifier: energy-balance defect (source work - stored - diode - load) from Konjugate's own states, relative to the source's work, explicit Euler0.001393≤ 0.0018✓ Pass
rectifierExplicitOrderRectifier: observed order of the error in h, explicit Euler (fitted over every h)1.0650.95 to 1.18✓ Pass
rectifierRungeKutta4RelativeErrorRectifier: largest capacitor-voltage error relative to range, Runge–Kutta 4, h = 2^-16 s5.27e-10≤ 6.90e-10✓ Pass
rectifierRungeKutta4DiodeEnergyErrorRectifier: largest error in the energy lost in the diode, relative to the reference total, Runge–Kutta 45.63e-9≤ 7.40e-9✓ Pass
rectifierRungeKutta4EnergyBalanceDefectRectifier: energy-balance defect (source work - stored - diode - load) from Konjugate's own states, relative to the source's work, Runge–Kutta 44.91e-10≤ 6.40e-10✓ Pass
rectifierRungeKutta4OrderRectifier: observed order of the error in h, Runge–Kutta 4 (fitted over every h)4.1173.9 to 4.3✓ Pass
buckToleranceFactorAdaptiveBuck, switched: Adaptive's largest error over its relative tolerance0.06205≤ 1✓ Pass
rectifierToleranceSlopeAdaptiveRectifier: Adaptive's slope of log error against log tolerance, every switch located1.0440.9 to 1.2✓ Pass
rectifierToleranceFactorAdaptiveRectifier: Adaptive's largest error over its relative tolerance0.4819≤ 1✓ Pass
buckToleranceFactorRodas4Buck, switched: Stiff's largest error over its relative tolerance0.05163≤ 1✓ Pass
rectifierToleranceSlopeRodas4Rectifier: Stiff's slope of log error against log tolerance, every switch located0.92850.85 to 1.1✓ Pass
rectifierToleranceFactorRodas4Rectifier: Stiff's largest error over its relative tolerance0.1482≤ 1✓ Pass
rectifierNgspiceAgreementRectifier: ngspice (a switch controlled by its own voltage) against the SciPy reference, largest difference relative to the voltage's magnitude2.12e-7≤ 5.00e-7✓ Pass
All 65 result rows
CaseMethodh (s)SubstepsHorizon (s)Max abs errorRMSERelative errorConservation errorObserved orderStepsSubsteps runEvaluationsNote
Buck, switched: inductor current and output voltageexplicit Euler7.63e-610.0078131.2510.40650.22070.138–1,0243,0728,192input-energy error 1.19e-1 of the total; conservation = energy-balance defect / energy drawn
Buck, switched: inductor current and output voltageexplicit Euler3.81e-610.0078130.97950.2860.17290.06474–2,0486,14416,380input-energy error 6.88e-2 of the total; conservation = energy-balance defect / energy drawn
Buck, switched: inductor current and output voltageexplicit Euler1.91e-610.0078130.31840.095670.056190.03117–4,09612,29032,770input-energy error 3.81e-2 of the total; conservation = energy-balance defect / energy drawn
Buck, switched: inductor current and output voltageexplicit Euler9.54e-710.0078130.15810.040420.02790.01532–8,19224,58065,540input-energy error 2.24e-2 of the total; conservation = energy-balance defect / energy drawn
Buck, switched: inductor current and output voltageexplicit Euler4.77e-710.0078130.049910.017290.0088080.007564–16,38049,1501.31e5input-energy error 9.92e-3 of the total; conservation = energy-balance defect / energy drawn
Buck, switched: inductor current and output voltageexplicit Euler2.38e-710.0078130.033180.0098080.0058550.003759–32,77098,3002.62e5input-energy error 3.59e-3 of the total; conservation = energy-balance defect / energy drawn
Buck, switched: error order in hexplicit Euler–1–––––1.145–––pairwise 0.352, 1.621, 1.010, 1.664, 0.589
Buck, switched: inductor current and output voltageRunge–Kutta 47.63e-610.0078131.81e-63.39e-72.80e-78.32e-7–1,0243,07255,230input-energy error 4.09e-7 of the total; conservation = energy-balance defect / energy drawn
Buck, switched: inductor current and output voltageRunge–Kutta 43.81e-610.0078131.23e-72.32e-81.92e-86.01e-8–2,0486,14488,000input-energy error 3.02e-8 of the total; conservation = energy-balance defect / energy drawn
Buck, switched: inductor current and output voltageRunge–Kutta 41.91e-610.0078138.02e-91.52e-91.24e-94.02e-9–4,09612,2901.54e5input-energy error 2.05e-9 of the total; conservation = energy-balance defect / energy drawn
Buck, switched: inductor current and output voltageRunge–Kutta 49.54e-710.0078135.10e-109.74e-117.88e-112.59e-10–8,19224,5802.85e5input-energy error 1.33e-10 of the total; conservation = energy-balance defect / energy drawn
Buck, switched: inductor current and output voltageRunge–Kutta 44.77e-710.0078133.21e-116.14e-124.97e-121.65e-11–16,38049,1505.47e5input-energy error 8.46e-12 of the total; conservation = energy-balance defect / energy drawn
Buck, switched: inductor current and output voltageRunge–Kutta 42.38e-710.0078132.02e-124.16e-133.17e-131.04e-12–32,77098,3001.07e6input-energy error 5.42e-13 of the total; conservation = energy-balance defect / energy drawn
Buck, switched: error order in hRunge–Kutta 4–1–––––3.956–––pairwise 3.864, 3.958, 3.970, 3.987, 3.969
Buck, averaged: inductor current and output voltageexplicit Euler7.63e-610.0078130.25930.055980.050840.002214–1,0243,0728,192input-energy error 1.41e-3 of the total; conservation = energy-balance defect / energy drawn
Buck, averaged: inductor current and output voltageexplicit Euler3.81e-610.0078130.12540.026470.024220.001029–2,0486,14416,380input-energy error 6.80e-4 of the total; conservation = energy-balance defect / energy drawn
Buck, averaged: inductor current and output voltageexplicit Euler1.91e-610.0078130.061690.012880.011834.97e-4–4,09612,29032,770input-energy error 3.34e-4 of the total; conservation = energy-balance defect / energy drawn
Buck, averaged: inductor current and output voltageexplicit Euler9.54e-710.0078130.03060.0063590.0058462.44e-4–8,19224,58065,540input-energy error 1.65e-4 of the total; conservation = energy-balance defect / energy drawn
Buck, averaged: inductor current and output voltageexplicit Euler4.77e-710.0078130.015240.0031590.0029061.21e-4–16,38049,1501.31e5input-energy error 8.23e-5 of the total; conservation = energy-balance defect / energy drawn
Buck, averaged: inductor current and output voltageexplicit Euler2.38e-710.0078130.0076020.0015750.0014496.03e-5–32,77098,3002.62e5input-energy error 4.11e-5 of the total; conservation = energy-balance defect / energy drawn
Buck, averaged: error order in hexplicit Euler–1–––––1.025–––pairwise 1.070, 1.034, 1.017, 1.008, 1.004
Buck, averaged: inductor current and output voltageRunge–Kutta 47.63e-610.0078131.95e-63.97e-73.62e-78.61e-9–1,0243,07232,770input-energy error 1.02e-8 of the total; conservation = energy-balance defect / energy drawn
Buck, averaged: inductor current and output voltageRunge–Kutta 43.81e-610.0078131.21e-72.46e-82.23e-85.57e-10–2,0486,14465,540input-energy error 6.34e-10 of the total; conservation = energy-balance defect / energy drawn
Buck, averaged: inductor current and output voltageRunge–Kutta 41.91e-610.0078137.52e-91.53e-91.39e-93.54e-11–4,09612,2901.31e5input-energy error 3.95e-11 of the total; conservation = energy-balance defect / energy drawn
Buck, averaged: inductor current and output voltageRunge–Kutta 49.54e-710.0078134.69e-109.55e-118.63e-112.23e-12–8,19224,5802.62e5input-energy error 2.46e-12 of the total; conservation = energy-balance defect / energy drawn
Buck, averaged: error order in hRunge–Kutta 4–1–––––4.011–––pairwise 4.018, 4.010, 4.005
Averaged against switched, both exactexact (matrix exponential)–1–1.2750.30710.225–––––the averaging error of the model itself (ripple and startup), not Konjugate's
Rectifier: capacitor voltageexplicit Euler2.44e-410.1250.17890.044430.018260.02381–5121,0242,560diode-loss error 4.90e-2, source-energy error 1.50e-2 of their totals
Rectifier: capacitor voltageexplicit Euler1.22e-410.1250.077790.021570.0079390.01148–1,0242,0485,120diode-loss error 2.33e-2, source-energy error 7.34e-3 of their totals
Rectifier: capacitor voltageexplicit Euler6.10e-510.1250.036620.010740.0037370.005642–2,0484,09610,240diode-loss error 1.11e-2, source-energy error 3.61e-3 of their totals
Rectifier: capacitor voltageexplicit Euler3.05e-510.1250.01780.0053620.0018170.002797–4,0968,19220,480diode-loss error 5.41e-3, source-energy error 1.80e-3 of their totals
Rectifier: capacitor voltageexplicit Euler1.53e-510.1250.0087780.0026778.96e-40.001393–8,19216,38040,960diode-loss error 2.68e-3, source-energy error 8.96e-4 of their totals
Rectifier: capacitor voltageexplicit Euler7.63e-610.1250.0043590.0013394.45e-46.95e-4–16,38032,77081,920diode-loss error 1.33e-3, source-energy error 4.47e-4 of their totals
Rectifier: error order in hexplicit Euler–1–––––1.065–––pairwise 1.202, 1.087, 1.041, 1.020, 1.010
Rectifier: capacitor voltageRunge–Kutta 42.44e-410.1255.15e-41.59e-45.26e-53.33e-5–5121,02410,810diode-loss error 3.86e-4, source-energy error 2.47e-5 of their totals
Rectifier: capacitor voltageRunge–Kutta 41.22e-410.1252.57e-58.83e-62.63e-62.09e-6–1,0242,04821,050diode-loss error 2.40e-5, source-energy error 1.39e-6 of their totals
Rectifier: capacitor voltageRunge–Kutta 46.10e-510.1251.44e-65.34e-71.47e-71.28e-7–2,0484,09641,530diode-loss error 1.46e-6, source-energy error 8.44e-8 of their totals
Rectifier: capacitor voltageRunge–Kutta 43.05e-510.1258.50e-83.28e-88.68e-97.89e-9–4,0968,19282,490diode-loss error 9.03e-8, source-energy error 5.20e-9 of their totals
Rectifier: capacitor voltageRunge–Kutta 41.53e-510.1255.17e-92.03e-95.27e-104.91e-10–8,19216,3801.64e5diode-loss error 5.63e-9, source-energy error 3.20e-10 of their totals
Rectifier: capacitor voltageRunge–Kutta 47.63e-610.1253.17e-101.26e-103.24e-113.05e-11–16,38032,7703.28e5diode-loss error 5.84e-10, source-energy error 3.50e-11 of their totals
Rectifier: error order in hRunge–Kutta 4–1–––––4.117–––pairwise 4.324, 4.161, 4.080, 4.041, 4.026
Buck, switched: against toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 0.0001)7.63e-610.0078134.72e-98.78e-108.32e-10––1,0244,00889,800312 switches located; 1336 steps, 0 rejected, 11225 evaluations of the model
Buck, switched: against toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 0.00001)7.63e-610.0078134.72e-98.78e-108.32e-10––1,0244,00889,800312 switches located; 1336 steps, 0 rejected, 11225 evaluations of the model
Buck, switched: against toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 0.000001)7.63e-610.0078134.49e-98.34e-107.93e-10––1,0244,01189,850312 switches located; 1337 steps, 0 rejected, 11231 evaluations of the model
Buck, switched: against toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 1e-7)7.63e-610.0078134.21e-97.81e-107.42e-10––1,0244,01489,990312 switches located; 1338 steps, 2 rejected, 11249 evaluations of the model
Buck, switched: against toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 1e-8)7.63e-610.0078132.75e-95.61e-104.86e-10––1,0244,8211.03e5312 switches located; 1607 steps, 3 rejected, 12869 evaluations of the model
Buck, switched: against toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 1e-9)7.63e-610.0078133.52e-106.74e-116.20e-11––1,0246,8341.35e5312 switches located; 2278 steps, 4 rejected, 16901 evaluations of the model; error against tolerance: fitted slope 0.182
Rectifier: against toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 0.0001)4.88e-410.1254.72e-49.79e-54.82e-5––25657610,50013 switches located; 288 steps, 4 rejected, 2100 evaluations of the model
Rectifier: against toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 0.00001)4.88e-410.1254.04e-51.01e-54.13e-6––25664011,55013 switches located; 320 steps, 7 rejected, 2310 evaluations of the model
Rectifier: against toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 0.000001)4.88e-410.1253.50e-61.77e-63.57e-7––25673013,17013 switches located; 365 steps, 16 rejected, 2634 evaluations of the model
Rectifier: against toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 1e-7)4.88e-410.1253.46e-71.60e-73.54e-8––25686815,18013 switches located; 434 steps, 14 rejected, 3036 evaluations of the model
Rectifier: against toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 1e-8)4.88e-410.1253.03e-81.78e-83.09e-9––2561,07818,24013 switches located; 539 steps, 11 rejected, 3648 evaluations of the model
Rectifier: against toleranceAdaptive, Dormand–Prince 5(4) (relative tolerance 1e-9)4.88e-410.1252.78e-91.99e-92.84e-10––2561,38022,89013 switches located; 690 steps, 15 rejected, 4578 evaluations of the model; error against tolerance: fitted slope 1.044
Buck, switched: against toleranceStiff, Rodas4 (relative tolerance 0.0001)7.63e-610.0078131.56e-72.91e-82.41e-8––1,0244,00876,620312 switches located; 1336 steps, 0 rejected, 9577 evaluations of the model
Buck, switched: against toleranceStiff, Rodas4 (relative tolerance 0.00001)7.63e-610.0078131.42e-72.67e-82.27e-8––1,0244,01476,790312 switches located; 1338 steps, 2 rejected, 9599 evaluations of the model
Buck, switched: against toleranceStiff, Rodas4 (relative tolerance 0.000001)7.63e-610.0078131.21e-72.34e-82.05e-8––1,0244,04777,440312 switches located; 1349 steps, 5 rejected, 9680 evaluations of the model
Buck, switched: against toleranceStiff, Rodas4 (relative tolerance 1e-7)7.63e-610.0078133.13e-81.08e-85.01e-9––1,0246,5071.17e5312 switches located; 2169 steps, 12 rejected, 14635 evaluations of the model
Buck, switched: against toleranceStiff, Rodas4 (relative tolerance 1e-8)7.63e-610.0078133.23e-91.10e-95.09e-10––1,0248,9251.56e5312 switches located; 2975 steps, 7 rejected, 19446 evaluations of the model
Buck, switched: against toleranceStiff, Rodas4 (relative tolerance 1e-9)7.63e-610.0078133.18e-109.08e-115.16e-11––1,02413,9002.35e5312 switches located; 4634 steps, 7 rejected, 29400 evaluations of the model; error against tolerance: fitted slope 0.540
Rectifier: against toleranceStiff, Rodas4 (relative tolerance 0.0001)4.88e-410.1256.51e-51.61e-56.64e-6––2566069,70013 switches located; 303 steps, 11 rejected, 1940 evaluations of the model
Rectifier: against toleranceStiff, Rodas4 (relative tolerance 0.00001)4.88e-410.1258.27e-61.78e-68.44e-7––25671011,41013 switches located; 355 steps, 17 rejected, 2282 evaluations of the model
Rectifier: against toleranceStiff, Rodas4 (relative tolerance 0.000001)4.88e-410.1251.21e-62.49e-71.23e-7––25693214,57013 switches located; 466 steps, 10 rejected, 2913 evaluations of the model
Rectifier: against toleranceStiff, Rodas4 (relative tolerance 1e-7)4.88e-410.1251.35e-72.72e-81.38e-8––2561,27019,61013 switches located; 635 steps, 9 rejected, 3922 evaluations of the model
Rectifier: against toleranceStiff, Rodas4 (relative tolerance 1e-8)4.88e-410.1251.43e-82.90e-91.46e-9––2561,85828,51013 switches located; 929 steps, 12 rejected, 5701 evaluations of the model
Rectifier: against toleranceStiff, Rodas4 (relative tolerance 1e-9)4.88e-410.1251.45e-93.03e-101.48e-10––2563,13647,75013 switches located; 1568 steps, 15 rejected, 9550 evaluations of the model; error against tolerance: fitted slope 0.928

Heat exchanger

A water-to-water heat exchanger, counterflow and parallel flow, each stream divided into 10 and 40 segments as nodes of a graph: the transient against the exact solution, the steady state against the discretised model's equilibrium and the effectiveness against ε-NTU, and the energy balance from Konjugate's own states, under explicit Euler and Runge–Kutta 4.

Directory benchmarks/thermal/heatExchanger/ · models counterflow10.kjt, counterflow40.kjt, parallel10.kjt, parallel40.kjt · numerical reference reference.json: numpy.linalg.solve for the discretised equilibria; the effectiveness-NTU relations; scipy.linalg.expm for the transient (SciPy 1.13.1, NumPy 2.0.2)

Counterflow: steady temperatures along the exchanger40 segments: Konjugate's final state against the discretised equilibrium and the continuous exchanger
  • Continuous exchanger, hot
  • Continuous exchanger, cold
  • Konjugate, hot segments
  • Konjugate, cold segments
  • Discretised equilibrium
2803003203403600.20.40.60.8Position along the exchanger (fraction of its length)Temperature (K)
Data table
Position along the exchanger (fraction of its length)Continuous exchanger, hotContinuous exchanger, coldKonjugate, hot segmentsKonjugate, cold segmentsDiscretised equilibrium
0.0125359316.2358316.3358
0.0375356.9315.2356.1315.3356.1
0.0625355314.2354.2314.4354.2
0.0875353313.2352.3313.4352.3
0.1125351.2312.3350.5312.5350.5
0.1375349.3311.3348.7311.6348.7
0.1625347.5310.4347310.7347
0.1875345.8309.6345.3309.8345.3
0.2125344.1308.7343.6309343.6
0.2375342.4307.9342308.1342
0.2625340.8307.1340.4307.3340.4
0.2875339.2306.3338.9306.5338.9
0.3125337.6305.5337.3305.8337.3
0.3375336.1304.7335.9305335.9
0.3625334.6304334.4304.3334.4
0.3875333.2303.3333303.5333
0.4125331.7302.6331.6302.8331.6
0.4375330.4301.9330.3302.2330.3
0.4625329301.2329301.5329
0.4875327.7300.5327.7300.8327.7
0.5125326.4299.9326.4300.2326.4
0.5375325.2299.3325.2299.5325.2
0.5625323.9298.7324298.9324
0.5875322.7298.1322.8298.3322.8
0.6125321.6297.5321.7297.8321.7
0.6375320.4296.9320.6297.2320.6
0.6625319.3296.3319.5296.6319.5
0.6875318.2295.8318.4296.1318.4
0.7125317.2295.3317.4295.5317.4
0.7375316.1294.8316.3295316.3
0.7625315.1294.2315.3294.5315.3
0.7875314.1293.8314.4294314.4
0.8125313.2293.3313.4293.5313.4
0.8375312.2292.8312.5293312.5
0.8625311.3292.3311.6292.6311.6
0.8875310.4291.9310.7292.1310.7
0.9125309.5291.5309.8291.7309.8
0.9375308.7291309291.2309
0.9625307.9290.6308.1290.8308.1
0.9875307290.2307.3290.4307.3
Parallel flow: steady temperatures along the exchanger40 segments: Konjugate's final state against the discretised equilibrium and the continuous exchanger
  • Continuous exchanger, hot
  • Continuous exchanger, cold
  • Konjugate, hot segments
  • Konjugate, cold segments
  • Discretised equilibrium
2803003203403600.20.40.60.8Position along the exchanger (fraction of its length)Temperature (K)
Data table
Position along the exchanger (fraction of its length)Continuous exchanger, hotContinuous exchanger, coldKonjugate, hot segmentsKonjugate, cold segmentsDiscretised equilibrium
0.0125358.4290.8356.9291.6356.9
0.0375355.2292.4354293354
0.0625352.3293.8351.2294.4351.2
0.0875349.6295.2348.7295.6348.7
0.1125347.1296.4346.3296.8346.3
0.1375344.8297.6344.1297.9344.1
0.1625342.6298.7342.1299342.1
0.1875340.6299.7340.1299.9340.1
0.2125338.7300.7338.3300.8338.3
0.2375336.9301.5336.7301.7336.7
0.2625335.3302.4335.1302.4335.1
0.2875333.8303.1333.6303.2333.6
0.3125332.4303.8332.3303.9332.3
0.3375331304.5331304.5331
0.3625329.8305.1329.8305.1329.8
0.3875328.7305.7328.7305.6328.7
0.4125327.6306.2327.7306.2327.7
0.4375326.6306.7326.7306.6326.7
0.4625325.7307.1325.8307.1325.8
0.4875324.8307.6325307.5325
0.5125324308324.2307.9324.2
0.5375323.3308.3323.5308.3323.5
0.5625322.6308.7322.8308.6322.8
0.5875322309322.2308.9322.2
0.6125321.4309.3321.6309.2321.6
0.6375320.8309.6321309.5321
0.6625320.3309.9320.5309.7320.5
0.6875319.8310.1320310320
0.7125319.4310.3319.6310.2319.6
0.7375319310.5319.2310.4319.2
0.7625318.6310.7318.8310.6318.8
0.7875318.2310.9318.4310.8318.4
0.8125317.9311.1318.1311318.1
0.8375317.5311.2317.8311.1317.8
0.8625317.3311.4317.5311.3317.5
0.8875317311.5317.2311.4317.2
0.9125316.7311.6316.9311.5316.9
0.9375316.5311.8316.7311.7316.7
0.9625316.3311.9316.5311.8316.5
0.9875316.1312316.3311.9316.3
Counterflow, 10 segments: outlet temperaturesExact (matrix exponential) against Konjugate, h = 0.25 s (explicit Euler), 0.5 s (Runge–Kutta 4)
  • Exact, hot outlet
  • Exact, cold outlet
  • Konjugate, hot outlet, explicit Euler
  • Konjugate, cold outlet, explicit Euler
  • Konjugate, hot outlet, Runge–Kutta 4
29030031032002505007501,000Time (s)Temperature (K)
Data table (every 7th point; all 257 are in plots/counterflowOutletTransient.csv)
Time (s)Exact, hot outletExact, cold outletKonjugate, hot outlet, explicit EulerKonjugate, cold outlet, explicit EulerKonjugate, hot outlet, Runge–Kutta 4
0290290290290290
28294.3303.8294.2303.8294.3
56305.4310.7305.4310.8305.4
84308.1313.8308.1313.9308.1
112308.9314.9308.9314.9308.9
140309.2315.2309.2315.2309.2
168309.3315.3309.3315.3309.3
196309.3315.3309.3315.3309.3
224309.3315.3309.3315.3309.3
252309.3315.3309.3315.3309.3
280309.3315.3309.3315.3309.3
308309.3315.3309.3315.3309.3
336309.3315.3309.3315.3309.3
364309.3315.3309.3315.3309.3
392309.3315.3309.3315.3309.3
420309.3315.3309.3315.3309.3
448309.3315.3309.3315.3309.3
476309.3315.3309.3315.3309.3
504309.3315.3309.3315.3309.3
532309.3315.3309.3315.3309.3
560309.3315.3309.3315.3309.3
588309.3315.3309.3315.3309.3
616309.3315.3309.3315.3309.3
644309.3315.3309.3315.3309.3
672309.3315.3309.3315.3309.3
700309.3315.3309.3315.3309.3
728309.3315.3309.3315.3309.3
756309.3315.3309.3315.3309.3
784309.3315.3309.3315.3309.3
812309.3315.3309.3315.3309.3
840309.3315.3309.3315.3309.3
868309.3315.3309.3315.3309.3
896309.3315.3309.3315.3309.3
924309.3315.3309.3315.3309.3
952309.3315.3309.3315.3309.3
980309.3315.3309.3315.3309.3
1,008309.3315.3309.3315.3309.3

Checks

CheckWhat it measuresValueThresholdResult
counterflow10ExplicitRelativeErrorCounterflow, 10 segments: largest transient temperature error relative to range, explicit Euler, h = 0.25 s0.01285≤ 0.017✓ Pass
counterflow10ExplicitSteadyStateErrorCounterflow, 10 segments: final temperatures against the discretised model's exact equilibrium (K), explicit Euler4.04e-12≤ 1.00e-10✓ Pass
counterflow10ExplicitEnergyBalanceDefectCounterflow, 10 segments: energy stored against enthalpy in less out, from Konjugate's own states, relative to the heat exchanged, explicit Euler2.90e-14≤ 1.00e-10✓ Pass
counterflow10EffectivenessErrorCounterflow, 10 segments: Konjugate's steady effectiveness against ε-NTU (the discretisation error of 10 segments)0.03855≤ 0.049✓ Pass
counterflow10RungeKutta4RelativeErrorCounterflow, 10 segments: largest transient temperature error relative to range, Runge–Kutta 4, h = 0.5 s4.32e-6≤ 5.40e-6✓ Pass
counterflow10RungeKutta4SteadyStateErrorCounterflow, 10 segments: final temperatures against the discretised model's exact equilibrium (K), Runge–Kutta 41.76e-12≤ 1.00e-10✓ Pass
counterflow10RungeKutta4EnergyBalanceDefectCounterflow, 10 segments: energy stored against enthalpy in less out, from Konjugate's own states, relative to the heat exchanged, Runge–Kutta 49.30e-14≤ 1.00e-10✓ Pass
counterflow10ReferenceAgreementCounterflow, 10 segments: this equilibrium against SciPy's (reference.json), largest difference relative to the temperatures' magnitude1.91e-16≤ 1.00e-10✓ Pass
counterflow40ExplicitRelativeErrorCounterflow, 40 segments: largest transient temperature error relative to range, explicit Euler, h = 0.25 s0.04014≤ 0.051✓ Pass
counterflow40ExplicitSteadyStateErrorCounterflow, 40 segments: final temperatures against the discretised model's exact equilibrium (K), explicit Euler4.26e-12≤ 1.00e-10✓ Pass
counterflow40ExplicitEnergyBalanceDefectCounterflow, 40 segments: energy stored against enthalpy in less out, from Konjugate's own states, relative to the heat exchanged, explicit Euler3.33e-13≤ 1.00e-10✓ Pass
counterflow40EffectivenessErrorCounterflow, 40 segments: Konjugate's steady effectiveness against ε-NTU (the discretisation error of 40 segments)0.009982≤ 0.013✓ Pass
counterflow40RungeKutta4RelativeErrorCounterflow, 40 segments: largest transient temperature error relative to range, Runge–Kutta 4, h = 0.5 s1.14e-4≤ 1.50e-4✓ Pass
counterflow40RungeKutta4SteadyStateErrorCounterflow, 40 segments: final temperatures against the discretised model's exact equilibrium (K), Runge–Kutta 42.10e-12≤ 1.00e-10✓ Pass
counterflow40RungeKutta4EnergyBalanceDefectCounterflow, 40 segments: energy stored against enthalpy in less out, from Konjugate's own states, relative to the heat exchanged, Runge–Kutta 44.25e-13≤ 1.00e-10✓ Pass
counterflow40ReferenceAgreementCounterflow, 40 segments: this equilibrium against SciPy's (reference.json), largest difference relative to the temperatures' magnitude5.34e-16≤ 1.00e-10✓ Pass
counterflowEffectivenessErrorRatioCounterflow: effectiveness error at 10 segments over that at 40, about 4 for a first-order discretisation3.8613.47 to 4.25✓ Pass
parallel10ExplicitRelativeErrorParallel flow, 10 segments: largest transient temperature error relative to range, explicit Euler, h = 0.25 s0.01357≤ 0.017✓ Pass
parallel10ExplicitSteadyStateErrorParallel flow, 10 segments: final temperatures against the discretised model's exact equilibrium (K), explicit Euler3.64e-12≤ 1.00e-10✓ Pass
parallel10ExplicitEnergyBalanceDefectParallel flow, 10 segments: energy stored against enthalpy in less out, from Konjugate's own states, relative to the heat exchanged, explicit Euler1.03e-12≤ 1.00e-10✓ Pass
parallel10EffectivenessErrorParallel flow, 10 segments: Konjugate's steady effectiveness against ε-NTU (the discretisation error of 10 segments)0.01567≤ 0.02✓ Pass
parallel10RungeKutta4RelativeErrorParallel flow, 10 segments: largest transient temperature error relative to range, Runge–Kutta 4, h = 0.5 s4.70e-6≤ 5.90e-6✓ Pass
parallel10RungeKutta4SteadyStateErrorParallel flow, 10 segments: final temperatures against the discretised model's exact equilibrium (K), Runge–Kutta 41.48e-12≤ 1.00e-10✓ Pass
parallel10RungeKutta4EnergyBalanceDefectParallel flow, 10 segments: energy stored against enthalpy in less out, from Konjugate's own states, relative to the heat exchanged, Runge–Kutta 45.60e-15≤ 1.00e-10✓ Pass
parallel10ReferenceAgreementParallel flow, 10 segments: this equilibrium against SciPy's (reference.json), largest difference relative to the temperatures' magnitude3.69e-16≤ 1.00e-10✓ Pass
parallel40ExplicitRelativeErrorParallel flow, 40 segments: largest transient temperature error relative to range, explicit Euler, h = 0.25 s0.04221≤ 0.053✓ Pass
parallel40ExplicitSteadyStateErrorParallel flow, 40 segments: final temperatures against the discretised model's exact equilibrium (K), explicit Euler3.64e-12≤ 1.00e-10✓ Pass
parallel40ExplicitEnergyBalanceDefectParallel flow, 40 segments: energy stored against enthalpy in less out, from Konjugate's own states, relative to the heat exchanged, explicit Euler9.50e-13≤ 1.00e-10✓ Pass
parallel40EffectivenessErrorParallel flow, 40 segments: Konjugate's steady effectiveness against ε-NTU (the discretisation error of 40 segments)0.003903≤ 0.0049✓ Pass
parallel40RungeKutta4RelativeErrorParallel flow, 40 segments: largest transient temperature error relative to range, Runge–Kutta 4, h = 0.5 s1.19e-4≤ 1.50e-4✓ Pass
parallel40RungeKutta4SteadyStateErrorParallel flow, 40 segments: final temperatures against the discretised model's exact equilibrium (K), Runge–Kutta 41.65e-12≤ 1.00e-10✓ Pass
parallel40RungeKutta4EnergyBalanceDefectParallel flow, 40 segments: energy stored against enthalpy in less out, from Konjugate's own states, relative to the heat exchanged, Runge–Kutta 43.75e-13≤ 1.00e-10✓ Pass
parallel40ReferenceAgreementParallel flow, 40 segments: this equilibrium against SciPy's (reference.json), largest difference relative to the temperatures' magnitude3.83e-15≤ 1.00e-10✓ Pass
parallelEffectivenessErrorRatioParallel flow: effectiveness error at 10 segments over that at 40, about 4 for a first-order discretisation4.0153.61 to 4.42✓ Pass
effectivenessReferenceAgreementε-NTU here against the independent Python evaluation (reference.json)0≤ 1.00e-12✓ Pass
transientReferenceAgreementCounterflow, 10 segments: this exact transient against SciPy's expm at each sample (reference.json)7.73e-15≤ 1.00e-10✓ Pass
transientOrderExplicitCounterflow, 10 segments: observed order of the transient error in h, explicit Euler (fitted over every h)1.0180.95 to 1.1✓ Pass
transientOrderRungeKutta4Counterflow, 10 segments: observed order of the transient error in h, Runge–Kutta 4 (fitted over every h)4.143.93 to 4.35✓ Pass
All 12 result rows
CaseMethodh (s)SubstepsHorizon (s)Max abs errorRMSERelative errorConservation errorSteady-state errorObserved orderStepsSubsteps runEvaluationsNote
Counterflow, 10 segments: segment temperaturesexplicit Euler0.2511,0240.8070.027780.012852.90e-144.04e-12–4,09698,3001.80e5ε Konjugate 0.723779, discretised exact 0.723779, ε-NTU 0.762325; conservation = energy-balance defect / heat exchanged
Counterflow, 10 segments: segment temperaturesRunge–Kutta 40.511,0242.43e-44.71e-64.32e-69.30e-141.76e-12–2,04849,1503.60e5ε Konjugate 0.723779, discretised exact 0.723779, ε-NTU 0.762325; conservation = energy-balance defect / heat exchanged
Counterflow, 40 segments: segment temperaturesexplicit Euler0.2511,0242.5750.070320.040143.33e-134.26e-12–4,0963.44e56.72e5ε Konjugate 0.752342, discretised exact 0.752342, ε-NTU 0.762325; conservation = energy-balance defect / heat exchanged
Counterflow, 40 segments: segment temperaturesRunge–Kutta 40.511,0240.0072958.50e-51.14e-44.25e-132.10e-12–2,0481.72e51.34e6ε Konjugate 0.752342, discretised exact 0.752342, ε-NTU 0.762325; conservation = energy-balance defect / heat exchanged
Counterflow: ε-NTU (continuous)analytic–1––––––––––ε = 0.762325; NTU = 1.9139, C_r = 0.5
Parallel flow, 10 segments: segment temperaturesexplicit Euler0.2511,0240.80850.035030.013571.03e-123.64e-12–4,09698,3001.80e5ε Konjugate 0.613229, discretised exact 0.613229, ε-NTU 0.628898; conservation = energy-balance defect / heat exchanged
Parallel flow, 10 segments: segment temperaturesRunge–Kutta 40.511,0242.42e-44.72e-64.70e-65.60e-151.48e-12–2,04849,1503.60e5ε Konjugate 0.613229, discretised exact 0.613229, ε-NTU 0.628898; conservation = energy-balance defect / heat exchanged
Parallel flow, 40 segments: segment temperaturesexplicit Euler0.2511,0242.5850.096490.042219.50e-133.64e-12–4,0963.44e56.72e5ε Konjugate 0.624995, discretised exact 0.624995, ε-NTU 0.628898; conservation = energy-balance defect / heat exchanged
Parallel flow, 40 segments: segment temperaturesRunge–Kutta 40.511,0240.0072788.57e-51.19e-43.75e-131.65e-12–2,0481.72e51.34e6ε Konjugate 0.624995, discretised exact 0.624995, ε-NTU 0.628898; conservation = energy-balance defect / heat exchanged
Parallel flow: ε-NTU (continuous)analytic–1––––––––––ε = 0.628898; NTU = 1.9139, C_r = 0.5
Counterflow, 10 segments: error order in hexplicit Euler–1––––––1.018–––errors 2.65e-2, 1.29e-2, 6.34e-3, 3.15e-3, 1.57e-3; pairwise 1.042, 1.020, 1.010, 1.005
Counterflow, 10 segments: error order in hRunge–Kutta 4–1––––––4.14–––errors 8.19e-5, 4.32e-6, 2.48e-7, 1.49e-8; pairwise 4.244, 4.122, 4.061

Fluid network

Three tanks in a loop joined by three pipes with inertia and friction, one with a pump and one with a valve that closes to 30 %: levels, flows and pressures against SciPy, and the water's total volume from Konjugate's own states, under explicit Euler and Runge–Kutta 4.

Directory benchmarks/fluid/pipeNetwork/ · models pipeNetwork.kjt · numerical reference reference.json: solve_ivp DOP853, rtol = 1e-13, atol = 1e-15, in pieces between the valve's kinks; Radau at rtol = 1e-10 as a check (SciPy 1.13.1, NumPy 2.0.2)

Fluid network: tank levelsSciPy DOP853 against Konjugate, h = 0.0625 s; the valve closes to 30 % at 300–305 s
  • Reference, upper reservoir
  • Konjugate, upper reservoir, explicit Euler
  • Reference, middle tank
  • Konjugate, middle tank, explicit Euler
  • Reference, sump
  • Konjugate, sump, explicit Euler
1234560200400600Time (s)Level (m)
Data table (every 8th point; all 301 are in plots/pipeNetworkLevels.csv)
Time (s)Reference, upper reservoirKonjugate, upper reservoir, explicit EulerReference, middle tankKonjugate, middle tank, explicit EulerReference, sumpKonjugate, sump, explicit Euler
0223344
162.0522.0524.0854.0873.6043.603
322.1362.1364.4854.4883.4143.413
482.2142.2144.664.6613.3043.303
642.2842.2844.7624.7633.2233.223
802.3462.3464.8234.8243.1613.161
962.4012.4014.8584.8593.1133.113
1122.4492.4494.8784.8783.0753.075
1282.492.494.8884.8883.0443.044
1442.5262.5274.8924.8923.0183.018
1602.5582.5584.8924.8922.9982.997
1762.5842.5854.894.8912.982.98
1922.6082.6084.8884.8882.9662.966
2082.6282.6284.8844.8842.9542.953
2242.6452.6454.8814.8812.9432.943
2402.6592.664.8774.8772.9352.935
2562.6722.6724.8744.8742.9272.927
2722.6832.6834.8714.8712.9212.921
2882.6922.6924.8684.8682.9162.916
3042.7232.7234.824.8212.9112.911
3203.063.0594.2014.2022.8932.893
3363.3653.3653.7283.7282.8472.847
3523.6383.6373.3783.3792.7822.782
3683.8793.8783.1223.1222.7072.707
3844.094.092.9332.9332.6292.629
4004.2744.2742.7892.7892.5542.555
4164.4324.4322.6772.6772.4862.486
4324.5684.5682.5872.5872.4252.425
4484.6834.6842.5142.5142.3732.373
4644.7814.7812.4532.4532.3292.329
4804.8624.8622.4022.4022.2912.291
4964.934.932.3592.3592.2612.26
5124.9854.9852.3242.3242.2352.235
5285.0315.0312.2952.2952.2142.214
5445.0685.0692.2712.2712.1972.197
5605.0995.0992.2512.2512.1842.184
5765.1235.1232.2352.2352.1732.173
5925.1435.1432.2222.2222.1642.164
Fluid network: pipe flowsSciPy DOP853 against Konjugate, h = 0.0625 s
  • Reference, pump pipe
  • Konjugate, pump pipe, explicit Euler
  • Reference, valve pipe
  • Konjugate, valve pipe, explicit Euler
  • Reference, return pipe
  • Konjugate, return pipe, explicit Euler
-0.00500.0050.010.0150.020.0250200400600Time (s)Flow (m³/s)
Data table (every 8th point; all 301 are in plots/pipeNetworkFlows.csv)
Time (s)Reference, pump pipeKonjugate, pump pipe, explicit EulerReference, valve pipeKonjugate, valve pipe, explicit EulerReference, return pipeKonjugate, return pipe, explicit Euler
0000000
160.020070.020070.01740.017390.0056830.005653
320.019540.019540.016990.016990.013390.01341
480.019190.019180.016870.016870.014820.01483
640.01890.018890.016830.016830.015610.01562
800.018650.018650.016830.016830.016110.01612
960.018450.018450.016850.016850.016440.01645
1120.018280.018280.016890.016890.016670.01667
1280.018130.018130.016930.016930.016820.01683
1440.018010.018010.016960.016960.016930.01694
1600.01790.01790.0170.0170.017010.01702
1760.017810.017810.017030.017030.017070.01707
1920.017740.017740.017070.017070.017120.01712
2080.017670.017670.017090.017090.017150.01715
2240.017610.017610.017120.017120.017170.01717
2400.017560.017560.017140.017140.017190.01719
2560.017520.017520.017160.017160.017210.01721
2720.017490.017490.017170.017170.017220.01722
2880.017460.017460.017190.017190.017230.01723
3040.017410.017410.0099010.0099040.017180.01718
3200.01670.01670.0065940.0065940.015140.01514
3360.015920.015920.0068970.0068970.013240.01324
3520.015140.015140.0071290.0071290.011780.01178
3680.014360.014360.0073090.0073090.010730.01073
3840.013610.013610.0074510.0074510.010010.01001
4000.01290.012910.0075650.0075650.009530.009529
4160.012250.012250.0076580.0076580.0092160.009215
4320.011650.011650.0077340.0077340.0090010.009
4480.011110.011110.0077980.0077980.0088440.008843
4640.010630.010630.0078510.0078510.0087210.008721
4800.010210.010210.0078950.0078950.008620.00862
4960.0098480.0098480.0079310.0079310.0085350.008535
5120.0095390.0095380.0079610.0079610.0084620.008462
5280.0092760.0092760.0079850.0079850.0083990.008399
5440.0090570.0090560.0080050.0080060.0083450.008345
5600.0088740.0088730.0080220.0080220.0082990.008299
5760.0087230.0087230.0080350.0080350.008260.00826
5920.00860.0085990.0080460.0080460.0082280.008228
Fluid network: pump outlet pressureGauge pressure, derived from the sump level and the pump flow
  • Reference
  • Konjugate, explicit Euler
  • Konjugate, Runge–Kutta 4
1401501601701800200400600Time (s)Pressure (kPa)
Data table (every 8th point; all 301 are in plots/pipeNetworkPumpPressure.csv)
Time (s)ReferenceKonjugate, explicit EulerKonjugate, Runge–Kutta 4
0176.6176.6176.6
16150.6150.6150.6
32149.9149.8149.9
48149.5149.5149.5
64149.3149.3149.3
80149.2149.2149.2
96149.2149.2149.2
112149.1149.1149.1
128149.1149.1149.1
144149.1149.1149.1
160149.1149.1149.1
176149.1149.1149.1
192149.2149.2149.2
208149.2149.2149.2
224149.2149.2149.2
240149.2149.2149.2
256149.2149.2149.2
272149.2149.2149.2
288149.2149.2149.2
304149.3149.2149.3
320150.4150.4150.4
336151.3151.3151.3
352152152152
368152.6152.6152.6
384153153153
400153.3153.3153.3
416153.5153.5153.5
432153.7153.7153.7
448153.8153.8153.8
464154154154
480154.1154.1154.1
496154.2154.2154.2
512154.3154.3154.3
528154.3154.3154.3
544154.4154.4154.4
560154.4154.4154.4
576154.5154.5154.5
592154.5154.5154.5

Checks

CheckWhat it measuresValueThresholdResult
levelRelativeErrorExplicitTank levels: largest error relative to range, explicit Euler, h = 0.0625 s0.001068≤ 0.0014✓ Pass
flowRelativeErrorExplicitPipe flows: largest error relative to range, explicit Euler, h = 0.0625 s0.007619≤ 0.0096✓ Pass
pressureRelativeErrorExplicitPressures (tank bases and pump outlet): largest error relative to range, explicit Euler, h = 0.0625 s0.005888≤ 0.0074✓ Pass
massConservationExplicitTotal water volume Σ A h: largest drift relative to the volume, from Konjugate's own states, explicit Euler5.24e-15≤ 1.00e-10✓ Pass
orderExplicitObserved order of the error in h, explicit Euler (fitted over every h)1.0150.95 to 1.1✓ Pass
levelRelativeErrorRungeKutta4Tank levels: largest error relative to range, Runge–Kutta 4, h = 0.0625 s1.72e-9≤ 2.20e-9✓ Pass
flowRelativeErrorRungeKutta4Pipe flows: largest error relative to range, Runge–Kutta 4, h = 0.0625 s1.16e-7≤ 1.50e-7✓ Pass
pressureRelativeErrorRungeKutta4Pressures (tank bases and pump outlet): largest error relative to range, Runge–Kutta 4, h = 0.0625 s1.18e-8≤ 1.50e-8✓ Pass
massConservationRungeKutta4Total water volume Σ A h: largest drift relative to the volume, from Konjugate's own states, Runge–Kutta 43.74e-15≤ 1.00e-10✓ Pass
orderRungeKutta4Observed order of the error in h, Runge–Kutta 4 (fitted over every h)4.1643.95 to 4.38✓ Pass
referenceSelfAgreementThe reference (DOP853, rtol 1e-13) against Radau at rtol 1e-10, largest difference relative to each state's magnitude4.32e-11≤ 5.00e-10✓ Pass
All 11 result rows
CaseMethodh (s)SubstepsHorizon (s)Max abs errorRMSERelative errorConservation errorObserved orderStepsSubsteps runEvaluationsNote
Levels and flowsexplicit Euler0.2516000.011520.0011770.031542.24e-15–2,40014,40036,000relative to range: levels 4.30e-3, flows 3.15e-2, pressures 2.44e-2 (largest 6.70e+2 Pa); conservation = drift of the total volume / volume
Levels and flowsexplicit Euler0.12516000.0057315.87e-40.015412.43e-15–4,80028,80072,000relative to range: levels 2.14e-3, flows 1.54e-2, pressures 1.19e-2 (largest 3.27e+2 Pa); conservation = drift of the total volume / volume
Levels and flowsexplicit Euler0.062516000.0028592.93e-40.0076195.24e-15–9,60057,6001.44e5relative to range: levels 1.07e-3, flows 7.62e-3, pressures 5.89e-3 (largest 1.62e+2 Pa); conservation = drift of the total volume / volume
Levels and flowsexplicit Euler0.0312516000.0014281.46e-40.0037894.11e-15–19,2001.15e52.88e5relative to range: levels 5.34e-4, flows 3.79e-3, pressures 2.93e-3 (largest 8.03e+1 Pa); conservation = drift of the total volume / volume
Levels and flowsexplicit Euler0.0156316007.13e-47.31e-50.001895.61e-15–38,4002.30e55.76e5relative to range: levels 2.67e-4, flows 1.89e-3, pressures 1.46e-3 (largest 4.01e+1 Pa); conservation = drift of the total volume / volume
Error order in hexplicit Euler–1–––––1.015–––pairwise 1.034, 1.016, 1.008, 1.004
Levels and flowsRunge–Kutta 40.12516008.83e-87.64e-92.26e-63.55e-15–4,80028,8002.88e5relative to range: levels 3.30e-8, flows 2.26e-6, pressures 1.95e-7 (largest 5.35e-3 Pa); conservation = drift of the total volume / volume
Levels and flowsRunge–Kutta 40.062516004.59e-94.33e-101.16e-73.74e-15–9,60057,6005.76e5relative to range: levels 1.72e-9, flows 1.16e-7, pressures 1.18e-8 (largest 3.23e-4 Pa); conservation = drift of the total volume / volume
Levels and flowsRunge–Kutta 40.0312516002.62e-102.64e-116.56e-96.36e-15–19,2001.15e51.15e6relative to range: levels 9.79e-11, flows 6.56e-9, pressures 7.24e-10 (largest 1.99e-5 Pa); conservation = drift of the total volume / volume
Levels and flowsRunge–Kutta 40.0156316001.64e-111.73e-123.91e-104.86e-15–38,4002.30e52.30e6relative to range: levels 6.12e-12, flows 3.91e-10, pressures 4.49e-11 (largest 1.23e-6 Pa); conservation = drift of the total volume / volume
Error order in hRunge–Kutta 4–1–––––4.164–––pairwise 4.287, 4.143, 4.071

DC motor under PID speed control

A DC motor as six nodes across four domains (controller, armature, rotor, winding, housing, ambient), its speed under PID control through a setpoint step, a voltage limit and a load step: every state and the step response against SciPy, and the energy booked between domains from Konjugate's own states, under explicit Euler and Runge–Kutta 4.

Directory benchmarks/multiDomain/dcMotor/ · models dcMotor.kjt · numerical reference reference.json: solve_ivp DOP853, rtol = 1e-13, atol = 1e-15, in pieces between the setpoint and load steps; Radau at rtol = 1e-10 as a check (SciPy 1.13.1, NumPy 2.0.2)

DC motor: speed after the setpoint step200 → 400 rad/s at 4 s; SciPy DOP853 against Konjugate, h = 2^-12 s
  • Reference
  • Konjugate, explicit Euler
  • Konjugate, Runge–Kutta 4
20025030035040044.24.4Time (s)Speed (rad/s)
Data table (every 2th point; all 45 are in plots/dcMotorStepResponse.csv)
Time (s)ReferenceKonjugate, explicit EulerKonjugate, Runge–Kutta 4
3.906200200200
3.938200200200
3.969200200200
4200200200
4.031300.8301300.8
4.063348.1348.2348.1
4.094370.9371370.9
4.125382.9383382.9
4.156389.7389.7389.7
4.188393.6393.7393.6
4.219396396.1396
4.25397.5397.5397.5
4.281398.4398.4398.4
4.313399399399
4.344399.4399.4399.4
4.375399.6399.6399.6
4.406399.8399.8399.8
4.438399.8399.8399.8
4.469399.9399.9399.9
4.5399.9399.9399.9
4.531400400400
4.563400400400
4.594400400400
DC motor: winding and housing temperaturesThe load from 8 s heats the winding; its resistance rises with it
  • Reference, winding
  • Reference, housing
  • Konjugate, winding, explicit Euler
  • Konjugate, housing, explicit Euler
29329429529602.557.510Time (s)Temperature (K)
Data table (every 20th point; all 769 are in plots/dcMotorTemperatures.csv)
Time (s)Reference, windingReference, housingKonjugate, winding, explicit EulerKonjugate, housing, explicit Euler
0293.1293.1293.1293.1
0.3125293.5293.2293.5293.2
0.625293.5293.2293.5293.2
0.9375293.5293.2293.5293.2
1.25293.4293.2293.4293.2
1.563293.4293.2293.4293.2
1.875293.4293.2293.4293.2
2.188293.4293.2293.4293.2
2.5293.4293.2293.4293.2
2.813293.4293.2293.4293.2
3.125293.4293.2293.4293.2
3.438293.3293.2293.3293.2
3.75293.3293.2293.3293.2
4.063293.7293.2293.7293.2
4.375293.7293.2293.7293.2
4.688293.6293.2293.6293.2
5293.6293.2293.6293.2
5.313293.6293.2293.6293.2
5.625293.6293.3293.6293.3
5.938293.6293.3293.6293.3
6.25293.5293.3293.5293.3
6.563293.5293.3293.5293.3
6.875293.5293.3293.5293.3
7.188293.5293.3293.5293.3
7.5293.5293.3293.5293.3
7.813293.5293.3293.5293.3
8.125293.6293.3293.6293.3
8.438293.8293.4293.8293.4
8.75294.1293.4294.1293.4
9.063294.3293.4294.3293.4
9.375294.5293.4294.5293.4
9.688294.7293.4294.7293.4
10294.9293.4294.9293.4
10.31295.1293.5295.1293.5
10.63295.2293.5295.2293.5
10.94295.4293.5295.4293.5
11.25295.5293.5295.5293.5
11.56295.7293.5295.7293.5
11.88295.8293.6295.8293.6
DC motor: where the supply's energy goesKonjugate's own energy accounts, explicit Euler
  • Supply
  • Copper loss
  • Work on the load
  • Friction loss
  • Heat to ambient
05010015020025002.557.510Time (s)Energy (J)
Data table (every 20th point; all 769 are in plots/dcMotorEnergy.csv)
Time (s)SupplyCopper lossWork on the loadFriction lossHeat to ambient
000000
0.31253.8791.81600.095292.71e-4
0.6254.0241.81600.220.00124
0.93754.151.81700.3450.002902
1.254.2751.81700.470.005234
1.5634.4011.81800.5950.00821
1.8754.5261.81800.720.01181
2.1884.6521.81900.8450.01601
2.54.7771.81900.970.0208
2.8134.9031.8201.0950.02616
3.1255.0281.8201.220.03206
3.4385.1541.82101.3450.0385
3.755.2791.82101.470.04546
4.06311.233.55701.6240.05294
4.37513.733.67202.1010.06173
4.68814.253.67402.6010.07249
514.753.67603.1010.08518
5.31315.253.67803.6010.09975
5.62515.763.6804.1010.1162
5.93816.263.68204.6010.1344
6.2516.763.68405.1010.1544
6.56317.263.68605.6010.1762
6.87517.763.68806.1010.1997
7.18818.273.6906.6010.2248
7.518.773.69207.1010.2517
7.81319.273.69407.6010.2801
8.12524.844.2154.8538.0890.3102
8.43839.495.63317.38.5850.3419
8.7553.856.9929.89.0850.3756
9.06368.218.34742.39.5850.4114
9.37582.579.70654.810.080.4495
9.68896.9311.0767.310.580.4901
10111.312.4379.811.080.5334
10.31125.713.7992.311.580.5795
10.6314015.15104.812.080.6286
10.94154.416.51117.312.580.6809
11.25168.717.88129.813.080.7364
11.56183.119.24142.313.580.7952
11.88197.520.61154.814.080.8575

Checks

CheckWhat it measuresValueThresholdResult
relativeErrorExplicitEvery state (current, speeds, controller, temperatures): largest error relative to range, explicit Euler, h = 2^-12 s0.00368≤ 0.0047✓ Pass
electromechanicalBalanceExplicitSupply energy against stored + copper + friction + load, from Konjugate's own states, relative to the supply energy, explicit Euler1.22e-4≤ 1.60e-4✓ Pass
thermalBalanceExplicitCopper + friction loss against heat stored in winding and housing + heat to ambient, from Konjugate's own states, relative to the supply energy, explicit Euler1.19e-12≤ 1.00e-10✓ Pass
supplyEnergyErrorExplicitEnergy drawn from the supply against the reference, relative to its total, explicit Euler4.39e-5≤ 5.50e-5✓ Pass
riseTimeErrorExplicit10–90 % rise time after the setpoint step against the reference's, relative, explicit Euler0.002314≤ 0.0029✓ Pass
loadDipErrorExplicitSpeed dip after the load step against the reference's, relative, explicit Euler0.002316≤ 0.0029✓ Pass
orderExplicitObserved order of the error in h, explicit Euler (fitted over every h)1.0510.95 to 1.1✓ Pass
relativeErrorRungeKutta4Every state (current, speeds, controller, temperatures): largest error relative to range, Runge–Kutta 4, h = 2^-12 s5.53e-8≤ 7.20e-8✓ Pass
electromechanicalBalanceRungeKutta4Supply energy against stored + copper + friction + load, from Konjugate's own states, relative to the supply energy, Runge–Kutta 44.79e-9≤ 6.30e-9✓ Pass
thermalBalanceRungeKutta4Copper + friction loss against heat stored in winding and housing + heat to ambient, from Konjugate's own states, relative to the supply energy, Runge–Kutta 47.28e-13≤ 1.00e-10✓ Pass
supplyEnergyErrorRungeKutta4Energy drawn from the supply against the reference, relative to its total, Runge–Kutta 42.68e-10≤ 3.50e-10✓ Pass
riseTimeErrorRungeKutta410–90 % rise time after the setpoint step against the reference's, relative, Runge–Kutta 47.42e-11≤ 9.70e-11✓ Pass
loadDipErrorRungeKutta4Speed dip after the load step against the reference's, relative, Runge–Kutta 42.10e-10≤ 2.80e-10✓ Pass
orderRungeKutta4Observed order of the error in h, Runge–Kutta 4 (fitted over every h)4.2764 to 4.5✓ Pass
referenceSelfAgreementThe reference (DOP853, rtol 1e-13) against Radau at rtol 1e-10, largest difference relative to each column's magnitude1.02e-9≤ 3.00e-9✓ Pass
All 10 result rows
CaseMethodh (s)SubstepsHorizon (s)Max abs errorRMSERelative errorConservation errorObserved orderStepsSubsteps runEvaluationsNote
Currents, speeds, controller and temperaturesexplicit Euler9.77e-41121.0450.06760.016095.61e-4–12,29073,7302.33e5thermal balance 5.43e-13, supply-energy error 1.84e-4; rise time 109.619 ms (reference 110.654), load dip 15.5833 rad/s (reference 15.4391); conservation = electromechanical balance / supply energy
Currents, speeds, controller and temperaturesexplicit Euler4.88e-41120.51790.033620.0076042.54e-4–24,5801.47e54.67e5thermal balance 8.00e-13, supply-energy error 8.90e-5; rise time 110.140 ms (reference 110.654), load dip 15.5108 rad/s (reference 15.4391); conservation = electromechanical balance / supply energy
Currents, speeds, controller and temperaturesexplicit Euler2.44e-41120.25780.016770.003681.22e-4–49,1502.95e59.34e5thermal balance 1.19e-12, supply-energy error 4.39e-5; rise time 110.398 ms (reference 110.654), load dip 15.4748 rad/s (reference 15.4391); conservation = electromechanical balance / supply energy
Currents, speeds, controller and temperaturesexplicit Euler1.22e-41120.12860.0083730.0018095.95e-5–98,3005.90e51.87e6thermal balance 9.24e-13, supply-energy error 2.18e-5; rise time 110.526 ms (reference 110.654), load dip 15.4569 rad/s (reference 15.4391); conservation = electromechanical balance / supply energy
Error order in hexplicit Euler–1–––––1.051–––pairwise 1.081, 1.047, 1.025
Currents, speeds, controller and temperaturesRunge–Kutta 40.0019531120.0020232.35e-44.07e-43.80e-5–6,14436,8604.67e5thermal balance 3.03e-13, supply-energy error 9.68e-7; rise time 110.654 ms (reference 110.654), load dip 15.4391 rad/s (reference 15.4391); conservation = electromechanical balance / supply energy
Currents, speeds, controller and temperaturesRunge–Kutta 49.77e-41121.15e-41.04e-51.77e-51.56e-6–12,29073,7309.34e5thermal balance 4.57e-13, supply-energy error 5.46e-8; rise time 110.654 ms (reference 110.654), load dip 15.4391 rad/s (reference 15.4391); conservation = electromechanical balance / supply energy
Currents, speeds, controller and temperaturesRunge–Kutta 44.88e-41126.98e-65.61e-79.51e-78.29e-8–24,5801.47e51.87e6thermal balance 1.05e-12, supply-energy error 4.11e-9; rise time 110.654 ms (reference 110.654), load dip 15.4391 rad/s (reference 15.4391); conservation = electromechanical balance / supply energy
Currents, speeds, controller and temperaturesRunge–Kutta 42.44e-41124.28e-73.27e-85.53e-84.79e-9–49,1502.95e53.74e6thermal balance 7.28e-13, supply-energy error 2.68e-10; rise time 110.654 ms (reference 110.654), load dip 15.4391 rad/s (reference 15.4391); conservation = electromechanical balance / supply energy
Error order in hRunge–Kutta 4–1–––––4.276–––pairwise 4.525, 4.217, 4.106

Data centre (showcase)

Two rows of eight server racks, their aisles, an underfloor plenum, the room and three cooling units, as a graph of 26 nodes: a batch job and a cooling unit's failure, the rack inlet temperatures an operator watches and the heat each unit removes, against a model written independently in Python, with the energy balance from Konjugate's own states, under explicit Euler and Runge–Kutta 4.

Directory benchmarks/showcase/dataCentre/ · models dataCentre.kjt · numerical reference reference.json: An independently written vector ODE of the same physics; solve_ivp DOP853 at rtol = atol = 1e-12 in pieces between the batch job and the failure; Radau at rtol = 1e-9 as a check (SciPy 1.13.1, NumPy 2.0.2)

Data centre: rack inlet temperaturesBatch job at 5 min, cooling unit 2 fails at 15 min; independent Python model against Konjugate, h = 0.25 s
  • Reference, hottest rack (B1)
  • Konjugate, rack B1, explicit Euler
  • Konjugate, rack B1, Runge–Kutta 4
  • Reference, rack A4 (mid-row)
  • Konjugate, rack A4, explicit Euler
  • ASHRAE recommended limit, 27 °C
1820222426280102030Time (min)Inlet temperature (°C)
Data table (every 5th point; all 181 are in plots/dataCentreInlets.csv)
Time (min)Reference, hottest rack (B1)Konjugate, rack B1, explicit EulerKonjugate, rack B1, Runge–Kutta 4Reference, rack A4 (mid-row)Konjugate, rack A4, explicit EulerASHRAE recommended limit, 27 °C
0181818181827
0.833318.3718.3718.3718.0618.0627
1.66718.718.718.718.1218.1227
2.518.9618.9618.9618.1718.1727
3.33319.1419.1519.1418.2118.2127
4.16719.2919.2919.2918.2418.2427
519.3919.419.3918.2618.2627
5.83319.619.619.618.2818.2827
6.66719.7719.7719.7718.2918.2927
7.519.8919.8919.8918.318.327
8.33319.9919.9919.9918.3118.3127
9.16720.0520.0520.0518.3218.3227
1020.1120.1120.1118.3318.3327
10.8320.1420.1420.1418.3318.3327
11.6720.1720.1720.1718.3318.3327
12.520.1920.1920.1918.3418.3427
13.3320.2120.2120.2118.3418.3427
14.1720.2220.2220.2218.3418.3427
1520.2320.2320.2318.3418.3427
15.8324.1524.1624.1522.4722.4827
16.6724.8824.8824.8823.2323.2427
17.525.2725.2725.2723.5823.5827
18.3325.5525.5525.5523.8223.8227
19.1725.7825.7825.7824.0124.0127
2025.9725.9725.9724.1824.1827
20.8326.1226.1226.1224.3124.3127
21.6726.2526.2526.2524.4224.4227
22.526.3626.3626.3624.5224.5227
23.3326.4526.4526.4524.624.627
24.1726.5326.5326.5324.6624.6627
2526.5926.5926.5924.7224.7227
25.8326.6526.6526.6524.7724.7727
26.6726.7526.7526.7524.8724.8727
27.526.8626.8726.8624.9824.9827
28.3326.9826.9826.9825.125.127
29.1727.127.127.125.2225.2227
3027.2227.2227.2225.3425.3427
Data centre: supply, aisles and returnKonjugate (explicit Euler) against the reference
  • Reference, room return
  • Room return
  • Row B hot aisle
  • Underfloor plenum
  • Reference, row B hot aisle
  • Reference, plenum
1520253035400102030Time (min)Temperature (°C)
Data table (every 5th point; all 181 are in plots/dataCentreAir.csv)
Time (min)Reference, room returnRoom returnRow B hot aisleUnderfloor plenumReference, row B hot aisleReference, plenum
0181818181818
0.833319.6419.6420.471820.4718
1.66721.8421.8422.71822.718
2.523.6123.6124.371824.3718
3.33324.9724.9725.631825.6318
4.16726.0126.0126.581826.5818
526.8126.8227.31827.318
5.83327.7127.7128.661828.6518
6.66728.628.629.791829.7818
7.529.2929.2930.621830.6218
8.33329.8129.8231.241831.2418
9.16730.2130.2131.71831.718
1030.5130.5132.041832.0418
10.8330.7330.7332.291832.2918
11.6730.9130.9132.481832.4818
12.531.0431.0432.621832.6218
13.3331.1431.1432.731832.7318
14.1731.2231.2232.811832.8118
1531.2831.2832.871832.8718
15.8332.2432.2434.6222.534.6122.5
16.6733.4933.4935.6323.0435.6323.04
17.534.2834.2836.3523.3536.3523.34
18.3334.934.936.9423.5736.9323.57
19.1735.4135.4137.4123.7537.4123.75
2035.8335.8337.823.937.823.9
20.8336.1836.1838.1324.0238.1224.02
21.6736.4736.4738.3924.1338.3924.12
22.536.7136.7138.6124.2138.6124.21
23.3336.9236.9238.824.2838.7924.28
24.1737.0937.0938.9524.3438.9524.34
2537.2337.2339.0724.439.0724.4
25.8337.3537.3539.1824.4539.1824.45
26.6737.4637.4739.2924.5539.2924.55
27.537.5837.5839.4124.6739.4124.67
28.3337.737.739.5324.7939.5324.79
29.1737.8237.8239.6524.9139.6524.91
3037.9437.9439.7725.0339.7625.03
Data centre: cooling against IT loadAverage power over each sample interval, from Konjugate's energy accounts (explicit Euler)
  • IT load
  • Cooling unit 1
  • Cooling unit 2
  • Cooling unit 3
050100150200102030Time (min)Power (kW)
Data table (every 5th point; all 180 are in plots/dataCentreCooling.csv)
Time (min)IT loadCooling unit 1Cooling unit 2Cooling unit 3
0.16671440.29160.29160.2916
11447.7267.7267.726
1.83314416.7116.7116.71
2.66714423.8523.8523.85
3.514429.3429.3429.34
4.33314433.5533.5533.55
5.16716836.836.836.8
616840.6240.6240.62
6.83316844.2444.2444.24
7.66716847.0247.0247.02
8.516849.1249.1249.12
9.33316850.7150.7150.71
10.1716851.9151.9151.91
1116852.8352.8352.83
11.8316853.5253.5253.52
12.6716854.0654.0654.06
13.516854.4654.4654.46
14.3316854.7754.7754.77
15.1716855.02055.02
1616859.65059.65
16.8316864.55064.55
17.6716867.73067.73
18.516870.23070.23
19.3316872.28072.28
20.1716874074
2116875.42075.42
21.8316876.61076.61
22.6716877.61077.61
23.516878.44078.44
24.3316879.14079.14
25.1716879.72079.72
2616880080
26.8316880080
27.6716880080
28.516880080
29.3316880080

Checks

CheckWhat it measuresValueThresholdResult
relativeErrorExplicitEvery temperature: largest error relative to range, explicit Euler, h = 0.25 s0.00404≤ 0.0051✓ Pass
inletErrorExplicitRack inlet temperatures: largest error (K), explicit Euler0.01913≤ 0.024✓ Pass
crossingTimeErrorExplicitWhen the hottest rack inlet crosses 27 °C, against the reference (s), explicit Euler0.3006≤ 0.38✓ Pass
heatRemovedErrorExplicitHeat each cooling unit removed over the run, against the reference, relative to the largest, explicit Euler6.11e-6≤ 7.70e-6✓ Pass
energyBalanceExplicitEnergy stored against IT heat + envelope gain - heat removed, from Konjugate's own states, relative to the IT energy, explicit Euler2.85e-15≤ 1.00e-10✓ Pass
orderExplicitObserved order of the error in h, explicit Euler (fitted over every h)1.0190.95 to 1.1✓ Pass
relativeErrorRungeKutta4Every temperature: largest error relative to range, Runge–Kutta 4, h = 0.25 s1.74e-7≤ 2.30e-7✓ Pass
inletErrorRungeKutta4Rack inlet temperatures: largest error (K), Runge–Kutta 44.64e-8≤ 6.10e-8✓ Pass
crossingTimeErrorRungeKutta4When the hottest rack inlet crosses 27 °C, against the reference (s), Runge–Kutta 43.19e-6≤ 4.20e-6✓ Pass
heatRemovedErrorRungeKutta4Heat each cooling unit removed over the run, against the reference, relative to the largest, Runge–Kutta 48.48e-11≤ 1.20e-10✓ Pass
energyBalanceRungeKutta4Energy stored against IT heat + envelope gain - heat removed, from Konjugate's own states, relative to the IT energy, Runge–Kutta 47.62e-15≤ 1.00e-10✓ Pass
orderRungeKutta4Observed order of the error in h, Runge–Kutta 4 (fitted over every h)3.443 to 3.9✓ Pass
referenceSelfAgreementThe reference (DOP853, rtol 1e-12) against Radau at rtol 1e-9, largest difference relative to each temperature's magnitude1.00e-8≤ 3.00e-8✓ Pass
graphSizeNodes in the model (racks, aisles, plenum, room, cooling units, outdoors)2626 to 26✓ Pass
All 10 result rows
CaseMethodh (s)SubstepsHorizon (s)Max abs errorRMSERelative errorConservation errorObserved orderStepsSubsteps runEvaluationsNote
Every temperature (servers, exhaust, aisles, plenum, room, coils)explicit Euler111,8000.33360.0087810.016742.02e-15–1,80046,8002.09e5rack inlets 8.02e-2 K at most; hottest inlet crosses 27 °C at 1705.61 s (reference 1706.81 s); heat removed per unit within 2.45e-5; conservation = energy-balance defect / IT energy
Every temperature (servers, exhaust, aisles, plenum, room, coils)explicit Euler0.511,8000.16290.0043580.0081742.40e-15–3,60093,6004.18e5rack inlets 3.88e-2 K at most; hottest inlet crosses 27 °C at 1706.21 s (reference 1706.81 s); heat removed per unit within 1.22e-5; conservation = energy-balance defect / IT energy
Every temperature (servers, exhaust, aisles, plenum, room, coils)explicit Euler0.2511,8000.08050.0021710.004042.85e-15–7,2001.87e58.35e5rack inlets 1.91e-2 K at most; hottest inlet crosses 27 °C at 1706.51 s (reference 1706.81 s); heat removed per unit within 6.11e-6; conservation = energy-balance defect / IT energy
Every temperature (servers, exhaust, aisles, plenum, room, coils)explicit Euler0.12511,8000.040020.0010840.0020081.39e-14–14,4003.74e51.67e6rack inlets 9.49e-3 K at most; hottest inlet crosses 27 °C at 1706.66 s (reference 1706.81 s); heat removed per unit within 3.05e-6; conservation = energy-balance defect / IT energy
Error order in hexplicit Euler–1–––––1.019–––pairwise 1.034, 1.017, 1.008
Every temperature (servers, exhaust, aisles, plenum, room, coils)Runge–Kutta 4211,8000.008972.43e-43.56e-41.14e-15–90023,4004.19e5rack inlets 1.53e-4 K at most; hottest inlet crosses 27 °C at 1706.81 s (reference 1706.81 s); heat removed per unit within 4.34e-9; conservation = energy-balance defect / IT energy
Every temperature (servers, exhaust, aisles, plenum, room, coils)Runge–Kutta 4111,8001.56e-53.21e-72.64e-62.42e-15–1,80046,8008.36e5rack inlets 7.39e-6 K at most; hottest inlet crosses 27 °C at 1706.81 s (reference 1706.81 s); heat removed per unit within 1.20e-9; conservation = energy-balance defect / IT energy
Every temperature (servers, exhaust, aisles, plenum, room, coils)Runge–Kutta 40.511,8003.67e-61.40e-79.88e-71.59e-15–3,60093,6001.67e6rack inlets 4.05e-7 K at most; hottest inlet crosses 27 °C at 1706.81 s (reference 1706.81 s); heat removed per unit within 4.84e-10; conservation = energy-balance defect / IT energy
Every temperature (servers, exhaust, aisles, plenum, room, coils)Runge–Kutta 40.2511,8003.67e-61.38e-71.74e-77.62e-15–7,2001.87e53.34e6rack inlets 4.64e-8 K at most; hottest inlet crosses 27 °C at 1706.81 s (reference 1706.81 s); heat removed per unit within 8.48e-11; conservation = energy-balance defect / IT energy
Error order in hRunge–Kutta 4–1–––––3.44–––pairwise 7.073, 1.418, 2.503

Modelica Standard Library examples

Four examples from the Modelica Standard Library 4.1.0 (TwoMasses, CauerLowPassAnalog, Rotational First, Translational Oscillator), rebuilt as Konjugate graphs: against the Modelica Association's published reference results and against each example's exact solution, with the published results' own accuracy measured too, under explicit and semi-implicit Euler and Runge–Kutta 4.

Directory benchmarks/modelica/standardLibrary/ · models twoMasses.kjt, cauerLowPass.kjt, first.kjt, oscillator.kjt · numerical reference reference.json: The Modelica Association's published reference results (MSL 4.1.0); scipy.linalg.expm for the exact solutions (SciPy 1.13.1, NumPy 2.0.2)

MSL Thermal.HeatTransfer.Examples.TwoMasses: mass1.TThe Modelica Association's published result (Dymola Version 2020x) against Konjugate
  • Published reference (Dymola, DASSL)
  • Konjugate, explicit Euler
  • Konjugate, Runge–Kutta 4
33034035036037038000.20.40.60.81Time (s)mass1.T
Data table (every 13th point; all 501 are in plots/mslTwoMasses.csv)
Time (s)Published reference (Dymola, DASSL)Konjugate, explicit EulerKonjugate, Runge–Kutta 4
0373.1373.1373.1
0.026371.4371.4371.4
0.052369.8369.8369.8
0.078368.2368.2368.2
0.104366.7366.7366.7
0.13365.2365.2365.2
0.156363.8363.8363.8
0.182362.4362.4362.4
0.208361361361
0.234359.7359.7359.7
0.26358.5358.5358.5
0.286357.3357.3357.3
0.312356.1356.1356.1
0.338355355355
0.364353.9353.9353.9
0.39352.9352.9352.9
0.416351.9351.9351.9
0.442350.9350.9350.9
0.468349.9349.9349.9
0.494349349349
0.52348.1348.1348.1
0.546347.3347.3347.3
0.572346.5346.5346.5
0.598345.7345.7345.7
0.624344.9344.9344.9
0.65344.2344.2344.2
0.676343.5343.4343.5
0.702342.8342.8342.8
0.728342.1342.1342.1
0.754341.4341.4341.4
0.78340.8340.8340.8
0.806340.2340.2340.2
0.832339.6339.6339.6
0.858339.1339.1339.1
0.884338.5338.5338.5
0.91338338338
0.936337.5337.5337.5
0.962337337337
0.988336.5336.5336.5
MSL Electrical.Analog.Examples.CauerLowPassAnalog: C5.vThe Modelica Association's published result (Dymola Version 2020x) against Konjugate
  • Published reference (Dymola, DASSL)
  • Konjugate, explicit Euler
  • Konjugate, Runge–Kutta 4
00.20.40.60204060Time (s)C5.v
Data table (every 26th point; all 1001 are in plots/mslCauerLowPass.csv)
Time (s)Published reference (Dymola, DASSL)Konjugate, explicit EulerKonjugate, Runge–Kutta 4
0000
1.560.01990.019890.0199
3.120.11720.11710.1172
4.680.31710.31710.3171
6.240.51530.51570.5153
7.80.58620.58670.5862
9.360.52170.52170.5217
10.920.45130.45080.4513
12.480.46960.46930.4696
14.040.52350.52390.5235
15.60.52520.52550.5252
17.160.48790.48760.4879
18.720.47940.4790.4794
20.280.50540.50550.5054
21.840.51670.51710.5167
23.40.49910.4990.4991
24.960.48690.48650.4869
26.520.4980.4980.498
28.080.50970.51010.5098
29.640.50350.50360.5035
31.20.49320.4930.4932
32.760.49580.49570.4958
34.320.50440.50460.5044
35.880.50410.50430.5041
37.440.49750.49740.4975
390.49630.49620.4963
40.560.50120.50130.5012
42.120.50310.50320.5031
43.680.49970.49970.4997
45.240.49760.49740.4976
46.80.49970.49970.4997
48.360.50180.50190.5018
49.920.50060.50060.5006
51.480.49870.49860.4987
53.040.49930.49920.4993
54.60.50080.50090.5008
56.160.50070.50080.5007
57.720.49950.49950.4995
59.280.49930.49930.4993
MSL Mechanics.Rotational.Examples.First: inertia3.wThe Modelica Association's published result (Dymola Version 2020x) against Konjugate
  • Published reference (Dymola, DASSL)
  • Konjugate, explicit Euler
  • Konjugate, semi-implicit Euler
  • Konjugate, Runge–Kutta 4
-0.200.20.40.600.20.40.60.81Time (s)inertia3.w
Data table (every 13th point; all 501 are in plots/mslFirst.csv)
Time (s)Published reference (Dymola, DASSL)Konjugate, explicit EulerKonjugate, semi-implicit EulerKonjugate, Runge–Kutta 4
00000
0.0260.021260.021020.020980.02126
0.0520.21120.21080.21010.2112
0.0780.47330.47380.47190.4733
0.1040.47720.47710.47540.4772
0.130.32290.32210.32010.3229
0.1560.18280.1840.180.1828
0.182-0.02422-0.0238-0.02722-0.02419
0.208-0.1125-0.1143-0.1166-0.1125
0.2340.091520.092550.087780.09152
0.260.3030.3040.29920.303
0.2860.39030.38780.3850.3902
0.3120.44630.44710.44120.4462
0.3380.30850.3110.30380.3086
0.3640.012910.01020.0065360.01285
0.39-0.09231-0.09245-0.09851-0.09237
0.416-0.02588-0.02253-0.031-0.02576
0.4420.071890.069020.065050.07185
0.4680.29780.29610.29060.2977
0.4940.47430.47860.46850.4744
0.520.35490.3530.34740.3549
0.5460.15330.15030.14490.1532
0.5720.014830.019780.0083710.01493
0.598-0.1308-0.1314-0.1385-0.1308
0.624-0.08786-0.09271-0.09698-0.08801
0.650.18520.18970.17830.1852
0.6760.35240.35360.34480.3525
0.7020.3670.3610.3570.3669
0.7280.33090.33480.32310.331
0.7540.11440.1180.10670.1146
0.78-0.1384-0.1452-0.149-0.1386
0.806-0.1265-0.1245-0.1351-0.1266
0.8320.016890.022340.0095650.01707
0.8580.15720.15020.14660.1571
0.8840.36260.36230.35320.3625
0.910.41720.42480.40980.4174
0.9360.19590.190.18510.1958
0.962-0.006712-0.009536-0.0172-0.006865
0.988-0.101-0.09214-0.1083-0.1008
MSL Mechanics.Translational.Examples.Oscillator: mass1.sThe Modelica Association's published result (Dymola Version 2020x) against Konjugate
  • Published reference (Dymola, DASSL)
  • Konjugate, explicit Euler
  • Konjugate, semi-implicit Euler
  • Konjugate, Runge–Kutta 4
-0.5075-0.505-0.5025-0.5-0.4975-0.495-0.492500.20.40.60.81Time (s)mass1.s
Data table (every 13th point; all 501 are in plots/mslOscillator.csv)
Time (s)Published reference (Dymola, DASSL)Konjugate, explicit EulerKonjugate, semi-implicit EulerKonjugate, Runge–Kutta 4
0-0.5-0.5-0.5-0.5
0.026-0.4999-0.4999-0.4999-0.4999
0.052-0.5002-0.5002-0.5002-0.5002
0.078-0.5-0.5-0.5-0.5
0.104-0.4997-0.4997-0.4997-0.4997
0.13-0.5006-0.5006-0.5006-0.5006
0.156-0.4992-0.4992-0.4992-0.4992
0.182-0.5008-0.5008-0.5008-0.5008
0.208-0.4996-0.4996-0.4996-0.4996
0.234-0.4999-0.4998-0.4999-0.4999
0.26-0.5008-0.5008-0.5008-0.5008
0.286-0.4987-0.4986-0.4987-0.4987
0.312-0.5015-0.5016-0.5015-0.5015
0.338-0.4987-0.4987-0.4987-0.4987
0.364-0.5005-0.5006-0.5005-0.5005
0.39-0.5005-0.5005-0.5005-0.5005
0.416-0.4985-0.4984-0.4985-0.4985
0.442-0.5021-0.5023-0.5021-0.5021
0.468-0.4978-0.4976-0.4978-0.4978
0.494-0.5016-0.5018-0.5016-0.5016
0.52-0.4995-0.4995-0.4995-0.4995
0.546-0.499-0.4989-0.499-0.499
0.572-0.5022-0.5025-0.5023-0.5022
0.598-0.497-0.4967-0.497-0.497
0.624-0.5029-0.5031-0.5028-0.5029
0.65-0.4981-0.4979-0.4981-0.4981
0.676-0.5002-0.5002-0.5002-0.5002
0.702-0.5016-0.5018-0.5016-0.5016
0.728-0.4969-0.4965-0.4969-0.4969
0.754-0.5038-0.5043-0.5038-0.5038
0.78-0.4966-0.4962-0.4966-0.4966
0.806-0.5019-0.5022-0.5019-0.5019
0.832-0.5002-0.5002-0.5002-0.5002
0.858-0.4976-0.4973-0.4976-0.4976
0.884-0.504-0.5046-0.504-0.504
0.91-0.4955-0.4948-0.4955-0.4955
0.936-0.5038-0.5043-0.5037-0.5038
0.962-0.4982-0.4979-0.4982-0.4982
0.988-0.4993-0.4991-0.4992-0.4993

Checks

CheckWhat it measuresValueThresholdResult
twoMassesPublishedAccuracyTwoMasses: the published reference against the exact solution, largest error relative to range (how far it can be trusted)1.87e-5≤ 2.40e-5✓ Pass
twoMassesExactAgreementTwoMasses: this exact solution against SciPy's (reference.json)3.67e-16≤ 1.00e-10✓ Pass
twoMassesPublishedExplicitTwoMasses: Konjugate against the published reference, largest error relative to range, explicit Euler, h = 0.0005 s1.56e-4≤ 2.00e-4✓ Pass
twoMassesExactExplicitTwoMasses: Konjugate against the exact solution, largest error relative to range, explicit Euler1.67e-4≤ 2.10e-4✓ Pass
twoMassesPublishedRungeKutta4TwoMasses: Konjugate against the published reference, largest error relative to range, Runge–Kutta 4, h = 0.002 s1.87e-5≤ 2.40e-5✓ Pass
twoMassesExactRungeKutta4TwoMasses: Konjugate against the exact solution, largest error relative to range, Runge–Kutta 42.15e-13≤ 2.70e-13✓ Pass
cauerLowPassPublishedAccuracyCauerLowPassAnalog: the published reference against the exact solution, largest error relative to range (how far it can be trusted)2.62e-5≤ 3.30e-5✓ Pass
cauerLowPassExactAgreementCauerLowPassAnalog: this exact solution against SciPy's (reference.json)9.86e-15≤ 1.00e-10✓ Pass
cauerLowPassPublishedExplicitCauerLowPassAnalog: Konjugate against the published reference, largest error relative to range, explicit Euler, h = 0.0025 s0.002024≤ 0.0026✓ Pass
cauerLowPassExactExplicitCauerLowPassAnalog: Konjugate against the exact solution, largest error relative to range, explicit Euler0.002≤ 0.0025✓ Pass
cauerLowPassPublishedRungeKutta4CauerLowPassAnalog: Konjugate against the published reference, largest error relative to range, Runge–Kutta 4, h = 0.01 s2.62e-5≤ 3.50e-5✓ Pass
cauerLowPassExactRungeKutta4CauerLowPassAnalog: Konjugate against the exact solution, largest error relative to range, Runge–Kutta 41.03e-10≤ 1.40e-10✓ Pass
cauerLowPassOrderExplicitCauerLowPassAnalog: observed order of the error against the exact solution in h, explicit Euler (fitted over every h)1.0070.95 to 1.1✓ Pass
cauerLowPassOrderRungeKutta4CauerLowPassAnalog: observed order of the error against the exact solution in h, Runge–Kutta 4 (fitted over every h)4.0013.8 to 4.2✓ Pass
firstPublishedAccuracyRotational First: the published reference against the exact solution, largest error relative to range (how far it can be trusted)3.13e-4≤ 4.00e-4✓ Pass
firstExactAgreementRotational First: this exact solution against SciPy's (reference.json)1.29e-12≤ 1.00e-10✓ Pass
firstPublishedExplicitRotational First: Konjugate against the published reference, largest error relative to range, explicit Euler, h = 0.0000625 s0.01298≤ 0.017✓ Pass
firstExactExplicitRotational First: Konjugate against the exact solution, largest error relative to range, explicit Euler0.01269≤ 0.016✓ Pass
firstPublishedSemiImplicitRotational First: Konjugate against the published reference, largest error relative to range, semi-implicit Euler, h = 0.0000625 s0.03783≤ 0.048✓ Pass
firstExactSemiImplicitRotational First: Konjugate against the exact solution, largest error relative to range, semi-implicit Euler0.03783≤ 0.048✓ Pass
firstPublishedRungeKutta4Rotational First: Konjugate against the published reference, largest error relative to range, Runge–Kutta 4, h = 0.0005 s3.13e-4≤ 4.00e-4✓ Pass
firstExactRungeKutta4Rotational First: Konjugate against the exact solution, largest error relative to range, Runge–Kutta 48.40e-8≤ 1.10e-7✓ Pass
firstOrderExplicitRotational First: observed order of the error against the exact solution in h, explicit Euler (fitted over every h)1.1010.99 to 1.22✓ Pass
firstOrderRungeKutta4Rotational First: observed order of the error against the exact solution in h, Runge–Kutta 4 (fitted over every h)4.0023.9 to 4.1✓ Pass
oscillatorPublishedAccuracyTranslational Oscillator: the published reference against the exact solution, largest error relative to range (how far it can be trusted)4.81e-4≤ 6.10e-4✓ Pass
oscillatorExactAgreementTranslational Oscillator: this exact solution against SciPy's (reference.json)1.10e-11≤ 2.00e-10✓ Pass
oscillatorPublishedExplicitTranslational Oscillator: Konjugate against the published reference, largest error relative to range, explicit Euler, h = 0.0000625 s0.08796≤ 0.11✓ Pass
oscillatorExactExplicitTranslational Oscillator: Konjugate against the exact solution, largest error relative to range, explicit Euler0.08746≤ 0.11✓ Pass
oscillatorPublishedSemiImplicitTranslational Oscillator: Konjugate against the published reference, largest error relative to range, semi-implicit Euler, h = 0.0000625 s0.003449≤ 0.0044✓ Pass
oscillatorExactSemiImplicitTranslational Oscillator: Konjugate against the exact solution, largest error relative to range, semi-implicit Euler0.003187≤ 0.004✓ Pass
oscillatorPublishedRungeKutta4Translational Oscillator: Konjugate against the published reference, largest error relative to range, Runge–Kutta 4, h = 0.0005 s4.82e-4≤ 6.10e-4✓ Pass
oscillatorExactRungeKutta4Translational Oscillator: Konjugate against the exact solution, largest error relative to range, Runge–Kutta 41.33e-6≤ 1.70e-6✓ Pass
oscillatorOrderExplicitTranslational Oscillator: observed order of the error against the exact solution in h, explicit Euler (fitted over every h)1.1191 to 1.24✓ Pass
oscillatorOrderRungeKutta4Translational Oscillator: observed order of the error against the exact solution in h, Runge–Kutta 4 (fitted over every h)4.0013.9 to 4.1✓ Pass
All 20 result rows
CaseMethodh (s)SubstepsHorizon (s)Max abs errorRMSERelative errorObserved orderStepsSubsteps runEvaluationsNote
TwoMasses: published result against exactpublished (Dymola)–1–6.89e-44.50e-41.87e-5––––Dymola Version 2020x (64-bit), 2019-10-10, DASSL, tolerance 1e-06: the published reference's own error
TwoMasses: against the published resultexplicit Euler5.00e-4110.0057620.0046971.56e-4–2,0004,0004,000against the exact solution 1.67e-4 of range
TwoMasses: against the published resultRunge–Kutta 40.002116.89e-44.50e-41.87e-5–5001,0004,000against the exact solution 2.15e-13 of range
CauerLowPassAnalog: published result against exactpublished (Dymola)–1–1.87e-56.25e-62.62e-5––––Dymola Version 2020x (64-bit), 2019-10-10, DASSL, tolerance 1e-06: the published reference's own error
CauerLowPassAnalog: against the published resultexplicit Euler0.00251600.0014443.85e-40.002024–24,00096,0003.36e5against the exact solution 2.00e-3 of range
CauerLowPassAnalog: against the published resultRunge–Kutta 40.011601.87e-56.25e-62.62e-5–6,00024,0003.36e5against the exact solution 1.03e-10 of range
CauerLowPassAnalog: error order in hexplicit Euler–1––––1.007–––errors 4.03e-3, 2.00e-3, 9.97e-4; pairwise 1.010, 1.005
CauerLowPassAnalog: error order in hRunge–Kutta 4–1––––4.001–––errors 1.65e-9, 1.03e-10, 6.45e-12; pairwise 4.001, 4.001
Rotational First: published result against exactpublished (Dymola)–1–2.13e-44.93e-53.13e-4––––Dymola Version 2020x (64-bit), 2019-10-10, DASSL, tolerance 1e-06: the published reference's own error
Rotational First: against the published resultexplicit Euler6.25e-5110.0088410.0018520.01298–16,00048,00096,000against the exact solution 1.27e-2 of range
Rotational First: against the published resultsemi-implicit Euler6.25e-5110.01160.0052910.03783–16,00048,00096,000against the exact solution 3.78e-2 of range
Rotational First: against the published resultRunge–Kutta 45.00e-4112.13e-44.93e-53.13e-4–2,0006,00048,000against the exact solution 8.40e-8 of range
Rotational First: error order in hexplicit Euler–1––––1.101–––errors 2.79e-2, 1.27e-2, 6.06e-3; pairwise 1.135, 1.066
Rotational First: error order in hRunge–Kutta 4–1––––4.002–––errors 2.16e-5, 1.35e-6, 8.40e-8; pairwise 4.001, 4.003
Translational Oscillator: published result against exactpublished (Dymola)–1–4.69e-48.39e-54.81e-4––––Dymola Version 2020x (64-bit), 2019-10-10, DASSL, tolerance 1e-06: the published reference's own error
Translational Oscillator: against the published resultexplicit Euler6.25e-5110.085560.013840.08796–16,00064,0001.12e5against the exact solution 8.75e-2 of range
Translational Oscillator: against the published resultsemi-implicit Euler6.25e-5110.0017473.64e-40.003449–16,00064,0001.12e5against the exact solution 3.19e-3 of range
Translational Oscillator: against the published resultRunge–Kutta 45.00e-4114.69e-48.40e-54.82e-4–2,0008,00056,000against the exact solution 1.33e-6 of range
Translational Oscillator: error order in hexplicit Euler–1––––1.119–––errors 1.96e-1, 8.75e-2, 4.14e-2; pairwise 1.161, 1.077
Translational Oscillator: error order in hRunge–Kutta 4–1––––4.001–––errors 3.42e-4, 2.13e-5, 1.33e-6; pairwise 4.007, 3.996

FMI Reference FMUs

Four FMI 3.0 Reference FMUs from the Modelica Association (Dahlquist, VanDerPol, BouncingBall, Stair), imported into Konjugate as the app imports them and compared with FMPy's co-simulation of the same FMU, and the FMUs' own solver error against FMPy's model exchange with CVODE.

Directory benchmarks/fmi/referenceFmus/ · models (shared with the problems it studies) · numerical reference reference.json: FMPy co-simulation at each FMU's DefaultExperiment step; FMPy model exchange with CVODE, rtol 1e-10 (SciPy undefined, NumPy 2.5.5)

Reference FMU Dahlquist: xFMPy against Konjugate's import of the same FMU
  • FMPy, model exchange (CVODE)
  • FMPy, co-simulation
  • Konjugate, imported
00.20.40.60.810246810Time (s)x
Data table (every 3th point; all 101 are in plots/referenceFmuDahlquist.csv)
Time (s)FMPy, model exchange (CVODE)FMPy, co-simulationKonjugate, imported
0111
0.30.74080.7290.729
0.60.54880.53140.5314
0.90.40660.38740.3874
1.20.30120.28240.2824
1.50.22310.20590.2059
1.80.16530.15010.1501
2.10.12250.10940.1094
2.40.090720.079770.07977
2.70.067210.058150.05815
30.049790.042390.04239
3.30.036880.03090.0309
3.60.027320.022530.02253
3.90.020240.016420.01642
4.20.0150.011970.01197
4.50.011110.0087280.008728
4.80.008230.0063630.006363
5.10.0060970.0046380.004638
5.40.0045170.0033810.003381
5.70.0033460.0024650.002465
60.0024790.0017970.001797
6.30.0018360.001310.00131
6.60.001369.55e-49.55e-4
6.90.0010086.96e-46.96e-4
7.27.47e-45.08e-45.08e-4
7.55.53e-43.70e-43.70e-4
7.84.10e-42.70e-42.70e-4
8.13.04e-41.97e-41.97e-4
8.42.25e-41.43e-41.43e-4
8.71.67e-41.04e-41.04e-4
91.23e-47.62e-57.62e-5
9.39.14e-55.55e-55.55e-5
9.66.77e-54.05e-54.05e-5
9.95.02e-52.95e-52.95e-5
Reference FMU VanDerPol: x0FMPy against Konjugate's import of the same FMU
  • FMPy, model exchange (CVODE)
  • FMPy, co-simulation
  • Konjugate, imported
-3-2-1012305101520Time (s)x0
Data table (every 51th point; all 2001 are in plots/referenceFmuVanDerPol.csv)
Time (s)FMPy, model exchange (CVODE)FMPy, co-simulationKonjugate, imported
0222
0.511.8321.8341.834
1.021.4921.4941.494
1.531.0071.0111.011
2.040.24840.26010.2601
2.55-0.9745-0.9554-0.9554
3.06-1.92-1.932-1.932
3.57-1.959-1.978-1.978
4.08-1.69-1.711-1.711
4.59-1.288-1.315-1.315
5.1-0.6999-0.7415-0.7415
5.610.26850.19270.1927
6.121.5471.491.49
6.632.0082.0252.025
7.141.8521.8851.885
7.651.5191.561.56
8.161.0451.1031.103
8.670.31070.40980.4098
9.18-0.8865-0.7345-0.7345
9.69-1.892-1.851-1.851
10.2-1.97-2.004-2.004
10.71-1.712-1.764-1.764
11.22-1.319-1.388-1.388
11.73-0.747-0.8528-0.8528
12.240.18910.0051040.005104
12.751.4781.2961.296
13.262.0052.0072.007
13.771.871.9251.925
14.281.5451.6211.621
14.791.0821.191.19
15.30.37110.54760.5476
15.81-0.7974-0.5152-0.5152
16.32-1.86-1.736-1.736
16.83-1.98-2.022-2.022
17.34-1.733-1.814-1.814
17.85-1.349-1.458-1.458
18.36-0.7927-0.9559-0.9559
18.870.112-0.1676-0.1676
19.381.4051.0841.084
19.8921.9671.967
Reference FMU BouncingBall: hFMPy against Konjugate's import of the same FMU
  • FMPy, model exchange (CVODE)
  • FMPy, co-simulation
  • Konjugate, imported
00.20.40.60.810123Time (s)h
Data table (every 8th point; all 301 are in plots/referenceFmuBouncingBall.csv)
Time (s)FMPy, model exchange (CVODE)FMPy, co-simulationKonjugate, imported
0111
0.080.96860.9690.969
0.160.87440.87520.8752
0.240.71750.71860.7186
0.320.49770.49930.4993
0.40.21520.21720.2172
0.480.084320.080550.08055
0.560.27860.27720.2772
0.640.41020.41110.4111
0.720.47890.48220.4822
0.80.48480.49050.4905
0.880.4280.43610.4361
0.960.30840.31880.3188
1.040.1260.13880.1388
1.120.07240.063320.06332
1.20.18610.18320.1832
1.280.23710.24030.2403
1.360.22520.23460.2346
1.440.15060.16610.1661
1.520.013160.03480.0348
1.60.085450.078080.07808
1.680.11760.12110.1211
1.760.087050.10140.1014
1.840.0042830.018840.01884
1.920.054750.051310.05131
20.042430.054890.05489
2.080.016660.0022970.002297
2.160.023410.030990.03099
2.240.012320.0016380.001638
2.320.0029590.012750.01275
2.40.0027150.0081640.008164
2.486.00e-40.0033170.003317
2.562.23e-3080.0014610.001461
2.642.23e-3082.23e-3082.23e-308
2.722.23e-3082.23e-3082.23e-308
2.82.23e-3082.23e-3082.23e-308
2.882.23e-3082.23e-3082.23e-308
2.962.23e-3082.23e-3082.23e-308
Reference FMU Stair: counterFMPy against Konjugate's import of the same FMU
  • FMPy, model exchange (CVODE)
  • FMPy, co-simulation
  • Konjugate, imported
024681002468Time (s)counter
Data table (every 2th point; all 46 are in plots/referenceFmuStair.csv)
FMPy, model exchange (CVODE): Time (s)counterFMPy, co-simulation: Time (s)counterKonjugate, imported: Time (s)counter
010101
0.410.410.41
0.810.810.81
1.221.221.22
1.621.621.62
232323
2.432.432.43
2.832.832.83
3.243.243.24
3.643.643.64
454545
4.454.454.45
4.854.854.85
5.265.265.26
5.665.665.66
676767
6.476.476.47
6.876.876.87
7.287.287.28
7.687.687.68
898989
8.498.498.49
8.898.898.89
Reference FMUs: FMPy's co-simulation and model exchangeWhat an import should reproduce (co-simulation), and the FMU's equations solved accurately (model exchange)
  • VanDerPol x0, model exchange
  • VanDerPol x0, co-simulation
  • BouncingBall h, model exchange
  • BouncingBall h, co-simulation
-3-2-1012305101520Time (s)Value
Data table (every 51th point; all 2001 are in plots/referenceFmusFmpy.csv)
VanDerPol x0, model exchange: Time (s)ValueVanDerPol x0, co-simulation: Time (s)ValueBouncingBall h, model exchange: Time (s)ValueBouncingBall h, co-simulation: Time (s)Value
02020101
0.511.8320.511.8340.510.16450.510.1617
1.021.4921.021.4941.020.17751.020.1897
1.531.0071.531.0111.530.0057771.530.01397
2.040.24842.040.26012.040.012732.040.03314
2.55-0.97452.55-0.95542.552.23e-3082.550.001042
3.06-1.923.06-1.932––––
3.57-1.9593.57-1.978––––
4.08-1.694.08-1.711––––
4.59-1.2884.59-1.315––––
5.1-0.69995.1-0.7415––––
5.610.26855.610.1927––––
6.121.5476.121.49––––
6.632.0086.632.025––––
7.141.8527.141.885––––
7.651.5197.651.56––––
8.161.0458.161.103––––
8.670.31078.670.4098––––
9.18-0.88659.18-0.7345––––
9.69-1.8929.69-1.851––––
10.2-1.9710.2-2.004––––
10.71-1.71210.71-1.764––––
11.22-1.31911.22-1.388––––
11.73-0.74711.73-0.8528––––
12.240.189112.240.005104––––
12.751.47812.751.296––––
13.262.00513.262.007––––
13.771.8713.771.925––––
14.281.54514.281.621––––
14.791.08214.791.19––––
15.30.371115.30.5476––––
15.81-0.797415.81-0.5152––––
16.32-1.8616.32-1.736––––
16.83-1.9816.83-2.022––––
17.34-1.73317.34-1.814––––
17.85-1.34917.85-1.458––––
18.36-0.792718.36-0.9559––––
18.870.11218.87-0.1676––––
19.381.40519.381.084––––
19.89219.891.967––––

Checks

CheckWhat it measuresValueThresholdResult
DahlquistUnchangedDahlquist.fmu is the published Reference FMU (its SHA-256 matches reference.json)11 to 1✓ Pass
DahlquistOwnSolverErrorDahlquist: FMPy's co-simulation of the FMU against its model exchange with CVODE, largest error relative to range (the FMU's internal solver)0.0192≤ 0.025✓ Pass
DahlquistModelExchangeAgainstExactDahlquist: FMPy's model exchange with CVODE against the closed form, relative to range8.03e-10≤ 1.10e-9✓ Pass
DahlquistImportAgainstFmpyDahlquist: Konjugate's import against FMPy's co-simulation of the same FMU, largest difference over every compared output and sample0≤ 1.00e-12✓ Pass
VanDerPolUnchangedVanDerPol.fmu is the published Reference FMU (its SHA-256 matches reference.json)11 to 1✓ Pass
VanDerPolOwnSolverErrorVanDerPol: FMPy's co-simulation of the FMU against its model exchange with CVODE, largest error relative to range (the FMU's internal solver)0.1194≤ 0.15✓ Pass
VanDerPolImportAgainstFmpyVanDerPol: Konjugate's import against FMPy's co-simulation of the same FMU, largest difference over every compared output and sample0≤ 1.00e-12✓ Pass
BouncingBallUnchangedBouncingBall.fmu is the published Reference FMU (its SHA-256 matches reference.json)11 to 1✓ Pass
BouncingBallOwnSolverErrorBouncingBall: FMPy's co-simulation of the FMU against its model exchange with CVODE, largest error relative to range (the FMU's internal solver)0.4868≤ 0.61✓ Pass
BouncingBallImportAgainstFmpyBouncingBall: Konjugate's import against FMPy's co-simulation of the same FMU, largest difference over every compared output and sample0≤ 1.00e-12✓ Pass
StairUnchangedStair.fmu is the published Reference FMU (its SHA-256 matches reference.json)11 to 1✓ Pass
StairOwnSolverErrorStair: FMPy's co-simulation of the FMU against its model exchange with CVODE, largest error relative to range (the FMU's internal solver)0≤ 1.00e-12✓ Pass
StairModelExchangeAgainstExactStair: FMPy's model exchange with CVODE against the closed form, relative to range0≤ 1.00e-12✓ Pass
StairImportAgainstFmpyStair: Konjugate's import against FMPy's co-simulation of the same FMU, largest difference over every compared output and sample0≤ 1.00e-12✓ Pass
importedAsPublishedReference FMUs that Konjugate imports and runs as published: every one of the 4 (of four) with a binary for aarch64-darwin must44 to 4✓ Pass
binaryFoundAsShippedReference FMUs for which the app's choice of binary for aarch64-darwin disagrees with whether the FMU ships one under binaries/aarch64-darwin/ (none may)00 to 0✓ Pass
All 8 result rows
CaseMethodh (s)SubstepsHorizon (s)Max abs errorRMSERelative errorNote
Dahlquist: FMPy co-simulation against model exchange (CVODE)FMPy0.11100.01920.0081080.0192the FMU's own fixed-step solver against its equations solved accurately; not Konjugate's error
Dahlquist: Konjugate's import against FMPy co-simulationimported FMU (co-simulation)0.1110000the same FMU stepped the same way, one fmi3DoStep per global step
VanDerPol: FMPy co-simulation against model exchange (CVODE)FMPy0.011200.63950.14110.1194the FMU's own fixed-step solver against its equations solved accurately; not Konjugate's error
VanDerPol: Konjugate's import against FMPy co-simulationimported FMU (co-simulation)0.01120000the same FMU stepped the same way, one fmi3DoStep per global step
BouncingBall: FMPy co-simulation against model exchange (CVODE)FMPy0.01133.6180.20770.4868the FMU's own fixed-step solver against its equations solved accurately; not Konjugate's error
BouncingBall: Konjugate's import against FMPy co-simulationimported FMU (co-simulation)0.0113000the same FMU stepped the same way, one fmi3DoStep per global step; h_ft not compared (an FMI 3 alias, not a port of its own)
Stair: FMPy co-simulation against model exchange (CVODE)FMPy0.2110000the FMU's own fixed-step solver against its equations solved accurately; not Konjugate's error
Stair: Konjugate's import against FMPy co-simulationimported FMU (co-simulation)0.2110000the same FMU stepped the same way, one fmi3DoStep per global step

Timing and memory

Measured on this computer only: after 1 warm-up run, 7 timed runs of each case, one at a time, under caffeinate. The headline is each case's minimum, since noise only adds time; the median, interquartile range and the minimum over the median say how steady the runs were. Wall time is the whole engine process (start, reading the model, integrating, writing the result); engine compute is the integration alone, as the engine reports it. Peak memory is the engine process's maximum resident set size.

Waited for a quiet computer (--wait-for-quiet): limits an idle baseline plus 1.0; full gate: AC power, no compiler, build tool, Konjugate Electron, interaction test or Docker, 1-minute load below 2.7 for 120 s; before every timed run: AC power, none of those, other processes below 1.02 cores. 232 timed runs checked, 0 found it busy and waited again; 121 s waited in all; 1-minute load average at the timed runs, including the benchmark's own: median 1.96, largest 2.38.

At the start: load 1.64 / 2.4 / 4.57; Now drawing from 'AC Power'; Note: No thermal warning level has been recorded; Note: No performance warning level has been recorded; Note: No CPU power status has been recorded. At the end: load 2.04 / 2.35 / 4.32; Now drawing from 'AC Power'; Note: No thermal warning level has been recorded; Note: No performance warning level has been recorded; Note: No CPU power status has been recorded.

ProblemCaseRunsMinimum wall (ms)Median (ms)Min – max (ms)IQR (ms)Min / medianMinimum engine compute (ms)Substeps per secondPeak memory (MiB)
thermal/rcNetworkNetwork, 8,192 steps of 2 s720.6621.1220.66 – 22.50.66940.9786.6767.36e69.391
electrical/rlcCircuitsSeries circuit, 65,536 steps, explicit737.0138.1237.01 – 40.11.10.97118.776.98e69.031
electrical/rlcCircuitsCoupled pair, 65,536 steps, semi-implicit7240.2242.1240.2 – 244.51.7820.992219.88.94e59.609
mechanical/harmonicOscillator262,144 steps, explicit770.1570.5570.15 – 70.880.27590.99437.197.05e610.19
mechanical/harmonicOscillator262,144 steps, semi-implicit7167.7168.7167.7 – 174.72.6060.9941351.94e610.31
mechanical/harmonicOscillator262,144 steps, Verlet7284.6285.7284.6 – 292.22.1030.996251.41.04e610.38
mechanical/pendulum131,072 steps, semi-implicit794.1295.3894.12 – 97.140.62610.98771.231.84e69.719
mechanical/pendulum131,072 steps, Verlet7153154.3153 – 155.61.3730.992130.61.00e69.766
population/lotkaVolterraOne node, 131,072 steps749.0849.4649.08 – 51.20.24470.99225.445.15e610.28
population/lotkaVolterraTwo nodes, 131,072 steps753.854.0353.8 – 58.781.5140.99629.168.99e610.33
coupling/graphSplitOne node, h = 2^-10 s750.3250.5850.32 – 53.360.62520.99531.292.09e610.16
coupling/graphSplitThree nodes, H = 2^-6 s with 16 substeps735.5835.9235.58 – 37.090.49450.99121.719.06e610.27
coupling/graphSplitThree nodes, h = 2^-10 s755.0155.5755.01 – 56.530.46290.99035.065.61e610.22
oscillators/vanDerPolμ = 10, Runge–Kutta 4, 51,200 steps758.5160.2158.51 – 60.411.760.97234.031.50e615.28
chaos/lorenzOne node with tangent equations, Runge–Kutta 4, 66,560 steps7113.2113.8113.2 – 116.90.66710.99581.328.18e520.55
chaos/lorenzTwo nodes, explicit Euler, 98,304 steps750.6551.3650.65 – 54.41.0070.98627.257.21e611.02
mechanical/doublePendulumRunge–Kutta 4, 15,360 steps751.8953.6751.89 – 55.571.180.96736.624.19e510.47
mechanical/bouncingBallRunge–Kutta 4 with its contacts located, 4,096 steps720.5421.0520.54 – 22.651.0110.9768.0765.07e59.219
electrical/switchedCircuitsBuck, switched, 2^20 steps, explicit7672.9675.4672.9 – 679.32.9490.996552.15.70e611.25
electrical/switchedCircuitsBuck, switched, 2^20 steps, Runge–Kutta 474,7034,7214,703 – 4,73815.930.9964,5976.84e512.06
thermal/heatExchangerCounterflow, 40 segments, 2^16 steps, explicit7660.9663.8660.9 – 667.81.3790.996589.19.34e617.95
thermal/heatExchangerCounterflow, 40 segments, 2^14 steps, Runge–Kutta 47487.5492.3487.5 – 493.42.4190.990462.32.98e618.8
fluid/pipeNetworkFluid network, 2^16 steps, explicit783.2883.6883.28 – 86.771.40.99561.246.42e610.06
fluid/pipeNetworkFluid network, 9,600 steps, Runge–Kutta 4766.366.7666.3 – 67.720.30050.99351.571.12e610.56
multiDomain/dcMotorDC motor, 2^17 steps, explicit7203.6204.2203.6 – 206.91.0460.997168.84.66e613.16
multiDomain/dcMotorDC motor, 49,152 steps, Runge–Kutta 47501.9504.2501.9 – 521.73.4520.995480.96.13e512.97
showcase/dataCentreData centre, 57,600 steps, explicit7406.7409.2406.7 – 410.41.7920.994364.24.11e614.23
showcase/dataCentreData centre, 7,200 steps, Runge–Kutta 47236.3237.5236.3 – 240.21.0220.995216.48.65e514.92
modelica/standardLibraryCauer filter, 24,000 steps, explicit737.9838.2537.98 – 38.460.22580.99320.114.77e611.53
modelica/standardLibraryRotational First, 16,000 steps, explicit721.0321.3521.03 – 24.510.30530.9856.1517.80e69.875

Machine

Model
MacBook Air, MacBookAir10,1
Processor
Apple M1
Cores
8 logical (4 performance, 4 efficiency)
Memory
8 GiB
Operating system
macOS 26.7.3 (25G342) · arm64
Power
AC Power · 80 % battery · Low Power Mode off
Load average at start
1.64 / 2.4 / 4.57
Node.js
v24.19.0
Engine build
RelWithDebInfo, -O2, the shipped build · Apple clang version 21.0.0 (clang-2100.3.34.2) · -O2 -g -DNDEBUG -std=c++20 -arch arm64 -mmacosx-version-min=11.0