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.001138/0.001138, allocations: 78.28 kB / 21.42 MB, free: 3.078 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.001214/0.001214, allocations: 150.8 kB / 24.81 MB, free: 9.34 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.9774/0.9774, allocations: 173.3 MB / 201.4 MB, free: 9.25 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.463e-06/1.463e-06, allocations: 0 / 268.4 MB, free: 6.254 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.158e-05/2.304e-05, allocations: 2.312 kB / 268.4 MB, free: 6.25 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.007075/0.007098, allocations: 7.93 MB / 276.3 MB, free: 14.27 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006231/0.01333, allocations: 5.511 MB / 281.8 MB, free: 8.75 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006676/0.014, allocations: 35.69 kB / 281.9 MB, free: 8.715 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006345/0.01463, allocations: 246.4 kB / 282.1 MB, free: 8.473 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001973/0.0166, allocations: 1.053 MB / 283.2 MB, free: 7.414 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003253/0.01986, allocations: 1.851 MB / 285 MB, free: 5.559 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002205/0.02206, allocations: 2.155 MB / 287.2 MB, free: 3.395 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008865/0.02295, allocations: 0.5494 MB / 287.7 MB, free: 2.824 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001731/0.02468, allocations: 1.072 MB / 288.8 MB, free: 1.75 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009794/0.02566, allocations: 0.748 MB / 289.5 MB, free: 1 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00013/0.02579, allocations: 80 kB / 289.6 MB, free: 0.9219 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001625/0.02742, allocations: 0.893 MB / 290.5 MB, free: 28 kB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.1125/0.1399, allocations: 338.3 kB / 290.8 MB, free: 18.2 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006441/0.1406, allocations: 330.1 kB / 291.2 MB, free: 18.2 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002515/0.1431, allocations: 1.536 MB / 292.7 MB, free: 18.16 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.407e-06/0.1431, allocations: 0.5625 kB / 292.7 MB, free: 18.16 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.12e-07/0.1431, allocations: 0 / 292.7 MB, free: 18.16 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.889e-05/0.1431, allocations: 6.375 kB / 292.7 MB, free: 18.16 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.002166/0.1453, allocations: 1.3 MB / 294 MB, free: 17.41 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.693e-05/0.1453, allocations: 10.52 kB / 294 MB, free: 17.41 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003235/0.1457, allocations: 156.7 kB / 294.2 MB, free: 17.35 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000706/0.1464, allocations: 0.5484 MB / 294.7 MB, free: 17.14 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.757e-05/0.1465, allocations: 159.7 kB / 294.9 MB, free: 17.01 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.135e-05/0.1465, allocations: 65.94 kB / 294.9 MB, free: 17 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007825/0.1473, allocations: 0.8082 MB / 295.7 MB, free: 16.52 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.814e-05/0.1473, allocations: 1.797 kB / 295.7 MB, free: 16.52 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.027e-05/0.1474, allocations: 22.95 kB / 295.8 MB, free: 16.52 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.645e-05/0.1475, allocations: 56.53 kB / 295.8 MB, free: 16.52 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000473/0.1479, allocations: 292.4 kB / 296.1 MB, free: 16.51 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002696/0.1506, allocations: 2.162 MB / 298.3 MB, free: 15.62 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004218/0.1511, allocations: 309 kB / 298.6 MB, free: 15.59 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001689/0.1512, allocations: 123.4 kB / 298.7 MB, free: 15.57 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001182/0.1524, allocations: 0.9521 MB / 299.6 MB, free: 15.2 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.191e-05/0.1524, allocations: 41.72 kB / 299.7 MB, free: 15.15 MB / 266.7 MB Notification: Performance of pre-optimization done (n=56): time 2.334e-06/0.1524, allocations: 0 / 299.7 MB, free: 15.15 MB / 266.7 MB Notification: Performance of matching and sorting (n=66): time 0.002671/0.1551, allocations: 1.421 MB / 301.1 MB, free: 14.84 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.634e-05/0.1551, allocations: 85.52 kB / 301.2 MB, free: 14.74 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003446/0.1555, allocations: 0.5268 MB / 301.7 MB, free: 14.54 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.214e-05/0.1555, allocations: 41.3 kB / 301.8 MB, free: 14.51 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001472/0.1557, allocations: 401.3 kB / 302.1 MB, free: 14.27 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001128/0.1558, allocations: 252.8 kB / 302.4 MB, free: 14.12 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001724/0.1559, allocations: 155.2 kB / 302.5 MB, free: 14.09 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.835e-05/0.156, allocations: 0.5586 MB / 303.1 MB, free: 13.6 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001662/0.1562, allocations: 117.5 kB / 303.2 MB, free: 13.58 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002403/0.1564, allocations: 362.9 kB / 303.6 MB, free: 13.3 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004121/0.1569, allocations: 475.3 kB / 304 MB, free: 13.06 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.1569, allocations: 1.375 kB / 304 MB, free: 13.06 MB / 266.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.0007716/0.1576, allocations: 0.6035 MB / 304.6 MB, free: 12.96 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.608e-05/0.1576, allocations: 7.5 kB / 304.6 MB, free: 12.96 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.794e-06/0.1577, allocations: 4.25 kB / 304.7 MB, free: 12.96 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000607/0.1583, allocations: 289 kB / 304.9 MB, free: 12.94 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003443/0.1586, allocations: 160.5 kB / 305.1 MB, free: 12.93 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004706/0.1591, allocations: 0.9434 MB / 306 MB, free: 12.12 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002831/0.1594, allocations: 29.94 kB / 306.1 MB, free: 12.12 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.404e-05/0.1594, allocations: 25.72 kB / 306.1 MB, free: 12.12 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002571/0.1597, allocations: 252.7 kB / 306.3 MB, free: 11.99 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001995/0.1599, allocations: 361.8 kB / 306.7 MB, free: 11.7 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003544/0.1602, allocations: 475 kB / 307.2 MB, free: 11.45 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.054e-06/0.1602, allocations: 0 / 307.2 MB, free: 11.45 MB / 266.7 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.0006488/0.1609, allocations: 0.5928 MB / 307.7 MB, free: 11.36 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.021e-05/0.1609, allocations: 9.016 kB / 307.8 MB, free: 11.36 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.571e-06/0.1609, allocations: 7.797 kB / 307.8 MB, free: 11.36 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003008/0.1612, allocations: 190.8 kB / 307.9 MB, free: 11.33 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003137/0.1615, allocations: 164.3 kB / 308.1 MB, free: 11.33 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003445/0.1618, allocations: 0.8979 MB / 309 MB, free: 10.53 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002548/0.1621, allocations: 27.34 kB / 309 MB, free: 10.53 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.779e-05/0.1621, allocations: 28.45 kB / 309.1 MB, free: 10.53 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.0001687/0.1623, allocations: 314.7 kB / 309.4 MB, free: 10.26 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.931e-05/0.1624, allocations: 89.45 kB / 309.5 MB, free: 10.22 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007091/0.1631, allocations: 0.5551 MB / 310 MB, free: 10.13 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.2e-06/0.1631, allocations: 7.719 kB / 310 MB, free: 10.13 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.374e-06/0.1631, allocations: 0 / 310 MB, free: 10.13 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.993e-06/0.1631, allocations: 4.906 kB / 310 MB, free: 10.13 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001195/0.1643, allocations: 1.063 MB / 311.1 MB, free: 9.816 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.805e-06/0.1643, allocations: 0 / 311.1 MB, free: 9.816 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000276/0.1646, allocations: 117 kB / 311.2 MB, free: 9.816 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005109/0.1651, allocations: 285.4 kB / 311.5 MB, free: 9.793 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.54e-05/0.1651, allocations: 19.33 kB / 311.5 MB, free: 9.793 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004133/0.1656, allocations: 0.9553 MB / 312.5 MB, free: 8.977 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.1656, allocations: 0 / 312.5 MB, free: 8.977 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007689/0.1663, allocations: 0.7627 MB / 313.2 MB, free: 8.723 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001827/0.1665, allocations: 137.8 kB / 313.4 MB, free: 8.688 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.959e-05/0.1666, allocations: 18 kB / 313.4 MB, free: 8.684 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002303/0.1668, allocations: 31.88 kB / 313.4 MB, free: 8.684 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.149e-05/0.1669, allocations: 48.41 kB / 313.4 MB, free: 8.684 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.64e-05/0.1669, allocations: 25.95 kB / 313.5 MB, free: 8.68 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001478/0.1671, allocations: 327.9 kB / 313.8 MB, free: 8.551 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1671, allocations: 0 / 313.8 MB, free: 8.551 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.001248/0.1683, allocations: 0.5536 MB / 314.3 MB, free: 8.488 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.0006534/0.169, allocations: 455.2 kB / 314.8 MB, free: 8.328 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0009839/0.1699, allocations: 0.705 MB / 315.5 MB, free: 8.27 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.1699, allocations: 0 / 315.5 MB, free: 8.27 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003099/0.1702, allocations: 246.3 kB / 315.7 MB, free: 8.238 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008431/0.1711, allocations: 368.7 kB / 316.1 MB, free: 8.035 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001848/0.1729, allocations: 1.395 MB / 317.5 MB, free: 6.848 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001003/0.173, allocations: 206.7 kB / 317.7 MB, free: 6.688 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0004608/0.1735, allocations: 164.8 kB / 317.9 MB, free: 6.555 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004993/0.174, allocations: 379.6 kB / 318.2 MB, free: 6.262 MB / 266.7 MB Notification: Performance of SimCode: time 9.02e-07/0.174, allocations: 3.172 kB / 318.2 MB, free: 6.262 MB / 266.7 MB Notification: Performance of Templates: time 0.02395/0.198, allocations: 22.77 MB / 341 MB, free: 15.91 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.2631557057611644]