kmos jobs
What HiveBoard shows for a kmos job on a Slurm cluster: the model and its parameters, wall-clock progress, kmos's own data lines and run-script errors.
In short
- HiveBoard recognises a kmos folder by the exported model — kmc_settings.py and the compiled kmc_model — and names the model and its parameters.
- kmos writes no log of its own, so progress is the share of the wall-time limit used.
- When the run script prints or saves kmos's standard data lines, HiveBoard reads the KMC time from them.
kmos is a lattice kinetic Monte Carlo framework: a model is defined in Python or XML, exported to Fortran and compiled, and then driven by your own Python script through kmos.run.KMC_Model. kmos writes no log of its own. What a job folder reliably holds is the exported model (kmc_settings.py and the compiled kmc_model) and the run script; what the run prints is up to that script. So HiveBoard recognises the folder, names the model and its parameters, and leaves progress to the wall clock. Following the job installs nothing on the cluster and changes nothing in the folder. In the job list, your own job carries the code tag kmos.
What HiveBoard shows
Progress and time left
kmos does not say how far a run is, so the bar is the share of the wall-time limit used, and the time left is the time to that limit. The status sentence says as much: “The kmos model … is running — kmos writes no log; the bar shows the share of the wall-time limit used.” Nothing in a kmos folder marks the end of a run, so the bar is not filled when it ends.
When the script prints or saves kmos’s standard data lines — the header get_std_header() writes, then one get_std_sampled_data() line per sampling block — HiveBoard reads them: “Running — … data lines so far, KMC time … s. kmos does not say how long the run is.”
Figures and charts
From the data lines, the Overview shows KMC time (the model’s own clock, simulated_time, in seconds), Data lines, Steps per line, Fields (the header kmos wrote: parameters, turnover frequencies, coverages, then the times and steps) and Last data line. The chart is KMC time (recent data lines); it appears once there are two lines.
Errors and warnings
- “kmos could not import the compiled model (kmc_model) — it has to be built in, or copied into, the folder the script runs in.”
- “The model stopped on an inconsistent lattice update — see the Post-Mortem Error Report in the output.”
- “The run script stopped with …: …” — the Python exception the script ended on.
“No output update for N min — job may be stalled.” watches the file holding the data lines, when there is one, and appears when it has not changed for more than 15 minutes while the job runs.
Setup
The Setup tab’s Calculation setup reads kmc_settings.py and the run script: Model, Lattice (unit cells per direction), Site names, Temperature (set by the run script, or the model’s default), Model size (processes and parameters), First do_steps, Sampling, Scan (a ModelRunner parameter scan) and Random seed.
HiveBoard does not restart kmos runs: Continue is offered for VASP only. A kmos run continues only if its script saved the lattice (dump_config, then load_config).
Kinds of run it tells apart
One kind:
| Kind | What it means |
|---|---|
| kMC | Lattice kinetic Monte Carlo with a kmos model |
The 3-D structure
None. A kmos model is a lattice of sites, so there is nothing for the Structure tab to draw, and it says No structure to show.
Files it recognises
These are the files the kmos spec names:
| Role | Names | What it is |
|---|---|---|
| Data lines | *.out, *.dat, *.log, *.txt | kmos’s standard data lines (get_std_header / get_std_sampled_data), if the script prints or saves them |
| Model | kmc_settings.py | The exported model: its name, lattice size, parameters and rate expressions |
| Run script | *.py | The run script (from kmos.run import KMC_Model …) |
| Error output | *.err (and other files holding an error) | Where an error message ended up (the scheduler’s output file, usually) |
| Compiled model | kmc_model.*so, kmc_model.*pyd | The compiled model (Fortran, built by kmos export); the same on Windows |
| Model definition | *.xml, *.ini | Model definition (kmos project file) |
| Fortran source | *.f90 | Fortran source generated by kmos export |
| Scan lock | *.lock | Lock file of a ModelRunner scan — points already claimed |
A file is read as the data lines only if it holds kmos’s header, as the run script only if it mentions kmos, and as the error output only if it holds a traceback or a kmos error; of several, the newest is read. In the What it is column of the Files tab, a .out or .log file is always described as the data lines, whichever it holds.
How HiveBoard recognises a kmos folder
- Tell-tale names:
kmc_settings.pyand the compiledkmc_model.*soorkmc_model.*pydmean kmos on their own. - Signature: a
kmc_settings.pywith amodel_name = '…'orsimulation_size = …line. - Shared names:
*.py,*.xmland*.inicount only with the signature.
HiveBoard goes by the folder’s files, not by your batch script or the python command it runs. More in How codes are recognised.
What it was checked against
The kmos source code and one real kmc_settings.py; no real run output.
HiveBoard is an independent program: it reads the files a kmos model and its run script write and is not made by, or connected with, kmos’s developers.
Known limits
- No progress count: kmos writes no log, so the bar is wall-clock time only.
- The file watched for “gone quiet” is the one holding the data lines, not a log of kmos’s own.
- No 3-D structure.
Related
Written for HiveBoard 0.1.7, the version on the download page. Examples use a made-up cluster (Ember) and person (zoe). Something here not what you see? Report it from the app.