Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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_4.0.0_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_4.0.0_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 4.0.0+maint.om/package.mo): time 0.001087/0.001087, allocations: 180.5 kB / 8.522 MB, free: 1.82 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.24/1.24, allocations: 221.4 MB / 230.3 MB, free: 7.719 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008818/0.0008818, allocations: 87.22 kB / 281.2 MB, free: 5.465 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1739/0.1739, allocations: 44.15 MB / 376.1 MB, free: 3.234 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 6.332e-06/6.362e-06, allocations: 224 / 444.1 MB, free: 15.61 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1129/0.1129, allocations: 61.91 MB / 0.4941 GB, free: 1.629 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.871/4.984, allocations: 2.769 GB / 3.263 GB, free: 165 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002656/4.985, allocations: 83.23 kB / 3.263 GB, free: 165 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.618/7.602, allocations: 0.8238 GB / 4.087 GB, free: 46.82 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 8.727e-05/7.602, allocations: 39.61 kB / 4.087 GB, free: 46.82 MB / 0.5417 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.009257/7.612, allocations: 2.616 MB / 4.09 GB, free: 45.9 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.476e-05/7.612, allocations: 11.28 kB / 4.09 GB, free: 45.9 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003603/7.615, allocations: 0.4902 MB / 4.09 GB, free: 45.82 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001928/7.617, allocations: 0.9893 MB / 4.091 GB, free: 45.49 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.994e-05/7.617, allocations: 56.53 kB / 4.091 GB, free: 45.49 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001386/7.617, allocations: 70.59 kB / 4.091 GB, free: 45.49 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001896/7.619, allocations: 1.16 MB / 4.092 GB, free: 45.48 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001906/7.621, allocations: 1.4 MB / 4.094 GB, free: 45.11 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.144e-05/7.621, allocations: 10.06 kB / 4.094 GB, free: 45.11 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001189/7.621, allocations: 3.875 kB / 4.094 GB, free: 45.11 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.458e-05/7.622, allocations: 57.64 kB / 4.094 GB, free: 45.11 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2805/7.902, allocations: 146 MB / 4.236 GB, free: 16.13 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001119/7.903, allocations: 0.5641 MB / 4.237 GB, free: 16.1 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005698/7.904, allocations: 361.5 kB / 4.237 GB, free: 16.09 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01644/7.92, allocations: 8.091 MB / 4.245 GB, free: 26.8 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.411e-05/7.92, allocations: 46.94 kB / 4.245 GB, free: 26.76 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=81): time 2.826e-06/7.92, allocations: 0 / 4.245 GB, free: 26.76 MB / 0.6198 GB Notification: Performance of matching and sorting (n=81): time 0.005325/7.926, allocations: 1.432 MB / 4.247 GB, free: 26.61 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.111e-05/7.926, allocations: 110.5 kB / 4.247 GB, free: 26.49 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001189/7.927, allocations: 0.7158 MB / 4.248 GB, free: 26.33 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 0.000111/7.927, allocations: 29.64 kB / 4.248 GB, free: 26.3 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003253/7.927, allocations: 0.5518 MB / 4.248 GB, free: 25.94 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.000245/7.928, allocations: 269.3 kB / 4.248 GB, free: 25.77 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.475e-05/7.928, allocations: 0 / 4.248 GB, free: 25.77 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0001275/7.928, allocations: 350.7 kB / 4.249 GB, free: 25.46 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005555/7.928, allocations: 372.3 kB / 4.249 GB, free: 25.46 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007075/7.929, allocations: 0.7288 MB / 4.25 GB, free: 25.01 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001203/7.93, allocations: 463.8 kB / 4.25 GB, free: 24.99 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.654e-06/7.93, allocations: 0 / 4.25 GB, free: 24.99 MB / 0.6198 GB Notification: Performance of matching and sorting (n=147) (initialization): time 0.005713/7.936, allocations: 2.029 MB / 4.252 GB, free: 24.82 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 0.00172/7.938, allocations: 4.607 MB / 4.257 GB, free: 19.98 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.633e-05/7.938, allocations: 12.03 kB / 4.257 GB, free: 19.98 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001997/7.94, allocations: 0.5163 MB / 4.257 GB, free: 19.94 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007553/7.941, allocations: 226.7 kB / 4.257 GB, free: 19.93 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005044/7.946, allocations: 3.09 MB / 4.26 GB, free: 17.84 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001895/7.948, allocations: 236 kB / 4.261 GB, free: 17.77 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001635/7.948, allocations: 79.09 kB / 4.261 GB, free: 17.77 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 9.127e-06/7.948, allocations: 7.875 kB / 4.261 GB, free: 17.77 MB / 0.6198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005042/7.953, allocations: 1.43 MB / 4.262 GB, free: 17.69 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.009e-05/7.953, allocations: 14.16 kB / 4.262 GB, free: 17.69 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002523/7.955, allocations: 471.8 kB / 4.263 GB, free: 17.64 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008714/7.956, allocations: 247.7 kB / 4.263 GB, free: 17.64 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004316/7.961, allocations: 2.891 MB / 4.266 GB, free: 15.54 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001616/7.962, allocations: 201.3 kB / 4.266 GB, free: 15.48 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001562/7.962, allocations: 70.47 kB / 4.266 GB, free: 15.48 MB / 0.6198 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.0003769/7.963, allocations: 151.1 kB / 4.266 GB, free: 15.36 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001357/7.964, allocations: 431.2 kB / 4.266 GB, free: 15.3 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005023/7.969, allocations: 3.071 MB / 4.269 GB, free: 15.02 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.507e-05/7.969, allocations: 28.81 kB / 4.27 GB, free: 15.02 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.324e-06/7.969, allocations: 1 kB / 4.27 GB, free: 15.02 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.054e-05/7.969, allocations: 3.938 kB / 4.27 GB, free: 15.02 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006479/7.976, allocations: 4.487 MB / 4.274 GB, free: 14.16 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.522e-06/7.976, allocations: 4.906 kB / 4.274 GB, free: 14.15 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003336/7.976, allocations: 86.41 kB / 4.274 GB, free: 14.15 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002608/7.979, allocations: 1.144 MB / 4.275 GB, free: 14.07 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.11e-05/7.979, allocations: 17.06 kB / 4.275 GB, free: 14.07 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004511/7.983, allocations: 3.764 MB / 4.279 GB, free: 11.95 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.001e-06/7.983, allocations: 1.781 kB / 4.279 GB, free: 11.95 MB / 0.6198 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004472/7.988, allocations: 2.512 MB / 4.281 GB, free: 11.54 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009076/7.989, allocations: 384.1 kB / 4.282 GB, free: 11.36 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003443/7.989, allocations: 2.094 kB / 4.282 GB, free: 11.36 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001295/7.99, allocations: 156 kB / 4.282 GB, free: 11.33 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001593/7.991, allocations: 80.09 kB / 4.282 GB, free: 11.33 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.869e-05/7.991, allocations: 39.78 kB / 4.282 GB, free: 11.33 MB / 0.6198 GB Notification: Performance of sort global known variables: time 0.00101/7.992, allocations: 0.589 MB / 4.282 GB, free: 11.22 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.008378/8, allocations: 1.91 MB / 4.284 GB, free: 10.91 MB / 0.6198 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.01033/8.011, allocations: 2.409 MB / 4.287 GB, free: 10.38 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.006566/8.017, allocations: 2.168 MB / 4.289 GB, free: 10.31 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 7.774e-06/8.017, allocations: 1.719 kB / 4.289 GB, free: 10.31 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.002144/8.019, allocations: 1.14 MB / 4.29 GB, free: 10.16 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002661/8.022, allocations: 469.9 kB / 4.29 GB, free: 9.906 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004501/8.027, allocations: 2.295 MB / 4.293 GB, free: 8.234 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001168/8.028, allocations: 1.434 MB / 4.294 GB, free: 7.047 MB / 0.6198 GB Notification: Performance of SimCode: time 6.92e-07/8.028, allocations: 0 / 4.294 GB, free: 7.047 MB / 0.6198 GB Notification: Performance of Templates: time 0.289/8.317, allocations: 62.21 MB / 4.355 GB, free: 164.3 MB / 0.6198 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches