Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_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="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow") translateModel(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="Modelica_3.1_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.001552/0.001551, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.002132/0.002132, allocations: 196.7 kB / 16.14 MB, free: 6.707 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.553/1.553, allocations: 205.1 MB / 222 MB, free: 5.008 MB / 174.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.001267/0.001267, allocations: 47.94 kB / 278 MB, free: 13.02 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2597/0.261, allocations: 46.63 MB / 324.7 MB, free: 1.953 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.03103/0.2921, allocations: 31.51 MB / 356.2 MB, free: 4.707 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01633/0.3085, allocations: 10.81 MB / 367 MB, free: 9.867 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003455/0.312, allocations: 47.62 kB / 367 MB, free: 9.82 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001682/0.3138, allocations: 409.8 kB / 367.4 MB, free: 9.418 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005193/0.319, allocations: 1.75 MB / 369.2 MB, free: 7.66 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007392/0.3264, allocations: 2.307 MB / 371.5 MB, free: 5.348 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005963/0.3324, allocations: 5.191 MB / 376.7 MB, free: 148 kB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001588/0.334, allocations: 1.028 MB / 377.7 MB, free: 15.1 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002637/0.3366, allocations: 1.312 MB / 379 MB, free: 13.79 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002093/0.3388, allocations: 1.421 MB / 380.4 MB, free: 12.36 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002687/0.339, allocations: 84 kB / 380.5 MB, free: 12.28 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004744/0.3438, allocations: 1.997 MB / 382.5 MB, free: 10.28 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008041/0.3446, allocations: 0.5102 MB / 383 MB, free: 9.766 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001134/0.3458, allocations: 0.7425 MB / 383.8 MB, free: 9.02 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005696/0.3515, allocations: 3.253 MB / 387 MB, free: 5.758 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.672e-06/0.3515, allocations: 3.984 kB / 387 MB, free: 5.754 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.3515, allocations: 4 kB / 387 MB, free: 5.75 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.848e-05/0.3515, allocations: 0 / 387 MB, free: 5.75 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.005552/0.3571, allocations: 2.041 MB / 389.1 MB, free: 3.656 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.552e-05/0.3572, allocations: 8.031 kB / 389.1 MB, free: 3.648 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005659/0.3577, allocations: 166.2 kB / 389.3 MB, free: 3.484 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001412/0.3592, allocations: 0.8979 MB / 390.1 MB, free: 2.543 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001941/0.3594, allocations: 238.5 kB / 390.4 MB, free: 2.277 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001915/0.3596, allocations: 103.9 kB / 390.5 MB, free: 2.176 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002782/0.3624, allocations: 1.798 MB / 392.3 MB, free: 328 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.808e-05/0.3624, allocations: 4 kB / 392.3 MB, free: 324 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001427/0.3626, allocations: 39.98 kB / 392.3 MB, free: 284 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001259/0.3627, allocations: 105.9 kB / 392.4 MB, free: 176 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002837/0.3655, allocations: 1.776 MB / 394.2 MB, free: 14.39 MB / 334.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.01174/0.3773, allocations: 6.917 MB / 401.1 MB, free: 7.172 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002654/0.38, allocations: 1.493 MB / 402.6 MB, free: 5.672 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001426/0.3814, allocations: 0.8822 MB / 403.5 MB, free: 4.789 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009405/0.3824, allocations: 0.6412 MB / 404.1 MB, free: 4.02 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.164e-05/0.3824, allocations: 51.56 kB / 404.2 MB, free: 3.961 MB / 334.1 MB Notification: Performance of pre-optimization done (n=116): time 2.815e-06/0.3824, allocations: 0 / 404.2 MB, free: 3.961 MB / 334.1 MB Notification: Performance of matching and sorting (n=128): time 0.01685/0.3993, allocations: 6.613 MB / 410.8 MB, free: 13.22 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001051/0.3994, allocations: 175.5 kB / 411 MB, free: 13.02 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00155/0.401, allocations: 1.099 MB / 412.1 MB, free: 11.9 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001447/0.4011, allocations: 53.64 kB / 412.1 MB, free: 11.84 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004823/0.4016, allocations: 0.5003 MB / 412.6 MB, free: 11.34 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004872/0.4021, allocations: 433.8 kB / 413 MB, free: 10.91 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005604/0.4027, allocations: 259.5 kB / 413.3 MB, free: 10.65 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001833/0.4029, allocations: 369.9 kB / 413.7 MB, free: 10.28 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00139/0.4043, allocations: 0.8557 MB / 414.5 MB, free: 9.422 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001513/0.4058, allocations: 1.065 MB / 415.6 MB, free: 8.277 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002791/0.4086, allocations: 1.819 MB / 417.4 MB, free: 6.395 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.141e-06/0.4086, allocations: 4 kB / 417.4 MB, free: 6.391 MB / 350.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.004803/0.4134, allocations: 2.611 MB / 420 MB, free: 3.754 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.895e-05/0.4135, allocations: 8.344 kB / 420 MB, free: 3.746 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.478e-05/0.4135, allocations: 11.94 kB / 420 MB, free: 3.734 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003553/0.4171, allocations: 1.304 MB / 421.3 MB, free: 2.414 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009339/0.418, allocations: 211.7 kB / 421.5 MB, free: 2.207 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006995/0.425, allocations: 6.341 MB / 427.9 MB, free: 11.52 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00156/0.4266, allocations: 95.89 kB / 428 MB, free: 11.42 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001558/0.4268, allocations: 55.97 kB / 428 MB, free: 11.37 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001917/0.4287, allocations: 1.109 MB / 429.1 MB, free: 10.25 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001663/0.4304, allocations: 1.058 MB / 430.2 MB, free: 9.113 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002758/0.4331, allocations: 1.778 MB / 432 MB, free: 7.266 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.847e-06/0.4332, allocations: 0 / 432 MB, free: 7.266 MB / 366.1 MB Notification: Performance of matching and sorting (n=170) (initialization_lambda0): time 0.004451/0.4376, allocations: 2.491 MB / 434.5 MB, free: 4.75 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/0.4377, allocations: 11.94 kB / 434.5 MB, free: 4.738 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.608e-06/0.4377, allocations: 7.984 kB / 434.5 MB, free: 4.73 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002454/0.4401, allocations: 1.023 MB / 435.5 MB, free: 3.691 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001068/0.4412, allocations: 231.6 kB / 435.7 MB, free: 3.465 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006186/0.4474, allocations: 6.088 MB / 441.8 MB, free: 13.03 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00168/0.4491, allocations: 87.78 kB / 441.9 MB, free: 12.95 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001904/0.4493, allocations: 63.97 kB / 442 MB, free: 12.88 MB / 382.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.0005849/0.4499, allocations: 271.8 kB / 442.2 MB, free: 12.61 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004358/0.4504, allocations: 134.4 kB / 442.4 MB, free: 12.48 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005536/0.4559, allocations: 2.799 MB / 445.2 MB, free: 9.648 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.168e-05/0.456, allocations: 27.92 kB / 445.2 MB, free: 9.621 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.456, allocations: 0 / 445.2 MB, free: 9.621 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.247e-05/0.456, allocations: 3.984 kB / 445.2 MB, free: 9.617 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008455/0.4645, allocations: 4.53 MB / 449.7 MB, free: 5.016 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.06e-05/0.4645, allocations: 0 / 449.7 MB, free: 5.016 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008115/0.4653, allocations: 159.7 kB / 449.9 MB, free: 4.859 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003484/0.4688, allocations: 1.307 MB / 451.2 MB, free: 3.539 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001841/0.469, allocations: 35.97 kB / 451.2 MB, free: 3.504 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2419/0.7109, allocations: 6.365 MB / 457.6 MB, free: 114.1 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.317e-06/0.7109, allocations: 0.5312 kB / 457.6 MB, free: 114.1 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007451/0.7184, allocations: 3.953 MB / 461.6 MB, free: 113.1 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009845/0.7194, allocations: 424.2 kB / 462 MB, free: 112.9 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002691/0.7197, allocations: 33.95 kB / 462 MB, free: 112.8 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001106/0.7208, allocations: 90.09 kB / 462.1 MB, free: 112.8 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003473/0.7212, allocations: 141 kB / 462.2 MB, free: 112.8 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001344/0.7213, allocations: 52.22 kB / 462.3 MB, free: 112.8 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001001/0.7223, allocations: 0.7501 MB / 463 MB, free: 112.5 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.7223, allocations: 0 / 463 MB, free: 112.5 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003132/0.7255, allocations: 1.057 MB / 464.1 MB, free: 112.4 MB / 382.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.001695/0.7272, allocations: 0.7299 MB / 464.8 MB, free: 112.3 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00703/0.7342, allocations: 3.802 MB / 468.6 MB, free: 110.7 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 9.067e-06/0.7343, allocations: 0 / 468.6 MB, free: 110.7 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002702/0.737, allocations: 1.424 MB / 470 MB, free: 109.9 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002942/0.7399, allocations: 0.591 MB / 470.6 MB, free: 109.6 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005837/0.7458, allocations: 3.601 MB / 474.2 MB, free: 106.5 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005942/0.7464, allocations: 1.271 MB / 475.5 MB, free: 105.2 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001778/0.7482, allocations: 0.5721 MB / 476.1 MB, free: 104.7 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003457/0.7485, allocations: 119.4 kB / 476.2 MB, free: 104.5 MB / 382.1 MB Notification: Performance of SimCode: time 1.072e-06/0.7485, allocations: 0 / 476.2 MB, free: 104.5 MB / 382.1 MB Notification: Performance of Templates: time 0.05241/0.801, allocations: 44.3 MB / 0.5083 GB, free: 60.19 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.makefile (rm -f Modelica_3.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; mkfifo Modelica_3.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe >> ../files/Modelica_3.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.sim & ./Modelica_3.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe 2>&1)