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.00144/0.00144, 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.00158/0.00158, allocations: 156.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 0.9963/0.9963, allocations: 177 MB / 204.8 MB, free: 5.609 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 2.495e-06/2.495e-06, allocations: 0 / 272.9 MB, free: 1.5 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.368e-05/3.618e-05, allocations: 9.125 kB / 272.9 MB, free: 1.492 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.00801/0.008047, allocations: 8.099 MB / 281 MB, free: 9.348 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006656/0.0147, allocations: 5.601 MB / 286.6 MB, free: 3.738 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000743/0.01545, allocations: 27.75 kB / 286.6 MB, free: 3.711 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006801/0.01613, allocations: 238.4 kB / 286.9 MB, free: 3.477 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002104/0.01823, allocations: 1.064 MB / 287.9 MB, free: 2.406 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003183/0.02141, allocations: 1.796 MB / 289.7 MB, free: 0.6016 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1322/0.1536, allocations: 2.175 MB / 291.9 MB, free: 15.73 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001046/0.1546, allocations: 0.531 MB / 292.4 MB, free: 15.69 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001964/0.1566, allocations: 1.04 MB / 293.5 MB, free: 15.6 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001321/0.1579, allocations: 0.7841 MB / 294.2 MB, free: 15.54 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002445/0.1582, allocations: 79.69 kB / 294.3 MB, free: 15.54 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001811/0.16, allocations: 0.9073 MB / 295.2 MB, free: 15.52 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003493/0.1603, allocations: 339.5 kB / 295.6 MB, free: 15.48 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004629/0.1608, allocations: 338.9 kB / 295.9 MB, free: 15.45 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002483/0.1633, allocations: 1.552 MB / 297.4 MB, free: 15.34 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.53e-06/0.1633, allocations: 0.5312 kB / 297.4 MB, free: 15.34 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.495e-06/0.1633, allocations: 1.344 kB / 297.4 MB, free: 15.34 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.234e-05/0.1633, allocations: 0.5312 kB / 297.4 MB, free: 15.34 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.002526/0.1658, allocations: 1.301 MB / 298.7 MB, free: 14.59 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.649e-05/0.1659, allocations: 15.92 kB / 298.8 MB, free: 14.58 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004152/0.1663, allocations: 157.4 kB / 298.9 MB, free: 14.53 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008009/0.1671, allocations: 0.5775 MB / 299.5 MB, free: 14.3 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001294/0.1672, allocations: 157.9 kB / 299.6 MB, free: 14.18 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001071/0.1673, allocations: 65.45 kB / 299.7 MB, free: 14.18 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001046/0.1684, allocations: 0.8557 MB / 300.6 MB, free: 13.7 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.886e-05/0.1684, allocations: 0.9375 kB / 300.6 MB, free: 13.7 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.517e-05/0.1685, allocations: 28.28 kB / 300.6 MB, free: 13.7 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.112e-05/0.1685, allocations: 55.72 kB / 300.7 MB, free: 13.69 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006424/0.1692, allocations: 365.1 kB / 301 MB, free: 13.68 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002998/0.1722, allocations: 2.277 MB / 303.3 MB, free: 12.77 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005206/0.1727, allocations: 342.8 kB / 303.6 MB, free: 12.73 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002211/0.1729, allocations: 158 kB / 303.8 MB, free: 12.71 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001258/0.1742, allocations: 0.9561 MB / 304.7 MB, free: 12.21 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.976e-05/0.1742, allocations: 42.95 kB / 304.8 MB, free: 12.16 MB / 266.7 MB Notification: Performance of pre-optimization done (n=56): time 2.745e-06/0.1742, allocations: 0 / 304.8 MB, free: 12.16 MB / 266.7 MB Notification: Performance of matching and sorting (n=66): time 0.003175/0.1774, allocations: 1.643 MB / 306.4 MB, free: 11.54 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.55e-05/0.1774, allocations: 89.52 kB / 306.5 MB, free: 11.45 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000435/0.1779, allocations: 0.5421 MB / 307 MB, free: 11.16 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.259e-05/0.1779, allocations: 37.02 kB / 307.1 MB, free: 11.12 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001551/0.1781, allocations: 407.6 kB / 307.5 MB, free: 10.78 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001418/0.1782, allocations: 244.5 kB / 307.7 MB, free: 10.59 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001778/0.1784, allocations: 158.2 kB / 307.9 MB, free: 10.51 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001081/0.1785, allocations: 0.5552 MB / 308.4 MB, free: 9.98 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000247/0.1787, allocations: 150.2 kB / 308.6 MB, free: 9.949 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003/0.179, allocations: 393.4 kB / 309 MB, free: 9.637 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005175/0.1796, allocations: 0.5078 MB / 309.5 MB, free: 9.305 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.756e-06/0.1796, allocations: 4 kB / 309.5 MB, free: 9.301 MB / 266.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.0008854/0.1804, allocations: 0.675 MB / 310.1 MB, free: 9.074 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.542e-05/0.1805, allocations: 6.281 kB / 310.2 MB, free: 9.074 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.01e-05/0.1805, allocations: 5.688 kB / 310.2 MB, free: 9.074 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007063/0.1812, allocations: 297.5 kB / 310.4 MB, free: 8.961 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003507/0.1815, allocations: 158 kB / 310.6 MB, free: 8.938 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005302/0.1821, allocations: 0.952 MB / 311.6 MB, free: 8.059 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002669/0.1823, allocations: 32.98 kB / 311.6 MB, free: 8.039 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.639e-05/0.1824, allocations: 31.14 kB / 311.6 MB, free: 8.031 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003175/0.1827, allocations: 278.2 kB / 311.9 MB, free: 7.852 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002773/0.183, allocations: 402.3 kB / 312.3 MB, free: 7.496 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000501/0.1835, allocations: 0.505 MB / 312.8 MB, free: 7.129 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.695e-06/0.1835, allocations: 3.406 kB / 312.8 MB, free: 7.129 MB / 266.7 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.0008318/0.1843, allocations: 0.6558 MB / 313.4 MB, free: 6.598 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.353e-05/0.1843, allocations: 7.938 kB / 313.5 MB, free: 6.59 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.1843, allocations: 11.98 kB / 313.5 MB, free: 6.578 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003048/0.1846, allocations: 193.5 kB / 313.7 MB, free: 6.395 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003132/0.1849, allocations: 163.3 kB / 313.8 MB, free: 6.246 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003804/0.1853, allocations: 0.9036 MB / 314.7 MB, free: 5.316 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002679/0.1856, allocations: 35.97 kB / 314.8 MB, free: 5.281 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.773e-05/0.1856, allocations: 32 kB / 314.8 MB, free: 5.25 MB / 266.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.0001684/0.1858, allocations: 322.3 kB / 315.1 MB, free: 4.938 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001038/0.1859, allocations: 91.58 kB / 315.2 MB, free: 4.848 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008097/0.1867, allocations: 0.6118 MB / 315.8 MB, free: 4.238 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.94e-06/0.1867, allocations: 4 kB / 315.8 MB, free: 4.234 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.1867, allocations: 3.312 kB / 315.8 MB, free: 4.234 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.7e-06/0.1867, allocations: 7.984 kB / 315.8 MB, free: 4.227 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001367/0.1881, allocations: 1.21 MB / 317 MB, free: 2.992 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.1881, allocations: 4 kB / 317 MB, free: 2.988 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002754/0.1884, allocations: 118.5 kB / 317.1 MB, free: 2.879 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000501/0.1889, allocations: 289.2 kB / 317.4 MB, free: 2.598 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.919e-05/0.1889, allocations: 19.98 kB / 317.4 MB, free: 2.578 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004301/0.1893, allocations: 0.9612 MB / 318.4 MB, free: 1.59 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.1893, allocations: 0 / 318.4 MB, free: 1.59 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008851/0.1902, allocations: 0.8481 MB / 319.3 MB, free: 0.7148 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001928/0.1904, allocations: 151.3 kB / 319.4 MB, free: 0.5664 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.169e-05/0.1905, allocations: 15.28 kB / 319.4 MB, free: 0.5547 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002173/0.1907, allocations: 27.97 kB / 319.4 MB, free: 0.5273 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.75e-05/0.1908, allocations: 52.56 kB / 319.5 MB, free: 488 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.698e-05/0.1908, allocations: 23.98 kB / 319.5 MB, free: 464 kB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002263/0.1911, allocations: 350.8 kB / 319.9 MB, free: 116 kB / 266.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1911, allocations: 0 / 319.9 MB, free: 116 kB / 266.7 MB Notification: Performance of remove unused functions: time 0.001389/0.1924, allocations: 0.5615 MB / 320.4 MB, free: 15.55 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 (56): * Single equations (assignments): 55 * 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.000736/0.1932, allocations: 444.2 kB / 320.9 MB, free: 15.13 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001377/0.1946, allocations: 0.8012 MB / 321.7 MB, free: 14.37 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.1946, allocations: 0 / 321.7 MB, free: 14.37 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004173/0.195, allocations: 273 kB / 321.9 MB, free: 14.11 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001226/0.1962, allocations: 388.2 kB / 322.3 MB, free: 13.77 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00234/0.1985, allocations: 1.391 MB / 323.7 MB, free: 12.36 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001255/0.1987, allocations: 200.5 kB / 323.9 MB, free: 12.14 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0005787/0.1992, allocations: 269.7 kB / 324.2 MB, free: 11.88 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001321/0.1994, allocations: 72.14 kB / 324.2 MB, free: 11.81 MB / 282.7 MB Notification: Performance of SimCode: time 1.192e-06/0.1994, allocations: 0 / 324.2 MB, free: 11.81 MB / 282.7 MB Notification: Performance of Templates: time 0.02776/0.2271, allocations: 20.67 MB / 344.9 MB, free: 7.477 MB / 298.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.549583988264203]