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.0007482/0.0007482, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001094/0.001842, allocations: 457.8 kB / 10.45 MB, free: 244 kB / 10.45 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.0007285/0.0007285, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.000983/0.001712, allocations: 475.6 kB / 11.82 MB, free: 2.348 MB / 13.93 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.031/1.031, allocations: 177.5 MB / 190 MB, free: 4.785 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08966/1.12, allocations: 53.87 MB / 243.9 MB, free: 14.85 MB / 250.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.733e-06/1.733e-06, allocations: 0 / 245.2 MB, free: 13.57 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.491e-05/2.664e-05, allocations: 2.312 kB / 245.2 MB, free: 13.57 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.007642/0.007669, allocations: 8.105 MB / 253.3 MB, free: 5.418 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.006519/0.01419, allocations: 5.646 MB / 258.9 MB, free: 15.76 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000377/0.01457, allocations: 31.75 kB / 259 MB, free: 15.73 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004397/0.01501, allocations: 246.4 kB / 259.2 MB, free: 15.48 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001488/0.01649, allocations: 1.057 MB / 260.3 MB, free: 14.42 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002447/0.01894, allocations: 1.698 MB / 262 MB, free: 12.72 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001754/0.02069, allocations: 2.151 MB / 264.1 MB, free: 10.56 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005822/0.02128, allocations: 0.5184 MB / 264.6 MB, free: 10.02 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00111/0.02239, allocations: 1.12 MB / 265.8 MB, free: 8.898 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006583/0.02304, allocations: 0.7012 MB / 266.5 MB, free: 8.195 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.322e-05/0.02314, allocations: 80 kB / 266.5 MB, free: 8.117 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001265/0.0244, allocations: 1.022 MB / 267.6 MB, free: 7.094 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002008/0.0246, allocations: 267.2 kB / 267.8 MB, free: 6.832 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002295/0.02483, allocations: 259.6 kB / 268.1 MB, free: 6.578 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001223/0.02606, allocations: 1.309 MB / 269.4 MB, free: 5.266 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.147e-06/0.02606, allocations: 0 / 269.4 MB, free: 5.266 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.332e-06/0.02607, allocations: 0 / 269.4 MB, free: 5.266 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.218e-05/0.02608, allocations: 4 kB / 269.4 MB, free: 5.262 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.001528/0.02761, allocations: 1.457 MB / 270.8 MB, free: 3.758 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.89e-05/0.02765, allocations: 12.62 kB / 270.9 MB, free: 3.746 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002351/0.02788, allocations: 132.7 kB / 271 MB, free: 3.617 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000545/0.02843, allocations: 499.9 kB / 271.5 MB, free: 3.102 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.75e-05/0.02852, allocations: 160.1 kB / 271.6 MB, free: 2.922 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.828e-05/0.0286, allocations: 63.92 kB / 271.7 MB, free: 2.859 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006514/0.02925, allocations: 0.7931 MB / 272.5 MB, free: 1.969 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.467e-05/0.02927, allocations: 3.938 kB / 272.5 MB, free: 1.965 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.563e-05/0.02931, allocations: 19.98 kB / 272.5 MB, free: 1.945 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.739e-05/0.02937, allocations: 57.27 kB / 272.6 MB, free: 1.887 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003471/0.02972, allocations: 269 kB / 272.8 MB, free: 1.625 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1089/0.1386, allocations: 1.634 MB / 274.5 MB, free: 15.29 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005986/0.1392, allocations: 329 kB / 274.8 MB, free: 15.21 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001606/0.1394, allocations: 107.5 kB / 274.9 MB, free: 15.21 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00135/0.1408, allocations: 0.7856 MB / 275.7 MB, free: 14.96 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.832e-05/0.1408, allocations: 42.34 kB / 275.7 MB, free: 14.92 MB / 266.7 MB Notification: Performance of pre-optimization done (n=56): time 2.374e-06/0.1408, allocations: 0 / 275.7 MB, free: 14.92 MB / 266.7 MB Notification: Performance of matching and sorting (n=66): time 0.004063/0.1448, allocations: 1.772 MB / 277.5 MB, free: 14.69 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.389e-05/0.1449, allocations: 63.28 kB / 277.5 MB, free: 14.62 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003753/0.1452, allocations: 480 kB / 278 MB, free: 14.5 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.133e-05/0.1453, allocations: 36.55 kB / 278 MB, free: 14.47 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001213/0.1454, allocations: 298.2 kB / 278.3 MB, free: 14.33 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000116/0.1455, allocations: 236 kB / 278.6 MB, free: 14.21 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000172/0.1457, allocations: 140.1 kB / 278.7 MB, free: 14.19 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.009e-05/0.1458, allocations: 381.2 kB / 279.1 MB, free: 13.88 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001813/0.146, allocations: 111.4 kB / 279.2 MB, free: 13.87 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000214/0.1462, allocations: 286 kB / 279.5 MB, free: 13.67 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004369/0.1466, allocations: 433.1 kB / 279.9 MB, free: 13.5 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.1466, allocations: 0 / 279.9 MB, free: 13.5 MB / 266.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.0006649/0.1473, allocations: 494.3 kB / 280.4 MB, free: 13.44 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.792e-05/0.1473, allocations: 6.094 kB / 280.4 MB, free: 13.44 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.698e-06/0.1473, allocations: 5.594 kB / 280.4 MB, free: 13.44 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005951/0.1479, allocations: 277.8 kB / 280.7 MB, free: 13.43 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004311/0.1483, allocations: 191.2 kB / 280.8 MB, free: 13.43 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004543/0.1488, allocations: 0.6563 MB / 281.5 MB, free: 12.89 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002706/0.1491, allocations: 26.39 kB / 281.5 MB, free: 12.89 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.924e-05/0.1491, allocations: 28.36 kB / 281.6 MB, free: 12.89 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002404/0.1494, allocations: 195.6 kB / 281.7 MB, free: 12.8 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002098/0.1496, allocations: 289.5 kB / 282 MB, free: 12.6 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004092/0.15, allocations: 429.5 kB / 282.4 MB, free: 12.43 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.506e-06/0.15, allocations: 1.156 kB / 282.4 MB, free: 12.43 MB / 266.7 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.0006186/0.1506, allocations: 476.6 kB / 282.9 MB, free: 12.36 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.19e-05/0.1506, allocations: 8.391 kB / 282.9 MB, free: 12.36 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.1506, allocations: 4.922 kB / 282.9 MB, free: 12.36 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003835/0.151, allocations: 215.6 kB / 283.1 MB, free: 12.34 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004118/0.1514, allocations: 197.9 kB / 283.3 MB, free: 12.34 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00036/0.1518, allocations: 0.6176 MB / 283.9 MB, free: 11.81 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002512/0.152, allocations: 28.73 kB / 284 MB, free: 11.81 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.338e-05/0.1521, allocations: 30 kB / 284 MB, free: 11.81 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.0001566/0.1522, allocations: 222.3 kB / 284.2 MB, free: 11.63 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001015/0.1523, allocations: 69.03 kB / 284.3 MB, free: 11.62 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006953/0.153, allocations: 470 kB / 284.7 MB, free: 11.55 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.013e-06/0.153, allocations: 9.156 kB / 284.8 MB, free: 11.55 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.214e-06/0.153, allocations: 1.375 kB / 284.8 MB, free: 11.55 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.313e-06/0.153, allocations: 6.984 kB / 284.8 MB, free: 11.54 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001141/0.1542, allocations: 0.8746 MB / 285.6 MB, free: 11.29 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.1542, allocations: 0 / 285.6 MB, free: 11.29 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003601/0.1545, allocations: 147.4 kB / 285.8 MB, free: 11.29 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000153/0.1547, allocations: 106.1 kB / 285.9 MB, free: 11.25 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005431/0.1552, allocations: 310.1 kB / 286.2 MB, free: 11.22 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.685e-05/0.1553, allocations: 15.72 kB / 286.2 MB, free: 11.22 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004053/0.1557, allocations: 0.6539 MB / 286.9 MB, free: 10.7 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/0.1557, allocations: 1.125 kB / 286.9 MB, free: 10.7 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006753/0.1564, allocations: 0.6733 MB / 287.5 MB, free: 10.48 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.165e-05/0.1564, allocations: 11.69 kB / 287.5 MB, free: 10.48 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002005/0.1566, allocations: 25.89 kB / 287.6 MB, free: 10.48 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.042e-05/0.1567, allocations: 51.88 kB / 287.6 MB, free: 10.48 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.318e-05/0.1567, allocations: 15.12 kB / 287.6 MB, free: 10.48 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001413/0.1569, allocations: 203.5 kB / 287.8 MB, free: 10.46 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1569, allocations: 0 / 287.8 MB, free: 10.46 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0008898/0.1578, allocations: 0.555 MB / 288.4 MB, free: 10.46 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.0005901/0.1584, allocations: 461.8 kB / 288.8 MB, free: 10.32 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001062/0.1594, allocations: 0.6778 MB / 289.5 MB, free: 10.27 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.33e-05/0.1594, allocations: 13.97 kB / 289.5 MB, free: 10.27 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003373/0.1598, allocations: 248.6 kB / 289.8 MB, free: 10.25 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001117/0.1609, allocations: 2.275 MB / 292.1 MB, free: 8.039 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007331/0.1682, allocations: 1.327 MB / 293.4 MB, free: 7.453 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001159/0.1683, allocations: 199.1 kB / 293.6 MB, free: 7.371 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0005188/0.1689, allocations: 160.5 kB / 293.7 MB, free: 7.312 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004896/0.1693, allocations: 318.1 kB / 294 MB, free: 7.258 MB / 266.7 MB Notification: Performance of SimCode: time 1.543e-06/0.1693, allocations: 0 / 294 MB, free: 7.258 MB / 266.7 MB Notification: Performance of Templates: time 0.02271/0.1921, allocations: 23.64 MB / 317.7 MB, free: 1.941 MB / 282.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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.1796722589060664]