Skip to content

StiffDDE/Oregonator_wpd: tolerances for the corrected (oscillating) RADAR5 Oregonator - #1905

Merged
ChrisRackauckas merged 7 commits into
SciML:masterfrom
ChrisRackauckas-Claude:fix-dde-oregonator
Oct 2, 2026
Merged

ChrisRackauckas merged 7 commits into
SciML:masterfrom
ChrisRackauckas-Claude:fix-dde-oregonator

Conversation

@ChrisRackauckas-Claude

@ChrisRackauckas-Claude ChrisRackauckas-Claude commented Sep 23, 2026 •

Copy link
Copy Markdown
Member

Please ignore until reviewed by @ChrisRackauckas.

Release gate resolved. SciML/DiffEqProblemLibrary.jl#233 is merged and shipped in registered DDEProblemLibrary v0.1.10 (tagged 2026-09-27). The branch was rebased onto current origin/master, benchmarks/StiffDDE/Manifest.toml now resolves the registered 0.1.10 (no [sources] pin), and the page was re-woven on the committed environment under Julia 1.12.7 — exit 0, all ten figures. Details and quoted output are under Evidence below.

Root cause

The published reference solution is flat (u1 ≈ 0, u2 ≈ 1e-5 on [0, 100.5]) because DDEProblemLibrary.prob_dde_RADAR5_oregonator has the wrong sign on k₁ A u₂ in the u1 equation (it shared a = -k₁*A*u[2] - k₂*u[1]*v between both components). RADAR5's dr-oregon.f has F(1) = +kM1*A*Y(2) - .... The page's own equation is correct. Fixed upstream in SciML/DiffEqProblemLibrary.jl#233 (with a test that fails before and passes after).

With the correct RHS the solution spans about 1e-11 to 1e-5 (u2 decays from 1e-5, then periodic relaxation spikes). The page's old absolute tolerances (1e-4 to 1e-11) sit far above that scale, so none of the solves resolved the spikes.

Fix (this PR)

  • Scale absolute tolerances with the solution as the RADAR5 driver does (ATOL = RTOL * 1e-9): high tolerances abstols = 1e-10:1e-13 (reltols unchanged, 1e-1:1e-4), low tolerances abstols = 1e-14:1e-17 (reltols 1e-5:1e-8). The reference abstol goes from 1e-14 to 1e-21 (reltol 1e-14).
  • Every dropped solver point is now named on the page: TRBDF2 returns Unstable near t = 70.4 at the loosest high-tolerance pair (SDIRK and stiff-vs-non-stiff diagrams); Tsit5 and BS3 return Unstable near t ≈ 68 and t ≈ 28 at the same pair; DP5's surviving loosest point is the least accurate in the diagram (final error ≈ 1.5e-7, roughly 40% of u2 at t_end ≈ 3.6e-7).
  • The low-tolerance block keeps Rosenbrock23 and raises maxiters to Int(1e7): it needs about 7×10⁴ to 2.4×10⁶ accepted steps per solve (measured; retcode Success), and the diagram now shows it is much more expensive there instead of losing it to MaxIters.
  • The prose no longer claims the tolerances are "far below the solution scale" (the loosest abstol, 1e-10, is above min u1 ≈ 5e-11); it now says they are scaled with the solution as in the RADAR5 driver.
  • The SDIRK paragraph states the phase-sensitivity of error_estimate = :final without comparing to the Rosenbrock diagrams, which are non-monotone too.

This changes the tolerances being benchmarked. That is the judgment call to review.

Evidence

  • Manifest diff (this update): julia +1.12 --project=benchmarks/StiffDDE -e 'using Pkg; Pkg.update("DDEProblemLibrary")' → DDEProblemLibrary 0.1.9 → 0.1.10 is the only registered package that changes. Every other diff line is a Julia stdlib/JLL entry re-resolved because julia_version moves 1.11.9 → 1.12.7 (CompilerSupportLibraries_jll, Downloads, LibCURL_jll, LibGit2_jll, LibSSH2_jll, LinearAlgebra, MozillaCACerts_jll, NetworkOptions, OpenBLAS_jll, OpenLibm_jll, OpenSSL_jll, PCRE2_jll, Pkg, SparseArrays, SuiteSparse_jll, Zlib_jll, libblastrampoline_jll, nghttp2_jll, p7zip_jll; adds JuliaSyntaxHighlighting, drops MbedTLS_jll). Note: read-benchmark-config.sh picks the CI Julia version from the Manifest's julia_version, so this page's next CI job will run on 1.12. [compat] needed no change (DDEProblemLibrary = "0.1").
  • Weave on the committed 0.1.10 env: export TMPDIR=$HOME/tmp; julia +1.12 --threads=auto --project=. benchmark.jl benchmarks/StiffDDE/Oregonator_wpd.jmd → exit 0, ten figures. The woven markdown/StiffDDE/Oregonator_wpd.md uses the fixed problem and identifies the release:
    • import DDEProblemLibrary: prob_dde_RADAR5_oregonator
    • sol = solve(prob_dde_RADAR5_oregonator, MethodOfSteps(Rodas5P()); reltol = 1e-14, abstol = 1e-21)
    • [f42792ee] DDEProblemLibrary v0.1.10 (Pkg status footer)
  • The reference figure shows the periodic relaxation spikes (flat under 0.1.9). The weave log's dt_epsilon abort warnings are exactly the documented drops: At t=70.3625… (TRBDF2, once per SDIRK diagram and the stiff-vs-non-stiff diagram), At t=68.4530… (Tsit5), At t=27.4951… (BS3). No MaxIters warnings; both low-tolerance figures include all four Rosenbrock23 points.
  • Per-solver re-verification on the registered env (probes replaying the page's exact tolerance vectors and maxiters): reference retcode=Success, u2(100.5) = 3.559e-7, 107157 accepted steps; SDIRK final errors span 2.3e-9–3.5e-8 and are non-monotone; Rosenbrock23 low-tolerance step counts 67695 / 231679 / 757319 / 2422490 (identical to the earlier measurement); DP5 loosest final error 1.48e-7; Tsit5's loosest abort lands at t = 68.45. Under Julia 1.12 + registered 0.1.10 the abort points and the phase-sensitive DP5 endpoint shifted slightly from the Julia 1.11 measurements below (48.13 → 68.45 for Tsit5; ~5.7e-6 → 1.5e-7 for DP5) — the prose was updated to the new numbers.
  • Earlier evidence (pinned 0.1.10 @ b273aa9, Julia 1.11): CI weave at 13ffaae: run https://github.com/SciML/SciMLBenchmarks.jl/actions/runs/36097618940, job Run: benchmarks/StiffDDE — SUCCESS, all five StiffDDE pages. Local weave of the page → exit 0. Per-solver runs (DelayDiffEq 6.4.0, OrdinaryDiffEqRosenbrock 2.7.3, OrdinaryDiffEqSDIRK 2.9.4, OrdinaryDiffEqCore 4.17.2, DiffEqDevTools 3.6.3): SDIRK final errors 2.3e-9–1.85e-7 non-monotone; Tsit5 abort at t = 48.13.
  • NonStiffDDE left untouched: its pages use prob_dde_DDETST_A1/A2 (Mackey–Glass, Wheldon–Kirk–Finlay), not the RADAR5 Oregonator.

Review responses

  • (blocking, r1+r2) Release gate (registered fixed library) — resolved: update NonStiffDDE benchmarks #233 merged, DDEProblemLibrary 0.1.10 is in General, the Manifest is bumped with no [sources] pin, and the page was re-woven on the committed env (exit 0). Prose was re-checked against the fresh numbers and corrected where the environment shifted them (Tsit5 abort t ≈ 68, DP5 loosest error ≈ 1.5e-7, SDIRK range to ≈ 4e-8, Rosenbrock23 full step range).
  • (blocking, r1) Committed env ran the buggy problem — resolved by the registered 0.1.10 bump (the earlier [sources] pin had already been reverted).
  • (blocking, r1+r2) No CI weave — one ran green at 13ffaae (link above) and the page now also weaves on the committed env. CI will re-weave the StiffDDE folder on this head.
  • (blocking, r1) Silently dropped solver points — all are named in the prose now, including TRBDF2's second dropped point in the stiff-vs-non-stiff diagram.
  • (non-blocking, r2) Rosenbrock23 removal was avoidable — agreed; it is back in the block with maxiters = Int(1e7), and the page now states the measured full range 7×10⁴ to 2.4×10⁶ accepted steps.
  • (non-blocking, r2) SDIRK/Rosenbrock comparison — dropped; the paragraph now only describes the SDIRK behaviour (non-monotone, phase-sensitive final error).
  • (non-blocking, r1) "far below the solution scale" — reworded to "scaled with the solution, as in the RADAR5 driver".
  • Upstream PR update NonStiffDDE benchmarks #233 state at the time: all its checks passed except tests / Core (julia 1, ubuntu-latest, x86), which failed with GitError: failed to stat '/etc/gitconfig' inside Aqua's persistent_tasks test — a runner-image regression, since the identical failure appeared on an unrelated branch two days later and update NonStiffDDE benchmarks #233 only touched lib/DDEProblemLibrary files. It is now merged regardless.

Not fixed / not verified

  • A CI weave of the committed 0.1.10 Manifest — the green run at 13ffaae used the [sources] pin; this head has the registered bump and a local weave, and CI will re-run the folder job on push.
  • DP5's loosest-point final error varies between machines and Julia versions (5.7e-6 and 1.1e-5 in earlier environments, 1.48e-7 under registered 0.1.10 + Julia 1.12.7); the page now states the value measured on the committed env.
  • Tsit5's loosest-pair abort point is similarly environment-sensitive (48.13 under Julia 1.11, 68.45 under Julia 1.12.7); the page states the 1.12 value.

Risk assessment (current head 3873bdb)

  • Risk: low
  • Blast radius: one benchmark page (benchmarks/StiffDDE/Oregonator_wpd.jmd) and the StiffDDE Manifest. The only registered package bump is DDEProblemLibrary 0.1.9 → 0.1.10. The Manifest was re-resolved under Julia 1.12.7 (previously 1.11.9), so CI weaves the StiffDDE folder on Julia 1.12. No package code or public API changes.
  • Evidence: a local weave at this head exits 0. An independent re-run of the committed environment reproduces every prose number to the printed digit, and all five StiffDDE pages weave on Julia 1.12.7.
  • Independent review: Claude Code (Opus 5.5), round 2, rated it low with high confidence (VERDICT: MERGE). It found the Julia 1.12 move acceptable. Before merge, check that the CI weave still shows the Tsit5 abort near t ≈ 68, a DP5 error of ~40% of u2, and an SDIRK range top of ~4e-8, since these shift slightly between Julia versions.
  • Merge: auto-merge candidate once the CI StiffDDE weave is green and those three numbers match.

🤖 Generated with Devin CLI 3000.11.3 (model: SWE-2 High)

Local Devin CLI session 1e449d1a-c91c-4c3d-bd02-6aae6f54552f (no shareable URL)

🤖 Updated by Devin CLI 3000.11.3 (model: swe-2-max)

Local Devin CLI session (no shareable URL); transcript under ~/sandbox/tmp_20260923_090949_54257 job rv1905b


Independent review (Devin CLI / fusion-claude-opus-5-5-high-sidekick-swe-2-medium)

VERDICT: CHANGES

Risk assessment

  • Risk: medium. It is one page, but the tolerance change only makes sense for a problem definition that is not in the committed environment.
  • Blast radius: the published StiffDDE/Oregonator_wpd page. There are no code or harness changes and no new dependencies.
  • Evidence: the tolerance rationale holds up. RADAR5's OREGONATOR/dr-oregon.f does set ATOL=RTOL*1.D-9, and its F(1) has +kM1*A*Y(2). I confirmed both from the RADAR5-V2.1 tarball. I ran the problem with the fix from DDEProblemLibrary: fix sign error in RADAR5 Oregonator (u1 equation) DiffEqProblemLibrary.jl#233 dev'd in, using the benchmark's own env (DelayDiffEq 6.4.0, OrdinaryDiffEqRosenbrock 2.7.3, OrdinaryDiffEqCore 4.17.2, DiffEqDevTools 3.6.3). The new reference solve works. However, the committed Manifest still pins the buggy DDEProblemLibrary 0.1.9, no CI weave of this page has ever run, and some solver points drop out silently. The PR does not disclose the dropped points.
  • Independent review: this review. There is also an earlier review from pankgeorg (Codex, gpt-6-astra), which found the same Manifest blocker.
  • Merge: needs review. The PR is a draft and is blocked on an upstream fix, as it says itself.
Full review

VERDICT: CHANGES

Review of #1905 at head 6ba12e539504752492a6afde47d81131eb26fcfd. The PR changes one file, benchmarks/StiffDDE/Oregonator_wpd.jmd (+10/−5).

Risk assessment

  • Risk: medium. It is one page, but the tolerance change only makes sense for a problem definition that is not in the committed environment.
  • Blast radius: the published StiffDDE/Oregonator_wpd page. There are no code or harness changes and no new dependencies.
  • Evidence: the tolerance rationale holds up. RADAR5's OREGONATOR/dr-oregon.f does set ATOL=RTOL*1.D-9, and its F(1) has +kM1*A*Y(2). I confirmed both from the RADAR5-V2.1 tarball. I ran the problem with the fix from DDEProblemLibrary: fix sign error in RADAR5 Oregonator (u1 equation) DiffEqProblemLibrary.jl#233 dev'd in, using the benchmark's own env (DelayDiffEq 6.4.0, OrdinaryDiffEqRosenbrock 2.7.3, OrdinaryDiffEqCore 4.17.2, DiffEqDevTools 3.6.3). The new reference solve works. However, the committed Manifest still pins the buggy DDEProblemLibrary 0.1.9, no CI weave of this page has ever run, and some solver points drop out silently. The PR does not disclose the dropped points.
  • Independent review: this review. There is also an earlier review from pankgeorg (Codex, gpt-6-astra), which found the same Manifest blocker.
  • Merge: needs review. The PR is a draft and is blocked on an upstream fix, as it says itself.

Blocking findings

  1. The committed environment still runs the buggy problem. benchmarks/StiffDDE/Manifest.toml:252-256 pins DDEProblemLibrary 0.1.9 (dbb4929…). DDEProblemLibrary: fix sign error in RADAR5 Oregonator (u1 equation) DiffEqProblemLibrary.jl#233 is still OPEN, and the General registry's highest version is 0.1.9 (confirmed via gh api). If this merged as-is, CI would weave the flat, wrong-sign problem with the new 1e-10…1e-17 abstols. The new prose ("periodic relaxation spikes", explicit methods now have points) would then describe a figure that does not exist. The PR body says as much. This is a hard gate: bump the Manifest to a registered 0.1.10 in this PR first.

  2. No CI weave has ever run for this page. The first run's Run: benchmarks/StiffDDE/Oregonator_wpd.jmd job (https://github.com/SciML/SciMLBenchmarks.jl/actions/runs/35886759334/job/107277944857) shows runner_name: "" and steps: []. It was cancelled after 24 h in the queue without ever being picked up by a self-hosted, benchmark runner. The current run (https://github.com/SciML/SciMLBenchmarks.jl/actions/runs/36085772363) was still at "Detect Changed Benchmarks: pending" when I checked. The only evidence the page weaves is the author's local run against an uncommitted dev'd library. After the Manifest bump, a green weave job is required.

  3. Solver points silently disappear, and neither the page nor the PR body says so. I confirmed this by running each solver with the page's exact tolerances and maxiters. DiffEqDevTools records an unsuccessful retcode as NaN, and the plot recipe drops NaN points (DiffEqDevTools/src/benchmark.jl, around the "Unsuccessful retcode, give NaN error and time" branches).

    • Low tolerances, maxiters = Int(1e5): Rosenbrock23 returns MaxIters at 3 of 4 tolerances (abstol 1e-15/1e-16/1e-17 reach t = 45.6 / 11.6 / 2.67 of 100.5). It keeps one point, which in practice drops it from the low-tolerance diagram. The PR body's "Low tolerances: errors span about 1e-16 to 1e-8" does not mention this. The rule for this repo is no dropped solvers without a documented reason. Either raise maxiters for that block, remove Rosenbrock23 from it with a sentence saying why, or state the gap in the prose.
    • High-tolerance SDIRK, loosest point (1e-10, 1e-1): TRBDF2 returns Unstable at t = 70.4, so its point is dropped.
    • Stiff vs non-stiff, loosest point: Tsit5 (Unstable at t = 48.1) and BS3 (Unstable at t = 27.5) are dropped. DP5 returns Success, but its final error is 1.14e-5. That is about 30× larger than the solution itself (u2(end) = 3.56e-7). The point is plotted, but it is meaningless.

    Explicit methods failing at loose tolerances on a stiff problem is expected. That part is not a defect in itself. The issue is that the PR body's "Tsit5, BS3 and DP5 now have points" leaves it out, and the Rosenbrock23 low-tolerance loss is a regression in coverage that nobody mentioned.

Non-blocking findings

  • The tolerance changes are justified, not loosened. Every abstol goes down, i.e. gets stricter. That matches the RADAR5 driver's ATOL = RTOL*1e-9, which I checked in dr-oregon.f line 78. Reltols are unchanged. No solver is removed from any setups. The reference (Rodas5P, reltol 1e-14, abstol 1e-21) completes: retcode=Success, 107157 accepted steps, 4.0 s. It agrees with a 1e-12/1e-19 reference to [1.96e-18, 5.53e-16] at t_end, so it is accurate enough for the 3e-16 errors the lowest points reach (Rodas5 at 1e-17/1e-8 gave 3.0e-16).
  • The prose overstates at the loose end (Oregonator_wpd.jmd:43-45: "all absolute tolerances on this page are set far below the solution scale"). My run gives min u1 = 5.06e-11, but the loosest abstol is 1e-10, which is above it. Suggest "scaled with the solution, as in the RADAR5 driver" instead.
  • The SDIRK high-tolerance diagrams still show the pathology that motivated this PR. Final errors for all five SDIRK methods sit between about 5e-9 and 6.5e-8 at every tolerance from 1e-1 to 1e-4, and they are not monotone (Kvaerno5: 4.8e-9 at the loosest, 2.6e-8 at the tightest). The PR's own argument ("every solver … gave the same final error … none of them resolved the spikes") applies to this section too, and the PR does not address it. error_estimate = :final on a relaxation oscillator is phase-sensitive, which may be part of the cause. It is worth a sentence, or a tighter reltol range for the SDIRK block. I did not check whether that range would fix it.
  • Prose claims mostly match my spot checks. At (1e-13, 1e-4): Rosenbrock23 2.5e-10 / 0.024 s, Rodas5P 9.3e-10 / 0.0044 s, Tsit5 2.5e-9 / 0.035 s, BS3 1.6e-10 / 0.028 s, DP5 1.3e-8 / 0.036 s. That fits "Tsit5 and DP5 more expensive than Rosenbrock23 and Rodas5P" and "BS3 costs about as much as Rosenbrock23 at the smallest errors". "DP5 at the loosest tolerance takes several seconds": I measured 0.50 s on an idle M2 Max, while the author timed on a machine with load 300+. The timing is noise-dependent, and that loosest DP5 point is inaccurate anyway (see above).
  • A non-stiff method (BS3) matching Rosenbrock23 sits awkwardly with the unchanged sentence "This problem is extremely stiff". This is not caused by this PR, but the new results make the tension visible.
  • The PR body's "with only the library fix, every point was ~1.8e-7" did not reproduce. At the old loosest tolerance (1e-4, 1e-1) I got Rosenbrock23 5.4e-8 and Rodas5P 3.56e-7 (Rodas5P's u2(end) ≈ 0). The qualitative point, that the old tolerances don't resolve the solution, still holds. This is a claim about intermediate state, not about the final PR.
  • There are no narrating comments, no scope creep, no new dependencies, and no license issues. Runic and typos pass on this head.

What I ran

Confirmed by running:

  • gh pr view/diff/checks 1905, gh run list --branch fix-dde-oregonator, and gh api on the cancelled weave job (0 steps, no runner). gh api on the General registry D/DDEProblemLibrary/Versions.toml (latest is 0.1.9). gh pr view 233 -R SciML/DiffEqProblemLibrary.jl (OPEN).
  • Downloaded http://www.unige.ch/~hairer/radar5-v2.1.tar and read OREGONATOR/dr-oregon.f: ATOL=RTOL*1.D-9 (line 78), F(1)= kM1*A*Y(2) - … (line 204), XEND=100.5, initial values 1e-10/1e-5.
  • Cloned SciMLBenchmarks at 6ba12e5 and DiffEqProblemLibrary PR branch at b273aa9. Set up julia +1.11 --project=benchmarks/StiffDDE with Pkg.develop(path=…/lib/DDEProblemLibrary) and ran two scripts, /tmp/rev1905/check.jl and /tmp/rev1905/check2.jl (outputs in /tmp/rev1905/check.out and /tmp/rev1905/check2.out). They cover the RHS sanity check (du[1] = −8.58692e-5, which is the fixed value), the page's reference solve plus an accuracy cross-check, and a per-solver retcode/final-error sweep over the page's exact tolerance vectors and maxiters for the low-tolerance and SDIRK blocks, with spot checks for the Rosenbrock and stiff-vs-non-stiff blocks.

What I did not verify

  • A full weave of the page (julia --threads=auto --project=. benchmark.jl benchmarks/StiffDDE/Oregonator_wpd.jmd), which the repo's AGENTS.md names as the authoritative check. I did not run it. My checks call solve directly with the page's settings and do not go through WorkPrecisionSet or plotting.
  • The rendered figures. I did not look at any plot, including the author's.
  • Behaviour against a registered DDEProblemLibrary 0.1.10, which does not exist yet.
  • Timing comparisons beyond single @elapsed samples on this laptop.
  • Rodas4/Rodas5 in the high-tolerance Rosenbrock block and L2/L∞ error estimates. I only checked final error.

Links


Reviewed by an AI agent: harness Devin CLI, model fusion-claude-opus-5-5-high-sidekick-swe-2-medium. No local session URL is available. Scratch artifacts are in /tmp/rev1905/.


🤖 Posted by an AI agent — orchestrator: Devin Sidekick on behalf of @ChrisRackauckas · reviewer: Devin CLI / fusion-claude-opus-5-5-high-sidekick-swe-2-medium
Conversation: local session; review transcript ~/sandbox/fleet-master/jobs/909/log-SciMLBenchmarks.jl-1905.txt on Chris's Mac


Independent re-review (Devin CLI / fusion-claude-opus-5-5-high-sidekick-swe-2-medium)

VERDICT: CHANGES

Risk assessment

  • Risk: medium. The page content is now correct. I wove it locally and it passes. What keeps the risk at medium is how the dependency is pinned: a SciML master environment would depend on a personal fork, and CI has not woven anything yet.
  • Blast radius: the benchmarks/StiffDDE environment. Because Manifest.toml and Project.toml changed, CI re-weaves all five StiffDDE pages. The only code change in DDEProblemLibrary 0.1.10 is the Oregonator RHS (I read the diff of DDEProblemLibrary: fix sign error in RADAR5 Oregonator (u1 equation) DiffEqProblemLibrary.jl#233), so the numbers on Robertson and QuorumSensing should not move. I did not weave those pages.
  • Evidence: I wove Oregonator_wpd.jmd locally at this head with the committed env. It exited 0 in 2m27s, and I looked at the reference, Rosenbrock, SDIRK, stiff-vs-non-stiff and low-tolerance figures. The CI weave job is queued with no runner.
  • Independent review: this review. The previous review of this PR was also mine (CHANGES, at 6ba12e5).
  • Merge: needs review.
Full review

VERDICT: CHANGES

Re-review of #1905 at head 13ffaae016d295c7b44e7c51b9a62aab980d8d31. The new commit is 13ffaae ("pin fixed DDEProblemLibrary and document drops"). It touches benchmarks/StiffDDE/{Manifest.toml, Project.toml, Oregonator_wpd.jmd}.

Risk assessment

  • Risk: medium. The page content is now correct. I wove it locally and it passes. What keeps the risk at medium is how the dependency is pinned: a SciML master environment would depend on a personal fork, and CI has not woven anything yet.
  • Blast radius: the benchmarks/StiffDDE environment. Because Manifest.toml and Project.toml changed, CI re-weaves all five StiffDDE pages. The only code change in DDEProblemLibrary 0.1.10 is the Oregonator RHS (I read the diff of DDEProblemLibrary: fix sign error in RADAR5 Oregonator (u1 equation) DiffEqProblemLibrary.jl#233), so the numbers on Robertson and QuorumSensing should not move. I did not weave those pages.
  • Evidence: I wove Oregonator_wpd.jmd locally at this head with the committed env. It exited 0 in 2m27s, and I looked at the reference, Rosenbrock, SDIRK, stiff-vs-non-stiff and low-tolerance figures. The CI weave job is queued with no runner.
  • Independent review: this review. The previous review of this PR was also mine (CHANGES, at 6ba12e5).
  • Merge: needs review.

Status of the prior blocking findings

  1. Committed env pins the buggy DDEProblemLibrary 0.1.9. Partly resolved. The env now resolves 0.1.10 at b273aa9. I confirmed by running that Pkg.instantiate() succeeds and gives du = [-8.58692e-5, -8.69628e-5], which is the fixed sign. It gets there through a [sources] git pin on ChrisRackauckas-Claude/DiffEqProblemLibrary.jl, not a registered release. See Blocking 1.
  2. No CI weave has run. Not resolved. Job https://github.com/SciML/SciMLBenchmarks.jl/actions/runs/36097618940/job/107953177872 (Run: benchmarks/StiffDDE) is queued with an empty runner_name and 0 steps. My local weave passes, which lowers the risk but does not replace the job. See Blocking 2.
  3. Silently dropped solver points. Resolved. The page prose now names each omitted point: TRBDF2 Unstable at the loosest SDIRK pair, Tsit5 and BS3 Unstable at the loosest stiff-vs-non-stiff pair, and a DP5 point it calls not meaningful. It also removes Rosenbrock23 from the low-tolerance block and says why. In my weave, the only instability warnings were at t = 70.36 (TRBDF2), 48.13 (Tsit5) and 27.50 (BS3), which matches the prose. There were no MaxIters warnings in the low-tolerance block.

Blocking findings

  1. SciML master would depend on a bot account's personal fork. Project.toml adds [sources] DDEProblemLibrary = {url = "https://github.com/ChrisRackauckas-Claude/DiffEqProblemLibrary.jl.git", rev = "b273aa9…", subdir = …}, and the Manifest records repo-url on that fork. The published page footer would show that fork too; my woven markdown/StiffDDE/Oregonator_wpd.md:238 reads DDEProblemLibrary v0.1.10 `https://github.com/ChrisRackauckas-Claude/DiffEqProblemLibrary.jl.git:lib/DDEProblemLibrary#b273aa9` . DDEProblemLibrary: fix sign error in RADAR5 Oregonator (u1 equation) DiffEqProblemLibrary.jl#233 is still OPEN, and the highest version in General is 0.1.9 (checked via gh api). Both repos are in SciML, so the clean fix is quick: merge DDEProblemLibrary: fix sign error in RADAR5 Oregonator (u1 equation) DiffEqProblemLibrary.jl#233, register 0.1.10, then drop the [sources] block and its comment and re-resolve. The PR body itself still says the PR is "Blocked on … DDEProblemLibrary 0.1.10 being registered". If a stopgap is really wanted, point url at https://github.com/SciML/DiffEqProblemLibrary.jl.git: gh api repos/SciML/DiffEqProblemLibrary.jl/commits/b273aa9… resolves the commit there. I did not test Pkg fetching it from that URL.
  2. The CI weave for the touched folder has never run. The job is queued on self-hosted, benchmark with 0 steps. Earlier weave jobs on this branch were cancelled without ever getting a runner. A green Run: benchmarks/StiffDDE is needed before merge. It is the only evidence covering the other four StiffDDE pages under the new Manifest.

Non-blocking findings

  • The tolerance changes are justified. Every abstol gets stricter (high: 1e-10…1e-13, low: 1e-14…1e-17, reference 1e-21). Reltols are unchanged. This follows RADAR5's ATOL = RTOL*1e-9, which I checked in dr-oregon.f during the prior review. The DDEProblemLibrary compat tightening to 0.1.10 is appropriate.
  • The Rosenbrock23 removal from the low-tolerance block could be avoided, and its stated number is wrong. The prose (Oregonator_wpd.jmd:142-145) says the tightest pair "needs on the order of $10^7$ accepted steps". I ran Rosenbrock23 at (1e-17, 1e-8) with maxiters = Int(1e8): Success, naccept = 2422490, 5.6 s. At (1e-14, 1e-5) it took 67695 steps. So it is about 2.4e6 steps, not 1e7. The only reason the solver drops out is the maxiters = Int(1e5) choice. Raising maxiters for this block to about Int(5e6) would keep Rosenbrock23 in. That is roughly 5.6 s per solve at the tightest point, multiplied by however many timing runs WorkPrecisionSet does. At minimum, correct the figure to "about $2\times10^6$".
  • The PR body is stale for 13ffaae. It still says "The Manifest change is not committed" and "run Pkg.update … and add the Manifest change to this PR". It does not mention the [sources] pin or the new prose. It gives no weave command or output for the new commit. The commit trailer says Cursor Agent / Composer, and there is no evidence it ran anything. The claim "with only the library fix, every point was ~1.8e-7" did not reproduce in my prior review.
  • The SDIRK paragraph (jmd:87-92) contrasts SDIRK with "the Rosenbrock final-error diagrams", but those are not clean either. In my weave, the Rosenbrock final-error plot is also non-monotone. Rodas4's loosest point sits at about 4e-7 error in 2e-4 s, and Rosenbrock23 zig-zags near 3e-8. The SDIRK description itself is accurate: its final errors sit between about 3e-9 and 3e-8 and are non-monotone. Consider dropping the comparison.
  • Rodas5's tightest low-tolerance point (about 3e-16) is at the accuracy floor of the reference. In my prior review, the 1e-21/1e-14 reference differed from a 1e-19/1e-12 reference by up to 5.5e-16. Worth knowing, but not a defect.
  • Prose claims match my weave. The reference solution decays and then spikes periodically, starting around t ≈ 22. Tsit5 and DP5 cost more than Rosenbrock23 and Rodas5P at every error they reach. BS3 at about 1e-10 error costs about the same as Rosenbrock23 (≈0.028 s vs 0.024 s). DP5's loosest point has about 6e-6 error, roughly 30× the solution size at t_end. The abstol sentence now reads "scaled with the solution", which addresses my prior overstatement note.
  • There are no narrating comments in the page and no scope creep. The [sources] comment in Project.toml describes a temporary state and should go away together with the pin. No new dependencies or licenses (DDEProblemLibrary is MIT and already a dependency). Runic, typos and runic-suggestions pass on this head.

What I ran

Confirmed by running:

  • gh pr view/diff/checks 1905, gh run view 36097618940, gh api …/actions/jobs/107953177872 (queued, no runner, 0 steps), gh pr view 233 -R SciML/DiffEqProblemLibrary.jl (OPEN, head b273aa9), gh pr diff 233 (only the Oregonator RHS, a test, and the version bump), gh api on the General D/DDEProblemLibrary/Versions.toml (latest 0.1.9), and gh api for commit b273aa9 on both the fork and SciML/DiffEqProblemLibrary.jl (it resolves on both).
  • Checked out 13ffaae in /tmp/rev1905r2/SciMLBenchmarks.jl. Ran /tmp/rev1905r2/check.jl with julia +1.11 (1.11.9); output is in /tmp/rev1905r2/check.out. It instantiates the committed StiffDDE env, confirms DDEProblemLibrary v0.1.10 comes from the fork at b273aa9, runs the RHS sign check, and solves Rosenbrock23 at the low-tolerance endpoints with maxiters = 1e8.
  • julia +1.11 --threads=auto --project=. benchmark.jl benchmarks/StiffDDE/Oregonator_wpd.jmd: EXIT 0, 2m27s. Log in /tmp/rev1905r2/weave.out, output in /tmp/rev1905r2/SciMLBenchmarks.jl/markdown/StiffDDE/. I looked at figures 2, 3, 6, 9 and 10.

What I did not verify

  • Weaves of the other StiffDDE pages (Enzyme, Hepatitis, QuorumSensing, Robertson) under the new Manifest. CI will run them as a folder job, and I did not.
  • CI-runner behaviour, including whether the self-hosted runner can fetch the fork git source.
  • Pkg fetching b273aa9 from the SciML URL, which I suggest above as a stopgap.
  • Timing figures beyond the single local weave on an idle M2 Max.
  • Any registered DDEProblemLibrary 0.1.10, because none exists.

Links


Reviewed by an AI agent: harness Devin CLI, model fusion-claude-opus-5-5-high-sidekick-swe-2-medium. No session URL is available. Scratch artifacts are in /tmp/rev1905r2/.


🤖 Posted by an AI agent — orchestrator: Devin Sidekick on behalf of @ChrisRackauckas · reviewer: Devin CLI / fusion-claude-opus-5-5-high-sidekick-swe-2-medium
Conversation: local session; review transcript ~/sandbox/fleet-master/jobs/909/log-SciMLBenchmarks.jl-1905-r2.txt on Chris's Mac

Orchestrated and reviewed by 🤖 Claude Code (model: claude-opus-5-5[1m]): https://claude.ai/code/session_01Vrsu4PESdABpNaxYiTBVfd

@pankgeorg pankgeorg left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

VERDICT: CHANGES

  • P1 — commit the corrected problem dependency before merging. benchmarks/StiffDDE/Oregonator_wpd.jmd:48 still solves the imported library problem, while benchmarks/StiffDDE/Manifest.toml:252 pins DDEProblemLibrary 0.1.9 (dbb4929…). The required RHS sign correction in DiffEqProblemLibrary #233 is still open. Consequently a clean checkout does not run the corrected oscillatory model described by the new prose. A successful run with a locally developed dependency does not validate the committed environment. Update the manifest to a released version containing the fix, then obtain a successful CI weave of this page.
  • benchmarks/StiffDDE/Oregonator_wpd.jmd:60: the tolerance change itself is sensible: both sweeps now use abstol = 1e-9 * reltol, so absolute error control no longer dwarfs the small solution components. The tighter reference is appropriate once the corrected RHS is available.

Validation: inspected the committed manifest and upstream dependency PR, and checked the tolerance arithmetic. No benchmark or full suite run locally.

Reviewed head: cfccf8430bcf0e4eeb16b4ceb133731db64167c6.

CI comparison (checked 2026-09-24; each row is a failed PR job):

Job PR Default branch
Runic / Runic Format Check FAILURE SUCCESS — latest run

All these PR Runic logs report formatting in unchanged cutest_benchmark_utils.jl. That failure also occurred on the September 23 base run, but the latest default-branch Runic run is green; it should not be described as currently red on default.

Cancelled checks are incomplete validation, not passing or red test results:

Job PR Latest matching default job
Run: benchmarks/StiffDDE/Oregonator_wpd.jmd CANCELLED CANCELLED; absent from newest workflow run

🤖 Posted for @pankgeorg by an AI agent — harness: Codex CLI 0.155.0 · model: gpt-6-astra
Session: local Codex session 01a0d371-cd25-7b23-9706-a1a1fa644f9f

@ChrisRackauckas-Claude

Copy link
Copy Markdown
Member Author

[automated] Agreed on the P1. This PR can't merge until the corrected problem ships. The Manifest stays on the registered DDEProblemLibrary 0.1.9; pointing it at an unreleased branch isn't acceptable. The fix is SciML/DiffEqProblemLibrary.jl#233. Once that merges and 0.1.10 is registered, this PR gets a one-line Manifest bump and a re-weave. The PR body states that gate. The other findings (silently missing solver points, the tolerance wording, the SDIRK high-tolerance behavior) are fixed on the page. #233 has one open question: patch or breaking release. That's with @ChrisRackauckas.

🤖 Automated reply from Claude Code (model: claude-opus-5-5[1m]) on behalf of @ChrisRackauckas — https://claude.ai/code/session_01Vrsu4PESdABpNaxYiTBVfd

ChrisRackauckas and others added 5 commits September 28, 2026 02:22
…ting solution

With the RADAR5 right-hand side (DiffEqProblemLibrary.jl#233) the solution
spans 1e-11 to 1e-5, so absolute tolerances of 1e-4..1e-11 left every
solver unresolved. Scale the absolute tolerances with the solution as
the RADAR5 driver does, tighten the reference, and describe the
stiff vs non-stiff results.

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Agent-Harness: Claude Code 2.1.280
Agent-Model: claude-opus-5-5[1m]
Agent-Session: https://claude.ai/code/session_01Vrsu4PESdABpNaxYiTBVfd
Claude-Session: https://claude.ai/code/session_01Vrsu4PESdABpNaxYiTBVfd
Pin DDEProblemLibrary 0.1.10 from DiffEqProblemLibrary.jl#233 (git source
until General registers it) so CI weaves the corrected Oregonator RHS.
Document omitted TRBDF2/Tsit5/BS3 points, Rosenbrock23 MaxIters at low
tolerances, SDIRK final-error pathology, and fix the tolerance prose.

Co-Authored-By: Chris Rackauckas <[email protected]>
Agent-Harness: Cursor Agent
Agent-Model: Composer
Agent-Session: /home/crackauc/sandbox/fleet-master-jobs/fix-sb-1905/tmp/cursor-agent-logs-25022/session-2026-09-25T04-35-02-903Z-3125561-1.log
Co-authored-by: Cursor <[email protected]>
Pointing the Manifest at a git rev of the open upstream PR
(SciML/DiffEqProblemLibrary.jl#233) was expedient for getting one CI
weave of the corrected page, but the environment must not depend on an
unreleased fork branch. Back to the registered 0.1.9; the bump to the
release containing the Oregonator RHS fix happens once 0.1.10 reaches
General. The page cannot be published before that bump.

Co-Authored-By: Chris Rackauckas <[email protected]>
Agent-Harness: Devin CLI 3000.11.3
Agent-Model: SWE-2 High
Agent-Session: local Devin CLI session 1e449d1a-c91c-4c3d-bd02-6aae6f54552f (no shareable URL)
Running each WorkPrecisionSet with the page's own settings shows the
committed text understated two things. KenCarp4's final error reaches
1.85e-7 at (abstol=1e-12, reltol=1e-3), so the SDIRK range is about
2e-9 to 2e-7, not 5e-9 to 6e-8. TRBDF2 also drops its loosest point in
the stiff-vs-non-stiff diagram, not just in the SDIRK block; and DP5's
loosest final error (~1e-5) is better described relative to u2 at
t_end than "30x the solution scale", which varied 16x-32x between
machines. Rosenbrock23's low-tolerance MaxIters sentence now reports
where each interrupted solve stopped rather than extrapolating a step
count.

Co-Authored-By: Chris Rackauckas <[email protected]>
Agent-Harness: Devin CLI 3000.11.3
Agent-Model: SWE-2 High
Agent-Session: local Devin CLI session 1e449d1a-c91c-4c3d-bd02-6aae6f54552f (no shareable URL)
Raising that block's maxiters to Int(1e7) lets Rosenbrock23 finish all
four pairs (67.7k, 231.7k, 757.3k and 2.42M accepted steps, measured
locally), instead of dropping three points to MaxIters at 1e5. The
diagram now shows it is far more expensive than the Rodas/SDIRK methods
at these tolerances rather than silently omitting it. Also drop the
SDIRK paragraph's comparison to the Rosenbrock final-error diagrams,
which are non-monotone too.

Verified with a local weave (julia +1.11 --threads=16 --project=.
benchmark.jl benchmarks/StiffDDE/Oregonator_wpd.jmd, exit 0): the only
instability warnings are TRBDF2 at t=70.36, Tsit5 at t=48.13 and BS3 at
t=27.50, matching the prose.

Co-Authored-By: Chris Rackauckas <[email protected]>
Agent-Harness: Devin CLI 3000.11.3
Agent-Model: SWE-2 High
Agent-Session: local Devin CLI session 1e449d1a-c91c-4c3d-bd02-6aae6f54552f (no shareable URL)
The registered release carries the corrected RADAR5 Oregonator problem
(SciML/DiffEqProblemLibrary.jl#233) the page now describes. All other
Manifest changes are Julia stdlib/JLL entries re-resolved under Julia
1.12.7 (the manifest's julia_version moves 1.11.9 -> 1.12.7); no other
registered package changes version.

Co-Authored-By: Chris Rackauckas <[email protected]>
Agent-Harness: Devin CLI 3000.11.3
Agent-Model: swe-2-max
Agent-Session: local CLI session (no shareable URL); transcript under sandbox job rv1905b
Fresh weave and probes under Julia 1.12.7 + registered DDEProblemLibrary
0.1.10 show Tsit5's loosest-pair abort at t = 68.45 (was stated as ~48),
DP5's loosest final error at 1.5e-7 (was stated as ~1e-5 and >10x the
endpoint; actually ~40% of u2(t_end) = 3.56e-7), SDIRK final errors in
2.3e-9..3.5e-8 (tighten the stated range), and Rosenbrock23 accepted-step
counts 67695/231679/757319/2422490 (state the full range).

Co-Authored-By: Chris Rackauckas <[email protected]>
Agent-Harness: Devin CLI 3000.11.3
Agent-Model: swe-2-max
Agent-Session: local CLI session (no shareable URL); transcript under sandbox job rv1905b
@ChrisRackauckas
ChrisRackauckas marked this pull request as ready for review October 2, 2026 13:51
@ChrisRackauckas

Copy link
Copy Markdown
Member

The updated library merged?

@ChrisRackauckas
ChrisRackauckas merged commit ab000f1 into SciML:master Oct 2, 2026
14 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants