Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.TanksWithOverflow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|lowerTank.level|lowerTank.medium.h|upperTank.level|upperTank.medium.h|hysteresis.y",fileNamePrefix="Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow") translateModel(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|lowerTank.level|lowerTank.medium.h|upperTank.level|upperTank.medium.h|hysteresis.y",fileNamePrefix="Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008741/0.0008743, allocations: 90.55 kB / 17.3 MB, free: 6.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008635/0.0008635, allocations: 177.4 kB / 18.21 MB, free: 5.539 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.57/1.57, allocations: 205.4 MB / 224.4 MB, free: 13.08 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.000483/0.0004836, allocations: 8.219 kB / 281.4 MB, free: 3.422 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1095/0.11, allocations: 47.58 MB / 329 MB, free: 3.762 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.04881/0.1588, allocations: 30.75 MB / 359.7 MB, free: 4.898 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02513/0.184, allocations: 10.64 MB / 370.3 MB, free: 10.23 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002767/0.1869, allocations: 43.62 kB / 370.4 MB, free: 10.19 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002341/0.1892, allocations: 417.7 kB / 370.8 MB, free: 9.781 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008301/0.1976, allocations: 1.743 MB / 372.5 MB, free: 8.031 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00828/0.2059, allocations: 2.307 MB / 374.8 MB, free: 5.719 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007467/0.2134, allocations: 5.191 MB / 380 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2264/0.4398, allocations: 1.008 MB / 381 MB, free: 11.76 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003937/0.4438, allocations: 1.292 MB / 382.3 MB, free: 11.76 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004574/0.4484, allocations: 1.402 MB / 383.7 MB, free: 11.76 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005891/0.449, allocations: 79.22 kB / 383.8 MB, free: 11.76 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006202/0.4553, allocations: 1.984 MB / 385.8 MB, free: 11.76 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009794/0.4563, allocations: 0.5005 MB / 386.3 MB, free: 11.76 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001455/0.4577, allocations: 0.752 MB / 387.1 MB, free: 11.55 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006312/0.464, allocations: 3.218 MB / 390.3 MB, free: 11.32 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.4641, allocations: 0 / 390.3 MB, free: 11.32 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.4641, allocations: 4.312 kB / 390.3 MB, free: 11.32 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.473e-05/0.4641, allocations: 1.094 kB / 390.3 MB, free: 11.32 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 271 * Number of variables: 271 Notification: Performance of Generate backend data structure: time 0.005142/0.4693, allocations: 1.774 MB / 392.1 MB, free: 10.36 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.924e-05/0.4693, allocations: 17.12 kB / 392.1 MB, free: 10.36 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005732/0.4699, allocations: 157.9 kB / 392.2 MB, free: 10.29 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001454/0.4714, allocations: 0.8979 MB / 393.1 MB, free: 9.953 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001595/0.4715, allocations: 240.8 kB / 393.4 MB, free: 9.793 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001993/0.4718, allocations: 97.5 kB / 393.5 MB, free: 9.793 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002891/0.4747, allocations: 1.794 MB / 395.2 MB, free: 9.617 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.985e-05/0.4747, allocations: 6.141 kB / 395.3 MB, free: 9.617 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001513/0.4749, allocations: 46.58 kB / 395.3 MB, free: 9.617 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001413/0.475, allocations: 107.2 kB / 395.4 MB, free: 9.609 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002865/0.4779, allocations: 1.771 MB / 397.2 MB, free: 9.594 MB / 318.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01036/0.4882, allocations: 6.955 MB / 404.1 MB, free: 7.074 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00233/0.4906, allocations: 1.496 MB / 405.6 MB, free: 6.824 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001175/0.4918, allocations: 0.8802 MB / 406.5 MB, free: 6.688 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006922/0.4925, allocations: 0.663 MB / 407.2 MB, free: 5.996 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.797e-05/0.4925, allocations: 51.95 kB / 407.2 MB, free: 5.953 MB / 318.1 MB Notification: Performance of pre-optimization done (n=116): time 2.465e-06/0.4925, allocations: 0 / 407.2 MB, free: 5.953 MB / 318.1 MB Notification: Performance of matching and sorting (n=128): time 0.01497/0.5075, allocations: 6.67 MB / 413.9 MB, free: 4.016 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.403e-05/0.5076, allocations: 174.7 kB / 414.1 MB, free: 3.828 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001329/0.5089, allocations: 1.095 MB / 415.2 MB, free: 3.402 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001364/0.5091, allocations: 52.7 kB / 415.2 MB, free: 3.352 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003111/0.5094, allocations: 0.4917 MB / 415.7 MB, free: 2.914 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002992/0.5097, allocations: 435 kB / 416.1 MB, free: 2.551 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000189/0.5099, allocations: 122.5 kB / 416.2 MB, free: 2.469 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.125e-05/0.51, allocations: 360.6 kB / 416.6 MB, free: 2.125 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001229/0.5112, allocations: 0.8448 MB / 417.4 MB, free: 1.68 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00131/0.5126, allocations: 1.076 MB / 418.5 MB, free: 0.9766 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002528/0.5151, allocations: 1.804 MB / 420.3 MB, free: 15.37 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/0.5151, allocations: 4 kB / 420.3 MB, free: 15.36 MB / 334.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.004602/0.5197, allocations: 2.619 MB / 422.9 MB, free: 12.76 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000204/0.5199, allocations: 237 kB / 423.2 MB, free: 12.46 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.612e-05/0.52, allocations: 8 kB / 423.2 MB, free: 12.46 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003729/0.5237, allocations: 1.305 MB / 424.5 MB, free: 11.15 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001075/0.5248, allocations: 213.4 kB / 424.7 MB, free: 10.96 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007551/0.5324, allocations: 6.351 MB / 431 MB, free: 4.301 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001977/0.5344, allocations: 99.83 kB / 431.1 MB, free: 4.203 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000179/0.5346, allocations: 55.98 kB / 431.2 MB, free: 4.148 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.257e-05/0.5346, allocations: 4 kB / 431.2 MB, free: 4.145 MB / 334.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004376/0.539, allocations: 2.359 MB / 433.6 MB, free: 1.805 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.198e-05/0.539, allocations: 11.88 kB / 433.6 MB, free: 1.797 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002364/0.5414, allocations: 1.021 MB / 434.6 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009545/0.5423, allocations: 224.9 kB / 434.8 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006226/0.5486, allocations: 6.113 MB / 440.9 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001789/0.5504, allocations: 95.84 kB / 441 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001631/0.5505, allocations: 51.98 kB / 441.1 MB, free: 10 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 12 (hysteresis.y,$PRE.hysteresis.y,lowerTank.inFlow[2],lowerTank.inFlow[1],lowerTank.regularFlow[2],lowerTank.regularFlow[1],upperTank.inFlow[3],upperTank.inFlow[2],upperTank.inFlow[1],upperTank.regularFlow[3],upperTank.regularFlow[2],upperTank.regularFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (126): * Single equations (assignments): 121 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,6,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(2,3), (4,11), (4,11)} Notification: Performance of prepare postOptimizeDAE: time 0.001066/0.5516, allocations: 459.1 kB / 441.5 MB, free: 9.555 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002691/0.5519, allocations: 138.4 kB / 441.7 MB, free: 9.418 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004995/0.5569, allocations: 2.81 MB / 444.5 MB, free: 6.605 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.78e-05/0.5569, allocations: 12 kB / 444.5 MB, free: 6.594 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.955e-06/0.5569, allocations: 4 kB / 444.5 MB, free: 6.59 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.876e-05/0.557, allocations: 7.969 kB / 444.5 MB, free: 6.582 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007414/0.5644, allocations: 4.533 MB / 449 MB, free: 2.016 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.031e-06/0.5644, allocations: 0 / 449 MB, free: 2.016 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007815/0.5652, allocations: 162.2 kB / 449.2 MB, free: 1.871 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003317/0.5685, allocations: 1.303 MB / 450.5 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001302/0.5687, allocations: 35.97 kB / 450.5 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00661/0.5753, allocations: 6.391 MB / 456.9 MB, free: 9.82 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.5753, allocations: 0 / 456.9 MB, free: 9.82 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00671/0.582, allocations: 3.948 MB / 460.9 MB, free: 5.855 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001155/0.5832, allocations: 451 kB / 461.3 MB, free: 5.395 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000237/0.5835, allocations: 26.89 kB / 461.3 MB, free: 5.371 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001159/0.5846, allocations: 95.88 kB / 461.4 MB, free: 5.277 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004154/0.585, allocations: 145.1 kB / 461.6 MB, free: 5.133 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000151/0.5852, allocations: 55.95 kB / 461.6 MB, free: 5.078 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001123/0.5863, allocations: 0.7454 MB / 462.4 MB, free: 4.324 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.6e-07/0.5863, allocations: 0 / 462.4 MB, free: 4.324 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.004018/0.5904, allocations: 1.058 MB / 463.4 MB, free: 3.266 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (upperTank.level,upperTank.medium.T,lowerTank.level,lowerTank.medium.T) * Number of discrete variables: 11 (upperTank.regularFlow[1],upperTank.regularFlow[2],upperTank.regularFlow[3],upperTank.inFlow[1],upperTank.inFlow[2],upperTank.inFlow[3],lowerTank.regularFlow[1],lowerTank.regularFlow[2],lowerTank.inFlow[1],lowerTank.inFlow[2],hysteresis.y) * Number of discrete states: 1 (hysteresis.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (97): * Single equations (assignments): 88 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,6,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(2,4), (4,14), (4,14)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002362/0.5927, allocations: 0.7331 MB / 464.1 MB, free: 2.586 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.007942/0.6007, allocations: 3.801 MB / 467.9 MB, free: 14.78 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.071e-05/0.6007, allocations: 4.125 kB / 468 MB, free: 14.77 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00306/0.6038, allocations: 1.428 MB / 469.4 MB, free: 13.34 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003399/0.6072, allocations: 0.5845 MB / 470 MB, free: 12.76 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006562/0.6138, allocations: 3.71 MB / 473.7 MB, free: 9.031 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009955/0.6148, allocations: 1.268 MB / 474.9 MB, free: 7.734 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002251/0.6171, allocations: 0.5757 MB / 475.5 MB, free: 7.16 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003732/0.6175, allocations: 134.9 kB / 475.7 MB, free: 7.031 MB / 382.1 MB Notification: Performance of SimCode: time 1.363e-06/0.6175, allocations: 0 / 475.7 MB, free: 7.031 MB / 382.1 MB Notification: Performance of Templates: time 0.07369/0.6912, allocations: 43.84 MB / 0.5073 GB, free: 11.28 MB / 430.1 MB make -j1 -f Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.makefile (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.sim & ./Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Fluid/Examples/Tanks/TanksWithOverflow/TanksWithOverflow.csv","../files/Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches