Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultLV.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.TestWaterPumpDefaultLV,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|downstreamPressure.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultLV") translateModel(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultLV,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|downstreamPressure.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultLV") [: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.001844/0.001844, allocations: 200.1 kB / 8.541 MB, free: 1.82 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.371/1.371, allocations: 225.5 MB / 234.4 MB, free: 3.406 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009384/0.0009384, allocations: 94.73 kB / 286.3 MB, free: 5.266 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2206/0.2206, allocations: 45.15 MB / 383.4 MB, free: 0.5547 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 7.724e-06/7.744e-06, allocations: 0 / 452.6 MB, free: 76.2 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1339/0.1339, allocations: 63.24 MB / 0.5038 GB, free: 13.03 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.712/6.846, allocations: 2.771 GB / 3.274 GB, free: 144.3 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003127/6.846, allocations: 83.25 kB / 3.274 GB, free: 144.2 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.588/8.434, allocations: 421.5 MB / 3.686 GB, free: 65.17 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 5.724e-05/8.434, allocations: 16.06 kB / 3.686 GB, free: 65.17 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: 137 * Number of variables: 137 Notification: Performance of Generate backend data structure: time 0.007209/8.441, allocations: 1.674 MB / 3.688 GB, free: 64.4 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.365e-05/8.441, allocations: 9.531 kB / 3.688 GB, free: 64.4 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002241/8.444, allocations: 319 kB / 3.688 GB, free: 64.37 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008798/8.445, allocations: 0.521 MB / 3.688 GB, free: 64.12 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.021e-05/8.445, allocations: 30.34 kB / 3.689 GB, free: 64.12 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.627e-05/8.445, allocations: 29.03 kB / 3.689 GB, free: 64.12 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008241/8.445, allocations: 0.5177 MB / 3.689 GB, free: 64.11 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009337/8.446, allocations: 0.6374 MB / 3.69 GB, free: 63.91 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.261e-05/8.446, allocations: 4.531 kB / 3.69 GB, free: 63.91 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.828e-05/8.447, allocations: 6.859 kB / 3.69 GB, free: 63.91 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.165e-05/8.447, allocations: 18.62 kB / 3.69 GB, free: 63.91 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08683/8.533, allocations: 49.75 MB / 3.738 GB, free: 31.54 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006257/8.534, allocations: 339 kB / 3.739 GB, free: 31.51 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002894/8.534, allocations: 190.7 kB / 3.739 GB, free: 31.5 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05136/8.586, allocations: 27.2 MB / 3.765 GB, free: 29.13 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.865e-05/8.586, allocations: 35.77 kB / 3.765 GB, free: 29.09 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=39): time 3.536e-06/8.586, allocations: 1.062 kB / 3.765 GB, free: 29.09 MB / 0.5417 GB Notification: Performance of matching and sorting (n=39): time 0.003101/8.589, allocations: 0.7961 MB / 3.766 GB, free: 29.02 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.895e-05/8.589, allocations: 119.5 kB / 3.766 GB, free: 28.89 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000582/8.59, allocations: 366.1 kB / 3.767 GB, free: 28.78 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 5.338e-05/8.59, allocations: 26.67 kB / 3.767 GB, free: 28.75 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001891/8.59, allocations: 286.1 kB / 3.767 GB, free: 28.55 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001187/8.59, allocations: 128.2 kB / 3.767 GB, free: 28.47 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.874e-05/8.59, allocations: 1.969 kB / 3.767 GB, free: 28.47 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001625/8.59, allocations: 357.1 kB / 3.767 GB, free: 28.16 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003063/8.591, allocations: 176.8 kB / 3.768 GB, free: 28.16 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004322/8.591, allocations: 355.3 kB / 3.768 GB, free: 27.96 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009984/8.592, allocations: 277.1 kB / 3.768 GB, free: 27.95 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.218e-06/8.592, allocations: 0 / 3.768 GB, free: 27.95 MB / 0.5417 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.003097/8.595, allocations: 1.021 MB / 3.769 GB, free: 27.87 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007684/8.596, allocations: 1.924 MB / 3.771 GB, free: 25.85 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.24e-05/8.596, allocations: 9.922 kB / 3.771 GB, free: 25.85 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000814/8.597, allocations: 176 kB / 3.771 GB, free: 25.84 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004933/8.597, allocations: 126.5 kB / 3.771 GB, free: 25.83 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001198/8.598, allocations: 0.8288 MB / 3.772 GB, free: 25.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008506/8.599, allocations: 108.7 kB / 3.772 GB, free: 25.27 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.802e-05/8.599, allocations: 41.11 kB / 3.772 GB, free: 25.27 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 9.087e-06/8.599, allocations: 8.125 kB / 3.772 GB, free: 25.27 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002501/8.602, allocations: 0.6953 MB / 3.773 GB, free: 25.23 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.905e-06/8.602, allocations: 4.344 kB / 3.773 GB, free: 25.23 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008526/8.603, allocations: 173.7 kB / 3.773 GB, free: 25.22 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004641/8.603, allocations: 134.1 kB / 3.773 GB, free: 25.22 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008872/8.604, allocations: 0.7652 MB / 3.774 GB, free: 24.7 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000729/8.605, allocations: 97.05 kB / 3.774 GB, free: 24.67 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.38e-05/8.605, allocations: 29.91 kB / 3.774 GB, free: 24.67 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * 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 (53): * Single equations (assignments): 52 * 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 {3 10} Notification: Performance of prepare postOptimizeDAE: time 0.000288/8.605, allocations: 125.8 kB / 3.774 GB, free: 24.55 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008036/8.606, allocations: 266.7 kB / 3.774 GB, free: 24.53 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003638/8.61, allocations: 2.342 MB / 3.777 GB, free: 24.27 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.533e-05/8.61, allocations: 25.97 kB / 3.777 GB, free: 24.27 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.943e-06/8.61, allocations: 0 / 3.777 GB, free: 24.27 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.498e-06/8.61, allocations: 3.469 kB / 3.777 GB, free: 24.27 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004219/8.614, allocations: 3.011 MB / 3.78 GB, free: 23.87 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.172e-06/8.614, allocations: 1.188 kB / 3.78 GB, free: 23.87 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002942/8.614, allocations: 73.11 kB / 3.78 GB, free: 23.87 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008936/8.615, allocations: 355.6 kB / 3.78 GB, free: 23.85 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.981e-05/8.615, allocations: 9.453 kB / 3.78 GB, free: 23.85 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00127/8.617, allocations: 0.9776 MB / 3.781 GB, free: 23.32 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.22e-06/8.617, allocations: 2.031 kB / 3.781 GB, free: 23.32 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002802/8.619, allocations: 1.89 MB / 3.783 GB, free: 23 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000396/8.62, allocations: 257.2 kB / 3.783 GB, free: 22.86 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001056/8.62, allocations: 7.844 kB / 3.783 GB, free: 22.85 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005173/8.621, allocations: 63.25 kB / 3.783 GB, free: 22.84 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001021/8.621, allocations: 43.06 kB / 3.783 GB, free: 22.84 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.453e-05/8.621, allocations: 21.94 kB / 3.783 GB, free: 22.84 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.0004611/8.621, allocations: 351.2 kB / 3.784 GB, free: 22.71 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.006801/8.628, allocations: 1.349 MB / 3.785 GB, free: 22.43 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 16 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse8.phase,$cse8.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,Sink.medium.phase,pump.heatTransfer.states[1].phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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 13} Notification: Performance of Backend phase and start with SimCode phase: time 0.009649/8.638, allocations: 1.827 MB / 3.787 GB, free: 21.97 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.002536/8.64, allocations: 1.298 MB / 3.788 GB, free: 21.49 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 7.434e-06/8.64, allocations: 1.969 kB / 3.788 GB, free: 21.49 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.001146/8.641, allocations: 0.8894 MB / 3.789 GB, free: 21.05 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00161/8.643, allocations: 232.7 kB / 3.789 GB, free: 21.01 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003242/8.646, allocations: 1.51 MB / 3.791 GB, free: 20.33 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001148/8.647, allocations: 1.102 MB / 3.792 GB, free: 19.59 MB / 0.5417 GB Notification: Performance of SimCode: time 1.583e-06/8.647, allocations: 0 / 3.792 GB, free: 19.59 MB / 0.5417 GB Notification: Performance of Templates: time 0.06762/8.715, allocations: 42.32 MB / 3.833 GB, free: 4.824 MB / 0.5573 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultLV.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultLV.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultLV.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultLV.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultLV.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultLV -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultLV.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultLV_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Machines/TestWaterPumpDefaultLV/TestWaterPumpDefaultLV.csv","../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultLV.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches