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.TestWaterPumpNPSH.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.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.1_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSH") Notification: Performance of loadModel(ModelicaTest): time 1.808/1.808, allocations: 209.3 MB / 222.4 MB, free: 7.73 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.039e-05/3.053e-05, allocations: 4 kB / 277.8 MB, free: 15.3 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.137/0.1371, allocations: 48.71 MB / 326.6 MB, free: 14.5 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.077/6.214, allocations: 2.507 GB / 2.826 GB, free: 123.3 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002327/6.214, allocations: 83.45 kB / 2.826 GB, free: 123.2 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.694/7.909, allocations: 426.3 MB / 3.242 GB, free: 39.91 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.984e-06/7.909, allocations: 4 kB / 3.242 GB, free: 39.9 MB / 442.7 MB Notification: Performance of Transformations before backend: time 5.881e-05/7.909, allocations: 12 kB / 3.242 GB, free: 39.89 MB / 442.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.005757/7.915, allocations: 1.718 MB / 3.244 GB, free: 38.13 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.258e-05/7.915, allocations: 12.03 kB / 3.244 GB, free: 38.12 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003489/7.918, allocations: 334.5 kB / 3.244 GB, free: 37.8 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001424/7.92, allocations: 0.5831 MB / 3.245 GB, free: 37.18 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.756e-05/7.92, allocations: 49.31 kB / 3.245 GB, free: 37.13 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001195/7.92, allocations: 56 kB / 3.245 GB, free: 37.08 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002657/7.923, allocations: 0.9901 MB / 3.246 GB, free: 36.03 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.433e-05/7.923, allocations: 8 kB / 3.246 GB, free: 36.02 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.756e-05/7.923, allocations: 28 kB / 3.246 GB, free: 35.99 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.783e-05/7.923, allocations: 25.25 kB / 3.246 GB, free: 35.97 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002461/7.925, allocations: 0.813 MB / 3.247 GB, free: 35.16 MB / 442.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.005587/7.931, allocations: 4.829 MB / 3.252 GB, free: 29.92 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002269/7.933, allocations: 0.6966 MB / 3.252 GB, free: 29.22 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004151/7.934, allocations: 217.6 kB / 3.252 GB, free: 29 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04186/7.976, allocations: 21.66 MB / 3.274 GB, free: 4.66 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.902e-05/7.976, allocations: 46.92 kB / 3.274 GB, free: 4.605 MB / 442.7 MB Notification: Performance of pre-optimization done (n=46): time 3.653e-06/7.976, allocations: 0 / 3.274 GB, free: 4.605 MB / 442.7 MB Notification: Performance of matching and sorting (n=63): time 0.02611/8.002, allocations: 3.783 MB / 3.277 GB, free: 0.7578 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.034e-05/8.002, allocations: 119.3 kB / 3.277 GB, free: 0.6172 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006552/8.002, allocations: 428.6 kB / 3.278 GB, free: 192 kB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001017/8.003, allocations: 37.7 kB / 3.278 GB, free: 148 kB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002935/8.003, allocations: 390.9 kB / 3.278 GB, free: 15.77 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00027/8.003, allocations: 218 kB / 3.278 GB, free: 15.55 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.167e-05/8.003, allocations: 16 kB / 3.278 GB, free: 15.54 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001883/8.003, allocations: 338.8 kB / 3.279 GB, free: 15.2 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007347/8.004, allocations: 281.5 kB / 3.279 GB, free: 14.93 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009154/8.005, allocations: 494 kB / 3.28 GB, free: 14.35 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009186/8.006, allocations: 339.1 kB / 3.28 GB, free: 14.02 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.446e-06/8.006, allocations: 0 / 3.28 GB, free: 14.02 MB / 458.7 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.002804/8.009, allocations: 1.008 MB / 3.281 GB, free: 13 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001371/8.01, allocations: 2.44 MB / 3.283 GB, free: 10.37 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.944e-05/8.01, allocations: 8 kB / 3.283 GB, free: 10.36 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00516/8.016, allocations: 0.8084 MB / 3.284 GB, free: 9.547 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000898/8.016, allocations: 167.8 kB / 3.284 GB, free: 9.383 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00272/8.019, allocations: 1.607 MB / 3.286 GB, free: 7.727 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001227/8.02, allocations: 111.8 kB / 3.286 GB, free: 7.617 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001347/8.021, allocations: 47.97 kB / 3.286 GB, free: 7.57 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.777e-05/8.021, allocations: 4 kB / 3.286 GB, free: 7.566 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002956/8.024, allocations: 0.9816 MB / 3.287 GB, free: 6.582 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.838e-05/8.024, allocations: 8 kB / 3.287 GB, free: 6.574 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002637/8.026, allocations: 0.5171 MB / 3.287 GB, free: 6.055 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008675/8.027, allocations: 175.8 kB / 3.288 GB, free: 5.883 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002454/8.03, allocations: 1.542 MB / 3.289 GB, free: 4.289 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009976/8.031, allocations: 103.8 kB / 3.289 GB, free: 4.188 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001215/8.031, allocations: 43.98 kB / 3.289 GB, free: 4.145 MB / 458.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 () * 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.0003138/8.031, allocations: 149.8 kB / 3.289 GB, free: 3.992 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002217/8.031, allocations: 75.14 kB / 3.289 GB, free: 3.918 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2765/8.308, allocations: 3.957 MB / 3.293 GB, free: 63.26 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.022e-05/8.308, allocations: 46.25 kB / 3.293 GB, free: 63.26 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.018e-05/8.308, allocations: 0 / 3.293 GB, free: 63.26 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.465e-05/8.308, allocations: 4.5 kB / 3.293 GB, free: 63.26 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008547/8.317, allocations: 5.144 MB / 3.298 GB, free: 62.84 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-05/8.317, allocations: 2.25 kB / 3.298 GB, free: 62.84 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000674/8.317, allocations: 120.4 kB / 3.298 GB, free: 62.84 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006072/8.323, allocations: 1.74 MB / 3.3 GB, free: 62.77 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001407/8.324, allocations: 24.22 kB / 3.3 GB, free: 62.77 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003195/8.327, allocations: 2.364 MB / 3.303 GB, free: 61.72 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.056e-06/8.327, allocations: 0.6875 kB / 3.303 GB, free: 61.72 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004518/8.331, allocations: 2.509 MB / 3.305 GB, free: 61.43 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007035/8.332, allocations: 344.2 kB / 3.305 GB, free: 61.28 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001566/8.332, allocations: 19.5 kB / 3.305 GB, free: 61.28 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008902/8.333, allocations: 102.1 kB / 3.305 GB, free: 61.27 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001783/8.333, allocations: 63.61 kB / 3.305 GB, free: 61.27 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.304e-05/8.334, allocations: 32.88 kB / 3.305 GB, free: 61.27 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0006956/8.334, allocations: 421 kB / 3.306 GB, free: 61.17 MB / 458.7 MB Notification: Performance of sort global known variables: time 8.27e-07/8.334, allocations: 0 / 3.306 GB, free: 61.17 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006441/8.341, allocations: 1.561 MB / 3.307 GB, free: 61.17 MB / 458.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 () * 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.009676/8.35, allocations: 1.826 MB / 3.309 GB, free: 61.07 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.00445/8.355, allocations: 1.747 MB / 3.311 GB, free: 61.03 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.334e-06/8.355, allocations: 0 / 3.311 GB, free: 61.03 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001901/8.357, allocations: 1.035 MB / 3.312 GB, free: 61.01 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002198/8.359, allocations: 303 kB / 3.312 GB, free: 61 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1946/8.554, allocations: 75.97 MB / 3.386 GB, free: 58.78 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006713/8.555, allocations: 1.182 MB / 3.388 GB, free: 58.06 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003347/8.555, allocations: 70.08 kB / 3.388 GB, free: 58.05 MB / 458.7 MB Notification: Performance of SimCode: time 1.751e-06/8.555, allocations: 0 / 3.388 GB, free: 58.05 MB / 458.7 MB Notification: Performance of Templates: time 0.06714/8.622, allocations: 45.79 MB / 3.432 GB, free: 31.24 MB / 458.7 MB