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.001324/0.001324, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001142/0.001142, allocations: 195 kB / 16.53 MB, free: 6.391 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.449/1.449, allocations: 205.1 MB / 222.4 MB, free: 4.602 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.001397/0.001397, allocations: 51.94 kB / 278.7 MB, free: 12.38 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2483/0.2497, allocations: 46.64 MB / 325.3 MB, free: 1.836 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.03361/0.2834, allocations: 30.16 MB / 355.5 MB, free: 5.668 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01568/0.2991, allocations: 10.25 MB / 365.7 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001529/0.3007, allocations: 35.75 kB / 365.8 MB, free: 11.35 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001496/0.3022, allocations: 481 kB / 366.2 MB, free: 10.88 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004881/0.3071, allocations: 1.851 MB / 368.1 MB, free: 9.02 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006774/0.3139, allocations: 2.754 MB / 370.8 MB, free: 6.258 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00443/0.3184, allocations: 3.685 MB / 374.5 MB, free: 2.562 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001864/0.3202, allocations: 1.146 MB / 375.7 MB, free: 1.402 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003124/0.3234, allocations: 1.507 MB / 377.2 MB, free: 15.89 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002459/0.3259, allocations: 1.421 MB / 378.6 MB, free: 14.46 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003133/0.3262, allocations: 152 kB / 378.7 MB, free: 14.31 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004476/0.3307, allocations: 2.071 MB / 380.8 MB, free: 12.24 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006961/0.3314, allocations: 0.5728 MB / 381.4 MB, free: 11.66 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001127/0.3325, allocations: 0.8089 MB / 382.2 MB, free: 10.85 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005961/0.3385, allocations: 3.316 MB / 385.5 MB, free: 7.527 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.775e-06/0.3385, allocations: 0 / 385.5 MB, free: 7.527 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.3386, allocations: 3.938 kB / 385.5 MB, free: 7.523 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.148e-05/0.3386, allocations: 0 / 385.5 MB, free: 7.523 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.006246/0.3449, allocations: 2.03 MB / 387.5 MB, free: 5.441 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.443e-05/0.3449, allocations: 12.02 kB / 387.6 MB, free: 5.43 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007542/0.3457, allocations: 162.2 kB / 387.7 MB, free: 5.27 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001733/0.3475, allocations: 0.9017 MB / 388.6 MB, free: 4.324 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000256/0.3477, allocations: 238.5 kB / 388.8 MB, free: 4.059 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002115/0.348, allocations: 99.98 kB / 388.9 MB, free: 3.961 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003012/0.351, allocations: 1.798 MB / 390.7 MB, free: 2.105 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.035e-05/0.351, allocations: 7.938 kB / 390.7 MB, free: 2.098 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001574/0.3512, allocations: 43.97 kB / 390.8 MB, free: 2.055 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001589/0.3514, allocations: 102 kB / 390.9 MB, free: 1.953 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002989/0.3544, allocations: 1.776 MB / 392.7 MB, free: 172 kB / 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.01215/0.3665, allocations: 6.932 MB / 399.6 MB, free: 8.938 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002708/0.3693, allocations: 1.49 MB / 401.1 MB, free: 7.434 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001414/0.3707, allocations: 0.8783 MB / 402 MB, free: 6.551 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009034/0.3716, allocations: 0.6451 MB / 402.6 MB, free: 5.777 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.385e-05/0.3717, allocations: 47.56 kB / 402.7 MB, free: 5.723 MB / 334.1 MB Notification: Performance of pre-optimization done (n=116): time 3.988e-06/0.3717, allocations: 0 / 402.7 MB, free: 5.723 MB / 334.1 MB Notification: Performance of matching and sorting (n=128): time 0.01763/0.3893, allocations: 6.628 MB / 409.3 MB, free: 14.98 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001195/0.3895, allocations: 175.5 kB / 409.5 MB, free: 14.77 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001794/0.3913, allocations: 1.096 MB / 410.6 MB, free: 13.66 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001594/0.3915, allocations: 49.7 kB / 410.6 MB, free: 13.6 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004669/0.392, allocations: 0.4927 MB / 411.1 MB, free: 13.1 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004768/0.3924, allocations: 441.7 kB / 411.5 MB, free: 12.66 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005345/0.393, allocations: 263.5 kB / 411.8 MB, free: 12.4 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001586/0.3932, allocations: 361.9 kB / 412.1 MB, free: 12.04 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001475/0.3946, allocations: 0.848 MB / 413 MB, free: 11.19 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001645/0.3963, allocations: 1.08 MB / 414.1 MB, free: 10.04 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002996/0.3993, allocations: 1.812 MB / 415.9 MB, free: 8.16 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.755e-06/0.3993, allocations: 4 kB / 415.9 MB, free: 8.156 MB / 350.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.00502/0.4044, allocations: 2.619 MB / 418.5 MB, free: 5.512 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.098e-05/0.4044, allocations: 4 kB / 418.5 MB, free: 5.508 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.961e-05/0.4044, allocations: 8.312 kB / 418.5 MB, free: 5.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003812/0.4083, allocations: 1.319 MB / 419.8 MB, free: 4.164 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001103/0.4094, allocations: 211.7 kB / 420 MB, free: 3.957 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007139/0.4165, allocations: 6.715 MB / 426.8 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001508/0.4181, allocations: 63.95 kB / 426.8 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003213/0.4184, allocations: 59.97 kB / 426.9 MB, free: 12.76 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002416/0.4209, allocations: 1.101 MB / 428 MB, free: 11.66 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001811/0.4227, allocations: 1.07 MB / 429 MB, free: 10.51 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003065/0.4258, allocations: 1.775 MB / 430.8 MB, free: 8.664 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.254e-05/0.4258, allocations: 4 kB / 430.8 MB, free: 8.66 MB / 366.1 MB Notification: Performance of matching and sorting (n=170) (initialization_lambda0): time 0.005035/0.4309, allocations: 2.494 MB / 433.3 MB, free: 6.141 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.971e-05/0.4309, allocations: 4 kB / 433.3 MB, free: 6.137 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.134e-05/0.4309, allocations: 8 kB / 433.3 MB, free: 6.129 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002525/0.4334, allocations: 1.023 MB / 434.4 MB, free: 5.09 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001067/0.4345, allocations: 235.6 kB / 434.6 MB, free: 4.859 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007387/0.4419, allocations: 6.457 MB / 441 MB, free: 14.04 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001683/0.4437, allocations: 76 kB / 441.1 MB, free: 13.97 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000309/0.444, allocations: 55.97 kB / 441.2 MB, free: 13.91 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.0007102/0.4447, allocations: 272 kB / 441.4 MB, free: 13.64 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005394/0.4453, allocations: 138.3 kB / 441.6 MB, free: 13.5 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006198/0.4515, allocations: 2.803 MB / 444.4 MB, free: 10.67 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.135e-05/0.4515, allocations: 20 kB / 444.4 MB, free: 10.65 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.429e-05/0.4515, allocations: 3.938 kB / 444.4 MB, free: 10.65 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.151e-05/0.4516, allocations: 7.969 kB / 444.4 MB, free: 10.64 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008455/0.46, allocations: 4.526 MB / 448.9 MB, free: 6.043 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.061e-05/0.4601, allocations: 4 kB / 448.9 MB, free: 6.039 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008544/0.4609, allocations: 155.8 kB / 449.1 MB, free: 5.887 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003331/0.4643, allocations: 1.295 MB / 450.4 MB, free: 4.578 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001383/0.4644, allocations: 39.97 kB / 450.4 MB, free: 4.539 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.211/0.6755, allocations: 6.731 MB / 457.2 MB, free: 114.7 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.6755, allocations: 4.125 kB / 457.2 MB, free: 114.7 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008962/0.6845, allocations: 3.949 MB / 461.1 MB, free: 113.8 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001124/0.6857, allocations: 430.3 kB / 461.5 MB, free: 113.6 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004735/0.6862, allocations: 30.56 kB / 461.6 MB, free: 113.6 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001345/0.6875, allocations: 62.84 kB / 461.6 MB, free: 113.5 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004133/0.688, allocations: 150.2 kB / 461.8 MB, free: 113.5 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001704/0.6882, allocations: 48.09 kB / 461.8 MB, free: 113.5 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001389/0.6896, allocations: 0.7477 MB / 462.6 MB, free: 113.2 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.6896, allocations: 0 / 462.6 MB, free: 113.2 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.004029/0.6936, allocations: 1.059 MB / 463.6 MB, free: 113.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.002272/0.6959, allocations: 0.7338 MB / 464.4 MB, free: 113 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.009253/0.7052, allocations: 4.386 MB / 468.7 MB, free: 111.4 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.364e-06/0.7052, allocations: 0 / 468.7 MB, free: 111.4 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003047/0.7083, allocations: 1.44 MB / 470.2 MB, free: 110.6 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003392/0.7117, allocations: 0.6276 MB / 470.8 MB, free: 110 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006414/0.7181, allocations: 3.136 MB / 473.9 MB, free: 107 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009817/0.7191, allocations: 1.27 MB / 475.2 MB, free: 105.8 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002053/0.7212, allocations: 0.5807 MB / 475.8 MB, free: 105.2 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003792/0.7216, allocations: 119.4 kB / 475.9 MB, free: 105.1 MB / 382.1 MB Notification: Performance of SimCode: time 5.61e-07/0.7216, allocations: 0 / 475.9 MB, free: 105.1 MB / 382.1 MB Notification: Performance of Templates: time 0.06156/0.7832, allocations: 46.51 MB / 0.5102 GB, free: 58.5 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)