Skip to main navigation Skip to search Skip to main content

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

Research output: Chapter in Book/Conference proceeding › Published conference proceeding › Scientific › peer-review

3 Downloads (Pure)

Abstract

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.
Original languageEnglish
Title of host publicationProceedings of the European Control Conference (ECC), 2026
PublisherIEEE
Pages3116 - 3123
ISBN (Print)979-8-3315-5755-3
Publication statusPublished - 2026
MoE publication typeA4 Article in a conference publication
Event2026 European Control Conference, ECC 2026 - Reykjavik, Iceland
Duration: 7 Jul 2025 → 10 Jul 2026
https://ecc26.euca-ecc.org/

Publication series

NameEuropean Control Conference
ISSN (Print)2996-8917

Conference

Conference2026 European Control Conference, ECC 2026
Country/TerritoryIceland
CityReykjavik
Period07/07/25 → 10/07/26
Internet address

Funding

This work was funded by the Finnish Ministry of Education and Culture s Doctoral Education Pilot under Decision No. VN/3137/2024-OKM-6 (The Finnish Doctoral Program Network in Artificial Intelligence, AI-DOC) and Business Finland via the Virtual Sea Trial project (VST), under grant 7187/31/2023.

UN SDGs

This output contributes to the following UN Sustainable Development Goals (SDGs)

  1. SDG 9 - Industry, Innovation, and Infrastructure
    SDG 9 Industry, Innovation, and Infrastructure

Keywords

  • Black-box testing
  • Dynamic simulation models
  • FMI standard
  • Functional mock-up unit
  • Large language model
  • Prompt engineering

Fingerprint

Dive into the research topics of 'Using Large Language Models for Black-Box Testing of FMU-Based Simulations'. Together they form a unique fingerprint.

Cite this