Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.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.001308/0.001308, allocations: 84.25 kB / 22.21 MB, free: 2.285 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.001346/0.001346, allocations: 161.2 kB / 25.61 MB, free: 8.887 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 1.003/1.003, allocations: 177 MB / 205.9 MB, free: 4.438 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.ThreeTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks") translateModel(Modelica.Fluid.Examples.Tanks.ThreeTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.643e-06/1.643e-06, allocations: 0 / 274.1 MB, free: 4.289 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.498e-05/2.662e-05, allocations: 4.031 kB / 274.1 MB, free: 4.285 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.013/0.01303, allocations: 11.08 MB / 285.2 MB, free: 9.172 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01149/0.02452, allocations: 6.825 MB / 292 MB, free: 2.332 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001366/0.02588, allocations: 63.44 kB / 292.1 MB, free: 2.27 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009038/0.02679, allocations: 421.2 kB / 292.5 MB, free: 1.855 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003147/0.02993, allocations: 1.779 MB / 294.3 MB, free: 68 kB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004478/0.03441, allocations: 2.818 MB / 297.1 MB, free: 13.24 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.004476/0.03889, allocations: 4.04 MB / 301.1 MB, free: 9.188 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001351/0.04024, allocations: 1.095 MB / 302.2 MB, free: 8.07 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002425/0.04266, allocations: 2.074 MB / 304.3 MB, free: 5.992 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001713/0.04438, allocations: 1.555 MB / 305.8 MB, free: 4.434 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002602/0.04464, allocations: 156 kB / 306 MB, free: 4.281 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001539/0.04617, allocations: 0.9907 MB / 307 MB, free: 3.289 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005132/0.04669, allocations: 0.666 MB / 307.6 MB, free: 2.621 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006791/0.04737, allocations: 0.6353 MB / 308.3 MB, free: 1.984 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002684/0.05005, allocations: 2.302 MB / 310.6 MB, free: 15.68 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.05006, allocations: 0 / 310.6 MB, free: 15.68 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.253e-06/0.05006, allocations: 0 / 310.6 MB, free: 15.68 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.016e-05/0.05008, allocations: 0 / 310.6 MB, free: 15.68 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.002662/0.05274, allocations: 2.038 MB / 312.6 MB, free: 13.59 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.432e-05/0.05277, allocations: 12.03 kB / 312.6 MB, free: 13.58 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004561/0.05323, allocations: 275.7 kB / 312.9 MB, free: 13.31 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001064/0.05429, allocations: 0.9872 MB / 313.9 MB, free: 12.29 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001376/0.05443, allocations: 256.1 kB / 314.1 MB, free: 12 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000146/0.05458, allocations: 108 kB / 314.2 MB, free: 11.9 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00131/0.05589, allocations: 1.44 MB / 315.7 MB, free: 10.28 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.278e-05/0.05591, allocations: 3.938 kB / 315.7 MB, free: 10.28 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.713e-05/0.05601, allocations: 47.97 kB / 315.7 MB, free: 10.23 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001032/0.05611, allocations: 113.9 kB / 315.8 MB, free: 10.12 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008479/0.05696, allocations: 0.5913 MB / 316.4 MB, free: 9.504 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005081/0.06204, allocations: 3.924 MB / 320.4 MB, free: 5.5 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007136/0.06275, allocations: 0.5918 MB / 321 MB, free: 4.902 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003084/0.06306, allocations: 250.5 kB / 321.2 MB, free: 4.652 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002378/0.06544, allocations: 1.728 MB / 322.9 MB, free: 2.902 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.334e-05/0.06547, allocations: 54.39 kB / 323 MB, free: 2.84 MB / 298.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004146/0.06589, allocations: 179.2 kB / 323.2 MB, free: 2.664 MB / 298.7 MB Notification: Performance of pre-optimization done (n=97): time 2.535e-06/0.06589, allocations: 0 / 323.2 MB, free: 2.664 MB / 298.7 MB Notification: Performance of matching and sorting (n=112): time 0.006843/0.07273, allocations: 2.889 MB / 326 MB, free: 15.76 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.605e-05/0.07279, allocations: 149.4 kB / 326.2 MB, free: 15.58 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007451/0.07353, allocations: 0.9256 MB / 327.1 MB, free: 14.63 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.174e-05/0.07361, allocations: 49.64 kB / 327.2 MB, free: 14.58 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003372/0.07394, allocations: 0.6902 MB / 327.9 MB, free: 13.88 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000247/0.07419, allocations: 416.4 kB / 328.3 MB, free: 13.47 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003096/0.0745, allocations: 301 kB / 328.6 MB, free: 13.17 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001003/0.0746, allocations: 476.8 kB / 329 MB, free: 12.7 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00032/0.07492, allocations: 223.5 kB / 329.2 MB, free: 12.48 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005502/0.07547, allocations: 0.7702 MB / 330 MB, free: 11.49 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008964/0.07637, allocations: 0.9323 MB / 330.9 MB, free: 10.38 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.843e-06/0.07637, allocations: 4 kB / 330.9 MB, free: 10.38 MB / 314.7 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.001471/0.07784, allocations: 1.144 MB / 332.1 MB, free: 9.219 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.996e-05/0.07786, allocations: 14.22 kB / 332.1 MB, free: 9.207 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.119e-05/0.07788, allocations: 12 kB / 332.1 MB, free: 9.195 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002858/0.08073, allocations: 0.922 MB / 333 MB, free: 8.27 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006286/0.08136, allocations: 295.5 kB / 333.3 MB, free: 7.98 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001035/0.0824, allocations: 1.133 MB / 334.5 MB, free: 6.816 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007003/0.0831, allocations: 47.98 kB / 334.5 MB, free: 6.77 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.756e-05/0.0832, allocations: 63.95 kB / 334.6 MB, free: 6.707 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005782/0.08377, allocations: 354.7 kB / 334.9 MB, free: 6.355 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000633/0.08441, allocations: 0.7897 MB / 335.7 MB, free: 5.348 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009207/0.08533, allocations: 0.9548 MB / 336.7 MB, free: 4.199 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.178e-06/0.08534, allocations: 7.938 kB / 336.7 MB, free: 4.191 MB / 314.7 MB Notification: Performance of matching and sorting (n=181) (initialization_lambda0): time 0.001483/0.08682, allocations: 1.124 MB / 337.8 MB, free: 3.055 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.544e-05/0.08683, allocations: 8 kB / 337.8 MB, free: 3.047 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.108e-05/0.08685, allocations: 12 kB / 337.8 MB, free: 3.035 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002663/0.08951, allocations: 0.7881 MB / 338.6 MB, free: 2.242 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006836/0.09019, allocations: 299.5 kB / 338.9 MB, free: 1.949 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009278/0.09112, allocations: 1.077 MB / 340 MB, free: 0.8398 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007045/0.09182, allocations: 55.97 kB / 340 MB, free: 0.7852 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.066e-05/0.09192, allocations: 63.91 kB / 340.1 MB, free: 0.7227 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 6 (tank3.inFlow[1],tank3.regularFlow[1],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 (156): * Single equations (assignments): 155 * 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 {(8,18)} Notification: Performance of prepare postOptimizeDAE: time 0.0003895/0.0923, allocations: 343.8 kB / 340.4 MB, free: 388 kB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002493/0.09255, allocations: 171.2 kB / 340.6 MB, free: 216 kB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001872/0.09443, allocations: 1.103 MB / 341.7 MB, free: 15.09 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.2e-05/0.09444, allocations: 16 kB / 341.7 MB, free: 15.07 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.09444, allocations: 0 / 341.7 MB, free: 15.07 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.899e-06/0.09445, allocations: 7.984 kB / 341.7 MB, free: 15.07 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002682/0.09713, allocations: 1.779 MB / 343.5 MB, free: 13.26 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.501e-06/0.09714, allocations: 4 kB / 343.5 MB, free: 13.25 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004767/0.09762, allocations: 175.8 kB / 343.7 MB, free: 13.08 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001128/0.09874, allocations: 0.5929 MB / 344.3 MB, free: 12.48 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.38e-05/0.09884, allocations: 31.98 kB / 344.3 MB, free: 12.45 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001017/0.09986, allocations: 1.18 MB / 345.5 MB, free: 11.23 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.09986, allocations: 0 / 345.5 MB, free: 11.23 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001707/0.1016, allocations: 1.26 MB / 346.7 MB, free: 9.945 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004377/0.102, allocations: 251 kB / 347 MB, free: 9.699 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001484/0.1022, allocations: 28 kB / 347 MB, free: 9.672 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004228/0.1026, allocations: 39.97 kB / 347 MB, free: 9.633 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001434/0.1027, allocations: 89.14 kB / 347.1 MB, free: 9.547 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.098e-05/0.1028, allocations: 39.97 kB / 347.2 MB, free: 9.508 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0004261/0.1032, allocations: 0.5146 MB / 347.7 MB, free: 8.984 MB / 330.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1032, allocations: 0 / 347.7 MB, free: 8.984 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.00181/0.105, allocations: 0.874 MB / 348.6 MB, free: 8.109 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T,tank3.level,tank3.medium.T) * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (90): * Single equations (assignments): 89 * 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 {(9,29)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008038/0.1058, allocations: 469.2 kB / 349 MB, free: 7.645 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002937/0.1088, allocations: 1.44 MB / 350.5 MB, free: 6.211 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.412e-06/0.1088, allocations: 0 / 350.5 MB, free: 6.211 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007488/0.1095, allocations: 463 kB / 350.9 MB, free: 5.758 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001719/0.1112, allocations: 0.6272 MB / 351.5 MB, free: 5.148 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003816/0.1151, allocations: 2.469 MB / 354 MB, free: 2.645 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002534/0.1153, allocations: 340.7 kB / 354.3 MB, free: 2.289 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001002/0.1163, allocations: 295.3 kB / 354.6 MB, free: 1.996 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001031/0.1173, allocations: 0.5797 MB / 355.2 MB, free: 1.414 MB / 330.7 MB Notification: Performance of SimCode: time 3.707e-06/0.1173, allocations: 0 / 355.2 MB, free: 1.414 MB / 330.7 MB Notification: Performance of Templates: time 0.1882/0.3056, allocations: 38.62 MB / 393.8 MB, free: 44.85 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.sim & ./Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Fluid/Examples/Tanks/ThreeTanks/ThreeTanks.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.922684960067272]