---
title: 'Agentic discrete-event simulation for manufacturing system design: an open 3D simulator, a benchmark and an industrial case'
authors: ['Javier Pernas-\''Alvarez', 'Diego Crespo-Pereira']
date: 2026-11-11
categories: ['cs.AI']
tags: ['multi_agent', 'ai_methodology', 'system_design', 'research_practice']
source_id: '2611.10602'
source_url: 'https://arxiv.org/abs/2611.10602'
description: 'The design of manufacturing systems relies on discrete-event simulation (DES) models that experts still build in tool-specific interfaces. AI agents can now write simulation code, but every model...'
keywords: ['cs.AI', 'Agentic', 'discrete-event', 'simulation']
canonical: 'https://dailyreading.cc/records/arxiv_2611.10602'
---
## Highlights
Agentic discrete-event simulation for manufacturing system design: an open 3D simulator, a benchmark and an industrial case
Javier Pernas-Álvarez, Diego Crespo-Pereira
- Open 3D simulator lets AI agents build traceable models of manufacturing systems.
- Agent-built models exposed an error in a published expert model of a real workshop.
- A frontier agent built valid models in 93 of 108 benchmark attempts.
- Residual errors are silent; only comparison with reference models finds them all.
- Physically simulated transport calibrates travel models for headless studies.
# Agentic discrete-event simulation for manufacturing system design: an open 3D simulator, a benchmark and an industrial case
Javier Pernas-Álvareza,∗ , Diego Crespo-Pereiraa
aUniversity of A Coruña, CITENI, Grupo Integrado de Ingeniería, Campus Industrial de Ferrol, Campus de Esteiro s/n, Ferrol, 15403, Spain
## Abstract
The design of manufacturing systems relies on discrete-event simulation (DES) models that experts still build in tool-specific interfaces. AI agents can now write simulation code, but every model they write from scratch is new, unverified software. We present SimuLean, an open-source 3D DES simulator on the Unity engine designed to be programmed by AI agents: its modelling semantics are verified once, in the platform, and the agent builds and studies one model through domain-level commands, in the 3D scene or headless; physically simulated durations are calibrated for fast headless studies. We evaluated it on 18 manufacturing modelling tasks, from single machines to published production lines. A frontier agent built valid models in 93 of 108 attempts (86%), in about two minutes each; on the benchmark's interface version, two frontier agents built 105 of 108 models through domain commands alone, so that each comes with a record of how it was built. Every residual failure was silent — a model that builds and runs but answers wrongly — and only comparison with reference models revealed them all. In an industrial case, one agent working alone rebuilt, verified and studied a robotised welding workshop from a published study, in SimuLean and in SimPy. Comparing them with the published, expert-built model exposed an error in it; against the corrected model, the agent-built models agree within 1%. One agent can already build complete, realistic and traceable models for the design of manufacturing systems; independent reference models are
Email address: javier.pernas2@udc.es (Javier Pernas-Álvarez)
∗Corresponding author.
what make them trustworthy.
Keywords: Discrete-event simulation, AI agents, Large language models, Manufacturing systems, Model verification, Digital twin
## 1. Introduction
Discrete-event simulation (DES) is the reference technique for analysing the dynamic behaviour of manufacturing and logistics systems — sizing capacity, buffers and material handling, and evaluating changes before they are made [1,](#page-44-0) [2](#page-45-0). With the digital twin its role has grown: a DES model is often the component that predicts how a system will behave under a decision not yet taken [3,](#page-45-1) [4,](#page-45-2) [5](#page-45-3). The way these models are built has changed far less. An expert translates the system into a model through the graphical interface or scripting language of a commercial package, each with its own vocabulary and hidden settings [6](#page-45-4); modelling effort, licence cost and scarce expertise are recurrent barriers, particularly for small and medium-sized enterprises [7](#page-45-5), and open-source tools remove the licence cost but not the need for expertise [8](#page-45-6).
Large language models (LLMs), and in particular AI agents that read documentation, operate software tools and iterate on their own results over many steps [9,](#page-45-7) [10](#page-45-8), could change who builds simulation models and how. Recent work generates simulation code, usually SimPy, from natural language [11,](#page-46-0) [12](#page-46-1), fills templates or parameters of a commercial package [13,](#page-46-2) [14](#page-46-3), or adapts a hand-written model through a fixed chain of LLM roles with human checkpoints [15](#page-46-4). Expert opinion remains cautious: a 2025 panel placed the capability to build a model and run the experiments that answer a question one to two decades ahead [16](#page-46-5).
Part of the difficulty lies in the tools. Simulators were designed for human modellers: a model is spread between a drawing and settings hidden in dialogues, runs are tied to the animation, and nothing checks automatically that a change is correct; an agent reaches them through scripting interfaces built for other purposes and receives little feedback it can act on. Writing the model from scratch in a general-purpose language avoids the tool but moves the burden: every feature a manufacturing study needs — the layout, vehicles travelling along aisles, shift calendars, failures counted on operating time — must be programmed and reviewed line by line, and the result is a program a plant engineer cannot see. In both routes the most dangerous errors are those that execute: models that run and look plausible but are wrong [12,](#page-46-1) [17](#page-46-6).
We therefore design the simulator for the agent rather than adapt the agent to an existing simulator. This paper presents SimuLean, a free and open-source 3D DES simulator on the Unity game engine designed to be programmed by AI agents (Figure [1\)](#page-4-0). Its modelling semantics are verified once, in the platform; the agent works on one model through domain-level commands, or code where they do not reach, and runs it in the 3D scene or headless; manufacturing features — aisle networks with AGVs and forklifts, cranes, calendars, failures, teams, assembly and palletising — are configuration rather than code; and a duration can be ended by a physical simulation in the scene and calibrated for headless studies. When the agent works through the commands, the model it leaves behind is a configuration of verified elements together with a complete record of how it was built, rather than new code to be reviewed line by line. The claim we test is one of sufficiency, not superiority over code: that such a simulator lets one agent, working alone, build complete, realistic and traceable models for the design of manufacturing systems, verify them and use them for experiments and optimisation. Whether a simulator or code suits a given project depends on what the project needs, and the evidence below is meant to inform that choice.
We address four research questions:
- RQ1 Can one AI agent, using SimuLean as its primary modelling interface, build valid DES models of manufacturing systems from naturallanguage specifications, and at what effort?
- RQ2 Which errors do agents still make, and how can they be detected?
- RQ3 What does an agent-programmable 3D simulator add over an agent programming the model from scratch?
- RQ4 Does the simulator provide the computational performance and the physical fidelity of material flows that manufacturing studies need?
We answer them with a benchmark of modelling tasks in five levels, with validity criteria fixed before the runs, from a single machine to production lines built from published data, including held-out tasks and run with two frontier models; with an arm in which the same agent writes SimPy code from

Figure 1: A simulator designed for people versus one designed for AI agents. Left: the agent reaches a GUI-first tool only through workarounds, the model is split between the drawing and hidden settings, and nothing checks the results. Right: in SimuLean the agent works through domain commands and machine-readable contracts on a single model whose scene is a view, runs it headless or in 3D, and every model must build and run through a gate before it is studied. Below: the changes between the two. Diagram drawn with the assistance of Claude (Anthropic).
scratch; with an industrial case, a robotised welding workshop rebuilt by one agent from a published study in both SimuLean and SimPy, whose comparison with the published model exposed an error in that model and checked the agent's models against its corrected version; and with performance and physics experiments. An independent harness judges the model the agent leaves behind against reference models, never the agent's own report.
The contributions of this paper are:
- (i) SimuLean, a free and open-source 3D DES simulator designed to be programmed by AI agents, in which the domain features of manufacturing systems are configuration rather than code and physically simulated durations are calibrated for headless studies, with the design principles it follows (Section [3\)](#page-8-0);
- (ii) a benchmark of manufacturing modelling tasks with reference models, behavioural validity criteria fixed before the runs and an evaluation harness that judges the model an agent leaves behind (Section [4\)](#page-18-0);
- (iii) evidence on what frontier agents build with the simulator today, at what effort and cost, on the nature of their residual errors and how to detect them, and on what a 3D simulator adds over code written from scratch, including an industrial case in which agent-built models exposed an error in a published expert model and agree with its corrected version (Sections [5](#page-22-0) and [6\)](#page-31-0).
Section [2](#page-5-0) reviews related work and states the gap. Section [3](#page-8-0) presents SimuLean and the principles of a simulator designed for agents. Section [4](#page-18-0) describes the evaluation, Section [5](#page-22-0) reports the results for RQ1–RQ4, Section [6](#page-31-0) presents the industrial case, Section [7](#page-38-0) discusses implications and limitations, and Section [8](#page-42-0) concludes.
## 2. Related work
We review DES software and game engines, LLMs and agents that build simulation models, and LLM agents under automated verification in other engineering domains.
## 2.1. DES software and game engines
Industrial DES practice relies on commercial packages such as Plant Simulation, FlexSim, Simio, AnyLogic and Arena, which combine graphical modelling, 3D animation and experimentation, but whose closed source limits inspection and extension and whose licences are a barrier for smaller companies [6](#page-45-4). Open-source alternatives range from libraries for programmers — SimPy [18](#page-46-7), salabim [19](#page-47-0), Ciw [20](#page-47-1) — to manufacturing-oriented tools such as ManPy [21](#page-47-2) and JaamSim [22](#page-47-3), which Lang et al. [8](#page-45-6) consider a real alternative in production and logistics; among them, only JaamSim and the earlier SimuLean [23](#page-47-4) offer an integrated 3D modelling environment. All were designed for human modellers and expose a model either as a drawing with settings in dialogues, which an agent reaches only through a scripting interface, or as program code, which an agent writes directly but only a programmer can review.
Game engines have been proposed as the basis of next-generation DES for their physics and AI capabilities [24](#page-47-5) and are used for manufacturing digital twins and extended reality [25,](#page-47-6) [26](#page-47-7). An external DES tool uses the engine as a synchronised 3D view [27,](#page-47-8) [28](#page-48-0), the DES logic runs inside the engine [23,](#page-47-4) [29](#page-48-1), or the engine shadows physical equipment for virtual commissioning [30,](#page-48-2) [31](#page-48-3). Physics-based material flow simulation captures effects that kinematic models miss [32,](#page-48-4) [33](#page-48-5), but we found no study that quantifies its effect on DES results. LLMs have only begun to reach these platforms — for layout generation in Unity [34](#page-48-6), robot commands in Isaac Sim [35](#page-48-7) and DEVS code with its Unity animation [36](#page-49-0) — and none lets an agent build, verify and experiment with a manufacturing DES model inside the engine.
## 2.2. LLMs and agents for simulation modelling
Work on LLMs for simulation modelling has passed through three generations. In the chatbot generation (2023–2024) a general-purpose model was asked for simulation code of small queueing or inventory systems [37,](#page-49-1) [38,](#page-49-2) [39](#page-49-3). Monks et al. [11](#page-46-0) rebuilt two published healthcare models in SimPy through 22 and 31 expert-guided iterations and reproduced the published results in one of them.
Structured generation (2024–2026) inserts an intermediate representation between request and code: the DEVS formalism [40](#page-49-4); 18 JSON templates filled by a local open-weight model and mapped onto Plant Simulation components, with checks that are structural by design [13](#page-46-2); fine-tuned models for supply-chain DES [41](#page-49-5) or SimPy queueing tasks, for which executability
proved an insufficient criterion [12](#page-46-1); and schema-validated specifications from queueing diagrams [42](#page-49-6).
Multi-agent workflows and tool-operating approaches (2025–2026) are closest to ours. Schmitt et al. [15](#page-46-4), in this journal, adapt a hand-written SimPy blueprint through a fixed chain of LLM roles with two mandatory human checkpoints, validate the first model of each of two industrial cases against a commercial tool and report 21 runs with their cost; by their own definition theirs is a workflow rather than an agent [10](#page-45-8). Krämer and Heger [43](#page-49-7) cover elicitation to evaluation with a multi-agent system generating SimPy; Korth et al. [14](#page-46-3) use four agents and MCP-registered tools to parameterise a Plant Simulation model over seven tasks repeated twenty times in one plant; and Jeong et al. [44](#page-50-0) propose the Model Context Protocol [45](#page-50-1) as the layer between LLM and simulator, with an M/M/1 proof of concept. Other works use LLMs inside a model built by people, e.g. as a dispatching rule or an optimisation operator [46,](#page-50-2) [47,](#page-50-3) [48,](#page-50-4) [49,](#page-50-5) [50](#page-50-6). Reviews name hallucination, reliability and missing integration frameworks as the open problems [51,](#page-50-7) [9](#page-45-7), and the human-centric view of Industry 5.0 favours the modeller in the loop [52](#page-50-8).
Across the three generations, code written from scratch in SimPy is the most frequent target [11,](#page-46-0) [12,](#page-46-1) [15,](#page-46-4) [43,](#page-49-7) [44](#page-50-0): the library is open, small and well documented, and a model is one program an LLM can emit in one pass. It is the natural baseline for any claim about what a simulator adds, yet no study compares an agent writing the model as code with an agent operating a simulator on the same tasks. Correctness is assessed on a ladder — textual similarity, executability, consistency with the specification, statistical equivalence with a reference — and executable models can still be wrong [12,](#page-46-1) [17](#page-46-6); reported failures include API errors, plausible logic errors, context limits and drift between model versions [11,](#page-46-0) [12](#page-46-1). In the studies we read, success criteria are not fixed before the runs, no held-out tasks guard against tuning the method to the evaluation, and evaluations cover one or two cases or small queueing models.
## 2.3. LLM agents under automated verification in engineering
In PLC programming, adding a syntax checker, compiler and model checker raised the success of LLM-generated code from 47% to 72% [53](#page-51-0), and verified agent pipelines report further gains [54,](#page-51-1) [55](#page-51-2); execution, simulation or geometric feedback helps similarly for CAD [56](#page-51-3), Modelica [57,](#page-51-4) [58](#page-51-5) and optimisation models [59](#page-52-0). Without external feedback LLMs struggle to correct themselves [60,](#page-52-1) [61](#page-52-2), and test feedback drives the gains of reflective agents [62](#page-52-3). Agent evaluations should report repeated runs, error bars, cost and audited test oracles [63,](#page-52-4) [64,](#page-52-5) [65,](#page-52-6) [66](#page-52-7). For simulation modelling it remains open whether an agent's errors are of the kind a build-and-run check catches, and what a verifier must check to catch the rest.
## 2.4. Research gap
Table [1](#page-10-0) compares this work with the closest related work, and Figure [2](#page-9-0) positions it by agent autonomy and automated verification. Existing approaches generate stand-alone code or fill templates or parameters of a commercial tool, run as fixed workflows rather than agents that operate the simulator, verify through human review, inspector LLMs or structural checks, and are evaluated on one or two cases without criteria fixed in advance. To our knowledge, no prior work (i) offers an open-source 3D simulator designed to be programmed by AI agents, with which one general-purpose agent builds, verifies and experiments with manufacturing DES models; (ii) evaluates such models against behavioural validity criteria fixed before the runs, with reference models, repeated runs and held-out tasks, and examines which errors survive a build-and-run check; (iii) measures what such a simulator adds over an agent writing the same models as code; or (iv) quantifies how physically simulated material flows change the results of a manufacturing model and how they can be carried into fast headless studies. We do not claim that agents need such a simulator to succeed; the question is what it adds.
## 3. SimuLean: a DES simulator designed to be programmed by agents
SimuLean is a DES simulator written in C# and integrated with the Unity game engine, released under the GNU General Public License v3.0 (GPL-3.0) at ; version 1.0.0, the one described here, is archived on Zenodo [67](#page-53-0). It grew out of the engine of Pernas-Álvarez and Crespo-Pereira [23](#page-47-4) and has been redesigned so that an AI agent can be its primary user: an agent, unlike a fixed workflow of LLM calls, decides which tools to use and when [10](#page-45-8). The modeller owns the question and the decision, the agent builds, verifies and experiments with the model and reports its assumptions, and the simulator executes the model and runs the automated checks; validation against the real system stays with the modeller [68](#page-53-1). Manual editing remains a second channel: the modeller watches the model as a plant in the 3D scene and can open any

Figure 2: Positioning of LLM-based simulation modelling work by agent autonomy and automated verification (ordinal levels; positions within a level are approximate, from each work's published description). To our knowledge, no prior work checks the models an agent builds with build-and-run and behavioural checks against criteria fixed before the runs. Diagram drawn with the assistance of Claude (Anthropic).
Table 1: Closest related work on LLM-based construction of simulation models. Verification: how the generated model is checked; Evaluation: as reported by the authors. COTS: commercial tool; PS: Plant Simulation. Works in which the LLM acts inside a model built by people are discussed in the text.
| Work | Target | Agent role | Verification | Evaluation |
|-----------------------------|------------------------------------------------|-----------------------------------------------|---------------------------------------------------------------------------------------------------|----------------------------------------------------------------------|
| Jackson et al.
[37] | Python | One-shot | Manual review | 2 small models |
| Monks et al.
[11] | SimPy | Iterative,
expert-guided | Unit tests; vs.
published results | 2 healthcare models |
| Chen et al. [12] | SimPy (fine-tuned
7B) | One-shot | Executability,
format, consistency | 600 queueing tasks |
| Monks et al.
[42] | DES code | Pipeline with
reflection | Schema; one-off
statistical
comparison | 8 queueing
diagrams |
| Elbasheer et al.
[13] | PS (COTS) | Templates, local
LLM | Schema only | 1 case; 199 requests;
1 LLM |
| Schmitt et al.
[15] | SimPy blueprint | Fixed LLM
workflow; 2 human
checkpoints | Inspector LLM;
human review;
one-off vs. COTS | 2 cases, 21 runs;
cost |
| Korth et al. [14] PS (COTS) | | 4-agent pipeline;
parameterises | Plan checked in
DES; model not
verified | 7 tasks × 20, 1
plant |
| Krämer and
Heger [43] | SimPy | Multi-agent,
end-to-end | Automatic
validation | 1 case |
| Jeong et al. [44] | SimPy via MCP | Concept; proof of
concept | Execution only | M/M/1 |
| This work | SimuLean (open,
3D, headless);
SimPy arm | General agent
operates the
simulator | Build-and-run gate;
behavioural validity
vs. reference
models,
independent
harness | 18 tasks (4 held
out), k = 3, 2
LLMs; SimPy arm;
case; cost |
element to change it, and the agent picks up the change in its next step, since both act on the same model.
## 3.1. Design principles
Designing for agents adds three goals to those of a tool for people: few ways to be wrong, errors caught early and explained in terms the agent can act on, and little effort per task. They lead to the six principles of Table [2](#page-11-0) — design goals, not established requirements; whether an agent needs them is an empirical question (Section [5\)](#page-22-0). An open simulator in a mainstream language also needs no simulation-specific training data: what the agent does not know, it reads from the contracts or the source.
Table 2: Design principles of an agent-programmable simulator and how SimuLean implements them.
| Principle | In SimuLean |
|-----------------------------------|--------------------------------------------------------------------------------------------------------------------------|
| P1 Single source of | One configuration from which every run is built; the 3D |
| truth | scene is a view of it, not a second model |
| P2 Domain-level | The agent adds, connects, sets, runs and tests through |
| commands | the modelling vocabulary, not generic editor operations or
arbitrary code |
| P3 Executable | Every model runs headless and in parallel, with the same |
| without the interface | results as the scene |
| P4 Deterministic | One random stream per element and purpose; given a |
| reproducibility | seed, results are identical in any mode, order or |
| | parallelism |
| P5 Machine-readable | Conventions, the parameter catalog and every error are |
| contracts | exposed in a form the agent reads before acting |
| P6 Automated
verification gate | Every change to the simulator is checked against reference
models; every model is built and run before it is accepted |
## 3.2. Architecture
SimuLean has three layers (Figure [3\)](#page-12-0). The engine is a discrete-event kernel with its elements, link layer, statistics, resources, transport, stochastics, model factory and optimisation core, compiled as an assembly that cannot reference Unity — a boundary enforced by the compiler — so every model also runs outside the game engine. The Unity integration layer holds the scene components that describe and display a model, the extractors that read a scene, the element library and the commands exposed to the agent; the front-ends run experiments and optimisations (about 34 000 and 35 000 lines of C# in the engine and the Unity layer).

Figure 3: SimuLean architecture. Left: front-ends on the Unity integration layer, on an engine assembly without any Unity reference. Right: the agent's entry points — (a) domain commands through the Model Context Protocol, (b) machine-readable contracts, (c) the headless runner, (d) the verification gate. Diagram drawn with the assistance of Claude (Anthropic).
The kernel uses next-event time advance; events scheduled for the same time keep their scheduling order, so execution is deterministic. Timed work of an element (processing, travel, set-up) is scheduled through the element, so a failure, break or shift end pauses and resumes it. Statistics have exactly two sources: item flow is recorded only by the link layer as items enter and leave elements, and the state of resources and lists only by their own state trackers, so no element type can report them inconsistently.
One build path (P1, P3). Scene components never build engine objects. When a run starts, the scene is extracted into a serialisable configuration — elements, connections, transport network, teams, lists, downtimes, reactions and input tables — and the engine builds the model from it alone, through one handler per element type (Figure [4\)](#page-14-0); the scene components are then bound to their elements as views. A headless run executes the same configuration without the scene, so interactive and headless runs are the same model built by the same code. An agent therefore edits one representation and can run, test and optimise every model without the 3D view. The view follows the model: a resource team is stored as data and one visual object per member is created when the run starts, so team size is a parameter like any other. Studies currently run inside the editor process; a command-line runner that runs them with the same engine outside it is being prepared for release, and in first measurements it returned the same results while running long studies 14 to 25 times faster than the editor. Measured on the industrial case (Section [6\)](#page-31-0), studies in the editor are about 10–14 times slower than the same engine outside it (about 10 times per replication; 50 replications took 4.3 s outside on 8 threads, against about 3 min per 150-run generation of the optimiser inside). The performance figures of Section [5.4](#page-29-0) are for the engine outside Unity.
Reproducibility (P4). Every stochastic source draws from its own stream, seeded from the model seed and a key formed by the owning element's name and the purpose of the draw (inter-arrival, processing, failure, routing. . . ) through a fixed hash, not from creation order. The same seed thus gives identical results, adding or removing an unrelated element leaves the other draws unchanged, and parallel runs equal sequential ones; replications use consecutive seeds, so scenarios share common random numbers [68](#page-53-1). For an agent, a change in a seeded result is evidence of a change in the model, never noise.
Studies and optimisation. Every configuration key is a parameter. A catalog offers numbers, Booleans and numeric arrays by type; text and list keys must be declared by their handler, and the test suite fails if any key is left undecided, so the catalog always answers "what can I change in this model?". The Experimenter runs a study that varies catalog parameters by

Figure 4: One build path: the scene is extracted into a configuration from which the engine builds the model; the scene components are bound to it as views, or the same configuration runs headless in N parallel replications. The optimiser and experimenter vary the configuration, never the scene. Diagram drawn with the assistance of Claude (Anthropic).
path, as scenarios or a full factorial, with replications and common random numbers, and reports named metrics with confidence intervals; a study is checked before it runs, and unknown names are reported with the closest valid ones. The Optimizer runs algorithms behind one interface that evaluates candidates in parallel, caches them and enforces a budget; a genetic algorithm for mixed spaces and random search are built in. Each evaluation applies the candidate to a copy of the configuration, runs it headless and computes a fitness expression in which constraints enter as penalties, so a request such as the case study's (Section [6\)](#page-31-0) becomes a choice of keys, bounds and a fitness expression.
## 3.3. The agent interface
The modelling vocabulary is exposed to the agent as tools by a Model Context Protocol server [45](#page-50-1) for the Unity editor (Table [3\)](#page-16-0). Every answer carries the errors and warnings logged while the command ran, and unknown names come with the closest valid ones. Table [3](#page-16-0) lists the commands of the released version, refined after the experiments of this paper: the commands marked † cover the steps for which agents fell back on code. The benchmark used the earlier version v1, without them; the industrial case was run on both versions (v1 and v2, Section [4.2\)](#page-20-0) and is reported in Section [6.2.](#page-32-0)
Contracts (P5). An architecture document and a conventions file, both checked against the code by tests, state the rules the agent reads before acting (e.g. every random draw needs its own stream). Invalid models fail at build time with errors that name the element, field or table at fault.
Gate (P6). At the model level, the one a modelling agent meets, the scene is extracted, the model built, and a short headless run must end without an error, a stall or a deadlock; a run monitor names each waiting element and what it waits for. The gate checks that a model builds and runs, not that it is right. At the developer level, every edit of the simulator's own code runs its regression suites (Section [3.7\)](#page-18-1).
## 3.4. Modelling elements
The element library is generated from the registered element types, so agent and human see the same catalogue. Flow elements include sources (from distributions or schedule tables), queues and accumulation lanes, multiservers with parallel slots, delays, combiners that assemble a main item with
Table 3: Domain-level commands exposed to the agent in the released version, by family (prefix simulean\_ omitted). †: not in v1, the version of the benchmark.
| Commands | What they do | | | |
|-------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--|--|--|
| types,
params | What can be placed; an element's fields and catalog
keys | | | |
| add_element,
connect, | Place elements and tools, connect them (a track | | | |
| set | between transport nodes), set fields by name or path | | | |
| apply†
repeat†
invoke†
,
, | Many edits in one all-or-nothing call; copy a group
of elements
N
times with its internal connections;
run an object's actions (e.g. fill a travel matrix) | | | |
| add_team,
load_table | Create resource teams; load input tables | | | |
| query†
fit†
, | Query or import into the project database (SQL,
CSV, Excel); fit distributions to data and write the
best into a field | | | |
| model,
validate | Read the whole model back as JSON; build it and
check a study without running | | | |
| diagnose† | Run to a time or until the model stops and report
stalls, deadlocks, what each element holds and waits
for, and pending team requests | | | |
| run_headless; | Run a study headless (scenarios, named metrics) and | | | |
| run_start,
run_status | return each metric's mean and confidence half-width;
the same in the background, with a wait until it ends | | | |
| optimize_start†
, | Run the optimiser in the background (parameter | | | |
| optimize_status† | ranges, metrics, fitness); return the best candidate
re-run for every replication | | | |
| results† | Read, store and export result sets (CSV, Excel,
SQLite, JSON) and draw charts | | | |
| test,
test_status | Run the simulator's EditMode tests and report the
outcome | | | |
| disconnect,
remove, | Undo mistakes; references to a removed object are | | | |
| rename | cleared and listed | | | |
| capture†
place_model;
;
record_* | Place a library 3D model as decoration; render a
framed picture of the model; record a video of a run | | | |
components in fixed quantities, assembly and picking stations, stackers (palletisers) and storage systems with racks, access disciplines and their own crane or vehicle team (an AS/RS); items leave by routing rules, among them fixed probabilities per output. Resource teams — operators, AGVs, forklifts, robots, cranes — process or transport items, dispatched by list queries such as the nearest free vehicle, and travel on a transport network of tracks along the aisles with optional traffic control and deadlock resolution. One interruption mechanism serves failures (in calendar or operating time), shifts with breaks, timetables and periodic planned stops, for every element and resource. Lists support push and pull logic, and reactions attach rules to element signals. Script-generated 3D models of stations, vehicles and people show each element's state and animate its work; they are views only and never affect the results. Together, these elements cover the main kinds of construct that commercial DES packages offer for manufacturing and logistics — flow, resources and teams, network transport, storage, assembly, calendars and failures, experimentation and optimisation — though not the breadth of their specialised libraries.
## 3.5. Discrete-event logic with physically simulated durations
In a DES model every activity has a duration known when it starts. SimuLean also lets a duration be open-ended and ended by a physical simulation in the 3D scene: the engine starts the activity, the physical component moves the part or vehicle, and the engine resumes the activity when that component reports that it has finished. The recorded durations are then fitted to a calibrated model that headless studies use. The mechanism is implemented for transport and designed to extend to other processes whose duration depends on physics, such as handling, falling or placing material. For transport, travel can be modelled with increasing fidelity: (T0) a defined duration; (T1) network distance over speed, a distance matrix or trapezoidal axis profiles, optionally with traffic control; (T2) A\* paths on a walkable grid; and (T3) movement simulated by Unity's physics and navigation, with collisions and congestion emerging from the scene; the recorded T3 moves fit a calibrated T1 model (per-pair means or a regression on distance and load). Physics runs depend on frame timing, so they are interactive only and outside the reproducibility guarantee; headless runs and optimisation use the calibrated model, and an uncalibrated physics team cannot be exported. Physics-based emulation and virtual-commissioning tools exist [30,](#page-48-2) [31](#page-48-3), but they typically
target bounded work cells; SimuLean couples physics with plant-scale DES models and carries it, through calibration, into fast headless studies.
## 3.6. SimuLean among DES tools
Table [4](#page-19-0) compares SimuLean with two open-source libraries (SimPy, salabim), an open-source 3D simulator (JaamSim) and three commercial packages, from their documentation and published work. It records whether a capability is offered and in what form, not how well it works: libraries can program almost anything, and commercial packages add much by scripting. That difference — configured versus programmed and reviewed as code — is what RQ3 examines.
## 3.7. Verification of the simulator
The simulator's semantics are verified once, in the platform, by a regression net that runs after every change to its code: 20 standalone test suites, among them 43 single-purpose reference models whose per-element statistics must match stored baselines within a relative tolerance of 10−6 , and 212 EditMode tests in Unity, all of which passed at the version evaluated. Scene and headless runs of the same model and seed agree exactly on throughput and within 10−12 on the other statistics. The few faults of the simulator that came to light while agents used it during this work were fixed in the released version. Against queueing theory, 12 of 15 closed-form values of the benchmark's reference models lie inside the 95% confidence interval of the simulated estimate over 100 replications; the other three share one sample of arrivals and lie within 0.5% of theory. Verifying the simulator is not validating a model built with it: whether a model represents its system is checked separately (Section [4\)](#page-18-0).
## 4. Evaluation
The evaluation answers RQ1 and RQ2 with a benchmark of modelling tasks and an industrial case, RQ3 with the same agent programming models in SimPy, and RQ4 with performance and physics experiments (Figure [5\)](#page-23-0). Tasks, reference models and validity criteria were fixed before the main runs.
Table 4: Capabilities relevant to agent-built manufacturing models. –: not found in the documentation consulted (not a statement that it cannot be done, e.g. by programming); Plant Sim.: Plant Simulation. aConcept only: an LLM wrote SimPy code from MCPcompatible context [44](#page-50-0). bCommunity or third-party MCP servers (e.g. a commercial assistant that drives FlexSim from AI coding tools), not official releases [69,](#page-53-2) [70](#page-53-3). cNo native MCP server; an AI copilot is offered in Plant Simulation X, and a research prototype drives Plant Simulation through COM [14](#page-46-3). dRead-only JSON description of the whole model. eNot confirmed in the public documentation consulted.
| | SimuLean | SimPy | salabim | JaamSim | FlexSim | AnyLogic | Plant Sim. |
|---------------------------------|-----------------------------------------------------------|-----------------|---------------------------|-------------------------------|---------------------------------------|-----------------------------|-------------------------|
| Open source;
free | yes
(GPL-3.0) | yes (MIT) | yes (MIT) | yes
(Apache
2.0) | no; free
student ed.
(Autodesk) | no; free
learning
ed. | no; free
student ed. |
| 3D layout,
animation | yes | no | yes (2D,
3D) | yes | yes | yes | yes |
| Random
stream per
element | yes, default
(by name) | by
scripting | optional,
per distrib. | yes (seed
per
distrib.) | yes (per
object) | by
scripting | n.c.e |
| Agent interface
(MCP) | yes, native | –a | – | – | community
/ third
partyb | communityb no nativec | |
| Machine
readable model | partiald | code | code | yes (text) | yes (XML) | yes (XML) | via
interfaces |
| Experimenter
/ optimiser | yes / yes
(GA,
random;
pluggable
algorithms) | – / – | – / – | yes / – | yes / yes
(OptQuest
add-on) | yes / yes
(Op
tQuest) | yes / yes
(GA) |
| Physics-based
simulation | yes (ends
DES
durations;
calibrated
headless) | – | – | – | – | – | – |
| Scripting /
API | C# | Python | Python | expressions;
Java | FlexScript | Java | SimTalk;
COM |
| Sources | this paper | [18] | [19, 71] | [22, 72] | [73] | [74, 75] | [76, 77] |
## 4.1. Benchmark
The benchmark has 18 tasks on five levels: L1 basic flow (a single machine, a serial line with blocking, parallel machines), L2 resources and time (shared operators with shifts and breaks, failures and planned maintenance, assembly), L3 material handling (AGVs on a path network, rack storage and picking, job priorities), L4 change and decide (modify a given model, run an experiment, allocate buffer space) and L5 industrial lines, two real lines from the public FlowLineLib library [78](#page-54-3) given as its data. Four further tasks (H1– H4) were held out: they were committed with a content hash and not used while designing the agent interface. Each task is a short natural-language specification that names the elements whose KPIs are measured; the box shows what the agent receives for T1.2, besides a fixed system prompt. The tasks are small compared with real plants.
T1.2 Serial line with finite buffers. A four-machine line M1 → B1 → M2 → B2 → M3 → B3 → M4 → Exit. Raw material is always available in front of M1. Each buffer B1–B3 holds at most 3 parts; when a buffer is full, the machine before it keeps the finished part and is blocked until space frees up. Processing times are exponential, with means 3.3 min (M1), 4.3 min (M2), 3.0 min (M3) and 3.7 min (M4). Report the throughput per hour and the utilisation of each machine.
## 4.2. Agents, interface versions and harness
The main model is Claude Opus 5.5; the second is Claude Sonnet 5.5; both ran all 18 tasks on v1. Both ran in Claude Code (pinned version), with the SimuLean commands (Section [3.3\)](#page-15-0) and the editor's generic tools, among them one that evaluates C# code in the editor, read-only file tools, no shell and no file editing. Each task was run k = 3 times per condition, each run in a fresh non-interactive session with the task text as the only message, from a clean scene, with no human in the loop and limits of 30 min, 150 tool calls and 5 × 106 tokens. Opus and Sonnet ran on two versions of the agent interface, v0 (Sonnet at L1–L3 only) and v1, where v1 adds errors and warnings to every answer, checks studies before they run, and adds commands that read and validate the whole model and undo mistakes, with the engine unchanged. We call v1 the version used in the benchmark, and v2 the released version, with the refined domain commands of Table [3](#page-16-0) and an agent documentation; v2 was used only in the industrial case. Two ablations on v1 (Opus, L1–L3) removed the build-and-run gate (C-NoGate) or the SimuLean commands,
leaving generic editor tools and code evaluation (C-Generic). These six sets of runs — Opus and Sonnet on v0 and v1, and the two ablations — form the main block of 243 attempts. Effort is the agent's wall time, tokens and tool calls; cost is Claude Code's API-equivalent estimate, since the runs used a subscription. For an indicative manual baseline, the two authors, both familiar with the simulator, built T1.2 and T2.3 by hand.
## 4.3. Validity criterion
The harness extracts and runs the model each attempt leaves behind, never trusting the agent's report, and compares it with a reference model written by the authors. A model is valid if it behaves like the reference: every target KPI (throughputs, utilisations, mean contents and waits) must agree within a margin of ±5% for throughput and utilisation and ±15% for contents and waiting times. Statistically, the 90% confidence interval of the relative difference of the means must lie inside the margin. The interval is Welch's, which compares two means without assuming equal variances [79](#page-54-4), from 100 replications of each model; requiring it to lie inside the margin is the two one-sided tests procedure (TOST) [80](#page-54-5), which declares two models equivalent only when the difference is shown to be both above the lower and below the upper margin. The criterion was calibrated so that a correct model passes with probability at least 0.95. Every attempt is classified by the first step it fails: no model (none, or a run ended by a limit), build failure, gate failure, silent error (a model that builds, runs and passes the gate but is not valid) or valid. Rates carry Wilson 95% intervals [81](#page-54-6), an interval for a proportion that stays within [0, 1] and holds for small samples; paired comparisons use McNemar's exact test [82](#page-54-7), which compares two success rates on the same tasks using only the pairs whose outcomes differ.
## 4.4. SimPy comparison
The same agent (Opus, same limits) built six of the tasks — T1.2, T2.1, T2.3, T3.1, T4.1 and T5.1, one or two per level — from scratch in SimPy 4.1.2 [18](#page-46-7), k = 3, with a shell restricted to python. A fixed contract followed the task text: deliver a model.py whose run(seed, horizon, warmup) returns the target KPIs, each with its measurement definition. Seeds, margins and reference values are those of the SimuLean v1 runs, paired by task and repetition.
## 4.5. Industrial case
A request of the size a plant engineer would make — rebuild a published industrial workshop, verify it, run an experiment and an optimisation, and report (Section [6\)](#page-31-0) — was given to Opus with the benchmark harness and raised limits (400 tool calls and 40 × 106 tokens per session), three times on v1 and three times on v2, which adds to v1 the commands marked † in Table [3](#page-16-0) and an agent documentation (workflow, command reference, error catalogue). The specification, limits, model and fixed resume message were the same, and nobody intervened in the model. The same agent also built the workshop three times in SimPy with the same specification and the SimPy contract. The harness re-ran each exported model with 50 replications and compared it with the published model, which was corrected during this work; the final runs in both tools used the specification with the corrected rule (Sections [6.1](#page-31-1) and [6.4\)](#page-36-0), so that each of the three arms ran three times on each of the two forms of the specification (18 runs). With three runs per version and specification, the case shows what one agent does at plant scale; it does not test a difference between versions.
## 4.6. Performance and physics
An M/M/1 queue, tandem lines of 5 to 200 stations and the hold model [83](#page-54-8) were run headless on one thread (events per second) and compared with statistically equivalent SimPy and salabim [19](#page-47-0) models by wall time per replication, on a laptop (Intel Core i7-12650H). For physical material flows (Section [3.5\)](#page-17-0), a fleet of 1 to 4 AGVs serves a three-machine cell in a wide two-way and a narrow single-lane layout (2 to 4 AGVs in the narrow one) under four travel models: constant times (T0), an aisle network (T1), an A∗ grid (T2) and Unity navigation with physics (T3, interactive scene only, five seeds), plus T1 calibrated from the T3 moves (T1-cal); the headless variants use 100 replications. The fleet is chosen as the smallest that meets two targets fixed before the T3 runs: a throughput of at least 38 parts per hour and a mean flow time of at most 720 s.
## 5. Results
## 5.1. RQ1: validity and effort of agent-built models
One agent working alone built a valid model in most attempts and at every level, typically in about two minutes and for about one US dollar.

Figure 5: Evaluation design. The benchmark (L1–L5 and held-out tasks, k = 3) runs in the SimuLean arm (C-Full on two interface versions, ablations C-NoGate and C-Generic; Opus and Sonnet) and, for six tasks, in the SimPy arm. The harness runs every final model and classifies it by the first step it fails, with validity judged against a reference model. The industrial case is built three times on each of two interface versions and three times in SimPy, and validated against the corrected published model. Diagram drawn with the assistance of Claude (Anthropic).
Validity. Claude Opus 5.5 built a valid model in 93 of 108 attempts over the two interface versions (0.86 [0.78, 0.91]; Table [5\)](#page-25-0), 77 of 84 on the 14 main tasks. Every attempt at L1, L3 and L5 was valid, including the twelve at the two FlowLineLib lines; the misses concentrate in one L2 task (T2.1), two held-out tasks (H1, H4) and two runs at L4 that ended at the token cap. Claude Sonnet 5.5 was valid in 43 of 54 attempts on v1 over all 18 tasks (25 of 27 at L1–L3), against 46 of 54 for Opus on the same tasks (paired by task and repetition, exact McNemar, two-sided, p = 0.45); its misses concentrate in T2.1, two L4 tasks (T4.2, T4.3), H2 and H4. The two versions gave similar results, with no detectable difference (Opus 47 and 46 of 54, McNemar p = 0.875; Sonnet 23 and 25 of 27), and so did the ablations on v1: 23/27 without the gate (C-NoGate) and 25/27 with generic tools only (C-Generic), against 24/27 for C-Full; C-Generic halved the tool calls (median 53 to 28) because the agent wrote larger units of work as code. In C-Full, by contrast, 53 of the 54 Opus attempts and 52 of the 54 Sonnet attempts on v1 built the model through domain commands alone (median 49 commands for Opus and 46 for Sonnet, no line of code), so each model comes with a complete record of how it was built; every C-Generic attempt wrote code (median 11 blocks and 51 lines). This is a trade-off rather than a gain in validity: fewer calls, against a model whose construction can be read step by step. C-Generic's code, moreover, still calls SimuLean's verified engine, unlike code written from scratch, whose far end the SimPy arm (Section [5.3\)](#page-28-0) and the industrial case (Section [6.3\)](#page-36-1) show. No attempt asked a question or was helped by a person. Over the main block of 243 attempts, 207 were valid. The industrial case extends the question to plant scale (Section [6\)](#page-31-0).
Time. On v1 the median time to a valid model was 2.0 min for Opus (46 valid of 54 attempts) and 1.5 min for Sonnet (43 of 54); 42 of the 46 Opus models took less than five minutes (Figure [6\)](#page-25-1). The medians grow from about 1.3 min at L1 to 2–3 min at L2, L3, L5 and the held-out tasks; L4 is the widest, from half a minute to add one machine to a given model to about 14 min to search buffer allocations. In the manual baseline, the two authors built T1.2 and T2.3 by hand in about 14–14.5 and 12–14 min to a valid model (one parameter-entry error corrected in each of the first author's models: an exponential mean typed into the rate field), against agent medians of 1.5 and 1.4 min on the same tasks; with two modellers who know the simulator, this indicates an order of magnitude only.
Table 5: Valid models by level and model, C-Full, both interface versions pooled (valid / attempts, Wilson 95% CI). Sonnet: L4, L5 and held-out on v1 only, so its totals pool 54 attempts at L1–L3 with 27 at L4–H4.
| | Claude Opus 5.5 | | Claude Sonnet 5.5 | | |
|----------------------|-----------------|--------------|-------------------|--------------|--|
| Level | Valid | 95% CI | Valid | 95% CI | |
| L1 Basic flow | 18/18 | [0.82, 1.00] | 18/18 | [0.82, 1.00] | |
| L2 Resources & time | 13/18 | [0.49, 0.88] | 13/18 | [0.49, 0.88] | |
| L3 Material handling | 18/18 | [0.82, 1.00] | 17/18 | [0.74, 0.99] | |
| L4 Change & decide | 16/18 | [0.67, 0.97] | 4/9 | [0.19, 0.73] | |
| L5 Industrial lines | 12/12 | [0.76, 1.00] | 6/6 | [0.61, 1.00] | |
| Held-out H1–H4 | 16/24 | [0.47, 0.82] | 8/12 | [0.39, 0.86] | |
| L1–L3 | 49/54 | [0.80, 0.96] | 48/54 | [0.78, 0.95] | |
| Main tasks (L1–L5) | 77/84 | [0.84, 0.96] | 58/69 | [0.74, 0.91] | |
| All 18 tasks | 93/108 | [0.78, 0.91] | 66/81 | [0.72, 0.88] | |

Figure 6: Agent time to a valid model by task level (v1, C-Full; log scale). Points are valid attempts, bars the medians. Stars: the manual baseline, the two authors building T1.2 (L1) and T2.3 (L2) by hand (n = 2, familiar with the simulator, hence optimistic).
Tokens and cost. An Opus attempt processed a mean of 1.74 × 106 tokens, of which 96% were cache reads — the context of the editor's tools and earlier answers, re-read on every turn — and 0.6% output (Figure [7a](#page-26-0)); a Sonnet attempt processed 1.38 × 106 . Claude Code estimated the API-equivalent cost of the 54 Opus attempts at 52.5 USD, or 1.14 USD per valid model, from 0.74 USD at L1 to 1.53 USD at L2; for Sonnet the estimate is 0.63 USD per valid model (Figure [7b](#page-26-0)); Claude Code gives no estimate for a run ended by the token cap, so those runs are not included. Six of the 243 runs ended at the token cap, four of them at T4.2, where the agent polled the status of a long study until the cap (v1 cannot wait on a running study); none reached the time or tool-call limit.

Figure 7: Effort in tokens and cost (v1, C-Full). (a) Mean tokens per attempt by type cache read, cache write, output and uncached input — by level, Opus solid and Sonnet hatched. (b) Estimated cost per valid model: Claude Code's API-equivalent estimate for all attempts at a level divided by the valid models (the runs used a subscription; no estimate exists for a run ended by the token cap).
## 5.2. RQ2: the errors agents still make and how to detect them
Every attempt that failed and was not ended by a limit was a silent error: a model that builds, runs and passes the gate but answers the question wrongly (Table [6\)](#page-27-0). The build-and-run gate caught none; behavioural checks on the model caught about half, but not the errors in reading the specification.
Silent errors. Fifteen of the 30 silent errors are the same mistake on T2.1: the agent stopped the two stations for the operator's break but not the operator, so a part paused by the break kept its operator and the engine booked the break as busy time (utilisation 0.94 against 0.88), while throughput and
Table 6: Outcomes of the 243 attempts of the main block by class (counts). No attempt failed at the build or gate step.
| | Opus C-Full | | Sonnet C-Full | | NoGate | Generic | |
|-----------------------------------|-------------|----|---------------|----|--------|---------|-------|
| Outcome / class | v0 | v1 | v0 | v1 | v1 | v1 | Total |
| Attempts | 54 | 54 | 27 | 54 | 27 | 27 | 243 |
| Valid | 47 | 46 | 23 | 43 | 23 | 25 | 207 |
| Build or gate failure | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| Silent:
operator
busy
in | 2 | 3 | 3 | 2 | 3 | 2 | 15 |
| break (T2.1) | | | | | | | |
| Silent:
ambiguous
spec. | 3 | 3 | – | 3 | – | – | 9 |
| (H4) | | | | | | | |
| Silent: rule added (H1) | 1 | 1 | – | 0 | – | – | 2 |
| Silent: time unit | 0 | 0 | 0 | 2 | 1 | 0 | 3 |
| Silent:
forklift
handling | 0 | 0 | – | 1 | – | – | 1 |
| (H2) | | | | | | | |
| No model: token cap | 1 | 1 | 1 | 3 | 0 | 0 | 6 |
queue contents were correct. It occurred with both models, on both versions and in every condition. Nine are H4, whose prompt says "demand has doubled" for a start model that already has the doubled demand: all nine attempts (Opus and Sonnet) doubled it again. Two (H1) added a priority rule that the specification does not contain; one left the clock in its default unit where the task gives minutes, and two (T4.3) read the minutes of the task as hours — both found the reference's best buffer allocation, with a throughput 60 times too low; one (H2) modelled the forklift's handling differently from the specification.
Detection. The build-and-run gate blocked none of the 216 runs that had it (all but C-NoGate), so removing it could not change an outcome. A mutation test explains why: of 45 defects seeded into correct models it rejected 4, all missing connections that deadlock a closed line, because wrong routings, distributions, units or capacities still build and run. We therefore wrote eight behavioural checks that a gate could run on the model alone — flow reaches the sink, items are conserved, Little's law [84](#page-54-9) holds, no resource works while the element it serves is stopped, and four more — fixed before they were applied but written knowing the failure modes, so their results are exploratory. On the 243 models they flagged 16 of the 30 silent errors (53%
[36, 70]) with false alarms on 21 of the 207 valid models (10% [7, 15]), against none for the gate (Figure [8\)](#page-28-1). On the 45 seeded defects they caught 11, all of them also rejected by the gate or by the comparison with the reference model, which caught 32. The check "no resource busy while its station is stopped" flagged all 15 operator errors of T2.1 without a false alarm; most false alarms come from Little's law on T3.2, where a large inbound queue gives an end effect over the short check horizon, and two from T5.2, where few items reach the sink within it. The sixteenth flag, on a model in the wrong time unit, is the same end effect of Little's law, not a detection of the unit: nothing detects H1, H2, H4 or the time units, because these models are internally consistent and answer a different question, which only a check against the specification can reveal. The industrial case shows the same kind of error at plant scale (Section [6.2\)](#page-32-0), and one in the published expert model itself, found only because independent models disagreed with it (Section [6.4\)](#page-36-0).

Figure 8: Detection by the build-and-run gate, the eight behavioural checks (a model is flagged if any check fails) and the behavioural evaluator, which compares the model with its reference: silent errors and valid models of the main block (243 attempts), and 45 defects seeded into correct models. The evaluator defines the outcome of the agents' models and is shown for the seeded defects only.
## 5.3. RQ3: what the simulator adds over programming from scratch
On six benchmark tasks the same agent writing SimPy was at least as often valid and far cheaper; what the simulator adds lies in completeness, realism and inspectability, which the SimPy counterpart of the industrial case examines at plant scale (Section [6.3\)](#page-36-1).
The SimPy arm was valid in 18 of 18 attempts ([0.82, 1.00]) and SimuLean v1 in 15 of 18 ([0.61, 0.94]; McNemar p = 0.25); the three differences are the T2.1 operator error. The medians were 0.04 against 1.50 × 106 tokens, 3 against 62 tool calls and 32 against 109 s of agent time, and SimPy needed less on every task (Figure [9\)](#page-29-1). The effort follows the way of working: the SimPy agent wrote the whole model as one file of about 100 lines, ran it once or twice and reported, whereas the SimuLean agent assembled it element by element, each call re-reading a context that holds the editor's tools and their answers. Three caveats apply: the contract gave the SimPy agent each KPI's definition, which on T2.1 ("busy working on a part") all but rules out counting breaks as busy; the tasks are textbook sized; and only the SimPy agent had a shell. None of the six tasks needs a 3D layout, aisle networks with vehicles, calendars, physics, integrated studies or review by a non-programmer; the industrial case does.

Figure 9: The same agent (Claude Opus 5.5) operating SimuLean (v1, C-Full) and programming SimPy from scratch on six benchmark tasks, k = 3: median (a) tokens per attempt (log scale), (b) tool calls and (c) agent time per attempt.
## 5.4. RQ4: performance and physical material flows
The headless engine is fast enough for replicated studies. The architecture lets physically simulated processes set the durations of the DES model (demonstrated here on transport), and these reveal effects that abstract travel models miss, such as congestion in narrow aisles; a travel model calibrated from them then recovers these effects at headless cost (Figure [10\)](#page-30-0).
Performance. On one thread the engine ran the M/M/1 model at 3.0–3.3 million events per second, tandem lines at 2.4 million (5 stations) to 1.1–1.5 million (50 to 200 stations) and the hold model at 6.9 to 3.3 million; on the same models, checked to be statistically equivalent, SimPy was 6–14 times and salabim 20–247 times slower per replication. The advantage shrinks on the much larger model of the industrial case: once the engine is warmed up, a replication of the agents' models takes 0.1–0.2 s outside Unity, against about 0.5 s for their SimPy models.

Figure 10: Mean flow time of the AGV cell against fleet size for the travel models, (a) wide two-way aisles and (b) narrow single-lane aisles. Headless variants: mean of 100 replications with 95% CI; T3 (Unity navigation and physics, interactive scene): mean and range of five replications sharing seeds 1–5 with the headless runs. Dashed: the flow-time target fixed before the T3 runs.
Physical material flows. With wide two-way aisles, physically simulated travel (T3) was within about 2% of the grid model T2 and of the calibrated network model T1-cal, and every spatial model chose the same fleet of three AGVs; only constant travel times (T0) underestimated the flow time, by about 10% (Figure [10a](#page-30-0)). With narrow single-lane aisles congestion appeared (Figure [10b](#page-30-0)): at two AGVs the mean flow time under T3 was 983 s (five runs, range 638–1 248 s) against 878 s under T1, 863 s under T2 and 787 s under T0, underestimates of 11–20%, and T1-cal recovered it (986 s). With the two targets fixed before the T3 runs (Section [4;](#page-18-0) the flow-time target is the dashed line) only T0 changed the chosen fleet, through the throughput target; a flow-time target between the kinematic and the physical value, such as 900 s, would change it (an illustration chosen after the results). Physics is used here as a measuring instrument: a few physical runs (about 190 s of computing per simulated hour, in the interactive scene) measure the travel behaviour, congestion included, and calibrate the travel model, with which the studies then run headless at full speed (about 1 ms per simulated hour).
## 6. Industrial case: a robotised welding workshop built by one agent
This section shows what one agent does, with no human guidance, with a request of the size a plant engineer would make (Section [4.5\)](#page-22-1). It reproduces a published industrial study, so that the agent's models can be checked against an independent model of a real design: the robotised welding workshop for the nodes of offshore-wind jacket foundations designed with FlexSim in Lamas-Rodríguez et al. [85](#page-55-0) and analysed for investment in Lamas-Rodríguez et al. [86](#page-55-1). The comparison worked in both directions: the agent's independent models exposed an error in the published, expert-built model, and they agree with the corrected model (Section [6.4\)](#page-36-0).
## 6.1. The workshop and the request
Each jacket needs 3 Y-nodes and 9 X-nodes, each a chord with two stubs. The workshop cuts and bevels the stubs, fits them on assembly beds with dimensional controls, makes the root pass, tests it non-destructively (NDT), welds the node with a robot and tests it again, in an existing building of five spans served by overhead cranes and two rail carts, on two shifts; defects send parts back to rework. The agent built scenario 6 of the published study: 5 assembly workstations, 6 DC2/DC3 workstations, 13 operators, one robot and two rail carts. It received the process and resources as published and the remaining values (times, probabilities, capacities, speeds and positions) as data taken from the original model, which are not reported here. It had to build and verify the model, run a base case for 28 jackets, an experiment (NDT pairs × welders) and an optimisation of beds and operators against the takt of one jacket per week, and report. The specification was written from the original model and refined, before the runs reported here, wherever a reading of that model had missed an operating rule; no value was ever adjusted to match a result. It was used in two forms: the first nine runs (Sections [6.2](#page-32-0) and [6.3\)](#page-36-1) received it with the original model's crane rule, and the final nine (Section [6.4\)](#page-36-0) with that rule corrected and two material-handling rules aligned with the running original model.
The request is far larger than a benchmark task (Figure [11\)](#page-33-0): a specification of about 2 400 words, against about 100 for T1.2; eight process stages with five rework loops; 13 operators in seven teams, a receptionist, a cutting station, a welding robot, four overhead cranes that share their drivers and two rail carts in five spans; and 336 nodes, or 1 008 parts, per replication.
Depending on how each agent structured it, a SimuLean model of the corrected specification has 87 to 402 elements, 121 to 512 connections and 21 to 61 reaction rules, and a replication executes 70 to 110 thousand events; a SimPy model has about 700 lines.
## 6.2. Six runs on two interface versions
Three agents worked on v1, the version of the benchmark, and three on v2, the released version (Sections [4.2](#page-20-0) and [4.5\)](#page-22-1), all on the first specification. In every run the harness stopped the first session at its token or tool-call limit and resumed it once with a fixed message that names the limit and carries no information about the model; the operator only reopened the agent's scene. Table [7](#page-32-1) gives each run and the means, with the three SimPy runs of Section [6.3.](#page-36-1)
Table 7: The nine runs of the industrial case on the first specification. Working days per jacket, in real working time: harness re-runs of each exported model, 50 replications (95% half-widths 0.007–0.010). Time, calls and cost of the whole run; USD: Claude Code's API-equivalent estimate. Code: calls of the editor's code-evaluation tool (SimuLean) or lines of Python (SimPy).
| Run | Working days Time (min) Calls USD Code | | | | |
|------------|----------------------------------------|-------|-------------|------|-------|
| v1 rep1 | 4.863 | 97.4 | 244 | 25.1 | 115 |
| v1 rep2 | 4.879 | | 130.7 2 756 | 51.7 | 42 |
| v1 rep3 | 4.968 | | 82.8 1 281 | 39.0 | 58 |
| v1 mean | 4.903 | | 103.6 1 427 | 38.6 | 72 |
| v2 rep1 | 4.915 | 129.4 | 289 | 44.9 | 1 |
| v2 rep2 | 5.125 | 91.9 | 262 | 34.7 | 0 |
| v2 rep3 | 5.065 | 86.3 | 312 | 38.2 | 0 |
| v2 mean | 5.035 | 102.5 | 288 | 39.3 | 0.3 |
| SimPy rep1 | 5.130 | 14.9 | 30 | 2.15 | 973 |
| SimPy rep2 | 5.139 | 14.3 | 40 | 2.46 | 1 044 |
| SimPy rep3 | 5.111 | 14.1 | 28 | 2.06 | 954 |
| SimPy mean | 5.127 | 14.4 | 33 | 2.22 | 990 |
Interface. The v2 agents built, verified, diagnosed, studied, optimised and presented the workshop without writing code (0, 0 and 1 calls of the code tool; the one call only checked the open scenes), whereas the v1 agents wrote 42 to 115 blocks of C# each (148 to 1 086 lines): loops that create and wire the stations, their own headless scripts to diagnose stalls, and the optimiser

Figure 11: Process flow of the robotised welding workshop (scenario 6 of Lamas-Rodríguez et al. [85]), as specified to the agent. Inside a span its overhead crane moves the parts (span 3 has no crane and no station); two rail carts in the front corridor carry them between spans. Stubs are cut and bevelled in span 1 and wait in the buffers of span 2 unless an assembly bed is waiting for them; chords are stored by node type in span 4. On the assembly beds the boilermaker pair fits the chord and the two stubs and a dimensional-control (DC) pair does DC1; in span 5 the welder makes the root pass, an NDT pair tests it and a DC pair does DC2, then the robot welds the node, which goes through DC3 and, after a post-weld wait, the final NDT. Dashed blue: reworks and repeated steps; numbered circles: the stages of the specification. Times, probabilities, capacities, speeds and positions come from the original model and are not shown. Diagram drawn with the assistance of Claude (Anthropic).
set up and polled through code. The v2 agents also needed five times fewer calls, with a much smaller spread (262–312 against 244–2 756; two v1 agents set fields one call at a time, over a thousand calls each, and hit the 400 call limit in the first session). Effort, however, was the same: building and verifying the model, up to the start of the experiment, took 53 and 54 min on average (v1 and v2), with v2's build somewhat cheaper (25 against 30 USD) and less variable; the whole run took 104 and 103 min, about 123 and 125 M cache-read tokens and 39 USD. The time is set by the tokens the agent writes and re-reads, not by the number of calls: one batch of 67 edits costs as much output as the 67 calls it replaces, and almost all tokens are re-reads of the context.
Model structure. On the first specification the six SimuLean models spread by about 5 % (4.86–5.12 working days per jacket); three agents had grouped the beds of a kind into one station with a count, so that the optimiser could vary it, and their models were the slower ones. That specification still carried the reference model's routing error (Section [6.4\)](#page-36-0); on the corrected one all nine agent-built models agree within 0.8 % whatever their structure. The spread was invisible in the models themselves: every model was self-consistent, its deterministic workloads matched the original data and its report was plausible — the silent errors of Section [5.2,](#page-26-1) at plant scale, which only a comparison with an independent reference reveals.
Verification. Every agent's own verification found real faults in its model, two to five per run: a double booking of the rework zone, cranes held at a full bed, a stub sent to a full buffer, a request left open. The agents fixed them, the v2 agents with the diagnosis command and study metrics, the v1 agents with their own scripts.
The agents' studies. In run v1 rep1 (Figure [12\)](#page-35-0) the base case gave 4.874 ± 0.015 working days per jacket over 20 replications; the agent identified the bottleneck as the cutting station together with its span's crane, which the first specification holds during every stub fit — the rule later found to be the original model's error (Section [6.4\)](#page-36-0). In the experiment, with common random numbers, two NDT pairs gave 5.14 working days per jacket and three 4.88, and a fourth pair or a second welder gained about 0.02 days. The library's genetic algorithm, with five replications per candidate, found a design with 20 beds and persons instead of 24, at 4.887 ± 0.018 working days over 20 replications.

Figure 12: The robotised welding workshop built by the agent of run v1 rep1 (first specification) in SimuLean. Purely visual work followed the model: a separate agent session added the building shell, span zones, labels and cameras, and an interactive agent session with the authors' review (about half an hour, three rounds) gave the parts and stations generic 3D models made for this case (tubular chords and stubs, turning-roll positioners, a pipe-profile cutter, a robot cell) and laid out the waiting parts in piles. The exported model is unchanged by both (a name-normalised comparison of the exported configurations shows no change to any element). Views (b)–(d) were taken while the model was running.
## 6.3. The same workshop programmed in SimPy
The same agent received the same first specification and limits with the SimPy contract of Section [4.4,](#page-21-0) adapted to the case (the model runs to the last node and takes the optimisation's counts as parameters; no layout, library optimiser or 3D). No run hit a limit or needed a resume: each took about 14 min and 2 USD, against about 100 min and 39 USD in SimuLean (Table [7\)](#page-32-1), and building and verifying took 8 min against 54. Each agent wrote about 1 000 lines of Python, about 700 of them in the model. The difference lies in the context: a SimPy run re-read 1.4 M tokens, a SimuLean run about 125 M, since the editor's tools and every answer stay in the context; and the studies, which run in the editor process (Section [3.2\)](#page-11-1), took about 50 min of each SimuLean run, whereas a SimPy replication takes half a second. Outside the editor the SimuLean engine runs a replication of the agents' models in 0.1– 0.2 s, so the command-line runner should cut those studies to a few minutes. The three SimPy models implement the specification literally and alike every bed its own entity, operators walking back to their waiting point, crane and driver requested separately — and their results agree with each other (5.11–5.14 working days per jacket, against 4.86–5.12 for the six SimuLean models). The deterministic workloads match in every model. All three, however, were slower than the original model (4.84 working days per jacket) by a similar margin, about 6 %, which led to the diagnosis of Section [6.4;](#page-36-0) on the corrected specification the SimPy runs gave 4.999 (4.998–5.001) working days per jacket.
For this workshop, code was faster, cheaper and more consistent between runs. SimuLean produced a 3D model of the plant that an engineer can see and question, whereas the SimPy models can only be reviewed by reading their code, in which the layout exists as coordinates. The command-line runner of Section [3.2](#page-11-1) and a smaller tool context should narrow the cost gap.
## 6.4. The reference model, its correction and the validation
Re-run in FlexSim with 50 replications, the original model reproduces the published value [85](#page-55-0) and gives 4.836 ± 0.008 working days per jacket (Table [8\)](#page-37-0). The three SimPy models, which follow the specification literally and keep every bed separate, all came out slower by a similar margin, which a modelling slip of one agent would not explain. A stage-by-stage diagnosis of the original model traced the gap to an error in its routing: the stub fit-ups held the crane of the wrong span. In the corrected model they hold the span-4 (assembly-span) crane, and the original model gives 4.98 ± 0.06 working
days per jacket. Against this corrected reference, the nine agent-built models of the corrected specification — three runs each of SimPy and of SimuLean v1 and v2, each re-run with 50 replications — are all within −0.3 to +0.4 % (Table [8\)](#page-37-0), well inside the reference's own uncertainty. The deterministic workloads — the busy hours of the welder, the robot, the cutting station and the NDT pairs — matched the original data in every model. With the correction, scenario 6 sits at the takt limit of one jacket per week, at about 5.0 working days per jacket (4.96–5.00 across the models), met in about half of the replications. On the corrected specification a run took 12 min, 19 calls and 1.9 USD on average in SimPy (building and verifying 8 min, 1.6 USD), 134 min, 185 calls and 20 USD in SimuLean v1 (39 min, 16 USD) and 112 min, 339 calls and 37 USD in v2 (52 min, 26 USD); every SimuLean run hit the token limit once and was resumed, no SimPy run hit a limit. The v1 agents built this time with fewer, larger C# blocks that call the commands in loops — 60 to 69 blocks and 1 038 to 1 168 lines per run, as much code as the SimPy agents wrote — so v1 was cheaper than v2 in this round, whereas the v2 agents again wrote no code (161 to 299 domain commands per run). Both interface versions give valid models, and code written from scratch is 10–20 times cheaper.
Table 8: The reference model, its correction and the agent-built models of the corrected specification, in working days per jacket (real working time). Mean ± 95% half-width over 50 replications, or mean (range) over three runs, each re-run with 50 replications. FlexSim reports the original study's KPI; its results are converted to working days with the model's working calendar (as run, the original model reproduces the published value). In every model the busy hours of the welder, the robot, the cutting station and the NDT pairs equal the workloads implied by the original data.
| Model | Working days per
jacket | Difference from
corrected |
|------------------------------------------------------|----------------------------|------------------------------|
| Original as run, with the routing error
(FlexSim) | 4.836 ± 0.008 | −2.9% |
| Original corrected (FlexSim) | 4.98 ± 0.06 | reference |
| Agent-built, SimPy, 3 runs | 4.999 (4.998–5.001) | +0.4% |
| Agent-built, SimuLean v1, 3 runs | 4.986 (4.964–4.998) | +0.1% (−0.3 to
+0.4%) |
| Agent-built, SimuLean v2, 3 runs | 4.991 (4.983–4.999) | +0.2% (+0.1 to
+0.4%) |
The usual direction of verification is thus reversed: an independent model, built by an agent from the text, served as a behavioural oracle for the expert's model. The first author, who prepared the specification, was among the authors of the original model; an error of this kind, found and fixed when a model is rebuilt independently, is normal modelling practice. It also shows that agreement with a published value is not by itself evidence of validity: before the correction, the SimuLean models closest to the original model were ones whose agents had declared approximations of some rules.
## 7. Discussion
## 7.1. Implications
One agent builds complete models that people can inspect. A valid benchmark model took about two minutes of agent time and about one dollar of estimated API cost, and the industrial workshop — five spans, overhead cranes and rail carts, two shifts, rework loops and 13 operators — was built and verified in under an hour on average and fully studied in 83 to 185 min per run. A panel of simulation researchers recently expected generative AI to generate valid models autonomously only within the next two decades [16](#page-46-5); for the model-building part of a study, and for systems of this size, our results suggest that this capability is already within reach. The result is not a script but a 3D scene with the plant's layout and the request's names, which an engineer can watch, edit and hand back to the agent. For small and mediumsized manufacturers, which lack simulation specialists more than computing power, that may matter more than the cost of the agent's tokens.
A verified platform or unverified code. For a frontier agent, code is the cheaper medium: about one thirtieth of the tokens on six benchmark tasks, at equal or higher validity, so the capability is not tied to one tool. What an agent writes from scratch, however, contains only what it thought of, and its semantics are tested by nobody but the agent. A simulator supplies such features as configuration whose semantics are tested once, against reference models and analytical results, for every model built with it. The industrial case confirms the trade-off at plant scale (Section [6.3\)](#page-36-1): in SimPy the agent was faster (11–15 against 83–185 min), cheaper (about 2 against 20–50 USD) and more consistent between runs, and wrote about 1 000 lines with no layout; in SimuLean it produced a 3D model that an engineer can see and question. Efficiency favours code; review and communication favour the simulator. In a design project the model is what the engineer checks and what the client looks at before committing to the investment, and against
the cost of a modelling project the 20–50 USD of an agent-built 3D model is small; the command-line runner and a smaller tool context should narrow the gap further. Which medium suits a project therefore depends on whether it needs a quick numerical answer or a model that people other than its author must understand and trust.
Physics to measure, DES to study. The engine lets a physically simulated process end a DES duration: physics reveals effects that abstract models miss, such as congestion in narrow aisles, and calibrates the fast headless model on which the studies run. Shown here on transport, the route "calibrate with physics, study headless" extends to handling and placing material and beyond manufacturing, for example to fleets of unmanned surface vessels whose travel times depend on vessel dynamics.
What the interface changes: traceability, not validity. None of the interface interventions changed validity: v0 and v1, the ablations and the two versions in the industrial case gave the same validity. We read this as a ceiling rather than as evidence that the design does not matter: SimuLean had been developed with AI coding agents from the start, so v0 was already usable by them, and the silent errors that remained were errors in reading the specification, not in operating the tool. The one operating problem, agents polling a long study until the token cap (four runs at T4.2), came from a command v1 lacked and the released version adds: a wait on a running study. What the interface did change is how the model is built. Where the commands cover the task, the agents used nothing else — 105 of the 108 C-Full attempts on v1 and every v2 run of the industrial case wrote no model code — and the model comes with a record of every step in the modelling vocabulary; where they did not, as for bulk edits, diagnosis and the optimiser on v1, the agents fell back on as much code as a SimPy model (about 1 100 lines per run in the case). For verification this is the difference that matters: a model assembled from verified elements through recorded commands can be reviewed as a configuration and a 3D scene, whereas a model written as code is new software to be reviewed line by line every time. Reviewing a configuration is not free — the case models have 87 to 402 elements and 21 to 61 reaction rules, and agents structured the same workshop differently — but what has to be checked is the structure and the parameters, not the semantics. Commands do not reduce effort, which is set by the tokens an agent writes and re-reads (about 99% of them re-reads of its context); that needs smaller contexts and answers.
Verification has to be behavioural. Every failure we observed was silent, so trust in an agent-built model cannot rest on the fact that it builds and runs: the build-and-run gate blocked no agent model and rejected 4 of 45 seeded defects. Checks on the behaviour of the model flagged 16 of 30 silent errors, an upper bound since they were written knowing the failures. At plant scale the same holds: all workshop models were self-consistent, with exact workloads and plausible reports, yet on the first specification their results spread by about 5 % for reasons that nothing in the models showed. The oracle also works in reverse: three literal SimPy models that agreed with each other but not with the published model led to the discovery of an error in that expert-built model, and against the corrected model the agent-built models agree within 1%. An independent model — a published one, one in another tool or one by another agent — is therefore the oracle that matters, for the agent's model and the expert's alike, and at the cost of an agentbuilt model, building a model twice is an affordable practice for decisions that matter. A simulator built for agents should offer behavioural checks, reproducible runs and a record of the agent's assumptions as much as it offers commands.
Cost and time against a modeller. The industrial workshop — a complete, verified 3D model with an experiment and an optimisation — took one and a half to three hours of agent time and 20–50 USD per run in SimuLean. From their experience, the authors estimate that a simulation engineer would need about two weeks of dedicated work, including the data analysis, to build and debug a model like this, without its 3D presentation, at a much higher salary cost; this is an estimate, not a measurement. The human role shifts to specifying, checking and interpreting.
## 7.2. Where agents fail
Vague or contradictory specifications produce silent errors that no check on the model alone can find: in H4 every attempt doubled an already doubled demand, in H1 agents added a rule, and on T4.3 two attempts read the task's minutes as hours. The second model failed more often on the harder tasks, but in the same ways. The agents asked no questions; they assumed and reported their assumptions. Asking the agent to list a request's ambiguities before building is a cheap remedy we did not test. Where a concept is missing, agents improvise: the dominant benchmark error, an operator kept busy during a break, arises because the break is attached to the station, and
calendars for resource teams would remove the trap. At plant scale agents also simplify: to let the optimiser vary bed counts, three of six grouped the beds of a kind into one station. On the first specification these models were about 3 % slower, a difference that vanished once the reference was corrected but that nothing in the models revealed. A model's structure should therefore be checked against the specification, not only its parameters and behaviour.
## 7.3. Limitations
- Author-built tasks. The authors wrote the tasks, reference models and criteria, fixed before the runs; the SimPy arm, the behavioural checks and the case came after the first results. The case's reference model was published before this work, but the first author was among its authors and prepared the specification; it was corrected during this work, and its final specification was run three times per tool.
- One industrial case. The plant-scale evidence rests on one workshop and one complete specification; other plants, and requests less complete than a published study, may give other results.
- One provider, k = 3. Two models of one provider: only large differences between versions or ablations are detectable. The simulator was developed with the help of AI coding agents of the same provider, which may have adapted its interface to them; other agents may do worse.
- No simulator built for people as a baseline. We compared SimuLean with code written from scratch, not with a simulator that was not designed for agents (e.g. a commercial package driven through a scripting or MCP interface); the value of the design itself is therefore argued from traceability and from the ceiling of the interface interventions, not measured against such a baseline.
- Physics is a model too. T3 is Unity's navigation and physics, not measured vehicle behaviour, and the narrow-layout T3 runs are few.
- Studies in the editor. The case's studies ran inside the editor, about 10–14 times slower than outside it, which inflates the time of the SimuLean runs.
- The SimPy comparison. Its contract defined every KPI and only the SimPy agent had a shell.
- Commercial tools not measured. Table [4](#page-19-0) draws on published descriptions.
• Verification, not validation. Validity is equivalence with a reference or published model; validation against the real system remains the modeller's task [68](#page-53-1).
## 8. Conclusions and future work
We presented SimuLean, a free and open-source 3D discrete-event simulator designed to be programmed by AI agents, and evaluated it with a benchmark whose validity criteria were fixed before the runs, a comparison with code written from scratch, an industrial case checked against a published model that this work corrected, and performance and physics experiments.
RQ1. One frontier agent working alone built valid models in 93 of 108 attempts (86%; 77 of 84 on the main tasks), with a median of 2.0 min and an estimated 1.14 USD per valid model; a second model was valid in 43 of 54 attempts over the same tasks (Opus 46 of 54, no significant difference). At plant scale, one agent rebuilt a published robotised welding workshop, verified it and ran its experiment and optimisation in one and a half to three hours and for 20–50 USD per run; the comparison exposed an error in the published model, and against the corrected model the agent-built models agree within 1%. RQ2. Every remaining failure was a silent error: the build-and-run gate blocked none of 216 gated runs, behavioural checks flagged 16 of 30 with 21 false alarms in 207 valid models, and errors in reading the specification escaped every check on the model. In the industrial case, the agents' models disagreed by about 5 % on the first specification for reasons invisible in the models, and independent agent-built models revealed an error in the published expert model itself. RQ3. A trade-off: the agent writing SimPy was at least as valid (18 of 18 against 15 of 18) and used about one thirtieth of the tokens, while SimuLean adds what the code left out or simplified — aisle networks, cranes, calendars, failures and teams as configuration, integrated studies, physics calibrated for headless runs, and a model a non-programmer can see, review and edit. The industrial case confirmed it: in SimPy the agent was faster (about 13 against 100–135 min on average), cheaper (about 2 against 20–40 USD) and more consistent; in SimuLean it produced a 3D model an engineer can question. What the commands add is traceability rather than validity: where they cover the task the agents wrote no code, and the model is a configuration of verified elements with a record of how it was built; where they did not, the agents wrote as much code as in SimPy. RQ4. The engine runs one to three million events per second outside Unity, 6–14 times faster than SimPy on the benchmark's models and about three times faster on the larger model of the industrial case; physically simulated transport reveals congestion that abstract travel models miss, and a travel model calibrated from it recovers the results at headless cost.
What is provided. SimuLean is released under the GPL-3.0 as a free, open and capable 3D DES tool, designed for agents and equally usable by people. It is meant for teaching as well as for industrial projects. We hope that lecturers will find in it a free alternative to commercial packages for their courses, one in which students can build, watch and question a model with or without an agent. We will keep developing it on such cases and welcome contributions from the community; under its licence, anyone may also adapt a version of their own.
Future work. Development continues on new features and on real industrial cases; on libraries with presets for specific industries; on the command-line runner, so that studies and the optimiser run outside the editor; and on a smaller tool context, to make the simulator more efficient for agents. We will also keep benchmarking it, with other agents and stronger behavioural checks, and later with open-weight models running locally, which keep plant data on premises but become practical only once the context shrinks: about 99% of the tokens of an agent-built model are re-reads of its context (about 125 M per run in the industrial case).
## CRediT authorship contribution statement
Javier Pernas-Álvarez and Diego Crespo-Pereira contributed equally to all aspects of this work: Conceptualization, Methodology, Software, Validation, Formal analysis, Investigation, Data curation, Resources, Visualization, Writing – original draft, Writing – review & editing, Supervision and Project administration.
## Declaration of competing interest
The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.
## Funding
This research did not receive any specific grant from funding agencies in the public, commercial, or not-for-profit sectors.
## Data and code availability
SimuLean is released under the GNU GPL-3.0 at [https://github.com](https://github.com/simulean/SimuLean) [/simulean/SimuLean](https://github.com/simulean/SimuLean); version 1.0.0, the one described here, is archived on Zenodo [67](#page-53-0). The benchmark tasks, reference models, agent transcripts and analysis scripts are available from the authors on request.
## Declaration of generative AI and AI-assisted technologies in the manuscript preparation process
During the preparation of this work the authors used Claude (Anthropic), through the Claude Code tool, to help draft and edit the text, search and summarise the literature, write the analysis scripts, produce the data figures from the experimental data and draw the diagrams (Figs. [1,](#page-4-0) [2,](#page-9-0) [3,](#page-12-0) [4,](#page-14-0) [5](#page-23-0) and [11\)](#page-33-0). After using this tool, the authors reviewed and edited the content as needed, checked every reported number against the underlying data, and take full responsibility for the content of the published article.
AI assistance in the development of the software. Parts of SimuLean source code, tests and documentation — were written with the assistance of AI coding agents (Claude Code with Claude models, Anthropic) working under the authors' direction. Every change passed the simulator's automated test suite and reference models (Section [3\)](#page-8-0), and the authors reviewed and are responsible for the released code.
AI agents as the object of the study. The AI agents that build the simulation models in the experiments (Claude Opus 5.5 and Claude Sonnet 5.5, through Claude Code) are the subject of the research, not a writing aid; their use is described in Section [4.](#page-18-0)
## References
[1] M. Jahangirian, T. Eldabi, A. Naseer, L. K. Stergioulas, T. Young, Simulation in manufacturing and business: A review, European Journal
- of Operational Research 203 (2010) 1–13. doi:[10.1016/j.ejor.2009.](http://dx.doi.org/10.1016/j.ejor.2009.06.004) [06.004](http://dx.doi.org/10.1016/j.ejor.2009.06.004).
- [2] D. Mourtzis, Simulation in the design and operation of manufacturing systems: state of the art and new trends, International Journal of Production Research 58 (2020) 1927–1949. doi:[10.1080/00207543.2019.](http://dx.doi.org/10.1080/00207543.2019.1636321) [1636321](http://dx.doi.org/10.1080/00207543.2019.1636321).
- [3] A. Kusiak, Smart manufacturing, International Journal of Production Research 56 (2018) 508–517. doi:[10.1080/00207543.2017.1351644](http://dx.doi.org/10.1080/00207543.2017.1351644).
- [4] F. Tao, H. Zhang, A. Liu, A. Y. C. Nee, Digital Twin in Industry: State-of-the-Art, IEEE Transactions on Industrial Informatics 15 (2019) 2405–2415. doi:[10.1109/tii.2018.2873186](http://dx.doi.org/10.1109/tii.2018.2873186).
- [5] Y. Lu, C. Liu, K. I.-K. Wang, H. Huang, X. Xu, Digital twin-driven smart manufacturing: Connotation, reference model, applications and research issues, Robotics and Computer-Integrated Manufacturing 61 (2020) 101837. doi:[10.1016/j.rcim.2019.101837](http://dx.doi.org/10.1016/j.rcim.2019.101837).
- [6] G. Dagkakis, C. Heavey, A review of open source discrete event simulation software for operations research, Journal of Simulation 10 (2016) 193–206. doi:[10.1057/jos.2015.9](http://dx.doi.org/10.1057/jos.2015.9).
- [7] A. L. Bicalho-Hoch, F. Özkul, N. Wittine, S. Wenzel, A tool-based approach to assess simulation worthiness and specify sponsor needs for SMEs, in: Proceedings of the 2022 Winter Simulation Conference (WSC), 2022, pp. 1818–1829. doi:[10.1109/WSC57314.2022.10015373](http://dx.doi.org/10.1109/WSC57314.2022.10015373).
- [8] S. Lang, T. Reggelin, M. Müller, A. Nahhas, Open-source discreteevent simulation software for applications in production and logistics: An alternative to commercial tools?, Procedia Computer Science 180 (2021) 978–987. doi:[10.1016/j.procs.2021.01.349](http://dx.doi.org/10.1016/j.procs.2021.01.349).
- [9] Y. Ren, Y. Liu, T. Ji, X. Xu, AI Agents and Agentic AI–navigating a plethora of concepts for future manufacturing, Journal of Manufacturing Systems 83 (2025) 126–133. doi:[10.1016/j.jmsy.2025.08.017](http://dx.doi.org/10.1016/j.jmsy.2025.08.017).
- [10] Anthropic, Building effective agents, [https://www.anthropic.com/en](https://www.anthropic.com/engineering/building-effective-agents) [gineering/building-effective-agents](https://www.anthropic.com/engineering/building-effective-agents), 2024. Accessed 12 October 2026.
- [11] T. Monks, A. Harper, A. Heather, Unlocking the potential of past research: using generative AI to reconstruct healthcare simulation models, Journal of the Operational Research Society 77 (2025) 1819–1842. doi:[10.1080/01605682.2025.2554751](http://dx.doi.org/10.1080/01605682.2025.2554751).
- [12] J.-Q. Chen, K. Zhang, R. Zheng, Y. Zhong, Mechanism-faithful queueing simulation model translation with large language model support, arXiv preprint arXiv:2601.06543, 2026. doi:[10.48550/arXiv.2601.06543](http://dx.doi.org/10.48550/arXiv.2601.06543).
- [13] M. Elbasheer, Y. Laili, F. Longo, V. Solina, Y. Tao, P. Veltri, Y. Zhang, L. Zhang, Natural language-driven production planning: integrating large language models with automatic simulation model generation in manufacturing systems, Journal of Intelligent Manufacturing 37 (2025) 4431–4458. doi:[10.1007/s10845-025-02732-z](http://dx.doi.org/10.1007/s10845-025-02732-z).
- [14] M. Korth, M. Benfer, G. Lanza, Multi-agentic production planning utilising simulation and optimisation, CIRP Annals 75 (2026) 595–599. doi:[10.1016/j.cirp.2026.04.027](http://dx.doi.org/10.1016/j.cirp.2026.04.027).
- [15] T. Schmitt, N. Gegenmantel, M. Urenda Moris, P. Mårtensson, K. Amouzgar, LLM-driven discrete-event simulation: A generative AI framework for automated model generation, adaptation, and evaluation in manufacturing, Journal of Manufacturing Systems 85 (2026) 642–661. doi:[10.1016/j.jmsy.2026.02.015](http://dx.doi.org/10.1016/j.jmsy.2026.02.015).
- [16] H. Ehm, D. Pegden, H. Sarjoughian, A. Tolk, E. Hua, M. Dehghanimohammadabadi, Look to the future! Simulation by 2050 and beyond, in: E. Azar, A. Djanatliev, A. Harper, C. Kogler, V. Ramamohan, A. Anagnostou, S. J. E. Taylor (Eds.), Proceedings of the 2025 Winter Simulation Conference (WSC), IEEE, 2025, pp. 2404–2418.
- [17] N. Fachada, D. Fernandes, C. M. Fernandes, J. P. Matos-Carvalho, Can large language models implement agent-based models? an ODD-based replication study, Ecological Modelling 517 (2026) 111624. doi:[10.101](http://dx.doi.org/10.1016/j.ecolmodel.2026.111624) [6/j.ecolmodel.2026.111624](http://dx.doi.org/10.1016/j.ecolmodel.2026.111624).
- [18] SimPy developers, SimPy: Discrete event simulation for Python — documentation, , 2026. Accessed 15 October 2026.
- [19] R. van der Ham, salabim: discrete event simulation and animation in Python, Journal of Open Source Software 3 (2018) 767. doi:[10.21105](http://dx.doi.org/10.21105/joss.00767) [/joss.00767](http://dx.doi.org/10.21105/joss.00767).
- [20] G. I. Palmer, V. A. Knight, P. R. Harper, A. L. Hawa, Ciw: An opensource discrete event simulation library, Journal of Simulation 13 (2019) 68–82. doi:[10.1080/17477778.2018.1473909](http://dx.doi.org/10.1080/17477778.2018.1473909).
- [21] G. Dagkakis, I. Papagiannopoulos, C. Heavey, ManPy: an open-source software tool for building discrete event simulation models of manufacturing systems, Software: Practice and Experience 46 (2016) 955–981. doi:[10.1002/spe.2347](http://dx.doi.org/10.1002/spe.2347).
- [22] D. H. King, H. S. Harrison, Open-source simulation software "Jaam-Sim", in: Proceedings of the 2013 Winter Simulation Conference (WSC), IEEE, 2013, pp. 2163–2171. doi:[10.1109/WSC.2013.6721593](http://dx.doi.org/10.1109/WSC.2013.6721593).
- [23] J. Pernas-Álvarez, D. Crespo-Pereira, Open-source 3D discrete event simulator based on the game engine Unity, Journal of Simulation 18 (2024) 886–902. doi:[10.1080/17477778.2024.2314166](http://dx.doi.org/10.1080/17477778.2024.2314166).
- [24] C. J. Turner, W. Garn, Next generation DES simulation: A research agenda for human centric manufacturing systems, Journal of Industrial Information Integration 28 (2022) 100354. doi:[10.1016/j.jii.2022.1](http://dx.doi.org/10.1016/j.jii.2022.100354) [00354](http://dx.doi.org/10.1016/j.jii.2022.100354).
- [25] G. W. Scurati, F. Ferrise, M. Bertoni, Extended realities and discrete events simulations: A systematic review to define design trade-offs and directions, Computers in Industry 164 (2025) 104188. doi:[10.1016/j.](http://dx.doi.org/10.1016/j.compind.2024.104188) [compind.2024.104188](http://dx.doi.org/10.1016/j.compind.2024.104188).
- [26] C. Dodero, M. R. McCormick, A. A. Malik, R. Harik, T. Wuest, Systematic selection framework for digital twin development environments in smart manufacturing, Digital Twin 2 (2025) 2565246. doi:[10.1080/](http://dx.doi.org/10.1080/27525783.2025.2565246) [27525783.2025.2565246](http://dx.doi.org/10.1080/27525783.2025.2565246).
- [27] J. Possik, S. Gorecki, A. Asgary, A. O. Solis, G. Zacharewicz, M. Tofighi, M. A. Shafiee, A. A. Merchant, M. Aarabi, A. Guimaraes, N. Nadri, A distributed simulation approach to integrate AnyLogic and Unity for virtual reality applications: Case of COVID-19 modelling and training
- in a dialysis unit, in: 2021 IEEE/ACM 25th International Symposium on Distributed Simulation and Real Time Applications (DS-RT), 2021, pp. 1–7. doi:[10.1109/DS-RT52167.2021.9576149](http://dx.doi.org/10.1109/DS-RT52167.2021.9576149).
- [28] R. Andrade, S. V. Avilés-Sacoto, D. Parra, Affordable digital twin design for SMEs: A hybrid Unity–FlexSim-IoT approach aligned with DMAIC, in: 2025 IEEE Smart World Congress (SWC), 2025, pp. 1701–1707. doi:[10.1109/SWC65939.2025.00312](http://dx.doi.org/10.1109/SWC65939.2025.00312).
- [29] S. Fathi, S. Fathi, V. Balali, Time–space conflict management in construction sites using discrete event simulation (DES) and path planning in Unity, Applied Sciences 13 (2023) 8128. doi:[10.3390/app13148128](http://dx.doi.org/10.3390/app13148128).
- [30] M. Balla, O. Haffner, E. Kučera, J. Cigánek, Educational case studies: Creating a digital twin of the production line in TIA Portal, Unity, and Game4Automation framework, Sensors 23 (2023) 4977. doi:[10.3390/s2](http://dx.doi.org/10.3390/s23104977) [3104977](http://dx.doi.org/10.3390/s23104977).
- [31] M. Ullrich, R. Thalappully, F. Heieck, B. Lüdemann-Ravit, Virtual commissioning of linked cells using digital models in an industrial metaverse, Automation 5 (2024) 1–12. doi:[10.3390/automation5010001](http://dx.doi.org/10.3390/automation5010001).
- [32] M. Glatt, C. Sinnwell, L. Yi, S. Donohoe, B. Ravani, J. C. Aurich, Modeling and implementation of a digital twin of material flows based on physics simulation, Journal of Manufacturing Systems 58 (2021) 231–245. doi:[10.1016/j.jmsy.2020.04.015](http://dx.doi.org/10.1016/j.jmsy.2020.04.015).
- [33] V. B. S. Cassano, E. S. Vitor Junior, F. K. Kaida, W. P. N. dos Reis, O. Morandin Junior, Simulating automated guided vehicles in Unity: A case study on PID controller tuning, Applied System Innovation 8 (2025) 170. doi:[10.3390/asi8060170](http://dx.doi.org/10.3390/asi8060170).
- [34] T. Wang, Z. Liu, X. V. Wang, L. Wang, LLM agents-driven layout generation for reconfigurable manufacturing systems, CIRP Annals 75 (2026) 577–581. doi:[10.1016/j.cirp.2026.03.015](http://dx.doi.org/10.1016/j.cirp.2026.03.015).
- [35] S. Nambiar, R. C. Paul, O. C. Ikechukwu, M. Jonsson, M. Tarkian, Digital twin-enabled adaptive robotics: Leveraging large language models in Isaac Sim for unstructured environments, Machines 13 (2025) 620. doi:[10.3390/machines13070620](http://dx.doi.org/10.3390/machines13070620).
- [36] L. M. d. F. Cintra, E. A. M. de Oliveira, R. T. Sousa, V. V. Graciano, A. Galvão, G. Webster, S. L. d. C. Paiva, An LLM-enhanced framework for bridging simulators and game engines towards realistic 3D simulations, in: Proceedings of the 2025 ACM International Conference on Interactive Media Experiences (IMX '25), ACM, 2025, pp. 402–405. doi:[10.1145/3706370.3731648](http://dx.doi.org/10.1145/3706370.3731648).
- [37] I. Jackson, M. Jesus Saenz, D. Ivanov, From natural language to simulations: applying AI to automate simulation modelling of logistics systems, International Journal of Production Research 62 (2024) 1434– 1457. doi:[10.1080/00207543.2023.2276811](http://dx.doi.org/10.1080/00207543.2023.2276811).
- [38] E. Frydenlund, J. Martínez, J. J. Padilla, K. Palacio, D. Shuttleworth, Modeler in a box: how can large language models aid in the simulation modeling process?, SIMULATION 100 (2024) 727–749. doi:[10.1177/00](http://dx.doi.org/10.1177/00375497241239360) [375497241239360](http://dx.doi.org/10.1177/00375497241239360).
- [39] A. Akhavan, M. S. Jalali, Generative AI and simulation modeling: how should you (not) use large language models like ChatGPT, System Dynamics Review 40 (2024) e1773. doi:[10.1002/sdr.1773](http://dx.doi.org/10.1002/sdr.1773).
- [40] T. Carreira-Munich, V. Paz-Marcolla, R. Castro, DEVS copilot: Towards generative AI-assisted formal simulation modelling based on large language models, in: Proceedings of the 2024 Winter Simulation Conference (WSC), IEEE, 2024, pp. 2785–2796.
- [41] S. Chotaliya, J. Fowler, G. Pedrielli, D. Bayba, M. Norton, P. Sain, K. Yu, A foundational framework for generative simulation models: Pathway to generative digital twins for supply chain, in: 2025 Winter Simulation Conference (WSC), 2025, pp. 1700–1711. doi:[10.1109/WSC6](http://dx.doi.org/10.1109/WSC68292.2025.11339118) [8292.2025.11339118](http://dx.doi.org/10.1109/WSC68292.2025.11339118).
- [42] T. Monks, A. Harper, A. Heather, N. Mustafee, Generative artificial intelligence (GenAI) to convert images of queuing networks into verifiable simulation models: an open-weight LLM workflow approach, arXiv preprint arXiv:2607.24259, 2026. doi:[10.48550/arXiv.2607.24259](http://dx.doi.org/10.48550/arXiv.2607.24259).
- [43] R. Krämer, J. Heger, Automated generation of simulation models for production and logistics processes using LLM-based multi-agent systems, SNE Simulation Notes Europe 36 (2026) 9–14. doi:[10.11128/sne](http://dx.doi.org/10.11128/sne.36.tn.10762) [.36.tn.10762](http://dx.doi.org/10.11128/sne.36.tn.10762).
- [44] Y. Jeong, K. Cho, J. H. Woo, Exploring the integration of large language models and the model context protocol for automated simulation modeling: Feasibility checks with a matrix production system, in: Proceedings of the 2025 Winter Simulation Conference, 2025. URL: , poster.
- [45] Anthropic, Model context protocol, [https://modelcontextprotocol](https://modelcontextprotocol.io) [.io](https://modelcontextprotocol.io), 2024. Accessed 22 October 2026.
- [46] M. Dehghani, SimGPT: Unlocking potentials of generative AI in simulation via Simio and LLM integration, Computers & Industrial Engineering 218 (2026) 112104. doi:[10.1016/j.cie.2026.112104](http://dx.doi.org/10.1016/j.cie.2026.112104).
- [47] S. Chen, L. Lv, Y. Liu, Large language model-guided simulation optimization for balancing productivity, energy, and worker physical load in job shop scheduling, Computers & Industrial Engineering 220 (2026) 112286. doi:[10.1016/j.cie.2026.112286](http://dx.doi.org/10.1016/j.cie.2026.112286).
- [48] H. El Baz, M.-K. Ghali, L. Andrus, D. Won, S. W. Yoon, Y. Wang, Generative AI-based optimization for high-mix warehouses: Integrating agentic LLMs and discrete event simulation, Computers & Industrial Engineering 214 (2026) 111884. doi:[10.1016/j.cie.2026.111884](http://dx.doi.org/10.1016/j.cie.2026.111884).
- [49] Y. Xia, D. Dittler, N. Jazdi, H. Chen, M. Weyrich, LLM experiments with simulation: Large Language Model Multi-Agent System for Simulation Model Parametrization in Digital Twins, in: 2024 IEEE 29th International Conference on Emerging Technologies and Factory Automation (ETFA), 2024, pp. 1–4. doi:[10.1109/etfa61755.2024.10710900](http://dx.doi.org/10.1109/etfa61755.2024.10710900).
- [50] Z. Yuan, M. Li, C. Liu, F. Han, H. Huang, H.-N. Dai, Chat with MES: LLM-driven user interface for manipulating garment manufacturing system through natural language, Journal of Manufacturing Systems 80 (2025) 1093–1107. doi:[10.1016/j.jmsy.2025.02.008](http://dx.doi.org/10.1016/j.jmsy.2025.02.008).
- [51] C. Chen, K. Zhao, J. Leng, C. Liu, J. Fan, P. Zheng, Integrating large language model and digital twins in the context of industry 5.0: Framework, challenges and opportunities, Robotics and Computer-Integrated Manufacturing 94 (2025) 102982. doi:[10.1016/j.rcim.2025.102982](http://dx.doi.org/10.1016/j.rcim.2025.102982).
- [52] M. S. Bajestani, D. Mun, D. B. Kim, Human-in-the-loop and large language models in smart manufacturing: Current applications, challenges,
- and perspectives, Journal of Manufacturing Systems 86 (2026) 913–941. doi:[10.1016/j.jmsy.2026.04.027](http://dx.doi.org/10.1016/j.jmsy.2026.04.027).
- [53] M. Fakih, R. Dharmaji, Y. Moghaddas, G. Quiros, O. Ogundare, M. A. Al Faruque, LLM4PLC: Harnessing large language models for verifiable programming of PLCs in industrial control systems, in: Proceedings of the 46th International Conference on Software Engineering: Software Engineering in Practice (ICSE-SEIP), ACM, 2024, pp. 192–203. doi:[10](http://dx.doi.org/10.1145/3639477.3639743) [.1145/3639477.3639743](http://dx.doi.org/10.1145/3639477.3639743).
- [54] Z. Liu, R. Zeng, D. Wang, G. Peng, X. Liu, Q. Liu, P. Liu, W. Wang, J. Wang, Agents4PLC: Automating closed-loop PLC code generation and verification in industrial control systems using LLM-based agents, IEEE Transactions on Software Engineering 52 (2026) 1672–1687. doi:[10](http://dx.doi.org/10.1109/TSE.2026.3667895) [.1109/TSE.2026.3667895](http://dx.doi.org/10.1109/TSE.2026.3667895).
- [55] Y. Tu, H. Wang, Z. Zhou, J. Zhou, N. Zhu, G. Chen, W. Chen, T. Zhou, Y. Zhou, D. Yang, X. Mou, H. Zhang, Y. Xu, SemaPLC: A projectgrounded, verification-gated agent harness for PLC code generation, arXiv preprint arXiv:2608.18565, 2026. doi:[10.48550/arXiv.2608.](http://dx.doi.org/10.48550/arXiv.2608.18565) [18565](http://dx.doi.org/10.48550/arXiv.2608.18565).
- [56] K. Alrashedy, P. Tambwekar, Z. H. Zaidi, M. Langwasser, W. Xu, M. Gombolay, Generating CAD code with vision-language models for 3D designs, in: International Conference on Learning Representations (ICLR), 2025. URL: [https://proceedings.iclr.cc/paper\\_files/pa](https://proceedings.iclr.cc/paper_files/paper/2025/hash/81a934cd364e18ea6fdeaf57a93c17d4-Abstract-Conference.html) [per/2025/hash/81a934cd364e18ea6fdeaf57a93c17d4-Abstract-Con](https://proceedings.iclr.cc/paper_files/paper/2025/hash/81a934cd364e18ea6fdeaf57a93c17d4-Abstract-Conference.html) [ference.html](https://proceedings.iclr.cc/paper_files/paper/2025/hash/81a934cd364e18ea6fdeaf57a93c17d4-Abstract-Conference.html).
- [57] J. Xiang, T. Ye, P. Liu, Y. Zhang, W. Wang, ModiGen: A large language model-based framework for Modelica component generation in multi-domain systems, in: Proceedings of the ACM/IEEE 29th International Conference on Model Driven Engineering Languages and Systems (MODELS '26), ACM, 2026, pp. 140–151. doi:[10.1145/3822455.3830](http://dx.doi.org/10.1145/3822455.3830313) [313](http://dx.doi.org/10.1145/3822455.3830313).
- [58] Z. Wang, Beyond executable models: The Pufibara agent harness and the Modelica agent workflow benchmark for physical system modeling, arXiv preprint arXiv:2608.23653, 2026. doi:[10.48550/arXiv.2608.23](http://dx.doi.org/10.48550/arXiv.2608.23653) [653](http://dx.doi.org/10.48550/arXiv.2608.23653).
- [59] A. AhmadiTeshnizi, W. Gao, M. Udell, OptiMUS: Scalable optimization modeling with (MI)LP solvers and large language models, in: Proceedings of the 41st International Conference on Machine Learning, volume 235 of Proceedings of Machine Learning Research, PMLR, 2024, pp. 577– 596. URL: [https://proceedings.mlr.press/v235/ahmaditeshnizi2](https://proceedings.mlr.press/v235/ahmaditeshnizi24a.html) [4a.html](https://proceedings.mlr.press/v235/ahmaditeshnizi24a.html).
- [60] J. Huang, X. Chen, S. Mishra, H. S. Zheng, A. W. Yu, X. Song, D. Zhou, Large language models cannot self-correct reasoning yet, in: International Conference on Learning Representations (ICLR), 2024. URL: .
- [61] T. X. Olausson, J. P. Inala, C. Wang, J. Gao, A. Solar-Lezama, Is selfrepair a silver bullet for code generation?, in: International Conference on Learning Representations (ICLR), 2024. URL: [https://proceedi](https://proceedings.iclr.cc/paper_files/paper/2024/hash/9ddc141bdbf9d1db510cefff56c586ad-Abstract-Conference.html) [ngs.iclr.cc/paper\\_files/paper/2024/hash/9ddc141bdbf9d1db51](https://proceedings.iclr.cc/paper_files/paper/2024/hash/9ddc141bdbf9d1db510cefff56c586ad-Abstract-Conference.html) [0cefff56c586ad-Abstract-Conference.html](https://proceedings.iclr.cc/paper_files/paper/2024/hash/9ddc141bdbf9d1db510cefff56c586ad-Abstract-Conference.html).
- [62] N. Shinn, F. Cassano, A. Gopinath, K. Narasimhan, S. Yao, Reflexion: Language agents with verbal reinforcement learning, in: Advances in Neural Information Processing Systems 36 (NeurIPS 2023), 2023, pp. 8634–8652. doi:[10.52202/075280-0377](http://dx.doi.org/10.52202/075280-0377).
- [63] S. Yao, N. Shinn, P. Razavi, K. Narasimhan, τ -bench: A benchmark for tool-agent-user interaction in real-world domains, in: International Conference on Learning Representations (ICLR), 2025. URL: [https:](https://proceedings.iclr.cc/paper_files/paper/2025/hash/1b126cc38b8638e07bef37e7b2bb72bf-Abstract-Conference.html) [//proceedings.iclr.cc/paper\\_files/paper/2025/hash/1b126cc3](https://proceedings.iclr.cc/paper_files/paper/2025/hash/1b126cc38b8638e07bef37e7b2bb72bf-Abstract-Conference.html) [8b8638e07bef37e7b2bb72bf-Abstract-Conference.html](https://proceedings.iclr.cc/paper_files/paper/2025/hash/1b126cc38b8638e07bef37e7b2bb72bf-Abstract-Conference.html).
- [64] E. Miller, Adding error bars to evals: A statistical approach to language model evaluations, arXiv preprint arXiv:2411.00640, 2024. doi:[10.485](http://dx.doi.org/10.48550/arXiv.2411.00640) [50/arXiv.2411.00640](http://dx.doi.org/10.48550/arXiv.2411.00640).
- [65] S. Kapoor, B. Stroebl, Z. S. Siegel, N. Nadgir, A. Narayanan, AI agents that matter, Transactions on Machine Learning Research (2025). URL: .
- [66] Y. Zhu, T. Jin, Y. Pruksachatkun, A. Zhang, S. Liu, S. Cui, S. Kapoor, S. Longpre, K. Meng, R. Weiss, F. Barez, R. Gupta, J. Dhamala, J. Merizian, M. Giulianelli, H. Coppock, C. Ududec, A. Kellermann, J. Sekhon,
- J. Steinhardt, S. Schwettmann, A. Narayanan, M. Zaharia, I. Stoica, P. Liang, D. Kang, Establishing best practices in building rigorous agentic benchmarks, in: Advances in Neural Information Processing Systems 38 (NeurIPS 2025), Datasets and Benchmarks Track, 2025, pp. 184435–184475. doi:[10.52202/085713-5547](http://dx.doi.org/10.52202/085713-5547).
- [67] J. Pernas-Álvarez, D. Crespo-Pereira, SimuLean, version 1.0.0 [software], Zenodo, 2026. doi:[10.5281/zenodo.23565564](http://dx.doi.org/10.5281/zenodo.23565564).
- [68] A. M. Law, Simulation Modeling and Analysis, 6 ed., McGraw Hill, 2024.
- [69] SethGame, mcp\_flexsim: a Model Context Protocol server for FlexSim (community project), [https://github.com/SethGame/mcp\\_flexsim](https://github.com/SethGame/mcp_flexsim), 2026. Accessed 15 October 2026.
- [70] Autodesk Community, Add a FlexSim MCP server so AI assistants can drive process flow, FlexSim Ideas and Bug Reports forum, 2026. URL: [https://forums.autodesk.com/t5/flexsim-ideas-and-bug-repor](https://forums.autodesk.com/t5/flexsim-ideas-and-bug-reports/add-a-flexsim-mcp-server-so-ai-assistants-can-drive-process-flow/idi-p/14221240) [ts/add-a-flexsim-mcp-server-so-ai-assistants-can-drive-pro](https://forums.autodesk.com/t5/flexsim-ideas-and-bug-reports/add-a-flexsim-mcp-server-so-ai-assistants-can-drive-process-flow/idi-p/14221240) [cess-flow/idi-p/14221240](https://forums.autodesk.com/t5/flexsim-ideas-and-bug-reports/add-a-flexsim-mcp-server-so-ai-assistants-can-drive-process-flow/idi-p/14221240), accessed 19 October 2026.
- [71] R. van der Ham, salabim: discrete event simulation in Python — manual and source code (version 26.0.6), [https://www.salabim.org/manual](https://www.salabim.org/manual/) [/](https://www.salabim.org/manual/) and , 2026. Accessed 15 October 2026.
- [72] D. H. King, JaamSim user manual, software version 2021-04, [https:](https://jaamsim.com/docs/JaamSim%20User%20Manual%202021-04.pdf) [//jaamsim.com/docs/JaamSim%20User%20Manual%202021-04.pdf](https://jaamsim.com/docs/JaamSim%20User%20Manual%202021-04.pdf), 2021. Accessed 15 October 2026.
- [73] FlexSim Software Products, FlexSim user manual, version 16.2.0, [http](https://damassets.autodesk.net/content/dam/autodesk/www/pdfs/usermanual-flexsim-16.2.2.pdf) [s://damassets.autodesk.net/content/dam/autodesk/www/pdfs/u](https://damassets.autodesk.net/content/dam/autodesk/www/pdfs/usermanual-flexsim-16.2.2.pdf) [sermanual-flexsim-16.2.2.pdf](https://damassets.autodesk.net/content/dam/autodesk/www/pdfs/usermanual-flexsim-16.2.2.pdf), 2016. Accessed 15 October 2026.
- [74] The AnyLogic Company, AnyLogic: Material handling library; downloads and editions, [https://www.anylogic.com/features/librarie](https://www.anylogic.com/features/libraries/material-handling-library/) [s/material-handling-library/](https://www.anylogic.com/features/libraries/material-handling-library/) and [https://www.anylogic.com/d](https://www.anylogic.com/downloads/) [ownloads/](https://www.anylogic.com/downloads/), 2026. Accessed 15 October 2026.
- [75] The AnyLogic Company, AnyLogic help: experiments, random number generators and model formats, , 2026. Accessed 15 October 2026.
- [76] Siemens Digital Industries Software, Plant simulation software, [https:](https://www.siemens.com/en-us/products/tecnomatix/plant-simulation-software/) [//www.siemens.com/en-us/products/tecnomatix/plant-simulatio](https://www.siemens.com/en-us/products/tecnomatix/plant-simulation-software/) [n-software/](https://www.siemens.com/en-us/products/tecnomatix/plant-simulation-software/), 2026. Accessed 15 October 2026.
- [77] Siemens Digital Industries Software, Tecnomatix Plant Simulation 15 – what's new?, [https://blogs.sw.siemens.com/tecnomatix/tecnom](https://blogs.sw.siemens.com/tecnomatix/tecnomatix-plant-simulation-15-whats-new/) [atix-plant-simulation-15-whats-new/](https://blogs.sw.siemens.com/tecnomatix/tecnomatix-plant-simulation-15-whats-new/), 2019. Accessed 15 October 2026.
- [78] S. Weiss, J. A. Schwarz, R. Stolletz, The buffer allocation problem in production lines: Formulations, solution methods, and instances, IISE Transactions 51 (2019) 456–485. doi:[10.1080/24725854.2018.1442031](http://dx.doi.org/10.1080/24725854.2018.1442031).
- [79] B. L. Welch, The generalization of 'Student's' problem when several different population variances are involved, Biometrika 34 (1947) 28–35. doi:[10.1093/biomet/34.1-2.28](http://dx.doi.org/10.1093/biomet/34.1-2.28).
- [80] D. J. Schuirmann, A comparison of the two one-sided tests procedure and the power approach for assessing the equivalence of average bioavailability, Journal of Pharmacokinetics and Biopharmaceutics 15 (1987) 657–680. doi:[10.1007/BF01068419](http://dx.doi.org/10.1007/BF01068419).
- [81] E. B. Wilson, Probable inference, the law of succession, and statistical inference, Journal of the American Statistical Association 22 (1927) 209–212. doi:[10.1080/01621459.1927.10502953](http://dx.doi.org/10.1080/01621459.1927.10502953).
- [82] Q. McNemar, Note on the sampling error of the difference between correlated proportions or percentages, Psychometrika 12 (1947) 153– 157. doi:[10.1007/BF02295996](http://dx.doi.org/10.1007/BF02295996).
- [83] D. W. Jones, An empirical comparison of priority-queue and eventset implementations, Communications of the ACM 29 (1986) 300–311. doi:[10.1145/5684.5686](http://dx.doi.org/10.1145/5684.5686).
- [84] J. D. C. Little, A proof for the queuing formula: L = λW, Operations Research 9 (1961) 383–387. doi:[10.1287/opre.9.3.383](http://dx.doi.org/10.1287/opre.9.3.383).
- [85] A. Lamas-Rodríguez, J. Pernas-Álvarez, I. Taracido-López, Discrete event simulation in the design of a jackets nodes robotized welding workshop, in: Proceedings of the 2020 Summer Simulation Conference (SummerSim '20), volume 52 of Simulation Series, Society for Modeling and Simulation International, 2020, pp. 151–162.
- [86] A. Lamas-Rodríguez, I. Taracido-López, J. Pernas-Álvarez, S.-J. Tutor-Roca, Discrete event simulation for the investment analysis of offshore wind manufacturing processes, International Journal of Simulation and Process Modelling 17 (2021) 137–149. doi:[10.1504/IJSPM.2021.12170](http://dx.doi.org/10.1504/IJSPM.2021.121706) [6](http://dx.doi.org/10.1504/IJSPM.2021.121706).