Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2.2_Modelica.Fluid.Examples.Tanks.TanksWithOverflow") translateModel(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001612/0.001612, allocations: 112.2 kB / 17.06 MB, free: 5.992 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.001888/0.001888, allocations: 196 kB / 18.01 MB, free: 5.074 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.462/1.462, allocations: 205.1 MB / 223.9 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.001246/0.001246, allocations: 48.41 kB / 327.9 MB, free: 3.305 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1166/0.1178, allocations: 46.62 MB / 374.5 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.3089/0.4268, allocations: 30.16 MB / 404.6 MB, free: 9.918 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02023/0.4471, allocations: 10.25 MB / 414.9 MB, free: 2.488 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003304/0.4505, allocations: 36.44 kB / 414.9 MB, free: 2.473 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00218/0.4528, allocations: 472.2 kB / 415.4 MB, free: 2.07 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008316/0.4611, allocations: 1.868 MB / 417.3 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01072/0.4718, allocations: 2.749 MB / 420 MB, free: 14.74 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007731/0.4796, allocations: 3.676 MB / 423.7 MB, free: 12.65 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002996/0.4826, allocations: 1.159 MB / 424.8 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005274/0.4879, allocations: 1.502 MB / 426.3 MB, free: 11.05 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004134/0.4921, allocations: 1.421 MB / 427.8 MB, free: 10.21 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001107/0.4932, allocations: 156 kB / 427.9 MB, free: 10.13 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007868/0.5011, allocations: 2.067 MB / 430 MB, free: 8.062 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001641/0.5028, allocations: 0.5767 MB / 430.6 MB, free: 7.484 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002956/0.5058, allocations: 0.805 MB / 431.4 MB, free: 6.676 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0102/0.516, allocations: 3.364 MB / 434.7 MB, free: 3.301 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.959e-06/0.5161, allocations: 4 kB / 434.7 MB, free: 3.297 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.375e-06/0.5161, allocations: 0 / 434.7 MB, free: 3.297 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.6e-05/0.5162, allocations: 0 / 434.7 MB, free: 3.297 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.008026/0.5242, allocations: 2.107 MB / 436.8 MB, free: 1.129 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.31e-05/0.5243, allocations: 8.031 kB / 436.8 MB, free: 1.121 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008973/0.5252, allocations: 171 kB / 437 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001991/0.5272, allocations: 0.9455 MB / 438 MB, free: 15.96 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002289/0.5275, allocations: 238.5 kB / 438.2 MB, free: 15.7 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001899/0.5277, allocations: 99.94 kB / 438.3 MB, free: 15.61 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003285/0.531, allocations: 1.794 MB / 440.1 MB, free: 13.75 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.397e-05/0.531, allocations: 7.938 kB / 440.1 MB, free: 13.75 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001563/0.5312, allocations: 39.97 kB / 440.1 MB, free: 13.71 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001404/0.5313, allocations: 106 kB / 440.2 MB, free: 13.6 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00312/0.5344, allocations: 1.776 MB / 442 MB, free: 11.82 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.01279/0.5472, allocations: 6.932 MB / 448.9 MB, free: 4.586 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002671/0.55, allocations: 1.482 MB / 450.4 MB, free: 3.09 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001386/0.5514, allocations: 0.8783 MB / 451.3 MB, free: 2.207 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000903/0.5523, allocations: 0.6529 MB / 452 MB, free: 1.426 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.74e-05/0.5523, allocations: 47.5 kB / 452 MB, free: 1.371 MB / 366.1 MB Notification: Performance of pre-optimization done (n=116): time 3.136e-06/0.5523, allocations: 0 / 452 MB, free: 1.371 MB / 366.1 MB Notification: Performance of matching and sorting (n=128): time 0.01752/0.5699, allocations: 6.639 MB / 458.6 MB, free: 10.62 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001428/0.5701, allocations: 171.5 kB / 458.8 MB, free: 10.41 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00201/0.5721, allocations: 1.103 MB / 459.9 MB, free: 9.293 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001443/0.5723, allocations: 49.7 kB / 460 MB, free: 9.238 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004938/0.5728, allocations: 0.5052 MB / 460.5 MB, free: 8.727 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005332/0.5733, allocations: 464 kB / 460.9 MB, free: 8.27 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006055/0.5739, allocations: 263.5 kB / 461.2 MB, free: 8.004 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000186/0.5741, allocations: 361.9 kB / 461.5 MB, free: 7.645 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001645/0.5758, allocations: 0.8449 MB / 462.4 MB, free: 6.797 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001731/0.5775, allocations: 1.088 MB / 463.5 MB, free: 5.633 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003028/0.5806, allocations: 1.804 MB / 465.3 MB, free: 3.762 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.939e-06/0.5806, allocations: 3.984 kB / 465.3 MB, free: 3.758 MB / 382.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.005224/0.5858, allocations: 2.628 MB / 467.9 MB, free: 1.105 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.279e-05/0.5859, allocations: 8 kB / 467.9 MB, free: 1.098 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.785e-05/0.5859, allocations: 4 kB / 467.9 MB, free: 1.094 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003836/0.5897, allocations: 1.305 MB / 469.2 MB, free: 15.78 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001048/0.5908, allocations: 215.6 kB / 469.4 MB, free: 15.57 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007701/0.5985, allocations: 6.722 MB / 476.1 MB, free: 8.496 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001546/0.6001, allocations: 71.89 kB / 476.2 MB, free: 8.426 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002528/0.6004, allocations: 59.97 kB / 476.3 MB, free: 8.367 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002146/0.6025, allocations: 1.105 MB / 477.4 MB, free: 7.258 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001824/0.6044, allocations: 1.062 MB / 478.4 MB, free: 6.117 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003023/0.6074, allocations: 1.77 MB / 480.2 MB, free: 4.273 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.028e-05/0.6074, allocations: 4.312 kB / 480.2 MB, free: 4.27 MB / 398.1 MB Notification: Performance of matching and sorting (n=170) (initialization_lambda0): time 0.004888/0.6123, allocations: 2.507 MB / 482.7 MB, free: 1.738 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.712e-05/0.6123, allocations: 8 kB / 482.7 MB, free: 1.73 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.308e-06/0.6124, allocations: 4 kB / 482.7 MB, free: 1.727 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002596/0.615, allocations: 1.026 MB / 483.8 MB, free: 0.6875 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009777/0.616, allocations: 227.6 kB / 484 MB, free: 476 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007153/0.6231, allocations: 6.47 MB / 490.5 MB, free: 9.641 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001726/0.6249, allocations: 71.94 kB / 490.5 MB, free: 9.57 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003163/0.6252, allocations: 67.95 kB / 490.6 MB, free: 9.504 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.0007366/0.626, allocations: 260 kB / 490.8 MB, free: 9.242 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006673/0.6267, allocations: 143 kB / 491 MB, free: 9.102 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00594/0.6326, allocations: 2.799 MB / 493.8 MB, free: 6.277 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.784e-05/0.6327, allocations: 16 kB / 493.8 MB, free: 6.262 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.384e-05/0.6327, allocations: 3.938 kB / 493.8 MB, free: 6.258 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.839e-05/0.6327, allocations: 7.969 kB / 493.8 MB, free: 6.25 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008373/0.6411, allocations: 4.526 MB / 498.3 MB, free: 1.648 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.476e-06/0.6411, allocations: 0 / 498.3 MB, free: 1.648 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007816/0.6419, allocations: 163.8 kB / 498.5 MB, free: 1.488 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003134/0.6451, allocations: 1.288 MB / 499.8 MB, free: 192 kB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001224/0.6452, allocations: 35.98 kB / 499.8 MB, free: 156 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006973/0.6522, allocations: 6.747 MB / 0.4947 GB, free: 9.051 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.215e-06/0.6522, allocations: 0 / 0.4947 GB, free: 9.051 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00704/0.6592, allocations: 3.958 MB / 0.4986 GB, free: 5.055 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001006/0.6603, allocations: 439.9 kB / 0.499 GB, free: 4.605 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004523/0.6607, allocations: 31.94 kB / 0.499 GB, free: 4.574 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001408/0.6622, allocations: 68.06 kB / 0.4991 GB, free: 4.508 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003781/0.6626, allocations: 145.1 kB / 0.4992 GB, free: 4.367 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001663/0.6627, allocations: 51.97 kB / 0.4993 GB, free: 4.316 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001336/0.6641, allocations: 0.7493 MB / 0.5 GB, free: 3.559 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6641, allocations: 4 kB / 0.5 GB, free: 3.555 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.004018/0.6681, allocations: 1.061 MB / 0.501 GB, free: 2.492 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.002349/0.6705, allocations: 0.7391 MB / 0.5018 GB, free: 1.742 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.008007/0.6785, allocations: 3.834 MB / 0.5055 GB, free: 13.86 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.781e-06/0.6785, allocations: 4.062 kB / 0.5055 GB, free: 13.86 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003064/0.6816, allocations: 1.434 MB / 0.5069 GB, free: 12.39 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003237/0.6848, allocations: 0.632 MB / 0.5075 GB, free: 11.76 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00666/0.6915, allocations: 3.134 MB / 0.5106 GB, free: 8.582 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001049/0.6926, allocations: 1.26 MB / 0.5118 GB, free: 7.297 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001856/0.6945, allocations: 0.5847 MB / 0.5124 GB, free: 6.707 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004193/0.6949, allocations: 123.3 kB / 0.5125 GB, free: 6.586 MB / 446.1 MB Notification: Performance of SimCode: time 1.753e-06/0.6949, allocations: 0 / 0.5125 GB, free: 6.586 MB / 446.1 MB Notification: Performance of Templates: time 0.3265/1.021, allocations: 46.9 MB / 0.5583 GB, free: 157.6 MB / 478.1 MB make -j1 -f Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.makefile (rm -f Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; mkfifo Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe >> ../files/Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.sim & ./Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.TanksWithOverflow -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe 2>&1)