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.0008614/0.0008614, allocations: 80.81 kB / 21.5 MB, free: 2.828 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.0008719/0.0008719, allocations: 164.8 kB / 24.91 MB, free: 9.258 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 0.9307/0.9307, allocations: 177 MB / 205.2 MB, free: 5.148 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.262e-06/1.262e-06, allocations: 0 / 273.4 MB, free: 1.066 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.024e-05/2.15e-05, allocations: 5.406 kB / 273.4 MB, free: 1.062 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.006711/0.006733, allocations: 8.038 MB / 281.4 MB, free: 8.977 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006308/0.01304, allocations: 5.612 MB / 287 MB, free: 3.355 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005188/0.01356, allocations: 39.62 kB / 287.1 MB, free: 3.316 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005391/0.0141, allocations: 238.5 kB / 287.3 MB, free: 3.082 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001698/0.0158, allocations: 1.068 MB / 288.4 MB, free: 2.008 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002724/0.01852, allocations: 1.831 MB / 290.2 MB, free: 172 kB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.111/0.1295, allocations: 2.12 MB / 292.3 MB, free: 15.95 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009254/0.1304, allocations: 0.5352 MB / 292.8 MB, free: 15.89 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001568/0.132, allocations: 1.072 MB / 293.9 MB, free: 15.8 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009876/0.133, allocations: 0.6954 MB / 294.6 MB, free: 15.73 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001818/0.1332, allocations: 79.06 kB / 294.7 MB, free: 15.73 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001504/0.1347, allocations: 0.9018 MB / 295.6 MB, free: 15.72 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003404/0.135, allocations: 342.6 kB / 295.9 MB, free: 15.68 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004883/0.1355, allocations: 329.7 kB / 296.2 MB, free: 15.64 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002286/0.1378, allocations: 1.549 MB / 297.8 MB, free: 15.54 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.1378, allocations: 2.812 kB / 297.8 MB, free: 15.54 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.392e-06/0.1378, allocations: 0 / 297.8 MB, free: 15.54 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.413e-05/0.1378, allocations: 0 / 297.8 MB, free: 15.54 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.002215/0.14, allocations: 1.149 MB / 298.9 MB, free: 14.93 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.468e-05/0.1401, allocations: 12.86 kB / 299 MB, free: 14.93 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003142/0.1404, allocations: 125.6 kB / 299.1 MB, free: 14.92 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006856/0.1411, allocations: 499.9 kB / 299.6 MB, free: 14.69 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.897e-05/0.1412, allocations: 156.6 kB / 299.7 MB, free: 14.57 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.832e-05/0.1412, allocations: 67.84 kB / 299.8 MB, free: 14.56 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006939/0.1419, allocations: 0.794 MB / 300.6 MB, free: 14.1 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.869e-05/0.142, allocations: 4.047 kB / 300.6 MB, free: 14.1 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.057e-05/0.142, allocations: 25.75 kB / 300.6 MB, free: 14.1 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.006e-05/0.1421, allocations: 50.05 kB / 300.7 MB, free: 14.1 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004537/0.1425, allocations: 270.2 kB / 300.9 MB, free: 14.08 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002637/0.1452, allocations: 1.649 MB / 302.6 MB, free: 13.49 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003942/0.1456, allocations: 326.8 kB / 302.9 MB, free: 13.42 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001411/0.1457, allocations: 103.4 kB / 303 MB, free: 13.41 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001076/0.1468, allocations: 0.7947 MB / 303.8 MB, free: 13.12 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.244e-05/0.1468, allocations: 42.62 kB / 303.8 MB, free: 13.09 MB / 266.7 MB Notification: Performance of pre-optimization done (n=56): time 1.613e-06/0.1468, allocations: 4 kB / 303.8 MB, free: 13.08 MB / 266.7 MB Notification: Performance of matching and sorting (n=66): time 0.002539/0.1493, allocations: 1.423 MB / 305.3 MB, free: 12.77 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.325e-05/0.1494, allocations: 91.73 kB / 305.3 MB, free: 12.67 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002892/0.1496, allocations: 477.5 kB / 305.8 MB, free: 12.52 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.918e-05/0.1497, allocations: 36.48 kB / 305.8 MB, free: 12.49 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.171e-05/0.1498, allocations: 293.7 kB / 306.1 MB, free: 12.3 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.213e-05/0.1499, allocations: 239.1 kB / 306.4 MB, free: 12.15 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001402/0.15, allocations: 146.8 kB / 306.5 MB, free: 12.13 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.704e-05/0.1501, allocations: 384.4 kB / 306.9 MB, free: 11.82 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001375/0.1502, allocations: 105.6 kB / 307 MB, free: 11.8 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001784/0.1504, allocations: 282.2 kB / 307.3 MB, free: 11.6 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003484/0.1507, allocations: 418.1 kB / 307.7 MB, free: 11.42 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.1507, allocations: 3.375 kB / 307.7 MB, free: 11.42 MB / 266.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.0005464/0.1513, allocations: 488.6 kB / 308.2 MB, free: 11.36 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.544e-05/0.1513, allocations: 6.5 kB / 308.2 MB, free: 11.36 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.732e-06/0.1513, allocations: 2.844 kB / 308.2 MB, free: 11.36 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005452/0.1519, allocations: 280.7 kB / 308.4 MB, free: 11.32 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000306/0.1522, allocations: 155.8 kB / 308.6 MB, free: 11.3 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003722/0.1525, allocations: 0.649 MB / 309.2 MB, free: 10.75 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002401/0.1528, allocations: 28.45 kB / 309.3 MB, free: 10.74 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.927e-05/0.1528, allocations: 27.02 kB / 309.3 MB, free: 10.74 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002292/0.153, allocations: 196.9 kB / 309.5 MB, free: 10.64 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001653/0.1532, allocations: 287 kB / 309.8 MB, free: 10.41 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003099/0.1535, allocations: 413 kB / 310.2 MB, free: 10.18 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.024e-06/0.1535, allocations: 0 / 310.2 MB, free: 10.18 MB / 266.7 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.0005093/0.154, allocations: 478.3 kB / 310.6 MB, free: 10.02 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.996e-06/0.154, allocations: 4 kB / 310.6 MB, free: 10.02 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.588e-06/0.154, allocations: 12.5 kB / 310.6 MB, free: 10.01 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000272/0.1543, allocations: 183.3 kB / 310.8 MB, free: 9.836 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002888/0.1546, allocations: 166 kB / 311 MB, free: 9.684 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002707/0.1549, allocations: 0.6133 MB / 311.6 MB, free: 9.055 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002227/0.1551, allocations: 27.98 kB / 311.6 MB, free: 9.027 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.428e-05/0.1551, allocations: 31.92 kB / 311.7 MB, free: 8.996 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.0001261/0.1553, allocations: 226.3 kB / 311.9 MB, free: 8.777 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.027e-05/0.1553, allocations: 63.94 kB / 311.9 MB, free: 8.715 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005722/0.1559, allocations: 468.1 kB / 312.4 MB, free: 8.254 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.5e-06/0.1559, allocations: 11.98 kB / 312.4 MB, free: 8.242 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.853e-06/0.1559, allocations: 4 kB / 312.4 MB, free: 8.238 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.681e-06/0.1559, allocations: 3.984 kB / 312.4 MB, free: 8.234 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001146/0.1571, allocations: 0.8898 MB / 313.3 MB, free: 7.383 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.966e-06/0.1571, allocations: 0 / 313.3 MB, free: 7.383 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003366/0.1574, allocations: 111.1 kB / 313.4 MB, free: 7.277 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005895/0.158, allocations: 278.6 kB / 313.7 MB, free: 7.008 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.511e-05/0.158, allocations: 15.98 kB / 313.7 MB, free: 6.992 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004118/0.1584, allocations: 0.657 MB / 314.4 MB, free: 6.316 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.1585, allocations: 0 / 314.4 MB, free: 6.316 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007736/0.1592, allocations: 0.6539 MB / 315 MB, free: 5.664 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002048/0.1594, allocations: 103.5 kB / 315.1 MB, free: 5.562 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.095e-05/0.1595, allocations: 12 kB / 315.1 MB, free: 5.551 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002687/0.1598, allocations: 31.98 kB / 315.2 MB, free: 5.52 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.815e-05/0.1599, allocations: 48.64 kB / 315.2 MB, free: 5.473 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.498e-05/0.1599, allocations: 23.11 kB / 315.2 MB, free: 5.453 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001599/0.1601, allocations: 202.9 kB / 315.4 MB, free: 5.281 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1601, allocations: 0 / 315.4 MB, free: 5.281 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.00137/0.1614, allocations: 0.5576 MB / 316 MB, free: 4.723 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.0007065/0.1621, allocations: 442.1 kB / 316.4 MB, free: 4.305 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.00108/0.1632, allocations: 0.6324 MB / 317.1 MB, free: 3.723 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.327e-05/0.1632, allocations: 4 kB / 317.1 MB, free: 3.719 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003445/0.1636, allocations: 219.4 kB / 317.3 MB, free: 3.52 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001015/0.1646, allocations: 386.3 kB / 317.6 MB, free: 3.172 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002223/0.1668, allocations: 1.33 MB / 319 MB, free: 1.832 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001184/0.1669, allocations: 200.6 kB / 319.2 MB, free: 1.617 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0005814/0.1675, allocations: 166.4 kB / 319.3 MB, free: 1.457 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005811/0.1681, allocations: 315.5 kB / 319.6 MB, free: 1.152 MB / 266.7 MB Notification: Performance of SimCode: time 1.363e-06/0.1681, allocations: 0 / 319.6 MB, free: 1.152 MB / 266.7 MB Notification: Performance of Templates: time 0.02981/0.1979, allocations: 22.81 MB / 342.5 MB, free: 10.71 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.230731169693172]