Using Large Language Models for Black-Box Testing of FMU-Based Simulations

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Mughees, Abdullah, Sudheerbabu, Gaadha, Ahmad, Tanwir, Truscan, Dragos, Manngård, Mikael, Klemets, Kristian
Formato: Preprint
Publicado: 2026
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866911628999524352
author Mughees, Abdullah
Sudheerbabu, Gaadha
Ahmad, Tanwir
Truscan, Dragos
Manngård, Mikael
Klemets, Kristian
author_facet Mughees, Abdullah
Sudheerbabu, Gaadha
Ahmad, Tanwir
Truscan, Dragos
Manngård, Mikael
Klemets, Kristian
contents We propose a human in the loop approach for black-box testing of Functional Mock-up Units (FMUs) using Large Language Models (LLMs). The goal is to reduce the manual effort in defining test scenarios for dynamic simulation models and to improve the interpretability of results. The approach takes the functional and interface specifications of an FMU as input, and prompts an LLM to generate structured scenario goals in Given-When-Then format that define the initial input conditions of the simulation, a possible change in those conditions, and the expected output behaviour of the system against those changes. The corresponding scenario plans specify input patterns and add assertion oracles that describe expected output patterns defined in scenario goals. The approach generates a complete input time series for the scenario plans, runs the FMU simulation, and evaluates assertions on the recorded outputs. It produces human-readable logs and plots that show statistics for each scenario with overlays, aggregate pass rates, and per-goal outcomes. The generated scenarios and results are stored for evaluation and later re-execution. We evaluate the approach on a Lube Oil Cooling system and discuss design choices that make the approach practical for everyday use. Results suggest that LLM-assisted scenario generation can facilitate automatic test design and verification of dynamic simulation models.
format Preprint
id arxiv_https___arxiv_org_abs_2604_25650
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Using Large Language Models for Black-Box Testing of FMU-Based Simulations
Mughees, Abdullah
Sudheerbabu, Gaadha
Ahmad, Tanwir
Truscan, Dragos
Manngård, Mikael
Klemets, Kristian
Software Engineering
Systems and Control
We propose a human in the loop approach for black-box testing of Functional Mock-up Units (FMUs) using Large Language Models (LLMs). The goal is to reduce the manual effort in defining test scenarios for dynamic simulation models and to improve the interpretability of results. The approach takes the functional and interface specifications of an FMU as input, and prompts an LLM to generate structured scenario goals in Given-When-Then format that define the initial input conditions of the simulation, a possible change in those conditions, and the expected output behaviour of the system against those changes. The corresponding scenario plans specify input patterns and add assertion oracles that describe expected output patterns defined in scenario goals. The approach generates a complete input time series for the scenario plans, runs the FMU simulation, and evaluates assertions on the recorded outputs. It produces human-readable logs and plots that show statistics for each scenario with overlays, aggregate pass rates, and per-goal outcomes. The generated scenarios and results are stored for evaluation and later re-execution. We evaluate the approach on a Lube Oil Cooling system and discuss design choices that make the approach practical for everyday use. Results suggest that LLM-assisted scenario generation can facilitate automatic test design and verification of dynamic simulation models.
title Using Large Language Models for Black-Box Testing of FMU-Based Simulations
topic Software Engineering
Systems and Control
url https://arxiv.org/abs/2604.25650