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.001911/0.001911, 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.002847/0.002847, allocations: 196.4 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.518/1.518, allocations: 205.1 MB / 222 MB, free: 4.992 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.001314/0.001314, allocations: 55.92 kB / 278 MB, free: 13.01 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2886/0.29, allocations: 46.63 MB / 324.7 MB, free: 1.824 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.03388/0.3239, allocations: 31.51 MB / 356.2 MB, free: 4.578 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01687/0.3408, allocations: 10.8 MB / 367 MB, free: 9.746 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002163/0.343, allocations: 47.62 kB / 367 MB, free: 9.699 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002009/0.3451, allocations: 421.7 kB / 367.4 MB, free: 9.285 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00716/0.3523, allocations: 1.739 MB / 369.2 MB, free: 7.539 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009284/0.3616, allocations: 2.303 MB / 371.5 MB, free: 5.23 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007308/0.3689, allocations: 5.21 MB / 376.7 MB, free: 8 kB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002392/0.3714, allocations: 1.02 MB / 377.7 MB, free: 14.97 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003874/0.3753, allocations: 1.304 MB / 379 MB, free: 13.66 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003434/0.3787, allocations: 1.417 MB / 380.4 MB, free: 12.24 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007829/0.3796, allocations: 88 kB / 380.5 MB, free: 12.16 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005328/0.3849, allocations: 1.993 MB / 382.5 MB, free: 10.16 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009034/0.3858, allocations: 0.5102 MB / 383 MB, free: 9.648 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001325/0.3872, allocations: 0.7464 MB / 383.8 MB, free: 8.898 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008035/0.3952, allocations: 3.257 MB / 387 MB, free: 5.633 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.624e-06/0.3953, allocations: 4 kB / 387 MB, free: 5.629 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.3953, allocations: 0 / 387 MB, free: 5.629 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.371e-05/0.3953, allocations: 0 / 387 MB, free: 5.629 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.006177/0.4015, allocations: 2.045 MB / 389.1 MB, free: 3.531 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.376e-05/0.4016, allocations: 12.03 kB / 389.1 MB, free: 3.52 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005896/0.4022, allocations: 158.2 kB / 389.2 MB, free: 3.363 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001787/0.404, allocations: 0.8979 MB / 390.1 MB, free: 2.422 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002186/0.4042, allocations: 238.5 kB / 390.4 MB, free: 2.156 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001953/0.4044, allocations: 103.8 kB / 390.5 MB, free: 2.055 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003185/0.4076, allocations: 1.798 MB / 392.3 MB, free: 204 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.996e-05/0.4077, allocations: 0 / 392.3 MB, free: 204 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001487/0.4078, allocations: 43.98 kB / 392.3 MB, free: 160 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001559/0.408, allocations: 106 kB / 392.4 MB, free: 52 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003078/0.4111, allocations: 1.776 MB / 394.2 MB, free: 14.26 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.01326/0.4243, allocations: 6.916 MB / 401.1 MB, free: 7.051 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002878/0.4273, allocations: 1.49 MB / 402.6 MB, free: 5.555 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001432/0.4287, allocations: 0.8822 MB / 403.5 MB, free: 4.672 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009836/0.4297, allocations: 0.649 MB / 404.1 MB, free: 3.895 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.578e-05/0.4298, allocations: 47.56 kB / 404.2 MB, free: 3.84 MB / 334.1 MB Notification: Performance of pre-optimization done (n=116): time 3.446e-06/0.4298, allocations: 0 / 404.2 MB, free: 3.84 MB / 334.1 MB Notification: Performance of matching and sorting (n=128): time 0.01846/0.4483, allocations: 6.621 MB / 410.8 MB, free: 13.1 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001279/0.4484, allocations: 175.5 kB / 411 MB, free: 12.89 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001901/0.4503, allocations: 1.096 MB / 412.1 MB, free: 11.78 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001757/0.4505, allocations: 53.7 kB / 412.1 MB, free: 11.72 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005162/0.4511, allocations: 0.5042 MB / 412.6 MB, free: 11.21 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005138/0.4516, allocations: 429.7 kB / 413 MB, free: 10.78 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006242/0.4522, allocations: 271.5 kB / 413.3 MB, free: 10.51 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000173/0.4524, allocations: 357.9 kB / 413.7 MB, free: 10.16 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001603/0.454, allocations: 0.8519 MB / 414.5 MB, free: 9.301 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001854/0.4559, allocations: 1.069 MB / 415.6 MB, free: 8.152 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003081/0.459, allocations: 1.812 MB / 417.4 MB, free: 6.277 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.949e-06/0.459, allocations: 4 kB / 417.4 MB, free: 6.273 MB / 350.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.005372/0.4644, allocations: 2.623 MB / 420 MB, free: 3.625 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.977e-05/0.4645, allocations: 8 kB / 420 MB, free: 3.617 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.087e-05/0.4645, allocations: 4 kB / 420 MB, free: 3.613 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003977/0.4685, allocations: 1.304 MB / 421.3 MB, free: 2.293 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001228/0.4697, allocations: 215.6 kB / 421.5 MB, free: 2.082 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009473/0.4792, allocations: 6.353 MB / 427.9 MB, free: 11.38 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002029/0.4813, allocations: 75.84 kB / 428 MB, free: 11.3 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00041/0.4817, allocations: 64.03 kB / 428 MB, free: 11.24 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002631/0.4844, allocations: 1.105 MB / 429.1 MB, free: 10.13 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001898/0.4863, allocations: 1.058 MB / 430.2 MB, free: 8.992 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003354/0.4897, allocations: 1.774 MB / 432 MB, free: 7.148 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.102e-05/0.4897, allocations: 4 kB / 432 MB, free: 7.145 MB / 366.1 MB Notification: Performance of matching and sorting (n=170) (initialization_lambda0): time 0.0054/0.4951, allocations: 2.491 MB / 434.5 MB, free: 4.629 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.38e-05/0.4952, allocations: 8.344 kB / 434.5 MB, free: 4.621 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.283e-05/0.4952, allocations: 15.94 kB / 434.5 MB, free: 4.605 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002717/0.4979, allocations: 1.015 MB / 435.5 MB, free: 3.574 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00111/0.499, allocations: 227.6 kB / 435.7 MB, free: 3.352 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006923/0.506, allocations: 6.088 MB / 441.8 MB, free: 12.92 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002013/0.508, allocations: 99.83 kB / 441.9 MB, free: 12.82 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003589/0.5084, allocations: 51.98 kB / 442 MB, free: 12.77 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.0008317/0.5093, allocations: 279.8 kB / 442.2 MB, free: 12.49 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006127/0.5099, allocations: 134.4 kB / 442.4 MB, free: 12.36 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006529/0.5164, allocations: 2.803 MB / 445.2 MB, free: 9.523 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-05/0.5165, allocations: 19.92 kB / 445.2 MB, free: 9.504 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.004e-05/0.5165, allocations: 4 kB / 445.2 MB, free: 9.5 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.973e-05/0.5165, allocations: 7.969 kB / 445.2 MB, free: 9.492 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00862/0.5252, allocations: 4.53 MB / 449.7 MB, free: 4.891 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.115e-05/0.5252, allocations: 3.984 kB / 449.7 MB, free: 4.887 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008769/0.5261, allocations: 159.7 kB / 449.9 MB, free: 4.73 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003694/0.5298, allocations: 1.303 MB / 451.2 MB, free: 3.414 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002434/0.5301, allocations: 39.92 kB / 451.2 MB, free: 3.375 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2309/0.761, allocations: 6.364 MB / 457.6 MB, free: 114 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.23e-06/0.7611, allocations: 4.406 kB / 457.6 MB, free: 114 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01123/0.7723, allocations: 3.953 MB / 461.6 MB, free: 113 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001464/0.7738, allocations: 425.9 kB / 462 MB, free: 112.8 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004456/0.7743, allocations: 30.11 kB / 462 MB, free: 112.8 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001734/0.7761, allocations: 83.66 kB / 462.1 MB, free: 112.7 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004967/0.7766, allocations: 142.2 kB / 462.2 MB, free: 112.7 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002292/0.7768, allocations: 51.22 kB / 462.3 MB, free: 112.7 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002074/0.7789, allocations: 0.7528 MB / 463 MB, free: 112.4 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.7789, allocations: 0 / 463 MB, free: 112.4 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.007276/0.7862, allocations: 1.053 MB / 464.1 MB, free: 112.3 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.003312/0.7896, allocations: 0.7336 MB / 464.8 MB, free: 112.2 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.01215/0.8017, allocations: 3.798 MB / 468.6 MB, free: 110.6 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.587e-05/0.8018, allocations: 0 / 468.6 MB, free: 110.6 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004749/0.8066, allocations: 1.422 MB / 470 MB, free: 109.7 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006051/0.8127, allocations: 0.6033 MB / 470.6 MB, free: 109.5 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0103/0.8231, allocations: 3.598 MB / 474.2 MB, free: 106.3 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001272/0.8244, allocations: 1.272 MB / 475.5 MB, free: 105 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.003676/0.8281, allocations: 0.5669 MB / 476.1 MB, free: 104.4 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006106/0.8287, allocations: 119.3 kB / 476.2 MB, free: 104.3 MB / 382.1 MB Notification: Performance of SimCode: time 1.343e-06/0.8288, allocations: 0 / 476.2 MB, free: 104.3 MB / 382.1 MB Notification: Performance of Templates: time 0.08366/0.9124, allocations: 44.3 MB / 0.5083 GB, free: 59.98 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)