Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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="mat",numberOfIntervals=10000,variableFilter="time|lowerTank.level|lowerTank.medium.h|upperTank.level|upperTank.medium.h|hysteresis.y",fileNamePrefix="Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow") translateModel(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|lowerTank.level|lowerTank.medium.h|upperTank.level|upperTank.medium.h|hysteresis.y",fileNamePrefix="Modelica_3.2.3_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.001382/0.001381, allocations: 114.5 kB / 17.73 MB, free: 5.312 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.001322/0.001322, allocations: 183 kB / 18.66 MB, free: 4.387 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.575/1.575, allocations: 205.1 MB / 224.5 MB, free: 12.21 MB / 190.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.001238/0.001238, allocations: 47.94 kB / 328.5 MB, free: 3.301 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1051/0.1063, allocations: 46.62 MB / 375.1 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.2635/0.3699, allocations: 30.16 MB / 405.3 MB, free: 9.91 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01813/0.388, allocations: 10.25 MB / 415.5 MB, free: 2.48 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002523/0.3906, allocations: 36.84 kB / 415.6 MB, free: 2.465 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001706/0.3924, allocations: 480.8 kB / 416.1 MB, free: 2.055 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005876/0.3983, allocations: 1.865 MB / 417.9 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007808/0.4061, allocations: 2.748 MB / 420.7 MB, free: 14.74 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005687/0.4118, allocations: 3.678 MB / 424.3 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001867/0.4137, allocations: 1.153 MB / 425.5 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003442/0.4171, allocations: 1.53 MB / 427 MB, free: 11.03 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002861/0.42, allocations: 1.415 MB / 428.4 MB, free: 10.19 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004477/0.4205, allocations: 155.7 kB / 428.6 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005063/0.4256, allocations: 2.079 MB / 430.7 MB, free: 8.035 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006568/0.4262, allocations: 0.5806 MB / 431.2 MB, free: 7.453 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00123/0.4275, allocations: 0.805 MB / 432.1 MB, free: 6.645 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005669/0.4331, allocations: 3.347 MB / 435.4 MB, free: 3.289 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.4332, allocations: 0 / 435.4 MB, free: 3.289 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.4332, allocations: 0 / 435.4 MB, free: 3.289 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.756e-05/0.4332, allocations: 0 / 435.4 MB, free: 3.289 MB / 350.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.005183/0.4384, allocations: 2.053 MB / 437.5 MB, free: 1.18 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.48e-05/0.4384, allocations: 8.031 kB / 437.5 MB, free: 1.172 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005364/0.439, allocations: 166.2 kB / 437.6 MB, free: 1.008 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00177/0.4408, allocations: 0.9409 MB / 438.6 MB, free: 24 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002096/0.441, allocations: 234.5 kB / 438.8 MB, free: 15.77 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000204/0.4412, allocations: 99.89 kB / 438.9 MB, free: 15.67 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003147/0.4444, allocations: 1.798 MB / 440.7 MB, free: 13.81 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.98e-05/0.4444, allocations: 7.875 kB / 440.7 MB, free: 13.8 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000132/0.4445, allocations: 39.98 kB / 440.7 MB, free: 13.77 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001258/0.4447, allocations: 97.98 kB / 440.8 MB, free: 13.67 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002877/0.4476, allocations: 1.776 MB / 442.6 MB, free: 11.88 MB / 366.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.01262/0.4602, allocations: 6.917 MB / 449.5 MB, free: 4.664 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003229/0.4635, allocations: 1.486 MB / 451 MB, free: 3.164 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002035/0.4655, allocations: 0.8822 MB / 451.9 MB, free: 2.277 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001318/0.4669, allocations: 0.649 MB / 452.5 MB, free: 1.5 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.17e-05/0.467, allocations: 47.56 kB / 452.6 MB, free: 1.445 MB / 366.1 MB Notification: Performance of pre-optimization done (n=116): time 5.411e-06/0.467, allocations: 0 / 452.6 MB, free: 1.445 MB / 366.1 MB Notification: Performance of matching and sorting (n=128): time 0.02839/0.4954, allocations: 6.618 MB / 459.2 MB, free: 10.71 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000118/0.4955, allocations: 171.5 kB / 459.4 MB, free: 10.51 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001901/0.4974, allocations: 1.096 MB / 460.5 MB, free: 9.395 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002396/0.4977, allocations: 53.7 kB / 460.5 MB, free: 9.336 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005673/0.4983, allocations: 0.5081 MB / 461 MB, free: 8.82 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006752/0.499, allocations: 429.8 kB / 461.4 MB, free: 8.395 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006361/0.4996, allocations: 267.5 kB / 461.7 MB, free: 8.125 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001834/0.4998, allocations: 361.9 kB / 462.1 MB, free: 7.766 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001706/0.5015, allocations: 0.848 MB / 462.9 MB, free: 6.914 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002005/0.5036, allocations: 1.076 MB / 464 MB, free: 5.762 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003502/0.5071, allocations: 1.812 MB / 465.8 MB, free: 3.883 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.104e-06/0.5071, allocations: 0 / 465.8 MB, free: 3.883 MB / 382.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.005608/0.5127, allocations: 2.623 MB / 468.4 MB, free: 1.234 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.59e-05/0.5128, allocations: 8 kB / 468.4 MB, free: 1.227 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.487e-05/0.5128, allocations: 4 kB / 468.4 MB, free: 1.223 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003865/0.5167, allocations: 1.302 MB / 469.7 MB, free: 15.91 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001077/0.5178, allocations: 215.7 kB / 469.9 MB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008988/0.5268, allocations: 6.725 MB / 476.7 MB, free: 8.621 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0017/0.5285, allocations: 67.94 kB / 476.7 MB, free: 8.555 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003872/0.5289, allocations: 59.97 kB / 476.8 MB, free: 8.496 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002448/0.5314, allocations: 1.106 MB / 477.9 MB, free: 7.387 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002184/0.5336, allocations: 1.059 MB / 479 MB, free: 6.25 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003408/0.537, allocations: 1.775 MB / 480.7 MB, free: 4.402 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.414e-06/0.537, allocations: 4 kB / 480.7 MB, free: 4.398 MB / 398.1 MB Notification: Performance of matching and sorting (n=170) (initialization_lambda0): time 0.005341/0.5424, allocations: 2.502 MB / 483.2 MB, free: 1.871 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.897e-05/0.5424, allocations: 11.94 kB / 483.3 MB, free: 1.859 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.204e-05/0.5424, allocations: 7.984 kB / 483.3 MB, free: 1.852 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002786/0.5452, allocations: 1.021 MB / 484.3 MB, free: 0.8164 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001069/0.5463, allocations: 227.7 kB / 484.5 MB, free: 0.5938 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007325/0.5537, allocations: 6.465 MB / 491 MB, free: 9.773 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001543/0.5552, allocations: 71.95 kB / 491 MB, free: 9.703 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003225/0.5556, allocations: 59.97 kB / 491.1 MB, free: 9.645 MB / 414.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.0006363/0.5562, allocations: 268 kB / 491.4 MB, free: 9.375 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005854/0.5568, allocations: 138.3 kB / 491.5 MB, free: 9.238 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005762/0.5626, allocations: 2.791 MB / 494.3 MB, free: 6.422 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.601e-05/0.5626, allocations: 19.98 kB / 494.3 MB, free: 6.402 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.302e-05/0.5627, allocations: 3.938 kB / 494.3 MB, free: 6.398 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.56e-05/0.5627, allocations: 3.984 kB / 494.3 MB, free: 6.395 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00842/0.5711, allocations: 4.526 MB / 498.8 MB, free: 1.793 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.585e-06/0.5711, allocations: 0 / 498.8 MB, free: 1.793 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008235/0.572, allocations: 159.7 kB / 499 MB, free: 1.637 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003251/0.5752, allocations: 1.288 MB / 0.4886 GB, free: 344 kB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001674/0.5754, allocations: 39.97 kB / 0.4886 GB, free: 304 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00688/0.5823, allocations: 6.742 MB / 0.4952 GB, free: 9.199 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.355e-06/0.5824, allocations: 7.969 kB / 0.4952 GB, free: 9.191 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007353/0.5897, allocations: 3.942 MB / 0.499 GB, free: 5.211 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00117/0.5909, allocations: 427.1 kB / 0.4994 GB, free: 4.773 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004273/0.5914, allocations: 31.94 kB / 0.4995 GB, free: 4.742 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001238/0.5926, allocations: 67.94 kB / 0.4995 GB, free: 4.676 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003968/0.593, allocations: 141.1 kB / 0.4997 GB, free: 4.539 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000168/0.5932, allocations: 51.97 kB / 0.4997 GB, free: 4.488 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001233/0.5945, allocations: 0.7493 MB / 0.5005 GB, free: 3.73 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.5945, allocations: 0 / 0.5005 GB, free: 3.73 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003374/0.5979, allocations: 1.05 MB / 0.5015 GB, free: 2.68 MB / 430.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.002166/0.6, allocations: 0.7383 MB / 0.5022 GB, free: 1.934 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.008213/0.6083, allocations: 3.833 MB / 0.5059 GB, free: 14.05 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.923e-06/0.6083, allocations: 0 / 0.5059 GB, free: 14.05 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003246/0.6116, allocations: 1.434 MB / 0.5073 GB, free: 12.59 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003146/0.6147, allocations: 0.6395 MB / 0.508 GB, free: 11.95 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006506/0.6213, allocations: 3.102 MB / 0.511 GB, free: 8.805 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009379/0.6222, allocations: 1.264 MB / 0.5122 GB, free: 7.516 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00175/0.624, allocations: 0.573 MB / 0.5128 GB, free: 6.938 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003959/0.6244, allocations: 127.4 kB / 0.5129 GB, free: 6.812 MB / 446.1 MB Notification: Performance of SimCode: time 6.51e-07/0.6244, allocations: 0 / 0.5129 GB, free: 6.812 MB / 446.1 MB Notification: Performance of Templates: time 0.2647/0.8891, allocations: 47.87 MB / 0.5597 GB, free: 157.6 MB / 478.1 MB make -j1 -f Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.makefile (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.sim & ./Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe 2>&1)