Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001022/0.001022, allocations: 83.59 kB / 21.18 MB, free: 3.383 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001022/0.001022, allocations: 165 kB / 24.56 MB, free: 12 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9743/0.9743, allocations: 177.1 MB / 205 MB, free: 5.598 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Fluid.Examples.Tanks.EmptyTanks") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.493e-06/1.493e-06, allocations: 0 / 273 MB, free: 1.539 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.438e-05/1.587e-05, allocations: 2.312 kB / 273 MB, free: 1.535 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.007442/0.007457, allocations: 8.094 MB / 281.1 MB, free: 9.402 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005121/0.01258, allocations: 5.593 MB / 286.7 MB, free: 3.801 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002575/0.01284, allocations: 31.69 kB / 286.7 MB, free: 3.77 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004737/0.01331, allocations: 242.5 kB / 286.9 MB, free: 3.531 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001629/0.01494, allocations: 1.068 MB / 288 MB, free: 2.457 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002072/0.01701, allocations: 1.8 MB / 289.8 MB, free: 0.6484 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1087/0.1257, allocations: 2.179 MB / 292 MB, free: 15.86 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001097/0.1268, allocations: 0.5266 MB / 292.5 MB, free: 15.82 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002201/0.129, allocations: 1.084 MB / 293.6 MB, free: 15.73 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001455/0.1305, allocations: 0.7693 MB / 294.3 MB, free: 15.66 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002698/0.1308, allocations: 77.69 kB / 294.4 MB, free: 15.66 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001869/0.1326, allocations: 0.9063 MB / 295.3 MB, free: 15.65 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003447/0.133, allocations: 348.9 kB / 295.7 MB, free: 15.61 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004764/0.1334, allocations: 327.6 kB / 296 MB, free: 15.57 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00266/0.1361, allocations: 1.552 MB / 297.5 MB, free: 15.46 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.1361, allocations: 2.078 kB / 297.5 MB, free: 15.46 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.304e-06/0.1361, allocations: 0.5625 kB / 297.5 MB, free: 15.46 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.137e-05/0.1361, allocations: 0.5625 kB / 297.5 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.002326/0.1385, allocations: 1.295 MB / 298.8 MB, free: 14.71 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.966e-05/0.1385, allocations: 9 kB / 298.8 MB, free: 14.71 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003684/0.1389, allocations: 162.4 kB / 299 MB, free: 14.66 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000703/0.1396, allocations: 0.5657 MB / 299.6 MB, free: 14.44 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001066/0.1397, allocations: 155.8 kB / 299.7 MB, free: 14.32 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.445e-05/0.1398, allocations: 68.77 kB / 299.8 MB, free: 14.31 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009731/0.1407, allocations: 0.8553 MB / 300.6 MB, free: 13.83 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.011e-05/0.1408, allocations: 2.078 kB / 300.6 MB, free: 13.83 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.838e-05/0.1408, allocations: 26.62 kB / 300.7 MB, free: 13.83 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.684e-05/0.1409, allocations: 54.27 kB / 300.7 MB, free: 13.83 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006787/0.1416, allocations: 360.3 kB / 301.1 MB, free: 13.82 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00281/0.1444, allocations: 2.279 MB / 303.4 MB, free: 12.9 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000577/0.145, allocations: 346.6 kB / 303.7 MB, free: 12.86 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002276/0.1452, allocations: 153.6 kB / 303.8 MB, free: 12.84 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001194/0.1464, allocations: 0.9609 MB / 304.8 MB, free: 12.34 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.52e-05/0.1464, allocations: 46.08 kB / 304.9 MB, free: 12.29 MB / 266.7 MB Notification: Performance of pre-optimization done (n=56): time 1.994e-06/0.1464, allocations: 0 / 304.9 MB, free: 12.29 MB / 266.7 MB Notification: Performance of matching and sorting (n=66): time 0.002985/0.1494, allocations: 1.637 MB / 306.5 MB, free: 11.67 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.663e-05/0.1494, allocations: 83.73 kB / 306.6 MB, free: 11.58 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003499/0.1498, allocations: 0.5404 MB / 307.1 MB, free: 11.3 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.44e-05/0.1498, allocations: 37.23 kB / 307.1 MB, free: 11.26 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001385/0.15, allocations: 412.1 kB / 307.6 MB, free: 10.92 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001134/0.1501, allocations: 238.7 kB / 307.8 MB, free: 10.73 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001629/0.1502, allocations: 159.7 kB / 307.9 MB, free: 10.65 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.336e-05/0.1503, allocations: 0.5515 MB / 308.5 MB, free: 10.12 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002234/0.1505, allocations: 152.6 kB / 308.6 MB, free: 10.09 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000295/0.1508, allocations: 398.3 kB / 309 MB, free: 9.781 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004938/0.1513, allocations: 0.5062 MB / 309.5 MB, free: 9.449 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.1513, allocations: 3.25 kB / 309.5 MB, free: 9.449 MB / 266.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.0008333/0.1522, allocations: 0.6754 MB / 310.2 MB, free: 9.238 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.522e-05/0.1522, allocations: 10.88 kB / 310.2 MB, free: 9.238 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.544e-06/0.1522, allocations: 3.125 kB / 310.2 MB, free: 9.238 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005963/0.1528, allocations: 298.8 kB / 310.5 MB, free: 9.129 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003315/0.1531, allocations: 157.9 kB / 310.7 MB, free: 9.102 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004683/0.1536, allocations: 0.9498 MB / 311.6 MB, free: 8.227 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002432/0.1538, allocations: 29.61 kB / 311.7 MB, free: 8.211 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.54e-05/0.1539, allocations: 33.73 kB / 311.7 MB, free: 8.199 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002874/0.1542, allocations: 280.7 kB / 312 MB, free: 8.02 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002634/0.1544, allocations: 390.7 kB / 312.3 MB, free: 7.668 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000458/0.1549, allocations: 0.5149 MB / 312.9 MB, free: 7.297 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.846e-06/0.1549, allocations: 3.562 kB / 312.9 MB, free: 7.297 MB / 266.7 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.0007779/0.1557, allocations: 0.6557 MB / 313.5 MB, free: 6.812 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.484e-06/0.1557, allocations: 8.5 kB / 313.5 MB, free: 6.805 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.058e-06/0.1557, allocations: 8 kB / 313.5 MB, free: 6.797 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002908/0.156, allocations: 195.6 kB / 313.7 MB, free: 6.613 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003109/0.1563, allocations: 169.4 kB / 313.9 MB, free: 6.457 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003336/0.1566, allocations: 0.902 MB / 314.8 MB, free: 5.531 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002238/0.1568, allocations: 31.98 kB / 314.8 MB, free: 5.5 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.919e-05/0.1569, allocations: 35.98 kB / 314.9 MB, free: 5.465 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.0001282/0.157, allocations: 314.9 kB / 315.2 MB, free: 5.16 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001018/0.1571, allocations: 95.58 kB / 315.3 MB, free: 5.066 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000749/0.1579, allocations: 0.6001 MB / 315.9 MB, free: 4.457 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.1579, allocations: 12 kB / 315.9 MB, free: 4.445 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.497e-06/0.1579, allocations: 0 / 315.9 MB, free: 4.445 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.1579, allocations: 4.859 kB / 315.9 MB, free: 4.441 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001208/0.1591, allocations: 1.21 MB / 317.1 MB, free: 3.207 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.009e-06/0.1591, allocations: 0 / 317.1 MB, free: 3.207 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000281/0.1594, allocations: 119.6 kB / 317.2 MB, free: 3.094 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004789/0.1598, allocations: 289.7 kB / 317.5 MB, free: 2.809 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.196e-05/0.1599, allocations: 27.92 kB / 317.5 MB, free: 2.781 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004112/0.1603, allocations: 0.9608 MB / 318.5 MB, free: 1.793 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.1603, allocations: 4 kB / 318.5 MB, free: 1.789 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008909/0.1612, allocations: 0.8428 MB / 319.3 MB, free: 0.9219 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001616/0.1613, allocations: 147.4 kB / 319.5 MB, free: 0.7773 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.543e-05/0.1614, allocations: 16 kB / 319.5 MB, free: 0.7617 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002257/0.1616, allocations: 27.98 kB / 319.5 MB, free: 0.7344 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.476e-05/0.1617, allocations: 52.55 kB / 319.6 MB, free: 0.6836 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.671e-05/0.1618, allocations: 27.98 kB / 319.6 MB, free: 0.6562 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001942/0.162, allocations: 346.8 kB / 319.9 MB, free: 328 kB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.162, allocations: 0 / 319.9 MB, free: 328 kB / 266.7 MB Notification: Performance of remove unused functions: time 0.001126/0.1631, allocations: 0.5537 MB / 320.5 MB, free: 15.76 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.000699/0.1638, allocations: 444.8 kB / 320.9 MB, free: 15.35 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001267/0.165, allocations: 0.7981 MB / 321.7 MB, free: 14.58 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.1651, allocations: 2.531 kB / 321.7 MB, free: 14.58 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003932/0.1654, allocations: 269.3 kB / 322 MB, free: 14.32 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009163/0.1664, allocations: 381.5 kB / 322.3 MB, free: 13.98 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002127/0.1685, allocations: 1.414 MB / 323.8 MB, free: 12.56 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001274/0.1686, allocations: 200.6 kB / 324 MB, free: 12.35 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0005399/0.1692, allocations: 272.9 kB / 324.2 MB, free: 12.09 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001328/0.1693, allocations: 72.47 kB / 324.3 MB, free: 12.02 MB / 282.7 MB Notification: Performance of SimCode: time 5.61e-07/0.1693, allocations: 0 / 324.3 MB, free: 12.02 MB / 282.7 MB Notification: Performance of Templates: time 0.02318/0.1925, allocations: 22.51 MB / 346.8 MB, free: 5.895 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & ./Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.EmptyTanks -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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.212055084761232]