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.0007303/0.0007303, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009181/0.001648, allocations: 449.7 kB / 10.37 MB, free: 332 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.0006402/0.0006402, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008177/0.001458, allocations: 459.6 kB / 11.69 MB, free: 2.48 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 0.8957/0.8957, allocations: 173.4 MB / 185.8 MB, free: 8.992 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0776/0.9733, allocations: 52.49 MB / 238.3 MB, free: 4.441 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.112e-06/1.112e-06, allocations: 0 / 239.5 MB, free: 3.188 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.391e-05/1.502e-05, allocations: 2.312 kB / 239.5 MB, free: 3.184 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.004128/0.004143, allocations: 4.83 MB / 244.4 MB, free: 14.33 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002028/0.006171, allocations: 1.397 MB / 245.8 MB, free: 12.93 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002548/0.006426, allocations: 11.94 kB / 245.8 MB, free: 12.91 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002356/0.006661, allocations: 158.7 kB / 245.9 MB, free: 12.76 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004735/0.007135, allocations: 361.1 kB / 246.3 MB, free: 12.4 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003663/0.007501, allocations: 219.5 kB / 246.5 MB, free: 12.19 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007438/0.008245, allocations: 1.077 MB / 247.6 MB, free: 11.11 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002436/0.008488, allocations: 204.3 kB / 247.8 MB, free: 10.88 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006279/0.009116, allocations: 0.7255 MB / 248.5 MB, free: 10.16 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003014/0.009418, allocations: 323.1 kB / 248.8 MB, free: 9.84 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 9.073e-05/0.009508, allocations: 92 kB / 248.9 MB, free: 9.75 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.784e-05/0.009596, allocations: 88 kB / 249 MB, free: 9.664 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 9.245e-05/0.009689, allocations: 139.5 kB / 249.1 MB, free: 9.527 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002207/0.009909, allocations: 279.5 kB / 249.4 MB, free: 9.254 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005625/0.01047, allocations: 0.6305 MB / 250 MB, free: 8.621 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.467e-05/0.01049, allocations: 0 / 250 MB, free: 8.621 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.41e-07/0.01049, allocations: 0 / 250 MB, free: 8.621 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.669e-05/0.0105, allocations: 0 / 250 MB, free: 8.621 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.001479/0.01198, allocations: 1.295 MB / 251.3 MB, free: 7.281 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.143e-05/0.01201, allocations: 8.031 kB / 251.3 MB, free: 7.273 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001145/0.01213, allocations: 116.8 kB / 251.5 MB, free: 7.16 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003944/0.01252, allocations: 357.4 kB / 251.8 MB, free: 6.781 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001191/0.01264, allocations: 156.7 kB / 252 MB, free: 6.602 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.207e-05/0.0127, allocations: 64.38 kB / 252 MB, free: 6.539 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007313/0.01344, allocations: 1.383 MB / 253.4 MB, free: 4.867 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.496e-05/0.01345, allocations: 192 / 253.4 MB, free: 4.867 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.373e-05/0.01348, allocations: 32.12 kB / 253.4 MB, free: 4.836 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.865e-06/0.01349, allocations: 16 kB / 253.5 MB, free: 4.82 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002241/0.01372, allocations: 166.9 kB / 253.6 MB, free: 4.656 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001579/0.0153, allocations: 1.236 MB / 254.9 MB, free: 3.367 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000353/0.01565, allocations: 244.8 kB / 255.1 MB, free: 3.113 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001035/0.01575, allocations: 98.31 kB / 255.2 MB, free: 3.016 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.756e-05/0.01579, allocations: 12.48 kB / 255.2 MB, free: 3.004 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002215/0.01601, allocations: 210 kB / 255.4 MB, free: 2.785 MB / 250.7 MB Notification: Performance of pre-optimization done (n=56): time 1.913e-06/0.01601, allocations: 0 / 255.4 MB, free: 2.785 MB / 250.7 MB Notification: Performance of matching and sorting (n=56): time 0.001542/0.01755, allocations: 0.8074 MB / 256.2 MB, free: 1.965 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.616e-05/0.01759, allocations: 63.91 kB / 256.3 MB, free: 1.887 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002686/0.01786, allocations: 479.1 kB / 256.7 MB, free: 1.406 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.538e-05/0.01789, allocations: 41.69 kB / 256.8 MB, free: 1.359 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001204/0.01802, allocations: 274.2 kB / 257 MB, free: 1.09 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.964e-05/0.01811, allocations: 194.2 kB / 257.2 MB, free: 0.8984 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001205/0.01824, allocations: 122.3 kB / 257.4 MB, free: 0.7734 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0003395/0.01857, allocations: 390.5 kB / 257.7 MB, free: 392 kB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001089/0.01868, allocations: 120.7 kB / 257.9 MB, free: 256 kB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000416/0.0191, allocations: 1.157 MB / 259 MB, free: 14.78 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002607/0.01936, allocations: 329.7 kB / 259.3 MB, free: 14.41 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.01936, allocations: 0 / 259.3 MB, free: 14.41 MB / 266.7 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0005784/0.01994, allocations: 0.5533 MB / 259.9 MB, free: 13.82 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.443e-05/0.01999, allocations: 59.41 kB / 259.9 MB, free: 13.75 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.324e-06/0.01999, allocations: 4 kB / 260 MB, free: 13.75 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002635/0.02026, allocations: 137.7 kB / 260.1 MB, free: 13.61 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003177/0.02057, allocations: 151.7 kB / 260.2 MB, free: 13.46 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002359/0.02293, allocations: 3.297 MB / 263.5 MB, free: 9.984 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003072/0.02324, allocations: 71.64 kB / 263.6 MB, free: 9.914 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.528e-05/0.02327, allocations: 20 kB / 263.6 MB, free: 9.895 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.0001515/0.02342, allocations: 153.7 kB / 263.8 MB, free: 9.734 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.314e-05/0.02348, allocations: 75.84 kB / 263.8 MB, free: 9.66 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.633e-05/0.02356, allocations: 78.56 kB / 263.9 MB, free: 9.578 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.447e-06/0.02356, allocations: 4 kB / 263.9 MB, free: 9.574 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.635e-06/0.02356, allocations: 0 / 263.9 MB, free: 9.574 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007124/0.02428, allocations: 0.718 MB / 264.6 MB, free: 8.75 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008296/0.02511, allocations: 0.8177 MB / 265.5 MB, free: 7.887 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.997e-06/0.02511, allocations: 3.938 kB / 265.5 MB, free: 7.883 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003023/0.02541, allocations: 127.8 kB / 265.6 MB, free: 7.758 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001364/0.02555, allocations: 83.39 kB / 265.7 MB, free: 7.676 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001864/0.02573, allocations: 117.5 kB / 265.8 MB, free: 7.555 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.926e-05/0.02575, allocations: 8 kB / 265.8 MB, free: 7.547 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001667/0.02742, allocations: 2.942 MB / 268.7 MB, free: 4.441 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.02742, allocations: 0 / 268.7 MB, free: 4.441 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005018/0.02792, allocations: 0.5159 MB / 269.3 MB, free: 3.902 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.733e-05/0.02798, allocations: 23.92 kB / 269.3 MB, free: 3.879 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000228/0.02821, allocations: 32.05 kB / 269.3 MB, free: 3.848 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.532e-05/0.02829, allocations: 64.33 kB / 269.4 MB, free: 3.785 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.76e-05/0.02831, allocations: 11.98 kB / 269.4 MB, free: 3.773 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001415/0.02845, allocations: 216.4 kB / 269.6 MB, free: 3.562 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02845, allocations: 0 / 269.6 MB, free: 3.562 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004463/0.0289, allocations: 255.7 kB / 269.8 MB, free: 3.312 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.0001113/0.02901, allocations: 108.3 kB / 269.9 MB, free: 3.195 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0006698/0.02968, allocations: 0.7921 MB / 270.7 MB, free: 2.336 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.35e-05/0.02969, allocations: 12 kB / 270.8 MB, free: 2.324 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000291/0.02999, allocations: 434.3 kB / 271.2 MB, free: 1.871 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004698/0.03046, allocations: 302.6 kB / 271.5 MB, free: 1.582 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009279/0.03973, allocations: 1.261 MB / 272.7 MB, free: 300 kB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001087/0.03984, allocations: 156.3 kB / 272.9 MB, free: 124 kB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002445/0.04009, allocations: 85.12 kB / 273 MB, free: 36 kB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004842/0.04057, allocations: 341 kB / 273.3 MB, free: 15.7 MB / 282.7 MB Notification: Performance of SimCode: time 1.563e-06/0.04057, allocations: 0 / 273.3 MB, free: 15.7 MB / 282.7 MB Notification: Performance of Templates: time 0.1092/0.1498, allocations: 19.53 MB / 292.8 MB, free: 40.71 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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.0507470248267055]