Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009917/0.0009917, allocations: 91.5 kB / 21.2 MB, free: 3.375 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001111/0.001111, allocations: 160.5 kB / 24.55 MB, free: 20 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.002/1.002, allocations: 177 MB / 204.8 MB, free: 5.598 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Fluid.Examples.Tanks.ThreeTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks") translateModel(Modelica.Fluid.Examples.Tanks.ThreeTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.312e-06/1.312e-06, allocations: 0 / 272.9 MB, free: 1.477 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.151e-05/2.282e-05, allocations: 2.312 kB / 272.9 MB, free: 1.473 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.01016/0.01019, allocations: 11.22 MB / 284.1 MB, free: 6.195 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1486/0.1588, allocations: 6.908 MB / 291 MB, free: 14.35 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001455/0.1602, allocations: 63.78 kB / 291.1 MB, free: 14.35 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001054/0.1613, allocations: 416.6 kB / 291.5 MB, free: 14.35 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003749/0.165, allocations: 1.767 MB / 293.3 MB, free: 14.11 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005686/0.1707, allocations: 2.687 MB / 295.9 MB, free: 14 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006107/0.1768, allocations: 4.141 MB / 300.1 MB, free: 13.3 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001901/0.1787, allocations: 1.063 MB / 301.2 MB, free: 12.8 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003238/0.182, allocations: 1.966 MB / 303.1 MB, free: 12.07 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002117/0.1841, allocations: 1.66 MB / 304.8 MB, free: 11.3 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004621/0.1845, allocations: 162.2 kB / 304.9 MB, free: 11.3 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001996/0.1865, allocations: 0.9897 MB / 305.9 MB, free: 10.91 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004205/0.187, allocations: 0.6786 MB / 306.6 MB, free: 10.46 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006603/0.1876, allocations: 0.6355 MB / 307.2 MB, free: 10.15 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002138/0.1898, allocations: 2.301 MB / 309.5 MB, free: 8.863 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.878e-06/0.1898, allocations: 4 kB / 309.5 MB, free: 8.859 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.222e-06/0.1898, allocations: 2.719 kB / 309.6 MB, free: 8.859 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.727e-05/0.1898, allocations: 0 / 309.6 MB, free: 8.859 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: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.002684/0.1925, allocations: 2.046 MB / 311.6 MB, free: 7.398 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.803e-05/0.1925, allocations: 18.83 kB / 311.6 MB, free: 7.395 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004587/0.193, allocations: 281.3 kB / 311.9 MB, free: 7.266 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00102/0.194, allocations: 1.02 MB / 312.9 MB, free: 6.598 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001202/0.1941, allocations: 256.8 kB / 313.2 MB, free: 6.371 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001317/0.1942, allocations: 114 kB / 313.3 MB, free: 6.34 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001293/0.1955, allocations: 1.535 MB / 314.8 MB, free: 4.676 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.704e-05/0.1956, allocations: 7 kB / 314.8 MB, free: 4.672 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.735e-05/0.1957, allocations: 42.17 kB / 314.9 MB, free: 4.637 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.436e-05/0.1957, allocations: 109.9 kB / 315 MB, free: 4.527 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001053/0.1968, allocations: 0.7519 MB / 315.7 MB, free: 3.77 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004679/0.2015, allocations: 4.207 MB / 319.9 MB, free: 15.59 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008869/0.2024, allocations: 0.6445 MB / 320.6 MB, free: 14.93 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004456/0.2028, allocations: 299.1 kB / 320.9 MB, free: 14.64 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002342/0.2052, allocations: 1.8 MB / 322.7 MB, free: 12.84 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.493e-05/0.2052, allocations: 47.45 kB / 322.7 MB, free: 12.78 MB / 282.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003797/0.2056, allocations: 182.6 kB / 322.9 MB, free: 12.61 MB / 282.7 MB Notification: Performance of pre-optimization done (n=97): time 2.304e-06/0.2056, allocations: 0 / 322.9 MB, free: 12.61 MB / 282.7 MB Notification: Performance of matching and sorting (n=112): time 0.007602/0.2132, allocations: 3.342 MB / 326.2 MB, free: 9.258 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.486e-05/0.2132, allocations: 141.5 kB / 326.4 MB, free: 9.09 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008337/0.2141, allocations: 0.9667 MB / 327.3 MB, free: 8.109 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.187e-05/0.2141, allocations: 45.7 kB / 327.4 MB, free: 8.059 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003382/0.2145, allocations: 0.6864 MB / 328.1 MB, free: 7.367 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002405/0.2147, allocations: 404 kB / 328.5 MB, free: 6.98 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00032/0.215, allocations: 301.1 kB / 328.7 MB, free: 6.676 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001124/0.2152, allocations: 476.8 kB / 329.2 MB, free: 6.207 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004765/0.2156, allocations: 271.5 kB / 329.5 MB, free: 5.938 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007029/0.2163, allocations: 0.8243 MB / 330.3 MB, free: 4.906 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00116/0.2175, allocations: 1.038 MB / 331.3 MB, free: 3.727 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.652e-06/0.2175, allocations: 4 kB / 331.3 MB, free: 3.723 MB / 282.7 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.001824/0.2193, allocations: 1.275 MB / 332.6 MB, free: 2.496 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.299e-05/0.2193, allocations: 15.48 kB / 332.6 MB, free: 2.484 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.394e-05/0.2194, allocations: 8 kB / 332.6 MB, free: 2.477 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002906/0.2223, allocations: 0.9496 MB / 333.6 MB, free: 1.535 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006637/0.2229, allocations: 290.3 kB / 333.9 MB, free: 1.27 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00116/0.2241, allocations: 1.167 MB / 335 MB, free: 80 kB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005898/0.2247, allocations: 59.97 kB / 335.1 MB, free: 20 kB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001132/0.2248, allocations: 68.36 kB / 335.2 MB, free: 15.95 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006634/0.2255, allocations: 410.7 kB / 335.6 MB, free: 15.55 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007062/0.2262, allocations: 0.8386 MB / 336.4 MB, free: 14.49 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00114/0.2273, allocations: 1.049 MB / 337.5 MB, free: 13.29 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.521e-06/0.2273, allocations: 4 kB / 337.5 MB, free: 13.29 MB / 298.7 MB Notification: Performance of matching and sorting (n=181) (initialization_lambda0): time 0.001783/0.2291, allocations: 1.259 MB / 338.7 MB, free: 12.02 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.507e-05/0.2291, allocations: 12 kB / 338.7 MB, free: 12.01 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.043e-05/0.2291, allocations: 9.438 kB / 338.7 MB, free: 12 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002485/0.2316, allocations: 0.8108 MB / 339.6 MB, free: 11.19 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006143/0.2322, allocations: 299.5 kB / 339.8 MB, free: 10.89 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009599/0.2332, allocations: 1.096 MB / 340.9 MB, free: 9.766 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005991/0.2338, allocations: 59.97 kB / 341 MB, free: 9.707 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.32e-05/0.2339, allocations: 71.97 kB / 341.1 MB, free: 9.637 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 6 (tank3.inFlow[1],tank3.regularFlow[1],tank2.inFlow[1],tank2.regularFlow[1],tank1.inFlow[1],tank1.regularFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (156): * Single equations (assignments): 155 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(8,18)} Notification: Performance of prepare postOptimizeDAE: time 0.0003426/0.2342, allocations: 359.6 kB / 341.4 MB, free: 9.277 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002098/0.2344, allocations: 175.2 kB / 341.6 MB, free: 9.105 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002007/0.2364, allocations: 1.2 MB / 342.8 MB, free: 7.906 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.949e-06/0.2364, allocations: 16 kB / 342.8 MB, free: 7.891 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.2364, allocations: 0 / 342.8 MB, free: 7.891 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.025e-06/0.2365, allocations: 3.984 kB / 342.8 MB, free: 7.887 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002812/0.2393, allocations: 2.052 MB / 344.9 MB, free: 5.816 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.06e-06/0.2393, allocations: 3.984 kB / 344.9 MB, free: 5.812 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004572/0.2397, allocations: 175.8 kB / 345 MB, free: 5.641 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001317/0.241, allocations: 0.6041 MB / 345.6 MB, free: 5.031 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.032e-05/0.2411, allocations: 31.98 kB / 345.7 MB, free: 5 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001427/0.2426, allocations: 1.211 MB / 346.9 MB, free: 3.754 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.985e-06/0.2426, allocations: 3.984 kB / 346.9 MB, free: 3.75 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002193/0.2447, allocations: 1.424 MB / 348.3 MB, free: 2.305 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003956/0.2451, allocations: 270.9 kB / 348.6 MB, free: 2.039 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001095/0.2453, allocations: 24 kB / 348.6 MB, free: 2.016 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003896/0.2456, allocations: 51.97 kB / 348.7 MB, free: 1.965 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001564/0.2458, allocations: 89.12 kB / 348.7 MB, free: 1.879 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.514e-05/0.2459, allocations: 43.97 kB / 348.8 MB, free: 1.836 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0004928/0.2464, allocations: 0.5695 MB / 349.4 MB, free: 1.258 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.2464, allocations: 0 / 349.4 MB, free: 1.258 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001547/0.2479, allocations: 0.8779 MB / 350.2 MB, free: 388 kB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T,tank3.level,tank3.medium.T) * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (90): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(9,29)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007717/0.2487, allocations: 464.5 kB / 350.7 MB, free: 15.93 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.003063/0.2517, allocations: 1.613 MB / 352.3 MB, free: 14.33 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.192e-06/0.2517, allocations: 4 kB / 352.3 MB, free: 14.32 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007476/0.2525, allocations: 0.4987 MB / 352.8 MB, free: 13.82 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001463/0.254, allocations: 0.6367 MB / 353.4 MB, free: 13.22 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003556/0.2575, allocations: 2.486 MB / 355.9 MB, free: 10.71 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002162/0.2577, allocations: 340.6 kB / 356.3 MB, free: 10.36 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.000989/0.2587, allocations: 0.4928 MB / 356.7 MB, free: 9.859 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00023/0.2589, allocations: 116.5 kB / 356.9 MB, free: 9.746 MB / 314.7 MB Notification: Performance of SimCode: time 2.174e-06/0.2589, allocations: 0 / 356.9 MB, free: 9.746 MB / 314.7 MB Notification: Performance of Templates: time 0.03856/0.2975, allocations: 34.82 MB / 391.7 MB, free: 7.332 MB / 346.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.sim & ./Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Fluid/Examples/Tanks/ThreeTanks/ThreeTanks.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.9215205842629075]