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.Machines.TestWaterPumpNPSH.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSH,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|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|valveOpening.y|Valve.port_b.m_flow|Valve.port_b.p|Valve.port_b.h_outflow|Valve.minLimiter.y|downstreamPressure.y",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSH") Notification: Performance of loadModel(ModelicaTest): time 2.111/2.111, allocations: 234.9 MB / 250.5 MB, free: 9.535 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004326/0.0004328, allocations: 12 kB / 314.4 MB, free: 9.535 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2729/0.2733, allocations: 54.86 MB / 369.3 MB, free: 10.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.136/6.409, allocations: 2.618 GB / 2.978 GB, free: 156.4 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002483/6.409, allocations: 93.19 kB / 2.978 GB, free: 156.4 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.723/8.132, allocations: 438.5 MB / 3.407 GB, free: 60.47 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.062e-06/8.132, allocations: 0 / 3.407 GB, free: 60.47 MB / 490.7 MB Notification: Performance of Transformations before backend: time 5.416e-05/8.132, allocations: 15.78 kB / 3.407 GB, free: 60.47 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: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.006051/8.138, allocations: 1.846 MB / 3.408 GB, free: 59.55 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.787e-05/8.138, allocations: 11.38 kB / 3.408 GB, free: 59.55 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003422/8.142, allocations: 349.6 kB / 3.409 GB, free: 59.51 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001382/8.143, allocations: 0.5848 MB / 3.409 GB, free: 59.25 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.6e-05/8.143, allocations: 54.42 kB / 3.409 GB, free: 59.24 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001061/8.143, allocations: 53.88 kB / 3.409 GB, free: 59.24 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00293/8.146, allocations: 1.012 MB / 3.41 GB, free: 59.04 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.627e-05/8.146, allocations: 1.312 kB / 3.41 GB, free: 59.04 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.69e-05/8.146, allocations: 28.75 kB / 3.41 GB, free: 59.04 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.579e-05/8.146, allocations: 19.38 kB / 3.41 GB, free: 59.04 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003238/8.15, allocations: 0.9151 MB / 3.411 GB, free: 59.04 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.00546/8.155, allocations: 4.833 MB / 3.416 GB, free: 55.41 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002743/8.158, allocations: 0.7525 MB / 3.417 GB, free: 55.22 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04434/8.202, allocations: 21.64 MB / 3.438 GB, free: 40.86 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.032e-05/8.202, allocations: 38.31 kB / 3.438 GB, free: 40.81 MB / 490.7 MB Notification: Performance of pre-optimization done (n=46): time 3.829e-06/8.202, allocations: 4 kB / 3.438 GB, free: 40.81 MB / 490.7 MB Notification: Performance of matching and sorting (n=63): time 0.02973/8.232, allocations: 4.371 MB / 3.442 GB, free: 39.48 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.3e-05/8.232, allocations: 111 kB / 3.442 GB, free: 39.35 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006884/8.233, allocations: 436.1 kB / 3.443 GB, free: 39.14 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 8.364e-05/8.233, allocations: 36.77 kB / 3.443 GB, free: 39.1 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001772/8.233, allocations: 386.4 kB / 3.443 GB, free: 38.77 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001733/8.233, allocations: 217.8 kB / 3.443 GB, free: 38.61 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.215e-05/8.233, allocations: 12 kB / 3.443 GB, free: 38.6 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 7.46e-05/8.233, allocations: 337.2 kB / 3.444 GB, free: 38.27 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001213/8.235, allocations: 391.9 kB / 3.444 GB, free: 38.15 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001294/8.236, allocations: 0.5805 MB / 3.445 GB, free: 37.76 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001376/8.237, allocations: 443.2 kB / 3.445 GB, free: 37.59 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.306e-06/8.237, allocations: 0 / 3.445 GB, free: 37.59 MB / 490.7 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.003584/8.241, allocations: 1.233 MB / 3.446 GB, free: 37.12 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004827/8.241, allocations: 2.442 MB / 3.449 GB, free: 34.52 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.519e-05/8.241, allocations: 10.83 kB / 3.449 GB, free: 34.51 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005245/8.247, allocations: 0.901 MB / 3.45 GB, free: 34.35 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008308/8.248, allocations: 169.5 kB / 3.45 GB, free: 34.33 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002855/8.25, allocations: 1.686 MB / 3.451 GB, free: 33.04 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001234/8.252, allocations: 109.1 kB / 3.451 GB, free: 33.02 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001212/8.252, allocations: 45.33 kB / 3.452 GB, free: 33.01 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.245e-05/8.252, allocations: 4.594 kB / 3.452 GB, free: 33.01 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003997/8.256, allocations: 1.215 MB / 3.453 GB, free: 32.57 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.144e-05/8.256, allocations: 4.406 kB / 3.453 GB, free: 32.57 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003229/8.259, allocations: 0.5933 MB / 3.453 GB, free: 32.43 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007337/8.26, allocations: 174.2 kB / 3.453 GB, free: 32.41 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002365/8.262, allocations: 1.631 MB / 3.455 GB, free: 31.14 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009029/8.263, allocations: 97.94 kB / 3.455 GB, free: 31.12 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001074/8.263, allocations: 45.77 kB / 3.455 GB, free: 31.12 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 6 (Source.medium.phase,Sink.medium.phase,pump.heatTransfer.states[1].phase,Valve.state_b.phase,Valve.state_a.phase,pump.monitoring.state_in.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (69): * Single equations (assignments): 67 * 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 {2 10,2 12} Notification: Performance of prepare postOptimizeDAE: time 0.0005517/8.264, allocations: 300.3 kB / 3.455 GB, free: 30.86 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000196/8.264, allocations: 62.59 kB / 3.456 GB, free: 30.83 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006561/8.271, allocations: 3.864 MB / 3.459 GB, free: 29.04 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.032e-05/8.271, allocations: 42.7 kB / 3.459 GB, free: 29.03 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.072e-06/8.271, allocations: 3.953 kB / 3.459 GB, free: 29.03 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.284e-05/8.271, allocations: 6.984 kB / 3.459 GB, free: 29.03 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008544/8.279, allocations: 5.19 MB / 3.464 GB, free: 26.56 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.324e-05/8.279, allocations: 0 / 3.464 GB, free: 26.56 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005398/8.28, allocations: 117.5 kB / 3.465 GB, free: 26.55 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006111/8.286, allocations: 1.636 MB / 3.466 GB, free: 25.27 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001229/8.286, allocations: 26.23 kB / 3.466 GB, free: 25.25 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00332/8.29, allocations: 2.362 MB / 3.468 GB, free: 23 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.154e-06/8.29, allocations: 4.031 kB / 3.468 GB, free: 23 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004566/8.294, allocations: 2.636 MB / 3.471 GB, free: 20.55 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006178/8.295, allocations: 347.9 kB / 3.471 GB, free: 20.24 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001513/8.295, allocations: 15.95 kB / 3.471 GB, free: 20.22 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001096/8.296, allocations: 99.38 kB / 3.471 GB, free: 20.15 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003157/8.297, allocations: 68.64 kB / 3.472 GB, free: 20.11 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001501/8.297, allocations: 31.08 kB / 3.472 GB, free: 20.08 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0006332/8.297, allocations: 434.9 kB / 3.472 GB, free: 19.72 MB / 490.7 MB Notification: Performance of sort global known variables: time 8.35e-07/8.297, allocations: 0 / 3.472 GB, free: 19.72 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.005611/8.303, allocations: 1.566 MB / 3.474 GB, free: 18.19 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 25 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse9.region3boundary,$cse10.region3boundary,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,Source.medium.phase,Sink.medium.phase,pump.heatTransfer.states[1].phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * 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 {2 9,2 18} Notification: Performance of Backend phase and start with SimCode phase: time 0.008514/8.312, allocations: 1.856 MB / 3.475 GB, free: 16.73 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.005137/8.317, allocations: 2.037 MB / 3.477 GB, free: 14.95 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 6.31e-06/8.317, allocations: 0 / 3.477 GB, free: 14.95 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001987/8.319, allocations: 1.123 MB / 3.478 GB, free: 13.93 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001755/8.321, allocations: 295.8 kB / 3.479 GB, free: 13.72 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4844/8.805, allocations: 78.75 MB / 3.556 GB, free: 65.16 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006482/8.806, allocations: 1.183 MB / 3.557 GB, free: 64.45 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002991/8.806, allocations: 72.19 kB / 3.557 GB, free: 64.45 MB / 0.4948 GB Notification: Performance of SimCode: time 1.512e-06/8.806, allocations: 0 / 3.557 GB, free: 64.45 MB / 0.4948 GB Notification: Performance of Templates: time 0.06739/8.873, allocations: 46.28 MB / 3.602 GB, free: 61.5 MB / 0.4948 GB