Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001076/0.001076, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001335/0.001335, allocations: 210.4 kB / 18.58 MB, free: 4.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.379/1.379, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00126/0.00126, allocations: 65.33 kB / 306.9 MB, free: 0.6133 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1074/0.1087, allocations: 50.53 MB / 357.5 MB, free: 14.09 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.1974/0.3062, allocations: 30.29 MB / 387.8 MB, free: 4.375 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01396/0.3202, allocations: 10.3 MB / 398.1 MB, free: 13.14 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001777/0.322, allocations: 32.31 kB / 398.1 MB, free: 13.13 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001551/0.3236, allocations: 479.4 kB / 398.6 MB, free: 12.86 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005541/0.3291, allocations: 1.881 MB / 400.4 MB, free: 11.72 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008425/0.3376, allocations: 2.744 MB / 403.2 MB, free: 9.855 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005206/0.3428, allocations: 3.685 MB / 406.9 MB, free: 7.785 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001835/0.3447, allocations: 1.169 MB / 408 MB, free: 7.031 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002963/0.3476, allocations: 1.502 MB / 409.5 MB, free: 6.188 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002145/0.3498, allocations: 1.427 MB / 411 MB, free: 5.34 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002985/0.3501, allocations: 156.3 kB / 411.1 MB, free: 5.34 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004388/0.3545, allocations: 2.091 MB / 413.2 MB, free: 3.945 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007043/0.3552, allocations: 0.5766 MB / 413.8 MB, free: 3.367 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001189/0.3564, allocations: 0.805 MB / 414.6 MB, free: 2.559 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005247/0.3617, allocations: 3.324 MB / 417.9 MB, free: 15.23 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.3617, allocations: 3.938 kB / 417.9 MB, free: 15.22 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.3617, allocations: 0 / 417.9 MB, free: 15.22 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.01e-05/0.3618, allocations: 0 / 417.9 MB, free: 15.22 MB / 334.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.004876/0.3666, allocations: 2.049 MB / 420 MB, free: 13.12 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.792e-05/0.3667, allocations: 12.03 kB / 420 MB, free: 13.11 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005479/0.3673, allocations: 166.2 kB / 420.1 MB, free: 12.94 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0014/0.3687, allocations: 0.9017 MB / 421 MB, free: 12 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000184/0.3689, allocations: 234.5 kB / 421.3 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002096/0.3691, allocations: 99.97 kB / 421.4 MB, free: 11.64 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002849/0.3719, allocations: 1.794 MB / 423.2 MB, free: 9.785 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.488e-05/0.372, allocations: 0 / 423.2 MB, free: 9.785 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001432/0.3721, allocations: 43.92 kB / 423.2 MB, free: 9.742 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001264/0.3723, allocations: 102 kB / 423.3 MB, free: 9.641 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002874/0.3751, allocations: 1.78 MB / 425.1 MB, free: 7.852 MB / 334.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.01152/0.3867, allocations: 6.94 MB / 432 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00273/0.3894, allocations: 1.486 MB / 433.5 MB, free: 15.11 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001328/0.3908, allocations: 0.8851 MB / 434.4 MB, free: 14.22 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008829/0.3917, allocations: 0.6489 MB / 435 MB, free: 13.45 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.292e-05/0.3917, allocations: 47.56 kB / 435.1 MB, free: 13.39 MB / 350.1 MB Notification: Performance of pre-optimization done (n=116): time 3.176e-06/0.3917, allocations: 0 / 435.1 MB, free: 13.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=128): time 0.01693/0.4087, allocations: 6.618 MB / 441.7 MB, free: 6.652 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.432e-05/0.4088, allocations: 175.5 kB / 441.9 MB, free: 6.445 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001573/0.4104, allocations: 1.096 MB / 443 MB, free: 5.332 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001394/0.4105, allocations: 53.7 kB / 443 MB, free: 5.273 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004158/0.4109, allocations: 0.5004 MB / 443.5 MB, free: 4.766 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000413/0.4114, allocations: 429.8 kB / 444 MB, free: 4.34 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000512/0.4119, allocations: 267.4 kB / 444.2 MB, free: 4.074 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001505/0.412, allocations: 361.9 kB / 444.6 MB, free: 3.715 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001434/0.4135, allocations: 0.8519 MB / 445.4 MB, free: 2.859 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001645/0.4151, allocations: 1.08 MB / 446.5 MB, free: 1.703 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00292/0.4181, allocations: 1.8 MB / 448.3 MB, free: 15.83 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.432e-06/0.4181, allocations: 0 / 448.3 MB, free: 15.83 MB / 366.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.004857/0.423, allocations: 2.619 MB / 450.9 MB, free: 13.19 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.441e-05/0.423, allocations: 15.92 kB / 450.9 MB, free: 13.17 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.327e-05/0.423, allocations: 4 kB / 450.9 MB, free: 13.17 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003662/0.4267, allocations: 1.311 MB / 452.2 MB, free: 11.84 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001014/0.4277, allocations: 215.6 kB / 452.5 MB, free: 11.63 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006914/0.4346, allocations: 6.714 MB / 459.2 MB, free: 4.566 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001355/0.436, allocations: 72.02 kB / 459.2 MB, free: 4.496 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002272/0.4363, allocations: 55.97 kB / 459.3 MB, free: 4.441 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002048/0.4383, allocations: 1.106 MB / 460.4 MB, free: 3.332 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001662/0.44, allocations: 1.064 MB / 461.5 MB, free: 2.191 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00284/0.4428, allocations: 1.778 MB / 463.2 MB, free: 348 kB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.081e-06/0.4429, allocations: 3.984 kB / 463.2 MB, free: 344 kB / 366.1 MB Notification: Performance of matching and sorting (n=170) (initialization_lambda0): time 0.004747/0.4476, allocations: 2.499 MB / 465.7 MB, free: 13.81 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.32e-05/0.4477, allocations: 8 kB / 465.8 MB, free: 13.8 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.342e-05/0.4477, allocations: 8 kB / 465.8 MB, free: 13.79 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002635/0.4503, allocations: 1.023 MB / 466.8 MB, free: 12.76 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001036/0.4514, allocations: 227.6 kB / 467 MB, free: 12.54 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006554/0.4579, allocations: 6.469 MB / 473.5 MB, free: 5.715 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001369/0.4593, allocations: 67.94 kB / 473.5 MB, free: 5.648 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002778/0.4596, allocations: 59.97 kB / 473.6 MB, free: 5.59 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.0005981/0.4602, allocations: 264.9 kB / 473.9 MB, free: 5.324 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004649/0.4607, allocations: 138.3 kB / 474 MB, free: 5.188 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005844/0.4665, allocations: 2.799 MB / 476.8 MB, free: 2.367 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.308e-05/0.4666, allocations: 12 kB / 476.8 MB, free: 2.355 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.414e-05/0.4666, allocations: 4 kB / 476.8 MB, free: 2.352 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.388e-05/0.4666, allocations: 15.91 kB / 476.8 MB, free: 2.336 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008432/0.4751, allocations: 4.526 MB / 481.4 MB, free: 13.74 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.094e-06/0.4751, allocations: 0 / 481.4 MB, free: 13.74 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007939/0.4759, allocations: 159.8 kB / 481.5 MB, free: 13.58 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003242/0.4792, allocations: 1.287 MB / 482.8 MB, free: 12.28 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001535/0.4793, allocations: 43.91 kB / 482.8 MB, free: 12.24 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006872/0.4862, allocations: 6.749 MB / 489.6 MB, free: 5.133 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.4862, allocations: 0 / 489.6 MB, free: 5.133 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007032/0.4933, allocations: 3.959 MB / 493.5 MB, free: 1.141 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008904/0.4942, allocations: 431.1 kB / 494 MB, free: 0.6992 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003364/0.4945, allocations: 28 kB / 494 MB, free: 0.6719 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001171/0.4957, allocations: 67.88 kB / 494.1 MB, free: 0.6055 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003676/0.4961, allocations: 141.1 kB / 494.2 MB, free: 480 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001506/0.4963, allocations: 55.95 kB / 494.3 MB, free: 424 kB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001196/0.4975, allocations: 0.7494 MB / 495 MB, free: 15.65 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4975, allocations: 0 / 495 MB, free: 15.65 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003162/0.5007, allocations: 1.058 MB / 496.1 MB, free: 14.59 MB / 414.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.001923/0.5026, allocations: 0.7231 MB / 496.8 MB, free: 13.87 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.009363/0.512, allocations: 4.4 MB / 0.4894 GB, free: 9.418 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 8.826e-06/0.512, allocations: 3.859 kB / 0.4894 GB, free: 9.414 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003154/0.5152, allocations: 1.437 MB / 0.4908 GB, free: 7.953 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003427/0.5186, allocations: 0.629 MB / 0.4915 GB, free: 7.34 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006598/0.5252, allocations: 3.138 MB / 0.4945 GB, free: 4.191 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001038/0.5263, allocations: 1.268 MB / 0.4958 GB, free: 2.895 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0021/0.5284, allocations: 0.5844 MB / 0.4963 GB, free: 2.309 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003941/0.5288, allocations: 119.4 kB / 0.4964 GB, free: 2.191 MB / 414.1 MB Notification: Performance of SimCode: time 6.31e-07/0.5288, allocations: 0 / 0.4964 GB, free: 2.191 MB / 414.1 MB Notification: Performance of Templates: time 0.2202/0.749, allocations: 46.52 MB / 0.5419 GB, free: 149.3 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.makefile (rm -f Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.sim & ./Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe 2>&1)