FMUTester
FMUInfo
obtain general FMU information
Calling Sequence
Parameters
Returns
Options
Description
Examples
Compatibility
FMUInfo(fmu, options)
fmu
-
string; FMU name with .fmu extension
Information about FMU in the format(s) specified by returntype.
returntype = list consisting of one or more of "string", "file", "record"
List of strings "string", "file", and/or "record" specifying the type of output to be returned. The default value is ["string"].
outputdir = string
Specifies the path to the directory where the file will be written when returntype = "file". If no outputdir is specified, the file will be written in the current directory. The default value is an empty string.
validateFMU = true or false
Specifies whether the FMU's model description XML syntax will be validated before obtaining any information. The default value is false.
The FMUInfo procedure obtains general information from the modelDescription.xml file contained in the FMU.
The following sub-categories are shown:
Model Info (FMI version, type, model name, description, platforms, generation tool, generation date)
Default Experiment (default FMU simulation settings)
Variables (inputs and outputs)
with⁡FMUTester:
Get the Rectifier FMU information as a string (default)
fmuname≔FileTools:-JoinPath⁡FMUs,Rectifier.fmu,base=datadir:
FMUInfo⁡fmuname
Model Info FMI Version 2.0 FMI Type Co-Simulation Model Name Rectifier Description Model Rectifier Platforms win64 Continuous States 4 Event Indicators 6 Variables 63 Generation Tool MapleSim (1357016/1357197/1357197) Generation Date 2018-10-25T13:27:33Z Default Experiment Stop Time 0.1 Step Size 1e-07 Variables (input, output) Name Causality Start Value Unit Description outputs output 2.82842712474619020e+02 V Rectifier1.Capacitor1.v
Get the CoupledClutches FMU information as a record and as a string
fmuname≔FileTools:-JoinPath⁡FMUs,CoupledClutches.fmu,base=datadir:
CC,infostr≔FMUInfo⁡fmuname,returntype=record,string:
mdlname≔CC:-Model_Info:-Model_Name
mdlname≔CoupledClutchesME2
fmivers≔CC:-Model_Info:-FMI_Version
fmivers≔2.0
fmitype≔CC:-Model_Info:-FMI_Type
fmitype≔ME
platfor≔CC:-Model_Info:-Platforms
platfor≔c-code,darwin64,linux64,win32,win64
t0≔CC:-Default_Experiment:-Start_Time
t0≔0.
tf≔CC:-Default_Experiment:-Stop_Time
tf≔1.50000000000000
`~`print⁡CC:-Variables:-Inputs:
Recordpacked⁡Name=inputs,Causality=input,Start_Value=0.00000000000000000e+00,Unit=,Description=RI1
`~`print⁡CC:-Variables:-Outputs:
Recordpacked⁡Name=outputs[1],Causality=output,Start_Value=1.00000000000000000e+01,Unit=rad/s,Description=J1.w
Recordpacked⁡Name=outputs[2],Causality=output,Start_Value=0.00000000000000000e+00,Unit=rad/s,Description=J2.w
Recordpacked⁡Name=outputs[3],Causality=output,Start_Value=0.00000000000000000e+00,Unit=rad/s,Description=J3.w
Recordpacked⁡Name=outputs[4],Causality=output,Start_Value=0.00000000000000000e+00,Unit=rad/s,Description=J4.w
infostr
Model Info FMI Version 2.0 FMI Type Model Exchange Model Name CoupledClutchesME2 Description Model CoupledClutchesME2 Platforms c-code, darwin64, linux64, win32, win64 Continuous States 18 Event Indicators 25 Variables 178 Generation Tool MapleSim (1183828/1183758/1183758) Generation Date 2016-11-24T17:45:51Z Default Experiment Stop Time 1.5 Tolerance 0.0001 Variables (input, output) Name Causality Start Value Unit Description inputs input 0.00000000000000000e+00 RI1 outputs[1] output 1.00000000000000000e+01 rad/s J1.w outputs[2] output 0.00000000000000000e+00 rad/s J2.w outputs[3] output 0.00000000000000000e+00 rad/s J3.w outputs[4] output 0.00000000000000000e+00 rad/s J4.w
The FMUTester[FMUInfo] command was introduced in Maple 2019.
For more information on Maple 2019 changes, see Updates in Maple 2019.
See Also
FMUTester[FetchFMU]
FMUTester[SimulateFMU]
FMUTester[ValidateResult]
Download Help Document