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.001038/0.001038, allocations: 79.75 kB / 21.18 MB, free: 3.379 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.001004/0.001004, allocations: 161 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.9892/0.9892, allocations: 177.1 MB / 205 MB, free: 5.625 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.193e-06/1.193e-06, allocations: 0 / 273 MB, free: 1.566 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.768e-05/1.888e-05, allocations: 2.312 kB / 273 MB, free: 1.562 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.006898/0.006917, allocations: 8.091 MB / 281 MB, free: 9.43 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005899/0.01282, allocations: 5.601 MB / 286.6 MB, free: 3.82 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004533/0.01327, allocations: 35.69 kB / 286.7 MB, free: 3.785 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005478/0.01382, allocations: 238.5 kB / 286.9 MB, free: 3.551 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001625/0.01544, allocations: 1.064 MB / 288 MB, free: 2.48 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002559/0.018, allocations: 1.796 MB / 289.8 MB, free: 0.6758 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1118/0.1298, allocations: 2.185 MB / 292 MB, free: 15.75 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009504/0.1307, allocations: 0.5257 MB / 292.5 MB, free: 15.71 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001671/0.1324, allocations: 1.04 MB / 293.5 MB, free: 15.62 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001319/0.1337, allocations: 0.7836 MB / 294.3 MB, free: 15.55 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001943/0.1339, allocations: 78.91 kB / 294.4 MB, free: 15.55 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001747/0.1356, allocations: 0.9079 MB / 295.3 MB, free: 15.54 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003069/0.1359, allocations: 343.8 kB / 295.6 MB, free: 15.5 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003774/0.1363, allocations: 332.1 kB / 296 MB, free: 15.46 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002178/0.1385, allocations: 1.556 MB / 297.5 MB, free: 15.36 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.596e-06/0.1385, allocations: 0.5 kB / 297.5 MB, free: 15.36 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.1385, allocations: 1.344 kB / 297.5 MB, free: 15.36 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.678e-05/0.1385, allocations: 0.8125 kB / 297.5 MB, free: 15.36 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.002034/0.1406, allocations: 1.303 MB / 298.8 MB, free: 14.61 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.809e-05/0.1406, allocations: 10.19 kB / 298.8 MB, free: 14.61 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000326/0.1409, allocations: 157.8 kB / 299 MB, free: 14.55 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006743/0.1416, allocations: 0.5758 MB / 299.6 MB, free: 14.33 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.446e-05/0.1417, allocations: 160.4 kB / 299.7 MB, free: 14.2 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.657e-05/0.1418, allocations: 62.06 kB / 299.8 MB, free: 14.2 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008046/0.1426, allocations: 0.8571 MB / 300.6 MB, free: 13.72 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.701e-05/0.1426, allocations: 1.938 kB / 300.6 MB, free: 13.72 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.961e-05/0.1427, allocations: 24.11 kB / 300.7 MB, free: 13.72 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.029e-05/0.1427, allocations: 48.62 kB / 300.7 MB, free: 13.71 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005778/0.1433, allocations: 366.2 kB / 301.1 MB, free: 13.71 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002655/0.1459, allocations: 2.285 MB / 303.3 MB, free: 12.79 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004942/0.1464, allocations: 345.8 kB / 303.7 MB, free: 12.75 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002164/0.1467, allocations: 154.9 kB / 303.8 MB, free: 12.74 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001134/0.1478, allocations: 0.9558 MB / 304.8 MB, free: 12.27 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.059e-05/0.1478, allocations: 47.3 kB / 304.8 MB, free: 12.22 MB / 266.7 MB Notification: Performance of pre-optimization done (n=56): time 1.704e-06/0.1478, allocations: 0 / 304.8 MB, free: 12.22 MB / 266.7 MB Notification: Performance of matching and sorting (n=66): time 0.002832/0.1506, allocations: 1.64 MB / 306.5 MB, free: 11.61 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.54e-05/0.1507, allocations: 88.98 kB / 306.6 MB, free: 11.51 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003314/0.151, allocations: 0.5417 MB / 307.1 MB, free: 11.22 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.774e-05/0.151, allocations: 41.3 kB / 307.1 MB, free: 11.18 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001259/0.1512, allocations: 415.7 kB / 307.5 MB, free: 10.84 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001041/0.1513, allocations: 229.5 kB / 307.8 MB, free: 10.66 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001536/0.1514, allocations: 160.7 kB / 307.9 MB, free: 10.57 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.059e-05/0.1515, allocations: 0.556 MB / 308.5 MB, free: 10.05 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002286/0.1517, allocations: 148.7 kB / 308.6 MB, free: 10.02 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002788/0.152, allocations: 393 kB / 309 MB, free: 9.711 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004909/0.1525, allocations: 0.5112 MB / 309.5 MB, free: 9.375 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.1525, allocations: 0 / 309.5 MB, free: 9.375 MB / 266.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.0008309/0.1533, allocations: 0.6778 MB / 310.2 MB, free: 9.164 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.514e-05/0.1534, allocations: 6.75 kB / 310.2 MB, free: 9.164 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.103e-06/0.1534, allocations: 3.531 kB / 310.2 MB, free: 9.164 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005962/0.154, allocations: 304.2 kB / 310.5 MB, free: 9.059 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003318/0.1543, allocations: 160.5 kB / 310.7 MB, free: 9.031 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000455/0.1547, allocations: 0.9467 MB / 311.6 MB, free: 8.156 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002371/0.155, allocations: 26.86 kB / 311.6 MB, free: 8.141 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.568e-05/0.155, allocations: 42.2 kB / 311.7 MB, free: 8.129 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002894/0.1553, allocations: 277.8 kB / 312 MB, free: 7.949 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002646/0.1556, allocations: 391.7 kB / 312.3 MB, free: 7.598 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004603/0.156, allocations: 0.5076 MB / 312.8 MB, free: 7.23 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.264e-06/0.156, allocations: 0 / 312.8 MB, free: 7.23 MB / 266.7 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.0007615/0.1568, allocations: 0.657 MB / 313.5 MB, free: 6.754 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.324e-06/0.1568, allocations: 11.94 kB / 313.5 MB, free: 6.742 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.148e-06/0.1568, allocations: 4.562 kB / 313.5 MB, free: 6.738 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002917/0.1571, allocations: 193.8 kB / 313.7 MB, free: 6.555 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003137/0.1574, allocations: 174.6 kB / 313.9 MB, free: 6.395 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003385/0.1578, allocations: 0.9048 MB / 314.8 MB, free: 5.465 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002273/0.158, allocations: 31.98 kB / 314.8 MB, free: 5.434 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.74e-05/0.158, allocations: 31.98 kB / 314.8 MB, free: 5.402 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.0001242/0.1581, allocations: 314.6 kB / 315.2 MB, free: 5.094 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.542e-05/0.1582, allocations: 91.58 kB / 315.2 MB, free: 5.004 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007501/0.159, allocations: 0.6077 MB / 315.8 MB, free: 4.391 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.849e-06/0.159, allocations: 8.875 kB / 315.9 MB, free: 4.383 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.499e-06/0.159, allocations: 0 / 315.9 MB, free: 4.383 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.159, allocations: 11.92 kB / 315.9 MB, free: 4.371 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001275/0.1603, allocations: 1.21 MB / 317.1 MB, free: 3.141 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.1603, allocations: 3.422 kB / 317.1 MB, free: 3.141 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002787/0.1606, allocations: 115.2 kB / 317.2 MB, free: 3.035 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000483/0.161, allocations: 293.8 kB / 317.5 MB, free: 2.75 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.774e-05/0.1611, allocations: 20 kB / 317.5 MB, free: 2.73 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004247/0.1615, allocations: 0.9647 MB / 318.5 MB, free: 1.738 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.1615, allocations: 0 / 318.5 MB, free: 1.738 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000945/0.1625, allocations: 0.843 MB / 319.3 MB, free: 0.8672 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002287/0.1627, allocations: 151.3 kB / 319.5 MB, free: 0.7188 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.66e-05/0.1628, allocations: 12 kB / 319.5 MB, free: 0.707 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002428/0.163, allocations: 27.98 kB / 319.5 MB, free: 0.6797 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.989e-05/0.1631, allocations: 59.83 kB / 319.6 MB, free: 0.625 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.8e-05/0.1631, allocations: 30.92 kB / 319.6 MB, free: 0.5977 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002053/0.1633, allocations: 350.8 kB / 319.9 MB, free: 264 kB / 266.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1633, allocations: 0 / 319.9 MB, free: 264 kB / 266.7 MB Notification: Performance of remove unused functions: time 0.001099/0.1644, allocations: 0.5537 MB / 320.5 MB, free: 15.7 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.0007686/0.1652, allocations: 447.9 kB / 320.9 MB, free: 15.28 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001314/0.1665, allocations: 0.7959 MB / 321.7 MB, free: 14.52 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.1665, allocations: 0 / 321.7 MB, free: 14.52 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004118/0.1669, allocations: 271.8 kB / 322 MB, free: 14.26 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009837/0.1679, allocations: 381.5 kB / 322.4 MB, free: 13.91 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002245/0.1702, allocations: 1.403 MB / 323.8 MB, free: 12.5 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001261/0.1703, allocations: 204.6 kB / 324 MB, free: 12.28 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0005369/0.1708, allocations: 261.9 kB / 324.2 MB, free: 12.02 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001305/0.1709, allocations: 76.47 kB / 324.3 MB, free: 11.95 MB / 282.7 MB Notification: Performance of SimCode: time 1.132e-06/0.1709, allocations: 0 / 324.3 MB, free: 11.95 MB / 282.7 MB Notification: Performance of Templates: time 0.02331/0.1943, allocations: 20.67 MB / 345 MB, free: 7.668 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.4803498559631407]