Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.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.0008197/0.0008197, allocations: 79.69 kB / 21.7 MB, free: 2.852 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.0008786/0.0008786, allocations: 160.9 kB / 24.99 MB, free: 8.805 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 1.011/1.011, allocations: 177 MB / 205.2 MB, free: 5.617 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.EmptyTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|tank1.level|tank2.level|tank2.ports.[0-9,]+..m_flow",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks") translateModel(Modelica.Fluid.Examples.Tanks.EmptyTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|tank1.level|tank2.level|tank2.ports.[0-9,]+..m_flow",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.563e-06/1.563e-06, allocations: 0 / 273 MB, free: 1.809 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.26e-05/2.417e-05, allocations: 2.312 kB / 273 MB, free: 1.805 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.0128/0.01283, allocations: 16.38 MB / 289.3 MB, free: 1.352 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1345/0.1473, allocations: 6.89 MB / 296.2 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006718/0.148, allocations: 33.72 kB / 296.3 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007414/0.1487, allocations: 326.9 kB / 296.6 MB, free: 14.1 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002318/0.151, allocations: 1.144 MB / 297.7 MB, free: 13.86 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00407/0.1551, allocations: 1.894 MB / 299.6 MB, free: 13.73 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00267/0.1578, allocations: 2.16 MB / 301.8 MB, free: 13.37 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008288/0.1586, allocations: 0.5319 MB / 302.3 MB, free: 13.19 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001451/0.1601, allocations: 1.064 MB / 303.4 MB, free: 12.82 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001092/0.1612, allocations: 0.782 MB / 304.2 MB, free: 12.66 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001787/0.1613, allocations: 78.38 kB / 304.2 MB, free: 12.66 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002093/0.1634, allocations: 1.026 MB / 305.3 MB, free: 12.45 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00027/0.1637, allocations: 358.1 kB / 305.6 MB, free: 12.26 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003603/0.1641, allocations: 330.9 kB / 305.9 MB, free: 12.11 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002087/0.1661, allocations: 1.653 MB / 307.6 MB, free: 11.19 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.1661, allocations: 0 / 307.6 MB, free: 11.19 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1661, allocations: 0 / 307.6 MB, free: 11.19 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.931e-05/0.1662, allocations: 0 / 307.6 MB, free: 11.19 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: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.001652/0.1678, allocations: 1.33 MB / 308.9 MB, free: 10.17 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.547e-05/0.1679, allocations: 13.05 kB / 308.9 MB, free: 10.17 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002968/0.1682, allocations: 158.8 kB / 309.1 MB, free: 10.09 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005614/0.1687, allocations: 0.5813 MB / 309.7 MB, free: 9.684 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.693e-05/0.1688, allocations: 162.3 kB / 309.8 MB, free: 9.535 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.536e-05/0.1689, allocations: 58.66 kB / 309.9 MB, free: 9.52 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006949/0.1696, allocations: 0.8524 MB / 310.7 MB, free: 8.824 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.63e-05/0.1696, allocations: 5.812 kB / 310.7 MB, free: 8.82 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.808e-05/0.1696, allocations: 23.33 kB / 310.8 MB, free: 8.809 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.134e-05/0.1697, allocations: 56.48 kB / 310.8 MB, free: 8.789 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005282/0.1702, allocations: 350.1 kB / 311.2 MB, free: 8.672 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002289/0.1725, allocations: 2.3 MB / 313.5 MB, free: 6.93 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004272/0.1729, allocations: 341.4 kB / 313.8 MB, free: 6.777 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001916/0.1731, allocations: 148.7 kB / 313.9 MB, free: 6.723 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001046/0.1742, allocations: 0.9698 MB / 314.9 MB, free: 6.008 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.579e-05/0.1742, allocations: 49.81 kB / 315 MB, free: 5.953 MB / 266.7 MB Notification: Performance of pre-optimization done (n=56): time 1.162e-06/0.1742, allocations: 2.094 kB / 315 MB, free: 5.953 MB / 266.7 MB Notification: Performance of matching and sorting (n=66): time 0.002798/0.177, allocations: 1.648 MB / 316.6 MB, free: 4.598 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.593e-05/0.177, allocations: 85.77 kB / 316.7 MB, free: 4.496 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003301/0.1773, allocations: 0.5415 MB / 317.2 MB, free: 3.938 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.837e-05/0.1774, allocations: 41.7 kB / 317.3 MB, free: 3.891 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001229/0.1775, allocations: 407.3 kB / 317.7 MB, free: 3.488 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.724e-05/0.1776, allocations: 239.4 kB / 317.9 MB, free: 3.258 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001431/0.1777, allocations: 160.2 kB / 318.1 MB, free: 3.094 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.983e-05/0.1778, allocations: 0.5547 MB / 318.6 MB, free: 2.527 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002264/0.178, allocations: 151.6 kB / 318.8 MB, free: 2.379 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002781/0.1783, allocations: 394 kB / 319.2 MB, free: 1.906 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005155/0.1788, allocations: 0.5179 MB / 319.7 MB, free: 1.312 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.1788, allocations: 4 kB / 319.7 MB, free: 1.309 MB / 266.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.0008679/0.1797, allocations: 0.6788 MB / 320.4 MB, free: 0.625 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.917e-05/0.1797, allocations: 8.625 kB / 320.4 MB, free: 0.6172 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.224e-06/0.1797, allocations: 4 kB / 320.4 MB, free: 0.6133 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006408/0.1804, allocations: 297.9 kB / 320.7 MB, free: 332 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003435/0.1807, allocations: 163.8 kB / 320.8 MB, free: 168 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006041/0.1813, allocations: 0.9404 MB / 321.8 MB, free: 15.19 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002516/0.1816, allocations: 31.98 kB / 321.8 MB, free: 15.16 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.337e-05/0.1816, allocations: 39.98 kB / 321.8 MB, free: 15.12 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003466/0.182, allocations: 272.8 kB / 322.1 MB, free: 14.85 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003392/0.1823, allocations: 397.6 kB / 322.5 MB, free: 14.37 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005795/0.1829, allocations: 0.5181 MB / 323 MB, free: 13.76 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.184e-06/0.1829, allocations: 0 / 323 MB, free: 13.76 MB / 282.7 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.000888/0.1838, allocations: 0.6737 MB / 323.7 MB, free: 13.08 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.17e-05/0.1838, allocations: 14.75 kB / 323.7 MB, free: 13.07 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.398e-06/0.1838, allocations: 4 kB / 323.7 MB, free: 13.07 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003207/0.1841, allocations: 189.1 kB / 323.9 MB, free: 12.88 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003292/0.1845, allocations: 167.7 kB / 324 MB, free: 12.72 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004859/0.1849, allocations: 0.9021 MB / 324.9 MB, free: 11.79 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002365/0.1852, allocations: 27.98 kB / 325 MB, free: 11.76 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.104e-05/0.1852, allocations: 35.98 kB / 325 MB, free: 11.72 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 4 (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 (84): * Single equations (assignments): 83 * 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 {(4,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0001677/0.1854, allocations: 323.8 kB / 325.3 MB, free: 11.4 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001143/0.1855, allocations: 91.58 kB / 325.4 MB, free: 11.31 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008896/0.1864, allocations: 0.6183 MB / 326 MB, free: 10.69 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.911e-06/0.1864, allocations: 8 kB / 326 MB, free: 10.68 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/0.1864, allocations: 3.938 kB / 326 MB, free: 10.68 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.722e-06/0.1864, allocations: 3.984 kB / 326 MB, free: 10.68 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001476/0.1879, allocations: 1.244 MB / 327.3 MB, free: 9.402 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.1879, allocations: 0 / 327.3 MB, free: 9.402 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002938/0.1882, allocations: 115.9 kB / 327.4 MB, free: 9.289 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005392/0.1887, allocations: 296.9 kB / 327.7 MB, free: 8.996 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.453e-05/0.1888, allocations: 23.92 kB / 327.7 MB, free: 8.973 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005784/0.1893, allocations: 0.9587 MB / 328.7 MB, free: 7.984 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.1893, allocations: 0 / 328.7 MB, free: 7.984 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001064/0.1904, allocations: 0.874 MB / 329.5 MB, free: 7.086 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001978/0.1906, allocations: 147.4 kB / 329.7 MB, free: 6.941 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.668e-05/0.1907, allocations: 16 kB / 329.7 MB, free: 6.926 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002299/0.1909, allocations: 23.98 kB / 329.7 MB, free: 6.902 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.374e-05/0.191, allocations: 52.55 kB / 329.8 MB, free: 6.852 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.014e-05/0.191, allocations: 27.98 kB / 329.8 MB, free: 6.824 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002563/0.1913, allocations: 350.8 kB / 330.2 MB, free: 6.484 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1913, allocations: 0 / 330.2 MB, free: 6.484 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001231/0.1925, allocations: 0.5887 MB / 330.7 MB, free: 5.895 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T) * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 57 * 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 {(4,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007426/0.1933, allocations: 0.5193 MB / 331.3 MB, free: 5.391 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001299/0.1946, allocations: 0.8015 MB / 332.1 MB, free: 4.59 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/0.1946, allocations: 3.859 kB / 332.1 MB, free: 4.586 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004118/0.195, allocations: 278.3 kB / 332.3 MB, free: 4.312 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009279/0.1959, allocations: 386.1 kB / 332.7 MB, free: 3.969 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002215/0.1981, allocations: 1.405 MB / 334.1 MB, free: 2.531 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001348/0.1983, allocations: 205.1 kB / 334.3 MB, free: 2.309 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0005737/0.1988, allocations: 263 kB / 334.6 MB, free: 2.051 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001305/0.199, allocations: 80.41 kB / 334.7 MB, free: 1.973 MB / 282.7 MB Notification: Performance of SimCode: time 1.092e-06/0.199, allocations: 0 / 334.7 MB, free: 1.973 MB / 282.7 MB Notification: Performance of Templates: time 0.02337/0.2223, allocations: 22.05 MB / 356.7 MB, free: 12.21 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & ./Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Fluid/Examples/Tanks/EmptyTanks/EmptyTanks.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.3003759160637856]