steady_state(method="integration") reports BIOMD0000000609 converged at a state with four species below zero, from which a run diverges
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 22/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- python
Research direction
The convergence check behind steady_state(method="integration") is the place to start; the payload names no file for it, so locate it first. Reproduce with the snippet in the issue on BIOMD0000000609 and confirm the returned state has negative species. Done means converged is not set for states that a run from them diverges from, or the steady-state result is rejected when species go below zero.
Written by the indexing model from the issue text.
Description
Found while moving the differential harness's steady-state checks to the per-species rule (#1887).
On BIOMD0000000609 (rr_parity corpus), steady_state(method="integration", rtol=1e-6, atol=1e-9, max_time=1e6) returns converged=True at a state with four species below zero, where a run to t = 1e6 rests with them at or above zero:
| species | steady_state() | run's end |
|---|---|---|
| Sulphate__PAPS | -1.46e-14 | 1.33e-14 |
| Paracetamol_APAP | -1.69e-14 | -1.3e-43 |
| NAPQI | -1.74e-16 | 1.1e-42 |
| GSH | -4.97e-17 | 6.87e-15 |
| Protein_adducts | 3.91e-09 | 2.28e-16 |
A run from the returned state fails: CV_CONV_FAILURE, the RHS non-finite at t = 2.12, Sulphate__PAPS = inf, Paracetamol_APAP = -5.45e+133. method="newton" does not converge (residual 4.3e25). The march first fails with the analytical Jacobian and retries with the FD one (GH#176's notice).
The whole state at rest is about 1e-14, so the old harness rule (an absolute floor of 1e3·atol = 1e-6) never judged it. The values are under the atol given, but a converged state from which a run diverges is not a steady state; at least it should not be reported converged.
Reproduce:
import bngsim
m = bngsim.Model.load("parity_checks/rr_parity/models/BIOMD0000000609/BIOMD0000000609_url.xml")
sim = bngsim.Simulator(m, method="ode")
ss = sim.steady_state(method="integration", rtol=1e-6, atol=1e-9, max_time=1e6)
print(ss.converged, dict(zip(ss.species_names, ss.concentrations)))
The nightly's steady_vs_run row for this model reads DIFF ("steady_state() converged where a run fails") from #1887 on.
- Dominant language
- Python
- Stars
- 3
- Forks
- 6
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 295
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from lanl/bngsim
-
testing
Difficulty 1/5 Under an hour Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
bug correctness concern
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
bug latent bug low priority
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
Maintainers usually reply within 1 day
-
benchmarks/README: 'perl BNG2.pl model.bngl' runs the whole protocol, not just generate_networkOpendocumentation
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
software-mansion-labs/Diplomat#20 ·
Maintainers usually reply within 1 day
-
[Windows] Hidden title bar: a maximized window restored from minimized on a secondary monitor gets the primary monitor's work area as its client areaPossibly taken @lijy91 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
libnativeapi/nativeapi#53 · 1 reaction ·
Maintainers usually reply within 1 day
-
View Counts discarded due to field name mismatchPossibly taken @rsiva0400 claimed this today. Opensite-bug triage
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Model version publishes the new UK firm entity as a personPossibly taken @vahid-ahmadi claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
PolicyEngine/policyengine.py#764 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
spcl/HPCAgent-Bench#264 ·
Maintainers usually reply within 1 day