Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestComponents_Sensors_TestFlowRate",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.977/1.977, allocations: 209.2 MB / 224.8 MB, free: 0.6133 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004542/0.0004542, allocations: 12 kB / 282.7 MB, free: 9.527 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1223/0.1228, allocations: 48.7 MB / 331.4 MB, free: 8.734 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.567/7.69, allocations: 2.485 GB / 2.809 GB, free: 34.21 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002636/7.691, allocations: 87.52 kB / 2.809 GB, free: 34.16 MB / 426.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Fluid/Interfaces.mo:327:3-329:69:writable] Warning: Inherited elements are not identical: bug: https://trac.modelica.org/Modelica/ticket/627 first: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start, stateSelect = if momentumDynamics == Modelica.Fluid.Types.Dynamics.SteadyState then StateSelect.default else StateSelect.prefer) "mass flow rates between states" second: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start) "Mass flow rate in design flow direction" Continue .... Notification: Performance of FrontEnd - DAE generated: time 2.662/10.35, allocations: 390.5 MB / 3.19 GB, free: 44.33 MB / 442.7 MB Notification: Performance of FrontEnd: time 4.248e-06/10.35, allocations: 1.188 kB / 3.19 GB, free: 44.33 MB / 442.7 MB Notification: Performance of Transformations before backend: time 6.445e-05/10.35, allocations: 14 kB / 3.19 GB, free: 44.33 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 99 * Number of variables: 99 Notification: Performance of Generate backend data structure: time 0.009608/10.36, allocations: 1.553 MB / 3.192 GB, free: 43.76 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.245e-05/10.36, allocations: 13.34 kB / 3.192 GB, free: 43.76 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002768/10.36, allocations: 80.44 kB / 3.192 GB, free: 43.72 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005331/10.37, allocations: 275.3 kB / 3.192 GB, free: 43.69 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00202/10.37, allocations: 466.2 kB / 3.193 GB, free: 43.47 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.668e-05/10.37, allocations: 39.27 kB / 3.193 GB, free: 43.47 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001346/10.37, allocations: 38.19 kB / 3.193 GB, free: 43.47 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004119/10.37, allocations: 0.694 MB / 3.193 GB, free: 43.32 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.555e-05/10.37, allocations: 1.469 kB / 3.193 GB, free: 43.32 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000109/10.37, allocations: 15.22 kB / 3.193 GB, free: 43.32 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.367e-05/10.37, allocations: 10.84 kB / 3.193 GB, free: 43.32 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00441/10.38, allocations: 0.6141 MB / 3.194 GB, free: 43.31 MB / 442.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006755/10.39, allocations: 2.867 MB / 3.197 GB, free: 41.39 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003523/10.39, allocations: 459.8 kB / 3.197 GB, free: 41.37 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4404/10.83, allocations: 95.71 MB / 3.291 GB, free: 22.34 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.385e-05/10.83, allocations: 34.38 kB / 3.291 GB, free: 22.3 MB / 474.7 MB Notification: Performance of pre-optimization done (n=30): time 3.327e-06/10.83, allocations: 3.125 kB / 3.291 GB, free: 22.3 MB / 474.7 MB Notification: Performance of matching and sorting (n=30): time 0.00437/10.83, allocations: 0.8973 MB / 3.292 GB, free: 22.13 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.878e-05/10.83, allocations: 110.2 kB / 3.292 GB, free: 22.01 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005383/10.83, allocations: 309.2 kB / 3.292 GB, free: 21.9 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 7.171e-05/10.83, allocations: 28.83 kB / 3.292 GB, free: 21.87 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000209/10.84, allocations: 318.6 kB / 3.292 GB, free: 21.66 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001227/10.84, allocations: 106.8 kB / 3.293 GB, free: 21.61 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.014e-05/10.84, allocations: 3.312 kB / 3.293 GB, free: 21.61 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001479/10.84, allocations: 334.8 kB / 3.293 GB, free: 21.3 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005705/10.84, allocations: 130 kB / 3.293 GB, free: 21.3 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006242/10.84, allocations: 281.2 kB / 3.293 GB, free: 21.11 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006294/10.84, allocations: 173.6 kB / 3.293 GB, free: 21.1 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.818e-06/10.84, allocations: 3.172 kB / 3.293 GB, free: 21.1 MB / 474.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.00167/10.84, allocations: 477 kB / 3.294 GB, free: 21.05 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007806/10.84, allocations: 1.748 MB / 3.296 GB, free: 19.22 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.629e-05/10.84, allocations: 9.5 kB / 3.296 GB, free: 19.21 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003121/10.84, allocations: 202.2 kB / 3.296 GB, free: 19.2 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000718/10.84, allocations: 96.69 kB / 3.296 GB, free: 19.2 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000709/10.84, allocations: 0.5835 MB / 3.296 GB, free: 18.68 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006747/10.85, allocations: 65.97 kB / 3.297 GB, free: 18.67 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.06e-05/10.85, allocations: 24.72 kB / 3.297 GB, free: 18.67 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.935e-05/10.85, allocations: 6.625 kB / 3.297 GB, free: 18.67 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001334/10.85, allocations: 404.6 kB / 3.297 GB, free: 18.66 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.095e-05/10.85, allocations: 10.08 kB / 3.297 GB, free: 18.66 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.446e-05/10.85, allocations: 10.25 kB / 3.297 GB, free: 18.66 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006803/10.85, allocations: 110.9 kB / 3.297 GB, free: 18.66 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.282e-05/10.85, allocations: 7.594 kB / 3.297 GB, free: 18.66 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005045/10.85, allocations: 56.09 kB / 3.297 GB, free: 18.64 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.112e-05/10.85, allocations: 26.55 kB / 3.297 GB, free: 18.64 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 4 (boundary_fixed.medium.phase,massFlowRate1.medium.phase,simpleGenericOrifice.state_b.phase,simpleGenericOrifice.state_a.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0004833/10.85, allocations: 246.9 kB / 3.297 GB, free: 18.45 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001531/10.85, allocations: 42.47 kB / 3.297 GB, free: 18.43 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003439/10.85, allocations: 1.988 MB / 3.299 GB, free: 18.17 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.981e-05/10.85, allocations: 33.27 kB / 3.299 GB, free: 18.17 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.037e-06/10.85, allocations: 0 / 3.299 GB, free: 18.17 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.139e-05/10.85, allocations: 7.453 kB / 3.299 GB, free: 18.17 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001606/10.85, allocations: 0.9887 MB / 3.3 GB, free: 17.92 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.503e-06/10.85, allocations: 0 / 3.3 GB, free: 17.92 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005376/10.85, allocations: 70.92 kB / 3.3 GB, free: 17.92 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001935/10.86, allocations: 0.5746 MB / 3.301 GB, free: 17.88 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.122e-05/10.86, allocations: 15.5 kB / 3.301 GB, free: 17.88 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001095/10.86, allocations: 1.005 MB / 3.302 GB, free: 17.33 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/10.86, allocations: 0 / 3.302 GB, free: 17.33 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002241/10.86, allocations: 1.291 MB / 3.303 GB, free: 17.07 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004363/10.86, allocations: 242.8 kB / 3.303 GB, free: 16.91 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001043/10.86, allocations: 9.906 kB / 3.303 GB, free: 16.91 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004953/10.86, allocations: 43.53 kB / 3.304 GB, free: 16.9 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001213/10.86, allocations: 27.3 kB / 3.304 GB, free: 16.9 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.531e-05/10.86, allocations: 9.531 kB / 3.304 GB, free: 16.9 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0005301/10.86, allocations: 307.8 kB / 3.304 GB, free: 16.81 MB / 474.7 MB Notification: Performance of sort global known variables: time 3.81e-07/10.86, allocations: 0 / 3.304 GB, free: 16.81 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.006348/10.87, allocations: 1.196 MB / 3.305 GB, free: 16.63 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 16 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse5.phase,$cse5.region,$cse7.region3boundary,$cse8.region3boundary,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse13.phase,$cse13.region,massFlowRate1.medium.phase,boundary_fixed.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.01341/10.88, allocations: 3.153 MB / 3.308 GB, free: 15.61 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.002485/10.88, allocations: 0.7785 MB / 3.309 GB, free: 15.59 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 4.689e-06/10.88, allocations: 0 / 3.309 GB, free: 15.59 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009235/10.89, allocations: 489 kB / 3.309 GB, free: 15.58 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001827/10.89, allocations: 214.2 kB / 3.31 GB, free: 15.55 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8016/11.69, allocations: 155.3 MB / 3.461 GB, free: 61.68 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005259/11.69, allocations: 1.003 MB / 3.462 GB, free: 60.97 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005248/11.69, allocations: 280.3 kB / 3.462 GB, free: 60.96 MB / 474.7 MB Notification: Performance of SimCode: time 1.273e-06/11.69, allocations: 0 / 3.462 GB, free: 60.96 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.666/15.36, allocations: 34.1 MB / 3.496 GB, free: 41.08 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate_res.mat does not exist to compare? outputFormat=mat