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.001079/0.001079, 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.001215/0.001215, 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.42/1.42, allocations: 227.4 MB / 246.8 MB, free: 10.57 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001283/0.001283, allocations: 64.83 kB / 306.9 MB, free: 0.625 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1028/0.1041, 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.1976/0.3017, allocations: 30.29 MB / 387.8 MB, free: 4.363 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01449/0.3162, allocations: 10.3 MB / 398.1 MB, free: 13.14 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002093/0.3184, allocations: 36.69 kB / 398.1 MB, free: 13.12 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001587/0.32, allocations: 480.1 kB / 398.6 MB, free: 12.84 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00662/0.3267, allocations: 1.878 MB / 400.4 MB, free: 11.71 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00813/0.3348, allocations: 2.75 MB / 403.2 MB, free: 9.832 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005715/0.3405, allocations: 3.678 MB / 406.9 MB, free: 7.766 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002248/0.3428, allocations: 1.165 MB / 408 MB, free: 7.016 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003972/0.3468, allocations: 1.514 MB / 409.5 MB, free: 6.16 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00273/0.3496, allocations: 1.424 MB / 411 MB, free: 5.316 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004229/0.35, allocations: 155.4 kB / 411.1 MB, free: 5.316 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004895/0.3549, allocations: 2.085 MB / 413.2 MB, free: 3.906 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009487/0.3559, allocations: 0.5766 MB / 413.8 MB, free: 3.328 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001316/0.3572, allocations: 0.8128 MB / 414.6 MB, free: 2.512 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006148/0.3634, allocations: 3.327 MB / 417.9 MB, free: 15.18 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.3634, allocations: 0 / 417.9 MB, free: 15.18 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3634, allocations: 4 kB / 417.9 MB, free: 15.17 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.59e-05/0.3635, allocations: 0 / 417.9 MB, free: 15.17 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.005575/0.369, allocations: 2.042 MB / 420 MB, free: 13.07 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.202e-05/0.3691, allocations: 8.031 kB / 420 MB, free: 13.07 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005489/0.3697, allocations: 162.2 kB / 420.1 MB, free: 12.91 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001401/0.3711, allocations: 0.9095 MB / 421 MB, free: 11.95 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001939/0.3713, allocations: 230.5 kB / 421.3 MB, free: 11.7 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001839/0.3715, allocations: 103.9 kB / 421.4 MB, free: 11.59 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002851/0.3743, allocations: 1.798 MB / 423.2 MB, free: 9.738 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.741e-05/0.3744, allocations: 0 / 423.2 MB, free: 9.738 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001566/0.3745, allocations: 51.91 kB / 423.2 MB, free: 9.688 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001289/0.3747, allocations: 102 kB / 423.3 MB, free: 9.586 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002903/0.3776, allocations: 1.776 MB / 425.1 MB, free: 7.801 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.01168/0.3893, allocations: 6.936 MB / 432 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002686/0.392, allocations: 1.486 MB / 433.5 MB, free: 15.06 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001384/0.3934, allocations: 0.8851 MB / 434.4 MB, free: 14.18 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009023/0.3943, allocations: 0.6411 MB / 435 MB, free: 13.41 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.535e-05/0.3943, allocations: 51.56 kB / 435.1 MB, free: 13.35 MB / 350.1 MB Notification: Performance of pre-optimization done (n=116): time 2.695e-06/0.3944, allocations: 0 / 435.1 MB, free: 13.35 MB / 350.1 MB Notification: Performance of matching and sorting (n=128): time 0.01669/0.4111, allocations: 6.622 MB / 441.7 MB, free: 6.605 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.768e-05/0.4112, allocations: 171.5 kB / 441.9 MB, free: 6.402 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001394/0.4126, allocations: 1.099 MB / 443 MB, free: 5.285 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001367/0.4127, allocations: 45.7 kB / 443 MB, free: 5.234 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000377/0.4131, allocations: 0.5004 MB / 443.5 MB, free: 4.727 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003753/0.4135, allocations: 437.8 kB / 444 MB, free: 4.293 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004611/0.414, allocations: 267.4 kB / 444.2 MB, free: 4.027 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001299/0.4141, allocations: 361.9 kB / 444.6 MB, free: 3.668 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001336/0.4154, allocations: 0.8557 MB / 445.4 MB, free: 2.809 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00156/0.417, allocations: 1.069 MB / 446.5 MB, free: 1.664 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002734/0.4197, allocations: 1.808 MB / 448.3 MB, free: 15.79 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.372e-06/0.4198, allocations: 4 kB / 448.3 MB, free: 15.79 MB / 366.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.004587/0.4244, allocations: 2.612 MB / 450.9 MB, free: 13.15 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.501e-05/0.4244, allocations: 14.44 kB / 450.9 MB, free: 13.14 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.197e-05/0.4244, allocations: 7.938 kB / 450.9 MB, free: 13.13 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003523/0.4279, allocations: 1.307 MB / 452.2 MB, free: 11.81 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001009/0.429, allocations: 215.7 kB / 452.5 MB, free: 11.6 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006779/0.4358, allocations: 6.721 MB / 459.2 MB, free: 4.52 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001297/0.4371, allocations: 72 kB / 459.2 MB, free: 4.449 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001457/0.4372, allocations: 59.97 kB / 459.3 MB, free: 4.391 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001805/0.4391, allocations: 1.102 MB / 460.4 MB, free: 3.285 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001506/0.4406, allocations: 1.068 MB / 461.5 MB, free: 2.141 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002649/0.4432, allocations: 1.77 MB / 463.2 MB, free: 304 kB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.447e-06/0.4432, allocations: 0 / 463.2 MB, free: 304 kB / 366.1 MB Notification: Performance of matching and sorting (n=170) (initialization_lambda0): time 0.004446/0.4477, allocations: 2.495 MB / 465.7 MB, free: 13.78 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.445e-05/0.4477, allocations: 12 kB / 465.7 MB, free: 13.77 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.042e-05/0.4477, allocations: 4 kB / 465.8 MB, free: 13.76 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002488/0.4502, allocations: 1.023 MB / 466.8 MB, free: 12.72 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001086/0.4513, allocations: 231.6 kB / 467 MB, free: 12.5 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006234/0.4576, allocations: 6.468 MB / 473.5 MB, free: 5.68 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001276/0.4589, allocations: 71.89 kB / 473.5 MB, free: 5.609 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001376/0.459, allocations: 63.91 kB / 473.6 MB, free: 5.547 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.0004834/0.4595, allocations: 264.9 kB / 473.9 MB, free: 5.281 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003065/0.4598, allocations: 138.3 kB / 474 MB, free: 5.145 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005113/0.4649, allocations: 2.791 MB / 476.8 MB, free: 2.332 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.429e-05/0.465, allocations: 19.98 kB / 476.8 MB, free: 2.312 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.915e-06/0.465, allocations: 4 kB / 476.8 MB, free: 2.309 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.492e-05/0.465, allocations: 7.922 kB / 476.8 MB, free: 2.301 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007264/0.4723, allocations: 4.53 MB / 481.3 MB, free: 13.7 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.534e-06/0.4723, allocations: 4.062 kB / 481.4 MB, free: 13.69 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007813/0.4731, allocations: 159.8 kB / 481.5 MB, free: 13.54 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003083/0.4762, allocations: 1.284 MB / 482.8 MB, free: 12.23 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001122/0.4763, allocations: 31.92 kB / 482.8 MB, free: 12.2 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006182/0.4825, allocations: 6.757 MB / 489.6 MB, free: 5.094 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.4825, allocations: 4 kB / 489.6 MB, free: 5.09 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006396/0.4889, allocations: 3.955 MB / 493.5 MB, free: 1.102 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000795/0.4897, allocations: 431.2 kB / 494 MB, free: 0.6602 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002421/0.49, allocations: 31.94 kB / 494 MB, free: 0.6289 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001014/0.491, allocations: 67.88 kB / 494.1 MB, free: 0.5625 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003482/0.4914, allocations: 141.1 kB / 494.2 MB, free: 436 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001279/0.4915, allocations: 51.97 kB / 494.2 MB, free: 384 kB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001/0.4925, allocations: 0.7532 MB / 495 MB, free: 15.61 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4925, allocations: 0 / 495 MB, free: 15.61 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002908/0.4954, allocations: 1.05 MB / 496.1 MB, free: 14.56 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.001634/0.4971, allocations: 0.7324 MB / 496.8 MB, free: 13.82 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.009063/0.5062, allocations: 4.396 MB / 0.4894 GB, free: 9.375 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 8.606e-06/0.5062, allocations: 7.859 kB / 0.4894 GB, free: 9.367 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002856/0.5091, allocations: 1.433 MB / 0.4908 GB, free: 7.91 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00274/0.5118, allocations: 0.6289 MB / 0.4915 GB, free: 7.305 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006191/0.518, allocations: 3.148 MB / 0.4945 GB, free: 4.141 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008903/0.5189, allocations: 1.264 MB / 0.4958 GB, free: 2.848 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.002032/0.521, allocations: 0.5647 MB / 0.4963 GB, free: 2.281 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003969/0.5214, allocations: 131.3 kB / 0.4964 GB, free: 2.152 MB / 414.1 MB Notification: Performance of SimCode: time 4.11e-07/0.5214, allocations: 0 / 0.4964 GB, free: 2.152 MB / 414.1 MB Notification: Performance of Templates: time 0.222/0.7434, 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)