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.001567/0.001567, allocations: 82.28 kB / 22.21 MB, free: 2.293 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.00177/0.00177, allocations: 145.2 kB / 25.59 MB, free: 8.918 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.9438/0.9438, allocations: 173.4 MB / 202.3 MB, free: 8.27 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.313e-06/1.313e-06, allocations: 0 / 269.2 MB, free: 9.805 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.939e-05/2.07e-05, allocations: 5.266 kB / 269.2 MB, free: 9.801 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.006594/0.006615, allocations: 7.927 MB / 277.1 MB, free: 1.852 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.006012/0.01263, allocations: 5.506 MB / 282.6 MB, free: 12.34 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005634/0.01319, allocations: 31.75 kB / 282.6 MB, free: 12.31 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005787/0.01377, allocations: 246.3 kB / 282.9 MB, free: 12.07 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001884/0.01565, allocations: 1.053 MB / 283.9 MB, free: 11.01 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003299/0.01895, allocations: 1.855 MB / 285.8 MB, free: 9.148 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002112/0.02106, allocations: 2.155 MB / 287.9 MB, free: 6.984 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006444/0.02171, allocations: 0.5532 MB / 288.5 MB, free: 6.41 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001167/0.02287, allocations: 1.076 MB / 289.6 MB, free: 5.332 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008/0.02367, allocations: 0.7441 MB / 290.3 MB, free: 4.586 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001115/0.02379, allocations: 80 kB / 290.4 MB, free: 4.508 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001491/0.02528, allocations: 0.897 MB / 291.3 MB, free: 3.609 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002283/0.02551, allocations: 342.9 kB / 291.6 MB, free: 3.273 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002675/0.02577, allocations: 335.2 kB / 292 MB, free: 2.945 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001581/0.02735, allocations: 1.531 MB / 293.5 MB, free: 1.41 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.985e-06/0.02736, allocations: 0 / 293.5 MB, free: 1.41 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.52e-07/0.02736, allocations: 0 / 293.5 MB, free: 1.41 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.734e-06/0.02737, allocations: 0 / 293.5 MB, free: 1.41 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.001578/0.02894, allocations: 1.304 MB / 294.8 MB, free: 68 kB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.273e-05/0.02898, allocations: 8.031 kB / 294.8 MB, free: 60 kB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002972/0.02927, allocations: 157.7 kB / 295 MB, free: 15.9 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006012/0.02988, allocations: 0.5556 MB / 295.5 MB, free: 15.32 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001009/0.02998, allocations: 164.1 kB / 295.7 MB, free: 15.14 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.791e-05/0.03005, allocations: 55.98 kB / 295.7 MB, free: 15.08 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000681/0.03073, allocations: 0.8108 MB / 296.5 MB, free: 14.17 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.673e-05/0.03075, allocations: 0 / 296.5 MB, free: 14.17 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.074e-05/0.0308, allocations: 27.98 kB / 296.6 MB, free: 14.14 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.482e-05/0.03086, allocations: 49.22 kB / 296.6 MB, free: 14.09 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003897/0.03125, allocations: 294.1 kB / 296.9 MB, free: 13.8 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002757/0.034, allocations: 2.16 MB / 299.1 MB, free: 11.59 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000386/0.03439, allocations: 311.1 kB / 299.4 MB, free: 11.28 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001525/0.03454, allocations: 125.1 kB / 299.5 MB, free: 11.16 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001104/0.03565, allocations: 0.9272 MB / 300.4 MB, free: 10.21 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.767e-05/0.03567, allocations: 49.83 kB / 300.5 MB, free: 10.15 MB / 282.7 MB Notification: Performance of pre-optimization done (n=56): time 1.823e-06/0.03568, allocations: 0 / 300.5 MB, free: 10.15 MB / 282.7 MB Notification: Performance of matching and sorting (n=66): time 0.002597/0.03827, allocations: 1.412 MB / 301.9 MB, free: 8.711 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.268e-05/0.03831, allocations: 81.77 kB / 302 MB, free: 8.613 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003432/0.03865, allocations: 0.545 MB / 302.5 MB, free: 8.051 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.319e-05/0.03869, allocations: 37.7 kB / 302.5 MB, free: 8.008 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001744/0.03887, allocations: 399.3 kB / 302.9 MB, free: 7.609 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001347/0.039, allocations: 249.9 kB / 303.2 MB, free: 7.363 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001659/0.03917, allocations: 160.2 kB / 303.3 MB, free: 7.199 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001492/0.03932, allocations: 0.5624 MB / 303.9 MB, free: 6.625 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001635/0.03948, allocations: 119.5 kB / 304 MB, free: 6.504 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002642/0.03974, allocations: 360.8 kB / 304.4 MB, free: 6.062 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004281/0.04017, allocations: 470.8 kB / 304.8 MB, free: 5.52 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.04017, allocations: 0 / 304.8 MB, free: 5.52 MB / 282.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.0009963/0.04117, allocations: 0.5979 MB / 305.4 MB, free: 4.91 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.458e-05/0.04119, allocations: 8 kB / 305.4 MB, free: 4.902 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.983e-06/0.04119, allocations: 4 kB / 305.4 MB, free: 4.898 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000588/0.04178, allocations: 295.6 kB / 305.7 MB, free: 4.605 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003354/0.04212, allocations: 167.7 kB / 305.9 MB, free: 4.441 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005481/0.04266, allocations: 0.9248 MB / 306.8 MB, free: 3.484 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002397/0.0429, allocations: 31.98 kB / 306.8 MB, free: 3.453 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.398e-05/0.04295, allocations: 27.98 kB / 306.9 MB, free: 3.426 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002479/0.0432, allocations: 244.8 kB / 307.1 MB, free: 3.18 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000255/0.04345, allocations: 373.5 kB / 307.5 MB, free: 2.723 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004185/0.04387, allocations: 478.5 kB / 307.9 MB, free: 2.172 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.865e-06/0.04387, allocations: 3.938 kB / 307.9 MB, free: 2.168 MB / 282.7 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.0007067/0.04458, allocations: 0.5862 MB / 308.5 MB, free: 1.57 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.127e-06/0.04459, allocations: 8 kB / 308.5 MB, free: 1.562 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.539e-06/0.04459, allocations: 4 kB / 308.5 MB, free: 1.559 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003086/0.0449, allocations: 187.8 kB / 308.7 MB, free: 1.371 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003264/0.04523, allocations: 159.8 kB / 308.9 MB, free: 1.215 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004438/0.04567, allocations: 0.9012 MB / 309.8 MB, free: 288 kB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002301/0.0459, allocations: 39.98 kB / 309.8 MB, free: 248 kB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.853e-05/0.04594, allocations: 23.98 kB / 309.8 MB, free: 224 kB / 282.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.0001719/0.04611, allocations: 308 kB / 310.1 MB, free: 15.91 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001118/0.04622, allocations: 95.61 kB / 310.2 MB, free: 15.82 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007376/0.04696, allocations: 0.5502 MB / 310.8 MB, free: 15.25 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.603e-06/0.04697, allocations: 8 kB / 310.8 MB, free: 15.25 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.873e-06/0.04697, allocations: 3.938 kB / 310.8 MB, free: 15.24 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.751e-06/0.04697, allocations: 3.984 kB / 310.8 MB, free: 15.24 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001224/0.0482, allocations: 1.074 MB / 311.9 MB, free: 14.13 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.0482, allocations: 3.938 kB / 311.9 MB, free: 14.12 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002901/0.04849, allocations: 115.8 kB / 312 MB, free: 14.01 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005123/0.049, allocations: 286.3 kB / 312.3 MB, free: 13.73 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.726e-05/0.04904, allocations: 19.98 kB / 312.3 MB, free: 13.71 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008598/0.0499, allocations: 0.9365 MB / 313.2 MB, free: 12.74 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.0499, allocations: 4 kB / 313.2 MB, free: 12.74 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000811/0.05071, allocations: 0.7725 MB / 314 MB, free: 11.94 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001956/0.05091, allocations: 131.5 kB / 314.1 MB, free: 11.81 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.543e-05/0.05097, allocations: 16 kB / 314.1 MB, free: 11.8 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00024/0.05121, allocations: 23.98 kB / 314.2 MB, free: 11.77 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.95e-05/0.05129, allocations: 52.55 kB / 314.2 MB, free: 11.72 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.958e-05/0.05133, allocations: 23.98 kB / 314.2 MB, free: 11.7 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001935/0.05153, allocations: 334.7 kB / 314.6 MB, free: 11.38 MB / 298.7 MB Notification: Performance of sort global known variables: time 8e-08/0.05153, allocations: 0 / 314.6 MB, free: 11.38 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0009143/0.05244, allocations: 0.5575 MB / 315.1 MB, free: 10.82 MB / 298.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.0006609/0.0531, allocations: 449.8 kB / 315.6 MB, free: 10.37 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.00103/0.05413, allocations: 0.7087 MB / 316.3 MB, free: 9.656 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.05414, allocations: 3.859 kB / 316.3 MB, free: 9.652 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000338/0.05447, allocations: 244.4 kB / 316.5 MB, free: 9.406 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008595/0.05533, allocations: 373.2 kB / 316.9 MB, free: 9.051 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001967/0.0573, allocations: 1.388 MB / 318.3 MB, free: 7.625 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001286/0.05743, allocations: 208.5 kB / 318.5 MB, free: 7.402 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0004275/0.05786, allocations: 166.1 kB / 318.6 MB, free: 7.238 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005458/0.0584, allocations: 377.9 kB / 319 MB, free: 6.867 MB / 298.7 MB Notification: Performance of SimCode: time 7.11e-07/0.0584, allocations: 0 / 319 MB, free: 6.867 MB / 298.7 MB Notification: Performance of Templates: time 0.024/0.0824, allocations: 23.12 MB / 342.1 MB, free: 72 kB / 314.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.449653543997556]