Local open-weight AI turns factory event logs into SimPy simulations
Researchers report GenAI4SimPy, a local multi-agent framework turning manufacturing event logs into SimPy models, with a 7.9% error but a fidelity gap.
Source: Grafy Research LabA research team from Germany has presented GenAI4SimPy, a multi-agent framework that turns raw manufacturing event logs into executable SimPy simulations using a local, open-weight language model. The work matters because it targets a group that discrete-event simulation (DES) has largely left behind: small and medium-sized enterprises (SMEs) that lack the expertise, infrastructure and budget to build models by hand.
What did the researchers build?
According to the paper, GenAI4SimPy automates the entire path from event log to running model through tool-augmented reasoning, with human-in-the-loop validation so domain experts can check the structure and logic of the generated simulation. It is powered by Qwen 3.6 (27B), an open-weight model, and runs without proprietary cloud APIs. The authors — from Otto von Guericke University Magdeburg, Bielefeld University of Applied Sciences and Arts, Anhalt University of Applied Sciences and the Fraunhofer Institute for Factory Operation and Automation — frame the work around three questions: how to orchestrate LLMs as agents, whether a local model can handle statistical preprocessing and code generation alone, and how humans can validate the result. Automated simulation model generation is not new, they note, but existing approaches often cover only partial workflows and stay rigid and technically complex for SMEs. The 12-page paper, with two figures, is posted to arXiv and listed for the Winter Simulation Conference 2026 in Glasgow, Scotland.
How well did it perform?
The team evaluated the framework on three execution blocks from a public smart factory dataset — a Fischertechnik smart factory event log. It achieved a mean absolute percentage error of 7.9%, with coverage of failure rate for all three blocks and of throughput for two of the three. On that basis, the authors argue that local open-weight models can perform DES generation at accuracy comparable to cloud-based alternatives. They also situate the result against studies finding that generative tools speed up simulation coding but struggle with unpredictable variation and remain far from replacing human experts. The source code and results are publicly available.
What is the "fidelity paradox"?
The paper's most cautionary finding is that accurate process-level parameters did not ensure system-level behavioral fidelity. Flow-time and throughput errors, the authors write, were driven by misinterpreted observation-window truncation and by the absence of system-level calibration. In plain terms, a generated model can extract the right numbers for each step of the process and still mispredict how the whole line behaves. Their conclusion: parameter extraction is necessary but not sufficient for behavioral validity. The authors present this gap as the study's main caveat rather than a solved problem, so generated models still need system-level checks before anyone trusts them for decisions.
Why does running locally matter?
The authors frame data sovereignty as the core motivation. Cloud APIs raise privacy concerns for industrial event data, and opaque provider-side updates bring performance fluctuations, API glitches and model drift that undermine scientific reproducibility. Going local is not free, they note: verbose event logs can overwhelm the context windows and reasoning of open-weight models, while the aggressive quantization needed to run them on-premise degrades their interpretation of complex process logic and semantic anomalies. Those trade-offs are part of why the paper pairs a local model with validation gates.
How does it compare with earlier frameworks?
The paper surveys recent LLM-driven simulation systems, from single-prompt text-to-code translators to sequential multi-agent pipelines, and notes that all rely on prompting rather than domain-specific fine-tuning. Many bypass raw operational data entirely, working from text descriptions; those that use industrial data lean on deterministic preprocessing tools. The comparison table lists systems built on closed models such as GPT-3 Codex, GPT-4o, GPT-5 and Gemini 2.5, alongside one open-weight Qwen 2.5 Coder (32B) pipeline. GenAI4SimPy's distinction, the authors argue, is an end-to-end local workflow that ingests raw logs directly. They attribute the field's remaining limits not to GenAI as a technology class but to specific architectural choices: single-prompt generation, unstructured textual input and the absence of rigorous statistical preprocessing.
What does this mean for SMEs — and how to explore it in Grafy?
For SMEs, the promise is cheaper what-if analysis: bottleneck hunting and scenario testing without hiring simulation specialists, closing a gap the authors warn risks a "selective industrial revolution" in which only large corporations benefit from Industry 4.0 and 5.0 tools. The caveat: this is a proof of concept on one public dataset, and the fidelity paradox shows human validation stays essential. The paper's long-term objective, it states, is accessible simulation modeling for SMEs, with this study a first step. Readers can follow the argument in Grafy's Reader, question the PDF section by section, then draft and run their own SimPy snippets in Code. Chat is handy for comparing how different models explain the paper, and Graph lets you branch alternative prompt pipelines and compare outputs side by side.
Frequently asked questions
Does GenAI4SimPy run entirely on a local model?
Yes, according to the paper. The framework is powered by Qwen 3.6 (27B), an open-weight model, and the authors state that it operates without proprietary cloud APIs, which they present as a way to protect industrial event data and avoid the drift that comes with opaque provider-side model updates.
Which metrics did the framework cover on all three test blocks?
Failure rate was covered for all three execution blocks, while throughput was covered for only two of the three, with a mean absolute percentage error of 7.9% overall, based on the authors' evaluation of a public smart factory dataset.
Does accurate parameter extraction guarantee a faithful simulation?
No. The authors report a "fidelity paradox": correct process-level parameters did not ensure system-level behavioral fidelity. Flow-time and throughput errors stemmed from misinterpreted observation-window truncation and missing system-level calibration, so extraction is necessary but not sufficient for behavioral validity.
Source: From Manufacturing Event Logs to Simulation: Enabling SMEs with Agentic AI for SimPy Simulation Generation


