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.0009991/0.0009991, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001115/0.002114, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.0007191/0.0007191, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009649/0.001684, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 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.9036/0.9036, allocations: 177.2 MB / 189.8 MB, free: 5.246 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.07964/0.9832, allocations: 53.66 MB / 243.4 MB, free: 15.51 MB / 250.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.072e-06/1.072e-06, allocations: 0 / 244.7 MB, free: 14.23 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.662e-05/1.769e-05, allocations: 5.969 kB / 244.7 MB, free: 14.22 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.003773/0.003791, allocations: 4.848 MB / 249.6 MB, free: 9.348 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002041/0.005832, allocations: 1.425 MB / 251 MB, free: 7.914 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002827/0.006115, allocations: 15.88 kB / 251 MB, free: 7.898 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002451/0.00636, allocations: 158.7 kB / 251.1 MB, free: 7.742 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004666/0.006826, allocations: 361.1 kB / 251.5 MB, free: 7.387 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003548/0.007181, allocations: 215.5 kB / 251.7 MB, free: 7.176 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000798/0.007979, allocations: 1.082 MB / 252.8 MB, free: 6.094 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002358/0.008215, allocations: 216.3 kB / 253 MB, free: 5.867 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007639/0.008979, allocations: 0.7178 MB / 253.7 MB, free: 5.145 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003527/0.009331, allocations: 327.1 kB / 254 MB, free: 4.824 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 9.238e-05/0.009424, allocations: 88 kB / 254.1 MB, free: 4.738 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000107/0.009531, allocations: 88 kB / 254.2 MB, free: 4.652 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.502e-05/0.009616, allocations: 143.5 kB / 254.4 MB, free: 4.512 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002134/0.009829, allocations: 279.5 kB / 254.6 MB, free: 4.238 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004906/0.01032, allocations: 0.6266 MB / 255.3 MB, free: 3.609 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.769e-06/0.01033, allocations: 4 kB / 255.3 MB, free: 3.605 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.32e-07/0.01033, allocations: 0 / 255.3 MB, free: 3.605 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.32e-05/0.01034, allocations: 4 kB / 255.3 MB, free: 3.602 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.00118/0.01152, allocations: 1.295 MB / 256.6 MB, free: 2.262 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.508e-05/0.01155, allocations: 8.031 kB / 256.6 MB, free: 2.254 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001141/0.01166, allocations: 112.8 kB / 256.7 MB, free: 2.145 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003783/0.01204, allocations: 353.5 kB / 257 MB, free: 1.773 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.946e-05/0.01214, allocations: 144.7 kB / 257.2 MB, free: 1.609 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.205e-05/0.0122, allocations: 72.36 kB / 257.2 MB, free: 1.539 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007746/0.01298, allocations: 1.387 MB / 258.6 MB, free: 15.86 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.544e-05/0.01299, allocations: 4.141 kB / 258.6 MB, free: 15.86 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.508e-05/0.01303, allocations: 32.12 kB / 258.7 MB, free: 15.82 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.348e-06/0.01304, allocations: 12 kB / 258.7 MB, free: 15.81 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002335/0.01327, allocations: 174.8 kB / 258.8 MB, free: 15.64 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001446/0.01472, allocations: 1.244 MB / 260.1 MB, free: 14.34 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003115/0.01503, allocations: 241.9 kB / 260.3 MB, free: 14.09 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.97e-05/0.01513, allocations: 94.33 kB / 260.4 MB, free: 13.99 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.072e-05/0.01516, allocations: 16.5 kB / 260.4 MB, free: 13.98 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001982/0.01536, allocations: 206.1 kB / 260.6 MB, free: 13.77 MB / 266.7 MB Notification: Performance of pre-optimization done (n=56): time 1.813e-06/0.01536, allocations: 0 / 260.6 MB, free: 13.77 MB / 266.7 MB Notification: Performance of matching and sorting (n=56): time 0.00153/0.01689, allocations: 0.7958 MB / 261.4 MB, free: 12.96 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.666e-05/0.01693, allocations: 67.89 kB / 261.5 MB, free: 12.88 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002822/0.01721, allocations: 487 kB / 262 MB, free: 12.39 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.757e-05/0.01725, allocations: 41.7 kB / 262 MB, free: 12.34 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000112/0.01736, allocations: 266.3 kB / 262.3 MB, free: 12.08 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.641e-05/0.01746, allocations: 202.2 kB / 262.5 MB, free: 11.88 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001152/0.01757, allocations: 130.2 kB / 262.6 MB, free: 11.75 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001019/0.01767, allocations: 382.6 kB / 263 MB, free: 11.36 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001197/0.01779, allocations: 128.7 kB / 263.1 MB, free: 11.23 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004249/0.01822, allocations: 1.161 MB / 264.2 MB, free: 9.746 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002636/0.01848, allocations: 337.7 kB / 264.6 MB, free: 9.375 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.01848, allocations: 0 / 264.6 MB, free: 9.375 MB / 266.7 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0005979/0.01908, allocations: 0.5493 MB / 265.1 MB, free: 8.785 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.099e-05/0.01912, allocations: 59.41 kB / 265.2 MB, free: 8.715 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/0.01913, allocations: 4 kB / 265.2 MB, free: 8.711 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002506/0.01938, allocations: 145.7 kB / 265.3 MB, free: 8.562 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003117/0.01969, allocations: 135.8 kB / 265.5 MB, free: 8.43 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002447/0.02214, allocations: 3.297 MB / 268.8 MB, free: 4.961 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002945/0.02243, allocations: 71.59 kB / 268.8 MB, free: 4.891 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.135e-05/0.02245, allocations: 16.11 kB / 268.8 MB, free: 4.875 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.0001427/0.0226, allocations: 165.6 kB / 269 MB, free: 4.703 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.411e-05/0.02266, allocations: 75.86 kB / 269.1 MB, free: 4.629 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.159e-05/0.02273, allocations: 74.56 kB / 269.2 MB, free: 4.555 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.019e-06/0.02274, allocations: 4 kB / 269.2 MB, free: 4.551 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.136e-06/0.02274, allocations: 4 kB / 269.2 MB, free: 4.547 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005429/0.02328, allocations: 0.7141 MB / 269.9 MB, free: 3.719 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000951/0.02423, allocations: 0.81 MB / 270.7 MB, free: 2.871 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.567e-06/0.02424, allocations: 3.938 kB / 270.7 MB, free: 2.867 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003006/0.02454, allocations: 134.9 kB / 270.8 MB, free: 2.738 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001337/0.02467, allocations: 79.39 kB / 270.9 MB, free: 2.66 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001891/0.02486, allocations: 105.6 kB / 271 MB, free: 2.551 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.25e-05/0.02488, allocations: 19.92 kB / 271 MB, free: 2.531 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001868/0.02675, allocations: 2.939 MB / 274 MB, free: 15.42 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.02675, allocations: 7.938 kB / 274 MB, free: 15.41 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005204/0.02727, allocations: 0.5159 MB / 274.5 MB, free: 14.87 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.949e-05/0.02733, allocations: 19.94 kB / 274.5 MB, free: 14.85 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002324/0.02756, allocations: 35.97 kB / 274.5 MB, free: 14.82 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.825e-05/0.02766, allocations: 60.45 kB / 274.6 MB, free: 14.76 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.824e-05/0.02768, allocations: 12 kB / 274.6 MB, free: 14.75 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001551/0.02784, allocations: 216.3 kB / 274.8 MB, free: 14.54 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.1e-08/0.02784, allocations: 0 / 274.8 MB, free: 14.54 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005004/0.02834, allocations: 267.7 kB / 275.1 MB, free: 14.27 MB / 282.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.0001271/0.02846, allocations: 96.36 kB / 275.2 MB, free: 14.17 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0008167/0.02928, allocations: 0.8048 MB / 276 MB, free: 13.3 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.85e-05/0.0293, allocations: 15.98 kB / 276 MB, free: 13.29 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003498/0.02965, allocations: 466.8 kB / 276.5 MB, free: 12.8 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009715/0.03062, allocations: 1.996 MB / 278.4 MB, free: 10.41 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008891/0.03951, allocations: 1.258 MB / 279.7 MB, free: 9.117 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001166/0.03963, allocations: 160.5 kB / 279.9 MB, free: 8.941 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002506/0.03988, allocations: 77.23 kB / 279.9 MB, free: 8.863 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004866/0.04037, allocations: 357 kB / 280.3 MB, free: 8.512 MB / 282.7 MB Notification: Performance of SimCode: time 1.042e-06/0.04037, allocations: 0 / 280.3 MB, free: 8.512 MB / 282.7 MB Notification: Performance of Templates: time 0.1046/0.145, allocations: 20.02 MB / 300.3 MB, free: 34.07 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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.040397645905614]