# OpenMM jobs

> What HiveBoard shows for an OpenMM job on a Slurm cluster: progress from the StateDataReporter, energy, temperature and density charts, and the last PDB.

Source: https://hiveboard.dev/docs/codes/openmm · Section: Simulation codes · HiveBoard 0.1.7 · Updated 2026-10-19

## In short

- An OpenMM run is a Python script; HiveBoard recognises it by its openmm import and reads the table a StateDataReporter writes.
- Progress comes from the reporter's Progress column, else totalSteps, else the step() calls of the script added up.
- The OpenMM spec was written from the reporter's source code, not from real runs, so it may need a correction when it meets a real job.

OpenMM has no input file and no log of its own: a Python script builds the system and runs it, and what gets written is whatever reporters the script attaches. HiveBoard reads the script and the table a `StateDataReporter` writes — to a file, or to the job's standard output. 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 **OpenMM** and its kind of run.

## What HiveBoard shows

### Progress and time left

HiveBoard takes the first of these that it can read:

1. The reporter's Progress column, in per cent.
2. The step of the last report, against the `totalSteps` given to the reporter.
3. The step of the last report, against the `step(N)` calls of the script added up — only when every one is a plain number and none sits in a loop.

Otherwise the bar is the share of the wall-time limit used. The time left is the time per unit so far times what is left (for example "~…s per 1000 steps × up to … left (often finishes sooner)"), never longer than the time before the wall-time limit; when the reporter prints its own Time Remaining column, the **Time left (OpenMM)** figure shows it beside. The only end-of-run mark a reporter leaves is its Progress column reaching 100 %, and that is when HiveBoard calls the run finished.

Typical status sentences: "Step … — … % done.", "Step … of ….", "Finished: the last report is step …, 100 %.", "Minimising — OpenMM reports nothing until minimizeEnergy() returns."

### Figures and charts

The reporter prints only the columns the script asked for, in a fixed order. HiveBoard finds each column from the table's header line and shows **Step**, **Progress**, **Simulated time**, **Potential energy**, **Temperature**, **Density**, **Speed** (ns/day, the average since the reporter started) and **Time left (OpenMM)**.

The charts are **Potential energy**, **Temperature** and **Density** over the recent reports. A chart appears once it has two points.

### Errors and warnings

When the script stops with a Python traceback, the warning quotes the exception it ended on: "The script stopped with …: …". "No output update for N min — job may be stalled." appears when the reporter's table has not changed for more than 15 minutes while the job runs: with no output file of its own, the table is the file HiveBoard watches.

### Setup

The [Setup](/docs/job/setup-tab) tab's **Calculation setup** reads the script: Integrator, Temperature, Time step, Force field, Nonbonded, Constraints, Barostat, Platform, Run length, Report interval and Starts from.

HiveBoard does not restart OpenMM runs: **Continue** is offered for VASP only. An OpenMM run continues from a checkpoint or a saved state the script wrote, which you set up yourself.

## Kinds of run it tells apart

HiveBoard reads the kind from the script and takes the first that fits:

| Kind | What it means |
|---|---|
| MD | Molecular dynamics: the script calls simulation.step(N) |
| Minimisation | Energy minimisation only: minimizeEnergy() and no step() |
| Script | An OpenMM script that neither steps nor minimises by itself |

## The 3-D structure

The [Structure tab](/docs/job/structure-tab) shows the newest PDB file in the folder — frames a `PDBReporter` wrote, or the input structure — and of it only the last model, from the last 2 MB of the file. A PDB that states its cell (`CRYST1`) has it drawn. A queued job shows the same file, which is then the input structure — see [Queued jobs and reused folders](/docs/job/queued-and-reused-folders).

## Files it recognises

These are the files the OpenMM spec names:

| Role | Names | What it is |
|---|---|---|
| Reporter table | `*.csv`, `*.log`, `*.txt`, `*.out` | The StateDataReporter table: one line per report interval |
| Script | `*.py` | The script: force field, integrator, reporters, simulation.step(N) |
| Error output | `*.err` (and other files holding a traceback) | Where a Python traceback ended up (the scheduler's output file, usually) |
| Structure | `*.pdb` | Structure: the input topology, or frames written by a PDBReporter |
| Trajectories | `*.dcd`, `*.xtc` | Trajectory (DCDReporter); trajectory (XTCReporter) |
| Checkpoint | `*.chk` | Checkpoint (CheckpointReporter) — tied to this machine and OpenMM version |
| Saved state | `*.xml` | Serialized System or State (saveState) — the portable way to continue |
| Topologies | `*.prmtop`, `*.psf` | AMBER topology; CHARMM topology |

A file is read as the reporter table only if it holds the reporter's header, as the script only if it mentions `openmm`, and as the error output only if it holds a Python traceback; of several, the newest is read. In the **What it is** column of the [Files tab](/docs/job/files-tab), a `.out`, `.log` or `.txt` file is always described as the reporter table, whichever it holds. The trajectories and the checkpoint are marked as large: the download button on the row asks before copying one to your computer.

## How HiveBoard recognises an OpenMM folder

A `.py` script counts when its top imports `openmm` (or `simtk.openmm`). There is no file name that belongs to OpenMM alone and no output banner to look for, so a `.py` file without that import is not enough.

HiveBoard goes by the folder's files, not by your batch script or the `python` command it runs. More in [How codes are recognised](/docs/codes/how-codes-are-recognised).

## What it was checked against

Only the source code of OpenMM's reporter; no real runs. A spec checked only against source is the likeliest to need a correction the first time it meets a real job.

HiveBoard is an independent program: it reads the files an OpenMM script writes and is not made by, or connected with, OpenMM's developers.

## Known limits

- The reporter's columns are found only in the orders the spec lists; any other layout gives the step and the progress, but no figures and no chart for the columns.
- The file watched for "gone quiet" is the reporter table, not a log of OpenMM's own.
- A PDB larger than the part HiveBoard reads is cut, or not shown, without a note saying so.
- In a folder that holds several runs, the newest script and the newest table are picked separately and may belong to different runs.

## Related

- [The twenty supported codes](https://hiveboard.dev/docs/codes/supported-codes.md)
- [How codes are recognised](https://hiveboard.dev/docs/codes/how-codes-are-recognised.md)
- [GROMACS jobs](https://hiveboard.dev/docs/codes/gromacs.md)
- [NAMD jobs](https://hiveboard.dev/docs/codes/namd.md)
