20.19 Logging, strict mode, dry run, threads, and reproducibility
--log-file chooses transcript; otherwise log_<id>.txt. --suppress-console 1 silences terminal but not log. --no-color improves portable text. -q reduces terminal output; repeated -v increases detail. --strict promotes warnings to errors, useful for controlled pipelines after understanding warnings.
--dry-run executes validation rather than full analysis. It is a fast preflight, not proof optimization will succeed. --overwrite permits nonempty output and should be used only with deliberate artifact management.
Subjects are processed in parallel via --threads; results are designed independent of thread count. SAEM uses per-subject streams/fixed reductions. Capture CPU, threads and concurrent jobs for benchmarks. --ridge-max limits matrix stabilization in shared numeric contexts; exceeding it fails rather than hiding severe instability.
Reproducibility requires executable version, source files/checksums, command, resolved settings, environment and full output. A seed is only one component.
A reproducible execution envelope
Capture nlmx version/build, operating system, hardware, thread settings, seed, configuration, command, current working directory and hashes of inputs. Logs should include warnings and resolved paths; --suppress-console changes display, not the need to preserve a log. --no-color improves machine-readable archival logs.
--strict is valuable when warnings must block production, but first understand which warnings it promotes and qualify that behavior. --dry-run validates resolution and planned work without proving numerical execution. Use both in automation: dry resolution checks early, strict real runs in controlled environments.
Thread count can affect speed and, through floating-point reduction order, last-digit results. Define numerical tolerances rather than requiring byte-identical scientific files across platforms. A fixed seed controls supported stochastic paths but does not compensate for changed software, data or settings. Separate immutable archived results from regenerable presentation assets.
Common mistakes
Do not silence logs with quiet, treat dry-run as fit, benchmark debug builds, or overwrite a pivotal bundle. Strict mode can turn benign exploratory warnings into expected failures; document policy.
Checklist
- Preflight with dry-run/validate.
- Capture log/no-color/version.
- Test 1 versus N threads.
- Separate speed and accuracy.
- Preserve immutable output/checksums.
Further reading
See audit files, validation, and Chapter 10 reproducibility.