Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008328/0.0008328, allocations: 68.08 kB / 21.69 MB, free: 2.859 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001777/0.001777, allocations: 141.2 kB / 24.97 MB, free: 8.828 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9961/0.9961, allocations: 173.4 MB / 201.5 MB, free: 9.324 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.502e-06/1.502e-06, allocations: 0 / 268 MB, free: 6.75 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.449e-05/2.599e-05, allocations: 10.19 kB / 268.1 MB, free: 6.738 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.01217/0.0122, allocations: 16.25 MB / 284.3 MB, free: 6.418 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1146/0.1268, allocations: 6.888 MB / 291.2 MB, free: 14.2 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007475/0.1276, allocations: 32.56 kB / 291.2 MB, free: 14.2 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007464/0.1283, allocations: 336.4 kB / 291.6 MB, free: 14.2 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002226/0.1306, allocations: 1.126 MB / 292.7 MB, free: 14.07 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003496/0.1341, allocations: 1.915 MB / 294.6 MB, free: 13.95 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002184/0.1362, allocations: 2.167 MB / 296.8 MB, free: 13.58 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007802/0.137, allocations: 0.5391 MB / 297.3 MB, free: 13.52 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001481/0.1385, allocations: 1.059 MB / 298.4 MB, free: 13.43 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001081/0.1396, allocations: 0.7804 MB / 299.1 MB, free: 13.36 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001605/0.1397, allocations: 79.91 kB / 299.2 MB, free: 13.36 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001705/0.1415, allocations: 1.017 MB / 300.2 MB, free: 13.32 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002816/0.1417, allocations: 343.4 kB / 300.6 MB, free: 13.28 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003242/0.1421, allocations: 339.6 kB / 300.9 MB, free: 13.25 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001706/0.1438, allocations: 1.629 MB / 302.5 MB, free: 13.09 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.975e-06/0.1438, allocations: 1.844 kB / 302.5 MB, free: 13.09 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.51e-07/0.1438, allocations: 0 / 302.5 MB, free: 13.09 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.124e-05/0.1438, allocations: 0 / 302.5 MB, free: 13.09 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.001606/0.1454, allocations: 1.323 MB / 303.9 MB, free: 12.32 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.612e-05/0.1454, allocations: 9.141 kB / 303.9 MB, free: 12.32 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002989/0.1457, allocations: 161 kB / 304 MB, free: 12.27 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006232/0.1463, allocations: 0.5746 MB / 304.6 MB, free: 12.04 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.786e-05/0.1464, allocations: 158.7 kB / 304.8 MB, free: 11.91 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.397e-05/0.1465, allocations: 67.25 kB / 304.8 MB, free: 11.91 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007864/0.1473, allocations: 0.855 MB / 305.7 MB, free: 11.4 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.672e-05/0.1473, allocations: 3.953 kB / 305.7 MB, free: 11.4 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.411e-05/0.1474, allocations: 22.98 kB / 305.7 MB, free: 11.4 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.542e-05/0.1474, allocations: 53.8 kB / 305.8 MB, free: 11.39 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005376/0.148, allocations: 362.9 kB / 306.1 MB, free: 11.3 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002464/0.1504, allocations: 2.311 MB / 308.4 MB, free: 9.578 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004605/0.1509, allocations: 331.4 kB / 308.7 MB, free: 9.438 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001993/0.1511, allocations: 154 kB / 308.9 MB, free: 9.379 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00108/0.1522, allocations: 0.9672 MB / 309.9 MB, free: 8.672 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.302e-05/0.1522, allocations: 49.33 kB / 309.9 MB, free: 8.617 MB / 266.7 MB Notification: Performance of pre-optimization done (n=56): time 1.252e-06/0.1522, allocations: 0 / 309.9 MB, free: 8.617 MB / 266.7 MB Notification: Performance of matching and sorting (n=66): time 0.002943/0.1551, allocations: 1.644 MB / 311.5 MB, free: 7.797 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.2e-05/0.1552, allocations: 91.08 kB / 311.6 MB, free: 7.699 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004028/0.1556, allocations: 0.5443 MB / 312.2 MB, free: 7.336 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.47e-05/0.1556, allocations: 40.2 kB / 312.2 MB, free: 7.297 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001519/0.1558, allocations: 409.5 kB / 312.6 MB, free: 6.93 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001209/0.1559, allocations: 237.8 kB / 312.9 MB, free: 6.73 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001662/0.1561, allocations: 157.1 kB / 313 MB, free: 6.629 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001248/0.1562, allocations: 0.5594 MB / 313.6 MB, free: 6.082 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002507/0.1564, allocations: 148.1 kB / 313.7 MB, free: 6.031 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003254/0.1568, allocations: 396 kB / 314.1 MB, free: 5.691 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005738/0.1573, allocations: 0.517 MB / 314.6 MB, free: 5.332 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.508e-06/0.1573, allocations: 3.438 kB / 314.6 MB, free: 5.332 MB / 266.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.0009447/0.1583, allocations: 0.6756 MB / 315.3 MB, free: 5.062 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.444e-05/0.1583, allocations: 7.25 kB / 315.3 MB, free: 5.062 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.334e-06/0.1583, allocations: 4.172 kB / 315.3 MB, free: 5.062 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006117/0.1589, allocations: 314.6 kB / 315.6 MB, free: 4.941 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003284/0.1592, allocations: 154.2 kB / 315.8 MB, free: 4.805 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004656/0.1597, allocations: 0.953 MB / 316.7 MB, free: 3.824 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002394/0.1599, allocations: 27.98 kB / 316.7 MB, free: 3.797 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.223e-05/0.16, allocations: 31.98 kB / 316.8 MB, free: 3.766 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002952/0.1603, allocations: 280.8 kB / 317 MB, free: 3.488 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002696/0.1606, allocations: 396 kB / 317.4 MB, free: 3.016 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004754/0.161, allocations: 0.5172 MB / 318 MB, free: 2.434 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.024e-06/0.161, allocations: 0 / 318 MB, free: 2.434 MB / 266.7 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.0007925/0.1618, allocations: 0.6586 MB / 318.6 MB, free: 1.793 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.665e-06/0.1618, allocations: 11.94 kB / 318.6 MB, free: 1.781 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.616e-06/0.1618, allocations: 4.562 kB / 318.6 MB, free: 1.777 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002894/0.1621, allocations: 202.7 kB / 318.8 MB, free: 1.578 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003178/0.1624, allocations: 163.9 kB / 319 MB, free: 1.426 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003539/0.1628, allocations: 0.903 MB / 319.9 MB, free: 0.4961 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002313/0.163, allocations: 31.98 kB / 319.9 MB, free: 476 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.728e-05/0.1631, allocations: 31.98 kB / 320 MB, free: 444 kB / 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.0001142/0.1632, allocations: 315.9 kB / 320.3 MB, free: 132 kB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001025/0.1633, allocations: 95.53 kB / 320.4 MB, free: 36 kB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009535/0.1642, allocations: 0.62 MB / 321 MB, free: 15.4 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.539e-06/0.1642, allocations: 4 kB / 321 MB, free: 15.4 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.1642, allocations: 8 kB / 321 MB, free: 15.39 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.545e-06/0.1642, allocations: 3.984 kB / 321 MB, free: 15.39 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001543/0.1658, allocations: 1.243 MB / 322.2 MB, free: 14.12 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.1658, allocations: 0 / 322.2 MB, free: 14.12 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003148/0.1661, allocations: 117.7 kB / 322.3 MB, free: 14.01 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005556/0.1667, allocations: 292.1 kB / 322.6 MB, free: 13.72 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.634e-05/0.1667, allocations: 27.92 kB / 322.7 MB, free: 13.7 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006732/0.1674, allocations: 0.9601 MB / 323.6 MB, free: 12.71 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.434e-06/0.1674, allocations: 0.875 kB / 323.6 MB, free: 12.71 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001183/0.1686, allocations: 0.8696 MB / 324.5 MB, free: 11.82 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002157/0.1688, allocations: 147.4 kB / 324.6 MB, free: 11.67 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.485e-05/0.1689, allocations: 16 kB / 324.6 MB, free: 11.66 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002555/0.1691, allocations: 31.97 kB / 324.7 MB, free: 11.62 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001228/0.1692, allocations: 52.56 kB / 324.7 MB, free: 11.57 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.313e-05/0.1693, allocations: 27.97 kB / 324.8 MB, free: 11.55 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002772/0.1696, allocations: 346.8 kB / 325.1 MB, free: 11.21 MB / 282.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1696, allocations: 4 kB / 325.1 MB, free: 11.21 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.00124/0.1708, allocations: 0.5887 MB / 325.7 MB, free: 10.62 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.0007729/0.1716, allocations: 0.5122 MB / 326.2 MB, free: 10.13 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001303/0.1729, allocations: 0.796 MB / 327 MB, free: 9.371 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.1729, allocations: 4.188 kB / 327 MB, free: 9.367 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004076/0.1733, allocations: 275.4 kB / 327.3 MB, free: 9.105 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009212/0.1742, allocations: 387.1 kB / 327.6 MB, free: 8.758 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00223/0.1764, allocations: 1.422 MB / 329.1 MB, free: 7.32 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001437/0.1766, allocations: 203.2 kB / 329.3 MB, free: 7.102 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0005615/0.1771, allocations: 263.8 kB / 329.5 MB, free: 6.848 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001333/0.1773, allocations: 72.47 kB / 329.6 MB, free: 6.777 MB / 282.7 MB Notification: Performance of SimCode: time 6.42e-07/0.1773, allocations: 0 / 329.6 MB, free: 6.777 MB / 282.7 MB Notification: Performance of Templates: time 0.02271/0.2, allocations: 22.07 MB / 351.7 MB, free: 1.078 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.2745588570833206]