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.2_Modelica.Fluid.Examples.Tanks.TanksWithOverflow") Notification: Performance of loadModel(Modelica): time 1.811/1.811, allocations: 194.9 MB / 210.6 MB, free: 8.355 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.889e-05/2.892e-05, allocations: 7.984 kB / 258.8 MB, free: 8.059 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2877/0.2878, allocations: 44.51 MB / 303.3 MB, free: 12.95 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.03325/0.3211, allocations: 20.4 MB / 323.7 MB, free: 9.168 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01987/0.341, allocations: 9.235 MB / 333 MB, free: 15.91 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001612/0.3427, allocations: 47.62 kB / 333 MB, free: 15.87 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001812/0.3445, allocations: 393.8 kB / 333.4 MB, free: 15.48 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005307/0.3499, allocations: 1.293 MB / 334.7 MB, free: 14.18 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006947/0.3569, allocations: 1.804 MB / 336.5 MB, free: 12.38 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.003712/0.3606, allocations: 1.591 MB / 338.1 MB, free: 10.78 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001578/0.3622, allocations: 0.8209 MB / 338.9 MB, free: 9.961 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002243/0.3645, allocations: 0.9548 MB / 339.8 MB, free: 9.004 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001998/0.3665, allocations: 0.9118 MB / 340.8 MB, free: 8.09 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006113/0.3726, allocations: 1.767 MB / 342.5 MB, free: 6.32 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001086/0.3738, allocations: 144 kB / 342.7 MB, free: 6.18 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009631/0.3747, allocations: 458.8 kB / 343.1 MB, free: 5.73 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007514/0.3755, allocations: 144 kB / 343.3 MB, free: 5.59 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006598/0.3821, allocations: 2.284 MB / 345.5 MB, free: 3.301 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.628e-06/0.3822, allocations: 4 kB / 345.5 MB, free: 3.297 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.266e-06/0.3822, allocations: 0 / 345.5 MB, free: 3.297 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.26e-05/0.3822, allocations: 0 / 345.5 MB, free: 3.297 MB / 282.7 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.009212/0.3915, allocations: 1.622 MB / 347.2 MB, free: 1.621 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.278e-05/0.3915, allocations: 8.031 kB / 347.2 MB, free: 1.613 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001049/0.3926, allocations: 166.2 kB / 347.3 MB, free: 1.449 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003161/0.3958, allocations: 0.8829 MB / 348.2 MB, free: 0.5234 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003559/0.3962, allocations: 234.5 kB / 348.4 MB, free: 272 kB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004544/0.3966, allocations: 99.97 kB / 348.5 MB, free: 172 kB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006881/0.4035, allocations: 1.79 MB / 350.3 MB, free: 14.32 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.009e-05/0.4036, allocations: 4 kB / 350.3 MB, free: 14.32 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003365/0.404, allocations: 43.97 kB / 350.4 MB, free: 14.27 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003133/0.4043, allocations: 106 kB / 350.5 MB, free: 14.17 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007048/0.4114, allocations: 1.768 MB / 352.3 MB, free: 12.39 MB / 298.7 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.02689/0.4383, allocations: 7.014 MB / 359.3 MB, free: 5.074 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006197/0.4445, allocations: 1.49 MB / 360.8 MB, free: 3.566 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001714/0.4463, allocations: 0.6568 MB / 361.4 MB, free: 2.781 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.633e-05/0.4464, allocations: 43.56 kB / 361.5 MB, free: 2.73 MB / 298.7 MB Notification: Performance of pre-optimization done (n=116): time 6.132e-06/0.4464, allocations: 0 / 361.5 MB, free: 2.73 MB / 298.7 MB Notification: Performance of matching and sorting (n=128): time 0.02951/0.4759, allocations: 6.663 MB / 368.1 MB, free: 11.95 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001161/0.4761, allocations: 171.5 kB / 368.3 MB, free: 11.74 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002032/0.4781, allocations: 0.9647 MB / 369.3 MB, free: 10.76 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003453/0.4785, allocations: 53.7 kB / 369.3 MB, free: 10.7 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005722/0.4791, allocations: 0.5004 MB / 369.8 MB, free: 10.19 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000621/0.4797, allocations: 437.7 kB / 370.2 MB, free: 9.758 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001693/0.4799, allocations: 32 kB / 370.3 MB, free: 9.727 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001693/0.4801, allocations: 357.9 kB / 370.6 MB, free: 9.371 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002435/0.4825, allocations: 0.8432 MB / 371.5 MB, free: 8.527 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002675/0.4852, allocations: 1.074 MB / 372.5 MB, free: 7.371 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002759/0.488, allocations: 0.8887 MB / 373.4 MB, free: 6.48 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.122e-05/0.488, allocations: 4 kB / 373.4 MB, free: 6.477 MB / 314.7 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.008312/0.4964, allocations: 2.619 MB / 376 MB, free: 3.832 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007766/0.4972, allocations: 2.004 MB / 378 MB, free: 1.676 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.968e-05/0.4972, allocations: 7.953 kB / 378.1 MB, free: 1.668 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005975/0.5032, allocations: 1.311 MB / 379.4 MB, free: 348 kB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001928/0.5052, allocations: 215.7 kB / 379.6 MB, free: 132 kB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01002/0.5152, allocations: 6.385 MB / 386 MB, free: 9.402 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002479/0.5177, allocations: 99.83 kB / 386.1 MB, free: 9.305 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002305/0.518, allocations: 56.17 kB / 386.1 MB, free: 9.25 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.325e-05/0.518, allocations: 5.719 kB / 386.1 MB, free: 9.246 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00681/0.5248, allocations: 2.178 MB / 388.3 MB, free: 7.051 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.561e-05/0.5249, allocations: 4 kB / 388.3 MB, free: 7.047 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003283/0.5282, allocations: 0.7853 MB / 389.1 MB, free: 6.246 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001982/0.5302, allocations: 235.6 kB / 389.3 MB, free: 6.016 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009647/0.5398, allocations: 6.858 MB / 396.2 MB, free: 14.71 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002062/0.5419, allocations: 95.84 kB / 396.3 MB, free: 14.61 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002056/0.5422, allocations: 55.98 kB / 396.3 MB, free: 14.56 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 12 (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],$PRE.hysteresis.y,hysteresis.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (128): * Single equations (assignments): 123 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 3 {2 3,4 11,4 11} Notification: Performance of prepare postOptimizeDAE: time 0.00108/0.5433, allocations: 373.5 kB / 396.7 MB, free: 14.18 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004014/0.5437, allocations: 134.4 kB / 396.8 MB, free: 14.05 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008692/0.5524, allocations: 2.811 MB / 399.6 MB, free: 11.21 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-05/0.5524, allocations: 16 kB / 399.6 MB, free: 11.2 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.738e-06/0.5525, allocations: 4 kB / 399.7 MB, free: 11.19 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.854e-05/0.5525, allocations: 7.969 kB / 399.7 MB, free: 11.18 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01257/0.5651, allocations: 4.534 MB / 404.2 MB, free: 6.574 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.053e-05/0.5651, allocations: 4 kB / 404.2 MB, free: 6.57 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00154/0.5667, allocations: 155.8 kB / 404.3 MB, free: 6.418 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006259/0.573, allocations: 1.302 MB / 405.7 MB, free: 5.102 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002835/0.5733, allocations: 39.97 kB / 405.7 MB, free: 5.062 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01047/0.5838, allocations: 6.403 MB / 412.1 MB, free: 14.32 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/0.5838, allocations: 0 / 412.1 MB, free: 14.32 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01144/0.5953, allocations: 3.948 MB / 416 MB, free: 10.34 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001328/0.5966, allocations: 443.1 kB / 416.5 MB, free: 9.883 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004005/0.5971, allocations: 27.94 kB / 416.5 MB, free: 9.855 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002096/0.5992, allocations: 99.88 kB / 416.6 MB, free: 9.758 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000494/0.5997, allocations: 145.1 kB / 416.7 MB, free: 9.613 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002159/0.5999, allocations: 48.53 kB / 416.8 MB, free: 9.566 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001569/0.6015, allocations: 0.7374 MB / 417.5 MB, free: 8.82 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.6015, allocations: 0 / 417.5 MB, free: 8.82 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.004039/0.6056, allocations: 1.046 MB / 418.6 MB, free: 7.773 MB / 362.7 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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 3 {2 4,4 14,4 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.002468/0.6081, allocations: 0.7176 MB / 419.3 MB, free: 7.051 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01235/0.6204, allocations: 3.874 MB / 423.2 MB, free: 3.113 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.054e-06/0.6205, allocations: 0 / 423.2 MB, free: 3.113 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005638/0.6261, allocations: 1.434 MB / 424.6 MB, free: 1.652 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004428/0.6306, allocations: 0.5535 MB / 425.2 MB, free: 1.102 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2498/0.8804, allocations: 3.574 MB / 428.7 MB, free: 108.9 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001082/0.8815, allocations: 1.298 MB / 430 MB, free: 108.1 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.003811/0.8853, allocations: 0.6987 MB / 430.7 MB, free: 108.1 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005126/0.8859, allocations: 109.7 kB / 430.8 MB, free: 108.1 MB / 362.7 MB Notification: Performance of SimCode: time 1.002e-06/0.8859, allocations: 0 / 430.8 MB, free: 108.1 MB / 362.7 MB Notification: Performance of Templates: time 0.09045/0.9764, allocations: 43.16 MB / 474 MB, free: 70.92 MB / 362.7 MB