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.0009358/0.0009358, allocations: 83.89 kB / 21.18 MB, free: 3.387 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.0009096/0.0009096, allocations: 145.1 kB / 24.54 MB, free: 32 kB / 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.9347/0.9347, allocations: 173.3 MB / 201.1 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.583e-06/1.583e-06, allocations: 3.938 kB / 268 MB, free: 6.426 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.85e-05/2.009e-05, allocations: 6.25 kB / 268 MB, free: 6.418 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve): time 0.01065/0.01067, allocations: 4.373 MB / 272.4 MB, free: 2.023 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001863/0.01253, allocations: 1.207 MB / 273.6 MB, free: 0.8086 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002415/0.01277, allocations: 11.94 kB / 273.6 MB, free: 0.7969 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003297/0.0131, allocations: 130.8 kB / 273.7 MB, free: 0.668 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003507/0.01661, allocations: 289.5 kB / 274 MB, free: 392 kB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005863/0.01719, allocations: 199.5 kB / 274.2 MB, free: 192 kB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008364/0.01803, allocations: 0.9605 MB / 275.1 MB, free: 15.22 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002545/0.01829, allocations: 161 kB / 275.3 MB, free: 15.06 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005862/0.01887, allocations: 0.5417 MB / 275.8 MB, free: 14.52 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003366/0.02224, allocations: 295.2 kB / 276.1 MB, free: 14.23 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001086/0.02235, allocations: 72 kB / 276.2 MB, free: 14.16 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001116/0.02246, allocations: 84 kB / 276.3 MB, free: 14.07 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001134/0.02257, allocations: 171.3 kB / 276.5 MB, free: 13.91 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002608/0.02283, allocations: 295.4 kB / 276.7 MB, free: 13.62 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000619/0.02345, allocations: 0.611 MB / 277.4 MB, free: 13 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.985e-06/0.02345, allocations: 0 / 277.4 MB, free: 13 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.113e-06/0.02346, allocations: 0 / 277.4 MB, free: 13 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.243e-06/0.02346, allocations: 4 kB / 277.4 MB, free: 13 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.001424/0.02489, allocations: 1.129 MB / 278.5 MB, free: 11.82 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.904e-05/0.02493, allocations: 12.92 kB / 278.5 MB, free: 11.81 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001686/0.02509, allocations: 128.4 kB / 278.6 MB, free: 11.68 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003555/0.02865, allocations: 420.3 kB / 279 MB, free: 11.25 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001482/0.0288, allocations: 152.3 kB / 279.2 MB, free: 11.07 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.336e-05/0.02888, allocations: 56.38 kB / 279.2 MB, free: 11.02 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009352/0.02982, allocations: 1.087 MB / 280.3 MB, free: 9.703 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.758e-05/0.02983, allocations: 0 / 280.3 MB, free: 9.703 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.744e-05/0.02988, allocations: 24 kB / 280.3 MB, free: 9.68 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.287e-05/0.02989, allocations: 8 kB / 280.4 MB, free: 9.672 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004509/0.03034, allocations: 233.8 kB / 280.6 MB, free: 9.445 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005171/0.03552, allocations: 1.486 MB / 282.1 MB, free: 7.895 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001029/0.03654, allocations: 411.1 kB / 282.5 MB, free: 7.48 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002317/0.03678, allocations: 137.1 kB / 282.6 MB, free: 7.34 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.599e-05/0.03681, allocations: 16.5 kB / 282.6 MB, free: 7.324 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.621e-05/0.03685, allocations: 46.45 kB / 282.7 MB, free: 7.27 MB / 266.7 MB Notification: Performance of pre-optimization done (n=54): time 2.024e-06/0.03685, allocations: 7.938 kB / 282.7 MB, free: 7.262 MB / 266.7 MB Notification: Performance of matching and sorting (n=54): time 0.005578/0.04243, allocations: 0.9168 MB / 283.6 MB, free: 6.324 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001737/0.0426, allocations: 0.5722 MB / 284.2 MB, free: 5.617 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003463/0.04606, allocations: 0.5144 MB / 284.7 MB, free: 5.086 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.308e-05/0.04611, allocations: 37.7 kB / 284.7 MB, free: 5.043 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002079/0.04632, allocations: 356.4 kB / 285.1 MB, free: 4.684 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001261/0.04644, allocations: 194.3 kB / 285.3 MB, free: 4.492 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001593/0.0466, allocations: 112 kB / 285.4 MB, free: 4.375 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001854/0.04679, allocations: 0.5469 MB / 285.9 MB, free: 3.816 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002143/0.047, allocations: 119 kB / 286 MB, free: 3.695 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005525/0.04755, allocations: 0.9026 MB / 286.9 MB, free: 2.547 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004623/0.04802, allocations: 318 kB / 287.2 MB, free: 2.211 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.142e-06/0.04802, allocations: 0 / 287.2 MB, free: 2.211 MB / 266.7 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001206/0.04923, allocations: 0.6281 MB / 287.9 MB, free: 1.551 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002796/0.04951, allocations: 33.7 kB / 287.9 MB, free: 1.512 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.04951, allocations: 0 / 287.9 MB, free: 1.512 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008022/0.05032, allocations: 214.8 kB / 288.1 MB, free: 1.289 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003755/0.05069, allocations: 115.9 kB / 288.2 MB, free: 1.176 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004029/0.05472, allocations: 6.221 MB / 294.4 MB, free: 10.59 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002987/0.05502, allocations: 55.72 kB / 294.5 MB, free: 10.53 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.886e-05/0.05505, allocations: 19.98 kB / 294.5 MB, free: 10.51 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.0001689/0.05522, allocations: 200.4 kB / 294.7 MB, free: 10.3 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.735e-05/0.0553, allocations: 91.62 kB / 294.8 MB, free: 10.21 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001151/0.05645, allocations: 0.5455 MB / 295.3 MB, free: 9.648 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.867e-06/0.05646, allocations: 4 kB / 295.4 MB, free: 9.645 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.302e-06/0.05646, allocations: 4 kB / 295.4 MB, free: 9.641 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000802/0.05726, allocations: 0.8241 MB / 296.2 MB, free: 8.707 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001399/0.05866, allocations: 1.13 MB / 297.3 MB, free: 7.52 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.656e-06/0.05866, allocations: 4.062 kB / 297.3 MB, free: 7.516 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003337/0.059, allocations: 119.9 kB / 297.4 MB, free: 7.398 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005115/0.05951, allocations: 171.1 kB / 297.6 MB, free: 7.223 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.755e-05/0.05954, allocations: 15.98 kB / 297.6 MB, free: 7.207 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002462/0.062, allocations: 4.206 MB / 301.8 MB, free: 2.758 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.744e-06/0.062, allocations: 8 kB / 301.8 MB, free: 2.75 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001288/0.06329, allocations: 0.7626 MB / 302.6 MB, free: 1.961 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001704/0.06346, allocations: 131.3 kB / 302.7 MB, free: 1.832 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.626e-05/0.06351, allocations: 12 kB / 302.7 MB, free: 1.82 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002079/0.06371, allocations: 31.97 kB / 302.8 MB, free: 1.789 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.635e-05/0.06381, allocations: 52.28 kB / 302.8 MB, free: 1.738 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.941e-05/0.06383, allocations: 16 kB / 302.8 MB, free: 1.723 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002414/0.06407, allocations: 350.8 kB / 303.2 MB, free: 1.383 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.06407, allocations: 0 / 303.2 MB, free: 1.383 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004822/0.06455, allocations: 219.8 kB / 303.4 MB, free: 1.168 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.0001196/0.06467, allocations: 123.1 kB / 303.5 MB, free: 1.039 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.08554/0.1502, allocations: 1.015 MB / 304.5 MB, free: 43.39 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.981e-06/0.1502, allocations: 2.656 kB / 304.5 MB, free: 43.39 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005967/0.1508, allocations: 0.551 MB / 305.1 MB, free: 43.05 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006199/0.1514, allocations: 188.5 kB / 305.3 MB, free: 43.04 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001733/0.1532, allocations: 1.152 MB / 306.4 MB, free: 42.54 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.578e-05/0.1533, allocations: 144.3 kB / 306.6 MB, free: 42.45 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002013/0.1535, allocations: 79.28 kB / 306.6 MB, free: 42.43 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001048/0.1536, allocations: 55.19 kB / 306.7 MB, free: 42.43 MB / 282.7 MB Notification: Performance of SimCode: time 1.152e-06/0.1536, allocations: 0 / 306.7 MB, free: 42.43 MB / 282.7 MB Notification: Performance of Templates: time 0.01597/0.1695, allocations: 15.44 MB / 322.1 MB, free: 35.84 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.059324786067009]