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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/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.427/2.427, allocations: 234.9 MB / 251.1 MB, free: 9.57 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004279/0.0004281, allocations: 16 kB / 315 MB, free: 9.609 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4499/0.4504, allocations: 54.86 MB / 369.8 MB, free: 10.74 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.165/8.615, allocations: 2.596 GB / 2.957 GB, free: 104 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002983/8.615, allocations: 94.02 kB / 2.957 GB, free: 103.9 MB / 490.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/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.042/10.66, allocations: 400.3 MB / 3.348 GB, free: 63.59 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.554e-06/10.66, allocations: 0 / 3.348 GB, free: 63.59 MB / 490.7 MB Notification: Performance of Transformations before backend: time 4.937e-05/10.66, allocations: 14.83 kB / 3.348 GB, free: 63.59 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.007396/10.66, allocations: 1.595 MB / 3.35 GB, free: 62.71 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.359e-05/10.66, allocations: 7 kB / 3.35 GB, free: 62.71 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003472/10.67, allocations: 299.5 kB / 3.35 GB, free: 62.66 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00163/10.67, allocations: 471.7 kB / 3.351 GB, free: 62.34 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.652e-05/10.67, allocations: 43.17 kB / 3.351 GB, free: 62.31 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.228e-05/10.67, allocations: 36.31 kB / 3.351 GB, free: 62.3 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002701/10.67, allocations: 0.6825 MB / 3.351 GB, free: 62 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.07e-05/10.67, allocations: 7.906 kB / 3.351 GB, free: 61.99 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.992e-05/10.67, allocations: 23.36 kB / 3.351 GB, free: 61.98 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.442e-05/10.67, allocations: 11.81 kB / 3.351 GB, free: 61.98 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002695/10.68, allocations: 0.6034 MB / 3.352 GB, free: 61.83 MB / 490.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.004769/10.68, allocations: 2.861 MB / 3.355 GB, free: 59.52 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002091/10.68, allocations: 456.2 kB / 3.355 GB, free: 59.39 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.7288/11.41, allocations: 95.8 MB / 3.449 GB, free: 80.58 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.088e-05/11.41, allocations: 39.72 kB / 3.449 GB, free: 80.54 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=30): time 3.377e-06/11.41, allocations: 0 / 3.449 GB, free: 80.54 MB / 0.4948 GB Notification: Performance of matching and sorting (n=30): time 0.004827/11.42, allocations: 0.9143 MB / 3.45 GB, free: 80.4 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.464e-05/11.42, allocations: 111.2 kB / 3.45 GB, free: 80.27 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005712/11.42, allocations: 351.2 kB / 3.45 GB, free: 80.16 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 5.77e-05/11.42, allocations: 31.02 kB / 3.45 GB, free: 80.13 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001767/11.42, allocations: 314.1 kB / 3.45 GB, free: 79.95 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001131/11.42, allocations: 102.8 kB / 3.451 GB, free: 79.89 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.045e-05/11.42, allocations: 8.062 kB / 3.451 GB, free: 79.89 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 7.187e-05/11.42, allocations: 325.4 kB / 3.451 GB, free: 79.58 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005712/11.42, allocations: 133.3 kB / 3.451 GB, free: 79.58 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006505/11.42, allocations: 292 kB / 3.451 GB, free: 79.41 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006378/11.42, allocations: 163.2 kB / 3.451 GB, free: 79.41 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.944e-06/11.42, allocations: 5.5 kB / 3.451 GB, free: 79.41 MB / 0.4948 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001715/11.42, allocations: 486.5 kB / 3.452 GB, free: 79.36 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001193/11.42, allocations: 221.2 kB / 3.452 GB, free: 79.12 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.621e-05/11.42, allocations: 9.516 kB / 3.452 GB, free: 79.12 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003084/11.42, allocations: 213.2 kB / 3.452 GB, free: 79.11 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007194/11.43, allocations: 100.7 kB / 3.452 GB, free: 79.11 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006392/11.43, allocations: 0.6035 MB / 3.453 GB, free: 78.59 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000726/11.43, allocations: 57.31 kB / 3.453 GB, free: 78.58 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.2e-05/11.43, allocations: 29.06 kB / 3.453 GB, free: 78.58 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.378e-05/11.43, allocations: 2.75 kB / 3.453 GB, free: 78.58 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001411/11.43, allocations: 419.8 kB / 3.454 GB, free: 78.58 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.914e-06/11.43, allocations: 3.875 kB / 3.454 GB, free: 78.58 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.331e-05/11.43, allocations: 7.75 kB / 3.454 GB, free: 78.58 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007173/11.43, allocations: 109.1 kB / 3.454 GB, free: 78.58 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.562e-05/11.43, allocations: 14.45 kB / 3.454 GB, free: 78.57 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005042/11.43, allocations: 47.73 kB / 3.454 GB, free: 78.57 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.245e-05/11.43, allocations: 26.22 kB / 3.454 GB, free: 78.57 MB / 0.4948 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 (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 (45): * Single equations (assignments): 44 * 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 4} Notification: Performance of prepare postOptimizeDAE: time 0.0004457/11.43, allocations: 250.4 kB / 3.454 GB, free: 78.38 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001504/11.43, allocations: 44.41 kB / 3.454 GB, free: 78.36 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003613/11.43, allocations: 1.996 MB / 3.456 GB, free: 78.16 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.044e-05/11.43, allocations: 27.8 kB / 3.456 GB, free: 78.16 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.716e-06/11.43, allocations: 2.969 kB / 3.456 GB, free: 78.16 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.327e-06/11.43, allocations: 0 / 3.456 GB, free: 78.16 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001638/11.44, allocations: 0.988 MB / 3.457 GB, free: 77.94 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.033e-06/11.44, allocations: 0 / 3.457 GB, free: 77.94 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005288/11.44, allocations: 69.12 kB / 3.457 GB, free: 77.94 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002073/11.44, allocations: 0.5826 MB / 3.458 GB, free: 77.9 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.221e-05/11.44, allocations: 17.27 kB / 3.458 GB, free: 77.9 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001031/11.44, allocations: 1.009 MB / 3.459 GB, free: 77.37 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.168e-06/11.44, allocations: 0.7031 kB / 3.459 GB, free: 77.37 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002354/11.44, allocations: 1.301 MB / 3.46 GB, free: 77.11 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000407/11.44, allocations: 243.2 kB / 3.46 GB, free: 76.97 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001088/11.44, allocations: 13.52 kB / 3.46 GB, free: 76.97 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005029/11.44, allocations: 37.62 kB / 3.46 GB, free: 76.97 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.983e-05/11.44, allocations: 27.95 kB / 3.46 GB, free: 76.97 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.573e-05/11.44, allocations: 17.8 kB / 3.46 GB, free: 76.97 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0005024/11.44, allocations: 300.5 kB / 3.46 GB, free: 76.88 MB / 0.4948 GB Notification: Performance of sort global known variables: time 4.81e-07/11.44, allocations: 0 / 3.46 GB, free: 76.88 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.005837/11.45, allocations: 1.208 MB / 3.462 GB, free: 76.84 MB / 0.4948 GB 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 (33): * Single equations (assignments): 26 * 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 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.01034/11.46, allocations: 1.596 MB / 3.463 GB, free: 76.66 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.00256/11.46, allocations: 0.7892 MB / 3.464 GB, free: 76.65 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 5.36e-06/11.46, allocations: 1.312 kB / 3.464 GB, free: 76.65 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.001017/11.46, allocations: 486.9 kB / 3.464 GB, free: 76.65 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00186/11.47, allocations: 215.3 kB / 3.465 GB, free: 76.65 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4488/11.91, allocations: 152.9 MB / 3.614 GB, free: 22.58 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000483/11.91, allocations: 0.9969 MB / 3.615 GB, free: 21.66 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002185/11.92, allocations: 47.44 kB / 3.615 GB, free: 21.62 MB / 0.4948 GB Notification: Performance of SimCode: time 1.062e-06/11.92, allocations: 0 / 3.615 GB, free: 21.62 MB / 0.4948 GB Notification: Performance of Templates: time 0.4526/12.37, allocations: 31.8 MB / 3.646 GB, free: 72.02 MB / 0.4948 GB