Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.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.001359/0.001359, 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.001545/0.001545, allocations: 163.6 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 1.007/1.007, allocations: 177.1 MB / 205.3 MB, free: 5.652 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.PumpAndValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|heatCapacitor.T|pipe.T|speed.phi",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.723e-06/1.723e-06, allocations: 0 / 273 MB, free: 1.879 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.561e-05/1.733e-05, allocations: 2.312 kB / 273 MB, free: 1.875 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve): time 0.003888/0.003906, allocations: 4.379 MB / 277.4 MB, free: 13.48 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001707/0.005613, allocations: 1.23 MB / 278.7 MB, free: 12.24 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001972/0.00581, allocations: 15.88 kB / 278.7 MB, free: 12.23 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002812/0.006091, allocations: 122.9 kB / 278.8 MB, free: 12.11 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003763/0.006467, allocations: 285.5 kB / 279.1 MB, free: 11.82 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000304/0.006771, allocations: 203.5 kB / 279.3 MB, free: 11.62 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00063/0.007401, allocations: 0.9722 MB / 280.2 MB, free: 10.64 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002128/0.007614, allocations: 157 kB / 280.4 MB, free: 10.49 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004411/0.008055, allocations: 0.5495 MB / 280.9 MB, free: 9.938 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000269/0.008324, allocations: 303.1 kB / 281.2 MB, free: 9.641 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.191e-05/0.008396, allocations: 76 kB / 281.3 MB, free: 9.566 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001012/0.008497, allocations: 83.98 kB / 281.4 MB, free: 9.484 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.78e-05/0.008585, allocations: 167.4 kB / 281.6 MB, free: 9.32 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004414/0.009027, allocations: 303.3 kB / 281.9 MB, free: 9.023 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004964/0.009523, allocations: 0.6189 MB / 282.5 MB, free: 8.402 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.675e-06/0.009526, allocations: 3.938 kB / 282.5 MB, free: 8.398 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.32e-07/0.009526, allocations: 0 / 282.5 MB, free: 8.398 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.442e-06/0.009533, allocations: 0 / 282.5 MB, free: 8.398 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.001176/0.01071, allocations: 1.141 MB / 283.6 MB, free: 7.207 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.416e-05/0.01074, allocations: 8.031 kB / 283.6 MB, free: 7.199 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002025/0.01095, allocations: 136.4 kB / 283.8 MB, free: 7.066 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004576/0.0114, allocations: 433.3 kB / 284.2 MB, free: 6.609 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001107/0.01151, allocations: 144.4 kB / 284.3 MB, free: 6.445 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.411e-05/0.01158, allocations: 56.38 kB / 284.4 MB, free: 6.391 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007489/0.01233, allocations: 1.087 MB / 285.5 MB, free: 5.082 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.533e-05/0.01234, allocations: 3.938 kB / 285.5 MB, free: 5.078 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.856e-05/0.01238, allocations: 24 kB / 285.5 MB, free: 5.055 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.159e-05/0.01239, allocations: 12 kB / 285.5 MB, free: 5.043 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003632/0.01276, allocations: 225.8 kB / 285.7 MB, free: 4.82 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00167/0.01443, allocations: 1.486 MB / 287.2 MB, free: 3.273 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008602/0.01529, allocations: 415.4 kB / 287.6 MB, free: 2.855 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001949/0.01548, allocations: 139.3 kB / 287.7 MB, free: 2.715 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.923e-05/0.01552, allocations: 20.48 kB / 287.8 MB, free: 2.695 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.567e-05/0.01555, allocations: 41.89 kB / 287.8 MB, free: 2.645 MB / 266.7 MB Notification: Performance of pre-optimization done (n=54): time 1.834e-06/0.01555, allocations: 0 / 287.8 MB, free: 2.645 MB / 266.7 MB Notification: Performance of matching and sorting (n=54): time 0.00237/0.01792, allocations: 0.9287 MB / 288.7 MB, free: 1.695 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001642/0.01808, allocations: 0.5644 MB / 289.3 MB, free: 0.9961 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003924/0.01847, allocations: 0.5144 MB / 289.8 MB, free: 476 kB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.598e-05/0.01851, allocations: 41.7 kB / 289.9 MB, free: 428 kB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000174/0.01868, allocations: 352.4 kB / 290.2 MB, free: 64 kB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001067/0.01879, allocations: 190.5 kB / 290.4 MB, free: 15.87 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001195/0.01891, allocations: 120 kB / 290.5 MB, free: 15.75 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001406/0.01905, allocations: 0.543 MB / 291 MB, free: 15.19 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001726/0.01922, allocations: 119 kB / 291.2 MB, free: 15.07 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004348/0.01966, allocations: 0.9065 MB / 292.1 MB, free: 13.92 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000366/0.02002, allocations: 306 kB / 292.4 MB, free: 13.59 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.02003, allocations: 4 kB / 292.4 MB, free: 13.59 MB / 282.7 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.0009526/0.02098, allocations: 0.628 MB / 293 MB, free: 12.93 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.85e-05/0.02101, allocations: 33.73 kB / 293 MB, free: 12.89 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.7e-06/0.02101, allocations: 0 / 293 MB, free: 12.89 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006658/0.02168, allocations: 214.8 kB / 293.2 MB, free: 12.67 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003307/0.02201, allocations: 123.8 kB / 293.4 MB, free: 12.55 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004184/0.0262, allocations: 6.215 MB / 299.6 MB, free: 5.965 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002689/0.02646, allocations: 59.64 kB / 299.6 MB, free: 5.906 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.736e-05/0.02649, allocations: 20.06 kB / 299.7 MB, free: 5.887 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.00016/0.02665, allocations: 196.5 kB / 299.8 MB, free: 5.684 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.049e-05/0.02674, allocations: 91.52 kB / 299.9 MB, free: 5.594 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009271/0.02767, allocations: 0.5416 MB / 300.5 MB, free: 5.035 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.456e-06/0.02767, allocations: 8 kB / 300.5 MB, free: 5.027 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.503e-06/0.02767, allocations: 0 / 300.5 MB, free: 5.027 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008671/0.02854, allocations: 0.8319 MB / 301.3 MB, free: 4.082 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001406/0.02995, allocations: 1.126 MB / 302.4 MB, free: 2.898 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.02995, allocations: 0 / 302.4 MB, free: 2.898 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005981/0.03055, allocations: 123.8 kB / 302.6 MB, free: 2.777 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005298/0.03108, allocations: 171.1 kB / 302.7 MB, free: 2.602 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.304e-05/0.0311, allocations: 8 kB / 302.7 MB, free: 2.594 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1021/0.1332, allocations: 4.205 MB / 306.9 MB, free: 39.95 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.1332, allocations: 1.125 kB / 306.9 MB, free: 39.95 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001358/0.1346, allocations: 0.7708 MB / 307.7 MB, free: 39.74 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001967/0.1348, allocations: 127.8 kB / 307.8 MB, free: 39.74 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.991e-05/0.1348, allocations: 16.41 kB / 307.9 MB, free: 39.74 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000246/0.1351, allocations: 24.56 kB / 307.9 MB, free: 39.74 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001147/0.1352, allocations: 53.98 kB / 307.9 MB, free: 39.74 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.12e-05/0.1352, allocations: 14.97 kB / 308 MB, free: 39.74 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002686/0.1355, allocations: 351.9 kB / 308.3 MB, free: 39.61 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1355, allocations: 0.5625 kB / 308.3 MB, free: 39.61 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005717/0.1361, allocations: 219 kB / 308.5 MB, free: 39.61 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.0001182/0.1362, allocations: 120.6 kB / 308.6 MB, free: 39.52 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001101/0.1373, allocations: 1.025 MB / 309.7 MB, free: 38.89 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.1373, allocations: 1.062 kB / 309.7 MB, free: 38.89 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004221/0.1377, allocations: 0.5566 MB / 310.2 MB, free: 38.53 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005343/0.1382, allocations: 197.5 kB / 310.4 MB, free: 38.52 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001726/0.14, allocations: 1.149 MB / 311.6 MB, free: 38.02 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.805e-05/0.1401, allocations: 141.3 kB / 311.7 MB, free: 37.95 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002226/0.1403, allocations: 74.39 kB / 311.8 MB, free: 37.94 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001009/0.1404, allocations: 54.67 kB / 311.8 MB, free: 37.93 MB / 282.7 MB Notification: Performance of SimCode: time 8.31e-07/0.1404, allocations: 0 / 311.8 MB, free: 37.93 MB / 282.7 MB Notification: Performance of Templates: time 0.01581/0.1562, allocations: 14.71 MB / 326.5 MB, free: 30.07 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; mkfifo Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe >> ../files/Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.sim & ./Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.2016339420806617]