Error · SLURM · VASP · LAMMPS · 4 min read
CANCELLED AT ... DUE TO TIME LIMIT
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?
-
Confirm it. After the job ends:
Examplesacct -j 123456 --format=JobID,State,Elapsed,Timelimit123456is an example job id.StatereadsTIMEOUT, andElapsedmatchesTimelimit. -
Continue from where it stopped, not from the start:
- VASP:
CONTCARis written after every ionic step and has the same format asPOSCAR. For an unfinished relaxation, copyCONTCARtoPOSCARand submit again. For molecular dynamics,CONTCARalso carries the velocities needed to continue. - LAMMPS:
read_restartcontinues 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.
- VASP:
-
Ask for more time, within the partition's limit. Raise
--time(formats such ashours:minutes:secondsordays-hours:minutes).scontrol show partition <name>shows a partition's settings, its time limit among them. Thescontrolpage notes that only an administrator can raise the time limit of a job that is already running. -
Next time, stop cleanly before the limit.
- LAMMPS:
timer timeout 23:30:00ends 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 laterruncommands, so awrite_restartplaced after the run still writes a restart file. - VASP: a
STOPCARfile containingLSTOP = .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).
- LAMMPS:
-
Split long work into a chain of shorter jobs.
sbatch --dependency=afterany:123456starts 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.