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.008677/0.008678, allocations: 99.47 kB / 15.73 MB, free: 6.453 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.001705/0.001705, allocations: 197.8 kB / 16.68 MB, free: 6.355 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.579/1.579, allocations: 205.1 MB / 222.5 MB, free: 4.551 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.001135/0.001136, allocations: 55.83 kB / 326.5 MB, free: 14.3 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1182/0.1193, allocations: 46.62 MB / 373.2 MB, free: 1.332 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.03316/0.1525, allocations: 30.16 MB / 403.3 MB, free: 3.059 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01724/0.1698, allocations: 10.27 MB / 413.6 MB, free: 8.762 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00183/0.1717, allocations: 31.81 kB / 413.6 MB, free: 8.73 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001534/0.1733, allocations: 477 kB / 414.1 MB, free: 8.262 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006437/0.1798, allocations: 1.89 MB / 416 MB, free: 6.363 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009021/0.1888, allocations: 2.751 MB / 418.7 MB, free: 3.602 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006723/0.1955, allocations: 3.682 MB / 422.4 MB, free: 15.91 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002495/0.1981, allocations: 1.15 MB / 423.6 MB, free: 14.75 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003862/0.202, allocations: 1.534 MB / 425.1 MB, free: 13.21 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003265/0.2052, allocations: 1.41 MB / 426.5 MB, free: 11.79 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004735/0.2057, allocations: 152 kB / 426.6 MB, free: 11.64 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005547/0.2113, allocations: 2.09 MB / 428.7 MB, free: 9.551 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008597/0.2122, allocations: 0.5728 MB / 429.3 MB, free: 8.977 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001384/0.2136, allocations: 0.805 MB / 430.1 MB, free: 8.168 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006998/0.2206, allocations: 3.364 MB / 433.5 MB, free: 4.793 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.642e-06/0.2206, allocations: 0 / 433.5 MB, free: 4.793 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.235e-06/0.2206, allocations: 0 / 433.5 MB, free: 4.793 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.372e-05/0.2207, allocations: 0 / 433.5 MB, free: 4.793 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.0057/0.2264, allocations: 2.084 MB / 435.6 MB, free: 2.648 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.255e-05/0.2264, allocations: 8.031 kB / 435.6 MB, free: 2.641 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005423/0.227, allocations: 171 kB / 435.7 MB, free: 2.473 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001812/0.2288, allocations: 0.9571 MB / 436.7 MB, free: 1.473 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001984/0.229, allocations: 234.5 kB / 436.9 MB, free: 1.215 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001985/0.2292, allocations: 103.9 kB / 437 MB, free: 1.113 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003071/0.2323, allocations: 1.798 MB / 438.8 MB, free: 15.26 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.272e-05/0.2323, allocations: 4 kB / 438.8 MB, free: 15.25 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001539/0.2325, allocations: 47.97 kB / 438.9 MB, free: 15.21 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001325/0.2326, allocations: 102 kB / 439 MB, free: 15.11 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003099/0.2357, allocations: 1.776 MB / 440.8 MB, free: 13.32 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.01282/0.2486, allocations: 6.929 MB / 447.7 MB, free: 6.09 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003331/0.2519, allocations: 1.486 MB / 449.2 MB, free: 4.598 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001455/0.2534, allocations: 0.8822 MB / 450 MB, free: 3.711 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009732/0.2544, allocations: 0.6412 MB / 450.7 MB, free: 2.938 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.445e-05/0.2545, allocations: 51.5 kB / 450.7 MB, free: 2.879 MB / 382.1 MB Notification: Performance of pre-optimization done (n=116): time 4.87e-06/0.2545, allocations: 4 kB / 450.7 MB, free: 2.875 MB / 382.1 MB Notification: Performance of matching and sorting (n=128): time 0.3045/0.559, allocations: 6.634 MB / 457.4 MB, free: 73.52 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.527e-05/0.5592, allocations: 177.5 kB / 457.6 MB, free: 73.33 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002569/0.5618, allocations: 1.097 MB / 458.6 MB, free: 72.9 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001789/0.562, allocations: 49.69 kB / 458.7 MB, free: 72.85 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004978/0.5625, allocations: 0.5073 MB / 459.2 MB, free: 72.47 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005013/0.563, allocations: 454.9 kB / 459.6 MB, free: 72.18 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005618/0.5635, allocations: 270.8 kB / 459.9 MB, free: 72.07 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001221/0.5637, allocations: 361.8 kB / 460.3 MB, free: 71.75 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001651/0.5653, allocations: 0.8492 MB / 461.1 MB, free: 71.43 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001908/0.5673, allocations: 1.081 MB / 462.2 MB, free: 70.88 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003362/0.5706, allocations: 1.81 MB / 464 MB, free: 70.03 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.402e-06/0.5706, allocations: 2.156 kB / 464 MB, free: 70.03 MB / 382.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.005258/0.5759, allocations: 2.628 MB / 466.6 MB, free: 69 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.537e-05/0.576, allocations: 6.875 kB / 466.6 MB, free: 69 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.412e-05/0.576, allocations: 4.125 kB / 466.6 MB, free: 69 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003533/0.5795, allocations: 1.303 MB / 468 MB, free: 68.73 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009852/0.5805, allocations: 213.1 kB / 468.2 MB, free: 68.7 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005313/0.5858, allocations: 6.728 MB / 474.9 MB, free: 63.02 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00132/0.5872, allocations: 63.56 kB / 474.9 MB, free: 62.98 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001352/0.5873, allocations: 59.34 kB / 475 MB, free: 62.96 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001659/0.589, allocations: 1.104 MB / 476.1 MB, free: 62.33 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00131/0.5903, allocations: 1.066 MB / 477.2 MB, free: 61.64 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002324/0.5926, allocations: 1.772 MB / 478.9 MB, free: 60.59 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.661e-06/0.5927, allocations: 2.031 kB / 479 MB, free: 60.59 MB / 382.1 MB Notification: Performance of matching and sorting (n=170) (initialization_lambda0): time 0.003846/0.5965, allocations: 2.511 MB / 481.5 MB, free: 59.11 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.407e-05/0.5965, allocations: 4 kB / 481.5 MB, free: 59.11 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.526e-06/0.5966, allocations: 8 kB / 481.5 MB, free: 59.1 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002117/0.5987, allocations: 1.016 MB / 482.5 MB, free: 58.11 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008748/0.5996, allocations: 231.6 kB / 482.7 MB, free: 57.88 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00486/0.6044, allocations: 6.469 MB / 489.2 MB, free: 51.09 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001343/0.6058, allocations: 67.95 kB / 489.3 MB, free: 51.03 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001277/0.6059, allocations: 59.97 kB / 489.3 MB, free: 50.97 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.0006371/0.6066, allocations: 263.7 kB / 489.6 MB, free: 50.71 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004019/0.607, allocations: 139.1 kB / 489.7 MB, free: 50.57 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005866/0.6129, allocations: 2.805 MB / 492.5 MB, free: 47.78 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.452e-05/0.6129, allocations: 19.97 kB / 492.5 MB, free: 47.76 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.767e-06/0.613, allocations: 11.88 kB / 492.5 MB, free: 47.75 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.859e-05/0.613, allocations: 7.969 kB / 492.5 MB, free: 47.74 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01104/0.624, allocations: 4.523 MB / 497.1 MB, free: 43.2 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.528e-06/0.6241, allocations: 0 / 497.1 MB, free: 43.2 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001319/0.6254, allocations: 155.8 kB / 497.2 MB, free: 43.05 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004561/0.63, allocations: 1.288 MB / 498.5 MB, free: 41.77 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001957/0.6302, allocations: 39.97 kB / 498.5 MB, free: 41.73 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007437/0.6376, allocations: 6.747 MB / 0.4935 GB, free: 34.64 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.6377, allocations: 0.5625 kB / 0.4935 GB, free: 34.64 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009292/0.647, allocations: 3.958 MB / 0.4973 GB, free: 30.65 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001435/0.6484, allocations: 435.9 kB / 0.4977 GB, free: 30.21 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003303/0.6488, allocations: 31.94 kB / 0.4978 GB, free: 30.18 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001602/0.6504, allocations: 71.94 kB / 0.4978 GB, free: 30.11 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004869/0.6509, allocations: 137.1 kB / 0.498 GB, free: 29.97 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001909/0.6511, allocations: 51.95 kB / 0.498 GB, free: 29.92 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001441/0.6526, allocations: 0.7493 MB / 0.4987 GB, free: 29.16 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.11e-07/0.6526, allocations: 0 / 0.4987 GB, free: 29.16 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.004342/0.6569, allocations: 1.066 MB / 0.4998 GB, free: 28.21 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.002574/0.6595, allocations: 0.7443 MB / 0.5005 GB, free: 27.52 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.01097/0.6705, allocations: 3.844 MB / 0.5043 GB, free: 23.63 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.816e-06/0.6706, allocations: 4 kB / 0.5043 GB, free: 23.63 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004323/0.6749, allocations: 1.434 MB / 0.5057 GB, free: 22.17 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004831/0.6798, allocations: 0.6248 MB / 0.5063 GB, free: 21.55 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008964/0.6888, allocations: 3.134 MB / 0.5093 GB, free: 18.4 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009059/0.6897, allocations: 1.272 MB / 0.5106 GB, free: 17.09 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002925/0.6927, allocations: 0.573 MB / 0.5111 GB, free: 16.52 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005528/0.6932, allocations: 131.3 kB / 0.5113 GB, free: 16.39 MB / 382.1 MB Notification: Performance of SimCode: time 1.152e-06/0.6933, allocations: 3.938 kB / 0.5113 GB, free: 16.38 MB / 382.1 MB Notification: Performance of Templates: time 0.1153/0.8085, allocations: 46.9 MB / 0.5571 GB, free: 1.402 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)