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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.929/1.929, allocations: 209.4 MB / 217.3 MB, free: 4.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.592e-05/1.605e-05, allocations: 4 kB / 271.3 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2672/0.2672, allocations: 48.68 MB / 320 MB, free: 14.4 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.027/6.295, allocations: 2.506 GB / 2.819 GB, free: 82.1 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002595/6.295, allocations: 82.19 kB / 2.819 GB, free: 82.1 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.758/8.053, allocations: 422.3 MB / 3.231 GB, free: 50.93 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.083e-06/8.053, allocations: 0 / 3.231 GB, free: 50.93 MB / 442.7 MB Notification: Performance of Transformations before backend: time 5.667e-05/8.053, allocations: 13.52 kB / 3.231 GB, free: 50.93 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.005515/8.059, allocations: 1.718 MB / 3.233 GB, free: 50.09 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.855e-05/8.059, allocations: 10.75 kB / 3.233 GB, free: 50.09 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003389/8.062, allocations: 341.8 kB / 3.233 GB, free: 50.04 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001296/8.064, allocations: 0.5777 MB / 3.234 GB, free: 49.78 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.267e-05/8.064, allocations: 27.19 kB / 3.234 GB, free: 49.78 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001007/8.064, allocations: 33.89 kB / 3.234 GB, free: 49.78 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001298/8.065, allocations: 0.5518 MB / 3.235 GB, free: 49.78 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001265/8.066, allocations: 0.6666 MB / 3.235 GB, free: 49.58 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.523e-05/8.066, allocations: 8.109 kB / 3.235 GB, free: 49.57 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.547e-05/8.067, allocations: 3.594 kB / 3.235 GB, free: 49.57 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.227e-05/8.067, allocations: 22.72 kB / 3.235 GB, free: 49.57 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.08781/8.154, allocations: 36.71 MB / 3.271 GB, free: 30.24 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008321/8.155, allocations: 362.8 kB / 3.271 GB, free: 30.21 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003589/8.156, allocations: 194.7 kB / 3.272 GB, free: 30.2 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04264/8.198, allocations: 20.26 MB / 3.291 GB, free: 32.68 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.933e-05/8.198, allocations: 40.47 kB / 3.291 GB, free: 32.64 MB / 458.7 MB Notification: Performance of pre-optimization done (n=42): time 4.774e-06/8.198, allocations: 2.906 kB / 3.291 GB, free: 32.64 MB / 458.7 MB Notification: Performance of matching and sorting (n=58): time 0.02583/8.224, allocations: 3.305 MB / 3.295 GB, free: 31.54 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.35e-05/8.224, allocations: 111.4 kB / 3.295 GB, free: 31.4 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005897/8.225, allocations: 402.6 kB / 3.295 GB, free: 31.12 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 8.631e-05/8.225, allocations: 25.7 kB / 3.295 GB, free: 31.09 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000241/8.225, allocations: 405.1 kB / 3.296 GB, free: 30.75 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001606/8.226, allocations: 189.4 kB / 3.296 GB, free: 30.58 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.92e-05/8.226, allocations: 0 / 3.296 GB, free: 30.58 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001768/8.226, allocations: 341.8 kB / 3.296 GB, free: 30.25 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005408/8.226, allocations: 271.8 kB / 3.296 GB, free: 29.99 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006563/8.227, allocations: 492.4 kB / 3.297 GB, free: 29.45 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00259/8.23, allocations: 476.6 kB / 3.297 GB, free: 29.05 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.149e-06/8.23, allocations: 4 kB / 3.297 GB, free: 29.05 MB / 458.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.004031/8.234, allocations: 1.107 MB / 3.298 GB, free: 28.09 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001201/8.235, allocations: 2.445 MB / 3.301 GB, free: 25.46 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.485e-05/8.235, allocations: 4 kB / 3.301 GB, free: 25.45 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002941/8.238, allocations: 0.5714 MB / 3.301 GB, free: 25.01 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007252/8.239, allocations: 163.8 kB / 3.301 GB, free: 24.89 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003159/8.242, allocations: 1.748 MB / 3.303 GB, free: 23.18 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001259/8.243, allocations: 107 kB / 3.303 GB, free: 23.1 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001246/8.243, allocations: 47.66 kB / 3.303 GB, free: 23.05 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.284e-05/8.243, allocations: 4 kB / 3.303 GB, free: 23.05 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004239/8.248, allocations: 0.96 MB / 3.304 GB, free: 22.27 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.423e-05/8.248, allocations: 16.05 kB / 3.304 GB, free: 22.25 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00156/8.249, allocations: 331.7 kB / 3.305 GB, free: 22 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007106/8.25, allocations: 170.6 kB / 3.305 GB, free: 21.86 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001977/8.252, allocations: 1.454 MB / 3.306 GB, free: 20.41 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008426/8.253, allocations: 105.3 kB / 3.306 GB, free: 20.33 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.827e-05/8.253, allocations: 35.66 kB / 3.306 GB, free: 20.3 MB / 458.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.pump.medium.p:DUMMY_DER(fixed = false ) "Absolute pressure of medium" type: Real $DER.pump.medium.h:DUMMY_DER(fixed = false ) "Specific enthalpy of medium" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 6 (Sink.medium.phase,pump.heatTransfer.states[1].phase,Source.medium.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 (68): * Single equations (assignments): 66 * 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.0003459/8.253, allocations: 132.6 kB / 3.306 GB, free: 20.16 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001926/8.253, allocations: 63.25 kB / 3.306 GB, free: 20.1 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005903/8.259, allocations: 3.367 MB / 3.31 GB, free: 17.14 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.062e-05/8.259, allocations: 37.88 kB / 3.31 GB, free: 17.11 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.115e-06/8.259, allocations: 0 / 3.31 GB, free: 17.11 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.302e-05/8.259, allocations: 3.562 kB / 3.31 GB, free: 17.11 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006779/8.266, allocations: 4.286 MB / 3.314 GB, free: 13.33 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.268e-06/8.266, allocations: 4.062 kB / 3.314 GB, free: 13.33 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004229/8.267, allocations: 93.23 kB / 3.314 GB, free: 13.25 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003149/8.27, allocations: 1.545 MB / 3.316 GB, free: 11.97 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.265e-05/8.27, allocations: 10.67 kB / 3.316 GB, free: 11.96 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003558/8.274, allocations: 2.616 MB / 3.318 GB, free: 9.453 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.643e-06/8.274, allocations: 4.031 kB / 3.318 GB, free: 9.449 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004046/8.278, allocations: 2.341 MB / 3.32 GB, free: 7.277 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005648/8.278, allocations: 304.2 kB / 3.321 GB, free: 6.996 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001377/8.278, allocations: 3.953 kB / 3.321 GB, free: 6.992 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009389/8.279, allocations: 85.98 kB / 3.321 GB, free: 6.93 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001354/8.28, allocations: 65.84 kB / 3.321 GB, free: 6.891 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.038e-05/8.28, allocations: 27.66 kB / 3.321 GB, free: 6.867 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0005382/8.28, allocations: 355.6 kB / 3.321 GB, free: 6.551 MB / 458.7 MB Notification: Performance of sort global known variables: time 8.68e-07/8.28, allocations: 0 / 3.321 GB, free: 6.551 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006064/8.286, allocations: 1.503 MB / 3.323 GB, free: 5.086 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 20 ($cse2.region3boundary,$cse3.region3boundary,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.region3boundary,$cse7.region3boundary,$cse8.phase,$cse8.region,$cse13.phase,$cse13.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,Sink.medium.phase,pump.heatTransfer.states[1].phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (44): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 7 * 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.009624/8.296, allocations: 1.905 MB / 3.325 GB, free: 3.531 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.004229/8.3, allocations: 1.549 MB / 3.326 GB, free: 2.094 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.672e-06/8.3, allocations: 0 / 3.326 GB, free: 2.094 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001754/8.302, allocations: 0.9176 MB / 3.327 GB, free: 1.238 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001812/8.304, allocations: 262.2 kB / 3.327 GB, free: 1.059 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2656/8.57, allocations: 1.795 MB / 3.329 GB, free: 64.59 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008275/8.57, allocations: 1.122 MB / 3.33 GB, free: 63.89 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003238/8.571, allocations: 71.08 kB / 3.33 GB, free: 63.89 MB / 458.7 MB Notification: Performance of SimCode: time 1.865e-06/8.571, allocations: 4.125 kB / 3.33 GB, free: 63.89 MB / 458.7 MB Notification: Performance of Templates: time 0.06719/8.638, allocations: 44.83 MB / 3.374 GB, free: 61.6 MB / 458.7 MB