Skip to content

FMU Container Builder β€” GUI

The FMU Container Builder provides a visual, node-graph interface to assemble multiple FMUs into a single FMU Container β€” without writing JSON or CSV files manually.

Launching the Interface

fmucontainer-gui

Or from the FMU Toolbox Launcher, click FMU Container Build.

A file can be given on the command line, as with Load: an FMU container (.fmu) is loaded, an assembly file (.json, .csv, .ssp) is imported:

fmucontainer-gui assembly.ssp

FMU Container Builder

Interface Overview

The interface is split into three main areas:

Area Description
Node Graph (left) Visual canvas where FMU nodes and wires are displayed
Tree View (top-right) Hierarchical structure of containers and FMUs
Detail Panel (bottom-right) Properties of the selected node, wire, or container
Button Bar (bottom) Configuration, load/save, and export actions
Status Bar (very bottom) Last log message; click it to open the log window

Node Graph

The node graph is the central workspace where you visually compose your FMU container.

Adding FMU Nodes

There are three ways to add FMUs to the canvas:

  • Drag & Drop: drag .fmu files from your file manager directly onto the canvas.
  • Right-click β†’ Add FMU…: opens a file dialog to select one or more .fmu files.
  • Tree View β†’ Right-click β†’ Add FMU…: adds FMUs under a specific container in the hierarchy.

Each FMU node displays its name as a title: the filename of its FMU. The same FMU can be added several times: each new node is an instance of it, named <stem>-<n>.fmu with the smallest free n (bb_position-1.fmu, bb_position-2.fmu...); another file with an already used filename is named the same way. The FMU detail panel of an instance shows the FMU it is an instance of. Wires, start values and exposed ports belong to one node, and a saved JSON keeps the file of each instance (see Embedding the same FMU several times).

Two instances of each bouncing ball FMU

Instances and automatic rules

The instances of an FMU are never linked by auto_link: wire them explicitly. When auto_input or auto_output exposes a port whose name is already used, it is exposed as <fmu>.<port> (e.g. bb_position-1.position1).

Title bar color β€” Co-Simulation vs Model-Exchange

The color of a node's title bar reflects the FMI interface used to embed the FMU:

  • Blue β€” the FMU is embedded in Co-Simulation mode (default). FMUs advertising both Co-Simulation and Model-Exchange are also shown in blue, since Co-Simulation takes precedence.
  • Green β€” the FMU only provides Model-Exchange and is therefore integrated by the container's built-in solver (see Model-Exchange support).

This lets you tell at a glance which embedded FMUs rely on the container's solver.

Connecting FMUs with Wires

To create a connection between two FMUs:

  1. Click and drag from the body of a node (below its title bar)
  2. Release on another node
  3. A wire is created between the two nodes

Title bar vs body

  • Title bar (top strip with the FMU name): click to select or drag to move the node.
  • Body (area below the title bar): drag to create a wire.

The cursor changes on hover to indicate the available action: βœ₯ for move, βœ› for wire creation.

Wires are directional β€” arrowheads indicate the data-flow direction:

  • Arrow on one end β†’ data flows in that direction (from one FMU to the other)
  • Arrows on both ends β†’ bidirectional connection (each FMU feeds the other)

The direction is determined by the port mappings configured in the Wire Details panel.

Reshaping Wires with Waypoints

Wires are drawn as straight-line segments. You can add waypoints to create broken lines and route wires around nodes for better readability.

Action How
Add a waypoint Double-click on a wire
Move a waypoint Drag the blue handle (visible when the wire is selected)
Remove a waypoint Double-click on a blue handle

You can add as many waypoints as needed. The wire becomes a polyline passing through each waypoint in order.

A selected wire with a waypoint

Visibility

Waypoint handles are only visible when the wire is selected. Click on a wire to select it and reveal its handles.

Action How
Pan Middle-click drag, or Alt+Left Button drag
Zoom Mouse wheel
Fit all Right-click β†’ Fit View
Select Left-click on a node or wire
Multi-select Rubber-band selection (left-click drag on empty space)
Move node Left-click drag on a node
Delete Select items, then press Del or Backspace

Context Menu (Right-click on Canvas)

Context menu of a node

Action Description
Add FMU… Open file dialog to add FMU nodes
Delete Selection Remove selected nodes and wires
Info Show node information and optionally replace the FMU file (single node only)
Open in FMU Editor Open the selected FMU in the Variable Editor (single node only)
Open in FMU Tool Open the selected FMU in FMU Tool (single node only)
Simulate (with FMPy) Open the selected FMU in the graphical interface of FMPy to simulate it (single node only). Shown only when the graphical interface of FMPy can be imported (fmpy.gui); FMPy is not a dependency of the toolbox
Fit View Zoom to fit all nodes in the viewport

Replacing an FMU

To replace an FMU with a different version or an alternative file:

  1. Select the node, right-click and choose Info
  2. The dialog shows the node name and current FMU file path
  3. Click Browse… to select a new .fmu file
  4. Click OK to apply the replacement

The replacement is done in place, for the selected node only, even when it is an instance of an FMU added several times: all wires, start values, and exposed input/output ports are preserved. The node is renamed after the new file (with the smallest free -<n> suffix if that name is used). If a port name referenced by a start value, a wire mapping, or an exposed input/output no longer exists in the new FMU, it appears in red in the detail panels β€” allowing you to review and correct invalid references. The affected wire itself is also drawn in red on the canvas, so broken connections are immediately visible without having to open every wire's details.

A wire to a port that no longer exists, in red on the canvas and in the Wire Details

Typical use case

Use this feature when a new version of an FMU is available: replace the file and instantly see which connections or start values need updating.

Tree View

The tree view shows the hierarchical structure of your container assembly.

Root Container

The top-level item represents the output container FMU (default name: container.fmu). All FMU nodes and sub-containers are children of this root.

Sub-Containers

You can create nested containers to organize complex assemblies:

  • Right-click β†’ Add Container: creates a new sub-container under the selected item.
  • Rename: right-click on a container β†’ Rename.
  • Drag & Drop: reorganize nodes and sub-containers by dragging them within the tree.

After renaming a container, the Container Details panel is refreshed immediately to reflect the new name.

Step Size Column

The second column of the tree view shows the step size of each item, in seconds. It is informative: it cannot be edited.

  • FMU: the step size declared by the FMU: the fixedInternalStepSize of an FMI-3 FMU, else the stepSize of its DefaultExperiment; empty if the FMU declares none. It is shown in italics when the FMU can handle a variable communication step size without a fixedInternalStepSize: its step then does not constrain the container.
  • Container: its step_size parameter (see Container Details). When step_size is empty, the column shows, in italics, the step size deduced when the container is built: the least common multiple of the step sizes of the FMUs that impose their step (a fixedInternalStepSize, or no variable step size) or, if none does, the largest step size; 0.1 s if no FMU declares a step size. A sub-container counts as an FMU that can handle a variable step size.

The column is updated when FMUs or containers are added, moved, replaced or removed, and when step_size is changed.

Context Menu (Right-click on Tree View)

Context menu of the tree view

Action Description
Add FMU… Add FMU nodes under the selected container
Add Container Create a new sub-container
Rename Rename a container
Delete Remove a node or container (and all its contents)

Detail Panel

The detail panel shows the properties of the currently selected element.

Node (FMU) Details

When an FMU node is selected, the detail panel shows:

  • FMU name, generator tool, and step size
  • Three tabs: Start Values, Input Ports, and Output Ports

FMU details: a start value set on the parameter mu

Start Values tab

Lists all input and parameter ports with their start values.

Column Description
Input Port Port name (read-only). Clock and binary ports, as well as FMI-2 array aggregates, are excluded.
Start Value User-defined start value (editable). A gray placeholder shows the FMU's default value.

Start Values

Leave the start value empty to use the FMU's built-in default. Enter a value to override it in the container.

FMI-2 array aggregates

Virtual array aggregates (see Port Style Indicators) are not listed in this tab. Start values must be defined on the individual scalar elements (myVector[1], myVector[2], …), which appear as regular input ports.

Input Ports tab

Lists all input ports with a checkbox to explicitly expose them at the container level.

Column Description
Input Port Port name (read-only)
Exposed Checkbox β€” when checked, the port is exposed as an input of the container

When to expose inputs

By default, auto_input automatically exposes unconnected input ports. Use this tab to explicitly select which inputs to expose β€” useful when auto_input is disabled, when the port is also driven by a wire but should remain overridable from outside the container, or when you need fine-grained control and want the assembly description to declare the input explicitly rather than relying on auto-wiring.

Nested containers

When an FMU with an exposed input is nested inside a sub-container, the input is automatically propagated up through each parent container so that it remains reachable from the root container.

Output Ports tab

Lists all output ports with a checkbox to explicitly expose them at the container level.

Column Description
Output Port Port name (read-only)
Exposed Checkbox β€” when checked, the port is exposed as an output of the container

When to expose outputs

By default, auto_output automatically exposes unconnected output ports. Use this tab to explicitly select which outputs to expose β€” useful when auto_output is disabled or when you need fine-grained control.

Nested containers

When an FMU with an exposed output is nested inside a sub-container, the output is automatically propagated up through each parent container so that it remains reachable from the root container.

Port Style Indicators

Ports are displayed with different text styles to indicate their nature:

  • Parameter ports are shown in italics β€” these are configuration values or tuning parameters.
  • FMI-2 array aggregates are shown in bold β€” these are virtual ports representing a family of scalar variables named basename[k] or basename[i,j,...] (Modelica-style comma notation) that the toolbox groups together so they can be connected as a single array to an FMI-3 array port.
  • When an aggregate is also a parameter, it is displayed in bold italics.
  • Other port types (standard inputs/outputs) appear in regular text.

This visual distinction helps you quickly identify parameters and array aggregates in the interface.

Wire Details

When a wire is selected, the detail panel shows the variable-level mappings between the two connected FMUs.

A header label identifies the two nodes: A = first FMU, B = second FMU.

The mappings are split into three tabs:

Tab Description
A β†’ B Output ports of A connected to input ports of B
B β†’ A Output ports of B connected to input ports of A
Terminals Terminal-to-terminal connections (e.g. for LS-BUS enabled FMUs)

Each tab contains a 2-column table:

Column Description
Output Port Output variable of the source FMU (combo-box)
Input Port Input variable of the destination FMU (combo-box)

Port Style Indicators

Ports are displayed with different text styles to indicate their nature:

  • Parameter ports are shown in italics β€” these are typically tuning parameters or configuration values.
  • FMI-2 array aggregates are shown in bold β€” virtual ports that group a family of scalar variables (e.g. myVector[1], myVector[2], myVector[3]) into a single array port. Selecting an aggregate on one side of a wire connects all its elements at once, which is especially useful for wiring FMI-2 arrays to FMI-3 array ports of matching shape.
  • When an aggregate is also a parameter, it is displayed in bold italics.
  • Other ports (standard inputs, outputs) appear in regular text.

This visual distinction helps you quickly identify parameters and array aggregates when configuring mappings.

Each tab has its own Add link / Remove link buttons to manage mappings for that direction.

Invalid connections shown in red

A wire is drawn in red on the canvas whenever at least one of its port mappings is invalid: either because the referenced port no longer exists on the FMU (e.g. after Replace FMU), or because it targets an inactive configuration node port (ts_multiplier unchecked). In both cases, the invalid port name is also shown in red inside the Wire Details table so you can quickly locate and fix (or simply understand) the broken mapping.

Direction indicator on the wire

While the Wire Details panel is open, a yellow indicator is overlaid on the selected wire to reflect the currently active tab:

  • A β†’ B β€” an enlarged yellow arrowhead at the B extremity, pointing outward.
  • B β†’ A β€” an enlarged yellow arrowhead at the A extremity, pointing outward.
  • Terminals β€” a divergent β—€β–Ά marker (two triangles pointing outward) at the middle of the wire.

Switching tabs updates the indicator immediately, making it easy to see which side of the connection you are currently editing.

Architecture wires

A wire imported from an architecture wire of an SSP file carries a hint: the direction expected between the two FMUs and a description. While the wire has no link, it is drawn dashed, with the arrowheads of the expected direction. The wire details show the direction (A β†’ B, B β†’ A, A ↔ B, or A β€” B without direction) and the description, rendered as Markdown, above the tabs.

Define the links as for any wire (tabs or Link Assistant): once the wire has links, it is drawn as a regular wire, and the hint stays in the wire details. The hint is kept by Save as an SSP file; saved as JSON or as an FMU container, only the links are kept.

Architecture wire without link

Terminals tab

The Terminals tab allows connecting FMU terminals (as defined in the FMI LS-BUS standard). Each row maps a terminal from FMU A to a terminal from FMU B:

Column Description
Terminal A Terminal name from FMU A (combo-box)
Terminal B Terminal name from FMU B (combo-box)

This tab is useful when working with LS-BUS enabled FMUs where communication occurs through terminal connections rather than individual variable ports.

The arrowheads on the wire update automatically to reflect the configured directions.

Below the tabs, global buttons are available:

Button Description
Link Assistant Open the Link Assistant to define many links at once
Remove All Remove all link definitions between A and B (both directions)
Import Import link definitions from a CSV file
Export Export link definitions to a CSV file

CSV Format for Import/Export

The CSV file uses 4 columns: FMU From, Port From, FMU To, Port To. Each row represents a single port-to-port connection, and both directions (A β†’ B and B β†’ A) are included in the same file. This makes it easy to edit link definitions in a spreadsheet and re-import them.

When the FMUs have hundreds of ports, filling the tables of the Wire Details panel one link at a time is tedious. The Link Assistant button opens a window that proposes links in bulk, lets you review them, and writes them into the wire only when you click Apply.

Link Assistant β€” Rules tab

The window works on the wire that was selected when it was opened. It does not block the rest of the Container Builder: you can keep looking at the graph. Clicking Link Assistant again brings it to the front; on another wire, it closes the open assistant first (asking for confirmation if links are staged there).

Header β€” the two FMUs in the order of the current direction (source.fmu β†’ target.fmu). Below each name, the counters of its ports:

Symbol Meaning
Ξ£ Total number of outputs (source) or inputs (target)
● Outputs already linked on this wire, or inputs already fed: by a link of any wire of the FMU, by an exposed input, or by a staged link
β—‹ Free ports

The selector on the right switches the direction (A β†’ B / B β†’ A). The staged links of both directions are kept, so both directions can be prepared before applying.

The window has two tabs, Rules and Manual, which share the list of staged links at the bottom.

Rules tab

A criterion proposes, for each free output, the input it should be linked to. Choose it with Match by:

Criterion Parameters Example
Same name β€” vehicle.speed β†’ vehicle.speed
Replace prefix / suffix Prefix and suffix of the output name, replaced by those of the input name engine.out.speed β†’ ecu.in.engine_speed (engine.out. β†’ ecu.in.engine_)
Regular expression A regular expression matching the whole output name, and the input name built from its groups (\1, \2, …) sensor\.(\w+)\.(\w+) β†’ sensor_\2_\1
Similar names Minimum similarity score (1.00 to 0.50) chassis.pressure β†’ chassis.press

Options of the criterion:

Option Effect
ignore case and separators Names are compared without case nor separators (. _ - [ ] and spaces), for every criterion: Throttle_Pos matches throttle.pos. Checked by default
parameters as targets Also propose the parameters of the target FMU, not only its inputs
Allow only: compatible types Checked (default): a link between types without conversion is an error βœ–. Unchecked: it is only a warning ⚠
Allow only: same units Checked: a link between different units is an error βœ–. Unchecked (default): it is a warning ⚠
How a criterion finds the input

Every criterion works the same way: it takes the free outputs one by one, in the order of the source FMU, builds from the name of each one the name of an input, and looks for that name among the free inputs of the target FMU. An output whose name does not fit the criterion, or whose input does not exist, gets no suggestion.

  • With ignore case and separators, the name built is compared to the input names without case nor separators: ecu.in.engine_speed finds the input ECU_In_Engine_Speed.
  • An input is proposed only once: when two outputs lead to the same input (engine.out.speed and engine.out.Speed), only the first one gets a suggestion.
  • Same name builds the name of the output itself; Similar names does not build a name, it looks for the closest input name (see the score below).
Replace prefix / suffix

The four fields read as a rewriting of the name: Output: prefix … suffix β†’ Input: prefix … suffix. The … stands for the rest of the name, kept as is.

  1. The output name must start with the output prefix and end with the output suffix; the other outputs are skipped.
  2. The prefix and the suffix are removed: what remains is the core of the name. It cannot be empty: an output named exactly engine.out. is skipped.
  3. The input name is the input prefix, followed by the core, followed by the input suffix.

With the output prefix engine.out. and the input prefix ecu.in.engine_ (suffixes empty), as in the screenshot at the top of the Link Assistant section:

Output Core Input looked for
engine.out.speed speed ecu.in.engine_speed
engine.out.torque_max torque_max ecu.in.engine_torque_max
engine.in.speed β€” none: the output does not start with engine.out.

Other uses:

Output prefix Output suffix Input prefix Input suffix Example
(empty) _meas (empty) _cmd throttle_meas β†’ throttle_cmd
bus1. _out ecu. _in bus1.speed_out β†’ ecu.speed_in

Things to know

  • An empty field means no prefix (or no suffix), not anything. To replace only a suffix, leave both prefixes empty; with the four fields empty, the criterion is Same name.
  • The fields are plain text: no wildcard, and . is a dot. When the part to replace is not at the start or at the end of the name (e.g. engine.<anything>.out.speed), use a regular expression.
  • With ignore case and separators, the fields too are compared without case nor separators: engine.out. also takes Engine_Out_Torque, and typing engine_out_ gives the same result. Unchecked, everything is compared character by character.
Regular expression

Two fields: the pattern, applied to the output name, and the replacement, which builds the input name. They use the syntax of Python regular expressions (re module).

  1. The pattern must match the whole output name, as if it began with ^ and ended with $ (writing them is allowed). The outputs it does not match are skipped.
  2. The parts of the pattern in parentheses are the groups, numbered from left to right. The replacement uses them with \1, \2, …
  3. The name built by the replacement is looked for among the free inputs.

With the pattern sensor\.(\w+)\.(\w+) and the replacement sensor_\2_\1:

Output \1 \2 Input looked for
sensor.front.temp front temp sensor_temp_front
sensor.rear.pressure rear pressure sensor_pressure_rear
sensor.front.temp.raw β€” β€” none: \w+ does not take the . of .raw, so the pattern does not match the whole name

Link Assistant β€” the groups of a regular expression swapped in the input name

Useful syntax in the pattern:

Pattern Matches
\. A dot. A plain . matches any character
.* / .+ Any text, possibly empty / of at least one character
\w+ A word: letters, digits and _, but not . nor [
\d+ A number
(…) A group, reused in the replacement
(?:…) Parentheses that are not a group, e.g. (?:out|output) for out or output
[._] One character among . and _
\[(\d+)\] An array index such as [3]: the brackets must be escaped

In the replacement:

Replacement Gives
\1, \2, … The text of the group 1, 2, …
\g<0> The whole output name
\g<1>0 The group 1 followed by the digit 0 (\10 would be the group 10)
\g<pos> The group named pos in the pattern: (?P<pos>\w+)

More examples:

Pattern Replacement Example
engine\.out\.(.*) ecu.in.engine_\1 engine.out.speed β†’ ecu.in.engine_speed
pump\[(\d+)\]\.speed pump\1_speed pump[2].speed β†’ pump2_speed
(.*)\.(?:out|output) \1.in valve.out β†’ valve.in, pump.output β†’ pump.in

Things to know

  • A group is written \1 in the replacement; $1, used by other tools, is taken literally.
  • ignore case and separators makes the pattern ignore the case, not the separators: the pattern applies to the real output name, so write its separators as they are (engine\.out), or accept several (engine[._]out). The name built by the replacement is then compared to the inputs without case nor separators: ecu.in.engine_\1 also finds ecu_in_Engine_Speed.
  • A pattern that is not a valid regular expression is framed in red, and gives no suggestion.
Similar names

The score compares the output name to each input name (both without case nor separators when the option is checked): 1.00 for identical names, lower as they differ. For each output, the input with the best score above the threshold is proposed. A suggestion whose score is below 1.00 gets a ⚠ status, to be reviewed, unless it is already βœ–.

The suggestions are updated a moment after each change of the criterion, of its parameters or of an option. Each one is checked when it can be applied, and gets a status:

Status Meaning
βœ” The link can be applied
⚠ The link can be applied, but should be reviewed: lossy type conversion (e.g. Real β†’ Int32), different units, or a name found by Similar names
βœ– The link cannot be applied: the input is already fed, the types cannot be converted, the arrays have different sizes

Review the suggestions (the Show selector and the Filter field narrow the table), then click Stage checked links ↓; a double-click on a row stages that suggestion only. Check all and Uncheck all act on the rows shown. The staged links leave the suggestions; the other suggestions keep their check boxes. Then pick another criterion: it only sees the ports still free.

Typical sequence

Start with Same name, stage; then Replace prefix / suffix or Regular expression for the families of signals named differently, stage; then Similar names for what is left, reviewing each suggestion; link the last ports in the Manual tab.

Large FMUs

If a search takes more than 0.3 s (e.g. Similar names on FMUs with thousands of ports), the suggestions are no longer updated while typing: a Run β–Ά button appears to search again.

Manual tab

Link Assistant β€” Manual tab

The outputs of the source FMU (left) and the inputs of the target FMU (right), each list below the name of its FMU, with the type, unit and description of each port. Narrow them with the Filter field (name or description) and the type selector; only free ports hides the ports already linked, fed or staged; show parameters also lists the parameters of the target FMU.

Select ports in both lists (Shift / Ctrl for several), check the preview below Link selection ↓, and click it:

  • as many outputs as inputs: they are paired in the order of the lists;
  • one output and several inputs: the output feeds every selected input.

The links staged by both tabs, with their direction, their origin (criterion or manual) and their status. The status is computed again on each change: two staged links feeding the same input are both βœ–.

Button Description
Remove selected / Remove All Remove staged links; their ports are free again and the suggestions of the Rules tab come back
Cancel Close the window without changing the wire (asks for confirmation if links are staged)
Apply n links Add the staged links to the wire, then close the window. Disabled while a link is βœ–

The links already defined on the wire are kept. If an input was fed in the Wire Details panel while the assistant was open, its staged link is not added (a message tells how many).

FMI-2 arrays

An FMI-2 array aggregate and its elements (e.g. u and u[1], u[2]) are one input for the assistant: staging one of them takes the others, and an aggregate is linked only to an array of the same size.

Settings kept for the session

The parameters of each criterion and ignore case and separators are kept until the Container Builder is closed. The assistant always opens on Same name.

Container Details

When a container is selected in the tree view, the detail panel shows its configuration parameters:

Container details of the root container

Parameter Type Description
step_size text Fixed time step (in seconds) for the container's internal solver; when empty, deduced from the embedded FMUs (see Step Size Column)
mt checkbox Enable multi-threading (the FMUs with a long step run on worker threads, see Multi-Threading)
profiling checkbox Enable performance profiling of embedded FMUs
sequential checkbox Force sequential execution order
auto_link checkbox Automatically link ports with matching names and types
auto_input checkbox Automatically expose unconnected input ports
auto_output checkbox Automatically expose unconnected output ports
auto_parameter checkbox Automatically expose parameter ports
auto_local checkbox Automatically expose local variables
mt_threshold number Multi-threading: mean step, in seconds, from which an FMU gets a thread (5e-05 by default, see Multi-Threading)
ts_multiplier checkbox Add a TS_MULTIPLIER input for dynamic step size control
reset_ports checkbox Add a reset input to each FMU of the container (see Reset of Embedded FMUs)

The configuration Node

As soon as at least one sub-container (not the root container) has its ts_multiplier parameter checked, or one container (the root included) has its reset_ports parameter checked, a virtual node titled configuration automatically appears on the canvas. This node is a visual aid: it does not correspond to any real FMU file, and it never gets its own row in the tree view β€” it exists purely to help you keep track of which FMU drives the TS_MULTIPLIER input of which sub-container, and the reset of which FMU.

  • The node exposes one input port per checked sub-container, named <container_name>.ts_multiplier (the .fmu suffix of the container name is stripped).
  • It also exposes one Boolean input port per FMU, or sub-container, of each container with reset_ports checked, named <fmu_name>.reset (the .fmu suffix is stripped): see Reset of Embedded FMUs.
  • It can be wired from any FMU in the assembly, like a regular node β€” drag from the FMU's body onto the configuration node body to create the wire.
  • It can be moved freely but cannot be deleted manually while it is still relevant.
  • Selecting the configuration node shows its reset ports, each with an Exposed checkbox: an exposed port becomes the input container.<fmu>.reset of the container of the FMU (the ports are exposed anyway when auto_input is checked).
  • Checking ts_multiplier on the root container has no effect: the root container is never added to the configuration node. reset_ports applies to the root container too.

Reset ports in the FMU Container Builder

This wire is a real link, not just a visual note

Unlike the configuration node itself (a pure GUI convenience), a wire connected to it is exported: it corresponds to a real link driving the target sub-container's reserved container.ts_multiplier runtime input (the actual input FMI port exposed by that container when ts_multiplier is enabled), or the reserved container.reset input of the FMU. When importing a JSON or FMU container, a link whose destination is a sub-container name with port container.ts_multiplier, or an FMU with port container.reset, is automatically reconstructed as a wire to the configuration node's matching dynamic port; an input rule on container.reset checks its Exposed box. On export, the reverse translation is applied, so the round-trip is lossless.

Unchecking ts_multiplier or reset_ports

Unchecking ts_multiplier on a sub-container (or reset_ports on a container, or moving an FMU out of it) does not delete its port nor an existing wire connected to it. Instead, the port becomes inactive and any wire referencing it is drawn in red (both on the canvas and in the Wire Details panel, see Wire Details), to flag the now-invalid connection. Re-checking ts_multiplier automatically restores the wire to a valid (non-red) state β€” no need to rewire.

Automatic cleanup

The configuration node is only removed from the canvas once all its ports are inactive and no wire (valid or invalid) references it anymore. This avoids losing your wiring setup when temporarily unchecking ts_multiplier on a container.

Button Bar

Configuration

Click Configuration to open a popup menu with:

Configuration menu

  • Generate FMI-2 / FMI-3: choose the target FMI version for the output container.
  • Verbose Mode: enable detailed logging for this window (DEBUG messages in the log window, and a copy of its log messages on the standard output of the terminal that launched the GUI) and keep intermediate build artifacts. The other windows are not affected.
  • Enable Datalog: include a datalog.txt configuration in the generated FMU (useful for simulation trace export).
  • AI Assistant On / Off: start or stop the MCP server of the AI Assistant (only when the mcp extra is installed).

Actions

Button Shortcut Description
Exit Close the window (asks if there are unsaved changes)
Load Ctrl+O Open a file; its extension decides: an FMU container (.fmu) is loaded (split, and its graph reconstructed), a JSON, CSV or SSP file is imported. Asks first if there are unsaved changes
Save Ctrl+S Save the assembly, in the format of the filter chosen in the dialog, or of the extension typed: an FMU Container (.fmu, built with the FMI version and the datalog option of the Configuration menu), an SSP file (.ssp: the FMUs, the whole routing, the positions of the nodes and the architecture wires) a JSON description (.json) or a MATLAB script for Simulink (.m: see Simulink export; the changes stay unsaved). The dialog proposes FMU Container first, then the format saved last

On macOS, the shortcuts use ⌘ instead of Ctrl. During opening and saving, a progress dialog shows the execution logs in real time. These messages also remain available in the log window.

Relative FMU paths

When saving as JSON, the FMU paths written in the fmu and link blocks are automatically made relative to the directory where the JSON file is saved. This keeps the exported assembly portable as long as the FMU files stay in the same relative layout β€” see also the FMU location requirement when re-importing.

Log

Every component of the Container Builder (graph, tree, build, import, AI Assistant) writes to the log of its window. With several windows opened from the launcher, each window has its own log: an action, or a request of the AI Assistant of a window, is only logged in that window. The few messages that do not come from a window are shown in all of them.

Status Bar

The status bar, under the button bar, shows the last message of level Info or above, in the colour of its level (grey for information, yellow for warnings, red for errors). It stays until the next message. A message spanning several lines is shown by its first line followed by ….

Click the status bar to open the log window.

Log Window

The log window lists every message of this window since it was opened (the last 5000 ones). It is not modal: it can stay open next to the main window and receives new messages as they arrive.

Control Description
Level (Debug / Info / Warning / Error) Show only the messages of this level or above
Search… Show only the messages containing this text (case-insensitive)
Save Logs… Save the displayed messages in a text file
Clear Forget the messages of this window (they are not shown again when the log window is reopened); the other windows keep theirs
Close Close the window; the log keeps being recorded

Debug messages

DEBUG messages are only recorded while Verbose Mode of the window is enabled (see Configuration).

Typical Workflow

Step 1: Add FMUs

Drag and drop your .fmu files onto the canvas, or use the right-click menu.

Step 2: Connect FMUs

Draw wires between output and input ports. Select a wire to configure the port-level mappings in the detail panel. Use Auto-connect to speed up the process.

Step 3: Configure the Container

Select the root container in the tree view to set the time step and other options (multi-threading, profiling, auto-linking, etc.).

Step 4: Organize Hierarchy (Optional)

Create sub-containers and drag FMUs into them to build nested assemblies.

Step 5: Set Start Values and Expose Ports (Optional)

Select individual FMU nodes and override input port start values as needed. Use the Input Ports tab to explicitly expose specific input ports, and the Output Ports tab to explicitly expose specific output ports, at the container level.

Step 6: Save

Click Save and choose FMU Container to build the final .fmu file, or JSON (or SSP) to save the assembly description for later use with the fmucontainer CLI β€” or, as SSP, with other tools.

Auto-Wiring Workflow

If your FMUs share matching port names (e.g. the outputs of one FMU have the same names as the inputs of another), you can let the container build the connections automatically using the auto_link feature β€” without manually creating wires.

Step 1: Import your FMUs

Drag and drop your .fmu files onto the canvas, or use the right-click menu to add them. There is no need to draw wires manually between the FMUs.

Select the container in the tree view (the root item or a sub-container). In the Container Details panel, make sure the auto_link checkbox is checked (it is enabled by default).

This tells the container to automatically connect ports with matching names when the FMU is built.

Step 3: Save the FMU Container

Click Save and save as an FMU Container. The auto-linking is performed during the build process: matching output and input ports are connected automatically.

Step 4: Reload to verify

Click Load and open the .fmu file you just created. The tool will split the container and reconstruct the graph β€” this time with all the automatically created wires visible on the canvas. You can select any wire to inspect the port mappings in the detail panel.

Combining manual and automatic wiring

Auto-linking and manual wires can coexist. Any explicit wire you create takes priority. The auto_link option will only fill in the remaining unconnected matching ports.

Loading an Existing Container

Click Load and choose an existing .fmu container. The tool will:

  1. Split the container to extract the embedded FMUs and the JSON description
  2. Reconstruct the node graph with all FMUs, wires, port mappings, and start values
  3. Restore container parameters (step size, multi-threading, etc.)

You can then modify the assembly and re-save it.

Importing an Assembly File

Click Load and choose an existing description file. Three formats are supported:

  • JSON β€” full assembly description including container parameters, FMU list, links, start values, and sub-containers.
  • CSV β€” routing table only (FMU list, links, inputs/outputs). Container parameters use defaults.
  • SSP β€” the FMUs are extracted from the archive. The nodes are placed after the geometry of the SSP components, scaled so that nodes side by side do not overlap (a file without geometry gets the default staggered placement). Architecture wires are shown as hints. The parameter values of the SSP become start values of the nodes; the start and stop times of its default experiment are not kept.

The tool will:

  1. Parse the description file using the same engine as the fmucontainer CLI
  2. Reconstruct the node graph with all FMUs, wires, port mappings, and start values
  3. Restore container parameters (from JSON) or apply defaults (from CSV or SSP)

FMU location

The .fmu files referenced in a JSON or CSV description must be located in the same directory as the description file. An SSP archive contains its FMUs.

Unsaved Changes

If you have unsaved changes when closing the window or opening another file, you will be prompted to confirm.