Error · SLURM · VASP · LAMMPS · 4 min read

CANCELLED AT ... DUE TO TIME LIMIT

Example
slurmstepd: error: *** JOB 123456 ON node042 CANCELLED AT 2026-11-11T03:12:45 DUE TO TIME LIMIT ***

That is the line SLURM writes into the job's output when the time limit ends it (the wording is from SLURM's source code; the job id, node and time are an example).

Checked against the docs · SLURM 26.05 and VASP wiki and LAMMPS stable release 30 Sep 2026 · Last checked 11 November 2026 · Spot a mistake? Tell us

Short answer

The job reached the walltime it asked for (--time) and SLURM stopped it; sacct shows its state as TIMEOUT. Continue from where it stopped (CONTCAR for VASP, the last restart file for LAMMPS) with a longer walltime, up to the partition's limit, or split the work into shorter jobs.

What does this error mean?

Every SLURM job has a time limit, the walltime: how long it may run, set with --time (or -t) in the job script. If you give none, the partition's default applies. When the limit is reached, SLURM sends each task the signal SIGTERM, waits a short interval (KillWait, 30 seconds by default), then sends SIGKILL, which ends the job at once. Some clusters allow a few minutes of grace (OverTimeLimit).

sacct then shows the job's state as TIMEOUT, "Job terminated upon reaching its time limit". Nothing went wrong in the calculation itself; it ran out of time.

What usually causes it?

  • A walltime too short for the work: more ionic steps, more MD steps or a slower electronic convergence than expected.
  • A job slower than planned, for example with fewer cores than the estimate assumed. See Use your cores well.
  • A run that cannot finish within one partition's limit at all. The partition's maximum (MaxTime) caps what you can ask for; a request above it leaves the job pending, possibly indefinitely.

What should I try, in order?

  1. Confirm it. After the job ends:

    Example
    sacct -j 123456 --format=JobID,State,Elapsed,Timelimit

    123456 is an example job id. State reads TIMEOUT, and Elapsed matches Timelimit.

  2. Continue from where it stopped, not from the start:

    • VASP: CONTCAR is written after every ionic step and has the same format as POSCAR. For an unfinished relaxation, copy CONTCAR to POSCAR and submit again. For molecular dynamics, CONTCAR also carries the velocities needed to continue.
    • LAMMPS: read_restart continues from a restart file, which exists only if the script wrote them (restart N file, every N steps; the default is none). Without one, you start again.

    Start fresh or continue a run? covers what to carry over.

  3. Ask for more time, within the partition's limit. Raise --time (formats such as hours:minutes:seconds or days-hours:minutes). scontrol show partition <name> shows a partition's settings, its time limit among them. The scontrol page notes that only an administrator can raise the time limit of a job that is already running.

  4. Next time, stop cleanly before the limit.

    • LAMMPS: timer timeout 23:30:00 ends the run before a 24-hour walltime (the value is an example; the manual says to set it "somewhat smaller" than the walltime) and skips later run commands, so a write_restart placed after the run still writes a restart file.
    • VASP: a STOPCAR file containing LSTOP = .TRUE. makes VASP stop at the next ionic step (LABORT = .TRUE. stops at the next electronic step instead, which the wiki advises against when you can avoid it).
  5. Split long work into a chain of shorter jobs. sbatch --dependency=afterany:123456 starts a job only after job 123456 ends, whatever its state, so each link can continue from the last.

Verlet recognizes the time-limit end in the job's output and shows it in Analyze, and Continue from here starts a new run from where this one stopped, carrying its final structure and, if you choose, its restart files; everything on this page works without it.

Updated
12 November 2026
Applies to
SLURM 26.05; VASP 5.4 and 6.x; LAMMPS stable release 30 Sep 2026
Source check
Checked against the docs, 11 November 2026

Where can I read more?

What was this page checked against?

Checked against SLURM 26.05, the VASP wiki and the LAMMPS stable release 30 Sep 2026, 11 November 2026. SLURM: sbatch, sacct, scontrol, slurm.conf and Job State Codes. VASP wiki (with the date each was last edited): CONTCAR (18 October 2024), ISTART (16 June 2026) and STOPCAR (20 October 2023). LAMMPS manual ("git info" 30Sep2026): restart, read_restart, write_restart and timer. The CANCELLED line's wording was read in SLURM's source code on the 26.05 branch (req.c). Every link on this page was opened.