Multi-Agent Specification-based Metamorphic Testing of FMU-Based Simulations

📅 2026-05-24
📈 Citations: 0
Influential: 0
📄 PDF

career value

217K/year
🤖 AI Summary
This work addresses the challenge of constructing effective test oracles for Functional Mock-up Unit (FMU) simulation models, which lack explicit expected outputs and thus hinder the application of traditional testing methods. Furthermore, existing approaches to extracting metamorphic relations rely heavily on manual effort, resulting in low efficiency and susceptibility to human error. To overcome these limitations, the paper proposes a novel large language model (LLM)-based multi-agent workflow that, for the first time, integrates LLMs with multi-agent collaboration to automatically derive requirements from functional and interface specifications and generate structured Given-When-Then metamorphic relations. These relations drive the automated generation of metamorphic test cases and consistency validation for FMUs. Experimental evaluation on an oil cooling system FMU demonstrates that the approach significantly reduces manual intervention while enhancing the systematicity and efficiency of dynamic simulation model verification.
📝 Abstract
In many industrial domains, the Functional Mock-up Interface (FMI) is used to exchange simulation models as Functional Mock-up Units (FMUs) across different partners using various modelling tools. This opens up the possibilities for simulation-based verification and validation using FMUs for ensuring reliable system behaviour. However, deriving effective test oracles for these simulation models remains challenging due to the absence of explicit expected outputs. This limits the applicability of conventional testing approaches, which require access to the internal workings of the systems. Metamorphic testing (MT) addresses this limitation by leveraging metamorphic relations (MRs), but extracting such relations from specifications remains largely a manual and error-prone process. To address this challenge, we propose an LLM-powered multi-agent workflow for specification-based metamorphic testing of FMU-based simulation models. The approach takes functional and interface specifications as input and orchestrates multiple agents to extract requirements and derive MRs. These MRs are expressed using Given-When-Then patterns to structure input conditions (Given), transformations (When), and expected output behaviours (Then). These relations are then used to generate metamorphic test cases, execute simulations, and evaluate output consistency across multiple sessions. We evaluate the approach on a Lube Oil Cooling system FMU, demonstrating its ability to automatically generate meaningful MRs and corresponding test cases. Preliminary results indicate that the proposed workflow can effectively support the systematic verification and validation of dynamic simulation models by reducing manual effort and improving test generation.
Problem

Research questions and friction points this paper is trying to address.

Functional Mock-up Unit
Metamorphic Testing
Test Oracle
Specification-based Testing
Simulation Validation
Innovation

Methods, ideas, or system contributions that make the work stand out.

Metamorphic Testing
Functional Mock-up Unit (FMU)
Multi-Agent System
Large Language Model (LLM)
Specification-based Testing
🔎 Similar Papers
No similar papers found.
A
Ashir Kulshreshtha
Åbo Akademi University, Finland
A
Abdullah Mughees
Åbo Akademi University, Finland
G
Gaadha Sudheerbabu
Åbo Akademi University, Finland
T
Tanwir Ahmad
Åbo Akademi University, Finland
K
Kristian Klemets
University of Turku, Finland
Dragos Truscan
Dragos Truscan
Åbo Akademi University
software testingmodel-based testing
M
Mikael Manngård
Novia University of Applied Sciences, Finland