20.40 Retry folders, the attempt ledger, and provenance
When recovery begins, nlmx creates <output>/retries/. The retries.csv file is the index for the entire sequence. Each additional attempt has a starting control stream beside a same-named result directory. This layout keeps inputs and outputs separate while making it possible to replay an attempt.
fit_out/
<stem>.ext, fit_summary.json, ... attempt 0
retries/
retries.csv
retry_01.ctl starting stream for attempt 1
retry_01/
<stem>.ext, <stem>.cov, <stem>.ctl
parameters.csv, predictions.csv
fit_summary.json, fit_command.txt
report.html, checksums.sha256, ...
retry_02.ctl only when attempt 2 is needed
retry_02/
The ledger columns are:
| Column | Interpretation |
|---|---|
attempt |
0 is the submitted run; 1...N are recovery attempts. |
starting_values |
Submitted values, autoinit estimates, random fallback, or ±15% perturbation. |
folder |
Result location relative to the parent output. . means attempt 0. |
status |
converged, not converged, or a failure description. |
ofv |
Ending objective when a usable result exists; blank/NaN for an error without results. |
converged |
Explicit Boolean minimization status. |
Use the Boolean and termination details rather than inferring convergence from a finite OFV. A nonconverged attempt can have an attractive OFV, complete plots, and even covariance output. It remains nonconverged.
The starting retry_NN.ctl and final <stem>.ctl inside retry_NN/ have different purposes. The former records the values supplied to estimation. The latter carries the ending estimates. Retain both. The generated header records the original control stream, attempt number, starting-value method, and seed, while the relative $DATA path keeps the generated stream connected to the same dataset.
For a formal run archive, retain the parent output, complete retries/ tree, original model and data checksums, executable version, command, configuration, seed, and environment details. Verify every checksums.sha256 in the winning bundle and any nonwinning bundle used in a comparison.
Common mistakes
- Reading only the last-created directory instead of
retries.csv. - Confusing
retry_01.ctlwithretry_01/<stem>.ctl. - Moving retry controls without preserving their relative data path.
- Archiving only the winning EXT and losing starting-value provenance.
Checklist
- Read every ledger row.
- Match the converged row to its folder.
- Preserve starting and final control streams.
- Verify checksums and the resolved command.
- Keep unsuccessful attempts used in decision-making.
Further reading
See the output bundle map, summary and checksum files, and the worked retry.