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.0012/0.0012, allocations: 108 kB / 15.61 MB, free: 152 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.001275/0.001275, allocations: 194.6 kB / 16.53 MB, free: 6.664 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.543/1.543, allocations: 205.1 MB / 222.4 MB, free: 4.598 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.001234/0.001234, allocations: 51.94 kB / 278.7 MB, free: 12.36 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2733/0.2745, allocations: 46.63 MB / 325.3 MB, free: 1.855 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.02943/0.304, allocations: 30.16 MB / 355.5 MB, free: 5.672 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01568/0.3198, allocations: 10.26 MB / 365.7 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001704/0.3215, allocations: 35.75 kB / 365.8 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001437/0.323, allocations: 477 kB / 366.2 MB, free: 10.88 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005776/0.3288, allocations: 1.854 MB / 368.1 MB, free: 9.012 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007032/0.3359, allocations: 2.751 MB / 370.8 MB, free: 6.254 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004208/0.3401, allocations: 3.678 MB / 374.5 MB, free: 2.566 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001732/0.3418, allocations: 1.154 MB / 375.7 MB, free: 1.398 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003269/0.3451, allocations: 1.511 MB / 377.2 MB, free: 15.88 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002019/0.3471, allocations: 1.406 MB / 378.6 MB, free: 14.47 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002951/0.3474, allocations: 160 kB / 378.7 MB, free: 14.31 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005201/0.3526, allocations: 2.067 MB / 380.8 MB, free: 12.24 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006647/0.3533, allocations: 0.5766 MB / 381.4 MB, free: 11.66 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001116/0.3545, allocations: 0.8089 MB / 382.2 MB, free: 10.85 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005718/0.3602, allocations: 3.312 MB / 385.5 MB, free: 7.531 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.3602, allocations: 4 kB / 385.5 MB, free: 7.527 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.3602, allocations: 3.938 kB / 385.5 MB, free: 7.523 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.546e-05/0.3603, allocations: 4 kB / 385.5 MB, free: 7.52 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.004981/0.3652, allocations: 2.026 MB / 387.5 MB, free: 5.441 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.482e-05/0.3653, allocations: 8.031 kB / 387.6 MB, free: 5.434 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005241/0.3658, allocations: 170.2 kB / 387.7 MB, free: 5.266 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001329/0.3672, allocations: 0.9017 MB / 388.6 MB, free: 4.32 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001856/0.3674, allocations: 238.5 kB / 388.9 MB, free: 4.055 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000179/0.3675, allocations: 99.97 kB / 388.9 MB, free: 3.957 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002742/0.3703, allocations: 1.79 MB / 390.7 MB, free: 2.109 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.652e-05/0.3703, allocations: 4 kB / 390.7 MB, free: 2.105 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001417/0.3705, allocations: 39.98 kB / 390.8 MB, free: 2.066 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000132/0.3706, allocations: 106 kB / 390.9 MB, free: 1.961 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002724/0.3734, allocations: 1.772 MB / 392.7 MB, free: 184 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.01093/0.3843, allocations: 6.94 MB / 399.6 MB, free: 8.941 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002578/0.3869, allocations: 1.49 MB / 401.1 MB, free: 7.438 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001309/0.3882, allocations: 0.8783 MB / 402 MB, free: 6.555 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008012/0.389, allocations: 0.649 MB / 402.6 MB, free: 5.777 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.503e-05/0.3891, allocations: 43.56 kB / 402.7 MB, free: 5.727 MB / 334.1 MB Notification: Performance of pre-optimization done (n=116): time 3.487e-06/0.3891, allocations: 7.938 kB / 402.7 MB, free: 5.719 MB / 334.1 MB Notification: Performance of matching and sorting (n=128): time 0.01615/0.4053, allocations: 6.625 MB / 409.3 MB, free: 14.98 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.217e-05/0.4054, allocations: 171.5 kB / 409.5 MB, free: 14.77 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001451/0.4068, allocations: 1.099 MB / 410.6 MB, free: 13.66 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001336/0.407, allocations: 45.7 kB / 410.6 MB, free: 13.61 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003968/0.4074, allocations: 0.5005 MB / 411.1 MB, free: 13.1 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003956/0.4078, allocations: 441.7 kB / 411.5 MB, free: 12.66 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000507/0.4083, allocations: 263.5 kB / 411.8 MB, free: 12.4 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000167/0.4085, allocations: 357.9 kB / 412.1 MB, free: 12.04 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001419/0.4099, allocations: 0.848 MB / 413 MB, free: 11.19 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001716/0.4116, allocations: 1.076 MB / 414.1 MB, free: 10.04 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002955/0.4146, allocations: 1.816 MB / 415.9 MB, free: 8.16 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.581e-06/0.4146, allocations: 0 / 415.9 MB, free: 8.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.005043/0.4197, allocations: 2.623 MB / 418.5 MB, free: 5.512 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.052e-05/0.4197, allocations: 8 kB / 418.5 MB, free: 5.504 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.323e-05/0.4197, allocations: 4 kB / 418.5 MB, free: 5.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003652/0.4234, allocations: 1.312 MB / 419.8 MB, free: 4.172 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001144/0.4246, allocations: 211.7 kB / 420 MB, free: 3.965 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007121/0.4317, allocations: 6.723 MB / 426.8 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001739/0.4335, allocations: 59.95 kB / 426.8 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001882/0.4337, allocations: 64.14 kB / 426.9 MB, free: 12.76 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002009/0.4357, allocations: 1.109 MB / 428 MB, free: 11.65 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001591/0.4373, allocations: 1.062 MB / 429 MB, free: 10.51 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002787/0.4401, allocations: 1.774 MB / 430.8 MB, free: 8.664 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.873e-06/0.4401, allocations: 3.984 kB / 430.8 MB, free: 8.66 MB / 366.1 MB Notification: Performance of matching and sorting (n=170) (initialization_lambda0): time 0.004768/0.4449, allocations: 2.49 MB / 433.3 MB, free: 6.145 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.386e-05/0.445, allocations: 8 kB / 433.3 MB, free: 6.137 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.977e-06/0.445, allocations: 4.406 kB / 433.3 MB, free: 6.133 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002583/0.4476, allocations: 1.031 MB / 434.4 MB, free: 5.086 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009965/0.4486, allocations: 227.6 kB / 434.6 MB, free: 4.863 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006218/0.4548, allocations: 6.465 MB / 441 MB, free: 14.04 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001499/0.4563, allocations: 75.92 kB / 441.1 MB, free: 13.96 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001591/0.4565, allocations: 55.98 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.000544/0.4571, allocations: 268 kB / 441.4 MB, free: 13.64 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003531/0.4574, allocations: 138.3 kB / 441.6 MB, free: 13.5 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00519/0.4626, allocations: 2.807 MB / 444.4 MB, free: 10.67 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.089e-05/0.4627, allocations: 12 kB / 444.4 MB, free: 10.66 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.213e-05/0.4627, allocations: 7.938 kB / 444.4 MB, free: 10.65 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.827e-05/0.4627, allocations: 7.969 kB / 444.4 MB, free: 10.64 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007895/0.4706, allocations: 4.53 MB / 448.9 MB, free: 6.039 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.274e-06/0.4706, allocations: 0 / 448.9 MB, free: 6.039 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000805/0.4715, allocations: 159.8 kB / 449.1 MB, free: 5.883 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003202/0.4747, allocations: 1.287 MB / 450.4 MB, free: 4.582 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001432/0.4748, allocations: 35.98 kB / 450.4 MB, free: 4.547 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2473/0.7221, allocations: 6.744 MB / 457.2 MB, free: 115 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.325e-06/0.7222, allocations: 4.375 kB / 457.2 MB, free: 115 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007494/0.7297, allocations: 3.947 MB / 461.1 MB, free: 114 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008837/0.7306, allocations: 434.3 kB / 461.5 MB, free: 113.8 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002236/0.7308, allocations: 27.5 kB / 461.6 MB, free: 113.8 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009918/0.7318, allocations: 71.58 kB / 461.6 MB, free: 113.8 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000359/0.7322, allocations: 141.2 kB / 461.8 MB, free: 113.8 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001233/0.7323, allocations: 50.36 kB / 461.8 MB, free: 113.8 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001096/0.7334, allocations: 0.7518 MB / 462.6 MB, free: 113.5 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.7334, allocations: 0 / 462.6 MB, free: 113.5 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003545/0.737, allocations: 1.053 MB / 463.6 MB, free: 113.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.001708/0.7387, allocations: 0.7227 MB / 464.3 MB, free: 113.2 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.008643/0.7473, allocations: 4.381 MB / 468.7 MB, free: 111.6 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.294e-06/0.7474, allocations: 4.625 kB / 468.7 MB, free: 111.6 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002538/0.7499, allocations: 1.445 MB / 470.2 MB, free: 110.8 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002636/0.7526, allocations: 0.6296 MB / 470.8 MB, free: 110.2 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005322/0.7579, allocations: 3.135 MB / 473.9 MB, free: 107.3 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005852/0.7585, allocations: 1.267 MB / 475.2 MB, free: 106 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001675/0.7602, allocations: 0.573 MB / 475.8 MB, free: 105.4 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003052/0.7605, allocations: 131.3 kB / 475.9 MB, free: 105.3 MB / 382.1 MB Notification: Performance of SimCode: time 7.91e-07/0.7605, allocations: 0 / 475.9 MB, free: 105.3 MB / 382.1 MB Notification: Performance of Templates: time 0.05582/0.8163, allocations: 46.51 MB / 0.5102 GB, free: 58.74 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)