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.0008789/0.0008789, allocations: 84.73 kB / 21.5 MB, free: 2.992 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.0009128/0.0009128, allocations: 161.1 kB / 24.91 MB, free: 8.719 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.017/1.017, allocations: 177 MB / 205.2 MB, free: 4.441 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 2.244e-06/2.244e-06, allocations: 0 / 273.4 MB, free: 4.281 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.17e-05/2.395e-05, allocations: 8 kB / 273.4 MB, free: 4.273 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.006971/0.006995, allocations: 8.079 MB / 281.5 MB, free: 12.18 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006567/0.01356, allocations: 5.619 MB / 287.1 MB, free: 6.539 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005442/0.01411, allocations: 35.69 kB / 287.1 MB, free: 6.504 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005572/0.01466, allocations: 238.5 kB / 287.4 MB, free: 6.27 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001814/0.01648, allocations: 1.053 MB / 288.4 MB, free: 5.211 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00267/0.01915, allocations: 1.714 MB / 290.1 MB, free: 3.492 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001927/0.02107, allocations: 2.135 MB / 292.3 MB, free: 1.348 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005935/0.02167, allocations: 0.5184 MB / 292.8 MB, free: 0.8086 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001168/0.02284, allocations: 1.04 MB / 293.8 MB, free: 15.77 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007521/0.02359, allocations: 0.705 MB / 294.5 MB, free: 15.06 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 9.459e-05/0.02368, allocations: 76 kB / 294.6 MB, free: 14.98 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001573/0.02526, allocations: 1.007 MB / 295.6 MB, free: 13.98 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002568/0.02551, allocations: 346.9 kB / 296 MB, free: 13.64 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003449/0.02586, allocations: 331.2 kB / 296.3 MB, free: 13.31 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001752/0.02761, allocations: 1.538 MB / 297.8 MB, free: 11.77 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.02761, allocations: 0 / 297.8 MB, free: 11.77 MB / 282.7 MB Notification: Performance of FrontEnd: time 8.11e-07/0.02761, allocations: 3.938 kB / 297.8 MB, free: 11.77 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.836e-06/0.02762, allocations: 0 / 297.8 MB, free: 11.77 MB / 282.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.001523/0.02915, allocations: 1.14 MB / 299 MB, free: 10.59 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.028e-05/0.02919, allocations: 12.03 kB / 299 MB, free: 10.58 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002756/0.02946, allocations: 136.6 kB / 299.1 MB, free: 10.45 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008436/0.03031, allocations: 500 kB / 299.6 MB, free: 9.934 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001037/0.03041, allocations: 156.1 kB / 299.7 MB, free: 9.758 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.598e-05/0.03049, allocations: 63.94 kB / 299.8 MB, free: 9.695 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000669/0.03115, allocations: 0.793 MB / 300.6 MB, free: 8.805 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.724e-05/0.03117, allocations: 4 kB / 300.6 MB, free: 8.801 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.605e-05/0.03122, allocations: 23.98 kB / 300.6 MB, free: 8.777 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.188e-05/0.03128, allocations: 57.27 kB / 300.7 MB, free: 8.723 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003597/0.03164, allocations: 269 kB / 301 MB, free: 8.457 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002228/0.03387, allocations: 1.643 MB / 302.6 MB, free: 6.777 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003631/0.03423, allocations: 343.9 kB / 302.9 MB, free: 6.438 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000126/0.03436, allocations: 102.3 kB / 303 MB, free: 6.336 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001003/0.03536, allocations: 0.7893 MB / 303.8 MB, free: 5.531 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.832e-05/0.03539, allocations: 43.06 kB / 303.9 MB, free: 5.48 MB / 282.7 MB Notification: Performance of pre-optimization done (n=56): time 1.794e-06/0.03539, allocations: 0 / 303.9 MB, free: 5.48 MB / 282.7 MB Notification: Performance of matching and sorting (n=66): time 0.002426/0.03782, allocations: 1.367 MB / 305.2 MB, free: 4.086 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.452e-05/0.03786, allocations: 85.77 kB / 305.3 MB, free: 3.98 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003367/0.0382, allocations: 480.6 kB / 305.8 MB, free: 3.5 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.264e-05/0.03824, allocations: 37.7 kB / 305.8 MB, free: 3.457 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001313/0.03837, allocations: 289.9 kB / 306.1 MB, free: 3.164 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001306/0.0385, allocations: 241.9 kB / 306.3 MB, free: 2.926 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001636/0.03866, allocations: 146.5 kB / 306.5 MB, free: 2.777 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0003233/0.03899, allocations: 374.6 kB / 306.8 MB, free: 2.402 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001589/0.03915, allocations: 107.6 kB / 307 MB, free: 2.293 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002254/0.03937, allocations: 289.3 kB / 307.2 MB, free: 1.941 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000412/0.03978, allocations: 422.5 kB / 307.6 MB, free: 1.469 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.746e-06/0.03979, allocations: 0 / 307.6 MB, free: 1.469 MB / 282.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.0006202/0.04041, allocations: 479.5 kB / 308.1 MB, free: 0.9883 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.958e-05/0.04043, allocations: 8 kB / 308.1 MB, free: 0.9805 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.277e-06/0.04044, allocations: 4 kB / 308.1 MB, free: 0.9766 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007221/0.04116, allocations: 319.6 kB / 308.4 MB, free: 0.6602 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003924/0.04155, allocations: 183.7 kB / 308.6 MB, free: 492 kB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004725/0.04202, allocations: 0.6468 MB / 309.3 MB, free: 15.81 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002157/0.04224, allocations: 27.98 kB / 309.3 MB, free: 15.78 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.216e-05/0.04228, allocations: 23.98 kB / 309.3 MB, free: 15.76 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002205/0.0425, allocations: 195.8 kB / 309.5 MB, free: 15.56 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002159/0.04272, allocations: 282.3 kB / 309.8 MB, free: 15.21 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003598/0.04308, allocations: 424.5 kB / 310.2 MB, free: 14.74 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.034e-06/0.04308, allocations: 0 / 310.2 MB, free: 14.74 MB / 298.7 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.0005502/0.04363, allocations: 483.4 kB / 310.7 MB, free: 14.25 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.006e-05/0.04364, allocations: 4 kB / 310.7 MB, free: 14.25 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.089e-06/0.04364, allocations: 8 kB / 310.7 MB, free: 14.24 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003726/0.04402, allocations: 207.9 kB / 310.9 MB, free: 14.04 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003509/0.04437, allocations: 178.4 kB / 311.1 MB, free: 13.86 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003804/0.04475, allocations: 0.628 MB / 311.7 MB, free: 13.21 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001987/0.04495, allocations: 24 kB / 311.7 MB, free: 13.18 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.779e-05/0.04498, allocations: 23.98 kB / 311.7 MB, free: 13.16 MB / 298.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.000149/0.04513, allocations: 228.1 kB / 312 MB, free: 12.93 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.381e-05/0.04522, allocations: 67.92 kB / 312 MB, free: 12.86 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006133/0.04583, allocations: 475.5 kB / 312.5 MB, free: 12.39 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.312e-06/0.04584, allocations: 11.94 kB / 312.5 MB, free: 12.38 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.994e-06/0.04584, allocations: 0 / 312.5 MB, free: 12.38 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.582e-06/0.04585, allocations: 7.984 kB / 312.5 MB, free: 12.37 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001033/0.04688, allocations: 0.8756 MB / 313.4 MB, free: 11.46 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.04688, allocations: 0 / 313.4 MB, free: 11.46 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002998/0.04718, allocations: 131.8 kB / 313.5 MB, free: 11.33 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006765/0.04786, allocations: 307.3 kB / 313.8 MB, free: 11.03 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.514e-05/0.04789, allocations: 16 kB / 313.8 MB, free: 11.01 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003934/0.04829, allocations: 0.6567 MB / 314.5 MB, free: 10.33 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.04829, allocations: 4 kB / 314.5 MB, free: 10.32 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006644/0.04895, allocations: 0.6607 MB / 315.1 MB, free: 9.641 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001495/0.0491, allocations: 99.52 kB / 315.2 MB, free: 9.543 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.319e-05/0.04915, allocations: 8 kB / 315.3 MB, free: 9.535 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001937/0.04935, allocations: 27.98 kB / 315.3 MB, free: 9.508 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.346e-05/0.04943, allocations: 48.56 kB / 315.3 MB, free: 9.461 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.619e-05/0.04947, allocations: 23.91 kB / 315.4 MB, free: 9.438 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001449/0.04961, allocations: 208.4 kB / 315.6 MB, free: 9.234 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.04961, allocations: 0 / 315.6 MB, free: 9.234 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0008496/0.05046, allocations: 0.5576 MB / 316.1 MB, free: 8.676 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.0005863/0.05105, allocations: 430.9 kB / 316.5 MB, free: 8.246 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001049/0.0521, allocations: 0.6758 MB / 317.2 MB, free: 7.57 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.039e-05/0.05211, allocations: 8 kB / 317.2 MB, free: 7.562 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003023/0.05241, allocations: 209.8 kB / 317.4 MB, free: 7.355 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008385/0.05325, allocations: 383.9 kB / 317.8 MB, free: 6.996 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002009/0.05526, allocations: 1.339 MB / 319.1 MB, free: 5.617 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001203/0.05538, allocations: 192.6 kB / 319.3 MB, free: 5.41 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0004538/0.05583, allocations: 174 kB / 319.5 MB, free: 5.238 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005308/0.05636, allocations: 311 kB / 319.8 MB, free: 4.934 MB / 298.7 MB Notification: Performance of SimCode: time 1.253e-06/0.05636, allocations: 0 / 319.8 MB, free: 4.934 MB / 298.7 MB Notification: Performance of Templates: time 0.02429/0.08065, allocations: 22.96 MB / 342.8 MB, free: 14.25 MB / 330.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 -s gbode -gbm=radauIIA3 -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.2515885960310698]