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.001326/0.001326, allocations: 81.91 kB / 21.42 MB, free: 3.07 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.001048/0.001048, allocations: 169.7 kB / 24.82 MB, free: 9.273 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.045/1.045, allocations: 177 MB / 205.1 MB, free: 5.477 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.714e-06/1.714e-06, allocations: 0 / 273.3 MB, free: 1.246 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.774e-05/1.946e-05, allocations: 2.312 kB / 273.3 MB, free: 1.242 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.00729/0.007309, allocations: 8.013 MB / 281.3 MB, free: 9.184 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005845/0.01315, allocations: 5.527 MB / 286.8 MB, free: 3.648 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003996/0.01355, allocations: 31.69 kB / 286.9 MB, free: 3.617 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005471/0.0141, allocations: 242.5 kB / 287.1 MB, free: 3.379 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001954/0.01605, allocations: 1.068 MB / 288.2 MB, free: 2.305 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003851/0.01991, allocations: 1.831 MB / 290 MB, free: 476 kB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1217/0.1416, allocations: 2.152 MB / 292.2 MB, free: 15.86 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000981/0.1426, allocations: 0.5318 MB / 292.7 MB, free: 15.81 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001946/0.1446, allocations: 1.081 MB / 293.8 MB, free: 15.73 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001286/0.1458, allocations: 0.7496 MB / 294.5 MB, free: 15.66 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002443/0.1461, allocations: 78.78 kB / 294.6 MB, free: 15.66 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001679/0.1478, allocations: 0.9056 MB / 295.5 MB, free: 15.65 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003076/0.1481, allocations: 346.6 kB / 295.8 MB, free: 15.6 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000445/0.1485, allocations: 332.4 kB / 296.2 MB, free: 15.57 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002523/0.151, allocations: 1.545 MB / 297.7 MB, free: 15.46 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.436e-06/0.151, allocations: 0 / 297.7 MB, free: 15.46 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.332e-06/0.151, allocations: 0.7812 kB / 297.7 MB, free: 15.46 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.546e-05/0.1511, allocations: 1.344 kB / 297.7 MB, free: 15.46 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.002119/0.1532, allocations: 1.299 MB / 299 MB, free: 14.71 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.682e-05/0.1532, allocations: 14.2 kB / 299 MB, free: 14.71 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003096/0.1535, allocations: 165.4 kB / 299.2 MB, free: 14.65 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006312/0.1542, allocations: 0.5405 MB / 299.7 MB, free: 14.43 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.985e-05/0.1543, allocations: 165.3 kB / 299.9 MB, free: 14.31 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.202e-05/0.1543, allocations: 60.89 kB / 300 MB, free: 14.3 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006766/0.155, allocations: 0.8047 MB / 300.8 MB, free: 13.82 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.711e-05/0.155, allocations: 1.406 kB / 300.8 MB, free: 13.82 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.959e-05/0.1551, allocations: 24.38 kB / 300.8 MB, free: 13.82 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.95e-05/0.1552, allocations: 55.56 kB / 300.8 MB, free: 13.82 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004014/0.1556, allocations: 295.9 kB / 301.1 MB, free: 13.81 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002393/0.1579, allocations: 2.154 MB / 303.3 MB, free: 12.91 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003973/0.1583, allocations: 303.4 kB / 303.6 MB, free: 12.87 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001511/0.1585, allocations: 126 kB / 303.7 MB, free: 12.86 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001091/0.1596, allocations: 0.9471 MB / 304.6 MB, free: 12.48 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.019e-05/0.1596, allocations: 46.3 kB / 304.7 MB, free: 12.44 MB / 266.7 MB Notification: Performance of pre-optimization done (n=56): time 1.853e-06/0.1596, allocations: 0.6562 kB / 304.7 MB, free: 12.44 MB / 266.7 MB Notification: Performance of matching and sorting (n=66): time 0.002455/0.1621, allocations: 1.413 MB / 306.1 MB, free: 11.98 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.082e-05/0.1621, allocations: 88.36 kB / 306.2 MB, free: 11.88 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002782/0.1624, allocations: 0.53 MB / 306.7 MB, free: 11.67 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.887e-05/0.1624, allocations: 39.98 kB / 306.8 MB, free: 11.63 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001225/0.1625, allocations: 398.5 kB / 307.2 MB, free: 11.32 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001009/0.1626, allocations: 250.7 kB / 307.4 MB, free: 11.14 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001563/0.1628, allocations: 157.2 kB / 307.5 MB, free: 11.07 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.649e-05/0.1629, allocations: 0.5583 MB / 308.1 MB, free: 10.57 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001532/0.163, allocations: 120.7 kB / 308.2 MB, free: 10.55 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002042/0.1632, allocations: 356.6 kB / 308.6 MB, free: 10.27 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003927/0.1636, allocations: 474.4 kB / 309 MB, free: 9.977 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.1636, allocations: 3.656 kB / 309 MB, free: 9.977 MB / 266.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.0007/0.1643, allocations: 0.6079 MB / 309.6 MB, free: 9.797 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.611e-05/0.1643, allocations: 10.56 kB / 309.7 MB, free: 9.797 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.792e-06/0.1643, allocations: 3.188 kB / 309.7 MB, free: 9.797 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005578/0.1649, allocations: 294.2 kB / 309.9 MB, free: 9.715 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003074/0.1652, allocations: 158.2 kB / 310.1 MB, free: 9.688 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004151/0.1656, allocations: 0.9331 MB / 311 MB, free: 8.828 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002547/0.1659, allocations: 33.92 kB / 311.1 MB, free: 8.809 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.24e-05/0.1659, allocations: 29.95 kB / 311.1 MB, free: 8.797 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000213/0.1661, allocations: 247 kB / 311.3 MB, free: 8.633 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001938/0.1663, allocations: 359.5 kB / 311.7 MB, free: 8.312 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000354/0.1667, allocations: 476.7 kB / 312.2 MB, free: 7.98 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.955e-06/0.1667, allocations: 2.266 kB / 312.2 MB, free: 7.98 MB / 266.7 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.0006536/0.1673, allocations: 0.5942 MB / 312.8 MB, free: 7.754 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.149e-05/0.1673, allocations: 13.38 kB / 312.8 MB, free: 7.75 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.1674, allocations: 3.5 kB / 312.8 MB, free: 7.75 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003089/0.1677, allocations: 190.6 kB / 313 MB, free: 7.617 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003247/0.168, allocations: 166.1 kB / 313.1 MB, free: 7.469 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000368/0.1684, allocations: 0.8984 MB / 314 MB, free: 6.551 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002429/0.1686, allocations: 27.98 kB / 314 MB, free: 6.523 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.844e-05/0.1686, allocations: 27.98 kB / 314.1 MB, free: 6.496 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.0001591/0.1688, allocations: 317.1 kB / 314.4 MB, free: 6.188 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001021/0.1689, allocations: 91.58 kB / 314.5 MB, free: 6.098 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006605/0.1696, allocations: 0.547 MB / 315 MB, free: 5.555 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/0.1696, allocations: 8 kB / 315 MB, free: 5.547 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.023e-06/0.1696, allocations: 0 / 315 MB, free: 5.547 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.081e-06/0.1696, allocations: 7.984 kB / 315 MB, free: 5.539 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001109/0.1707, allocations: 1.064 MB / 316.1 MB, free: 4.5 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.1707, allocations: 0 / 316.1 MB, free: 4.5 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002703/0.171, allocations: 115.2 kB / 316.2 MB, free: 4.395 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004654/0.1714, allocations: 289.1 kB / 316.5 MB, free: 4.121 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.713e-05/0.1715, allocations: 19.98 kB / 316.5 MB, free: 4.102 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003776/0.1718, allocations: 0.954 MB / 317.5 MB, free: 3.129 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.1718, allocations: 0 / 317.5 MB, free: 3.129 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007003/0.1725, allocations: 0.7603 MB / 318.2 MB, free: 2.359 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001624/0.1727, allocations: 131.5 kB / 318.4 MB, free: 2.23 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.898e-05/0.1728, allocations: 19.94 kB / 318.4 MB, free: 2.211 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000211/0.173, allocations: 23.98 kB / 318.4 MB, free: 2.188 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.002e-05/0.173, allocations: 55.92 kB / 318.5 MB, free: 2.137 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.32e-05/0.1731, allocations: 23.98 kB / 318.5 MB, free: 2.113 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001406/0.1732, allocations: 328.5 kB / 318.8 MB, free: 1.82 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1732, allocations: 0 / 318.8 MB, free: 1.82 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.001085/0.1743, allocations: 0.5571 MB / 319.4 MB, free: 1.266 MB / 266.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.0005721/0.1749, allocations: 446.3 kB / 319.8 MB, free: 0.8438 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0009108/0.1758, allocations: 0.714 MB / 320.5 MB, free: 184 kB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/0.1758, allocations: 0 / 320.5 MB, free: 184 kB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003269/0.1761, allocations: 242.3 kB / 320.7 MB, free: 15.96 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009348/0.177, allocations: 377.8 kB / 321.1 MB, free: 15.62 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002213/0.1793, allocations: 1.395 MB / 322.5 MB, free: 14.21 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001994/0.1795, allocations: 200.6 kB / 322.7 MB, free: 14 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0004121/0.1799, allocations: 173.5 kB / 322.9 MB, free: 13.83 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005216/0.1804, allocations: 377.7 kB / 323.2 MB, free: 13.46 MB / 282.7 MB Notification: Performance of SimCode: time 5.71e-07/0.1804, allocations: 0 / 323.2 MB, free: 13.46 MB / 282.7 MB Notification: Performance of Templates: time 0.02289/0.2033, allocations: 22.8 MB / 346 MB, free: 7.035 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.2608331544324756]