Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestComponents_Sensors_TestFlowRate",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.721/2.721, allocations: 235.1 MB / 243 MB, free: 9.59 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.102e-05/2.101e-05, allocations: 4 kB / 303.3 MB, free: 13.19 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3474/0.3475, allocations: 54.86 MB / 358.1 MB, free: 14.87 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.186/8.533, allocations: 2.595 GB / 2.945 GB, free: 118.5 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003032/8.534, allocations: 93.5 kB / 2.945 GB, free: 118.5 MB / 490.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/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.053/10.59, allocations: 395.2 MB / 3.331 GB, free: 58.97 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.074e-06/10.59, allocations: 0 / 3.331 GB, free: 58.97 MB / 490.7 MB Notification: Performance of Transformations before backend: time 4.615e-05/10.59, allocations: 10.06 kB / 3.331 GB, free: 58.97 MB / 490.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.007512/10.59, allocations: 1.545 MB / 3.333 GB, free: 58.34 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.682e-05/10.59, allocations: 12.47 kB / 3.333 GB, free: 58.34 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003337/10.6, allocations: 293.5 kB / 3.333 GB, free: 58.31 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001482/10.6, allocations: 469.7 kB / 3.333 GB, free: 58.09 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.09e-05/10.6, allocations: 21.08 kB / 3.333 GB, free: 58.08 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.163e-05/10.6, allocations: 22.06 kB / 3.333 GB, free: 58.08 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009507/10.6, allocations: 363.9 kB / 3.334 GB, free: 58.08 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009306/10.6, allocations: 468.7 kB / 3.334 GB, free: 57.93 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.071e-05/10.6, allocations: 0 / 3.334 GB, free: 57.93 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.405e-05/10.6, allocations: 7.219 kB / 3.334 GB, free: 57.93 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.866e-05/10.6, allocations: 11.06 kB / 3.334 GB, free: 57.93 MB / 490.7 MB Warning: The model contains alias variables with conflicting start and/or 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.2293/10.83, allocations: 54.99 MB / 3.388 GB, free: 34.7 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006541/10.83, allocations: 262.7 kB / 3.388 GB, free: 34.68 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002571/10.83, allocations: 123.3 kB / 3.388 GB, free: 34.67 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2265/11.06, allocations: 64.93 MB / 3.452 GB, free: 25.4 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.011e-05/11.06, allocations: 33.5 kB / 3.452 GB, free: 25.36 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=24): time 3.436e-06/11.06, allocations: 0 / 3.452 GB, free: 25.36 MB / 0.5105 GB Notification: Performance of matching and sorting (n=24): time 0.003138/11.06, allocations: 0.5901 MB / 3.452 GB, free: 25 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.148e-05/11.06, allocations: 117.5 kB / 3.452 GB, free: 24.87 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004768/11.06, allocations: 300.6 kB / 3.453 GB, free: 24.65 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 9.691e-05/11.06, allocations: 27.77 kB / 3.453 GB, free: 24.62 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002099/11.06, allocations: 326.7 kB / 3.453 GB, free: 24.39 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 9.395e-05/11.06, allocations: 85.48 kB / 3.453 GB, free: 24.33 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.817e-05/11.06, allocations: 4 kB / 3.453 GB, free: 24.33 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001335/11.06, allocations: 326.4 kB / 3.453 GB, free: 24.01 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002427/11.06, allocations: 97.62 kB / 3.454 GB, free: 23.96 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003248/11.06, allocations: 244.8 kB / 3.454 GB, free: 23.72 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001638/11.06, allocations: 239.7 kB / 3.454 GB, free: 23.59 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.346e-06/11.06, allocations: 8 kB / 3.454 GB, free: 23.58 MB / 0.5105 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.002324/11.07, allocations: 0.4979 MB / 3.455 GB, free: 23.27 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006964/11.07, allocations: 1.744 MB / 3.456 GB, free: 21.43 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.867e-05/11.07, allocations: 4 kB / 3.456 GB, free: 21.42 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002904/11.07, allocations: 45.05 kB / 3.456 GB, free: 21.39 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007079/11.07, allocations: 99.86 kB / 3.456 GB, free: 21.32 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001282/11.07, allocations: 0.641 MB / 3.457 GB, free: 20.72 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008138/11.07, allocations: 58.19 kB / 3.457 GB, free: 20.67 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.68e-05/11.07, allocations: 23.31 kB / 3.457 GB, free: 20.65 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.453e-05/11.07, allocations: 5.406 kB / 3.457 GB, free: 20.65 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001511/11.07, allocations: 377.9 kB / 3.457 GB, free: 20.44 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.668e-06/11.07, allocations: 11.09 kB / 3.457 GB, free: 20.43 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.362e-05/11.07, allocations: 8 kB / 3.457 GB, free: 20.42 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007153/11.07, allocations: 110.1 kB / 3.458 GB, free: 20.34 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.094e-05/11.07, allocations: 8 kB / 3.458 GB, free: 20.34 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005783/11.07, allocations: 55.55 kB / 3.458 GB, free: 20.29 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.975e-05/11.07, allocations: 22.97 kB / 3.458 GB, free: 20.28 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 4 (massFlowRate1.medium.phase,boundary_fixed.medium.phase,simpleGenericOrifice.state_b.phase,simpleGenericOrifice.state_a.phase) * Number of discrete 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.0002247/11.07, allocations: 112.3 kB / 3.458 GB, free: 20.17 MB / 0.5105 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002111/11.08, allocations: 387.5 kB / 3.458 GB, free: 19.91 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001145/11.08, allocations: 43.53 kB / 3.458 GB, free: 19.87 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003376/11.08, allocations: 1.554 MB / 3.46 GB, free: 19.03 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.961e-05/11.08, allocations: 30.36 kB / 3.46 GB, free: 19.02 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.002e-05/11.08, allocations: 0 / 3.46 GB, free: 19.02 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.302e-05/11.08, allocations: 3.234 kB / 3.46 GB, free: 19.02 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004334/11.08, allocations: 2.168 MB / 3.462 GB, free: 17.79 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.123e-05/11.08, allocations: 0 / 3.462 GB, free: 17.79 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004668/11.09, allocations: 55.22 kB / 3.462 GB, free: 17.75 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001004/11.09, allocations: 0.6013 MB / 3.462 GB, free: 17.36 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.994e-05/11.09, allocations: 4 kB / 3.462 GB, free: 17.35 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001561/11.09, allocations: 1.097 MB / 3.464 GB, free: 16.55 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.394e-06/11.09, allocations: 0 / 3.464 GB, free: 16.55 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002414/11.09, allocations: 1.211 MB / 3.465 GB, free: 15.77 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003763/11.09, allocations: 187.5 kB / 3.465 GB, free: 15.59 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.282e-05/11.09, allocations: 4 kB / 3.465 GB, free: 15.59 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005116/11.09, allocations: 27.5 kB / 3.465 GB, free: 15.57 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001042/11.09, allocations: 26.11 kB / 3.465 GB, free: 15.56 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.519e-05/11.09, allocations: 13.22 kB / 3.465 GB, free: 15.55 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0003566/11.09, allocations: 234.1 kB / 3.465 GB, free: 15.38 MB / 0.5105 GB Notification: Performance of sort global known variables: time 4.5e-07/11.09, allocations: 0 / 3.465 GB, free: 15.38 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.005898/11.1, allocations: 1.154 MB / 3.466 GB, free: 14.31 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 13 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse5.phase,$cse5.region,$cse6.region3boundary,$cse7.region3boundary,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,massFlowRate1.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * 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.01304/11.11, allocations: 3.31 MB / 3.47 GB, free: 11.75 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.001567/11.11, allocations: 0.6301 MB / 3.47 GB, free: 11.39 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 6.172e-06/11.11, allocations: 0 / 3.47 GB, free: 11.39 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0006566/11.11, allocations: 401.3 kB / 3.471 GB, free: 11.21 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001725/11.12, allocations: 173.6 kB / 3.471 GB, free: 11.11 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006059/11.12, allocations: 1.471 MB / 3.472 GB, free: 9.93 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008741/11.12, allocations: 0.9476 MB / 3.473 GB, free: 25.05 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004477/11.12, allocations: 236.6 kB / 3.473 GB, free: 25.02 MB / 0.5261 GB Notification: Performance of SimCode: time 1.213e-06/11.12, allocations: 3.375 kB / 3.473 GB, free: 25.02 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.776/14.9, allocations: 33.91 MB / 3.506 GB, free: 2.008 MB / 0.5261 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate_res.mat does not exist to compare? outputFormat=mat