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.001782/0.001781, allocations: 109.4 kB / 17.73 MB, free: 5.344 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.002236/0.002236, allocations: 192.2 kB / 18.66 MB, free: 4.418 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.595/1.595, allocations: 205.1 MB / 224.5 MB, free: 12.24 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.001419/0.001419, allocations: 47.94 kB / 328.5 MB, free: 3.309 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1163/0.1178, allocations: 46.61 MB / 375.1 MB, free: 4.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.3092/0.427, allocations: 30.17 MB / 405.3 MB, free: 10.2 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02405/0.4511, allocations: 10.25 MB / 415.6 MB, free: 2.738 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003003/0.4541, allocations: 33 kB / 415.6 MB, free: 2.727 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002514/0.4567, allocations: 476.1 kB / 416 MB, free: 2.32 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01058/0.4674, allocations: 1.864 MB / 417.9 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01348/0.4809, allocations: 2.755 MB / 420.7 MB, free: 15 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.008428/0.4893, allocations: 3.678 MB / 424.3 MB, free: 12.9 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002503/0.4919, allocations: 1.151 MB / 425.5 MB, free: 12.16 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004059/0.4959, allocations: 1.526 MB / 427 MB, free: 11.29 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004049/0.5, allocations: 1.414 MB / 428.4 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006029/0.5006, allocations: 160 kB / 428.6 MB, free: 10.29 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007055/0.5077, allocations: 2.071 MB / 430.7 MB, free: 8.219 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001588/0.5093, allocations: 0.5728 MB / 431.2 MB, free: 7.645 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002458/0.5118, allocations: 0.8128 MB / 432 MB, free: 6.828 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01029/0.5221, allocations: 3.343 MB / 435.4 MB, free: 3.477 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.147e-06/0.5222, allocations: 7.938 kB / 435.4 MB, free: 3.469 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.5222, allocations: 0 / 435.4 MB, free: 3.469 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.578e-05/0.5222, allocations: 0 / 435.4 MB, free: 3.469 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.005502/0.5277, allocations: 2.045 MB / 437.4 MB, free: 1.367 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.332e-05/0.5278, allocations: 12.03 kB / 437.5 MB, free: 1.355 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005966/0.5284, allocations: 170.2 kB / 437.6 MB, free: 1.188 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001647/0.5301, allocations: 0.937 MB / 438.6 MB, free: 212 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002693/0.5304, allocations: 238.5 kB / 438.8 MB, free: 15.95 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001978/0.5306, allocations: 99.89 kB / 438.9 MB, free: 15.85 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003037/0.5336, allocations: 1.79 MB / 440.7 MB, free: 14 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.018e-05/0.5337, allocations: 3.938 kB / 440.7 MB, free: 14 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001502/0.5338, allocations: 51.97 kB / 440.7 MB, free: 13.95 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001314/0.534, allocations: 105.9 kB / 440.8 MB, free: 13.84 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002905/0.5369, allocations: 1.772 MB / 442.6 MB, free: 12.06 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.01245/0.5493, allocations: 6.914 MB / 449.5 MB, free: 4.844 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002872/0.5522, allocations: 1.486 MB / 451 MB, free: 3.344 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00148/0.5537, allocations: 0.8821 MB / 451.9 MB, free: 2.457 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009627/0.5547, allocations: 0.6451 MB / 452.5 MB, free: 1.684 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.072e-05/0.5548, allocations: 55.55 kB / 452.6 MB, free: 1.621 MB / 366.1 MB Notification: Performance of pre-optimization done (n=116): time 2.725e-06/0.5548, allocations: 0 / 452.6 MB, free: 1.621 MB / 366.1 MB Notification: Performance of matching and sorting (n=128): time 0.01772/0.5725, allocations: 6.619 MB / 459.2 MB, free: 10.89 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.523e-05/0.5726, allocations: 171.5 kB / 459.4 MB, free: 10.68 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001508/0.5741, allocations: 1.096 MB / 460.5 MB, free: 9.57 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001373/0.5743, allocations: 53.7 kB / 460.5 MB, free: 9.512 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004486/0.5747, allocations: 0.5042 MB / 461 MB, free: 9 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003809/0.5751, allocations: 433.8 kB / 461.5 MB, free: 8.57 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000472/0.5756, allocations: 271.5 kB / 461.7 MB, free: 8.297 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001507/0.5758, allocations: 353.9 kB / 462.1 MB, free: 7.945 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001369/0.5771, allocations: 0.8519 MB / 462.9 MB, free: 7.09 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001564/0.5787, allocations: 1.08 MB / 464 MB, free: 5.934 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002932/0.5817, allocations: 1.804 MB / 465.8 MB, free: 4.062 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.348e-06/0.5817, allocations: 4 kB / 465.8 MB, free: 4.059 MB / 382.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.005316/0.587, allocations: 2.623 MB / 468.4 MB, free: 1.41 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.106e-05/0.5871, allocations: 4 kB / 468.4 MB, free: 1.406 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.83e-05/0.5871, allocations: 8 kB / 468.4 MB, free: 1.398 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003651/0.5908, allocations: 1.302 MB / 469.7 MB, free: 84 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009699/0.5918, allocations: 211.7 kB / 469.9 MB, free: 15.88 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006806/0.5986, allocations: 6.725 MB / 476.7 MB, free: 8.801 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00141/0.6, allocations: 67.95 kB / 476.7 MB, free: 8.734 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001497/0.6002, allocations: 55.97 kB / 476.8 MB, free: 8.68 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002138/0.6023, allocations: 1.109 MB / 477.9 MB, free: 7.566 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001597/0.6039, allocations: 1.055 MB / 479 MB, free: 6.434 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002778/0.6067, allocations: 1.778 MB / 480.7 MB, free: 4.582 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.655e-06/0.6067, allocations: 4 kB / 480.7 MB, free: 4.578 MB / 398.1 MB Notification: Performance of matching and sorting (n=170) (initialization_lambda0): time 0.004592/0.6113, allocations: 2.51 MB / 483.3 MB, free: 2.043 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.606e-05/0.6114, allocations: 4 kB / 483.3 MB, free: 2.039 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.021e-05/0.6114, allocations: 8 kB / 483.3 MB, free: 2.031 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002555/0.6139, allocations: 1.019 MB / 484.3 MB, free: 0.9961 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009966/0.615, allocations: 227.6 kB / 484.5 MB, free: 0.7734 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006907/0.6219, allocations: 6.473 MB / 491 MB, free: 9.945 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001484/0.6234, allocations: 67.94 kB / 491 MB, free: 9.879 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002351/0.6236, allocations: 55.98 kB / 491.1 MB, free: 9.824 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.0006321/0.6243, allocations: 272 kB / 491.4 MB, free: 9.551 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005315/0.6248, allocations: 134.3 kB / 491.5 MB, free: 9.418 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005883/0.6307, allocations: 2.8 MB / 494.3 MB, free: 6.594 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.283e-05/0.6307, allocations: 12 kB / 494.3 MB, free: 6.582 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.414e-05/0.6308, allocations: 7.938 kB / 494.3 MB, free: 6.574 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.602e-05/0.6308, allocations: 11.91 kB / 494.3 MB, free: 6.562 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008387/0.6392, allocations: 4.522 MB / 498.8 MB, free: 1.965 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.384e-06/0.6392, allocations: 0 / 498.8 MB, free: 1.965 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008066/0.64, allocations: 151.8 kB / 499 MB, free: 1.816 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003749/0.6438, allocations: 1.291 MB / 0.4886 GB, free: 0.5117 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001767/0.644, allocations: 39.97 kB / 0.4886 GB, free: 484 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008092/0.6521, allocations: 6.746 MB / 0.4952 GB, free: 9.371 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.6522, allocations: 0 / 0.4952 GB, free: 9.371 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007482/0.6596, allocations: 3.954 MB / 0.499 GB, free: 5.379 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001033/0.6607, allocations: 423.1 kB / 0.4995 GB, free: 4.945 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004105/0.6611, allocations: 31.94 kB / 0.4995 GB, free: 4.914 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00128/0.6624, allocations: 67.94 kB / 0.4995 GB, free: 4.848 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003872/0.6628, allocations: 141.1 kB / 0.4997 GB, free: 4.711 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001595/0.663, allocations: 51.97 kB / 0.4997 GB, free: 4.66 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001353/0.6644, allocations: 0.7493 MB / 0.5005 GB, free: 3.902 MB / 430.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.6644, allocations: 0 / 0.5005 GB, free: 3.902 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003603/0.668, allocations: 1.054 MB / 0.5015 GB, free: 2.848 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.002425/0.6704, allocations: 0.7256 MB / 0.5022 GB, free: 2.113 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00822/0.6787, allocations: 3.825 MB / 0.5059 GB, free: 14.24 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.065e-05/0.6787, allocations: 5.125 kB / 0.5059 GB, free: 14.23 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003215/0.6819, allocations: 1.437 MB / 0.5073 GB, free: 12.77 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003521/0.6855, allocations: 0.6322 MB / 0.508 GB, free: 12.13 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00697/0.6925, allocations: 3.11 MB / 0.511 GB, free: 8.984 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001211/0.6937, allocations: 1.268 MB / 0.5122 GB, free: 7.691 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002047/0.6958, allocations: 0.5691 MB / 0.5128 GB, free: 7.117 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004578/0.6962, allocations: 131.3 kB / 0.5129 GB, free: 6.988 MB / 446.1 MB Notification: Performance of SimCode: time 6.42e-07/0.6962, allocations: 0 / 0.5129 GB, free: 6.988 MB / 446.1 MB Notification: Performance of Templates: time 0.308/1.004, allocations: 46.89 MB / 0.5587 GB, free: 158.7 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)