Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.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) 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(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|speed.phi",fileNamePrefix="Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|speed.phi",fileNamePrefix="Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump") [: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.001198/0.001198, allocations: 198.6 kB / 8.54 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.227/1.227, allocations: 225.5 MB / 234.4 MB, free: 3.336 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008753/0.0008753, allocations: 91.3 kB / 286.3 MB, free: 5.262 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 8.125e-06/8.286e-06, allocations: 4 kB / 343.1 MB, free: 8.66 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09596/0.09599, allocations: 51.48 MB / 394.6 MB, free: 5.125 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2897/0.3857, allocations: 83.33 MB / 478 MB, free: 9.859 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002185/0.386, allocations: 77.16 kB / 478 MB, free: 9.836 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.04101/0.427, allocations: 15.37 MB / 493.4 MB, free: 13.55 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.768e-05/0.4271, allocations: 20 kB / 493.4 MB, free: 13.54 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 127 * Number of variables: 127 Notification: Performance of Generate backend data structure: time 0.002639/0.4298, allocations: 0.9883 MB / 494.4 MB, free: 12.54 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.245e-05/0.4299, allocations: 12.03 kB / 494.4 MB, free: 12.53 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000402/0.4303, allocations: 98.88 kB / 494.5 MB, free: 12.43 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001095/0.4314, allocations: 487.5 kB / 495 MB, free: 11.99 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001754/0.4316, allocations: 84.7 kB / 495.1 MB, free: 11.89 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001167/0.4317, allocations: 35.88 kB / 495.1 MB, free: 11.86 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009054/0.4326, allocations: 409.1 kB / 495.5 MB, free: 11.61 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001084/0.4337, allocations: 0.6577 MB / 496.2 MB, free: 10.99 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.81e-05/0.4338, allocations: 9.719 kB / 496.2 MB, free: 10.98 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.22e-05/0.4338, allocations: 0 / 496.2 MB, free: 10.98 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.98e-05/0.4338, allocations: 15.91 kB / 496.2 MB, free: 10.96 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00405/0.4379, allocations: 1.947 MB / 498.1 MB, free: 9.414 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001056/0.439, allocations: 461 kB / 498.6 MB, free: 9.09 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000416/0.4394, allocations: 210.7 kB / 498.8 MB, free: 8.969 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.422e-05/0.4395, allocations: 18.16 kB / 498.8 MB, free: 8.953 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005058/0.44, allocations: 266.8 kB / 499.1 MB, free: 8.762 MB / 362.7 MB Notification: Performance of pre-optimization done (n=59): time 3.096e-06/0.44, allocations: 3.938 kB / 499.1 MB, free: 8.758 MB / 362.7 MB Notification: Performance of matching and sorting (n=59): time 0.001975/0.442, allocations: 0.7078 MB / 499.8 MB, free: 8.195 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003943/0.4424, allocations: 0.8188 MB / 0.4889 GB, free: 7.18 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006929/0.4431, allocations: 464.7 kB / 0.4893 GB, free: 6.828 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.772e-05/0.4432, allocations: 33.2 kB / 0.4893 GB, free: 6.793 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001705/0.4434, allocations: 236.5 kB / 0.4896 GB, free: 6.586 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001779/0.4436, allocations: 189 kB / 0.4897 GB, free: 6.422 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.968e-05/0.4436, allocations: 1.406 kB / 0.4897 GB, free: 6.422 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001676/0.4438, allocations: 381.1 kB / 0.4901 GB, free: 6.07 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002941/0.4441, allocations: 161.7 kB / 0.4903 GB, free: 5.98 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005558/0.4446, allocations: 465.2 kB / 0.4907 GB, free: 5.508 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003783/0.445, allocations: 211.3 kB / 0.4909 GB, free: 5.371 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/0.445, allocations: 4 kB / 0.4909 GB, free: 5.367 MB / 362.7 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001834/0.4469, allocations: 0.7674 MB / 0.4917 GB, free: 4.762 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.747e-05/0.4469, allocations: 4 kB / 0.4917 GB, free: 4.758 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.047e-05/0.4469, allocations: 4 kB / 0.4917 GB, free: 4.754 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007628/0.4477, allocations: 215.8 kB / 0.4919 GB, free: 4.59 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007234/0.4484, allocations: 130.5 kB / 0.492 GB, free: 4.469 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005796/0.4542, allocations: 3.881 MB / 0.4958 GB, free: 0.7578 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008657/0.4551, allocations: 87.48 kB / 0.4959 GB, free: 0.6719 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.746e-05/0.4552, allocations: 25.86 kB / 0.4959 GB, free: 0.6484 MB / 362.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: ambient1.flowPort.h:VARIABLE(flow=false unit = "J/kg" ) type: Real idealPump.flowPort_b.h:VARIABLE(flow=false unit = "J/kg" ) type: Real oneWayValve.flowPort_a.h:VARIABLE(flow=false unit = "J/kg" ) type: Real oneWayValve.flowPort_b.h:VARIABLE(flow=false unit = "J/kg" ) type: Real ambient2.flowPort.h:VARIABLE(flow=false unit = "J/kg" ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.trapezoid.T_start,trapezoid.T_start,$PRE.trapezoid.count,trapezoid.count,oneWayValve.backward) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (50): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {9 3,1 11} Notification: Performance of prepare postOptimizeDAE: time 0.0003122/0.4555, allocations: 135.7 kB / 0.496 GB, free: 0.5156 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001862/0.4557, allocations: 75.16 kB / 0.4961 GB, free: 452 kB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000202/0.4559, allocations: 82.45 kB / 0.4962 GB, free: 372 kB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.891e-06/0.456, allocations: 8 kB / 0.4962 GB, free: 364 kB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.333e-06/0.456, allocations: 0 / 0.4962 GB, free: 364 kB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00169/0.4577, allocations: 0.9663 MB / 0.4971 GB, free: 15.28 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002599/0.4603, allocations: 1.383 MB / 0.4985 GB, free: 13.84 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.679e-06/0.4603, allocations: 0 / 0.4985 GB, free: 13.84 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007238/0.461, allocations: 123.8 kB / 0.4986 GB, free: 13.71 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004896/0.4615, allocations: 139.2 kB / 0.4987 GB, free: 13.57 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.142e-05/0.4616, allocations: 7.984 kB / 0.4987 GB, free: 13.57 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004067/0.4657, allocations: 3.351 MB / 0.502 GB, free: 9.988 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.272e-06/0.4657, allocations: 3.938 kB / 0.502 GB, free: 9.984 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001663/0.4674, allocations: 0.8801 MB / 0.5029 GB, free: 9.082 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004119/0.4678, allocations: 220 kB / 0.5031 GB, free: 8.848 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001684/0.468, allocations: 4.125 kB / 0.5031 GB, free: 8.844 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005621/0.4685, allocations: 43.97 kB / 0.5031 GB, free: 8.801 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000123/0.4687, allocations: 40.42 kB / 0.5032 GB, free: 8.762 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.143e-05/0.4687, allocations: 16 kB / 0.5032 GB, free: 8.746 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0005432/0.4693, allocations: 354.8 kB / 0.5035 GB, free: 8.402 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001213/0.4705, allocations: 231.6 kB / 0.5037 GB, free: 8.176 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (speed.phi) * Number of discrete variables: 4 ($whenCondition1,trapezoid.T_start,trapezoid.count,oneWayValve.backward) * Number of discrete states: 1 (trapezoid.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (44): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 3,1 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002789/0.4708, allocations: 123.2 kB / 0.5039 GB, free: 8.047 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001594/0.4724, allocations: 0.7841 MB / 0.5046 GB, free: 7.23 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.139e-06/0.4724, allocations: 4 kB / 0.5046 GB, free: 7.227 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007166/0.4731, allocations: 461.2 kB / 0.5051 GB, free: 6.758 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009647/0.4741, allocations: 167.3 kB / 0.5052 GB, free: 6.602 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002318/0.4764, allocations: 0.8572 MB / 0.5061 GB, free: 5.711 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006767/0.4771, allocations: 0.986 MB / 0.507 GB, free: 4.699 MB / 378.7 MB Notification: Performance of SimCode: time 1.703e-06/0.4771, allocations: 0 / 0.507 GB, free: 4.699 MB / 378.7 MB Notification: Performance of Templates: time 0.02609/0.5032, allocations: 13.47 MB / 0.5202 GB, free: 7.527 MB / 394.7 MB make -j1 -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.makefile (rm -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe >> ../files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.sim & ./Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/WaterPump/WaterPump.csv","../files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches