Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|massFlowRate.m_flow|volumeFlowRate.V_flow|simpleGenericOrifice.port_b.m_flow|simpleGenericOrifice.port_b.p|simpleGenericOrifice.port_b.h_outflow",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate") Notification: Performance of loadModel(ModelicaTest): time 2.134/2.134, allocations: 235.1 MB / 243 MB, free: 9.586 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.943e-05/1.962e-05, allocations: 4 kB / 303.2 MB, free: 13.28 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.282/0.282, allocations: 54.85 MB / 358 MB, free: 14.94 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.188/6.47, allocations: 2.595 GB / 2.945 GB, free: 29.18 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002237/6.471, allocations: 83.95 kB / 2.945 GB, free: 29.1 MB / 474.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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 1.657/8.128, allocations: 395.2 MB / 3.331 GB, free: 11.39 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.047e-06/8.128, allocations: 0 / 3.331 GB, free: 11.39 MB / 490.7 MB Notification: Performance of Transformations before backend: time 4.114e-05/8.128, allocations: 8 kB / 3.331 GB, free: 11.38 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.005934/8.134, allocations: 1.531 MB / 3.333 GB, free: 9.809 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.383e-05/8.134, allocations: 12.03 kB / 3.333 GB, free: 9.797 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003043/8.137, allocations: 296.3 kB / 3.333 GB, free: 9.508 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001336/8.138, allocations: 464.7 kB / 3.333 GB, free: 9.02 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.932e-05/8.138, allocations: 19.95 kB / 3.333 GB, free: 9 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.364e-05/8.138, allocations: 23.94 kB / 3.333 GB, free: 8.977 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009574/8.139, allocations: 370.5 kB / 3.334 GB, free: 8.613 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001025/8.14, allocations: 464.5 kB / 3.334 GB, free: 8.113 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.034e-05/8.141, allocations: 7.938 kB / 3.334 GB, free: 8.105 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.21e-05/8.141, allocations: 3.984 kB / 3.334 GB, free: 8.102 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.9e-05/8.141, allocations: 12 kB / 3.334 GB, free: 8.09 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.465/8.606, allocations: 55 MB / 3.388 GB, free: 40.38 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005602/8.606, allocations: 256.1 kB / 3.388 GB, free: 40.36 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002219/8.606, allocations: 122.8 kB / 3.388 GB, free: 40.35 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1611/8.768, allocations: 64.93 MB / 3.452 GB, free: 33.38 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.242e-05/8.768, allocations: 37.89 kB / 3.452 GB, free: 33.34 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=24): time 3.676e-06/8.768, allocations: 2.406 kB / 3.452 GB, free: 33.34 MB / 0.5105 GB Notification: Performance of matching and sorting (n=24): time 0.002894/8.771, allocations: 0.5924 MB / 3.452 GB, free: 33.29 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.656e-05/8.771, allocations: 106.2 kB / 3.452 GB, free: 33.16 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004192/8.771, allocations: 296.1 kB / 3.453 GB, free: 33.05 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 4.47e-05/8.771, allocations: 25.7 kB / 3.453 GB, free: 33.02 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002012/8.771, allocations: 330.2 kB / 3.453 GB, free: 32.81 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 7.549e-05/8.772, allocations: 84.48 kB / 3.453 GB, free: 32.77 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.216e-05/8.772, allocations: 2.953 kB / 3.453 GB, free: 32.77 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001594/8.772, allocations: 333.6 kB / 3.453 GB, free: 32.45 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002128/8.772, allocations: 95.8 kB / 3.453 GB, free: 32.45 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002813/8.772, allocations: 245 kB / 3.454 GB, free: 32.27 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001522/8.774, allocations: 249.3 kB / 3.454 GB, free: 32.27 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.756e-06/8.774, allocations: 0 / 3.454 GB, free: 32.27 MB / 0.5105 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.00211/8.776, allocations: 0.49 MB / 3.454 GB, free: 32.21 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008283/8.777, allocations: 1.758 MB / 3.456 GB, free: 30.38 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.26e-05/8.777, allocations: 3.312 kB / 3.456 GB, free: 30.38 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002049/8.777, allocations: 46.56 kB / 3.456 GB, free: 30.37 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004451/8.777, allocations: 98.75 kB / 3.456 GB, free: 30.37 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001168/8.779, allocations: 0.6421 MB / 3.457 GB, free: 29.85 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006659/8.779, allocations: 57.7 kB / 3.457 GB, free: 29.84 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.567e-05/8.779, allocations: 24.5 kB / 3.457 GB, free: 29.84 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.119e-05/8.779, allocations: 3.094 kB / 3.457 GB, free: 29.84 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00146/8.781, allocations: 376.4 kB / 3.457 GB, free: 29.83 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.241e-06/8.781, allocations: 4.062 kB / 3.457 GB, free: 29.83 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.36e-05/8.781, allocations: 7.531 kB / 3.457 GB, free: 29.83 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004736/8.781, allocations: 109 kB / 3.457 GB, free: 29.83 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.093e-05/8.781, allocations: 9.562 kB / 3.457 GB, free: 29.83 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004182/8.782, allocations: 56.53 kB / 3.458 GB, free: 29.82 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.543e-05/8.782, allocations: 20.91 kB / 3.458 GB, free: 29.82 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.0001986/8.782, allocations: 124.1 kB / 3.458 GB, free: 29.71 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001305/8.782, allocations: 40.84 kB / 3.458 GB, free: 29.69 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002702/8.785, allocations: 1.565 MB / 3.459 GB, free: 29.52 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.443e-05/8.785, allocations: 21.92 kB / 3.459 GB, free: 29.52 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.122e-06/8.785, allocations: 0 / 3.459 GB, free: 29.52 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.937e-06/8.785, allocations: 3.797 kB / 3.459 GB, free: 29.52 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003436/8.789, allocations: 2.162 MB / 3.461 GB, free: 29.14 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.213e-06/8.789, allocations: 5.688 kB / 3.461 GB, free: 29.13 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003203/8.789, allocations: 53.23 kB / 3.461 GB, free: 29.13 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007748/8.79, allocations: 0.6015 MB / 3.462 GB, free: 29.09 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.102e-05/8.79, allocations: 3.906 kB / 3.462 GB, free: 29.09 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001373/8.791, allocations: 1.092 MB / 3.463 GB, free: 28.56 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.704e-06/8.791, allocations: 2.438 kB / 3.463 GB, free: 28.56 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002245/8.794, allocations: 1.202 MB / 3.464 GB, free: 28.27 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003118/8.794, allocations: 191 kB / 3.464 GB, free: 28.14 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.212e-05/8.794, allocations: 3.219 kB / 3.464 GB, free: 28.14 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003859/8.794, allocations: 26.69 kB / 3.464 GB, free: 28.13 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.988e-05/8.794, allocations: 29.5 kB / 3.465 GB, free: 28.13 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.278e-05/8.795, allocations: 12.94 kB / 3.465 GB, free: 28.13 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0003198/8.795, allocations: 229.2 kB / 3.465 GB, free: 28.04 MB / 0.5105 GB Notification: Performance of sort global known variables: time 8.43e-07/8.795, allocations: 0 / 3.465 GB, free: 28.04 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.004859/8.8, allocations: 1.155 MB / 3.466 GB, free: 28.03 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.008342/8.808, allocations: 1.712 MB / 3.468 GB, free: 27.84 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.001323/8.809, allocations: 0.6228 MB / 3.468 GB, free: 27.83 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 4.638e-06/8.81, allocations: 0 / 3.468 GB, free: 27.83 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0005651/8.81, allocations: 396.3 kB / 3.469 GB, free: 27.82 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001282/8.811, allocations: 181.6 kB / 3.469 GB, free: 27.8 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001854/8.813, allocations: 1.006 MB / 3.47 GB, free: 27.49 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000632/8.814, allocations: 0.9485 MB / 3.471 GB, free: 26.79 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001666/8.814, allocations: 45.31 kB / 3.471 GB, free: 26.78 MB / 0.5105 GB Notification: Performance of SimCode: time 1.719e-06/8.814, allocations: 0 / 3.471 GB, free: 26.78 MB / 0.5105 GB Notification: Performance of Templates: time 0.04931/8.863, allocations: 31.16 MB / 3.501 GB, free: 15.98 MB / 0.5105 GB