Importing FMU Files

You can import FMU (Functional Mock-Up Unit) files, by dropping them on the home page, or by a command. If a library or a model with the same name as the library is already present in the database, you can handle revisions.

Important: Dropping files on the home page supports also importing FMU files from Design with Dymola, using Systems Traceability.
Tip:

Systems Simulation Design is related to Dymola Behavior Modeling. You can find more information about importing and exporting FMUs from that app, see 3D Modeling | Systems Modeling and Execution | Dymola Behavior Modeling | Dymola Behavior Modeling | Interfacing Other Simulation Environments | Functional Mock-up Interface (FMI).

For more information about FMUs in general, in particular about the features, like FMI 3 terminals and icons and variable-size parameter arrays, see the FMI documentation of stand-alone Dymola. There is not full correspondence between the FMI features available in Dymola and the FMI features available in Systems Simulation Design, but most is valid. You can find this information from the manual extract FMI Support in Dymola. To find that manual extract, do the following:

  1. Go to the Program Directories.
    Note: A 3DPassport is required to display this page.
  2. In the left pane, expand Products > Apps > CATIA.
  3. Click Behavior Modeling, and then select the Known Issues tab.
    Note: Behavior Modeling is the name for Dymola Behavior Modeling in the Program Directories.
  4. In the section User Assistance Updates, scroll down to the subsection Selected Dymola Documentation. Here you can find the above manual extract.
    Note: The commands are different in Dymola; in Dymola ribbon commands are used.

This task shows you how to:

Import FMU Files by Dropping Them on the Home Page

You can import an FMU file by dropping it in the Systems Simulation Design home page.

Before you begin: You can drag an FMU file from any of the locations:
  • From a folder on your local disk drive.
  • From the tree view in a Systems Traceability project.
    Note: The project must be a Design with Dymola project.
  1. In the Systems Simulation Design home page, drop the FMU file to import.

    Important:
    • The names of the FMU file and the FMU root class must be the same. As example, to import an FMU containing the root class MyFMU, the name of the FMU file must be MyFMU.fmu.
    • The FMU must contain any of, or both:
      • A Windows 64-bit binary.
      • A Linux 64-bit binary compiled with Linux Ubuntu 20.04 or 22.04, or any compatible Linux distribution.

    If you have import options, the FMU Import Option dialog box appears.
    Note: If no options are available, that is, you only have an FMU of the Model Exchange type without any source code, the dialog box does not appear. If so, jump over the next step.
  2. In the FMU Import Option dialog box:
    1. To import the FMU as a Co-Simulation FMU, activate Import FMU as Co-Simulation.

      If this option is not activated, you import a Model Exchange FMU.

    2. To import the FMU with source code, activate Import as Source Code FMU.

      If this option is not activated, you import the FMU with binaries.

    3. Click OK to import the FMU with the selected options.
    The following is the result:
    • When the FMU file is imported, a new Modelica library with the name <filename>_fmu is created, where <filename> is the name of the FMU file. The library contains a top-level class, which wraps the FMU. Subclasses are created, according to the structure of the FMU.
    • The library with the FMU appears in the Recent Content panel.
      Note: You can also, from the home page, click My Content to find the library.
    • If a library or a model with the same name is already present in the database, the Library Revision Option dialog box appears with alternatives to select from. You must perform revision handling to import the file. For more information, see Handle Revisions.
What's Next
You can use the imported FMU in two ways:
  • The most common is that you add the FMU as a component in a model, that is, you add the top level of the library to the model. For more information, see Composing Models.
  • It is not common, but it is possible to open a study template from the library. For more information, see Managing a Study Template.

Import FMU Files by a Command

You can import an FMU file by the home page command Import Files .

Before you begin: The FMU file must be present in a folder on your local disk drive.
  1. In the Systems Simulation Design home page, click Import Files .
  2. In the File Upload dialog box, browse for the FMU file, and click Open.

    Important:
    • The names of the FMU file and the FMU root class must be the same. As example, to import an FMU containing the root class MyFMU, the name of the FMU file must be MyFMU.fmu.
    • The FMU must contain any of, or both:
      • A Windows 64-bit binary.
      • A Linux 64-bit binary compiled with Linux Ubuntu 20.04 or 22.04, or any compatible Linux distribution.

    If you have import options, the FMU Import Option dialog box appears.
    Note: If no options are available, that is, you only have an FMU of the Model Exchange type without any source code, the dialog box does not appear. If so, jump over the next step.
  3. In the FMU Import Option dialog box:
    1. To import the FMU as a Co-Simulation FMU, activate Import FMU as Co-Simulation.

      If this option is not activated, you import a Model Exchange FMU.

    2. To import the FMU with source code, activate Import as Source Code FMU.

      If this option is not activated, you import the FMU with binaries.

    3. Click OK to import the FMU with the selected options.
    The following is the result:
    • When the FMU file is imported, a new Modelica library with the name <filename>_fmu is created, where <filename> is the name of the FMU file. The library contains a top-level class, which wraps the FMU. Subclasses are created, according to the structure of the FMU.
    • The library with the FMU appears in the Recent Content panel.
      Note: You can also, from the home page, click My Content to find the library.
    • If a library or a model with the same name is already present in the database, the Library Revision Option dialog box appears with alternatives to select from. You must perform revision handling to import the file. For more information, see Handle Revisions.
What's Next
You can use the imported FMU in two ways:
  • The most common is that you add the FMU as a component in a model, that is, you add the top level of the library to the model. For more information, see Composing Models.
  • It is not common, but it is possible to open a study template from the library. For more information, see Managing a Study Template.

Handle Revisions

You can handle revisions when you already have a library or model with the same name as the created FMU library in the database.

Before you begin: When you import an FMU file, the Library Revision Option dialog appears.
  1. In the Library Revision Option dialog box, select any of the following:
    • To create a new revision from an existing library or model, select Select a library and create a new revision with the imported file.

      Select a library and create a new revision with the imported file is selected.

    • To replace an existing library or model in the database with the imported library or model, select Select a library and replace it with the imported file.
    • To select another revision, click More revisions and select a revision.
  2. Click OK to validate.