Properties
This table describes the properties of the operation:
| Operation Characteristics |
Values |
| Operation name |
FMU Checker |
| Operation version |
100 |
| Operation nature |
Validation |
| Operation description |
This operation checks the FMU using the FMI Compliance
Checker. |
| Operation input files |
files with .fmu extension and optional test
data |
| Operation input objects |
Not Applicable |
| SPO-Specific Return codes |
The following return codes are displayed to indicate the check result:
- For errors 0 to 4, see software production operation specification.
- Error 5: The model description in the FMU is incorrect.
- Error 6: The result and the reference file do not match. (if provided as a
parameter)
- Error 7: A value from the reference file cannot be found in the output
file.
|
| Feature |
FMU checking -1 credit per input file |
Notes:
- The credits required for this operation depend on the number of input files. For
example, the credit consumption is one if one FMU is provided without any other files.
If in addition, two input files and two reference files are provided, the consumed
credits are 1+2+2=5 credits.
the equivalent command
is: fmuCheck.<platform> <fmuToValidate> -o <CSV FileName> where
<platform> is win32/win64/linux32/linux64, according to FMU contents.
- The -e argument of the FMU compliance checker is
not supported. A stream generated by the FMU compliance checker on stdout and std err is
saved in the file identified by the log option.
- Except -e, all other arguments have an equivalent argument in the operation. See the
following section.
Parameters
This section describes the parameters that you can use when
invoking this operation. For more information, see Attributes Pane.
Table 1. platform Parameter
| Attributes |
Values |
| Name |
platform |
| Description |
Specifies the name of the .html report. |
| Type |
Enum |
| Value [Default] |
[all], win32, win64, linux32, linux64, win, linux |
| Multiplicity |
* |
Table 2. report Parameter
| Attributes |
Values |
| Name |
report |
| Description |
Specifies the name of the .html report. |
| Type |
String |
| Value [Default] |
[FMU_Checker_Report.html] |
| Multiplicity |
0..1 |
Table 3. log Parameter
| Attributes |
Values |
| Name |
log |
| Description |
Specifies the name of the log file containing the stdout and stderr
streams. |
| Type |
String |
| Values [Default] |
[<fmuName>_<platform>.log] |
| Multiplicity |
0..1 |
Table 4. output Parameter
| Attributes |
Values |
| Name |
output |
| Description |
Specifies the name of the output csv file that stores the output values. It is
equivalent to the standard –o argument of the FMU compliance checker. |
| Type |
String |
| Values [Default] |
[<fmuName>_<platform>.csv] |
| Multiplicity |
0..1 |
Table 5. separator Parameter
| Attributes |
Values |
| Name |
separator |
| Description |
The separator character is used in the CSV output file. It is equivalent to
the standard –c argument of the FMU compliance checker. |
| Type |
String |
| Values [Default] |
[,] |
| Multiplicity |
0..1 |
Table 6. d Parameter
| Attributes |
Values |
| Name |
d |
| Description |
Prints the left limit values at event points to the output file to investigate
event behavior. the values are printed only after event
handling. It is equivalent to the standard –d argument of the FMU compliance checker. |
| Type |
Boolean |
| Values [Default] |
true, [false] |
| Multiplicity |
0..1 |
Table 7. full Parameter
| Attributes |
Values |
| Name |
full |
| Description |
Prints all variables to the output file. the values are
printed only after event handling. It is equivalent to the standard –f argument of the FMU compliance checker. |
| Type |
Boolean |
| Values [Default] |
true, [false] |
| Multiplicity |
0..1 |
Table 9. reference Parameter
| Attributes |
Values |
| Name |
reference |
| Description |
The name of the .csv file used as the reference and
containing output data used for comparison with the generated output file.
The reference file is identified by its name on the arguments must be part of the
selected assets of the operation. Notes:
- You can provide multiple reference files. In this case, the execution is performed for each reference file one after the other.
- If multiple reference files are provided, input files and reference files are managed by pair.
The first of each are executed together, then the second of each
together.
|
| Type |
String |
| Values [Default] |
- |
| Multiplicity |
* |
Table 10. step_size Parameter
| Attributes |
Values |
| Name |
step_size |
| Description |
- For ME simulation: Decides the step size to be used in the forward Euler.
- For CS simulation: Decides the communication step size for the stepping.
Note:
If a small step size is used, is then the number of saved outputs is still
limited by the number of output points.
It is equivalent to the standard –h argument of the FMU compliance checker.
|
| Type |
Integer |
| Values [Default] |
The default step size is calculated from the number of output points. See the
-n option to see how to set the number of outputs. |
| Multiplicity |
0..1 |
Table 11. level Parameter
| Attributes |
Values |
| Name |
level |
| Description |
Log level It is equivalent to the standard –l argument of the FMU compliance checker. |
| Type |
Integer |
| Values [Default] |
0 - no logging, 1 - fatal errors only, 2 - errors, 3 - warnings, [4 – info], 5
- verbose, 6 - debug. |
| Multiplicity |
0..1 |
Table 12. mangle Parameter
| Attributes |
Values |
| Name |
mangle |
| Description |
Specifies the mangle variable names to avoid quoting (used for some
csv importing applications, but not according to the
CrossCheck rules).
It is equivalent to the standard –m argument of the FMU compliance checker.
|
| Type |
Boolean |
| Values [Default] |
true, [false] |
| Multiplicity |
0..1 |
Table 13. num_steps Parameter
| Attributes |
Values |
| Name |
num_step |
| Description |
Specifies the maximum number of output points. "-n 0" means output at every
step and the number of outputs are decided by the step_size. No interpolation is
used and the output points are taken at the steps. It is equivalent to the
standard –n argument of the FMU compliance checker. |
| Type |
Integer |
| Values [Default] |
[500] |
| Multiplicity |
0..1 |
Table 14. stop_time Parameter
| Attributes |
Values |
| Name |
stop_time |
| Description |
Specifies the simulation stop time. It is equivalent to the standard –s argument of the FMU compliance checker. |
| Type |
Integer |
| Values [Default] |
The default is to use information from DefaultExperiment as
specified in the model description XML. |
| Multiplicity |
0..1 |
Table 15. check Parameter
| Attributes |
Values |
| Name |
check |
| Description |
Specifies the type of verification. It is equivalent to the standard -k argument of the FMU compliance checker. If the xml value is selected, It is equivalent to
-x argument of the FMU compliance checker. |
| Type |
Enum |
| Values [Default] |
[xml, me, cs] |
| Multiplicity |
0..* |
|