Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001005/0.001005, allocations: 71.77 kB / 21.69 MB, free: 2.855 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001001/0.001001, allocations: 167.3 kB / 24.99 MB, free: 8.746 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9143/0.9143, allocations: 177.1 MB / 205.3 MB, free: 5.645 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.473e-06/1.473e-06, allocations: 0 / 273 MB, free: 1.863 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.178e-05/1.326e-05, allocations: 6.312 kB / 273 MB, free: 1.855 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.003661/0.003674, allocations: 4.84 MB / 277.9 MB, free: 13 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00132/0.004994, allocations: 1.367 MB / 279.3 MB, free: 11.62 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001631/0.005157, allocations: 11.94 kB / 279.3 MB, free: 11.61 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002755/0.005433, allocations: 150.7 kB / 279.4 MB, free: 11.46 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004114/0.005844, allocations: 361.1 kB / 279.8 MB, free: 11.11 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002571/0.006101, allocations: 223.5 kB / 280 MB, free: 10.89 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000636/0.006737, allocations: 1.069 MB / 281.1 MB, free: 9.812 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002187/0.006956, allocations: 198.4 kB / 281.2 MB, free: 9.609 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004588/0.007415, allocations: 0.6004 MB / 281.8 MB, free: 9.008 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000292/0.007707, allocations: 339 kB / 282.2 MB, free: 8.676 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.083e-05/0.007788, allocations: 88 kB / 282.3 MB, free: 8.59 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.423e-05/0.007872, allocations: 92 kB / 282.4 MB, free: 8.5 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001088/0.007981, allocations: 203.3 kB / 282.6 MB, free: 8.301 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000221/0.008202, allocations: 335.3 kB / 282.9 MB, free: 7.973 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005074/0.008709, allocations: 0.7201 MB / 283.6 MB, free: 7.25 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.813e-06/0.008711, allocations: 0 / 283.6 MB, free: 7.25 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.054e-06/0.008713, allocations: 4 kB / 283.6 MB, free: 7.246 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.791e-06/0.008719, allocations: 0 / 283.6 MB, free: 7.246 MB / 266.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.001226/0.009945, allocations: 1.26 MB / 284.9 MB, free: 5.934 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.126e-05/0.009976, allocations: 12.03 kB / 284.9 MB, free: 5.922 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001482/0.01012, allocations: 140.4 kB / 285 MB, free: 5.785 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004573/0.01058, allocations: 457.2 kB / 285.5 MB, free: 5.305 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001055/0.01069, allocations: 152.7 kB / 285.6 MB, free: 5.133 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.732e-05/0.01075, allocations: 64.38 kB / 285.7 MB, free: 5.07 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009053/0.01166, allocations: 1.487 MB / 287.2 MB, free: 3.258 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.55e-05/0.01168, allocations: 4.125 kB / 287.2 MB, free: 3.254 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.967e-05/0.01171, allocations: 28.12 kB / 287.2 MB, free: 3.227 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.172e-05/0.01173, allocations: 19.98 kB / 287.2 MB, free: 3.207 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003806/0.01211, allocations: 253.8 kB / 287.5 MB, free: 2.957 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001773/0.01388, allocations: 1.712 MB / 289.2 MB, free: 1.16 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004584/0.01434, allocations: 314.7 kB / 289.5 MB, free: 0.8359 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002613/0.0146, allocations: 137.1 kB / 289.6 MB, free: 0.6992 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.508e-05/0.01464, allocations: 16.48 kB / 289.6 MB, free: 0.6836 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002775/0.01491, allocations: 223.9 kB / 289.8 MB, free: 456 kB / 266.7 MB Notification: Performance of pre-optimization done (n=56): time 2.234e-06/0.01491, allocations: 0 / 289.8 MB, free: 456 kB / 266.7 MB Notification: Performance of matching and sorting (n=56): time 0.09704/0.112, allocations: 0.98 MB / 290.8 MB, free: 28.96 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001127/0.1121, allocations: 0.823 MB / 291.6 MB, free: 27.96 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005162/0.1126, allocations: 0.578 MB / 292.2 MB, free: 27.78 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.855e-05/0.1126, allocations: 42.73 kB / 292.3 MB, free: 27.75 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001852/0.1128, allocations: 404.8 kB / 292.7 MB, free: 27.61 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.7e-05/0.1129, allocations: 194 kB / 292.9 MB, free: 27.5 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001423/0.1131, allocations: 138.3 kB / 293 MB, free: 27.47 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.812e-05/0.1132, allocations: 0.5592 MB / 293.5 MB, free: 26.98 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001973/0.1134, allocations: 156 kB / 293.7 MB, free: 26.9 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003805/0.1137, allocations: 1.296 MB / 295 MB, free: 25.39 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003878/0.1141, allocations: 404.2 kB / 295.4 MB, free: 25.13 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/0.1141, allocations: 5 kB / 295.4 MB, free: 25.13 MB / 266.7 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0009682/0.1151, allocations: 0.7213 MB / 296.1 MB, free: 24.79 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.721e-05/0.1151, allocations: 60.59 kB / 296.2 MB, free: 24.73 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.506e-06/0.1151, allocations: 6.781 kB / 296.2 MB, free: 24.73 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003767/0.1155, allocations: 161.3 kB / 296.3 MB, free: 24.69 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003063/0.1158, allocations: 113.3 kB / 296.5 MB, free: 24.68 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002812/0.1186, allocations: 4.716 MB / 301.2 MB, free: 20.56 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003153/0.119, allocations: 77 kB / 301.2 MB, free: 20.53 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.838e-05/0.119, allocations: 22.58 kB / 301.3 MB, free: 20.52 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.0001407/0.1191, allocations: 207.2 kB / 301.5 MB, free: 20.33 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.38e-05/0.1192, allocations: 96.03 kB / 301.6 MB, free: 20.29 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.786e-05/0.1193, allocations: 75.39 kB / 301.6 MB, free: 20.23 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.419e-06/0.1193, allocations: 10.23 kB / 301.6 MB, free: 20.23 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.1193, allocations: 0.875 kB / 301.6 MB, free: 20.23 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000734/0.12, allocations: 0.8351 MB / 302.5 MB, free: 19.59 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001162/0.1212, allocations: 1.166 MB / 303.6 MB, free: 18.93 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/0.1212, allocations: 4.5 kB / 303.7 MB, free: 18.93 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002753/0.1215, allocations: 89.98 kB / 303.7 MB, free: 18.93 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002216/0.1217, allocations: 138.7 kB / 303.9 MB, free: 18.88 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.519e-05/0.1217, allocations: 15.84 kB / 303.9 MB, free: 18.87 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001847/0.1235, allocations: 4.301 MB / 308.2 MB, free: 14.89 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.1235, allocations: 0 / 308.2 MB, free: 14.89 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000792/0.1243, allocations: 0.7291 MB / 308.9 MB, free: 14.52 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001786/0.1245, allocations: 136.1 kB / 309.1 MB, free: 14.44 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.709e-05/0.1246, allocations: 22.42 kB / 309.1 MB, free: 14.43 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002662/0.1248, allocations: 43.48 kB / 309.1 MB, free: 14.41 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001122/0.125, allocations: 54.39 kB / 309.2 MB, free: 14.4 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.03e-05/0.125, allocations: 12.05 kB / 309.2 MB, free: 14.4 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002764/0.1253, allocations: 383.5 kB / 309.6 MB, free: 14.22 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1253, allocations: 0 / 309.6 MB, free: 14.22 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005117/0.1258, allocations: 256.7 kB / 309.8 MB, free: 14.18 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.0001056/0.1259, allocations: 124.3 kB / 309.9 MB, free: 14.07 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0008374/0.1267, allocations: 0.9727 MB / 310.9 MB, free: 13.4 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.1267, allocations: 6.812 kB / 310.9 MB, free: 13.4 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003666/0.1271, allocations: 0.5608 MB / 311.5 MB, free: 12.98 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005385/0.1276, allocations: 222.7 kB / 311.7 MB, free: 12.91 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001812/0.1294, allocations: 1.224 MB / 312.9 MB, free: 12.24 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.194e-05/0.1295, allocations: 155.2 kB / 313.1 MB, free: 12.16 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002027/0.1297, allocations: 84.73 kB / 313.1 MB, free: 12.13 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.923e-05/0.1298, allocations: 57.31 kB / 313.2 MB, free: 12.12 MB / 266.7 MB Notification: Performance of SimCode: time 7.51e-07/0.1298, allocations: 2.625 kB / 313.2 MB, free: 12.12 MB / 266.7 MB Notification: Performance of Templates: time 0.01423/0.144, allocations: 16.95 MB / 330.1 MB, free: 12.68 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; mkfifo Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe >> ../files/Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.sim & ./Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.156572561012581]