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.001677/0.001677, allocations: 108.6 kB / 21.19 MB, free: 0.7578 MB / 14.72 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.001866/0.001866, allocations: 193.1 kB / 24.47 MB, free: 4.152 MB / 14.72 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.446/1.446, allocations: 225.6 MB / 253.3 MB, free: 13.01 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001612/0.001612, allocations: 47.92 kB / 371.7 MB, free: 9.375 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2392/0.2408, allocations: 52.18 MB / 423.9 MB, free: 14.72 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.006353/0.2472, allocations: 4.886 MB / 428.8 MB, free: 9.809 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002404/0.2496, allocations: 1.364 MB / 430.1 MB, free: 8.438 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002578/0.2499, allocations: 15.88 kB / 430.1 MB, free: 8.422 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003939/0.2502, allocations: 150.7 kB / 430.3 MB, free: 8.273 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006547/0.2509, allocations: 349.4 kB / 430.6 MB, free: 7.93 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004563/0.2514, allocations: 219.6 kB / 430.8 MB, free: 7.715 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001176/0.2525, allocations: 1.026 MB / 431.9 MB, free: 6.688 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000338/0.2529, allocations: 202.4 kB / 432.1 MB, free: 6.477 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005244/0.2534, allocations: 410.6 kB / 432.5 MB, free: 6.074 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005613/0.254, allocations: 450.1 kB / 432.9 MB, free: 5.633 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001322/0.2541, allocations: 88 kB / 433 MB, free: 5.547 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001443/0.2542, allocations: 92 kB / 433.1 MB, free: 5.457 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001762/0.2544, allocations: 199.3 kB / 433.3 MB, free: 5.262 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004643/0.2549, allocations: 485.8 kB / 433.7 MB, free: 4.785 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001125/0.256, allocations: 1.07 MB / 434.8 MB, free: 3.715 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.256, allocations: 0 / 434.8 MB, free: 3.715 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.256, allocations: 3.938 kB / 434.8 MB, free: 3.711 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.737e-05/0.256, allocations: 0 / 434.8 MB, free: 3.711 MB / 334.1 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.002237/0.2583, allocations: 1.172 MB / 436 MB, free: 2.492 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.504e-05/0.2583, allocations: 12.03 kB / 436 MB, free: 2.48 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001722/0.2585, allocations: 108.3 kB / 436.1 MB, free: 2.375 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008019/0.2593, allocations: 467 kB / 436.6 MB, free: 1.887 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001844/0.2595, allocations: 152.7 kB / 436.7 MB, free: 1.715 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.017e-05/0.2595, allocations: 52.38 kB / 436.8 MB, free: 1.664 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001374/0.2609, allocations: 0.7927 MB / 437.6 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.187e-05/0.2609, allocations: 7.953 kB / 437.6 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.026e-05/0.261, allocations: 28 kB / 437.6 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.312e-05/0.261, allocations: 12 kB / 437.6 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001208/0.2622, allocations: 0.5035 MB / 438.1 MB, free: 216 kB / 334.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003439/0.2657, allocations: 2.066 MB / 440.2 MB, free: 14.02 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00126/0.2669, allocations: 0.4898 MB / 440.7 MB, free: 13.52 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005735/0.2675, allocations: 234.2 kB / 440.9 MB, free: 13.29 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.031e-05/0.2675, allocations: 17.56 kB / 440.9 MB, free: 13.27 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007238/0.2683, allocations: 318.2 kB / 441.2 MB, free: 12.95 MB / 350.1 MB Notification: Performance of pre-optimization done (n=56): time 2.194e-06/0.2683, allocations: 4 kB / 441.2 MB, free: 12.94 MB / 350.1 MB Notification: Performance of matching and sorting (n=56): time 0.004917/0.2732, allocations: 1.321 MB / 442.5 MB, free: 11.61 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004792/0.2737, allocations: 0.8271 MB / 443.4 MB, free: 10.59 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000773/0.2744, allocations: 0.5901 MB / 444 MB, free: 9.988 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.791e-05/0.2745, allocations: 45.7 kB / 444 MB, free: 9.938 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003105/0.2748, allocations: 333.2 kB / 444.3 MB, free: 9.605 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001917/0.275, allocations: 202.3 kB / 444.5 MB, free: 9.406 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002108/0.2752, allocations: 130.3 kB / 444.7 MB, free: 9.273 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002003/0.2754, allocations: 378.8 kB / 445 MB, free: 8.895 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005895/0.276, allocations: 217.1 kB / 445.2 MB, free: 8.684 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008926/0.2769, allocations: 0.5217 MB / 445.8 MB, free: 8.043 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001202/0.2781, allocations: 0.5642 MB / 446.3 MB, free: 7.434 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.896e-06/0.2781, allocations: 0 / 446.3 MB, free: 7.434 MB / 350.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002296/0.2804, allocations: 0.8885 MB / 447.2 MB, free: 6.523 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.092e-05/0.2805, allocations: 66.83 kB / 447.3 MB, free: 6.449 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.678e-06/0.2805, allocations: 4 kB / 447.3 MB, free: 6.445 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000731/0.2812, allocations: 229.4 kB / 447.5 MB, free: 6.215 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006106/0.2818, allocations: 119.8 kB / 447.6 MB, free: 6.098 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006807/0.2886, allocations: 4.384 MB / 452 MB, free: 1.488 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007439/0.2894, allocations: 83.62 kB / 452.1 MB, free: 1.406 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.299e-05/0.2895, allocations: 23.98 kB / 452.1 MB, free: 1.383 MB / 350.1 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.000366/0.2898, allocations: 209.9 kB / 452.3 MB, free: 1.168 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001675/0.29, allocations: 87.52 kB / 452.4 MB, free: 1.082 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001707/0.2902, allocations: 74.86 kB / 452.5 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.536e-06/0.2902, allocations: 7.938 kB / 452.5 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.2902, allocations: 3.984 kB / 452.5 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002162/0.2923, allocations: 1.045 MB / 453.5 MB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002893/0.2952, allocations: 1.494 MB / 455 MB, free: 14.27 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.973e-06/0.2952, allocations: 4 kB / 455 MB, free: 14.26 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006113/0.2958, allocations: 112 kB / 455.1 MB, free: 14.15 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005564/0.2964, allocations: 169.5 kB / 455.3 MB, free: 13.98 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.163e-05/0.2964, allocations: 19.92 kB / 455.3 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005352/0.3018, allocations: 3.726 MB / 459.1 MB, free: 10.01 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.3018, allocations: 160 / 459.1 MB, free: 10.01 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002496/0.3043, allocations: 1.03 MB / 460.1 MB, free: 8.953 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003872/0.3047, allocations: 143.3 kB / 460.2 MB, free: 8.812 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000143/0.3048, allocations: 16.11 kB / 460.2 MB, free: 8.797 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000626/0.3054, allocations: 47.89 kB / 460.3 MB, free: 8.75 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001523/0.3056, allocations: 56.39 kB / 460.3 MB, free: 8.695 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.393e-05/0.3056, allocations: 15.94 kB / 460.4 MB, free: 8.68 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005695/0.3062, allocations: 419.1 kB / 460.8 MB, free: 8.273 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3062, allocations: 4.062 kB / 460.8 MB, free: 8.27 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008546/0.3071, allocations: 251.8 kB / 461 MB, free: 8.023 MB / 366.1 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.0001736/0.3072, allocations: 119.2 kB / 461.1 MB, free: 7.895 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002256/0.3095, allocations: 0.9785 MB / 462.1 MB, free: 6.867 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.608e-06/0.3095, allocations: 0.5 kB / 462.1 MB, free: 6.867 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001046/0.3105, allocations: 0.5273 MB / 462.6 MB, free: 6.316 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009994/0.3115, allocations: 214.7 kB / 462.8 MB, free: 6.109 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002917/0.3145, allocations: 1.36 MB / 464.2 MB, free: 4.727 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006045/0.3151, allocations: 0.9199 MB / 465.1 MB, free: 3.781 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001804/0.3152, allocations: 63.36 kB / 465.2 MB, free: 3.719 MB / 366.1 MB Notification: Performance of SimCode: time 9.12e-07/0.3152, allocations: 0 / 465.2 MB, free: 3.719 MB / 366.1 MB Notification: Performance of Templates: time 0.02294/0.3382, allocations: 16.24 MB / 481.4 MB, free: 3.582 MB / 382.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/WaterPump/WaterPump.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.988880896940827]