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.001081/0.001081, allocations: 88.86 kB / 21.5 MB, free: 2.988 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.001194/0.001194, allocations: 159.9 kB / 24.91 MB, free: 8.719 MB / 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 0.9616/0.9616, allocations: 177 MB / 205.2 MB, free: 5.035 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.222e-06/1.222e-06, allocations: 0 / 273.4 MB, free: 1.023 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.703e-05/1.825e-05, allocations: 5.266 kB / 273.4 MB, free: 1.02 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.01976/0.01978, allocations: 11.16 MB / 284.6 MB, free: 5.812 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1201/0.1398, allocations: 6.952 MB / 291.5 MB, free: 13.99 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001401/0.1412, allocations: 61.78 kB / 291.6 MB, free: 13.99 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001049/0.1423, allocations: 416.4 kB / 292 MB, free: 13.99 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003549/0.1458, allocations: 1.769 MB / 293.8 MB, free: 13.74 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004827/0.1507, allocations: 2.68 MB / 296.4 MB, free: 13.63 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004912/0.1556, allocations: 3.991 MB / 300.4 MB, free: 12.93 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00138/0.157, allocations: 1.027 MB / 301.5 MB, free: 12.68 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002791/0.1597, allocations: 2.011 MB / 303.5 MB, free: 11.96 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001787/0.1615, allocations: 1.434 MB / 304.9 MB, free: 11.27 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003081/0.1618, allocations: 158.3 kB / 305.1 MB, free: 11.27 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001876/0.1637, allocations: 1.086 MB / 306.1 MB, free: 10.86 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004325/0.1642, allocations: 0.6735 MB / 306.8 MB, free: 10.41 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007057/0.1649, allocations: 0.6312 MB / 307.4 MB, free: 10.11 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002253/0.1671, allocations: 2.298 MB / 309.7 MB, free: 8.828 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.1671, allocations: 0 / 309.7 MB, free: 8.828 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1671, allocations: 0 / 309.7 MB, free: 8.828 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.849e-05/0.1671, allocations: 3.984 kB / 309.7 MB, free: 8.824 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.002135/0.1693, allocations: 1.854 MB / 311.6 MB, free: 7.598 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.353e-05/0.1693, allocations: 12.95 kB / 311.6 MB, free: 7.594 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004631/0.1698, allocations: 239.7 kB / 311.8 MB, free: 7.496 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008856/0.1707, allocations: 0.8278 MB / 312.7 MB, free: 6.996 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.887e-05/0.1708, allocations: 252.4 kB / 312.9 MB, free: 6.77 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001147/0.1709, allocations: 118 kB / 313 MB, free: 6.664 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009426/0.1718, allocations: 1.418 MB / 314.5 MB, free: 5.148 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.118e-05/0.1718, allocations: 0 / 314.5 MB, free: 5.148 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.391e-05/0.1719, allocations: 55.06 kB / 314.5 MB, free: 5.109 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.98e-05/0.172, allocations: 109.9 kB / 314.6 MB, free: 5 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006442/0.1726, allocations: 0.5303 MB / 315.1 MB, free: 4.453 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003817/0.1764, allocations: 3.081 MB / 318.2 MB, free: 1.461 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005062/0.177, allocations: 0.5785 MB / 318.8 MB, free: 0.9062 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002451/0.1772, allocations: 213.2 kB / 319 MB, free: 0.6992 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001974/0.1792, allocations: 1.457 MB / 320.5 MB, free: 15.27 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.347e-05/0.1792, allocations: 50.66 kB / 320.5 MB, free: 15.21 MB / 282.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004201/0.1796, allocations: 179.2 kB / 320.7 MB, free: 15.04 MB / 282.7 MB Notification: Performance of pre-optimization done (n=97): time 2.375e-06/0.1796, allocations: 0 / 320.7 MB, free: 15.04 MB / 282.7 MB Notification: Performance of matching and sorting (n=112): time 0.005996/0.1856, allocations: 2.672 MB / 323.4 MB, free: 12.39 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.201e-05/0.1857, allocations: 145.5 kB / 323.5 MB, free: 12.21 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005982/0.1863, allocations: 0.8575 MB / 324.4 MB, free: 11.49 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 6.984e-05/0.1863, allocations: 45.7 kB / 324.4 MB, free: 11.44 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000202/0.1865, allocations: 0.497 MB / 324.9 MB, free: 10.99 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002069/0.1868, allocations: 408.6 kB / 325.3 MB, free: 10.61 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002719/0.187, allocations: 272 kB / 325.6 MB, free: 10.37 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.457e-05/0.1871, allocations: 305.1 kB / 325.9 MB, free: 10.07 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002789/0.1874, allocations: 199.6 kB / 326.1 MB, free: 9.871 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004223/0.1878, allocations: 0.6015 MB / 326.7 MB, free: 9.152 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007413/0.1885, allocations: 0.8079 MB / 327.5 MB, free: 8.281 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.608e-06/0.1885, allocations: 4 kB / 327.5 MB, free: 8.277 MB / 282.7 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.001108/0.1896, allocations: 0.8858 MB / 328.4 MB, free: 7.441 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.854e-05/0.1897, allocations: 8 kB / 328.4 MB, free: 7.434 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.08e-05/0.1897, allocations: 8 kB / 328.4 MB, free: 7.426 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002819/0.1925, allocations: 0.9501 MB / 329.3 MB, free: 6.488 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007694/0.1933, allocations: 322.4 kB / 329.6 MB, free: 6.191 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008621/0.1941, allocations: 0.8235 MB / 330.5 MB, free: 5.367 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006276/0.1948, allocations: 52.86 kB / 330.5 MB, free: 5.316 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.434e-05/0.1948, allocations: 51.97 kB / 330.6 MB, free: 5.266 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004696/0.1953, allocations: 293.7 kB / 330.9 MB, free: 4.973 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000407/0.1957, allocations: 0.6138 MB / 331.5 MB, free: 4.227 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007086/0.1964, allocations: 0.8083 MB / 332.3 MB, free: 3.344 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.448e-06/0.1964, allocations: 8 kB / 332.3 MB, free: 3.336 MB / 282.7 MB Notification: Performance of matching and sorting (n=181) (initialization_lambda0): time 0.001014/0.1974, allocations: 0.8844 MB / 333.2 MB, free: 2.445 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.455e-05/0.1975, allocations: 13.25 kB / 333.2 MB, free: 2.434 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.1975, allocations: 8 kB / 333.2 MB, free: 2.426 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002247/0.1997, allocations: 0.8075 MB / 334 MB, free: 1.621 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006258/0.2003, allocations: 329.7 kB / 334.3 MB, free: 1.301 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005907/0.2009, allocations: 0.7559 MB / 335.1 MB, free: 0.5312 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004642/0.2014, allocations: 55.98 kB / 335.1 MB, free: 488 kB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.474e-05/0.2015, allocations: 51.97 kB / 335.2 MB, free: 436 kB / 282.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.0002378/0.2017, allocations: 275.8 kB / 335.5 MB, free: 152 kB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001504/0.2019, allocations: 119.9 kB / 335.6 MB, free: 32 kB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001369/0.2032, allocations: 0.9209 MB / 336.5 MB, free: 15.12 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.035e-06/0.2032, allocations: 12 kB / 336.5 MB, free: 15.11 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.566e-06/0.2032, allocations: 6.734 kB / 336.5 MB, free: 15.11 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.494e-06/0.2032, allocations: 3.984 kB / 336.5 MB, free: 15.11 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001757/0.205, allocations: 1.453 MB / 338 MB, free: 13.73 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.115e-06/0.205, allocations: 0 / 338 MB, free: 13.73 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004795/0.2055, allocations: 209.2 kB / 338.2 MB, free: 13.53 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001018/0.2065, allocations: 0.6006 MB / 338.8 MB, free: 12.93 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.678e-05/0.2066, allocations: 39.92 kB / 338.8 MB, free: 12.89 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006908/0.2072, allocations: 0.8497 MB / 339.7 MB, free: 12.03 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.2072, allocations: 0 / 339.7 MB, free: 12.03 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001155/0.2084, allocations: 1.056 MB / 340.7 MB, free: 10.99 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000263/0.2087, allocations: 191.1 kB / 340.9 MB, free: 10.8 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001022/0.2088, allocations: 23.98 kB / 340.9 MB, free: 10.78 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003357/0.2091, allocations: 43.98 kB / 341 MB, free: 10.73 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000127/0.2092, allocations: 85.12 kB / 341.1 MB, free: 10.65 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.761e-05/0.2093, allocations: 27.98 kB / 341.1 MB, free: 10.62 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002777/0.2096, allocations: 405.4 kB / 341.5 MB, free: 10.26 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.2096, allocations: 0 / 341.5 MB, free: 10.26 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.00137/0.2109, allocations: 0.8701 MB / 342.3 MB, free: 9.391 MB / 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.0006252/0.2116, allocations: 453.1 kB / 342.8 MB, free: 8.965 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001993/0.2136, allocations: 1.325 MB / 344.1 MB, free: 7.672 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.512e-05/0.2136, allocations: 12.88 kB / 344.1 MB, free: 7.66 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005307/0.2141, allocations: 400.9 kB / 344.5 MB, free: 7.273 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001257/0.2154, allocations: 0.6417 MB / 345.2 MB, free: 6.656 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002826/0.2182, allocations: 2.363 MB / 347.5 MB, free: 4.293 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002283/0.2184, allocations: 332.7 kB / 347.8 MB, free: 3.945 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0007492/0.2192, allocations: 298.3 kB / 348.1 MB, free: 3.652 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008679/0.22, allocations: 496.9 kB / 348.6 MB, free: 3.16 MB / 298.7 MB Notification: Performance of SimCode: time 8.72e-07/0.22, allocations: 3.938 kB / 348.6 MB, free: 3.156 MB / 298.7 MB Notification: Performance of Templates: time 0.04586/0.2659, allocations: 38.11 MB / 386.7 MB, free: 13.5 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 -s gbode -gbm=radauIIA3 -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.591038935817778]