Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001843/0.001843, allocations: 196.1 kB / 8.535 MB, free: 1.844 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.576/1.576, allocations: 225.5 MB / 234.4 MB, free: 3.332 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001265/0.001265, allocations: 96.31 kB / 286.3 MB, free: 5.273 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2586/0.2586, allocations: 45.14 MB / 383.3 MB, free: 0.5586 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.111e-05/1.115e-05, allocations: 4 kB / 452.6 MB, free: 76.18 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1743/0.1743, allocations: 63.24 MB / 0.5038 GB, free: 13.02 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.673/5.848, allocations: 2.77 GB / 3.274 GB, free: 143.8 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002981/5.848, allocations: 83.48 kB / 3.274 GB, free: 143.7 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.886/8.734, allocations: 0.8239 GB / 4.098 GB, free: 52.34 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0002019/8.734, allocations: 42.25 kB / 4.098 GB, free: 52.34 MB / 0.5573 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.01309/8.747, allocations: 2.624 MB / 4.101 GB, free: 51.2 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 5.15e-05/8.747, allocations: 7.438 kB / 4.101 GB, free: 51.2 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004745/8.752, allocations: 493.4 kB / 4.101 GB, free: 51.11 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003752/8.756, allocations: 0.991 MB / 4.102 GB, free: 50.79 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000169/8.756, allocations: 57.59 kB / 4.102 GB, free: 50.79 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005108/8.756, allocations: 73.12 kB / 4.102 GB, free: 50.79 MB / 0.5573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003292/8.76, allocations: 1.16 MB / 4.103 GB, free: 50.78 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003654/8.763, allocations: 1.403 MB / 4.105 GB, free: 50.41 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.749e-05/8.763, allocations: 2.156 kB / 4.105 GB, free: 50.41 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002805/8.764, allocations: 6.031 kB / 4.105 GB, free: 50.41 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.564e-05/8.764, allocations: 63.14 kB / 4.105 GB, free: 50.4 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3161/9.08, allocations: 165.8 MB / 4.267 GB, free: 19.93 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008129/9.081, allocations: 0.5556 MB / 4.267 GB, free: 19.59 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004732/9.081, allocations: 358.1 kB / 4.268 GB, free: 19.39 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01707/9.098, allocations: 8.809 MB / 4.276 GB, free: 10.58 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.699e-05/9.098, allocations: 38.97 kB / 4.276 GB, free: 10.54 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=81): time 3.246e-06/9.098, allocations: 4 kB / 4.276 GB, free: 10.54 MB / 0.6355 GB Notification: Performance of matching and sorting (n=81): time 0.004725/9.103, allocations: 1.429 MB / 4.278 GB, free: 9.68 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.417e-05/9.103, allocations: 115 kB / 4.278 GB, free: 9.547 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001017/9.104, allocations: 0.7165 MB / 4.278 GB, free: 9.059 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 8.986e-05/9.104, allocations: 25.7 kB / 4.278 GB, free: 9.027 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002821/9.105, allocations: 0.5569 MB / 4.279 GB, free: 8.598 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 0.000208/9.105, allocations: 259.7 kB / 4.279 GB, free: 8.395 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.808e-05/9.105, allocations: 4 kB / 4.279 GB, free: 8.391 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001671/9.105, allocations: 353.8 kB / 4.28 GB, free: 8.07 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005174/9.106, allocations: 376.2 kB / 4.28 GB, free: 7.871 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006649/9.106, allocations: 0.727 MB / 4.281 GB, free: 7.191 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001133/9.107, allocations: 465.6 kB / 4.281 GB, free: 6.949 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.522e-06/9.107, allocations: 4 kB / 4.281 GB, free: 6.945 MB / 0.6355 GB Notification: Performance of matching and sorting (n=147) (initialization): time 0.005635/9.113, allocations: 2.024 MB / 4.283 GB, free: 5.746 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 0.2955/9.409, allocations: 4.607 MB / 4.288 GB, free: 172.9 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.159e-05/9.409, allocations: 14.53 kB / 4.288 GB, free: 172.9 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00237/9.411, allocations: 0.5054 MB / 4.288 GB, free: 172.9 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008957/9.412, allocations: 232 kB / 4.288 GB, free: 172.9 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004928/9.417, allocations: 3.088 MB / 4.291 GB, free: 170.8 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002507/9.419, allocations: 246.2 kB / 4.292 GB, free: 170.8 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002667/9.42, allocations: 80.06 kB / 4.292 GB, free: 170.8 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.164e-05/9.42, allocations: 3.5 kB / 4.292 GB, free: 170.8 MB / 0.6355 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005484/9.425, allocations: 1.435 MB / 4.293 GB, free: 170.8 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.35e-05/9.425, allocations: 10.53 kB / 4.293 GB, free: 170.8 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002537/9.428, allocations: 464.2 kB / 4.293 GB, free: 170.7 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009273/9.429, allocations: 249.2 kB / 4.294 GB, free: 170.7 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004034/9.433, allocations: 2.889 MB / 4.297 GB, free: 168.7 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001888/9.435, allocations: 207.1 kB / 4.297 GB, free: 168.7 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001255/9.435, allocations: 71.38 kB / 4.297 GB, free: 168.7 MB / 0.6355 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.000458/9.435, allocations: 148.2 kB / 4.297 GB, free: 168.6 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001301/9.437, allocations: 430 kB / 4.297 GB, free: 168.6 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004693/9.441, allocations: 3.07 MB / 4.3 GB, free: 168.3 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.776e-05/9.441, allocations: 26.81 kB / 4.3 GB, free: 168.3 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/9.441, allocations: 0 / 4.3 GB, free: 168.3 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.281e-05/9.441, allocations: 7.656 kB / 4.3 GB, free: 168.3 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005867/9.447, allocations: 4.48 MB / 4.305 GB, free: 167.5 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.412e-06/9.447, allocations: 6.219 kB / 4.305 GB, free: 167.5 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003263/9.448, allocations: 82.77 kB / 4.305 GB, free: 167.5 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002344/9.45, allocations: 1.14 MB / 4.306 GB, free: 167.4 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.383e-05/9.45, allocations: 17.5 kB / 4.306 GB, free: 167.4 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003681/9.454, allocations: 3.762 MB / 4.31 GB, free: 165.3 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.569e-06/9.454, allocations: 0 / 4.31 GB, free: 165.3 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004104/9.458, allocations: 2.517 MB / 4.312 GB, free: 164.9 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008607/9.459, allocations: 378.2 kB / 4.312 GB, free: 164.7 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001935/9.459, allocations: 2.219 kB / 4.312 GB, free: 164.7 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001085/9.46, allocations: 150.6 kB / 4.313 GB, free: 164.7 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001642/9.46, allocations: 85.14 kB / 4.313 GB, free: 164.7 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.891e-05/9.46, allocations: 39.45 kB / 4.313 GB, free: 164.7 MB / 0.6355 GB Notification: Performance of sort global known variables: time 0.0008037/9.461, allocations: 0.5932 MB / 4.313 GB, free: 164.6 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.008061/9.469, allocations: 1.915 MB / 4.315 GB, free: 164.6 MB / 0.6355 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.01104/9.48, allocations: 2.428 MB / 4.318 GB, free: 164.4 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.006149/9.487, allocations: 2.164 MB / 4.32 GB, free: 164.3 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 9.047e-06/9.487, allocations: 0 / 4.32 GB, free: 164.3 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.001892/9.488, allocations: 1.144 MB / 4.321 GB, free: 164.3 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00281/9.491, allocations: 461.6 kB / 4.321 GB, free: 164.3 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004765/9.496, allocations: 2.291 MB / 4.323 GB, free: 163.8 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001005/9.497, allocations: 1.429 MB / 4.325 GB, free: 163.1 MB / 0.6355 GB Notification: Performance of SimCode: time 1.253e-06/9.497, allocations: 0 / 4.325 GB, free: 163.1 MB / 0.6355 GB Notification: Performance of Templates: time 0.09159/9.589, allocations: 62.16 MB / 4.386 GB, free: 160.8 MB / 0.6355 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Machines/TestWaterPumpCharacteristics/TestWaterPumpCharacteristics.csv","../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches