Graphical User Interface (GUI) Usage Guide¶
The graphical interface of FMU Manipulation Toolbox offers an intuitive and visual way to manipulate your FMUs without using the command line.
Requires the gui extra
The GUI is built with PySide6 (Qt for Python), which is an optional dependency. Install it with pip install "fmu-manipulation-toolbox[gui]" β see the Installation Guide.
Launching the Interface¶
With -debug, the log area also shows the details of the operations (DEBUG lines), e.g. the command lines of Compile sources:

Interface Overview¶
The window is organized as a single grid:
1. Drop Zone / Loading Area (top-left)¶
- Drop zone: click it, or drag & drop a
.fmufile onto it, to load an FMU. - The loaded FMU name is shown above the drop zone and the buttons.
2. Operation Buttons (grid, upper area)¶
- One color-coded button per available operation (see Button Color Code), in a grid of 4 Γ 4 buttons next to the drop zone, one line per kind of operation:
| Check | Save description.xml | Save port names | Compile sources |
| Add Win32 remoting | Add Win32 frontend | Add Win64 remoting | Add Win64 frontend |
| Rename ports from CSV | Trim Until | Remove Toplevel | Merge Toplevel |
| Remove Regexp | Keep only Regexp | Remove all | Remove sources |
- Clicking a button immediately applies the corresponding operation to the loaded FMU (some buttons prompt for a value or a file first).
- The buttons are disabled (gray) until an FMU is loaded.
- Alternative actions: while Option (macOS) or Alt (Windows, Linux) is held, the buttons that have an alternative action show its label, and a click runs it. The other buttons keep their label and their action. The tooltip of a button names its alternative action (e.g. "Option-click: Selected Check").
| Button | Alternative action | |
|---|---|---|
| Check | Selected Check | choose the checkers and the settings of FMI-LS-REF, see Check FMU |
| Compile sources | Advanced Compile | set the compilation options first, see Compile Sources |
3. Reload / Filter Row¶
- Reload button: discards all changes applied so far and reloads the FMU from disk. It is disabled, as the filter, until an FMU is loaded.
- Apply only on: a single dropdown button listing all causalities (
parameter,calculatedParameter,input,output,local,independent). Uncheck the causalities you want to exclude; every operation triggered afterwards only applies to the causalities that remain checked.
4. Log Area (center)¶
- A scrollable text log reporting every action performed: the FMU summary (printed automatically after loading), each applied operation, and any warning or error.
- In the summary, the
temporary directorywhere the FMU is extracted is a link: a click opens it in the file manager (Finder, Explorerβ¦). - Each FMU Tool window has its own log area: with several windows opened from the launcher, an operation is only logged in the window that runs it.
- This is not an editable/sortable port table β port names are only shown as part of the logged text (e.g. the
-summaryoutput or CSV export confirmation).
5. Bottom Bar¶
- Exit: close the application.
- Save log as: export the log area content to a
.txtfile. - Save modified FMU as: repack the current (in-memory) modifications into a new
.fmufile. It is enabled once an operation that modifies the FMU has run without error: Add Win32/Win64 remoting or frontend, a successful Compile sources, and the orange and red operations. It does not tell whether the operation actually changed something (e.g. a Remove Regexp that matches no port). Loading or reloading an FMU disables it again.
Button Color Code¶
The interface uses an intuitive color code (matching the operation's effect):
| Color | Action Type | Examples |
|---|---|---|
| π΄ Red | Remove information | Remove Regexp, Keep only Regexp, Remove all, Remove sources |
| π Orange | Modify modelDescription.xml | Rename ports from CSV, Trim Until, Remove Toplevel, Merge Toplevel |
| π’ Green | Check, export, or add components | Check, Save description.xml, Save port names, Compile sources, Add Win32/Win64 remoting, Add Win32/Win64 frontend |
| π£ Purple | Save the results | Save log as, Save modified FMU as |
| π΅ Blue | Filter scope or exit | Apply only on, Reload, Exit |
Typical Workflow¶
Step 1: Load an FMU¶
- Click the drop zone (or drag & drop a
.fmufile onto it).
Result: The FMU name is displayed, and its summary (-summary equivalent) is automatically logged in the central log area.
Step 2: Explore the FMU¶
The log area shows the FMU summary: FMI properties, co-simulation capabilities, default experiment values, supported platforms, embedded resources, and the number of ports per causality.
Tip: Every subsequent operation appends its own log section below, so you can scroll back to review everything that has been applied so far.
Step 3: Apply Transformations¶
π’ Save Port Names to CSV¶
Use Case: Prepare a file for renaming ports
- Click Save port names
- Choose location and filename in the file dialog
Result: A CSV file with all ports (or only the causalities selected in the filter) is created.
π Remove Top-Level Hierarchy¶
Use Case: Simplify name hierarchy
Before:
Action: Click Remove Toplevel.
After:
π Rename Ports from CSV¶
Prerequisite: Have a CSV file with name;newName columns (e.g. produced by Save port names)
- Click Rename ports from CSV
- Select your CSV file in the file dialog
The in-memory FMU is updated with new names β remember to use Save modified FMU as afterwards!
π΄ Remove Ports¶
Option 1: Remove by Regular Expression
- Click Remove Regexp
- Enter a regular expression in the prompt (e.g.,
^Internal\..*) - Validate
Option 2: Restrict to a Causality First
- Open Apply only on: and uncheck every causality except the one(s) you want to target (e.g. keep only
parameterchecked) - Click Remove all (removes every remaining port matching the filter)
π’ Compile Sources¶
Use Case: The FMU embeds its C sources (sources/ folder) but has no binary for your platform (e.g. a Windows-only FMU used on Linux or macOS)
- Click Compile sources
- Read the progress in the log area
Result: The sources are compiled for the current platform and the binary is added to binaries/<platform>/ of the in-memory FMU β remember to use Save modified FMU as afterwards. If the binary already exists, nothing is compiled. A C compiler is required, see Compiling the Sources of an FMU for the prerequisites and the limits.

If the compilation fails (the compiler messages are shown as errors in the log area), a dialog asks for additional options, written for the compiler it names (the examples shown in the empty fields follow it):
- Compiler options: added to every compilation, e.g.
-DFOO=1 -I/opt/include(Visual Studio:/DFOO=1 /IC:\include); - Linker options: added to the link, e.g.
-L/opt/lib(Visual Studio:/LIBPATH:C:\lib); - Libraries: names separated by commas, e.g.
foo,bar(-lfoo -lbar, orfoo.lib bar.libwith Visual Studio).
Retry compiles again with these options; the dialog comes back after each failure, until the compilation succeeds or you click Cancel. The options are kept until the application is closed: they are used for the next compilations, and pre-filled in the dialog. The dialog does not open when the FMU has no sources or when no compiler is found: other options would not help.

To see the command lines of the compiler and of the linker, with every option, launch fmutool-gui -debug.
Advanced Compile (Option-click or Alt-click on Compile sources) opens the same dialog before the compilation, pre-filled with the options of the session, with a Compile button. Cancel compiles nothing. After a failure, the dialog comes back as above.
π’ Add Binary Interface (Windows FMUs)¶
Use Case: Add a 64-bit interface to a 32-bit-only Windows FMU
- Click Add Win64 remoting
- Wait for processing to complete
Also Available: - Add Win32 remoting: add a 32-bit interface to a 64-bit-only FMU - Add Win32 frontend / Add Win64 frontend: wrap the existing DLL behind a remoting front-end for process isolation, without changing bitness
See the Remoting Guide for the full picture (this operation only applies to FMI-2 co-simulation FMUs).
π’ Check FMU¶
Use Case: Validate FMU compliance with the FMI standard
- Click Check
- Read the result in the log area (compliant / not compliant, with XSD validation details)

Selected Check (Option-click or Alt-click on Check) opens a dialog to choose:
- the checkers to run (at least one), built-in and custom;
- the settings of the replay of FMI-LS-REF, when its checker is selected: relative tolerance
rtol(1e-3by default), absolute toleranceatol(1e-6) and time limit of each experiment (60s).
Check runs the selected checkers. The selection and the settings are kept until the application is closed. Check itself always runs every checker with the default settings.
Step 4: Restrict the Scope of an Operation¶
Use Apply only on: to limit any subsequent operation to a subset of causalities:
- Click Apply only on:
- Uncheck the causalities you want to exclude (at least one must remain checked)
- Trigger any operation button β it will only affect ports whose causality is still checked
The button label reflects the current selection (e.g. parameter, input), or All causalities when nothing is excluded.

Step 5: Save Modified FMU¶
β οΈ IMPORTANT: The original FMU is never modified.
- Click Save modified FMU as
- Choose name and location for the new FMU
The new FMU contains all your modifications!
Usage Examples¶
Example 1: Simplify FMU Structure¶
Objective: Remove VehicleModel. prefix from all ports
Steps: 1. Load FMU β VehicleModel.fmu 2. Click Remove Toplevel 3. Click Save modified FMU as β VehicleModel_simplified.fmu
Result: - Before: VehicleModel.Engine.Temperature - After: Engine.Temperature
Example 2: Export Only Parameters¶
Objective: Create a CSV file with only parameters
Steps: 1. Load FMU β module.fmu 2. Apply only on: β uncheck everything except parameter 3. Click Save port names β parameters.csv
Example 3: Clean Internal Variables¶
Objective: Remove all variables starting with _internal
Steps: 1. Load FMU β module.fmu 2. Click Remove Regexp 3. Enter: ^_internal.* 4. Validate 5. Click Save modified FMU as β module_clean.fmu
Best Practices¶
β Do¶
- Always save with a new name to keep original intact
- Check FMU after important modifications (Check button)
- Test modified FMU in your simulation environment before production use
- Save the log (Save log as) to keep a trace of the applied transformations
β Avoid¶
- Don't chain too many operations without saving intermediate results
- Don't modify without backup of the original
- Don't forget to click Save modified FMU as before closing the application β in-memory operations are lost otherwise
GUI Limitations¶
Performance¶
For FMUs with many thousands of variables, logging every port during an operation may make the log area slow to scroll.
Solution: Use command line or Python API for better performance on very large FMUs.
Complex Operations¶
Some advanced or repetitive operations are only practical via command line or Python API:
- Batch processing of many FMUs
- Automation scripts / CI pipelines
- Writing and registering custom checkers
Other GUI Tools
Looking for more graphical tools?
- FMU Variable Editor (
fmueditor): spreadsheet-like editor for variable names and descriptions. - FMU Container Builder (
fmucontainer-gui): visual node-graph editor to assemble FMU containers. - FMU Toolbox Launcher (
fmutoolbox): unified launcher for all GUI tools.
Troubleshooting¶
Interface Won't Launch¶
Problem: ModuleNotFoundError: No module named 'PySide6'
Solution: Install the GUI extra:
Problem: On Linux, Qt fails to start with an error about the xcb platform plugin.
Solution: Install the system Qt/X11 dependencies, e.g. on Ubuntu/Debian:
Interface is Frozen¶
While an operation runs (or the FMU is saved), the mouse shows the wait cursor and the window does not respond.
Solution: 1. Wait β very large FMUs can take a while to load or to log a full summary, and Compile sources takes as long as the compiler. 2. If it is truly stuck, close the application and relaunch with a smaller FMU, or use the command line / Python API instead.
Going Further¶
For more advanced operations:
- π CLI Guide - Command line usage
- π Python API - Automation with scripts
- π‘ Examples - Advanced use cases
Support¶
For any questions or issues: - π Troubleshooting - π GitHub Issues