Troubleshooting
Symptoms, causes and where the guide explains them.
Runs that end early
statisticsisNone. A replicate ended on a budget, was canceled or failed, so the statistics are withheld (CRN-R050). Look atresult.records["termination"](chapter 3).IncompleteEnsembleWarningaftersimulate(). Some replicates ended early; the message counts them per termination and names the argument to raise.strict=Truemakes it anIncompleteEnsembleError(chapter 3).event_limitorsampling_limitin every replicate. Raisemax_events;max_sampling_stepsfollows it unless you set it yourself, in which case raise it too.max_events=Noneremoves both limits; pair it withwall_time_s(chapter 3).observation reservation exceeds budget. An event log reserves space for every replicate before the run. The hint of the error names the smallestmax_output_bytesthat admits the request; or use fewer replicates or entries (chapter 6).
Methods and models
- A run is much slower than expected. Name
method="static_direct": withoutmethodthe tree method runs (chapter 7). - Different results with another method or selector. Each uses the random numbers differently. Compare distributions, not paths (chapter 7).
CRN-R020at/methodfor a model with continuous variables. Onlymethod="hybrid"runs them (chapter 9).CRN-R031. A rate is below 2⁻⁵³ of the total rate, for example a tiny mutation probability in a huge population. Rescale the model, or run withoutmethod: the tree method resolves rules and instances separately.mtdna_directis not faster. Readmetadata["sampler"]and theCRN-R051warning, which names the check that failed (page 12a).
Python results
'Model' object does not support item assignment. Acrn.Modelis not a dictionary. Usemodel.set_stop(...), or editmodel.to_dict()and pass the dictionary (chapter 12).- No replicate stopped, though some should have. Compare the termination
with a name:
records["termination"] == "stopped". - A column holds another species than expected. Select columns by name.
Species are sorted by name, also in the raw matrices of
result.metadata(chapter 4). - A Python callback is slow. It holds the interpreter lock. Use trackers or event logs for whole ensembles (chapter 6).
Compiled models
crn.compile_loopraisesCompiledLoopError. Itsreasonsays why:"cargo_missing"(install Rust with rustup),"build_failed"(readerror.log; for a version that is not on crates.io, passsource=a checkout), or"mismatch".CRN-R020at/methodor/method/selector. The model needs another method, orautochose another selector than the linear scan: nameselector="linear"(chapter 5).
Frequent diagnostic codes
| Code | Meaning |
|---|---|
CRN-R012 | an expression error or an unknown name |
CRN-R020 | an invalid request: hash, budget, method, tracker, log or version |
CRN-R030 | an invalid rate, an overflow or an undefined stop in a replicate |
CRN-R031 | a positive rate too small to select; see above |
CRN-R040 to CRN-R045 | a budget was reached |
CRN-R050 | an incomplete ensemble; statistics withheld |
CRN-R051 | a requested fast path did not apply; the message says why |
Diagnostics lists every code.