FMU Upload & Component Library
An FMU (Functional Mock-up Unit) is a self-contained model file packaged per the FMI (Functional Mock-up Interface) standard; mainstream modeling tools such as Dymola, OpenModelica, and Simulink can all export it. After upload, CoModel parses the metadata—inputs, outputs, parameters—and wraps the FMU as a draggable component that co-simulates with MTK physics models on the same canvas.
Opening FMU Component Management
After signing in to CoModel, click FMU Components in the main navigation to open the FMU management page. The page lists every FMU file you have uploaded, with key information such as display name, FMI version, simulation mode, category, and parsing status.

Uploading an FMU
- Click the Upload FMU button at the top right of the page.
- Select a local
.fmufile, or drag files into the upload area. - Enter a Display Name (required; shown in the component library).
- Enter a Component Name (optional, technical): leave it empty to derive it automatically from the display name; if specified, it must be a valid Julia identifier (starts with a letter or underscore, contains only letters, digits, and underscores) and be unique within your account.
- Choose a Category (a custom category, or leave it Uncategorized).
- Choose the Default Simulation Mode (CS / ME; CS is preselected. If the FMU does not support the selected mode after parsing, the system falls back to a mode it actually supports).
- Click confirm to start asynchronous parsing.

Validation happens in two stages:
Immediate checks at upload time (violations are reported on the spot):
| Check | Requirement |
|---|---|
| File extension | Must be .fmu |
| File size | ≤ 100 MB per file |
| Per-user quota | ≤ 500 MB total per user |
| Display name | Unique within your account (duplicates prompt a rename) |
| Component name | Valid Julia identifier, not a Julia keyword, unique within your account |
Checks during parsing (run asynchronously after a successful upload; failures appear in the Status column of the list—hover to see the specific error):
| Check | Requirement |
|---|---|
| File format | Valid ZIP containing modelDescription.xml |
| FMI version | FMI 2.0 / 3.0 only |
| Simulation mode | At least one of CS or ME |
Note: The CoModel server runs on Linux x86_64, so an FMU must contain the
.soshared libraries underbinaries/linux64/. An FMU without Linux binaries can be uploaded successfully, but loading it during simulation fails.
Parsing Results and Details
After upload the FMU enters the parsing state, which becomes ok or error when parsing finishes. Click Details in the list to see the full metadata:
- Basics:
modelName, GUID, generation tool, FMI version - Supported modes: CS / ME
- Variable list: name, causality, type, initial value, unit, description
- Default experiment:
startTime,stopTime,stepSize,tolerance - Number of state variables and event indicators (ME mode)
- Linux compatibility note: whether
binaries/linux64/binaries are present and whether the glibc version requirement is met

Parsed variables map to different component capabilities by causality:
| FMU variable causality | Appearance in CoModel | Connectable on canvas |
|---|---|---|
input |
Input port on the left | ✅ Real type only |
output |
Output port on the right | ✅ Real type only |
parameter |
Parameter in the properties panel on the right | ❌ |
local / state |
Variable in the simulation results | ❌ |
calculatedParameter |
Observable result variable | ❌ |
Browsing in the Component Library
Successfully parsed FMUs enter the Component Library automatically. On the Component Library page, use the Type filter and select FMU to see only FMU components; you can also find them in the component tree on the left of the model editor:
- FMU components uploaded by users all hang under the top-level User Components node.
- They are grouped by the category chosen at upload time into second-level nodes.
- The FMU components themselves are third-level leaf nodes (they skip the library-file layer that MTK user components go through).
Within the same category, MTK library-file nodes and FMU leaf nodes are shown together, distinguished by the FMU-specific icon. FMU components whose source an administrator has set to Official hang under the top-level Official Components node and are visible to all users.

Editing Metadata and Reparsing
On the FMU management page you can perform the following operations on an uploaded FMU:
- View details: see the full parsed metadata and variable list.
- View usage: list the models and composite components that reference the FMU (see the next section).
- Edit metadata: change the category, assign an icon to the component; administrators can also change the source (User / Official).
- Reparse: run parsing again on an already-parsed (successful or failed) FMU.
- Delete: remove the FMU file and its component record.
Metadata changes sync to the component library and the editor component tree immediately; no re-upload is needed. The default simulation mode is fixed at upload time and cannot be switched on the page yet; for how the mode is chosen, see FMI Modes & Compatibility.
Deletion and Reference Checks
Before deleting an FMU, the system scans all non-deleted models and composite components (not limited to the uploader) to check whether the FMU is still referenced. If references exist, deletion is blocked and a Usage dialog opens, listing the references and their total count:
Usage—MyFMU
References 2 in total
[Model] MyHybridModel #42
[Composite component] SpringDamper #7
You can also click the Usage button in the list at any time (without attempting deletion) to see the same reference details.
Once the FMU nodes are removed from canvases or the referencing models are deleted, the FMU can be deleted normally. Deleting an FMU also removes its database records and files on disk.
Example: Supported FMU Metadata Structure
The following is a simplified excerpt of ModelVariables from a modelDescription.xml. CoModel generates component ports and parameters from it:
<ScalarVariable name="extForce" valueReference="33554432"
causality="input" variability="continuous">
<Real start="0.0" unit="N"/>
</ScalarVariable>
<ScalarVariable name="mass.s" valueReference="33554433"
causality="output" variability="continuous">
<Real start="0.5" unit="m"/>
</ScalarVariable>
<ScalarVariable name="mass.m" valueReference="16777216"
causality="parameter" variability="tunable">
<Real start="1.0" unit="kg"/>
</ScalarVariable>
Next Steps
- To use FMU components on the canvas, read Using FMUs on the Canvas.
- For how to choose the FMI version and the CS/ME mode, read FMI Modes & Compatibility.