Running command: translateModel(Modelica.Fluid.Examples.Tanks.ThreeTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.ThreeTanks") Notification: Performance of loadModel(Modelica): time 1.652/1.652, allocations: 171.2 MB / 185.7 MB, free: 1.391 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.727e-05/2.733e-05, allocations: 8 kB / 228.1 MB, free: 7.332 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08011/0.08016, allocations: 38.76 MB / 266.9 MB, free: 492 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.04019/0.1204, allocations: 24.25 MB / 291.2 MB, free: 8.16 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.2422/0.3627, allocations: 12.43 MB / 303.6 MB, free: 4.332 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002323/0.3651, allocations: 63.59 kB / 303.6 MB, free: 4.332 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002273/0.3674, allocations: 0.5038 MB / 304.1 MB, free: 4.328 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006758/0.3742, allocations: 1.624 MB / 305.8 MB, free: 4.281 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009577/0.3838, allocations: 2.44 MB / 308.2 MB, free: 4.203 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.004809/0.3886, allocations: 1.756 MB / 310 MB, free: 4.199 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001877/0.3906, allocations: 0.8177 MB / 310.8 MB, free: 4.18 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003287/0.3939, allocations: 0.9808 MB / 311.8 MB, free: 4.18 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003172/0.3971, allocations: 1.02 MB / 312.8 MB, free: 4.176 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007519/0.4047, allocations: 2.186 MB / 315 MB, free: 3.75 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001619/0.4063, allocations: 164.9 kB / 315.1 MB, free: 3.75 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001306/0.4077, allocations: 488.9 kB / 315.6 MB, free: 3.621 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001077/0.4088, allocations: 155.4 kB / 315.8 MB, free: 3.621 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006833/0.4156, allocations: 2.627 MB / 318.4 MB, free: 2.422 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.4157, allocations: 0 / 318.4 MB, free: 2.422 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.555e-06/0.4157, allocations: 0 / 318.4 MB, free: 2.422 MB / 250.7 MB Notification: Performance of Transformations before backend: time 8.074e-05/0.4158, allocations: 0 / 318.4 MB, free: 2.422 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.007036/0.4228, allocations: 1.741 MB / 320.1 MB, free: 1.262 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.633e-05/0.4229, allocations: 9.812 kB / 320.1 MB, free: 1.262 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001109/0.424, allocations: 173.8 kB / 320.3 MB, free: 1.18 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002696/0.4267, allocations: 0.9641 MB / 321.3 MB, free: 0.6836 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001896/0.427, allocations: 188.9 kB / 321.5 MB, free: 0.582 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000348/0.4273, allocations: 94.33 kB / 321.6 MB, free: 0.582 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004787/0.4321, allocations: 1.752 MB / 323.3 MB, free: 60 kB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.372e-05/0.4322, allocations: 0 / 323.3 MB, free: 60 kB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002408/0.4325, allocations: 43.64 kB / 323.3 MB, free: 60 kB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002449/0.4327, allocations: 116.5 kB / 323.5 MB, free: 32 kB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006025/0.4388, allocations: 1.818 MB / 325.3 MB, free: 15.86 MB / 266.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.02132/0.4601, allocations: 6.835 MB / 332.1 MB, free: 12.05 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00341/0.4636, allocations: 1.228 MB / 333.3 MB, free: 11.25 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01687/0.4805, allocations: 4.351 MB / 337.7 MB, free: 6.734 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.205e-05/0.4807, allocations: 43.56 kB / 337.7 MB, free: 6.684 MB / 266.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002249/0.483, allocations: 202.7 kB / 337.9 MB, free: 6.484 MB / 266.7 MB Notification: Performance of pre-optimization done (n=97): time 5.911e-06/0.483, allocations: 0 / 337.9 MB, free: 6.484 MB / 266.7 MB Notification: Performance of matching and sorting (n=112): time 0.05079/0.5338, allocations: 5.681 MB / 343.6 MB, free: 0.7891 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001378/0.534, allocations: 141.5 kB / 343.8 MB, free: 0.6211 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003705/0.5377, allocations: 1.102 MB / 344.9 MB, free: 15.51 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005284/0.5383, allocations: 49.7 kB / 344.9 MB, free: 15.45 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001045/0.5394, allocations: 0.6113 MB / 345.5 MB, free: 14.84 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001102/0.5405, allocations: 394 kB / 345.9 MB, free: 14.46 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003144/0.5408, allocations: 28 kB / 345.9 MB, free: 14.43 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0003092/0.5412, allocations: 361.9 kB / 346.3 MB, free: 14.07 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003591/0.5448, allocations: 0.7027 MB / 347 MB, free: 13.37 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00417/0.549, allocations: 1.041 MB / 348 MB, free: 12.2 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004148/0.5532, allocations: 0.8149 MB / 348.8 MB, free: 11.39 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.427e-05/0.5533, allocations: 4 kB / 348.8 MB, free: 11.38 MB / 282.7 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.01189/0.5652, allocations: 2.251 MB / 351.1 MB, free: 9.176 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00233/0.5676, allocations: 3.779 MB / 354.9 MB, free: 5.137 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.669e-05/0.5677, allocations: 12 kB / 354.9 MB, free: 5.125 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02088/0.5886, allocations: 1.275 MB / 356.2 MB, free: 3.848 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003885/0.5926, allocations: 298.4 kB / 356.5 MB, free: 3.574 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006623/0.5993, allocations: 1.605 MB / 358.1 MB, free: 1.945 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004145/0.6035, allocations: 87.81 kB / 358.1 MB, free: 1.859 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007099/0.6042, allocations: 71.12 kB / 358.2 MB, free: 1.793 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.134e-05/0.6043, allocations: 4 kB / 358.2 MB, free: 1.789 MB / 282.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01005/0.6144, allocations: 1.921 MB / 360.1 MB, free: 15.92 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.898e-05/0.6145, allocations: 18.52 kB / 360.2 MB, free: 15.91 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01807/0.6326, allocations: 1.012 MB / 361.2 MB, free: 14.89 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003952/0.6366, allocations: 307.3 kB / 361.5 MB, free: 14.61 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004475/0.6411, allocations: 1.303 MB / 362.8 MB, free: 13.29 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003353/0.6445, allocations: 91.75 kB / 362.9 MB, free: 13.2 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000544/0.6451, allocations: 63.97 kB / 362.9 MB, free: 13.14 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (156): * Single equations (assignments): 155 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {8 18} Notification: Performance of prepare postOptimizeDAE: time 0.001675/0.6468, allocations: 387.8 kB / 363.3 MB, free: 12.77 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007051/0.6475, allocations: 146.2 kB / 363.4 MB, free: 12.62 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01051/0.6581, allocations: 2.096 MB / 365.5 MB, free: 10.52 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-05/0.6582, allocations: 12 kB / 365.5 MB, free: 10.5 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.38e-05/0.6582, allocations: 7.938 kB / 365.6 MB, free: 10.5 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.993e-05/0.6582, allocations: 3.984 kB / 365.6 MB, free: 10.49 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01004/0.6683, allocations: 3.585 MB / 369.1 MB, free: 6.883 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.578e-06/0.6683, allocations: 0 / 369.1 MB, free: 6.883 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001859/0.6702, allocations: 192.8 kB / 369.3 MB, free: 6.703 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006575/0.6768, allocations: 0.9994 MB / 370.3 MB, free: 5.699 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002691/0.6771, allocations: 31.98 kB / 370.4 MB, free: 5.668 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003817/0.6809, allocations: 1.618 MB / 372 MB, free: 4.027 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.011e-06/0.681, allocations: 4 kB / 372 MB, free: 4.023 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00796/0.689, allocations: 2.898 MB / 374.9 MB, free: 1.109 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001405/0.6904, allocations: 423 kB / 375.3 MB, free: 0.6758 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004467/0.6909, allocations: 20 kB / 375.3 MB, free: 0.6562 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002097/0.693, allocations: 87.78 kB / 375.4 MB, free: 0.5703 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003986/0.6934, allocations: 101.2 kB / 375.5 MB, free: 484 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002205/0.6936, allocations: 51.97 kB / 375.6 MB, free: 432 kB / 298.7 MB Notification: Performance of sorting global known variables: time 0.001839/0.6955, allocations: 0.8324 MB / 376.4 MB, free: 15.59 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.6955, allocations: 0 / 376.4 MB, free: 15.59 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.00485/0.7004, allocations: 1.152 MB / 377.5 MB, free: 14.43 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T,tank3.level,tank3.medium.T) * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (96): * Single equations (assignments): 95 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {9 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.003022/0.7035, allocations: 0.8243 MB / 378.4 MB, free: 13.66 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.01051/0.714, allocations: 2.785 MB / 381.1 MB, free: 10.95 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 9.408e-06/0.7141, allocations: 1.781 kB / 381.1 MB, free: 10.95 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003662/0.7177, allocations: 0.8804 MB / 382 MB, free: 10.07 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005143/0.7229, allocations: 0.5967 MB / 382.6 MB, free: 9.484 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009582/0.7325, allocations: 3.566 MB / 386.2 MB, free: 5.91 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001274/0.7339, allocations: 1.322 MB / 387.5 MB, free: 4.559 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.004271/0.7382, allocations: 0.6952 MB / 388.2 MB, free: 3.855 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005377/0.7387, allocations: 107.4 kB / 388.3 MB, free: 3.75 MB / 314.7 MB Notification: Performance of SimCode: time 1.122e-06/0.7387, allocations: 0 / 388.3 MB, free: 3.75 MB / 314.7 MB Notification: Performance of Templates: time 0.1068/0.8455, allocations: 41.27 MB / 429.6 MB, free: 10.56 MB / 362.7 MB