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.001767/0.001767, allocations: 110.3 kB / 17.06 MB, free: 6.004 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.002091/0.002091, allocations: 198.9 kB / 18 MB, free: 5.082 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.485/1.485, 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.0014/0.0014, allocations: 55.92 kB / 327.9 MB, free: 3.301 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.123/0.1245, allocations: 46.63 MB / 374.5 MB, free: 4.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.3222/0.4468, allocations: 30.15 MB / 404.6 MB, free: 9.93 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01895/0.4657, allocations: 10.26 MB / 414.9 MB, free: 2.496 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002479/0.4683, allocations: 36.75 kB / 414.9 MB, free: 2.48 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001784/0.4701, allocations: 476.8 kB / 415.4 MB, free: 2.074 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00829/0.4784, allocations: 1.86 MB / 417.3 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01045/0.4889, allocations: 2.754 MB / 420 MB, free: 14.75 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007547/0.4965, allocations: 3.67 MB / 423.7 MB, free: 12.66 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00275/0.4992, allocations: 1.161 MB / 424.8 MB, free: 11.92 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004843/0.5041, allocations: 1.525 MB / 426.4 MB, free: 11.04 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003875/0.508, allocations: 1.417 MB / 427.8 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003942/0.5084, allocations: 157.9 kB / 427.9 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006431/0.5148, allocations: 2.071 MB / 430 MB, free: 8.047 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001068/0.5159, allocations: 0.5767 MB / 430.6 MB, free: 7.469 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001634/0.5176, allocations: 0.8089 MB / 431.4 MB, free: 6.656 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008183/0.5258, allocations: 3.347 MB / 434.7 MB, free: 3.301 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.74e-06/0.5258, allocations: 0 / 434.7 MB, free: 3.301 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.5258, allocations: 0 / 434.7 MB, free: 3.301 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.785e-05/0.5259, allocations: 0 / 434.7 MB, free: 3.301 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.005581/0.5314, allocations: 2.053 MB / 436.8 MB, free: 1.191 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.521e-05/0.5315, allocations: 12.03 kB / 436.8 MB, free: 1.18 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005909/0.5321, allocations: 162.2 kB / 437 MB, free: 1.02 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001827/0.5339, allocations: 0.942 MB / 437.9 MB, free: 36 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002077/0.5342, allocations: 234.5 kB / 438.1 MB, free: 15.78 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001864/0.5344, allocations: 99.89 kB / 438.2 MB, free: 15.68 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003211/0.5376, allocations: 1.793 MB / 440 MB, free: 13.83 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.658e-05/0.5376, allocations: 7.875 kB / 440 MB, free: 13.82 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001543/0.5378, allocations: 47.97 kB / 440.1 MB, free: 13.78 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000174/0.538, allocations: 97.98 kB / 440.2 MB, free: 13.68 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003032/0.541, allocations: 1.78 MB / 441.9 MB, free: 11.89 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.01311/0.5542, allocations: 6.914 MB / 448.9 MB, free: 4.676 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002727/0.5569, allocations: 1.487 MB / 450.3 MB, free: 3.176 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001402/0.5584, allocations: 0.8783 MB / 451.2 MB, free: 2.293 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009691/0.5593, allocations: 0.6451 MB / 451.9 MB, free: 1.52 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.724e-05/0.5594, allocations: 51.56 kB / 451.9 MB, free: 1.461 MB / 366.1 MB Notification: Performance of pre-optimization done (n=116): time 3.937e-06/0.5594, allocations: 0 / 451.9 MB, free: 1.461 MB / 366.1 MB Notification: Performance of matching and sorting (n=128): time 0.01665/0.5761, allocations: 6.625 MB / 458.5 MB, free: 10.72 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001204/0.5762, allocations: 175.5 kB / 458.7 MB, free: 10.51 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001518/0.5778, allocations: 1.096 MB / 459.8 MB, free: 9.398 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001228/0.5779, allocations: 53.7 kB / 459.9 MB, free: 9.34 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004046/0.5783, allocations: 0.5003 MB / 460.4 MB, free: 8.832 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003712/0.5787, allocations: 433.8 kB / 460.8 MB, free: 8.402 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004887/0.5792, allocations: 271.5 kB / 461.1 MB, free: 8.129 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001475/0.5793, allocations: 353.9 kB / 461.4 MB, free: 7.777 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001362/0.5807, allocations: 0.8558 MB / 462.3 MB, free: 6.918 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001544/0.5823, allocations: 1.084 MB / 463.3 MB, free: 5.758 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00285/0.5851, allocations: 1.804 MB / 465.1 MB, free: 3.887 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.847e-06/0.5851, allocations: 8 kB / 465.2 MB, free: 3.879 MB / 382.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.004835/0.59, allocations: 2.619 MB / 467.8 MB, free: 1.234 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.557e-05/0.59, allocations: 4 kB / 467.8 MB, free: 1.23 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.359e-05/0.5901, allocations: 8 kB / 467.8 MB, free: 1.223 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003522/0.5936, allocations: 1.306 MB / 469.1 MB, free: 15.9 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009515/0.5945, allocations: 211.7 kB / 469.3 MB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006809/0.6014, allocations: 6.717 MB / 476 MB, free: 8.629 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001459/0.6029, allocations: 67.94 kB / 476.1 MB, free: 8.562 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001537/0.603, allocations: 59.97 kB / 476.1 MB, free: 8.504 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002027/0.6051, allocations: 1.101 MB / 477.2 MB, free: 7.398 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001563/0.6066, allocations: 1.062 MB / 478.3 MB, free: 6.258 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002873/0.6095, allocations: 1.774 MB / 480.1 MB, free: 4.41 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.081e-06/0.6095, allocations: 8 kB / 480.1 MB, free: 4.402 MB / 398.1 MB Notification: Performance of matching and sorting (n=170) (initialization_lambda0): time 0.004563/0.6141, allocations: 2.502 MB / 482.6 MB, free: 1.875 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.685e-05/0.6141, allocations: 11.92 kB / 482.6 MB, free: 1.863 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.099e-05/0.6142, allocations: 8 kB / 482.6 MB, free: 1.855 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002456/0.6166, allocations: 1.015 MB / 483.6 MB, free: 0.8242 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009639/0.6176, allocations: 227.7 kB / 483.8 MB, free: 0.6016 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006549/0.6242, allocations: 6.473 MB / 490.3 MB, free: 9.773 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001708/0.6259, allocations: 68.02 kB / 490.4 MB, free: 9.707 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002575/0.6262, allocations: 59.97 kB / 490.4 MB, free: 9.648 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.0008153/0.627, allocations: 264 kB / 490.7 MB, free: 9.383 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006961/0.6277, allocations: 134.3 kB / 490.8 MB, free: 9.25 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006092/0.6338, allocations: 2.795 MB / 493.6 MB, free: 6.43 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.547e-05/0.6338, allocations: 15.98 kB / 493.6 MB, free: 6.414 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.952e-05/0.6339, allocations: 8 kB / 493.7 MB, free: 6.406 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.798e-05/0.6339, allocations: 7.984 kB / 493.7 MB, free: 6.398 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008499/0.6424, allocations: 4.526 MB / 498.2 MB, free: 1.797 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.979e-06/0.6424, allocations: 4 kB / 498.2 MB, free: 1.793 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008515/0.6433, allocations: 155.7 kB / 498.3 MB, free: 1.641 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003554/0.6469, allocations: 1.287 MB / 499.6 MB, free: 348 kB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001565/0.647, allocations: 39.97 kB / 499.7 MB, free: 308 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006988/0.654, allocations: 6.746 MB / 0.4945 GB, free: 9.199 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.606e-06/0.654, allocations: 3.938 kB / 0.4945 GB, free: 9.195 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007555/0.6616, allocations: 3.946 MB / 0.4984 GB, free: 5.211 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001315/0.6629, allocations: 427.1 kB / 0.4988 GB, free: 4.773 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004903/0.6634, allocations: 31.94 kB / 0.4988 GB, free: 4.742 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001276/0.6647, allocations: 63.94 kB / 0.4989 GB, free: 4.68 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00038/0.6651, allocations: 137.1 kB / 0.499 GB, free: 4.547 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001658/0.6653, allocations: 55.95 kB / 0.4991 GB, free: 4.492 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001478/0.6668, allocations: 0.7493 MB / 0.4998 GB, free: 3.734 MB / 430.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.6668, allocations: 0 / 0.4998 GB, free: 3.734 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.004304/0.6711, allocations: 1.058 MB / 0.5008 GB, free: 2.676 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.00285/0.674, allocations: 0.7296 MB / 0.5016 GB, free: 1.938 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.008683/0.6827, allocations: 3.829 MB / 0.5053 GB, free: 14.06 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.778e-06/0.6827, allocations: 4 kB / 0.5053 GB, free: 14.05 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003303/0.686, allocations: 1.434 MB / 0.5067 GB, free: 12.59 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003938/0.69, allocations: 0.6326 MB / 0.5073 GB, free: 11.96 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007578/0.6976, allocations: 3.098 MB / 0.5103 GB, free: 8.82 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001511/0.6991, allocations: 1.264 MB / 0.5116 GB, free: 7.531 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002103/0.7012, allocations: 0.5846 MB / 0.5122 GB, free: 6.941 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004341/0.7017, allocations: 123.4 kB / 0.5123 GB, free: 6.82 MB / 446.1 MB Notification: Performance of SimCode: time 1.313e-06/0.7017, allocations: 4 kB / 0.5123 GB, free: 6.816 MB / 446.1 MB Notification: Performance of Templates: time 0.3877/1.089, allocations: 47.87 MB / 0.559 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)