# xtb jobs

> What HiveBoard shows for an xtb job on a Slurm cluster: optimisation cycles and MD steps, energy and gradient charts, warnings and the 3-D trajectory.

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

## In short

- HiveBoard recognises an xtb folder by the files xtb leaves behind (xtbopt.xyz, xtbrestart, wbo and others), by a detailed input of $-blocks, or by xtb's banner in the printout.
- xtb's kind of run is on its command line, which xtb echoes into its printout — so the job list says Run until you open the job.
- The Structure tab plays xtbopt.log, xtb.trj or xtbscan.log, and falls back to xtbopt.xyz or the starting geometry.

An xtb job has no input deck: it is a command line (`xtb mol.xyz --opt --alpb water`), a geometry file and, if you need one, a detailed input of `$`-blocks (`xtb.inp`, `xcontrol`). xtb prints the command line at the top of its printout, and HiveBoard reads the kind of run from there, then follows the optimisation cycles, MD steps and the closing summary. 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 **xTB**.

## What HiveBoard shows

### Progress and time left

- **An optimisation, Opt + Hessian or relaxed scan** that has not converged — optimisation cycles started, against `max. optcycles` as xtb prints it.
- **MD or metadynamics** — the latest MD step printed, against `max steps`.

Anything else shows the share of the wall-time limit used. The time left is the time per cycle or step so far times those left ("~…s per optimisation cycle × up to … left (often finishes sooner)"), never longer than the time before the wall-time limit. When the printout ends with xtb's "finished run on" line, the bar is full.

Typical status sentences: "Optimising — cycle … of up to ….", "Geometry converged after … optimisation cycles.", "Molecular dynamics: step … of … (… ps).", "Optimised in … cycles, then the Hessian: … imaginary modes."

### Figures and charts

The [Overview](/docs/job/overview-tab) shows the figures that apply: **Energy** (from the closing summary, else the latest optimisation cycle, else the first single point), **Optimisation cycles**, **Gradient norm** (hover it for the threshold), **MD step**, **Temperature**, **HOMO-LUMO gap**, **Imaginary modes**, **Zero-point energy**, **Free energy**, **Electrons**, **Basis functions**, **Run time** and **Version**.

The charts:

- an optimisation — **Energy relative to the latest cycle** (eV) and **Gradient norm** (with a line at its threshold);
- MD or metadynamics — **Total energy (recent MD output)** and **Temperature (recent MD output)**.

A chart appears once it has two points.

### Errors and warnings

An error is quoted: "xtb stopped: …", from xtb's `[ERROR]` message. Warnings say when an optimisation used all its cycles without converging (its last geometry is in `xtblast.xyz`), when the charge iterations did not converge, what an xtb `[WARNING]` said, and how many imaginary modes a Hessian found. "No output update for N min — job may be stalled." appears when the printout has not changed for more than 15 minutes while the job runs.

### Setup

The [Setup](/docs/job/setup-tab) tab's **Calculation setup** shows the Command as xtb echoed it, Method (the Hamiltonian), Solvent, Charge, Unpaired electrons, Optimisation level, Max optimisation cycles, MD length, Thermostat and Threads.

HiveBoard does not restart xtb runs: **Continue** is offered for VASP only. Restarting xtb means running it again in the same folder, where it reads `xtbrestart` by itself.

## Kinds of run it tells apart

HiveBoard reads the kind from the command line xtb echoes, and takes the first that fits:

| Kind | What it means |
|---|---|
| Metadynamics | Molecular dynamics with an RMSD bias that pushes the system out of visited structures (--metadyn) |
| MD | Molecular dynamics (--md, or --omd after an optimisation) |
| Reaction path | Reaction-path search between two structures (--path) |
| Relaxed scan | Constrained optimisations along a coordinate ($scan in the detailed input) |
| Opt + Hessian | Geometry optimisation followed by a numerical Hessian and thermochemistry (--ohess) |
| Hessian | Numerical Hessian, frequencies and thermochemistry (--hess) |
| Optimisation | Geometry optimisation with the ANC optimiser (--opt) |
| IP / EA | Vertical ionisation potential, electron affinity or Fukui indices |
| Single point | Energy (and gradient) at a fixed geometry |
| Run | An xtb job — the kind is on its command line, which xtb prints once it starts |

## The 3-D structure

The [Structure tab](/docs/job/structure-tab) shows the first of these that the folder has:

1. `xtb.trj` — the MD or metadynamics trajectory, up to the last 40 frames.
2. `xtbopt.log` — every optimisation cycle.
3. `xtbscan.log` — the optimised geometry of every scan point.
4. `xtbopt.xyz` — the optimised geometry.
5. The starting `.xyz` given on the command line.

A molecule has no cell, so none is drawn. A queued job shows only the starting geometry — see [Queued jobs and reused folders](/docs/job/queued-and-reused-folders).

## Files it recognises

These are the files the xtb spec names:

| Role | Names | What it is |
|---|---|---|
| Detailed input | `xtb.inp`, `xcontrol`, `*.xcontrol`, `*.inp` | Detailed input (xcontrol): $-blocks of settings and constraints, given with --input |
| Printout | `*.out`, `*.log` | xtb's printout (its standard output, redirected to a file) |
| MD trajectory | `xtb.trj` | MD / metadynamics trajectory, XYZ frames |
| Optimisation | `xtbopt.log` | Every optimisation cycle as an XYZ frame, energy in the comment line |
| Scan | `xtbscan.log` | Optimised geometry of every point of a relaxed scan |
| Result | `xtbopt.xyz` | The optimised geometry |
| Start | `*.xyz` | The starting geometry given on the command line |
| Restart | `xtbrestart` | Restart wavefunction — the next run in this folder reads it by itself |
| Others | `xtbtopo.mol`, `charges`, `wbo`, `hessian`, `vibspectrum`, `mdrestart`, `scoord.*` | Topology, partial charges, Wiberg bond orders, the Hessian, frequencies, MD restart, MD snapshots |

The **What it is** column of the [Files tab](/docs/job/files-tab) shows these notes, with one catch.

> [!NOTE]
> In HiveBoard 0.1.7 the **What it is** column goes by the file name alone and takes the first note whose names fit. So `xtbopt.log`, `xtbscan.log` and `g98.out` (a Gaussian-format copy of the normal modes, not a Gaussian job) are all described as the printout, and `xtblast.xyz` (the last geometry of an optimisation that did not converge) as the starting geometry. What HiveBoard reads from them is not affected.

## How HiveBoard recognises an xtb folder

- **Tell-tale names**: files xtb writes itself — `xtbopt.*`, `xtbrestart`, `xtbtopo.mol`, `xtb.trj`, `xtbscan.log`, `xtblast.*`, `xtbhess.*`, `wbo`, `mdrestart`, `g98.out`, `vibspectrum` — and the detailed inputs `xtb.inp` and `xcontrol`.
- **Signature**: a detailed input whose top has a `$`-block such as `$opt`, `$md`, `$chrg` or `$scan`; or a printout with xtb's "x T B" banner, an "xtb version" line, or the line xtb puts at the top of its normal-mode file.
- **Shared names**: `*.out`, `*.log`, `*.inp` and `*.xcontrol` count only with the signature.

HiveBoard goes by the folder's files, not by your batch script: it learns xtb's command line only from xtb's own printout. More in [How codes are recognised](/docs/codes/how-codes-are-recognised).

## What it was checked against

Real output of xtb 6.5.1 to 6.7.1. MD and the error messages were written from xtb's source only.

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

## Known limits

- The kind is on the command line, which only the printout holds, so the job list says **Run** until you open the job — and a queued job, which has no printout yet, stays a Run.
- In a folder that holds several calculations, the newest printout and the newest geometry 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)
- [ORCA jobs](https://hiveboard.dev/docs/codes/orca.md)
- [PySCF jobs](https://hiveboard.dev/docs/codes/pyscf.md)
