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.009206/0.009206, allocations: 98.97 kB / 15.73 MB, free: 6.043 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.001885/0.001885, allocations: 195 kB / 16.67 MB, free: 5.961 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.453/1.453, allocations: 205.1 MB / 222.5 MB, free: 4.324 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.001182/0.001182, allocations: 50.83 kB / 326.5 MB, free: 14.6 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1011/0.1023, allocations: 46.62 MB / 373.2 MB, free: 1.418 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.03009/0.1325, allocations: 30.17 MB / 403.3 MB, free: 3.137 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01656/0.1491, allocations: 10.24 MB / 413.6 MB, free: 8.863 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001919/0.1511, allocations: 31.81 kB / 413.6 MB, free: 8.832 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001697/0.1529, allocations: 488.9 kB / 414.1 MB, free: 8.352 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005617/0.1586, allocations: 1.862 MB / 415.9 MB, free: 6.48 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007718/0.1663, allocations: 2.747 MB / 418.7 MB, free: 3.723 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005563/0.1719, allocations: 3.685 MB / 422.4 MB, free: 28 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001825/0.1737, allocations: 1.154 MB / 423.5 MB, free: 14.86 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00311/0.1768, allocations: 1.526 MB / 425.1 MB, free: 13.33 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002437/0.1793, allocations: 1.406 MB / 426.5 MB, free: 11.92 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003533/0.1797, allocations: 156 kB / 426.6 MB, free: 11.77 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004967/0.1846, allocations: 2.083 MB / 428.7 MB, free: 9.68 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006313/0.1853, allocations: 0.5767 MB / 429.3 MB, free: 9.102 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001082/0.1864, allocations: 0.8089 MB / 430.1 MB, free: 8.289 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005892/0.1923, allocations: 3.347 MB / 433.4 MB, free: 4.934 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.1923, allocations: 0 / 433.4 MB, free: 4.934 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.1923, allocations: 0 / 433.4 MB, free: 4.934 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.082e-05/0.1924, allocations: 0 / 433.4 MB, free: 4.934 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.005436/0.1978, allocations: 2.033 MB / 435.5 MB, free: 2.844 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.31e-05/0.1978, allocations: 8.031 kB / 435.5 MB, free: 2.836 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005307/0.1984, allocations: 174.2 kB / 435.6 MB, free: 2.664 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00175/0.2001, allocations: 0.9331 MB / 436.6 MB, free: 1.688 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002236/0.2004, allocations: 246.4 kB / 436.8 MB, free: 1.418 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001993/0.2006, allocations: 103.8 kB / 436.9 MB, free: 1.316 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002938/0.2035, allocations: 1.802 MB / 438.7 MB, free: 15.46 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.002e-05/0.2036, allocations: 0 / 438.7 MB, free: 15.46 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001347/0.2037, allocations: 39.98 kB / 438.8 MB, free: 15.42 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001316/0.2039, allocations: 102 kB / 438.9 MB, free: 15.32 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002872/0.2067, allocations: 1.776 MB / 440.6 MB, free: 13.53 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.01153/0.2183, allocations: 6.92 MB / 447.6 MB, free: 6.309 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002546/0.2208, allocations: 1.482 MB / 449 MB, free: 4.82 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001307/0.2222, allocations: 0.8783 MB / 449.9 MB, free: 3.938 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000857/0.223, allocations: 0.649 MB / 450.6 MB, free: 3.156 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.037e-05/0.2231, allocations: 43.56 kB / 450.6 MB, free: 3.105 MB / 382.1 MB Notification: Performance of pre-optimization done (n=116): time 4.82e-06/0.2231, allocations: 0 / 450.6 MB, free: 3.105 MB / 382.1 MB Notification: Performance of matching and sorting (n=128): time 0.2653/0.4884, allocations: 6.618 MB / 457.2 MB, free: 73.62 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.42e-05/0.4886, allocations: 171.2 kB / 457.4 MB, free: 73.43 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001687/0.4903, allocations: 1.096 MB / 458.5 MB, free: 72.99 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001977/0.4905, allocations: 54.03 kB / 458.5 MB, free: 72.94 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004015/0.4909, allocations: 0.4947 MB / 459 MB, free: 72.55 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004422/0.4913, allocations: 431.7 kB / 459.5 MB, free: 72.22 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006208/0.492, allocations: 277.9 kB / 459.7 MB, free: 72.11 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001076/0.4921, allocations: 360.6 kB / 460.1 MB, free: 71.78 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001418/0.4935, allocations: 0.851 MB / 460.9 MB, free: 71.46 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001545/0.495, allocations: 1.077 MB / 462 MB, free: 70.91 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002752/0.4978, allocations: 1.812 MB / 463.8 MB, free: 70.07 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.302e-06/0.4978, allocations: 1.281 kB / 463.8 MB, free: 70.07 MB / 382.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.00495/0.5028, allocations: 2.624 MB / 466.4 MB, free: 69.04 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.759e-05/0.5028, allocations: 9.75 kB / 466.5 MB, free: 69.03 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.515e-05/0.5029, allocations: 7 kB / 466.5 MB, free: 69.03 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003506/0.5064, allocations: 1.298 MB / 467.8 MB, free: 68.76 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001103/0.5075, allocations: 216.8 kB / 468 MB, free: 68.73 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005719/0.5132, allocations: 6.724 MB / 474.7 MB, free: 63.07 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001634/0.5149, allocations: 62.33 kB / 474.8 MB, free: 63.04 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001806/0.5151, allocations: 59.03 kB / 474.8 MB, free: 63.02 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001717/0.5168, allocations: 1.106 MB / 475.9 MB, free: 62.39 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00121/0.5181, allocations: 1.063 MB / 477 MB, free: 61.7 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002187/0.5203, allocations: 1.774 MB / 478.8 MB, free: 60.65 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.651e-06/0.5203, allocations: 2.031 kB / 478.8 MB, free: 60.65 MB / 382.1 MB Notification: Performance of matching and sorting (n=170) (initialization_lambda0): time 0.003852/0.5241, allocations: 2.5 MB / 481.3 MB, free: 59.33 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.535e-05/0.5242, allocations: 3.844 kB / 481.3 MB, free: 59.33 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.997e-06/0.5242, allocations: 8.688 kB / 481.3 MB, free: 59.33 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002161/0.5263, allocations: 1.027 MB / 482.3 MB, free: 58.39 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008832/0.5272, allocations: 227.6 kB / 482.5 MB, free: 58.16 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004809/0.5321, allocations: 6.457 MB / 489 MB, free: 51.38 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001511/0.5336, allocations: 71.94 kB / 489 MB, free: 51.31 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001425/0.5338, allocations: 55.97 kB / 489.1 MB, free: 51.26 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.0004925/0.5343, allocations: 255.2 kB / 489.4 MB, free: 51 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002994/0.5346, allocations: 143.7 kB / 489.5 MB, free: 50.86 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004244/0.5388, allocations: 2.801 MB / 492.3 MB, free: 48.06 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-05/0.5388, allocations: 16.12 kB / 492.3 MB, free: 48.05 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.5389, allocations: 4 kB / 492.3 MB, free: 48.04 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.457e-05/0.5389, allocations: 11.95 kB / 492.3 MB, free: 48.03 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006224/0.5451, allocations: 4.539 MB / 496.9 MB, free: 43.48 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.964e-06/0.5451, allocations: 0 / 496.9 MB, free: 43.48 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007226/0.5459, allocations: 152.2 kB / 497 MB, free: 43.33 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002813/0.5487, allocations: 1.285 MB / 498.3 MB, free: 42.04 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001594/0.5489, allocations: 39.97 kB / 498.3 MB, free: 42 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005062/0.5539, allocations: 6.741 MB / 0.4932 GB, free: 34.92 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.554, allocations: 0 / 0.4932 GB, free: 34.92 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005618/0.5596, allocations: 3.95 MB / 0.4971 GB, free: 30.93 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00112/0.5608, allocations: 431.2 kB / 0.4975 GB, free: 30.49 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002365/0.561, allocations: 27.98 kB / 0.4975 GB, free: 30.46 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009572/0.562, allocations: 59.95 kB / 0.4976 GB, free: 30.41 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003076/0.5623, allocations: 149.2 kB / 0.4977 GB, free: 30.26 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001176/0.5624, allocations: 51.97 kB / 0.4978 GB, free: 30.21 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008108/0.5632, allocations: 0.7532 MB / 0.4985 GB, free: 29.45 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5632, allocations: 0 / 0.4985 GB, free: 29.45 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003048/0.5663, allocations: 1.05 MB / 0.4995 GB, free: 28.48 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.001691/0.568, allocations: 0.7416 MB / 0.5003 GB, free: 27.86 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006616/0.5746, allocations: 3.837 MB / 0.504 GB, free: 23.98 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.145e-06/0.5747, allocations: 0 / 0.504 GB, free: 23.98 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002722/0.5774, allocations: 1.439 MB / 0.5054 GB, free: 22.52 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002919/0.5804, allocations: 0.6252 MB / 0.506 GB, free: 21.89 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005312/0.5857, allocations: 3.082 MB / 0.509 GB, free: 18.8 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005552/0.5863, allocations: 1.272 MB / 0.5103 GB, free: 17.5 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001535/0.5878, allocations: 0.5807 MB / 0.5109 GB, free: 16.91 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003135/0.5881, allocations: 123.3 kB / 0.511 GB, free: 16.79 MB / 382.1 MB Notification: Performance of SimCode: time 5.61e-07/0.5881, allocations: 4 kB / 0.511 GB, free: 16.79 MB / 382.1 MB Notification: Performance of Templates: time 0.06872/0.6569, allocations: 47.9 MB / 0.5578 GB, free: 0.8203 MB / 414.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)