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.001115/0.001115, allocations: 114.7 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001355/0.001355, allocations: 200.6 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.381/1.381, allocations: 227.4 MB / 247.5 MB, free: 10.35 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001149/0.001149, allocations: 55.66 kB / 308.4 MB, free: 15.88 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.1058, allocations: 50.54 MB / 358.9 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.2375/0.3434, allocations: 30.3 MB / 389.2 MB, free: 4.129 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01543/0.3588, allocations: 10.3 MB / 399.5 MB, free: 12.9 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001738/0.3606, allocations: 32.16 kB / 399.5 MB, free: 12.89 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001471/0.3622, allocations: 485 kB / 400 MB, free: 12.61 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005295/0.3675, allocations: 1.875 MB / 401.9 MB, free: 11.36 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007639/0.3751, allocations: 2.739 MB / 404.6 MB, free: 9.504 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005658/0.3808, allocations: 3.689 MB / 408.3 MB, free: 7.406 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002058/0.3829, allocations: 1.162 MB / 409.5 MB, free: 6.652 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003001/0.3859, allocations: 1.514 MB / 411 MB, free: 5.785 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002325/0.3882, allocations: 1.425 MB / 412.4 MB, free: 4.941 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003325/0.3886, allocations: 154 kB / 412.6 MB, free: 4.941 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004476/0.3931, allocations: 2.102 MB / 414.7 MB, free: 3.359 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006974/0.3938, allocations: 0.5806 MB / 415.2 MB, free: 2.777 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001194/0.395, allocations: 0.805 MB / 416 MB, free: 1.969 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005218/0.4002, allocations: 3.355 MB / 419.4 MB, free: 14.6 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.4002, allocations: 0 / 419.4 MB, free: 14.6 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.4003, allocations: 0 / 419.4 MB, free: 14.6 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.545e-05/0.4003, allocations: 0 / 419.4 MB, free: 14.6 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.005162/0.4055, allocations: 2.045 MB / 421.4 MB, free: 12.5 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.13e-05/0.4055, allocations: 12.03 kB / 421.5 MB, free: 12.49 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005208/0.406, allocations: 162.2 kB / 421.6 MB, free: 12.33 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001713/0.4078, allocations: 0.9486 MB / 422.6 MB, free: 11.34 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001854/0.408, allocations: 230.5 kB / 422.8 MB, free: 11.08 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001939/0.4082, allocations: 99.97 kB / 422.9 MB, free: 10.98 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002866/0.411, allocations: 1.794 MB / 424.7 MB, free: 9.133 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.885e-05/0.4111, allocations: 4 kB / 424.7 MB, free: 9.129 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000145/0.4112, allocations: 39.92 kB / 424.7 MB, free: 9.09 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001239/0.4114, allocations: 102 kB / 424.8 MB, free: 8.988 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002929/0.4143, allocations: 1.78 MB / 426.6 MB, free: 7.199 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.01182/0.4261, allocations: 6.921 MB / 433.5 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002656/0.4288, allocations: 1.49 MB / 435 MB, free: 14.47 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001349/0.4302, allocations: 0.8822 MB / 435.9 MB, free: 13.59 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008726/0.4311, allocations: 0.6451 MB / 436.5 MB, free: 12.82 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.988e-05/0.4311, allocations: 47.5 kB / 436.6 MB, free: 12.76 MB / 350.1 MB Notification: Performance of pre-optimization done (n=116): time 2.935e-06/0.4311, allocations: 0 / 436.6 MB, free: 12.76 MB / 350.1 MB Notification: Performance of matching and sorting (n=128): time 0.01632/0.4475, allocations: 6.622 MB / 443.2 MB, free: 6.02 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001024/0.4476, allocations: 167.5 kB / 443.4 MB, free: 5.82 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001487/0.4491, allocations: 1.099 MB / 444.5 MB, free: 4.703 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000124/0.4492, allocations: 49.7 kB / 444.5 MB, free: 4.648 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003881/0.4496, allocations: 0.5004 MB / 445 MB, free: 4.141 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003527/0.45, allocations: 433.8 kB / 445.4 MB, free: 3.711 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004797/0.4505, allocations: 267.4 kB / 445.7 MB, free: 3.445 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001373/0.4506, allocations: 361.8 kB / 446.1 MB, free: 3.086 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001322/0.4519, allocations: 0.8558 MB / 446.9 MB, free: 2.227 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001544/0.4535, allocations: 1.076 MB / 448 MB, free: 1.074 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002657/0.4562, allocations: 1.812 MB / 449.8 MB, free: 15.19 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.968e-06/0.4562, allocations: 0 / 449.8 MB, free: 15.19 MB / 366.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.004625/0.4608, allocations: 2.612 MB / 452.4 MB, free: 12.55 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.425e-05/0.4609, allocations: 11.94 kB / 452.4 MB, free: 12.54 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.426e-05/0.4609, allocations: 7.984 kB / 452.4 MB, free: 12.54 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003561/0.4644, allocations: 1.306 MB / 453.7 MB, free: 11.21 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009794/0.4654, allocations: 215.6 kB / 453.9 MB, free: 11 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006523/0.472, allocations: 6.717 MB / 460.7 MB, free: 3.938 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001351/0.4733, allocations: 63.95 kB / 460.7 MB, free: 3.875 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001673/0.4735, allocations: 59.97 kB / 460.8 MB, free: 3.816 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001835/0.4754, allocations: 1.106 MB / 461.9 MB, free: 2.707 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001497/0.4769, allocations: 1.064 MB / 463 MB, free: 1.566 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002626/0.4795, allocations: 1.771 MB / 464.7 MB, free: 15.72 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.284e-06/0.4795, allocations: 0 / 464.7 MB, free: 15.72 MB / 382.1 MB Notification: Performance of matching and sorting (n=170) (initialization_lambda0): time 0.004329/0.4839, allocations: 2.498 MB / 467.2 MB, free: 13.2 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.504e-05/0.4839, allocations: 8 kB / 467.2 MB, free: 13.19 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.166e-06/0.4839, allocations: 4 kB / 467.2 MB, free: 13.18 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002461/0.4864, allocations: 1.027 MB / 468.3 MB, free: 12.14 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001041/0.4874, allocations: 231.6 kB / 468.5 MB, free: 11.92 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006076/0.4935, allocations: 6.466 MB / 475 MB, free: 5.098 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001396/0.495, allocations: 76 kB / 475 MB, free: 5.023 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001574/0.4951, allocations: 59.97 kB / 475.1 MB, free: 4.965 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.0004309/0.4956, allocations: 256.8 kB / 475.3 MB, free: 4.707 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002932/0.4959, allocations: 142.3 kB / 475.5 MB, free: 4.566 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005053/0.5009, allocations: 2.795 MB / 478.3 MB, free: 1.75 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.887e-05/0.501, allocations: 16 kB / 478.3 MB, free: 1.734 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/0.501, allocations: 4 kB / 478.3 MB, free: 1.73 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.794e-05/0.501, allocations: 11.91 kB / 478.3 MB, free: 1.719 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007461/0.5085, allocations: 4.529 MB / 482.8 MB, free: 13.11 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.662e-06/0.5085, allocations: 0 / 482.8 MB, free: 13.11 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008475/0.5094, allocations: 155.8 kB / 483 MB, free: 12.96 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003155/0.5125, allocations: 1.275 MB / 484.3 MB, free: 11.67 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001454/0.5127, allocations: 47.91 kB / 484.3 MB, free: 11.62 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00671/0.5194, allocations: 6.738 MB / 491 MB, free: 4.535 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.5194, allocations: 0 / 491 MB, free: 4.535 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007373/0.5268, allocations: 3.957 MB / 495 MB, free: 0.5391 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001205/0.5281, allocations: 427.2 kB / 495.4 MB, free: 104 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002681/0.5283, allocations: 31.98 kB / 495.5 MB, free: 72 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001074/0.5294, allocations: 64.08 kB / 495.5 MB, free: 8 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004734/0.5299, allocations: 145.1 kB / 495.7 MB, free: 15.87 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001374/0.53, allocations: 51.97 kB / 495.7 MB, free: 15.82 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001123/0.5312, allocations: 0.7532 MB / 496.5 MB, free: 15.05 MB / 414.1 MB Notification: Performance of sort global known variables: time 4.31e-07/0.5312, allocations: 0 / 496.5 MB, free: 15.05 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003034/0.5342, allocations: 1.054 MB / 497.5 MB, free: 14 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.001869/0.5361, allocations: 0.7371 MB / 498.3 MB, free: 13.26 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.008007/0.5441, allocations: 3.837 MB / 0.4903 GB, free: 9.375 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.823e-06/0.5442, allocations: 0 / 0.4903 GB, free: 9.375 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003176/0.5474, allocations: 1.442 MB / 0.4917 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.002685/0.5501, allocations: 0.621 MB / 0.4923 GB, free: 7.297 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006374/0.5565, allocations: 3.106 MB / 0.4954 GB, free: 4.176 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001022/0.5575, allocations: 1.268 MB / 0.4966 GB, free: 2.879 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001821/0.5594, allocations: 0.5684 MB / 0.4972 GB, free: 2.309 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003742/0.5597, allocations: 131.3 kB / 0.4973 GB, free: 2.18 MB / 414.1 MB Notification: Performance of SimCode: time 8.91e-07/0.5597, allocations: 0 / 0.4973 GB, free: 2.18 MB / 414.1 MB Notification: Performance of Templates: time 0.2609/0.8206, allocations: 46.48 MB / 0.5427 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 -s cvode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe 2>&1)