Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpRecirculation.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpRecirculation,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pump.medium.T|N_pump.y|Source.ports.1..m_flow|Source.ports.1..p|Source.ports.1..h_outflow|Sink.ports.1..m_flow|Sink.ports.1..p|Sink.ports.1..h_outflow|pump.port_b.m_flow|pump.port_b.p|pump.port_b.h_outflow|V1.port_b.m_flow|V1.port_b.p|V1.port_b.h_outflow|V1.minLimiter.y|V2.port_b.m_flow|V2.port_b.p|V2.port_b.h_outflow|V2.minLimiter.y|V1_Opening.y|V2_Opening.y",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpRecirculation") Notification: Performance of loadModel(ModelicaTest): time 1.777/1.777, allocations: 209.3 MB / 222.4 MB, free: 1.941 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.938e-05/2.951e-05, allocations: 4 kB / 277.8 MB, free: 12.37 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08413/0.08418, allocations: 48.71 MB / 326.6 MB, free: 11.57 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7992/0.8835, allocations: 309.5 MB / 0.6212 GB, free: 4.668 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002415/0.8838, allocations: 82.33 kB / 0.6213 GB, free: 4.625 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7685/1.652, allocations: 162.9 MB / 0.7804 GB, free: 29.83 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.33e-06/1.652, allocations: 0 / 0.7804 GB, free: 29.83 MB / 426.7 MB Notification: Performance of Transformations before backend: time 6.239e-05/1.652, allocations: 23.98 kB / 0.7804 GB, free: 29.81 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 131 * Number of variables: 131 Notification: Performance of Generate backend data structure: time 0.002568/1.655, allocations: 1.038 MB / 0.7814 GB, free: 28.73 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.093e-05/1.655, allocations: 11.97 kB / 0.7814 GB, free: 28.71 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005415/1.656, allocations: 102.9 kB / 0.7815 GB, free: 28.61 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001427/1.657, allocations: 0.6283 MB / 0.7821 GB, free: 27.95 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.618e-05/1.657, allocations: 37.31 kB / 0.7822 GB, free: 27.91 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001224/1.657, allocations: 48 kB / 0.7822 GB, free: 27.86 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00145/1.659, allocations: 0.7667 MB / 0.783 GB, free: 27.04 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.523e-05/1.659, allocations: 4 kB / 0.783 GB, free: 27.04 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001044/1.659, allocations: 24 kB / 0.783 GB, free: 27.02 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.77e-05/1.659, allocations: 21 kB / 0.783 GB, free: 27 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001335/1.66, allocations: 0.648 MB / 0.7836 GB, free: 26.35 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005197/1.665, allocations: 3.3 MB / 0.7869 GB, free: 22.87 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000937/1.666, allocations: 381.1 kB / 0.7872 GB, free: 22.49 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005391/1.667, allocations: 243 kB / 0.7875 GB, free: 22.25 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003407/1.667, allocations: 0.5739 MB / 0.788 GB, free: 21.55 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.404e-05/1.667, allocations: 46.45 kB / 0.7881 GB, free: 21.5 MB / 426.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008628/1.668, allocations: 123.4 kB / 0.7882 GB, free: 21.38 MB / 426.7 MB Notification: Performance of pre-optimization done (n=45): time 4.323e-06/1.668, allocations: 0 / 0.7882 GB, free: 21.38 MB / 426.7 MB Notification: Performance of matching and sorting (n=71): time 0.04/1.708, allocations: 6.021 MB / 0.7941 GB, free: 15.21 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.786e-05/1.708, allocations: 115.6 kB / 0.7942 GB, free: 15.07 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007596/1.709, allocations: 499.4 kB / 0.7946 GB, free: 14.58 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001621/1.709, allocations: 37.7 kB / 0.7947 GB, free: 14.54 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002022/1.71, allocations: 406 kB / 0.7951 GB, free: 14.14 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002274/1.71, allocations: 244.5 kB / 0.7953 GB, free: 13.9 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.706e-05/1.71, allocations: 24 kB / 0.7953 GB, free: 13.88 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 8.008e-05/1.71, allocations: 342.8 kB / 0.7957 GB, free: 13.53 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007438/1.711, allocations: 309.9 kB / 0.7959 GB, free: 13.23 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008504/1.712, allocations: 0.564 MB / 0.7965 GB, free: 12.55 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009543/1.713, allocations: 389.9 kB / 0.7969 GB, free: 12.18 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.427e-06/1.713, allocations: 0 / 0.7969 GB, free: 12.18 MB / 426.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002781/1.715, allocations: 1.122 MB / 0.798 GB, free: 11.04 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005897/1.716, allocations: 2.966 MB / 0.8009 GB, free: 7.84 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.613e-05/1.716, allocations: 11.98 kB / 0.8009 GB, free: 7.828 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008814/1.725, allocations: 1.18 MB / 0.802 GB, free: 6.641 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001388/1.726, allocations: 251.6 kB / 0.8023 GB, free: 6.395 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002508/1.729, allocations: 1.561 MB / 0.8038 GB, free: 4.785 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001618/1.731, allocations: 119.9 kB / 0.8039 GB, free: 4.668 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001716/1.731, allocations: 71.88 kB / 0.804 GB, free: 4.598 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.504e-05/1.731, allocations: 4 kB / 0.804 GB, free: 4.594 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002937/1.734, allocations: 1.062 MB / 0.805 GB, free: 3.523 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.644e-05/1.734, allocations: 11.95 kB / 0.805 GB, free: 3.512 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001773/1.736, allocations: 345.9 kB / 0.8054 GB, free: 3.168 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001488/1.737, allocations: 275.6 kB / 0.8056 GB, free: 2.898 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003537/1.741, allocations: 2.594 MB / 0.8082 GB, free: 148 kB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001322/1.742, allocations: 116 kB / 0.8083 GB, free: 32 kB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.2399/1.982, allocations: 54.22 kB / 0.8083 GB, free: 79.41 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (79): * Single equations (assignments): 77 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 10,3 16} Notification: Performance of prepare postOptimizeDAE: time 0.0003862/1.982, allocations: 156.2 kB / 0.8085 GB, free: 79.3 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002776/1.983, allocations: 79.7 kB / 0.8085 GB, free: 79.3 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004735/1.987, allocations: 1.47 MB / 0.81 GB, free: 79.23 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.48e-05/1.988, allocations: 10.7 kB / 0.81 GB, free: 79.23 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.035e-06/1.988, allocations: 2.203 kB / 0.81 GB, free: 79.23 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.074e-05/1.988, allocations: 5.781 kB / 0.81 GB, free: 79.23 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007835/1.995, allocations: 2.443 MB / 0.8124 GB, free: 78.89 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.905e-06/1.995, allocations: 2.156 kB / 0.8124 GB, free: 78.89 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001247/1.997, allocations: 186.2 kB / 0.8126 GB, free: 78.89 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008293/2.005, allocations: 1.131 MB / 0.8137 GB, free: 78.87 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000198/2.005, allocations: 29.03 kB / 0.8137 GB, free: 78.87 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001827/2.007, allocations: 1.492 MB / 0.8151 GB, free: 77.82 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.023e-06/2.007, allocations: 0 / 0.8151 GB, free: 77.82 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004975/2.012, allocations: 1.688 MB / 0.8168 GB, free: 77.63 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000655/2.013, allocations: 252.6 kB / 0.817 GB, free: 77.5 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001708/2.013, allocations: 21.41 kB / 0.8171 GB, free: 77.5 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001107/2.014, allocations: 109.9 kB / 0.8172 GB, free: 77.5 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001991/2.014, allocations: 65.61 kB / 0.8172 GB, free: 77.5 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001286/2.015, allocations: 40.81 kB / 0.8173 GB, free: 77.5 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0006607/2.015, allocations: 378.4 kB / 0.8176 GB, free: 77.4 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.12e-07/2.015, allocations: 0 / 0.8176 GB, free: 77.4 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00285/2.018, allocations: 0.6703 MB / 0.8183 GB, free: 77.4 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (pump.medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (64): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 6,3 25} Notification: Performance of Backend phase and start with SimCode phase: time 0.001746/2.02, allocations: 0.5795 MB / 0.8188 GB, free: 77.3 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004866/2.025, allocations: 1.61 MB / 0.8204 GB, free: 77.16 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.556e-06/2.025, allocations: 1.984 kB / 0.8204 GB, free: 77.16 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00137/2.026, allocations: 0.5023 MB / 0.8209 GB, free: 77.14 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002154/2.028, allocations: 304.7 kB / 0.8212 GB, free: 77.13 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003357/2.032, allocations: 1.276 MB / 0.8224 GB, free: 76.8 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006237/2.032, allocations: 0.9916 MB / 0.8234 GB, free: 76.1 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005665/2.033, allocations: 100.7 kB / 0.8235 GB, free: 76.09 MB / 426.7 MB Notification: Performance of SimCode: time 1.867e-06/2.033, allocations: 0 / 0.8235 GB, free: 76.09 MB / 426.7 MB Notification: Performance of Templates: time 0.03726/2.07, allocations: 23.42 MB / 0.8464 GB, free: 75.29 MB / 426.7 MB