Import by a Command
You can import an SSP package by a command.
Note:
When importing an SSP by this command, you by default apply filtering, that
is, you filter what FMU variables that are to be exposed in the imported SSP package.
However, you can select to not apply filtering to any variable. That means that you in
practice don“t apply any filtering.
Before you begin: Select where to import the SSP package:
- To import it into an existing package, activate that package. In this scenario, you import the SSP package
into the existing Modelica package
MySSPLib. For
more information on how to create a Modelica library, see Create a Modelica Library.
- To import it as a new Modelica library, make sure you have no existing
package activated.
-
From the Behavior Authoring section of the action bar, click Import
SSP
.
The Import SSP window
appears.
-
Browse for the SSP model and click Open.
In this scenario, browse for the file
E:/MyExperiment/SSP_Examples/SSP8.ssp.
The Import FMU dialog box appears, to let
you select what variables to hide.
-
In the dialog, select what variables to hide.
By default, all variables are selected to be exposed.
-
In the left part of the dialog, select the variables to
hide.
You can:
- Search for variables by entering in the first
field.
- Expand and collapse nodes in the tree individually, or all by clicking Expand
All or Collapse
All.
- Multiselect variables individually, or all by clicking
Select All or
Select None.
-
Click Hide to hide the selected
variables.
-
When you have finalized the selection, click
OK.
The SSP file is imported as any of, depending on if you had
any Modelica package activated or not when giving the command:
- A Modelica model inside the activated package.
- A new Modelica package, with the name of the SSP
"name" property.
The package structure looks like any of:
- If you imported to the activated package
MySSPLib:

- If you imported it as a new Modelica package:

where:
- Clutches matches the SSP
"name" property.
- CoupledClutchesExport_fmu is
the imported FMU from the SSP file (there may be
several FMUs).
- Normal,
Light, and
Heavy are the
parameterizations proposed in the SSP file. If
several FMUs are imported, each has its own
parameterization modules.
- CoupledClutchesSSP is the
main SSP diagram, with default
parameterization.
Import by Scripting
You can import an SSP package by scripting, with or without filtering of FMU
variables.
Before you begin: In this scenario, you import the SSP file
E:/MyExperiment/SSP_Examples/SSP8.ssp to an existing Modelica library
MySSPLib, or to a new Modelica library. For more information on how to
create a Modelica library, see Create a Modelica Library.
Import by Scripting, without Filtering of FMU Variables
You can import an SSP package by scripting without filtering, that is, you expose
all available FMU variables in the imported SSP package.
-
From the Behavior Tools section of the action bar, click Modelica Scripting
.
The Modelica Scripting window appears. Note:
There are other tools that can be used for scripting, for example, the
Script Editor. For more about scripting, see About Scripting.
-
To import the SSP package without filtering, enter, in the lower line (the command
input line) of the Modelica Scripting window
importSSP("E:/MyExperiment/SSP_Examples/SSP8.ssp", false, "MySSP",
false) and then press Enter.
The SSP package is imported. The package structure looks like:  where:
- Clutches matches the SSP "name" property.
- CoupledClutchesExport_fmu is the imported FMU from the
SSP file (there may be several FMUs).
- Normal, Light, and
Heavy are the parameterizations proposed in the SSP file.
If several FMUs are imported, each has its own parameterization modules.
- CoupledClutchesSSP is the main SSP diagram, with default
parameterization.
Note:
If you import the SSP file without specifying the target, that
is, you call importSSP("E:/MyExperiment/SSP_Examples/SSP8.ssp", false, "",
false) you create a new Modelica library with the name
Clutches. The structure under
Clutches is the same as in the figure
above.
Import by Scripting, with Filtering of FMU Variables
You can import an SSP package by scripting with filtering, that is, you can
filter what FMU variables that are to be exposed in the imported SSP package.
-
Perform Step 1 from the previous subtask.
-
To import the SSP package with filtering, enter, in the lower line (the command
input line) of the Modelica Scripting window
importSSP("E:/MyExperiment/SSP_Examples/SSP8.ssp", true, "MySSP",
false), and then press Enter.
The Import FMU dialog box appears.
-
To specify what variables to expose, do the following:
In the dialog, by default, all FMU variables are selected to be exposed.
-
In the left part of the dialog, select the variables to hide.
You can:
- Search for variables by entering in the first field.
- Expand and collapse nodes in the tree individually, or all by clicking Expand All or
Collapse All.
- Multiselect variables individually, or all by clicking Select
All or Select None.
-
Click Hide to hide the selected variables.
-
When you have finalized the selection, click OK.
The SSP package is imported. The package structure looks the figure
above. Note:
If you import the SSP file without specifying the
target, that is, you call
importSSP("E:/MyExperiment/SSP_Examples/SSP8.ssp", true, "",
false), you create, after filtering, a new Modelica library with the
name Clutches. The structure under
Clutches is the same as in the figure
above.
|