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.005312/0.005312, allocations: 102 kB / 15.73 MB, free: 6.039 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.001288/0.001288, allocations: 194 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.489/1.489, allocations: 205.1 MB / 222.5 MB, free: 12.23 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.00137/0.00137, allocations: 63.91 kB / 326.5 MB, free: 3.293 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.111/0.1124, allocations: 46.62 MB / 373.2 MB, free: 4.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.3133/0.4257, allocations: 30.15 MB / 403.3 MB, free: 9.93 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01802/0.4438, allocations: 10.26 MB / 413.6 MB, free: 2.504 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002428/0.4462, allocations: 36.78 kB / 413.6 MB, free: 2.488 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001766/0.4481, allocations: 467.5 kB / 414.1 MB, free: 2.09 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006623/0.4547, allocations: 1.869 MB / 415.9 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01043/0.4652, allocations: 2.744 MB / 418.7 MB, free: 14.77 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007364/0.4726, allocations: 3.679 MB / 422.4 MB, free: 12.67 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002969/0.4756, allocations: 1.158 MB / 423.5 MB, free: 11.93 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005427/0.481, allocations: 1.525 MB / 425 MB, free: 11.05 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004106/0.4852, allocations: 1.414 MB / 426.5 MB, free: 10.21 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005123/0.4857, allocations: 158 kB / 426.6 MB, free: 10.11 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006743/0.4925, allocations: 2.071 MB / 428.7 MB, free: 8.039 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001336/0.4938, allocations: 0.5766 MB / 429.3 MB, free: 7.461 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001685/0.4955, allocations: 0.805 MB / 430.1 MB, free: 6.652 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008399/0.504, allocations: 3.351 MB / 433.4 MB, free: 3.293 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.763e-06/0.504, allocations: 0 / 433.4 MB, free: 3.293 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.577e-06/0.504, allocations: 0 / 433.4 MB, free: 3.293 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.923e-05/0.5041, allocations: 3.938 kB / 433.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.006274/0.5103, allocations: 2.045 MB / 435.5 MB, free: 1.188 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.318e-05/0.5104, allocations: 16.03 kB / 435.5 MB, free: 1.172 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006148/0.511, allocations: 163.1 kB / 435.6 MB, free: 1.012 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00198/0.513, allocations: 0.9409 MB / 436.6 MB, free: 28 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002063/0.5132, allocations: 238.5 kB / 436.8 MB, free: 15.77 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001969/0.5135, allocations: 99.89 kB / 436.9 MB, free: 15.67 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002956/0.5164, allocations: 1.79 MB / 438.7 MB, free: 13.82 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.224e-05/0.5165, allocations: 3.938 kB / 438.7 MB, free: 13.82 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001473/0.5166, allocations: 47.97 kB / 438.7 MB, free: 13.77 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001509/0.5168, allocations: 102 kB / 438.8 MB, free: 13.67 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00323/0.52, allocations: 1.776 MB / 440.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.01274/0.5328, allocations: 6.921 MB / 447.5 MB, free: 4.66 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00271/0.5355, allocations: 1.482 MB / 449 MB, free: 3.164 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001281/0.5368, allocations: 0.8783 MB / 449.9 MB, free: 2.281 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008712/0.5377, allocations: 0.649 MB / 450.6 MB, free: 1.504 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.582e-05/0.5377, allocations: 51.56 kB / 450.6 MB, free: 1.445 MB / 366.1 MB Notification: Performance of pre-optimization done (n=116): time 3.357e-06/0.5378, allocations: 0 / 450.6 MB, free: 1.445 MB / 366.1 MB Notification: Performance of matching and sorting (n=128): time 0.01671/0.5545, allocations: 6.623 MB / 457.2 MB, free: 10.71 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001301/0.5546, allocations: 171.5 kB / 457.4 MB, free: 10.5 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001554/0.5562, allocations: 1.096 MB / 458.5 MB, free: 9.391 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001285/0.5564, allocations: 53.7 kB / 458.5 MB, free: 9.332 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004293/0.5568, allocations: 0.5042 MB / 459 MB, free: 8.82 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004309/0.5572, allocations: 437.8 kB / 459.5 MB, free: 8.387 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005192/0.5578, allocations: 267.5 kB / 459.7 MB, free: 8.117 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001886/0.558, allocations: 353.9 kB / 460.1 MB, free: 7.766 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001423/0.5594, allocations: 0.8519 MB / 460.9 MB, free: 6.91 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001644/0.561, allocations: 1.088 MB / 462 MB, free: 5.746 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002835/0.5639, allocations: 1.804 MB / 463.8 MB, free: 3.875 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.085e-06/0.5639, allocations: 4 kB / 463.8 MB, free: 3.871 MB / 382.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.00562/0.5695, allocations: 2.619 MB / 466.4 MB, free: 1.227 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.696e-05/0.5696, allocations: 4 kB / 466.4 MB, free: 1.223 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.244e-05/0.5696, allocations: 8 kB / 466.5 MB, free: 1.215 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004108/0.5737, allocations: 1.302 MB / 467.8 MB, free: 15.9 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001016/0.5748, allocations: 211.7 kB / 468 MB, free: 15.69 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008726/0.5835, allocations: 6.724 MB / 474.7 MB, free: 8.621 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00163/0.5852, allocations: 63.95 kB / 474.8 MB, free: 8.559 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003074/0.5855, allocations: 59.97 kB / 474.8 MB, free: 8.5 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002465/0.588, allocations: 1.105 MB / 475.9 MB, free: 7.391 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002034/0.59, allocations: 1.059 MB / 477 MB, free: 6.254 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003377/0.5934, allocations: 1.778 MB / 478.8 MB, free: 4.402 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.061e-05/0.5935, allocations: 4 kB / 478.8 MB, free: 4.398 MB / 398.1 MB Notification: Performance of matching and sorting (n=170) (initialization_lambda0): time 0.005223/0.5987, allocations: 2.502 MB / 481.3 MB, free: 1.871 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.724e-05/0.5987, allocations: 7.938 kB / 481.3 MB, free: 1.863 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.464e-05/0.5988, allocations: 8.312 kB / 481.3 MB, free: 1.855 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002605/0.6014, allocations: 1.027 MB / 482.3 MB, free: 0.8125 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001092/0.6025, allocations: 227.6 kB / 482.5 MB, free: 0.5898 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00733/0.6098, allocations: 6.466 MB / 489 MB, free: 9.77 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001629/0.6115, allocations: 67.94 kB / 489.1 MB, free: 9.703 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004017/0.6119, allocations: 59.97 kB / 489.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.0007933/0.6127, allocations: 264.1 kB / 489.4 MB, free: 9.379 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005859/0.6133, allocations: 134.3 kB / 489.5 MB, free: 9.246 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00612/0.6194, allocations: 2.803 MB / 492.3 MB, free: 6.418 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.955e-05/0.6195, allocations: 12 kB / 492.3 MB, free: 6.406 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.695e-05/0.6195, allocations: 7.938 kB / 492.3 MB, free: 6.398 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.97e-05/0.6195, allocations: 7.969 kB / 492.3 MB, free: 6.391 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00917/0.6287, allocations: 4.526 MB / 496.9 MB, free: 1.789 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.085e-06/0.6288, allocations: 0 / 496.9 MB, free: 1.789 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008183/0.6296, allocations: 151.8 kB / 497 MB, free: 1.641 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003209/0.6328, allocations: 1.291 MB / 498.3 MB, free: 344 kB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001463/0.633, allocations: 39.98 kB / 498.3 MB, free: 304 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007534/0.6405, allocations: 6.751 MB / 0.4933 GB, free: 9.191 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.6406, allocations: 0 / 0.4933 GB, free: 9.191 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007472/0.6481, allocations: 3.95 MB / 0.4971 GB, free: 5.203 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001154/0.6492, allocations: 423.2 kB / 0.4975 GB, free: 4.77 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003803/0.6496, allocations: 31.94 kB / 0.4975 GB, free: 4.738 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001201/0.6508, allocations: 67.94 kB / 0.4976 GB, free: 4.672 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004113/0.6513, allocations: 145 kB / 0.4977 GB, free: 4.531 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001629/0.6514, allocations: 51.97 kB / 0.4978 GB, free: 4.48 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001219/0.6527, allocations: 0.7493 MB / 0.4985 GB, free: 3.723 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6527, allocations: 0 / 0.4985 GB, free: 3.723 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003706/0.6564, allocations: 1.058 MB / 0.4996 GB, free: 2.664 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.002301/0.6587, allocations: 0.725 MB / 0.5003 GB, free: 1.93 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00983/0.6686, allocations: 3.825 MB / 0.504 GB, free: 14.05 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.858e-06/0.6686, allocations: 4.438 kB / 0.504 GB, free: 14.05 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003297/0.6719, allocations: 1.442 MB / 0.5054 GB, free: 12.58 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003964/0.6759, allocations: 0.6239 MB / 0.506 GB, free: 11.95 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008381/0.6843, allocations: 3.102 MB / 0.5091 GB, free: 8.812 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001361/0.6857, allocations: 1.268 MB / 0.5103 GB, free: 7.52 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002404/0.6882, allocations: 0.5807 MB / 0.5109 GB, free: 6.934 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000481/0.6887, allocations: 123.4 kB / 0.511 GB, free: 6.812 MB / 446.1 MB Notification: Performance of SimCode: time 9.11e-07/0.6887, allocations: 0 / 0.511 GB, free: 6.812 MB / 446.1 MB Notification: Performance of Templates: time 0.4038/1.092, allocations: 47.87 MB / 0.5577 GB, free: 157.6 MB / 478.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)