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.001144/0.001144, allocations: 79.91 kB / 21.18 MB, free: 3.391 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.0009224/0.0009224, allocations: 145.1 kB / 24.54 MB, free: 32 kB / 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.9396/0.9396, allocations: 173.4 MB / 201.1 MB, free: 9.344 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.723e-06/1.723e-06, allocations: 3.938 kB / 268 MB, free: 6.469 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.022e-05/2.194e-05, allocations: 6.25 kB / 268 MB, free: 6.461 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.006821/0.006843, allocations: 8.016 MB / 276 MB, free: 14.4 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005912/0.01276, allocations: 5.585 MB / 281.6 MB, free: 8.805 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004649/0.01322, allocations: 31.69 kB / 281.6 MB, free: 8.773 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005497/0.01377, allocations: 246.4 kB / 281.8 MB, free: 8.531 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00165/0.01542, allocations: 1.053 MB / 282.9 MB, free: 7.473 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002725/0.01814, allocations: 1.812 MB / 284.7 MB, free: 5.656 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001999/0.02014, allocations: 2.186 MB / 286.9 MB, free: 3.461 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007152/0.02086, allocations: 0.5415 MB / 287.4 MB, free: 2.898 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001225/0.02208, allocations: 1.08 MB / 288.5 MB, free: 1.816 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008102/0.02289, allocations: 0.7597 MB / 289.3 MB, free: 1.055 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001123/0.02301, allocations: 84 kB / 289.4 MB, free: 0.9727 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001215/0.02422, allocations: 0.8893 MB / 290.2 MB, free: 84 kB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.1025/0.1267, allocations: 342.4 kB / 290.6 MB, free: 17.54 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005811/0.1273, allocations: 334.2 kB / 290.9 MB, free: 17.54 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002422/0.1297, allocations: 1.538 MB / 292.4 MB, free: 17.5 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.1297, allocations: 0 / 292.4 MB, free: 17.5 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1297, allocations: 0.7031 kB / 292.4 MB, free: 17.5 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.126e-05/0.1298, allocations: 0 / 292.4 MB, free: 17.5 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.001891/0.1317, allocations: 1.301 MB / 293.8 MB, free: 16.75 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.672e-05/0.1317, allocations: 11.08 kB / 293.8 MB, free: 16.75 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002956/0.132, allocations: 153.8 kB / 293.9 MB, free: 16.69 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006523/0.1326, allocations: 0.5728 MB / 294.5 MB, free: 16.48 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.353e-05/0.1327, allocations: 157.1 kB / 294.6 MB, free: 16.35 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.226e-05/0.1328, allocations: 65.5 kB / 294.7 MB, free: 16.34 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008662/0.1337, allocations: 0.8578 MB / 295.6 MB, free: 15.86 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.716e-05/0.1337, allocations: 3.844 kB / 295.6 MB, free: 15.86 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.16e-05/0.1338, allocations: 23.3 kB / 295.6 MB, free: 15.86 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.611e-05/0.1338, allocations: 52.89 kB / 295.6 MB, free: 15.86 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006211/0.1344, allocations: 366.1 kB / 296 MB, free: 15.86 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002695/0.1371, allocations: 2.285 MB / 298.3 MB, free: 14.95 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004892/0.1376, allocations: 344.3 kB / 298.6 MB, free: 14.91 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002136/0.1378, allocations: 153.8 kB / 298.8 MB, free: 14.89 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001087/0.1389, allocations: 0.9604 MB / 299.7 MB, free: 14.52 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.99e-05/0.139, allocations: 41.17 kB / 299.8 MB, free: 14.48 MB / 266.7 MB Notification: Performance of pre-optimization done (n=56): time 1.423e-06/0.139, allocations: 1.422 kB / 299.8 MB, free: 14.48 MB / 266.7 MB Notification: Performance of matching and sorting (n=66): time 0.002941/0.1419, allocations: 1.629 MB / 301.4 MB, free: 14.1 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.827e-05/0.1419, allocations: 88.77 kB / 301.5 MB, free: 14 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003795/0.1423, allocations: 0.5441 MB / 302 MB, free: 13.81 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.554e-05/0.1423, allocations: 40.11 kB / 302.1 MB, free: 13.78 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001369/0.1425, allocations: 411.4 kB / 302.5 MB, free: 13.54 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001016/0.1426, allocations: 242.7 kB / 302.7 MB, free: 13.39 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001585/0.1427, allocations: 157 kB / 302.9 MB, free: 13.36 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.096e-05/0.1428, allocations: 0.5519 MB / 303.4 MB, free: 12.87 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00024/0.1431, allocations: 146.5 kB / 303.6 MB, free: 12.85 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002973/0.1434, allocations: 397.4 kB / 303.9 MB, free: 12.57 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000521/0.1439, allocations: 0.5102 MB / 304.5 MB, free: 12.33 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.287e-06/0.1439, allocations: 4.562 kB / 304.5 MB, free: 12.33 MB / 266.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.0009079/0.1448, allocations: 0.673 MB / 305.1 MB, free: 12.22 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.8e-05/0.1448, allocations: 7.375 kB / 305.1 MB, free: 12.22 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.394e-06/0.1448, allocations: 4.281 kB / 305.1 MB, free: 12.22 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006139/0.1454, allocations: 304.1 kB / 305.4 MB, free: 12.2 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003398/0.1458, allocations: 160.8 kB / 305.6 MB, free: 12.2 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004686/0.1462, allocations: 0.9517 MB / 306.5 MB, free: 11.39 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002387/0.1465, allocations: 33.16 kB / 306.6 MB, free: 11.39 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.584e-05/0.1465, allocations: 33.34 kB / 306.6 MB, free: 11.39 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002895/0.1468, allocations: 277.8 kB / 306.9 MB, free: 11.26 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000265/0.1471, allocations: 396.3 kB / 307.3 MB, free: 10.97 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004748/0.1476, allocations: 0.5126 MB / 307.8 MB, free: 10.72 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.524e-06/0.1476, allocations: 2 kB / 307.8 MB, free: 10.72 MB / 266.7 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.0007879/0.1483, allocations: 0.6558 MB / 308.4 MB, free: 10.62 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.756e-06/0.1484, allocations: 14.03 kB / 308.5 MB, free: 10.62 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.497e-06/0.1484, allocations: 3.688 kB / 308.5 MB, free: 10.62 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002956/0.1487, allocations: 190.9 kB / 308.6 MB, free: 10.6 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003202/0.149, allocations: 170 kB / 308.8 MB, free: 10.6 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003472/0.1493, allocations: 0.9017 MB / 309.7 MB, free: 9.801 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002298/0.1496, allocations: 33.84 kB / 309.7 MB, free: 9.797 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.896e-05/0.1496, allocations: 33.45 kB / 309.8 MB, free: 9.797 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.0001235/0.1497, allocations: 311.8 kB / 310.1 MB, free: 9.527 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001004/0.1498, allocations: 96.38 kB / 310.2 MB, free: 9.488 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000783/0.1506, allocations: 0.6033 MB / 310.8 MB, free: 9.395 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.068e-06/0.1506, allocations: 8.797 kB / 310.8 MB, free: 9.395 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.1506, allocations: 0 / 310.8 MB, free: 9.395 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.372e-06/0.1506, allocations: 2.719 kB / 310.8 MB, free: 9.395 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001252/0.1519, allocations: 1.219 MB / 312 MB, free: 9.059 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.033e-06/0.1519, allocations: 0 / 312 MB, free: 9.059 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002866/0.1522, allocations: 114.3 kB / 312.1 MB, free: 9.055 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004814/0.1526, allocations: 296.7 kB / 312.4 MB, free: 9.008 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.511e-05/0.1527, allocations: 14.53 kB / 312.4 MB, free: 9 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004218/0.1531, allocations: 0.9545 MB / 313.4 MB, free: 8.145 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.1531, allocations: 7.219 kB / 313.4 MB, free: 8.141 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009216/0.154, allocations: 0.8464 MB / 314.2 MB, free: 7.758 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001729/0.1542, allocations: 155 kB / 314.4 MB, free: 7.676 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.65e-05/0.1543, allocations: 11.56 kB / 314.4 MB, free: 7.668 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000235/0.1545, allocations: 34.08 kB / 314.4 MB, free: 7.656 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.205e-05/0.1546, allocations: 46.41 kB / 314.5 MB, free: 7.652 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.992e-05/0.1546, allocations: 30.66 kB / 314.5 MB, free: 7.645 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001992/0.1548, allocations: 352.8 kB / 314.8 MB, free: 7.469 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1548, allocations: 0 / 314.8 MB, free: 7.469 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.001041/0.1559, allocations: 0.5548 MB / 315.4 MB, free: 7.367 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.0006184/0.1565, allocations: 451.1 kB / 315.8 MB, free: 7.195 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001142/0.1576, allocations: 0.7913 MB / 316.6 MB, free: 6.617 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.1576, allocations: 4.062 kB / 316.6 MB, free: 6.613 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003571/0.158, allocations: 277.8 kB / 316.9 MB, free: 6.395 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008472/0.1588, allocations: 376.3 kB / 317.3 MB, free: 6.133 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001913/0.1607, allocations: 1.401 MB / 318.7 MB, free: 4.848 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.296e-05/0.1608, allocations: 209.6 kB / 318.9 MB, free: 4.676 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0004648/0.1613, allocations: 265.4 kB / 319.1 MB, free: 4.492 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001176/0.1614, allocations: 75.89 kB / 319.2 MB, free: 4.43 MB / 266.7 MB Notification: Performance of SimCode: time 9.92e-07/0.1614, allocations: 0 / 319.2 MB, free: 4.43 MB / 266.7 MB Notification: Performance of Templates: time 0.02103/0.1824, allocations: 22.47 MB / 341.7 MB, free: 14.36 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.0898907189257443]