Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSH.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.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_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSH") 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_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSH") [: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.001702/0.001702, allocations: 204 kB / 8.543 MB, free: 1.801 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.446/1.446, allocations: 225.5 MB / 234.4 MB, free: 3.398 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009841/0.0009841, allocations: 89.66 kB / 286.3 MB, free: 5.234 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2169/0.2169, allocations: 45.14 MB / 383.3 MB, free: 0.5391 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 7.444e-06/7.474e-06, allocations: 0 / 452.6 MB, free: 76.16 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1322/0.1322, allocations: 63.24 MB / 0.5038 GB, free: 13 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.756/6.888, allocations: 2.792 GB / 3.296 GB, free: 125.4 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000258/6.888, allocations: 85.08 kB / 3.296 GB, free: 125.3 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.562/8.45, allocations: 441.2 MB / 3.727 GB, free: 58.64 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 6.363e-05/8.451, allocations: 16.56 kB / 3.727 GB, free: 58.64 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: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.007402/8.458, allocations: 1.791 MB / 3.729 GB, free: 57.55 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 2.197e-05/8.458, allocations: 10.91 kB / 3.729 GB, free: 57.55 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002656/8.461, allocations: 373 kB / 3.729 GB, free: 57.49 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009292/8.462, allocations: 0.5735 MB / 3.73 GB, free: 57.11 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.807e-05/8.462, allocations: 30.56 kB / 3.73 GB, free: 57.1 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.56e-05/8.462, allocations: 32.28 kB / 3.73 GB, free: 57.1 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009046/8.463, allocations: 0.5515 MB / 3.73 GB, free: 56.91 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000909/8.464, allocations: 0.6817 MB / 3.731 GB, free: 56.53 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.471e-05/8.464, allocations: 0 / 3.731 GB, free: 56.53 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.85e-05/8.464, allocations: 6.844 kB / 3.731 GB, free: 56.53 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.656e-05/8.464, allocations: 24 kB / 3.731 GB, free: 56.52 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09126/8.555, allocations: 50.01 MB / 3.78 GB, free: 21.52 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006473/8.556, allocations: 319.3 kB / 3.78 GB, free: 21.39 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003849/8.556, allocations: 199 kB / 3.78 GB, free: 21.28 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05066/8.607, allocations: 27.31 MB / 3.807 GB, free: 9.57 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.983e-05/8.607, allocations: 39.31 kB / 3.807 GB, free: 9.523 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=42): time 2.204e-06/8.607, allocations: 0 / 3.807 GB, free: 9.523 MB / 0.5417 GB Notification: Performance of matching and sorting (n=42): time 0.003118/8.61, allocations: 0.8221 MB / 3.808 GB, free: 8.84 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.056e-05/8.61, allocations: 106.8 kB / 3.808 GB, free: 8.711 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005862/8.611, allocations: 413.9 kB / 3.808 GB, free: 8.332 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 5.565e-05/8.611, allocations: 29.7 kB / 3.809 GB, free: 8.297 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001506/8.611, allocations: 296.6 kB / 3.809 GB, free: 8.027 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001064/8.611, allocations: 140.9 kB / 3.809 GB, free: 7.902 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.144e-05/8.611, allocations: 0 / 3.809 GB, free: 7.902 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001523/8.611, allocations: 367.5 kB / 3.809 GB, free: 7.551 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002967/8.611, allocations: 198.1 kB / 3.809 GB, free: 7.367 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003755/8.612, allocations: 370 kB / 3.81 GB, free: 6.945 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001252/8.613, allocations: 340.6 kB / 3.81 GB, free: 6.68 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.07e-06/8.613, allocations: 7.938 kB / 3.81 GB, free: 6.672 MB / 0.5417 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.002789/8.616, allocations: 1.051 MB / 3.811 GB, free: 5.793 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008301/8.617, allocations: 2.007 MB / 3.813 GB, free: 3.637 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.014e-05/8.617, allocations: 4 kB / 3.813 GB, free: 3.633 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007986/8.618, allocations: 182.7 kB / 3.813 GB, free: 3.488 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005797/8.618, allocations: 146.7 kB / 3.813 GB, free: 3.367 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001717/8.62, allocations: 0.893 MB / 3.814 GB, free: 2.516 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009813/8.621, allocations: 129.1 kB / 3.814 GB, free: 2.414 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001235/8.621, allocations: 41.3 kB / 3.814 GB, free: 2.379 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.03e-05/8.621, allocations: 4 kB / 3.814 GB, free: 2.375 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002804/8.624, allocations: 0.7529 MB / 3.815 GB, free: 1.746 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.917e-06/8.624, allocations: 8 kB / 3.815 GB, free: 1.738 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008944/8.625, allocations: 176.5 kB / 3.815 GB, free: 1.602 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005483/8.625, allocations: 152.9 kB / 3.816 GB, free: 1.477 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009263/8.626, allocations: 0.7706 MB / 3.816 GB, free: 0.7227 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008341/8.627, allocations: 110.5 kB / 3.816 GB, free: 0.6328 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.513e-05/8.627, allocations: 31.8 kB / 3.816 GB, free: 0.6055 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * 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 (58): * Single equations (assignments): 57 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 12} Notification: Performance of prepare postOptimizeDAE: time 0.000262/8.627, allocations: 120.8 kB / 3.817 GB, free: 492 kB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00081/8.628, allocations: 275.1 kB / 3.817 GB, free: 288 kB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004243/8.633, allocations: 2.552 MB / 3.819 GB, free: 14.02 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.947e-05/8.633, allocations: 27.11 kB / 3.819 GB, free: 14 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/8.633, allocations: 0 / 3.819 GB, free: 14 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.049e-05/8.633, allocations: 2.906 kB / 3.819 GB, free: 14 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004995/8.638, allocations: 3.215 MB / 3.822 GB, free: 11.14 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.841e-06/8.638, allocations: 0 / 3.822 GB, free: 11.14 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003036/8.638, allocations: 71.38 kB / 3.823 GB, free: 11.08 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001309/8.639, allocations: 0.6632 MB / 3.823 GB, free: 10.51 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.182e-05/8.639, allocations: 10.62 kB / 3.823 GB, free: 10.5 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001797/8.641, allocations: 1.262 MB / 3.824 GB, free: 9.309 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.881e-06/8.641, allocations: 3.938 kB / 3.824 GB, free: 9.305 MB / 0.5573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003338/8.644, allocations: 2 MB / 3.826 GB, free: 7.336 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000509/8.645, allocations: 267.7 kB / 3.827 GB, free: 7.055 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001255/8.645, allocations: 7.906 kB / 3.827 GB, free: 7.047 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005834/8.646, allocations: 67.73 kB / 3.827 GB, free: 6.984 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000113/8.646, allocations: 48.3 kB / 3.827 GB, free: 6.938 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.283e-05/8.646, allocations: 23.98 kB / 3.827 GB, free: 6.914 MB / 0.5573 GB Notification: Performance of sort global known variables: time 0.0005634/8.646, allocations: 378.9 kB / 3.827 GB, free: 6.543 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.007061/8.654, allocations: 1.432 MB / 3.829 GB, free: 5.109 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 16 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse10.phase,$cse10.region,$cse12.phase,$cse12.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,Sink.medium.phase,pump.heatTransfer.states[1].phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (36): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.0111/8.665, allocations: 1.897 MB / 3.83 GB, free: 3.387 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.003273/8.668, allocations: 1.358 MB / 3.832 GB, free: 2.031 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 8.105e-06/8.668, allocations: 0 / 3.832 GB, free: 2.031 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.001286/8.669, allocations: 0.9184 MB / 3.833 GB, free: 1.117 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001704/8.671, allocations: 251.1 kB / 3.833 GB, free: 0.8789 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3212/8.992, allocations: 1.588 MB / 3.834 GB, free: 141.8 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007628/8.993, allocations: 1.127 MB / 3.836 GB, free: 141.1 MB / 0.5573 GB Notification: Performance of SimCode: time 1.293e-06/8.993, allocations: 0 / 3.836 GB, free: 141.1 MB / 0.5573 GB Notification: Performance of Templates: time 0.05991/9.053, allocations: 44.26 MB / 3.879 GB, free: 140.2 MB / 0.5573 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSH.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSH.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSH.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSH.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSH.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSH -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSH.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSH_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Machines/TestWaterPumpNPSH/TestWaterPumpNPSH.csv","../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSH.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches