Skip to content

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

fmutool-gui

With -debug, the log area also shows the details of the operations (DEBUG lines), e.g. the command lines of Compile sources:

fmutool-gui -debug

Graphical Interface

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 .fmu file 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 directory where 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 -summary output or CSV export confirmation).

5. Bottom Bar

  • Exit: close the application.
  • Save log as: export the log area content to a .txt file.
  • Save modified FMU as: repack the current (in-memory) modifications into a new .fmu file. 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

  1. Click the drop zone (or drag & drop a .fmu file 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

  1. Click Save port names
  2. 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:

System.Motor.Temperature
System.Motor.Speed
System.Controller.Gain

Action: Click Remove Toplevel.

After:

Motor.Temperature
Motor.Speed
Controller.Gain

🟠 Rename Ports from CSV

Prerequisite: Have a CSV file with name;newName columns (e.g. produced by Save port names)

  1. Click Rename ports from CSV
  2. 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

  1. Click Remove Regexp
  2. Enter a regular expression in the prompt (e.g., ^Internal\..*)
  3. Validate

Option 2: Restrict to a Causality First

  1. Open Apply only on: and uncheck every causality except the one(s) you want to target (e.g. keep only parameter checked)
  2. 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)

  1. Click Compile sources
  2. 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.

Compile sources in the log area

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, or foo.lib bar.lib with 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.

Additional options after a compilation failure

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

  1. Click Add Win64 remoting
  2. 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

  1. Click Check
  2. Read the result in the log area (compliant / not compliant, with XSD validation details)

Result of Check in the log area

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-3 by default), absolute tolerance atol (1e-6) and time limit of each experiment (60 s).

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:

  1. Click Apply only on:
  2. Uncheck the causalities you want to exclude (at least one must remain checked)
  3. 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.

Apply only on: inputs and parameters

Step 5: Save Modified FMU

⚠️ IMPORTANT: The original FMU is never modified.

  1. Click Save modified FMU as
  2. 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?

Troubleshooting

Interface Won't Launch

Problem: ModuleNotFoundError: No module named 'PySide6'

Solution: Install the GUI extra:

pip install "fmu-manipulation-toolbox[gui]"

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:

sudo apt-get install libxcb-cursor0

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:

Support

For any questions or issues: - πŸ“š Troubleshooting - πŸ› GitHub Issues