Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.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.001128/0.001128, allocations: 72.08 kB / 21.69 MB, free: 2.863 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.0008798/0.0008798, allocations: 139.5 kB / 24.97 MB, free: 8.359 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.9155/0.9155, allocations: 173.4 MB / 201.5 MB, free: 9.32 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.PumpAndValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|heatCapacitor.T|pipe.T|speed.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|heatCapacitor.T|pipe.T|speed.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.743e-06/1.743e-06, allocations: 0 / 268.1 MB, free: 6.742 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.801e-05/1.976e-05, allocations: 6.25 kB / 268.1 MB, free: 6.734 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve): time 0.00399/0.004009, allocations: 4.376 MB / 272.4 MB, free: 2.34 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001737/0.005747, allocations: 1.195 MB / 273.6 MB, free: 1.137 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001916/0.005938, allocations: 11.94 kB / 273.6 MB, free: 1.125 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002895/0.006228, allocations: 138.8 kB / 273.8 MB, free: 0.9883 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003861/0.006614, allocations: 285.5 kB / 274.1 MB, free: 0.707 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003508/0.006965, allocations: 199.6 kB / 274.3 MB, free: 0.5117 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000669/0.007634, allocations: 0.9567 MB / 275.2 MB, free: 15.55 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002223/0.007856, allocations: 165 kB / 275.4 MB, free: 15.38 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006447/0.008501, allocations: 0.534 MB / 275.9 MB, free: 14.84 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002819/0.008783, allocations: 303.1 kB / 276.2 MB, free: 14.55 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.794e-05/0.008861, allocations: 76 kB / 276.3 MB, free: 14.47 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.099e-05/0.008942, allocations: 80 kB / 276.4 MB, free: 14.39 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 9.256e-05/0.009034, allocations: 171.4 kB / 276.5 MB, free: 14.23 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002044/0.009239, allocations: 303.3 kB / 276.8 MB, free: 13.93 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004811/0.00972, allocations: 0.6149 MB / 277.4 MB, free: 13.31 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.535e-06/0.009722, allocations: 0 / 277.4 MB, free: 13.31 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.61e-07/0.009723, allocations: 0 / 277.4 MB, free: 13.31 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.573e-06/0.009729, allocations: 4 kB / 277.4 MB, free: 13.31 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: 111 * Number of variables: 111 Notification: Performance of Generate backend data structure: time 0.001158/0.01089, allocations: 1.141 MB / 278.6 MB, free: 12.12 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.176e-05/0.01092, allocations: 8.922 kB / 278.6 MB, free: 12.11 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000137/0.01106, allocations: 128.4 kB / 278.7 MB, free: 11.98 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004525/0.01151, allocations: 433.2 kB / 279.1 MB, free: 11.53 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001061/0.01161, allocations: 144.4 kB / 279.3 MB, free: 11.37 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.261e-05/0.01168, allocations: 52.38 kB / 279.3 MB, free: 11.32 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007292/0.01241, allocations: 1.099 MB / 280.4 MB, free: 9.992 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.517e-05/0.01242, allocations: 4 kB / 280.4 MB, free: 9.988 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.738e-05/0.01246, allocations: 20 kB / 280.4 MB, free: 9.969 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.134e-05/0.01247, allocations: 12 kB / 280.5 MB, free: 9.957 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003602/0.01283, allocations: 221.8 kB / 280.7 MB, free: 9.742 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001651/0.01448, allocations: 1.49 MB / 282.2 MB, free: 8.191 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008416/0.01532, allocations: 415.2 kB / 282.6 MB, free: 7.773 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001916/0.01551, allocations: 141.1 kB / 282.7 MB, free: 7.629 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.048e-05/0.01554, allocations: 16.48 kB / 282.7 MB, free: 7.613 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.571e-05/0.01557, allocations: 45.89 kB / 282.8 MB, free: 7.559 MB / 266.7 MB Notification: Performance of pre-optimization done (n=54): time 2.043e-06/0.01557, allocations: 0 / 282.8 MB, free: 7.559 MB / 266.7 MB Notification: Performance of matching and sorting (n=54): time 0.00226/0.01783, allocations: 0.9288 MB / 283.7 MB, free: 6.609 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001441/0.01798, allocations: 0.5644 MB / 284.3 MB, free: 5.91 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003917/0.01837, allocations: 0.5183 MB / 284.8 MB, free: 5.375 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.461e-05/0.01841, allocations: 37.7 kB / 284.8 MB, free: 5.332 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001681/0.01858, allocations: 344.4 kB / 285.2 MB, free: 4.984 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000106/0.01869, allocations: 198.2 kB / 285.3 MB, free: 4.789 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001177/0.0188, allocations: 116 kB / 285.5 MB, free: 4.668 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001384/0.01894, allocations: 0.543 MB / 286 MB, free: 4.113 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001722/0.01912, allocations: 126.9 kB / 286.1 MB, free: 3.984 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004221/0.01954, allocations: 0.9026 MB / 287 MB, free: 2.836 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003666/0.0199, allocations: 306 kB / 287.3 MB, free: 2.512 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.01991, allocations: 0 / 287.3 MB, free: 2.512 MB / 266.7 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.0009649/0.02087, allocations: 0.6281 MB / 288 MB, free: 1.852 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.634e-05/0.0209, allocations: 32.67 kB / 288 MB, free: 1.816 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/0.0209, allocations: 8.062 kB / 288 MB, free: 1.809 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006533/0.02156, allocations: 214.8 kB / 288.2 MB, free: 1.586 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003276/0.02188, allocations: 111.9 kB / 288.3 MB, free: 1.477 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00393/0.02581, allocations: 6.219 MB / 294.5 MB, free: 10.88 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002514/0.02607, allocations: 63.77 kB / 294.6 MB, free: 10.82 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.437e-05/0.02609, allocations: 16 kB / 294.6 MB, free: 10.8 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * 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: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(5,2), (1,1), (1,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0001448/0.02623, allocations: 192.5 kB / 294.8 MB, free: 10.61 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.26e-05/0.02632, allocations: 79.62 kB / 294.9 MB, free: 10.53 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009043/0.02722, allocations: 0.5649 MB / 295.4 MB, free: 9.945 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.02723, allocations: 4 kB / 295.4 MB, free: 9.941 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.122e-06/0.02723, allocations: 0 / 295.4 MB, free: 9.941 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000847/0.02807, allocations: 0.8319 MB / 296.3 MB, free: 9 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001587/0.02966, allocations: 1.126 MB / 297.4 MB, free: 7.816 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.02966, allocations: 8.062 kB / 297.4 MB, free: 7.809 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003382/0.03, allocations: 119.8 kB / 297.5 MB, free: 7.691 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000519/0.03052, allocations: 175.3 kB / 297.7 MB, free: 7.512 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.309e-05/0.03055, allocations: 16 kB / 297.7 MB, free: 7.496 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002414/0.03297, allocations: 4.194 MB / 301.9 MB, free: 3.059 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.03297, allocations: 0 / 301.9 MB, free: 3.059 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00106/0.03403, allocations: 0.7782 MB / 302.7 MB, free: 2.254 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001579/0.03419, allocations: 127.4 kB / 302.8 MB, free: 2.129 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.203e-05/0.03424, allocations: 12 kB / 302.8 MB, free: 2.117 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002176/0.03446, allocations: 27.98 kB / 302.9 MB, free: 2.09 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.297e-05/0.03455, allocations: 52.34 kB / 302.9 MB, free: 2.039 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.955e-05/0.03457, allocations: 19.92 kB / 302.9 MB, free: 2.02 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002333/0.0348, allocations: 346.8 kB / 303.3 MB, free: 1.684 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.0348, allocations: 0 / 303.3 MB, free: 1.684 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004225/0.03523, allocations: 223.8 kB / 303.5 MB, free: 1.465 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (pipe.T,heatCapacitor.T,speed.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (44): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * 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 {(1,2), (1,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001038/0.03533, allocations: 115.1 kB / 303.6 MB, free: 1.344 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001238/0.03657, allocations: 1.025 MB / 304.6 MB, free: 248 kB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.03657, allocations: 0 / 304.6 MB, free: 248 kB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.08709/0.1237, allocations: 0.5527 MB / 305.2 MB, free: 45.89 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009391/0.1246, allocations: 188 kB / 305.4 MB, free: 45.89 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002145/0.1267, allocations: 1.151 MB / 306.5 MB, free: 45.39 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001139/0.1269, allocations: 152 kB / 306.7 MB, free: 45.3 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002543/0.1271, allocations: 71.25 kB / 306.7 MB, free: 45.29 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001138/0.1272, allocations: 53.98 kB / 306.8 MB, free: 45.29 MB / 282.7 MB Notification: Performance of SimCode: time 1.253e-06/0.1272, allocations: 0 / 306.8 MB, free: 45.29 MB / 282.7 MB Notification: Performance of Templates: time 0.02138/0.1486, allocations: 14.69 MB / 321.5 MB, free: 38.88 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.sim & ./Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/PumpAndValve/PumpAndValve.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.03804794116877]