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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007457/0.0007457, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001183/0.001928, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0006791/0.0006791, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009952/0.001674, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.006/1.006, allocations: 173.4 MB / 185.9 MB, free: 8.922 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1001/1.106, allocations: 52.49 MB / 238.4 MB, free: 4.363 MB / 234.7 MB " [Timeout remaining time 179] 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,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=2000,variableFilter="time|speed.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.252e-06/1.252e-06, allocations: 0 / 239.7 MB, free: 3.09 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.452e-05/2.577e-05, allocations: 3.438 kB / 239.7 MB, free: 3.086 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.00563/0.005656, allocations: 4.836 MB / 244.6 MB, free: 14.23 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002958/0.008614, allocations: 1.401 MB / 246 MB, free: 12.82 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005033/0.009117, allocations: 11.94 kB / 246 MB, free: 12.81 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004128/0.00953, allocations: 154.7 kB / 246.1 MB, free: 12.66 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008588/0.01039, allocations: 357.1 kB / 246.5 MB, free: 12.3 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000526/0.01091, allocations: 231.5 kB / 246.7 MB, free: 12.08 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0013/0.01221, allocations: 1.08 MB / 247.8 MB, free: 11 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003622/0.01258, allocations: 204.3 kB / 248 MB, free: 10.77 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001151/0.01373, allocations: 0.7255 MB / 248.7 MB, free: 10.05 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005347/0.01426, allocations: 327.1 kB / 249 MB, free: 9.727 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001785/0.01444, allocations: 88 kB / 249.1 MB, free: 9.641 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001762/0.01462, allocations: 88 kB / 249.2 MB, free: 9.555 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001379/0.01476, allocations: 139.5 kB / 249.3 MB, free: 9.418 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003647/0.01512, allocations: 279.5 kB / 249.6 MB, free: 9.145 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007428/0.01586, allocations: 0.6344 MB / 250.2 MB, free: 8.508 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.473e-05/0.01588, allocations: 4 kB / 250.2 MB, free: 8.504 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.01588, allocations: 0 / 250.2 MB, free: 8.504 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.076e-05/0.01591, allocations: 0 / 250.2 MB, free: 8.504 MB / 250.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.00182/0.01773, allocations: 1.283 MB / 251.5 MB, free: 7.176 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.446e-05/0.01776, allocations: 8.031 kB / 251.5 MB, free: 7.168 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001876/0.01795, allocations: 116.8 kB / 251.6 MB, free: 7.055 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005695/0.01852, allocations: 353.4 kB / 252 MB, free: 6.68 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001576/0.01868, allocations: 156.7 kB / 252.1 MB, free: 6.5 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.397e-05/0.01877, allocations: 64.38 kB / 252.2 MB, free: 6.438 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001081/0.01985, allocations: 1.39 MB / 253.6 MB, free: 4.758 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.989e-05/0.01987, allocations: 192 / 253.6 MB, free: 4.758 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.725e-05/0.01993, allocations: 28.12 kB / 253.6 MB, free: 4.73 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.416e-05/0.01994, allocations: 12 kB / 253.6 MB, free: 4.719 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000352/0.0203, allocations: 166.9 kB / 253.8 MB, free: 4.555 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002278/0.02257, allocations: 1.244 MB / 255 MB, free: 3.254 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005096/0.02308, allocations: 240.8 kB / 255.3 MB, free: 3.008 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001638/0.02325, allocations: 102.2 kB / 255.4 MB, free: 2.902 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.248e-05/0.02329, allocations: 16.44 kB / 255.4 MB, free: 2.887 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003221/0.02361, allocations: 198.2 kB / 255.6 MB, free: 2.68 MB / 250.7 MB Notification: Performance of pre-optimization done (n=56): time 3.176e-06/0.02362, allocations: 0 / 255.6 MB, free: 2.68 MB / 250.7 MB Notification: Performance of matching and sorting (n=56): time 0.002366/0.02598, allocations: 0.8073 MB / 256.4 MB, free: 1.859 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.683e-05/0.02603, allocations: 63.91 kB / 256.5 MB, free: 1.785 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004424/0.02647, allocations: 475.1 kB / 256.9 MB, free: 1.309 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 6.132e-05/0.02653, allocations: 41.7 kB / 257 MB, free: 1.262 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001815/0.02671, allocations: 270.2 kB / 257.2 MB, free: 0.9961 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001629/0.02688, allocations: 206.2 kB / 257.4 MB, free: 0.793 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001726/0.02705, allocations: 118.3 kB / 257.5 MB, free: 0.6719 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001393/0.02719, allocations: 390.6 kB / 257.9 MB, free: 288 kB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000177/0.02737, allocations: 120.7 kB / 258 MB, free: 152 kB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006255/0.02799, allocations: 1.161 MB / 259.2 MB, free: 14.67 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004247/0.02842, allocations: 333.7 kB / 259.5 MB, free: 14.3 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.352e-06/0.02842, allocations: 4 kB / 259.5 MB, free: 14.3 MB / 266.7 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001074/0.0295, allocations: 0.5533 MB / 260.1 MB, free: 13.71 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.466e-05/0.02956, allocations: 59.41 kB / 260.1 MB, free: 13.64 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.957e-06/0.02957, allocations: 0 / 260.1 MB, free: 13.64 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004478/0.03002, allocations: 149.7 kB / 260.3 MB, free: 13.49 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005062/0.03052, allocations: 142.3 kB / 260.4 MB, free: 13.35 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003705/0.03423, allocations: 3.301 MB / 263.7 MB, free: 9.875 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005774/0.03481, allocations: 67.64 kB / 263.8 MB, free: 9.809 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.023e-05/0.03486, allocations: 16 kB / 263.8 MB, free: 9.793 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 6 (oneWayValve.backward,trapezoid.count,$PRE.trapezoid.count,trapezoid.T_start,$PRE.trapezoid.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(9,3), (1,11)} Notification: Performance of prepare postOptimizeDAE: time 0.0002815/0.03514, allocations: 165.7 kB / 264 MB, free: 9.621 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001169/0.03525, allocations: 71.86 kB / 264 MB, free: 9.551 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001133/0.03537, allocations: 74.56 kB / 264.1 MB, free: 9.473 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.611e-06/0.03537, allocations: 4 kB / 264.1 MB, free: 9.469 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.03538, allocations: 0 / 264.1 MB, free: 9.469 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000849/0.03623, allocations: 0.7219 MB / 264.8 MB, free: 8.633 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001395/0.03762, allocations: 0.8138 MB / 265.7 MB, free: 7.777 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.261e-06/0.03763, allocations: 11.94 kB / 265.7 MB, free: 7.766 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000463/0.03809, allocations: 127.8 kB / 265.8 MB, free: 7.641 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002413/0.03833, allocations: 79.39 kB / 265.9 MB, free: 7.562 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000309/0.03864, allocations: 117.9 kB / 266 MB, free: 7.441 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.94e-05/0.03867, allocations: 7.984 kB / 266 MB, free: 7.434 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002835/0.04151, allocations: 2.938 MB / 268.9 MB, free: 4.328 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.04151, allocations: 0 / 268.9 MB, free: 4.328 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009501/0.04246, allocations: 0.5316 MB / 269.5 MB, free: 3.77 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001486/0.04261, allocations: 23.92 kB / 269.5 MB, free: 3.746 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003893/0.043, allocations: 31.97 kB / 269.5 MB, free: 3.715 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001402/0.04314, allocations: 56.34 kB / 269.6 MB, free: 3.66 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.866e-05/0.04317, allocations: 15.98 kB / 269.6 MB, free: 3.645 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002596/0.04342, allocations: 216.3 kB / 269.8 MB, free: 3.434 MB / 266.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.04342, allocations: 0 / 269.8 MB, free: 3.434 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0008361/0.04426, allocations: 263.8 kB / 270.1 MB, free: 3.176 MB / 266.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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,3), (1,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001986/0.04446, allocations: 96.36 kB / 270.1 MB, free: 3.07 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.002223/0.04668, allocations: 0.8089 MB / 271 MB, free: 2.195 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.192e-05/0.04671, allocations: 12 kB / 271 MB, free: 2.184 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000485/0.0472, allocations: 458.5 kB / 271.4 MB, free: 1.711 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001293/0.04849, allocations: 2.005 MB / 273.4 MB, free: 15.32 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009235/0.05773, allocations: 1.241 MB / 274.7 MB, free: 14.05 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001086/0.05784, allocations: 160.4 kB / 274.8 MB, free: 13.87 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002228/0.05806, allocations: 89.2 kB / 274.9 MB, free: 13.78 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004927/0.05855, allocations: 353 kB / 275.3 MB, free: 13.43 MB / 282.7 MB Notification: Performance of SimCode: time 1.934e-06/0.05855, allocations: 0 / 275.3 MB, free: 13.43 MB / 282.7 MB Notification: Performance of Templates: time 0.1165/0.1751, allocations: 20.01 MB / 295.3 MB, free: 37.95 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.makefile [Timeout 660] (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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.081675768829882]