Submitting & Monitoring Simulation Jobs
Once Simulation Settings are configured, you can submit a simulation job. CoModel executes jobs asynchronously on the backend while the browser receives job status and progress in real time.
Submitting a simulation job
- Confirm the parameters on the left side of the simulation panel.
- Click Run Simulation.
- If the model has unsaved changes, the system saves a snapshot automatically before submitting.
- On success the right side switches to the progress view and the Run Simulation button becomes Cancel Simulation.
Note: a model can have at most one
pendingorrunningjob at a time. If a job is already running, the system asks you to wait for it or cancel it first.
Job states
The server pushes the following events in execution order:
{ "type": "queued", "position": 2 }
{ "type": "started", "started_at": "2026-05-28T10:00:01Z", "recommended_solver": "Rodas5P" }
{ "type": "compiling" }
{ "type": "progress", "progress": 45, "t_current": 4.5, "nsteps": 523, "nfcalls": 2341 }
{ "type": "completed", "completed_at": "2026-05-28T10:00:05Z", "elapsed_seconds": 4.1 }
Event types:
| Event | Meaning | Front-end behavior |
|---|---|---|
queued |
The job is waiting in the queue | Shows the current queue position |
started |
The job has started executing | Shows the exact solver recommended by the backend |
compiling |
The model is being compiled | Indeterminate progress bar with the message "Compiling model..." |
progress |
The solve is advancing | Progress bar, current simulation time, step count, function call count |
completed |
The simulation finished | Shows a statistics summary and loads the results |
failed |
The simulation failed | A friendly error message; backend stack traces are not exposed |
timeout |
The simulation timed out | Explains the timeout and suggests adjustments |
cancelled |
The job was cancelled | The progress view disappears and the button resets |

Cancelling a simulation job
While a job is pending or running, click Cancel Simulation to terminate it:
- The front end calls the cancel API.
- The backend terminates the solve process on the corresponding worker.
- WebSocket pushes a
cancelledevent. - The right side shows "Simulation cancelled", returns to the empty state after 3 seconds, and the button reverts to Run Simulation.
Timeout handling
A single simulation has a default maximum run time of 300 seconds (including compilation), counted from when the job starts executing. On timeout:
- The backend force-terminates the worker process;
- The job is marked
timeout; - The front end shows:
Simulation timed out (300 s). Try shortening the duration or increasing the sampling interval (saveat).
A timed-out run keeps no partial results. Adjust the parameters and resubmit.
Common failure causes and remedies
| Error type | Likely cause | Remedy |
|---|---|---|
| Compilation error | Errors in model code or connections | Go back to the Diagram tab and check components and connections |
| Solver divergence | A stiff system solved with a non-stiff solver | Switch to Rodas5P / FBDF, or tighten the tolerances |
| Timeout | Duration too long / too many result points | Shorten tspan or increase saveat |
| Out of memory | Too many result points | Increase saveat and reduce the output variables |
After a job completes, continue with Visualizing Simulation Results to learn how to analyze the result curves.