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

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Kulshreshtha, Ashir, Mughees, Abdullah, Sudheerbabu, Gaadha, Ahmad, Tanwir, Klemets, Kristian, Truscan, Dragos, Manngård, Mikael
Format: Preprint
Published: 2026
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866910252582043648
author Kulshreshtha, Ashir
Mughees, Abdullah
Sudheerbabu, Gaadha
Ahmad, Tanwir
Klemets, Kristian
Truscan, Dragos
Manngård, Mikael
author_facet Kulshreshtha, Ashir
Mughees, Abdullah
Sudheerbabu, Gaadha
Ahmad, Tanwir
Klemets, Kristian
Truscan, Dragos
Manngård, Mikael
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2605_25101
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Multi-Agent Specification-based Metamorphic Testing of FMU-Based Simulations
Kulshreshtha, Ashir
Mughees, Abdullah
Sudheerbabu, Gaadha
Ahmad, Tanwir
Klemets, Kristian
Truscan, Dragos
Manngård, Mikael
Software Engineering
Artificial Intelligence
Systems and Control
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.
title Multi-Agent Specification-based Metamorphic Testing of FMU-Based Simulations
topic Software Engineering
Artificial Intelligence
Systems and Control
url https://arxiv.org/abs/2605.25101