Skip to content

Commit

Permalink
Use --fmiFilter=protected by default (#8585)
Browse files Browse the repository at this point in the history
  • Loading branch information
lochel committed Feb 18, 2022
1 parent e907ba7 commit 1a809ac
Show file tree
Hide file tree
Showing 6 changed files with 253 additions and 577 deletions.
2 changes: 1 addition & 1 deletion OMCompiler/Compiler/Util/Flags.mo
Expand Up @@ -1341,7 +1341,7 @@ constant ConfigFlag FLAT_MODELICA = CONFIG_FLAG(138, "flatModelica",
Gettext.gettext("Outputs experimental flat Modelica."));

constant ConfigFlag FMI_FILTER = CONFIG_FLAG(139, "fmiFilter", NONE(), EXTERNAL(),
ENUM_FLAG(FMI_INTERNAL, {("none", FMI_NONE), ("internal", FMI_INTERNAL), ("protected", FMI_PROTECTED), ("blackBox", FMI_BLACKBOX)}),
ENUM_FLAG(FMI_PROTECTED, {("none", FMI_NONE), ("internal", FMI_INTERNAL), ("protected", FMI_PROTECTED), ("blackBox", FMI_BLACKBOX)}),
SOME(STRING_DESC_OPTION({
("none", Gettext.gettext("All variables will be exposed, even variables that are introduced by the symbolic transformations. Hence, this is intended to be used for debugging.")),
("internal", Gettext.gettext("All internal variables introduced by the symbolic transformations are filtered out. Only the variables from the actual Modelica model are exposed (with minor exceptions, e.g. for state sets).")),
Expand Down
Expand Up @@ -16,26 +16,8 @@ readFile("Pendulum_systemCall.log");
// 0
// "info: maximum step size for 'model.root': 0.001000
// info: Result file: model_res.mat (bufferSize=10)
// info: Variable model.root.fmu.body.cylinder.shapeType will not be stored in the result file, because the signal type is not supported
// info: Variable model.root.fmu.body.sphere.shapeType will not be stored in the result file, because the signal type is not supported
// info: Variable model.root.fmu.rev.cylinder.shapeType will not be stored in the result file, because the signal type is not supported
// info: Variable model.root.fmu.world.gravityArrowHead.shapeType will not be stored in the result file, because the signal type is not supported
// info: Variable model.root.fmu.world.gravityArrowLine.shapeType will not be stored in the result file, because the signal type is not supported
// info: Parameter model.root.fmu.world.label1 will not be stored in the result file, because the signal type is not supported
// info: Parameter model.root.fmu.world.label2 will not be stored in the result file, because the signal type is not supported
// info: Variable model.root.fmu.world.x_arrowHead.shapeType will not be stored in the result file, because the signal type is not supported
// info: Variable model.root.fmu.world.x_arrowLine.shapeType will not be stored in the result file, because the signal type is not supported
// info: Variable model.root.fmu.world.x_label.cylinders[1].shapeType will not be stored in the result file, because the signal type is not supported
// info: Variable model.root.fmu.world.x_label.cylinders[2].shapeType will not be stored in the result file, because the signal type is not supported
// info: Variable model.root.fmu.world.y_arrowHead.shapeType will not be stored in the result file, because the signal type is not supported
// info: Variable model.root.fmu.world.y_arrowLine.shapeType will not be stored in the result file, because the signal type is not supported
// info: Variable model.root.fmu.world.y_label.cylinders[1].shapeType will not be stored in the result file, because the signal type is not supported
// info: Variable model.root.fmu.world.y_label.cylinders[2].shapeType will not be stored in the result file, because the signal type is not supported
// info: Variable model.root.fmu.world.z_arrowHead.shapeType will not be stored in the result file, because the signal type is not supported
// info: Variable model.root.fmu.world.z_arrowLine.shapeType will not be stored in the result file, because the signal type is not supported
// info: Variable model.root.fmu.world.z_label.cylinders[1].shapeType will not be stored in the result file, because the signal type is not supported
// info: Variable model.root.fmu.world.z_label.cylinders[2].shapeType will not be stored in the result file, because the signal type is not supported
// info: Variable model.root.fmu.world.z_label.cylinders[3].shapeType will not be stored in the result file, because the signal type is not supported
// info: Final Statistics for 'model.root':
// NumSteps = 1004 NumRhsEvals = 1009 NumLinSolvSetups = 55
// NumNonlinSolvIters = 1008 NumNonlinSolvConvFails = 0 NumErrTestFails = 1
Expand Down

0 comments on commit 1a809ac

Please sign in to comment.