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.TestWaterPumpDefault.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.TestWaterPumpDefault,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.TestWaterPumpDefault") Notification: Performance of loadModel(ModelicaTest): time 1.912/1.912, allocations: 209.3 MB / 224.8 MB, free: 1.219 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007545/0.0007549, allocations: 8 kB / 282.6 MB, free: 9.727 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1314/0.1322, allocations: 48.72 MB / 331.3 MB, free: 8.918 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.384/6.516, allocations: 2.502 GB / 2.826 GB, free: 30.84 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002494/6.517, allocations: 83.64 kB / 2.826 GB, free: 30.79 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.927/8.444, allocations: 426.6 MB / 3.242 GB, free: 48.56 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.616e-06/8.444, allocations: 0 / 3.242 GB, free: 48.56 MB / 442.7 MB Notification: Performance of Transformations before backend: time 9.114e-05/8.444, allocations: 17.48 kB / 3.242 GB, free: 48.56 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: 142 * Number of variables: 142 Notification: Performance of Generate backend data structure: time 0.01009/8.454, allocations: 1.776 MB / 3.244 GB, free: 47.73 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.476e-05/8.454, allocations: 14.31 kB / 3.244 GB, free: 47.73 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006707/8.461, allocations: 315.8 kB / 3.244 GB, free: 47.7 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00249/8.463, allocations: 0.5793 MB / 3.245 GB, free: 47.43 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001178/8.464, allocations: 50.97 kB / 3.245 GB, free: 47.43 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001944/8.464, allocations: 52.94 kB / 3.245 GB, free: 47.43 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005625/8.469, allocations: 0.9939 MB / 3.246 GB, free: 47.23 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.4e-05/8.47, allocations: 7.328 kB / 3.246 GB, free: 47.23 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001744/8.47, allocations: 25.78 kB / 3.246 GB, free: 47.23 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.564e-05/8.47, allocations: 23.03 kB / 3.246 GB, free: 47.23 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006114/8.476, allocations: 0.8948 MB / 3.247 GB, free: 47.23 MB / 442.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.009769/8.486, allocations: 4.713 MB / 3.251 GB, free: 43.91 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005142/8.491, allocations: 0.6812 MB / 3.252 GB, free: 43.88 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05843/8.549, allocations: 21.32 MB / 3.273 GB, free: 30.36 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.394e-05/8.55, allocations: 44.27 kB / 3.273 GB, free: 30.32 MB / 442.7 MB Notification: Performance of pre-optimization done (n=43): time 4.437e-06/8.55, allocations: 3.656 kB / 3.273 GB, free: 30.32 MB / 442.7 MB Notification: Performance of matching and sorting (n=60): time 0.02884/8.578, allocations: 4.309 MB / 3.277 GB, free: 29.69 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.418e-05/8.578, allocations: 110.8 kB / 3.277 GB, free: 29.56 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007224/8.579, allocations: 434.1 kB / 3.278 GB, free: 29.44 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001011/8.579, allocations: 38.86 kB / 3.278 GB, free: 29.41 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001907/8.58, allocations: 395.1 kB / 3.278 GB, free: 29.15 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001774/8.58, allocations: 199.5 kB / 3.278 GB, free: 29.02 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.204e-05/8.58, allocations: 14.38 kB / 3.278 GB, free: 29.02 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 7.773e-05/8.58, allocations: 346.3 kB / 3.279 GB, free: 28.7 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0012/8.581, allocations: 369.6 kB / 3.279 GB, free: 28.7 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00129/8.582, allocations: 0.5835 MB / 3.28 GB, free: 28.45 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001362/8.584, allocations: 431.3 kB / 3.28 GB, free: 28.45 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.357e-06/8.584, allocations: 0 / 3.28 GB, free: 28.45 MB / 442.7 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.003826/8.588, allocations: 1.213 MB / 3.281 GB, free: 28.37 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000481/8.588, allocations: 2.452 MB / 3.284 GB, free: 25.83 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.447e-05/8.588, allocations: 7.812 kB / 3.284 GB, free: 25.83 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005529/8.594, allocations: 0.9077 MB / 3.284 GB, free: 25.78 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007317/8.594, allocations: 158.5 kB / 3.285 GB, free: 25.77 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002671/8.597, allocations: 1.69 MB / 3.286 GB, free: 24.71 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001138/8.598, allocations: 102.9 kB / 3.286 GB, free: 24.71 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001173/8.598, allocations: 45.2 kB / 3.286 GB, free: 24.71 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.384e-05/8.599, allocations: 3.844 kB / 3.286 GB, free: 24.71 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003909/8.602, allocations: 1.178 MB / 3.288 GB, free: 24.66 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.684e-05/8.602, allocations: 7.125 kB / 3.288 GB, free: 24.66 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003132/8.606, allocations: 0.5857 MB / 3.288 GB, free: 24.62 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007486/8.606, allocations: 167.4 kB / 3.288 GB, free: 24.62 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002497/8.609, allocations: 1.63 MB / 3.29 GB, free: 23.56 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009735/8.61, allocations: 91.53 kB / 3.29 GB, free: 23.55 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001129/8.61, allocations: 49.69 kB / 3.29 GB, free: 23.55 MB / 442.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 (66): * Single equations (assignments): 64 * 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.0005544/8.611, allocations: 303.7 kB / 3.29 GB, free: 23.36 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001979/8.611, allocations: 64.59 kB / 3.29 GB, free: 23.32 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00651/8.617, allocations: 3.798 MB / 3.294 GB, free: 22.9 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.573e-05/8.617, allocations: 55.47 kB / 3.294 GB, free: 22.9 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.819e-06/8.617, allocations: 0 / 3.294 GB, free: 22.9 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.235e-05/8.618, allocations: 6.766 kB / 3.294 GB, free: 22.89 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01086/8.628, allocations: 5.081 MB / 3.299 GB, free: 21.4 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.438e-05/8.628, allocations: 0 / 3.299 GB, free: 21.4 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007982/8.629, allocations: 111.1 kB / 3.299 GB, free: 21.39 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006823/8.636, allocations: 1.643 MB / 3.301 GB, free: 21.1 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001122/8.636, allocations: 23.61 kB / 3.301 GB, free: 21.09 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003286/8.64, allocations: 2.378 MB / 3.303 GB, free: 19.5 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.399e-06/8.64, allocations: 0 / 3.303 GB, free: 19.5 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00477/8.644, allocations: 2.606 MB / 3.306 GB, free: 18.25 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005986/8.645, allocations: 335.5 kB / 3.306 GB, free: 18 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001472/8.645, allocations: 19.89 kB / 3.306 GB, free: 17.99 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008154/8.646, allocations: 97.56 kB / 3.306 GB, free: 17.97 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001393/8.646, allocations: 58.25 kB / 3.306 GB, free: 17.96 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.043e-05/8.646, allocations: 32.91 kB / 3.306 GB, free: 17.96 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0006343/8.647, allocations: 430.9 kB / 3.307 GB, free: 17.77 MB / 442.7 MB Notification: Performance of sort global known variables: time 8.11e-07/8.647, allocations: 0 / 3.307 GB, free: 17.77 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005845/8.653, allocations: 1.539 MB / 3.308 GB, free: 17.45 MB / 442.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,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.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 (47): * Single equations (assignments): 36 * 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.009067/8.662, allocations: 1.842 MB / 3.31 GB, free: 16.96 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005383/8.667, allocations: 1.981 MB / 3.312 GB, free: 16.32 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.29e-06/8.667, allocations: 8.156 kB / 3.312 GB, free: 16.31 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002191/8.67, allocations: 1.116 MB / 3.313 GB, free: 15.83 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002/8.672, allocations: 294.8 kB / 3.313 GB, free: 15.75 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.469/9.141, allocations: 77.86 MB / 3.389 GB, free: 57.07 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007743/9.141, allocations: 1.171 MB / 3.39 GB, free: 56.36 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003058/9.142, allocations: 66.97 kB / 3.39 GB, free: 56.35 MB / 458.7 MB Notification: Performance of SimCode: time 1.717e-06/9.142, allocations: 0 / 3.39 GB, free: 56.35 MB / 458.7 MB Notification: Performance of Templates: time 0.06942/9.211, allocations: 45.63 MB / 3.435 GB, free: 53.91 MB / 458.7 MB