Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Source.ports.1..m_flow|Source.ports.1..p|Source.ports.1..h_outflow|Source.ports.2..m_flow|Source.ports.2..p|Source.ports.2..h_outflow|Source.ports.3..m_flow|Source.ports.3..p|Source.ports.3..h_outflow|Source.ports.4..m_flow|Source.ports.4..p|Source.ports.4..h_outflow|Sink.ports.1..m_flow|Sink.ports.1..p|Sink.ports.1..h_outflow|Sink.ports.2..m_flow|Sink.ports.2..p|Sink.ports.2..h_outflow|Sink.ports.3..m_flow|Sink.ports.3..p|Sink.ports.3..h_outflow|Sink.ports.4..m_flow|Sink.ports.4..p|Sink.ports.4..h_outflow|pump.port_b.m_flow|pump.port_b.p|pump.port_b.h_outflow|downstreamPressure.y|pumpPolynomial.port_b.m_flow|pumpPolynomial.port_b.p|pumpPolynomial.port_b.h_outflow|pumpQuadraticLinear.port_b.m_flow|pumpQuadraticLinear.port_b.p|pumpQuadraticLinear.port_b.h_outflow|pumpLinear.port_b.m_flow|pumpLinear.port_b.p|pumpLinear.port_b.h_outflow",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics") translateModel(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Source.ports.1..m_flow|Source.ports.1..p|Source.ports.1..h_outflow|Source.ports.2..m_flow|Source.ports.2..p|Source.ports.2..h_outflow|Source.ports.3..m_flow|Source.ports.3..p|Source.ports.3..h_outflow|Source.ports.4..m_flow|Source.ports.4..p|Source.ports.4..h_outflow|Sink.ports.1..m_flow|Sink.ports.1..p|Sink.ports.1..h_outflow|Sink.ports.2..m_flow|Sink.ports.2..p|Sink.ports.2..h_outflow|Sink.ports.3..m_flow|Sink.ports.3..p|Sink.ports.3..h_outflow|Sink.ports.4..m_flow|Sink.ports.4..p|Sink.ports.4..h_outflow|pump.port_b.m_flow|pump.port_b.p|pump.port_b.h_outflow|downstreamPressure.y|pumpPolynomial.port_b.m_flow|pumpPolynomial.port_b.p|pumpPolynomial.port_b.h_outflow|pumpQuadraticLinear.port_b.m_flow|pumpQuadraticLinear.port_b.p|pumpQuadraticLinear.port_b.h_outflow|pumpLinear.port_b.m_flow|pumpLinear.port_b.p|pumpLinear.port_b.h_outflow",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001568/0.001567, allocations: 174.4 kB / 8.145 MB, free: 2.219 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.59/1.59, allocations: 205.2 MB / 213.8 MB, free: 13.92 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001233/0.001233, allocations: 94.75 kB / 261.8 MB, free: 13.61 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2544/0.2544, allocations: 43.49 MB / 353.2 MB, free: 2.023 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 9.358e-06/9.588e-06, allocations: 0 / 417.7 MB, free: 40.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2645/0.2645, allocations: 58.84 MB / 476.5 MB, free: 5.09 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.564/5.828, allocations: 2.764 GB / 3.229 GB, free: 21.93 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002785/5.828, allocations: 86.58 kB / 3.229 GB, free: 21.88 MB / 0.4948 GB Notification: Performance of FrontEnd: time 3.737/9.565, allocations: 0.8149 GB / 4.044 GB, free: 49.53 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0001175/9.565, allocations: 41.86 kB / 4.044 GB, free: 49.53 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 324 * Number of variables: 324 Notification: Performance of Generate backend data structure: time 0.01142/9.577, allocations: 2.606 MB / 4.047 GB, free: 48.64 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.502e-05/9.577, allocations: 11.19 kB / 4.047 GB, free: 48.64 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005323/9.582, allocations: 495.7 kB / 4.047 GB, free: 48.56 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002961/9.585, allocations: 0.9975 MB / 4.048 GB, free: 48.24 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001078/9.585, allocations: 53.97 kB / 4.048 GB, free: 48.24 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002366/9.586, allocations: 74.53 kB / 4.048 GB, free: 48.24 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003356/9.589, allocations: 1.164 MB / 4.049 GB, free: 48.23 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00325/9.592, allocations: 1.397 MB / 4.051 GB, free: 47.86 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.279e-05/9.592, allocations: 6.75 kB / 4.051 GB, free: 47.86 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002004/9.592, allocations: 7.125 kB / 4.051 GB, free: 47.86 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.172e-05/9.593, allocations: 53.27 kB / 4.051 GB, free: 47.85 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5028/10.1, allocations: 146 MB / 4.193 GB, free: 18.95 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001407/10.1, allocations: 0.5573 MB / 4.194 GB, free: 18.92 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008462/10.1, allocations: 361.7 kB / 4.194 GB, free: 18.9 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02944/10.13, allocations: 8.091 MB / 4.202 GB, free: 13.6 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.081e-05/10.13, allocations: 42.19 kB / 4.202 GB, free: 13.56 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=81): time 3.216e-06/10.13, allocations: 1.5 kB / 4.202 GB, free: 13.56 MB / 0.5886 GB Notification: Performance of matching and sorting (n=81): time 0.007584/10.13, allocations: 1.428 MB / 4.204 GB, free: 13.41 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.872e-05/10.14, allocations: 116.7 kB / 4.204 GB, free: 13.29 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001582/10.14, allocations: 0.716 MB / 4.204 GB, free: 13.13 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.0002101/10.14, allocations: 25.7 kB / 4.204 GB, free: 13.1 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003371/10.14, allocations: 0.5706 MB / 4.205 GB, free: 12.67 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003105/10.14, allocations: 271 kB / 4.205 GB, free: 12.5 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.444e-05/10.14, allocations: 0 / 4.205 GB, free: 12.5 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001706/10.14, allocations: 359.6 kB / 4.206 GB, free: 12.18 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001003/10.14, allocations: 364.8 kB / 4.206 GB, free: 12.18 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001205/10.14, allocations: 0.7281 MB / 4.207 GB, free: 11.73 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001981/10.14, allocations: 471.1 kB / 4.207 GB, free: 11.7 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.578e-06/10.14, allocations: 6.188 kB / 4.207 GB, free: 11.7 MB / 0.5886 GB Notification: Performance of matching and sorting (n=147) (initialization): time 0.009141/10.15, allocations: 1.973 MB / 4.209 GB, free: 11.57 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.001889/10.15, allocations: 4.605 MB / 4.213 GB, free: 22.73 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.805e-05/10.15, allocations: 9.062 kB / 4.213 GB, free: 22.73 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003493/10.16, allocations: 0.5059 MB / 4.214 GB, free: 22.7 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001498/10.16, allocations: 225.7 kB / 4.214 GB, free: 22.7 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008358/10.17, allocations: 3.072 MB / 4.217 GB, free: 20.61 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002445/10.17, allocations: 212.6 kB / 4.217 GB, free: 20.54 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001903/10.17, allocations: 77.73 kB / 4.217 GB, free: 20.54 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.199e-05/10.17, allocations: 3 kB / 4.217 GB, free: 20.54 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009055/10.18, allocations: 1.428 MB / 4.219 GB, free: 20.46 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.562e-05/10.18, allocations: 12.97 kB / 4.219 GB, free: 20.46 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004012/10.18, allocations: 413.2 kB / 4.219 GB, free: 20.42 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001684/10.18, allocations: 248.1 kB / 4.219 GB, free: 20.42 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007277/10.19, allocations: 2.873 MB / 4.222 GB, free: 18.33 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002311/10.19, allocations: 206.5 kB / 4.222 GB, free: 18.27 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001731/10.19, allocations: 70.47 kB / 4.223 GB, free: 18.27 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 10 (Sink.medium.phase,pump.heatTransfer.states[1].phase,pumpPolynomial.heatTransfer.states[1].phase,pumpQuadraticLinear.heatTransfer.states[1].phase,pumpLinear.heatTransfer.states[1].phase,Source.medium.phase,pumpLinear.monitoring.state_in.phase,pumpQuadraticLinear.monitoring.state_in.phase,pumpPolynomial.monitoring.state_in.phase,pump.monitoring.state_in.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (111): * Single equations (assignments): 107 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {2 8,2 8,2 8,2 8} Notification: Performance of prepare postOptimizeDAE: time 0.0004483/10.19, allocations: 61.14 kB / 4.223 GB, free: 18.23 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001835/10.2, allocations: 433 kB / 4.223 GB, free: 18.18 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008172/10.2, allocations: 3.081 MB / 4.226 GB, free: 17.88 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.6e-05/10.2, allocations: 30.47 kB / 4.226 GB, free: 17.88 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.145e-05/10.2, allocations: 0 / 4.226 GB, free: 17.88 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.975e-05/10.2, allocations: 8.938 kB / 4.226 GB, free: 17.88 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01014/10.21, allocations: 4.51 MB / 4.23 GB, free: 17 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.118e-05/10.21, allocations: 1.062 kB / 4.23 GB, free: 17 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006808/10.22, allocations: 89.38 kB / 4.231 GB, free: 17 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004422/10.22, allocations: 1.148 MB / 4.232 GB, free: 16.92 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001405/10.22, allocations: 13.53 kB / 4.232 GB, free: 16.92 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006649/10.23, allocations: 3.76 MB / 4.235 GB, free: 14.79 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.504e-06/10.23, allocations: 1.312 kB / 4.235 GB, free: 14.79 MB / 0.6042 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007151/10.23, allocations: 2.522 MB / 4.238 GB, free: 14.39 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001193/10.24, allocations: 384 kB / 4.238 GB, free: 14.2 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003034/10.24, allocations: 2 kB / 4.238 GB, free: 14.2 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001986/10.24, allocations: 152.9 kB / 4.238 GB, free: 14.18 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002543/10.24, allocations: 86.55 kB / 4.238 GB, free: 14.18 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001346/10.24, allocations: 40.69 kB / 4.238 GB, free: 14.18 MB / 0.6042 GB Notification: Performance of sort global known variables: time 0.001297/10.24, allocations: 0.5881 MB / 4.239 GB, free: 14.06 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.009599/10.25, allocations: 1.904 MB / 4.241 GB, free: 13.75 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 17 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse6.phase,$cse6.region,$cse8.phase,$cse8.region,$cse10.phase,$cse10.region,Sink.medium.phase,pump.heatTransfer.states[1].phase,pumpPolynomial.heatTransfer.states[1].phase,pumpQuadraticLinear.heatTransfer.states[1].phase,pumpLinear.heatTransfer.states[1].phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (46): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {2 10,2 10,2 10,2 10} Notification: Performance of Backend phase and start with SimCode phase: time 0.01415/10.26, allocations: 2.419 MB / 4.243 GB, free: 13.23 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.01119/10.27, allocations: 2.148 MB / 4.245 GB, free: 12.82 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.368e-05/10.27, allocations: 0 / 4.245 GB, free: 12.82 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.003433/10.28, allocations: 1.137 MB / 4.246 GB, free: 12.26 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004475/10.28, allocations: 448 kB / 4.247 GB, free: 12.02 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006299/10.29, allocations: 2.305 MB / 4.249 GB, free: 10.32 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001525/10.29, allocations: 1.42 MB / 4.251 GB, free: 9.129 MB / 0.6042 GB Notification: Performance of SimCode: time 1.172e-06/10.29, allocations: 0 / 4.251 GB, free: 9.129 MB / 0.6042 GB Notification: Performance of Templates: time 0.3482/10.64, allocations: 67.66 MB / 4.317 GB, free: 158.4 MB / 0.6042 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics.pipe 2>&1)