From a3785ae0b0a53b4620783ec5514e8cf452893dda Mon Sep 17 00:00:00 2001 From: Torsten Sommer Date: Fri, 10 Jul 2026 08:18:04 +0200 Subject: [PATCH 1/4] Validate merged FMUs in CI --- build/merge_binaries.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/build/merge_binaries.py b/build/merge_binaries.py index ff529941..4d70ea52 100644 --- a/build/merge_binaries.py +++ b/build/merge_binaries.py @@ -169,6 +169,14 @@ def get_unit(variable): os.makedirs(dist_merged / version) merge_fmus(version) +# validate the merged FMUs +for root_dir, _dirs, files in os.walk(dist_merged): + for file in files: + if file.endswith(".fmu"): + fmu_path = os.path.join(root_dir, file) + print(f"Validating {file}...") + check_call(["fmusim", "validate", fmu_path]) + results_dir = root / 'dist-merged' / 'results' os.makedirs(results_dir, exist_ok=True) From 2202b6e00399eec60bc04d451361ff270f32b7d6 Mon Sep 17 00:00:00 2001 From: Torsten Sommer Date: Fri, 10 Jul 2026 10:52:06 +0200 Subject: [PATCH 2/4] Add model description to CMake project --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index f1577d5f..6f9eb2b9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -135,6 +135,7 @@ add_library(${TARGET_NAME} SHARED ${HEADERS} ${SOURCES} ${MODEL_NAME}/buildDescription.xml + ${MODEL_NAME}/FMI${FMI_VERSION}.xml ) file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/fmus) From 0c95397a18e4023273aadc4ad14d8555108f8b9a Mon Sep 17 00:00:00 2001 From: Torsten Sommer Date: Fri, 10 Jul 2026 11:00:31 +0200 Subject: [PATCH 3/4] Fix model structure in Feedthrough/FMI2.xml fixes #675 --- Feedthrough/FMI2.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Feedthrough/FMI2.xml b/Feedthrough/FMI2.xml index 54eff504..f58d910e 100644 --- a/Feedthrough/FMI2.xml +++ b/Feedthrough/FMI2.xml @@ -94,18 +94,18 @@ - + - + - + - + From 42c9fef07fb43335f02c93f53a72408a8e4a1537 Mon Sep 17 00:00:00 2001 From: Torsten Sommer Date: Fri, 10 Jul 2026 11:17:57 +0200 Subject: [PATCH 4/4] Fix model structure in Clocks/FMI3.xml --- Clocks/FMI3.xml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Clocks/FMI3.xml b/Clocks/FMI3.xml index c08ceb88..f17b7d36 100644 --- a/Clocks/FMI3.xml +++ b/Clocks/FMI3.xml @@ -28,7 +28,13 @@ + + + + + +