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.005991/0.005991, allocations: 99.83 kB / 15.73 MB, free: 6.012 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.001161/0.001161, allocations: 189.4 kB / 16.67 MB, free: 5.934 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.458/1.458, allocations: 205.1 MB / 222.5 MB, free: 4.484 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.001146/0.001146, allocations: 47.81 kB / 326.5 MB, free: 14.44 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1153/0.1165, allocations: 46.63 MB / 373.2 MB, free: 1.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.04511/0.1616, allocations: 30.16 MB / 403.3 MB, free: 3.047 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01951/0.1812, allocations: 10.25 MB / 413.6 MB, free: 8.766 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001885/0.1832, allocations: 35.75 kB / 413.6 MB, free: 8.73 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002296/0.1855, allocations: 481 kB / 414.1 MB, free: 8.258 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007103/0.1927, allocations: 1.866 MB / 415.9 MB, free: 6.383 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00873/0.2014, allocations: 2.751 MB / 418.7 MB, free: 3.621 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006679/0.2081, allocations: 3.678 MB / 422.4 MB, free: 15.93 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002854/0.211, allocations: 1.146 MB / 423.5 MB, free: 14.77 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004603/0.2156, allocations: 1.507 MB / 425 MB, free: 13.26 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003656/0.2193, allocations: 1.421 MB / 426.4 MB, free: 11.84 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008872/0.2202, allocations: 152 kB / 426.6 MB, free: 11.69 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006085/0.2263, allocations: 2.083 MB / 428.7 MB, free: 9.602 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001424/0.2278, allocations: 0.5728 MB / 429.3 MB, free: 9.027 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002416/0.2302, allocations: 0.805 MB / 430.1 MB, free: 8.219 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009675/0.2399, allocations: 3.364 MB / 433.4 MB, free: 4.844 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/0.2399, allocations: 0 / 433.4 MB, free: 4.844 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.24, allocations: 0 / 433.4 MB, free: 4.844 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.718e-05/0.2401, allocations: 0 / 433.4 MB, free: 4.844 MB / 366.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.008007/0.2481, allocations: 2.088 MB / 435.5 MB, free: 2.695 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.551e-05/0.2481, allocations: 12.02 kB / 435.5 MB, free: 2.684 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008994/0.249, allocations: 171.1 kB / 435.7 MB, free: 2.516 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002051/0.2511, allocations: 0.9532 MB / 436.6 MB, free: 1.52 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002261/0.2513, allocations: 234.5 kB / 436.9 MB, free: 1.262 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003484/0.2517, allocations: 99.94 kB / 437 MB, free: 1.164 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003632/0.2553, allocations: 1.802 MB / 438.8 MB, free: 15.3 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.778e-05/0.2554, allocations: 3.938 kB / 438.8 MB, free: 15.3 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001659/0.2556, allocations: 43.97 kB / 438.8 MB, free: 15.26 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001745/0.2558, allocations: 102 kB / 438.9 MB, free: 15.16 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003425/0.2592, allocations: 1.776 MB / 440.7 MB, free: 13.37 MB / 382.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.01347/0.2727, allocations: 6.929 MB / 447.6 MB, free: 6.141 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002705/0.2754, allocations: 1.486 MB / 449.1 MB, free: 4.648 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001514/0.277, allocations: 0.8822 MB / 450 MB, free: 3.762 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008637/0.2778, allocations: 0.6451 MB / 450.6 MB, free: 2.984 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.156e-05/0.2779, allocations: 43.56 kB / 450.7 MB, free: 2.934 MB / 382.1 MB Notification: Performance of pre-optimization done (n=116): time 2.935e-06/0.2779, allocations: 0 / 450.7 MB, free: 2.934 MB / 382.1 MB Notification: Performance of matching and sorting (n=128): time 0.2654/0.5433, allocations: 6.634 MB / 457.3 MB, free: 73.46 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.807e-05/0.5435, allocations: 174.1 kB / 457.5 MB, free: 73.27 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002165/0.5457, allocations: 1.099 MB / 458.6 MB, free: 72.84 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001724/0.5458, allocations: 52.39 kB / 458.6 MB, free: 72.79 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000481/0.5463, allocations: 0.5084 MB / 459.1 MB, free: 72.41 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005156/0.5468, allocations: 452.9 kB / 459.6 MB, free: 72.13 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000668/0.5475, allocations: 272.5 kB / 459.8 MB, free: 72.01 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001691/0.5477, allocations: 364 kB / 460.2 MB, free: 71.69 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001687/0.5494, allocations: 0.8526 MB / 461.1 MB, free: 71.37 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001697/0.5511, allocations: 1.076 MB / 462.1 MB, free: 70.82 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003001/0.5541, allocations: 1.812 MB / 463.9 MB, free: 69.97 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.023e-06/0.5541, allocations: 3.281 kB / 463.9 MB, free: 69.97 MB / 382.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.005313/0.5595, allocations: 2.626 MB / 466.6 MB, free: 68.94 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.071e-05/0.5595, allocations: 6.438 kB / 466.6 MB, free: 68.94 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.068e-05/0.5595, allocations: 4.781 kB / 466.6 MB, free: 68.94 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003507/0.5631, allocations: 1.298 MB / 467.9 MB, free: 68.67 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00109/0.5642, allocations: 215.9 kB / 468.1 MB, free: 68.65 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0057/0.5699, allocations: 6.735 MB / 474.8 MB, free: 62.96 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001555/0.5715, allocations: 67.53 kB / 474.9 MB, free: 62.92 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001533/0.5716, allocations: 59.38 kB / 475 MB, free: 62.9 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001843/0.5735, allocations: 1.102 MB / 476.1 MB, free: 62.28 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001318/0.5748, allocations: 1.059 MB / 477.1 MB, free: 61.58 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002393/0.5772, allocations: 1.774 MB / 478.9 MB, free: 60.54 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.721e-06/0.5772, allocations: 5.906 kB / 478.9 MB, free: 60.54 MB / 382.1 MB Notification: Performance of matching and sorting (n=170) (initialization_lambda0): time 0.004212/0.5815, allocations: 2.496 MB / 481.4 MB, free: 59.18 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.6e-05/0.5815, allocations: 11.98 kB / 481.4 MB, free: 59.17 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.977e-06/0.5815, allocations: 6.312 kB / 481.4 MB, free: 59.17 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00218/0.5837, allocations: 1.025 MB / 482.4 MB, free: 58.18 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008896/0.5846, allocations: 231.6 kB / 482.7 MB, free: 57.95 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00464/0.5892, allocations: 6.466 MB / 489.1 MB, free: 51.16 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001416/0.5907, allocations: 63.95 kB / 489.2 MB, free: 51.1 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001445/0.5908, allocations: 59.97 kB / 489.2 MB, free: 51.04 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.000498/0.5913, allocations: 268.6 kB / 489.5 MB, free: 50.78 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003517/0.5917, allocations: 143.1 kB / 489.6 MB, free: 50.64 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004375/0.5961, allocations: 2.802 MB / 492.5 MB, free: 47.84 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.937e-05/0.5961, allocations: 23.59 kB / 492.5 MB, free: 47.82 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.955e-06/0.5961, allocations: 7.938 kB / 492.5 MB, free: 47.81 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.313e-05/0.5962, allocations: 3.984 kB / 492.5 MB, free: 47.81 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006207/0.6024, allocations: 4.525 MB / 497 MB, free: 43.27 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.522e-06/0.6024, allocations: 3.906 kB / 497 MB, free: 43.27 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007127/0.6031, allocations: 152.7 kB / 497.2 MB, free: 43.12 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002686/0.6058, allocations: 1.289 MB / 498.5 MB, free: 41.82 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001278/0.606, allocations: 35.97 kB / 498.5 MB, free: 41.79 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00494/0.6109, allocations: 6.753 MB / 0.4934 GB, free: 34.7 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.584e-06/0.611, allocations: 3.984 kB / 0.4934 GB, free: 34.7 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005616/0.6166, allocations: 3.958 MB / 0.4973 GB, free: 30.71 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009023/0.6175, allocations: 436.8 kB / 0.4977 GB, free: 30.27 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002758/0.6178, allocations: 27.94 kB / 0.4977 GB, free: 30.24 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009806/0.6188, allocations: 67.94 kB / 0.4978 GB, free: 30.17 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003205/0.6191, allocations: 145 kB / 0.4979 GB, free: 30.03 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001209/0.6192, allocations: 51.97 kB / 0.498 GB, free: 29.98 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008822/0.6201, allocations: 0.7532 MB / 0.4987 GB, free: 29.21 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.6201, allocations: 0 / 0.4987 GB, free: 29.21 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002762/0.6229, allocations: 1.062 MB / 0.4997 GB, free: 28.27 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.001593/0.6245, allocations: 0.7359 MB / 0.5005 GB, free: 27.58 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006608/0.6311, allocations: 3.844 MB / 0.5042 GB, free: 23.7 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.484e-06/0.6312, allocations: 3.938 kB / 0.5042 GB, free: 23.69 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002569/0.6338, allocations: 1.433 MB / 0.5056 GB, free: 22.23 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002808/0.6366, allocations: 0.633 MB / 0.5062 GB, free: 21.6 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005224/0.6418, allocations: 3.13 MB / 0.5093 GB, free: 18.46 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005652/0.6424, allocations: 1.264 MB / 0.5105 GB, free: 17.16 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001609/0.6441, allocations: 0.5769 MB / 0.5111 GB, free: 16.58 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003122/0.6444, allocations: 123.4 kB / 0.5112 GB, free: 16.46 MB / 382.1 MB Notification: Performance of SimCode: time 5.51e-07/0.6444, allocations: 0 / 0.5112 GB, free: 16.46 MB / 382.1 MB Notification: Performance of Templates: time 0.06709/0.7115, allocations: 46.92 MB / 0.557 GB, free: 1.461 MB / 414.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)