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.001228/0.001228, allocations: 91.5 kB / 21.19 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.001399/0.001399, 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.949/0.949, allocations: 177 MB / 204.8 MB, free: 5.426 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.543e-06/1.543e-06, allocations: 0 / 272.9 MB, free: 1.355 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.762e-05/1.917e-05, allocations: 10.25 kB / 272.9 MB, free: 1.344 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.009837/0.009857, allocations: 8.091 MB / 281 MB, free: 9.207 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.008728/0.01858, allocations: 5.601 MB / 286.6 MB, free: 3.598 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005068/0.01909, allocations: 31.75 kB / 286.6 MB, free: 3.566 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005041/0.0196, allocations: 246.4 kB / 286.9 MB, free: 3.324 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002077/0.02167, allocations: 1.064 MB / 287.9 MB, free: 2.254 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002767/0.02444, allocations: 1.788 MB / 289.7 MB, free: 468 kB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1247/0.1492, allocations: 2.18 MB / 291.9 MB, free: 15.79 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006309/0.1498, allocations: 0.527 MB / 292.4 MB, free: 15.75 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00119/0.151, allocations: 1.084 MB / 293.5 MB, free: 15.66 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007867/0.1518, allocations: 0.7678 MB / 294.3 MB, free: 15.6 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001135/0.1519, allocations: 79.75 kB / 294.3 MB, free: 15.6 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001574/0.1535, allocations: 0.9082 MB / 295.3 MB, free: 15.58 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002727/0.1537, allocations: 344.2 kB / 295.6 MB, free: 15.54 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003117/0.1541, allocations: 328.1 kB / 295.9 MB, free: 15.5 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001877/0.1559, allocations: 1.554 MB / 297.5 MB, free: 15.4 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.805e-06/0.1559, allocations: 1.656 kB / 297.5 MB, free: 15.4 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.293e-06/0.1559, allocations: 1.094 kB / 297.5 MB, free: 15.4 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.067e-06/0.1559, allocations: 0 / 297.5 MB, free: 15.4 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.001812/0.1578, allocations: 1.294 MB / 298.8 MB, free: 14.65 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.26e-05/0.1578, allocations: 12.98 kB / 298.8 MB, free: 14.64 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003393/0.1581, allocations: 162 kB / 298.9 MB, free: 14.59 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007305/0.1589, allocations: 0.5703 MB / 299.5 MB, free: 14.37 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001006/0.159, allocations: 157.7 kB / 299.7 MB, free: 14.25 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001074/0.1591, allocations: 63.36 kB / 299.7 MB, free: 14.24 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009313/0.16, allocations: 0.857 MB / 300.6 MB, free: 13.76 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.887e-05/0.16, allocations: 1.312 kB / 300.6 MB, free: 13.76 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.447e-05/0.1601, allocations: 30.73 kB / 300.6 MB, free: 13.76 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.765e-05/0.1602, allocations: 47.56 kB / 300.7 MB, free: 13.76 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007017/0.1609, allocations: 362.8 kB / 301 MB, free: 13.75 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003008/0.1639, allocations: 2.286 MB / 303.3 MB, free: 12.83 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005671/0.1644, allocations: 342.8 kB / 303.6 MB, free: 12.79 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002683/0.1647, allocations: 154.1 kB / 303.8 MB, free: 12.77 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001356/0.1661, allocations: 0.9539 MB / 304.7 MB, free: 12.26 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.372e-05/0.1661, allocations: 41.52 kB / 304.8 MB, free: 12.21 MB / 266.7 MB Notification: Performance of pre-optimization done (n=56): time 1.683e-06/0.1661, allocations: 0 / 304.8 MB, free: 12.21 MB / 266.7 MB Notification: Performance of matching and sorting (n=66): time 0.003574/0.1697, allocations: 1.642 MB / 306.4 MB, free: 11.59 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.072e-05/0.1697, allocations: 88.73 kB / 306.5 MB, free: 11.5 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004076/0.1701, allocations: 0.5344 MB / 307 MB, free: 11.22 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.608e-05/0.1701, allocations: 37.58 kB / 307.1 MB, free: 11.18 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001578/0.1703, allocations: 411.6 kB / 307.5 MB, free: 10.84 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001225/0.1704, allocations: 242.3 kB / 307.7 MB, free: 10.65 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001903/0.1706, allocations: 156.4 kB / 307.9 MB, free: 10.57 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.398e-05/0.1707, allocations: 0.553 MB / 308.4 MB, free: 10.04 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002798/0.171, allocations: 149.5 kB / 308.6 MB, free: 10.01 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003472/0.1713, allocations: 395.1 kB / 309 MB, free: 9.695 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006199/0.172, allocations: 0.5096 MB / 309.5 MB, free: 9.363 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.997e-06/0.172, allocations: 4.281 kB / 309.5 MB, free: 9.363 MB / 266.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001072/0.173, allocations: 0.6771 MB / 310.1 MB, free: 9.105 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.438e-05/0.173, allocations: 7.188 kB / 310.1 MB, free: 9.105 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.626e-06/0.1731, allocations: 7.594 kB / 310.2 MB, free: 9.102 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00073/0.1738, allocations: 298 kB / 310.4 MB, free: 8.992 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004383/0.1742, allocations: 157.4 kB / 310.6 MB, free: 8.969 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005504/0.1748, allocations: 0.9481 MB / 311.5 MB, free: 8.09 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003182/0.1751, allocations: 30.77 kB / 311.6 MB, free: 8.074 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.823e-05/0.1751, allocations: 30.95 kB / 311.6 MB, free: 8.066 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003596/0.1755, allocations: 286.8 kB / 311.9 MB, free: 7.879 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000355/0.1759, allocations: 395.2 kB / 312.3 MB, free: 7.527 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006099/0.1765, allocations: 0.5121 MB / 312.8 MB, free: 7.16 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.346e-06/0.1765, allocations: 2.188 kB / 312.8 MB, free: 7.16 MB / 266.7 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.0009988/0.1775, allocations: 0.6547 MB / 313.4 MB, free: 6.594 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.248e-06/0.1775, allocations: 12.03 kB / 313.5 MB, free: 6.582 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.1775, allocations: 8 kB / 313.5 MB, free: 6.574 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003695/0.1779, allocations: 200 kB / 313.7 MB, free: 6.387 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004253/0.1783, allocations: 159.3 kB / 313.8 MB, free: 6.238 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004276/0.1787, allocations: 0.905 MB / 314.7 MB, free: 5.309 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003125/0.179, allocations: 31.98 kB / 314.8 MB, free: 5.277 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.104e-05/0.1791, allocations: 31.98 kB / 314.8 MB, free: 5.246 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.0001309/0.1792, allocations: 319.3 kB / 315.1 MB, free: 4.938 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001291/0.1793, allocations: 100.2 kB / 315.2 MB, free: 4.84 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009676/0.1803, allocations: 0.6038 MB / 315.8 MB, free: 4.234 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.889e-06/0.1803, allocations: 8 kB / 315.8 MB, free: 4.227 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.1803, allocations: 0 / 315.8 MB, free: 4.227 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.412e-06/0.1803, allocations: 3.984 kB / 315.8 MB, free: 4.223 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001559/0.1819, allocations: 1.208 MB / 317 MB, free: 2.988 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.966e-06/0.1819, allocations: 3.984 kB / 317 MB, free: 2.984 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003688/0.1823, allocations: 115.3 kB / 317.1 MB, free: 2.875 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000622/0.1829, allocations: 301.3 kB / 317.4 MB, free: 2.586 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.481e-05/0.1829, allocations: 19.98 kB / 317.4 MB, free: 2.566 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005032/0.1834, allocations: 0.956 MB / 318.4 MB, free: 1.578 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.1834, allocations: 0 / 318.4 MB, free: 1.578 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001117/0.1845, allocations: 0.8486 MB / 319.2 MB, free: 0.707 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000211/0.1847, allocations: 147.4 kB / 319.4 MB, free: 0.5625 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.298e-05/0.1848, allocations: 16 kB / 319.4 MB, free: 0.5469 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000295/0.1851, allocations: 27.98 kB / 319.4 MB, free: 0.5195 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.971e-05/0.1852, allocations: 52.55 kB / 319.5 MB, free: 480 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.732e-05/0.1853, allocations: 23.98 kB / 319.5 MB, free: 456 kB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002428/0.1855, allocations: 350.8 kB / 319.9 MB, free: 108 kB / 266.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1855, allocations: 0 / 319.9 MB, free: 108 kB / 266.7 MB Notification: Performance of remove unused functions: time 0.001401/0.1869, allocations: 0.5615 MB / 320.4 MB, free: 15.54 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.0007728/0.1877, allocations: 451.9 kB / 320.9 MB, free: 15.12 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001552/0.1892, allocations: 0.7859 MB / 321.6 MB, free: 14.37 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.1892, allocations: 0 / 321.6 MB, free: 14.37 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000513/0.1898, allocations: 273.6 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.001183/0.1909, allocations: 384.7 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.002513/0.1935, allocations: 1.401 MB / 323.7 MB, free: 12.35 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001547/0.1936, allocations: 204.6 kB / 323.9 MB, free: 12.13 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0006572/0.1943, allocations: 276.8 kB / 324.2 MB, free: 11.87 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001601/0.1944, allocations: 68.48 kB / 324.2 MB, free: 11.8 MB / 282.7 MB Notification: Performance of SimCode: time 6.11e-07/0.1944, allocations: 0 / 324.2 MB, free: 11.8 MB / 282.7 MB Notification: Performance of Templates: time 0.02378/0.2182, allocations: 22.5 MB / 346.7 MB, free: 5.652 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.198148651048541]