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.0009455/0.0009455, allocations: 80.62 kB / 22.21 MB, free: 2.289 MB / 18.57 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.0008844/0.0008844, allocations: 143.7 kB / 25.59 MB, free: 8.605 MB / 18.57 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.8947/0.8947, allocations: 173.4 MB / 202.2 MB, free: 8.309 MB / 186.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 3.697e-06/3.697e-06, allocations: 0 / 269.2 MB, free: 9.805 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.501e-05/2.87e-05, allocations: 4 kB / 269.2 MB, free: 9.801 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.004597/0.004626, allocations: 4.765 MB / 273.9 MB, free: 5.027 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002145/0.006771, allocations: 1.326 MB / 275.3 MB, free: 3.707 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003701/0.007142, allocations: 11.94 kB / 275.3 MB, free: 3.695 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003407/0.007482, allocations: 162.6 kB / 275.4 MB, free: 3.535 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005889/0.008071, allocations: 361.1 kB / 275.8 MB, free: 3.18 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003781/0.008449, allocations: 219.5 kB / 276 MB, free: 2.965 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001085/0.009534, allocations: 1.069 MB / 277.1 MB, free: 1.891 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002389/0.009773, allocations: 190.3 kB / 277.3 MB, free: 1.691 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005126/0.01029, allocations: 0.6081 MB / 277.9 MB, free: 1.082 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003078/0.01059, allocations: 327.1 kB / 278.2 MB, free: 0.7617 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 8.744e-05/0.01068, allocations: 91.94 kB / 278.3 MB, free: 0.6719 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.656e-05/0.01077, allocations: 88 kB / 278.4 MB, free: 0.5859 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001104/0.01088, allocations: 199.3 kB / 278.6 MB, free: 400 kB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002248/0.0111, allocations: 343.2 kB / 278.9 MB, free: 56 kB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005394/0.01164, allocations: 0.7006 MB / 279.6 MB, free: 15.35 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.01165, allocations: 0 / 279.6 MB, free: 15.35 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.51e-07/0.01165, allocations: 0 / 279.6 MB, free: 15.35 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.905e-06/0.01165, allocations: 0 / 279.6 MB, free: 15.35 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.001208/0.01286, allocations: 1.252 MB / 280.9 MB, free: 14.05 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.165e-05/0.01289, allocations: 8.031 kB / 280.9 MB, free: 14.04 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001441/0.01304, allocations: 144.3 kB / 281 MB, free: 13.9 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004182/0.01346, allocations: 448.1 kB / 281.4 MB, free: 13.43 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001149/0.01357, allocations: 148.7 kB / 281.6 MB, free: 13.27 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.826e-05/0.01364, allocations: 64.38 kB / 281.6 MB, free: 13.2 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008079/0.01445, allocations: 1.452 MB / 283.1 MB, free: 11.42 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.978e-05/0.01447, allocations: 12.12 kB / 283.1 MB, free: 11.41 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.043e-05/0.01451, allocations: 28.12 kB / 283.1 MB, free: 11.38 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.708e-06/0.01452, allocations: 16 kB / 283.2 MB, free: 11.36 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005073/0.01502, allocations: 206.7 kB / 283.4 MB, free: 11.16 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001693/0.01672, allocations: 1.611 MB / 285 MB, free: 9.48 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003787/0.0171, allocations: 279.8 kB / 285.2 MB, free: 9.188 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001209/0.01722, allocations: 109.1 kB / 285.3 MB, free: 9.078 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.186e-05/0.01726, allocations: 12.5 kB / 285.4 MB, free: 9.066 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004279/0.01769, allocations: 211.8 kB / 285.6 MB, free: 8.848 MB / 266.7 MB Notification: Performance of pre-optimization done (n=56): time 3.145e-06/0.01769, allocations: 0 / 285.6 MB, free: 8.848 MB / 266.7 MB Notification: Performance of matching and sorting (n=56): time 0.002137/0.01983, allocations: 0.9209 MB / 286.5 MB, free: 7.91 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002382/0.02006, allocations: 0.8232 MB / 287.3 MB, free: 6.891 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004028/0.02047, allocations: 0.5608 MB / 287.9 MB, free: 6.312 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.145e-05/0.02052, allocations: 41.7 kB / 287.9 MB, free: 6.266 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002273/0.02075, allocations: 415.7 kB / 288.3 MB, free: 5.852 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001079/0.02085, allocations: 202.2 kB / 288.5 MB, free: 5.652 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001367/0.02099, allocations: 131.9 kB / 288.6 MB, free: 5.516 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001542/0.02115, allocations: 0.5624 MB / 289.2 MB, free: 4.941 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001323/0.02128, allocations: 132.6 kB / 289.3 MB, free: 4.801 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005983/0.02188, allocations: 1.283 MB / 290.6 MB, free: 3.156 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003176/0.02219, allocations: 358.1 kB / 291 MB, free: 2.75 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.967e-06/0.0222, allocations: 4 kB / 291 MB, free: 2.746 MB / 266.7 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0008034/0.023, allocations: 0.6668 MB / 291.6 MB, free: 2.039 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.052e-05/0.02304, allocations: 63.41 kB / 291.7 MB, free: 1.965 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.264e-06/0.02305, allocations: 4 kB / 291.7 MB, free: 1.961 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002917/0.02334, allocations: 143.4 kB / 291.8 MB, free: 1.812 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000292/0.02363, allocations: 123.7 kB / 292 MB, free: 1.691 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003129/0.02676, allocations: 4.605 MB / 296.6 MB, free: 12.87 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003301/0.02709, allocations: 75.64 kB / 296.6 MB, free: 12.79 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.808e-05/0.02712, allocations: 16 kB / 296.7 MB, free: 12.78 MB / 282.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.0001661/0.02729, allocations: 204.5 kB / 296.9 MB, free: 12.57 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.965e-05/0.02738, allocations: 103.5 kB / 297 MB, free: 12.46 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.302e-05/0.02745, allocations: 78.55 kB / 297 MB, free: 12.38 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.02745, allocations: 4 kB / 297 MB, free: 12.38 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.435e-06/0.02745, allocations: 0 / 297 MB, free: 12.38 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006693/0.02812, allocations: 0.7889 MB / 297.8 MB, free: 11.48 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001043/0.02917, allocations: 1.044 MB / 298.9 MB, free: 10.38 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.02917, allocations: 3.938 kB / 298.9 MB, free: 10.37 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002593/0.02943, allocations: 99.92 kB / 299 MB, free: 10.27 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002053/0.02963, allocations: 123.1 kB / 299.1 MB, free: 10.14 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.459e-05/0.02966, allocations: 15.98 kB / 299.1 MB, free: 10.13 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002311/0.03197, allocations: 4.212 MB / 303.3 MB, free: 5.695 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.03197, allocations: 0 / 303.3 MB, free: 5.695 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006691/0.03264, allocations: 0.669 MB / 304 MB, free: 4.996 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000173/0.03281, allocations: 135.3 kB / 304.1 MB, free: 4.863 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.63e-05/0.03287, allocations: 20 kB / 304.1 MB, free: 4.844 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002624/0.03313, allocations: 31.97 kB / 304.2 MB, free: 4.812 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.196e-05/0.03322, allocations: 60.52 kB / 304.2 MB, free: 4.754 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.994e-05/0.03324, allocations: 16 kB / 304.3 MB, free: 4.738 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001973/0.03344, allocations: 358.6 kB / 304.6 MB, free: 4.391 MB / 282.7 MB Notification: Performance of sort global known variables: time 2e-08/0.03344, allocations: 0 / 304.6 MB, free: 4.391 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004879/0.03393, allocations: 255.8 kB / 304.9 MB, free: 4.141 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.000112/0.03404, allocations: 111.2 kB / 305 MB, free: 4.02 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0007675/0.03481, allocations: 0.9421 MB / 305.9 MB, free: 3 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.03481, allocations: 0 / 305.9 MB, free: 3 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003537/0.03516, allocations: 0.5419 MB / 306.4 MB, free: 2.422 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005137/0.03568, allocations: 215.3 kB / 306.7 MB, free: 2.211 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001802/0.03748, allocations: 1.241 MB / 307.9 MB, free: 0.9375 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001122/0.03759, allocations: 152.5 kB / 308 MB, free: 0.7695 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002138/0.0378, allocations: 85.05 kB / 308.1 MB, free: 0.6875 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005172/0.03832, allocations: 393.9 kB / 308.5 MB, free: 308 kB / 282.7 MB Notification: Performance of SimCode: time 8.01e-07/0.03832, allocations: 4 kB / 308.5 MB, free: 304 kB / 282.7 MB Notification: Performance of Templates: time 0.01899/0.05731, allocations: 18.27 MB / 326.8 MB, free: 14.38 MB / 314.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 -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.1194543493911624]