Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.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.2.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow") translateModel(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="Modelica_3.2.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.001466/0.001465, allocations: 107.3 kB / 15.33 MB, free: 0.5078 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.001895/0.001895, allocations: 190.5 kB / 16.25 MB, free: 6.145 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.634/1.634, allocations: 205.1 MB / 222.1 MB, free: 4.684 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.001428/0.001428, allocations: 47.94 kB / 278.2 MB, free: 12.66 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2601/0.2615, allocations: 46.62 MB / 324.8 MB, free: 1.898 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.02973/0.2913, allocations: 31.19 MB / 356 MB, free: 4.816 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0152/0.3065, allocations: 10.46 MB / 366.5 MB, free: 10.33 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002919/0.3095, allocations: 47.62 kB / 366.5 MB, free: 10.28 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001941/0.3115, allocations: 429.7 kB / 367 MB, free: 9.859 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008118/0.3197, allocations: 1.731 MB / 368.7 MB, free: 8.121 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008484/0.3282, allocations: 2.514 MB / 371.2 MB, free: 5.602 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005365/0.3335, allocations: 3.701 MB / 374.9 MB, free: 1.891 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002317/0.3359, allocations: 1.15 MB / 376.1 MB, free: 0.7266 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003951/0.3398, allocations: 1.499 MB / 377.6 MB, free: 15.22 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002955/0.3428, allocations: 1.487 MB / 379 MB, free: 13.73 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000724/0.3436, allocations: 156 kB / 379.2 MB, free: 13.57 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005157/0.3487, allocations: 2.071 MB / 381.3 MB, free: 11.5 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001177/0.3499, allocations: 0.5766 MB / 381.8 MB, free: 10.92 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002203/0.3522, allocations: 0.8206 MB / 382.7 MB, free: 10.1 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007071/0.3593, allocations: 3.323 MB / 386 MB, free: 6.766 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.628e-06/0.3593, allocations: 0 / 386 MB, free: 6.766 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.3593, allocations: 0 / 386 MB, free: 6.766 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.094e-05/0.3593, allocations: 3.984 kB / 386 MB, free: 6.762 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.005414/0.3648, allocations: 2.033 MB / 388 MB, free: 4.676 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.401e-05/0.3648, allocations: 12.03 kB / 388 MB, free: 4.664 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005511/0.3654, allocations: 166.2 kB / 388.2 MB, free: 4.5 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001405/0.3668, allocations: 0.894 MB / 389.1 MB, free: 3.562 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001858/0.367, allocations: 238.4 kB / 389.3 MB, free: 3.297 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001874/0.3672, allocations: 103.9 kB / 389.4 MB, free: 3.195 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002995/0.3702, allocations: 1.798 MB / 391.2 MB, free: 1.34 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.148e-05/0.3702, allocations: 8 kB / 391.2 MB, free: 1.332 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001446/0.3704, allocations: 35.98 kB / 391.3 MB, free: 1.297 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001413/0.3705, allocations: 106 kB / 391.4 MB, free: 1.191 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002923/0.3735, allocations: 1.776 MB / 393.1 MB, free: 15.4 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.013/0.3865, allocations: 6.92 MB / 400.1 MB, free: 8.188 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003002/0.3895, allocations: 1.49 MB / 401.6 MB, free: 6.688 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001318/0.3909, allocations: 0.89 MB / 402.4 MB, free: 5.797 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009458/0.3918, allocations: 0.6451 MB / 403.1 MB, free: 5.023 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.171e-05/0.3919, allocations: 43.56 kB / 403.1 MB, free: 4.973 MB / 334.1 MB Notification: Performance of pre-optimization done (n=116): time 4.117e-06/0.3919, allocations: 0 / 403.1 MB, free: 4.973 MB / 334.1 MB Notification: Performance of matching and sorting (n=128): time 0.01688/0.4088, allocations: 6.621 MB / 409.8 MB, free: 14.23 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001273/0.4089, allocations: 171.5 kB / 409.9 MB, free: 14.02 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00163/0.4106, allocations: 1.099 MB / 411 MB, free: 12.9 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001716/0.4108, allocations: 53.64 kB / 411.1 MB, free: 12.84 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004181/0.4112, allocations: 0.5003 MB / 411.6 MB, free: 12.34 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004121/0.4116, allocations: 441.7 kB / 412 MB, free: 11.9 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004917/0.4121, allocations: 263.5 kB / 412.3 MB, free: 11.64 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001677/0.4123, allocations: 365.9 kB / 412.6 MB, free: 11.28 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001325/0.4136, allocations: 0.8479 MB / 413.5 MB, free: 10.43 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001541/0.4152, allocations: 1.069 MB / 414.5 MB, free: 9.281 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00277/0.418, allocations: 1.816 MB / 416.4 MB, free: 7.402 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.81e-06/0.418, allocations: 0 / 416.4 MB, free: 7.402 MB / 350.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.00469/0.4227, allocations: 2.623 MB / 419 MB, free: 4.754 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.825e-05/0.4227, allocations: 8 kB / 419 MB, free: 4.746 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.585e-05/0.4227, allocations: 4 kB / 419 MB, free: 4.742 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003589/0.4263, allocations: 1.308 MB / 420.3 MB, free: 3.418 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001074/0.4274, allocations: 215.6 kB / 420.5 MB, free: 3.207 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006973/0.4344, allocations: 6.715 MB / 427.2 MB, free: 12.13 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001727/0.4362, allocations: 87.84 kB / 427.3 MB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000176/0.4364, allocations: 59.97 kB / 427.4 MB, free: 11.99 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002038/0.4384, allocations: 1.101 MB / 428.5 MB, free: 10.88 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001562/0.44, allocations: 1.066 MB / 429.5 MB, free: 9.738 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00267/0.4427, allocations: 1.771 MB / 431.3 MB, free: 7.898 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.331e-06/0.4427, allocations: 4 kB / 431.3 MB, free: 7.895 MB / 366.1 MB Notification: Performance of matching and sorting (n=170) (initialization_lambda0): time 0.004766/0.4475, allocations: 2.499 MB / 433.8 MB, free: 5.371 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.068e-05/0.4475, allocations: 8 kB / 433.8 MB, free: 5.363 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.974e-05/0.4475, allocations: 4 kB / 433.8 MB, free: 5.359 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002479/0.45, allocations: 1.027 MB / 434.8 MB, free: 4.316 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001053/0.4511, allocations: 235.6 kB / 435.1 MB, free: 4.086 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006353/0.4574, allocations: 6.457 MB / 441.5 MB, free: 13.27 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001738/0.4592, allocations: 96.02 kB / 441.6 MB, free: 13.18 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001783/0.4594, allocations: 63.97 kB / 441.7 MB, free: 13.11 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.0006548/0.4601, allocations: 256 kB / 441.9 MB, free: 12.86 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000405/0.4605, allocations: 138.5 kB / 442.1 MB, free: 12.72 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005583/0.4661, allocations: 2.803 MB / 444.9 MB, free: 9.887 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.962e-05/0.4661, allocations: 12 kB / 444.9 MB, free: 9.875 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.997e-06/0.4661, allocations: 11.88 kB / 444.9 MB, free: 9.863 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.505e-05/0.4661, allocations: 7.969 kB / 444.9 MB, free: 9.855 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007181/0.4733, allocations: 4.526 MB / 449.4 MB, free: 5.262 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.562e-06/0.4734, allocations: 4 kB / 449.4 MB, free: 5.258 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007802/0.4742, allocations: 155.8 kB / 449.6 MB, free: 5.105 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003096/0.4773, allocations: 1.303 MB / 450.9 MB, free: 3.789 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000133/0.4774, allocations: 39.97 kB / 450.9 MB, free: 3.75 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2382/0.7156, allocations: 6.739 MB / 457.7 MB, free: 113.8 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.473e-06/0.7157, allocations: 1.219 kB / 457.7 MB, free: 113.8 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007774/0.7235, allocations: 3.947 MB / 461.6 MB, free: 112.8 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001076/0.7246, allocations: 428.7 kB / 462 MB, free: 112.6 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003125/0.7249, allocations: 30.17 kB / 462.1 MB, free: 112.6 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001189/0.7261, allocations: 88.05 kB / 462.2 MB, free: 112.6 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003887/0.7265, allocations: 140.1 kB / 462.3 MB, free: 112.6 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001522/0.7267, allocations: 53.55 kB / 462.3 MB, free: 112.5 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001145/0.7278, allocations: 0.7483 MB / 463.1 MB, free: 112.2 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.7278, allocations: 0 / 463.1 MB, free: 112.2 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003332/0.7312, allocations: 1.055 MB / 464.1 MB, free: 112.1 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.001724/0.7329, allocations: 0.7279 MB / 464.9 MB, free: 112 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.008069/0.741, allocations: 4.391 MB / 469.3 MB, free: 110.4 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.182e-06/0.741, allocations: 0.875 kB / 469.3 MB, free: 110.4 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002616/0.7436, allocations: 1.437 MB / 470.7 MB, free: 109.5 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002724/0.7464, allocations: 0.6286 MB / 471.3 MB, free: 108.9 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005624/0.752, allocations: 3.593 MB / 474.9 MB, free: 105.5 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005865/0.7526, allocations: 1.266 MB / 476.2 MB, free: 104.3 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001784/0.7544, allocations: 0.5807 MB / 476.8 MB, free: 103.7 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003176/0.7547, allocations: 127.4 kB / 476.9 MB, free: 103.5 MB / 382.1 MB Notification: Performance of SimCode: time 1.312e-06/0.7548, allocations: 0 / 476.9 MB, free: 103.5 MB / 382.1 MB Notification: Performance of Templates: time 0.05744/0.8122, allocations: 46.17 MB / 0.5108 GB, free: 57.33 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.makefile (rm -f Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; mkfifo Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe >> ../files/Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.sim & ./Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe 2>&1)