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.001176/0.001176, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.00131/0.00131, allocations: 189.6 kB / 16.25 MB, free: 6.633 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.52/1.52, allocations: 205.1 MB / 222.1 MB, free: 4.75 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.001256/0.001256, allocations: 51.92 kB / 278.2 MB, free: 12.68 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3111/0.3124, allocations: 46.63 MB / 324.8 MB, free: 1.914 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.05358/0.366, allocations: 31.19 MB / 356 MB, free: 4.809 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02631/0.3923, allocations: 10.46 MB / 366.5 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00289/0.3953, allocations: 47.62 kB / 366.5 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002649/0.398, allocations: 425.7 kB / 367 MB, free: 9.852 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01033/0.4084, allocations: 1.731 MB / 368.7 MB, free: 8.113 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01442/0.4229, allocations: 2.507 MB / 371.2 MB, free: 5.602 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.009315/0.4322, allocations: 3.701 MB / 374.9 MB, free: 1.891 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003618/0.4359, allocations: 1.15 MB / 376.1 MB, free: 0.7266 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005296/0.4412, allocations: 1.507 MB / 377.6 MB, free: 15.21 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00294/0.4442, allocations: 1.484 MB / 379 MB, free: 13.72 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008022/0.445, allocations: 156 kB / 379.2 MB, free: 13.57 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005712/0.4508, allocations: 2.079 MB / 381.3 MB, free: 11.49 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001137/0.4519, allocations: 0.5688 MB / 381.8 MB, free: 10.92 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002143/0.4541, allocations: 0.8167 MB / 382.7 MB, free: 10.1 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00813/0.4622, allocations: 3.327 MB / 386 MB, free: 6.762 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.4623, allocations: 3.938 kB / 386 MB, free: 6.758 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.4623, allocations: 0 / 386 MB, free: 6.758 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.291e-05/0.4624, allocations: 0 / 386 MB, free: 6.758 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.007127/0.4695, allocations: 2.033 MB / 388 MB, free: 4.672 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.549e-05/0.4696, allocations: 12.03 kB / 388 MB, free: 4.66 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007118/0.4703, allocations: 166.2 kB / 388.2 MB, free: 4.496 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001633/0.472, allocations: 0.894 MB / 389.1 MB, free: 3.559 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002114/0.4722, allocations: 238.4 kB / 389.3 MB, free: 3.293 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001929/0.4724, allocations: 99.89 kB / 389.4 MB, free: 3.195 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003321/0.4757, allocations: 1.798 MB / 391.2 MB, free: 1.34 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.513e-05/0.4758, allocations: 0 / 391.2 MB, free: 1.34 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001427/0.4759, allocations: 43.97 kB / 391.3 MB, free: 1.297 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000144/0.4761, allocations: 102 kB / 391.4 MB, free: 1.195 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002937/0.479, allocations: 1.776 MB / 393.1 MB, free: 15.41 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.01171/0.4908, allocations: 6.928 MB / 400.1 MB, free: 8.184 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002565/0.4933, allocations: 1.486 MB / 401.6 MB, free: 6.688 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001355/0.4947, allocations: 0.8861 MB / 402.4 MB, free: 5.801 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008862/0.4956, allocations: 0.6451 MB / 403.1 MB, free: 5.027 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.388e-05/0.4957, allocations: 47.55 kB / 403.1 MB, free: 4.973 MB / 334.1 MB Notification: Performance of pre-optimization done (n=116): time 4.448e-06/0.4957, allocations: 0 / 403.1 MB, free: 4.973 MB / 334.1 MB Notification: Performance of matching and sorting (n=128): time 0.01749/0.5132, allocations: 6.617 MB / 409.7 MB, free: 14.23 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001164/0.5134, allocations: 171.5 kB / 409.9 MB, free: 14.03 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001792/0.5152, allocations: 1.099 MB / 411 MB, free: 12.91 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001711/0.5153, allocations: 53.7 kB / 411.1 MB, free: 12.85 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004445/0.5158, allocations: 0.5004 MB / 411.6 MB, free: 12.34 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004934/0.5163, allocations: 433.7 kB / 412 MB, free: 11.91 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005033/0.5168, allocations: 267.5 kB / 412.3 MB, free: 11.65 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001749/0.517, allocations: 365.9 kB / 412.6 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001791/0.5188, allocations: 0.8441 MB / 413.5 MB, free: 10.44 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001595/0.5204, allocations: 1.08 MB / 414.5 MB, free: 9.281 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002932/0.5233, allocations: 1.808 MB / 416.3 MB, free: 7.41 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.416e-06/0.5234, allocations: 4 kB / 416.3 MB, free: 7.406 MB / 350.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.005148/0.5285, allocations: 2.623 MB / 419 MB, free: 4.758 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.232e-05/0.5286, allocations: 8 kB / 419 MB, free: 4.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.665e-05/0.5286, allocations: 4.312 kB / 419 MB, free: 4.746 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003827/0.5324, allocations: 1.311 MB / 420.3 MB, free: 3.418 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00117/0.5336, allocations: 223.6 kB / 420.5 MB, free: 3.199 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007642/0.5413, allocations: 6.711 MB / 427.2 MB, free: 12.13 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001845/0.5432, allocations: 95.83 kB / 427.3 MB, free: 12.04 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002133/0.5434, allocations: 55.97 kB / 427.4 MB, free: 11.98 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002018/0.5454, allocations: 1.101 MB / 428.5 MB, free: 10.88 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001635/0.5471, allocations: 1.062 MB / 429.5 MB, free: 9.734 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002874/0.55, allocations: 1.77 MB / 431.3 MB, free: 7.895 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.614e-05/0.55, allocations: 7.984 kB / 431.3 MB, free: 7.887 MB / 366.1 MB Notification: Performance of matching and sorting (n=170) (initialization_lambda0): time 0.004659/0.5547, allocations: 2.502 MB / 433.8 MB, free: 5.359 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.782e-05/0.5547, allocations: 4 kB / 433.8 MB, free: 5.355 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.558e-06/0.5548, allocations: 12 kB / 433.8 MB, free: 5.344 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002508/0.5573, allocations: 1.015 MB / 434.8 MB, free: 4.312 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001069/0.5584, allocations: 231.6 kB / 435.1 MB, free: 4.086 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006781/0.5651, allocations: 6.473 MB / 441.5 MB, free: 13.25 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00189/0.5671, allocations: 91.84 kB / 441.6 MB, free: 13.16 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001792/0.5673, allocations: 59.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.0006188/0.5679, allocations: 252 kB / 441.9 MB, free: 12.85 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000368/0.5683, allocations: 142.3 kB / 442.1 MB, free: 12.71 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005149/0.5734, allocations: 2.803 MB / 444.9 MB, free: 9.879 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.881e-05/0.5735, allocations: 19.92 kB / 444.9 MB, free: 9.859 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.003e-05/0.5735, allocations: 7.938 kB / 444.9 MB, free: 9.852 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.3e-05/0.5735, allocations: 7.922 kB / 444.9 MB, free: 9.844 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007574/0.5811, allocations: 4.53 MB / 449.4 MB, free: 5.246 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.999e-06/0.5811, allocations: 0 / 449.4 MB, free: 5.246 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008115/0.5819, allocations: 151.8 kB / 449.6 MB, free: 5.098 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003352/0.5853, allocations: 1.303 MB / 450.9 MB, free: 3.781 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001832/0.5855, allocations: 39.97 kB / 450.9 MB, free: 3.742 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2036/0.7892, allocations: 6.74 MB / 457.7 MB, free: 113.8 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.7892, allocations: 0.5312 kB / 457.7 MB, free: 113.8 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007907/0.7971, allocations: 3.948 MB / 461.6 MB, free: 112.8 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001064/0.7982, allocations: 429.5 kB / 462 MB, free: 112.6 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004606/0.7987, allocations: 29.22 kB / 462.1 MB, free: 112.6 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001427/0.8001, allocations: 89.8 kB / 462.2 MB, free: 112.6 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004066/0.8006, allocations: 142.5 kB / 462.3 MB, free: 112.5 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000139/0.8007, allocations: 47.42 kB / 462.3 MB, free: 112.5 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00111/0.8018, allocations: 0.7525 MB / 463.1 MB, free: 112.2 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.8018, allocations: 3.844 kB / 463.1 MB, free: 112.2 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003068/0.8049, allocations: 1.051 MB / 464.2 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.001763/0.8067, allocations: 0.7194 MB / 464.9 MB, free: 112 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.008344/0.815, allocations: 4.392 MB / 469.3 MB, free: 110.4 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 9.127e-06/0.8151, allocations: 0 / 469.3 MB, free: 110.4 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002778/0.8179, allocations: 1.439 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.002922/0.8208, allocations: 0.6272 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.006507/0.8273, allocations: 3.595 MB / 474.9 MB, free: 105.5 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006314/0.828, allocations: 1.272 MB / 476.2 MB, free: 104.2 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001815/0.8298, allocations: 0.5613 MB / 476.8 MB, free: 103.6 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003451/0.8302, allocations: 131.4 kB / 476.9 MB, free: 103.5 MB / 382.1 MB Notification: Performance of SimCode: time 6.31e-07/0.8302, allocations: 0 / 476.9 MB, free: 103.5 MB / 382.1 MB Notification: Performance of Templates: time 0.06539/0.8956, allocations: 46.17 MB / 0.5108 GB, free: 57.29 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)