Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.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) 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(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|speed.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|speed.phi",fileNamePrefix="Modelica_4.0.0_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 4.0.0+maint.om/package.mo): time 0.001066/0.001066, allocations: 183.4 kB / 8.136 MB, free: 2.207 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.164/1.164, allocations: 221.4 MB / 229.9 MB, free: 3.367 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.0009552/0.0009552, allocations: 104.6 kB / 280.8 MB, free: 1.281 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 5.831e-06/5.941e-06, allocations: 0 / 336.5 MB, free: 9.551 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2075/0.2075, allocations: 50.4 MB / 386.9 MB, free: 38.07 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08905/0.2966, allocations: 82.55 MB / 469.5 MB, free: 4.223 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002034/0.2968, allocations: 79.89 kB / 469.5 MB, free: 4.145 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.04115/0.338, allocations: 15.34 MB / 484.9 MB, free: 4.75 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.686e-05/0.338, allocations: 12 kB / 484.9 MB, free: 4.738 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.001768/0.3398, allocations: 0.9916 MB / 485.9 MB, free: 3.688 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.728e-05/0.3399, allocations: 8.031 kB / 485.9 MB, free: 3.68 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001649/0.34, allocations: 102.9 kB / 486 MB, free: 3.578 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007142/0.3408, allocations: 482.6 kB / 486.5 MB, free: 3.066 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001514/0.3409, allocations: 88.72 kB / 486.6 MB, free: 2.969 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.642e-05/0.341, allocations: 31.98 kB / 486.6 MB, free: 2.938 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007674/0.3418, allocations: 406.5 kB / 487 MB, free: 2.539 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009475/0.3427, allocations: 0.6652 MB / 487.6 MB, free: 1.766 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.905e-05/0.3428, allocations: 0 / 487.6 MB, free: 1.766 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.237e-05/0.3428, allocations: 4 kB / 487.6 MB, free: 1.762 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.415e-05/0.3429, allocations: 12 kB / 487.7 MB, free: 1.75 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00351/0.3464, allocations: 1.956 MB / 489.6 MB, free: 15.71 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009339/0.3473, allocations: 457.9 kB / 490.1 MB, free: 15.25 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003433/0.3477, allocations: 210.3 kB / 490.3 MB, free: 15.04 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.437e-05/0.3477, allocations: 12.5 kB / 490.3 MB, free: 15.03 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004272/0.3482, allocations: 269.2 kB / 490.5 MB, free: 14.75 MB / 378.7 MB Notification: Performance of pre-optimization done (n=59): time 2.224e-06/0.3482, allocations: 4 kB / 490.5 MB, free: 14.75 MB / 378.7 MB Notification: Performance of matching and sorting (n=59): time 0.001883/0.3501, allocations: 0.7079 MB / 491.3 MB, free: 14.03 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004096/0.3505, allocations: 0.8271 MB / 492.1 MB, free: 13 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005726/0.3511, allocations: 446.6 kB / 492.5 MB, free: 12.56 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.291e-05/0.3512, allocations: 29.7 kB / 492.5 MB, free: 12.52 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001941/0.3514, allocations: 248.5 kB / 492.8 MB, free: 12.28 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000181/0.3516, allocations: 189.2 kB / 493 MB, free: 12.09 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.854e-05/0.3516, allocations: 0 / 493 MB, free: 12.09 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001721/0.3518, allocations: 378.7 kB / 493.3 MB, free: 11.71 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002976/0.3521, allocations: 165.3 kB / 493.5 MB, free: 11.55 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004998/0.3526, allocations: 469.1 kB / 494 MB, free: 10.97 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003467/0.3529, allocations: 199.9 kB / 494.2 MB, free: 10.77 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.729e-06/0.3529, allocations: 4 kB / 494.2 MB, free: 10.77 MB / 378.7 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001826/0.3548, allocations: 0.7817 MB / 494.9 MB, free: 9.973 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.52e-05/0.3548, allocations: 4 kB / 494.9 MB, free: 9.969 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.135e-06/0.3548, allocations: 0 / 494.9 MB, free: 9.969 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007414/0.3556, allocations: 210.5 kB / 495.2 MB, free: 9.758 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007324/0.3563, allocations: 131.8 kB / 495.3 MB, free: 9.629 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005136/0.3615, allocations: 3.895 MB / 499.2 MB, free: 5.504 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007067/0.3622, allocations: 71.5 kB / 499.2 MB, free: 5.434 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.424e-05/0.3623, allocations: 27.98 kB / 499.3 MB, free: 5.406 MB / 378.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.0002198/0.3625, allocations: 131.7 kB / 499.4 MB, free: 5.273 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001313/0.3626, allocations: 75.16 kB / 499.5 MB, free: 5.199 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001578/0.3628, allocations: 70.55 kB / 499.5 MB, free: 5.133 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.291e-06/0.3628, allocations: 11.84 kB / 499.6 MB, free: 5.121 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.3628, allocations: 4 kB / 499.6 MB, free: 5.117 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0016/0.3644, allocations: 0.97 MB / 0.4888 GB, free: 4.035 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002217/0.3666, allocations: 1.387 MB / 0.4902 GB, free: 2.586 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/0.3667, allocations: 4 kB / 0.4902 GB, free: 2.582 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007303/0.3674, allocations: 119.8 kB / 0.4903 GB, free: 2.465 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004655/0.3679, allocations: 145.6 kB / 0.4904 GB, free: 2.316 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.799e-05/0.3679, allocations: 3.984 kB / 0.4904 GB, free: 2.312 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1658/0.5337, allocations: 3.335 MB / 0.4937 GB, free: 75.06 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.967e-06/0.5338, allocations: 3.828 kB / 0.4937 GB, free: 75.06 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001439/0.5352, allocations: 0.8861 MB / 0.4945 GB, free: 74.92 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003026/0.5355, allocations: 217.8 kB / 0.4947 GB, free: 74.82 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001128/0.5357, allocations: 5.188 kB / 0.4948 GB, free: 74.82 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004926/0.5362, allocations: 43.86 kB / 0.4948 GB, free: 74.82 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001012/0.5363, allocations: 43.52 kB / 0.4948 GB, free: 74.82 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.673e-05/0.5363, allocations: 22.53 kB / 0.4949 GB, free: 74.82 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0003654/0.5367, allocations: 348.1 kB / 0.4952 GB, free: 74.74 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007128/0.5374, allocations: 229.1 kB / 0.4954 GB, free: 74.73 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.000191/0.5376, allocations: 139.8 kB / 0.4955 GB, free: 74.64 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001183/0.5388, allocations: 0.7861 MB / 0.4963 GB, free: 74.37 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.5388, allocations: 3.125 kB / 0.4963 GB, free: 74.37 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005331/0.5394, allocations: 451.6 kB / 0.4967 GB, free: 74.17 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006815/0.54, allocations: 168.4 kB / 0.4969 GB, free: 74.17 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00172/0.5418, allocations: 0.8564 MB / 0.4977 GB, free: 73.9 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004311/0.5422, allocations: 0.9951 MB / 0.4987 GB, free: 73.19 MB / 378.7 MB Notification: Performance of SimCode: time 4.21e-07/0.5422, allocations: 0 / 0.4987 GB, free: 73.19 MB / 378.7 MB Notification: Performance of Templates: time 0.01979/0.562, allocations: 13.49 MB / 0.5119 GB, free: 72.11 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.makefile (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.sim & ./Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches