Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.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.001182/0.001182, allocations: 81.97 kB / 22.21 MB, free: 2.289 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.001317/0.001317, allocations: 163.9 kB / 25.61 MB, free: 8.582 MB / 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 1.031/1.031, allocations: 177.1 MB / 206.1 MB, free: 4.477 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.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_4.1.0_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_4.1.0_Modelica.Fluid.Examples.Tanks.ThreeTanks") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.303e-06/1.303e-06, allocations: 0 / 274.2 MB, free: 4.418 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.489e-05/1.619e-05, allocations: 2.312 kB / 274.2 MB, free: 4.414 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.008303/0.008319, allocations: 11.08 MB / 285.3 MB, free: 9.301 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.008472/0.01679, allocations: 6.819 MB / 292.1 MB, free: 2.465 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006006/0.01739, allocations: 59.5 kB / 292.1 MB, free: 2.406 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006641/0.01806, allocations: 417.2 kB / 292.5 MB, free: 1.996 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00212/0.02018, allocations: 1.791 MB / 294.3 MB, free: 200 kB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003517/0.02369, allocations: 2.806 MB / 297.1 MB, free: 13.38 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.002933/0.02663, allocations: 4.056 MB / 301.2 MB, free: 9.312 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009225/0.02755, allocations: 1.087 MB / 302.3 MB, free: 8.203 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001737/0.02929, allocations: 2.074 MB / 304.4 MB, free: 6.125 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001363/0.03065, allocations: 1.555 MB / 305.9 MB, free: 4.566 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002056/0.03085, allocations: 160 kB / 306.1 MB, free: 4.41 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001286/0.03214, allocations: 0.9868 MB / 307.1 MB, free: 3.422 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004686/0.03261, allocations: 0.6738 MB / 307.7 MB, free: 2.746 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005072/0.03312, allocations: 0.6236 MB / 308.4 MB, free: 2.121 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002076/0.03519, allocations: 2.306 MB / 310.7 MB, free: 15.8 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.015e-06/0.03519, allocations: 0 / 310.7 MB, free: 15.8 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.82e-07/0.03519, allocations: 0 / 310.7 MB, free: 15.8 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.228e-05/0.03521, allocations: 4 kB / 310.7 MB, free: 15.8 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.002467/0.03767, allocations: 2.035 MB / 312.7 MB, free: 13.72 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.45e-05/0.03771, allocations: 8.031 kB / 312.7 MB, free: 13.71 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004297/0.03814, allocations: 279.7 kB / 313 MB, free: 13.44 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001048/0.03919, allocations: 0.9912 MB / 314 MB, free: 12.42 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001509/0.03934, allocations: 252.1 kB / 314.2 MB, free: 12.14 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001522/0.03949, allocations: 108 kB / 314.3 MB, free: 12.03 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001309/0.0408, allocations: 1.437 MB / 315.8 MB, free: 10.42 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.645e-05/0.04083, allocations: 4 kB / 315.8 MB, free: 10.41 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.742e-05/0.04092, allocations: 51.95 kB / 315.8 MB, free: 10.36 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001087/0.04103, allocations: 109.9 kB / 315.9 MB, free: 10.25 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008783/0.04191, allocations: 0.5952 MB / 316.5 MB, free: 9.637 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005157/0.04707, allocations: 3.927 MB / 320.4 MB, free: 5.629 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006868/0.04775, allocations: 0.583 MB / 321 MB, free: 5.039 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003078/0.04806, allocations: 246.5 kB / 321.3 MB, free: 4.797 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002469/0.05053, allocations: 1.732 MB / 323 MB, free: 3.043 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.234e-05/0.05056, allocations: 62.27 kB / 323.1 MB, free: 2.973 MB / 298.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004113/0.05097, allocations: 175.3 kB / 323.2 MB, free: 2.801 MB / 298.7 MB Notification: Performance of pre-optimization done (n=97): time 2.555e-06/0.05098, allocations: 0 / 323.2 MB, free: 2.801 MB / 298.7 MB Notification: Performance of matching and sorting (n=112): time 0.006998/0.05797, allocations: 2.892 MB / 326.1 MB, free: 15.89 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.219e-05/0.05807, allocations: 149.4 kB / 326.3 MB, free: 15.71 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007665/0.05883, allocations: 0.9256 MB / 327.2 MB, free: 14.76 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.354e-05/0.05891, allocations: 49.7 kB / 327.2 MB, free: 14.71 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003429/0.05925, allocations: 0.6863 MB / 327.9 MB, free: 14.01 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002382/0.05949, allocations: 412.5 kB / 328.3 MB, free: 13.61 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003114/0.0598, allocations: 305 kB / 328.6 MB, free: 13.3 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001048/0.0599, allocations: 476.8 kB / 329.1 MB, free: 12.83 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003193/0.06022, allocations: 219.5 kB / 329.3 MB, free: 12.61 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000558/0.06078, allocations: 0.7702 MB / 330.1 MB, free: 11.63 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008808/0.06166, allocations: 0.9401 MB / 331 MB, free: 10.5 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/0.06167, allocations: 0 / 331 MB, free: 10.5 MB / 314.7 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.001449/0.06312, allocations: 1.14 MB / 332.2 MB, free: 9.352 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.136e-05/0.06314, allocations: 14.12 kB / 332.2 MB, free: 9.34 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.412e-05/0.06315, allocations: 16 kB / 332.2 MB, free: 9.324 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002864/0.06601, allocations: 0.9236 MB / 333.1 MB, free: 8.398 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005988/0.06661, allocations: 295.5 kB / 333.4 MB, free: 8.109 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009971/0.06761, allocations: 1.132 MB / 334.5 MB, free: 6.945 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004761/0.06809, allocations: 59.97 kB / 334.6 MB, free: 6.887 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.344e-05/0.06817, allocations: 55.97 kB / 334.6 MB, free: 6.832 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004646/0.06864, allocations: 350.7 kB / 335 MB, free: 6.484 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005505/0.06919, allocations: 0.7897 MB / 335.8 MB, free: 5.473 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008613/0.07005, allocations: 0.9587 MB / 336.7 MB, free: 4.32 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.141e-06/0.07005, allocations: 7.938 kB / 336.7 MB, free: 4.312 MB / 314.7 MB Notification: Performance of matching and sorting (n=181) (initialization_lambda0): time 0.001375/0.07143, allocations: 1.125 MB / 337.9 MB, free: 3.176 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.226e-05/0.07144, allocations: 12 kB / 337.9 MB, free: 3.164 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.036e-06/0.07145, allocations: 8 kB / 337.9 MB, free: 3.156 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002475/0.07392, allocations: 0.7947 MB / 338.7 MB, free: 2.359 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005999/0.07452, allocations: 303.5 kB / 339 MB, free: 2.062 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008089/0.07533, allocations: 1.065 MB / 340 MB, free: 0.9648 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004671/0.0758, allocations: 59.97 kB / 340.1 MB, free: 0.9062 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.343e-05/0.07588, allocations: 59.91 kB / 340.2 MB, free: 0.8477 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.0002515/0.07613, allocations: 355.7 kB / 340.5 MB, free: 0.4922 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002035/0.07634, allocations: 167.2 kB / 340.7 MB, free: 336 kB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001718/0.07806, allocations: 1.103 MB / 341.8 MB, free: 15.21 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.057e-06/0.07806, allocations: 12 kB / 341.8 MB, free: 15.2 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.07807, allocations: 4 kB / 341.8 MB, free: 15.2 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.217e-06/0.07808, allocations: 3.984 kB / 341.8 MB, free: 15.19 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002191/0.08027, allocations: 1.775 MB / 343.6 MB, free: 13.38 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.08027, allocations: 0 / 343.6 MB, free: 13.38 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004422/0.08071, allocations: 175.8 kB / 343.7 MB, free: 13.21 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001043/0.08176, allocations: 0.5891 MB / 344.3 MB, free: 12.61 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.86e-05/0.08183, allocations: 39.98 kB / 344.4 MB, free: 12.57 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009257/0.08275, allocations: 1.18 MB / 345.5 MB, free: 11.36 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.08275, allocations: 0 / 345.5 MB, free: 11.36 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001466/0.08422, allocations: 1.26 MB / 346.8 MB, free: 10.07 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003279/0.08455, allocations: 255 kB / 347.1 MB, free: 9.824 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000117/0.08466, allocations: 20 kB / 347.1 MB, free: 9.805 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003902/0.08505, allocations: 47.97 kB / 347.1 MB, free: 9.758 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001409/0.08519, allocations: 85.14 kB / 347.2 MB, free: 9.676 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.613e-05/0.08526, allocations: 43.97 kB / 347.2 MB, free: 9.633 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003736/0.08563, allocations: 0.5146 MB / 347.8 MB, free: 9.109 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.1e-07/0.08563, allocations: 0 / 347.8 MB, free: 9.109 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001459/0.08709, allocations: 0.874 MB / 348.6 MB, free: 8.234 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.0006657/0.08776, allocations: 469.8 kB / 349.1 MB, free: 7.766 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002238/0.09, allocations: 1.435 MB / 350.5 MB, free: 6.336 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.09, allocations: 0 / 350.5 MB, free: 6.336 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006205/0.09062, allocations: 451.8 kB / 351 MB, free: 5.895 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001401/0.09202, allocations: 0.6394 MB / 351.6 MB, free: 5.266 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003071/0.09509, allocations: 2.466 MB / 354.1 MB, free: 2.758 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002154/0.09531, allocations: 344.7 kB / 354.4 MB, free: 2.398 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0007196/0.09603, allocations: 295.3 kB / 354.7 MB, free: 2.105 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008775/0.09691, allocations: 0.572 MB / 355.3 MB, free: 1.531 MB / 330.7 MB Notification: Performance of SimCode: time 9.32e-07/0.09691, allocations: 3.938 kB / 355.3 MB, free: 1.527 MB / 330.7 MB Notification: Performance of Templates: time 0.1707/0.2676, allocations: 38.63 MB / 393.9 MB, free: 45.1 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; mkfifo Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe >> ../files/Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.sim & ./Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.ThreeTanks -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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: 4.147498514968902]