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.2_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks") Notification: Performance of loadModel(Modelica): time 2.24/2.24, allocations: 194.9 MB / 211.2 MB, free: 9.332 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.154e-05/3.159e-05, allocations: 7.984 kB / 258.8 MB, free: 9.695 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3153/0.3153, allocations: 44.5 MB / 303.3 MB, free: 12.66 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.04515/0.3605, allocations: 24.25 MB / 327.5 MB, free: 5.523 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.02851/0.3891, allocations: 12.46 MB / 340 MB, free: 9.043 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002356/0.3915, allocations: 63.5 kB / 340.1 MB, free: 8.98 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002408/0.3939, allocations: 0.4972 MB / 340.6 MB, free: 8.48 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007079/0.4011, allocations: 1.608 MB / 342.2 MB, free: 6.867 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009963/0.4111, allocations: 2.439 MB / 344.6 MB, free: 4.422 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.004993/0.4161, allocations: 1.738 MB / 346.3 MB, free: 2.684 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00212/0.4183, allocations: 0.8206 MB / 347.2 MB, free: 1.855 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003313/0.4216, allocations: 0.9898 MB / 348.2 MB, free: 0.8633 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003062/0.4248, allocations: 1.017 MB / 349.2 MB, free: 15.84 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007198/0.432, allocations: 2.189 MB / 351.4 MB, free: 13.65 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001519/0.4336, allocations: 164 kB / 351.5 MB, free: 13.49 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001325/0.435, allocations: 494.7 kB / 352 MB, free: 13.01 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000896/0.4359, allocations: 159.9 kB / 352.2 MB, free: 12.85 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007012/0.4429, allocations: 2.615 MB / 354.8 MB, free: 10.23 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.01e-06/0.443, allocations: 0 / 354.8 MB, free: 10.23 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.286e-06/0.443, allocations: 4 kB / 354.8 MB, free: 10.23 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.129e-05/0.4431, allocations: 0 / 354.8 MB, free: 10.23 MB / 298.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.007715/0.4508, allocations: 1.735 MB / 356.5 MB, free: 8.438 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.103e-05/0.4509, allocations: 8.031 kB / 356.5 MB, free: 8.43 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001394/0.4523, allocations: 178 kB / 356.7 MB, free: 8.254 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003256/0.4556, allocations: 0.9684 MB / 357.7 MB, free: 7.242 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002684/0.4559, allocations: 175.1 kB / 357.8 MB, free: 7.055 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000375/0.4563, allocations: 99.97 kB / 357.9 MB, free: 6.957 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005165/0.4615, allocations: 1.749 MB / 359.7 MB, free: 5.156 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.082e-05/0.4616, allocations: 0 / 359.7 MB, free: 5.156 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002418/0.4619, allocations: 43.92 kB / 359.7 MB, free: 5.113 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002731/0.4622, allocations: 113.9 kB / 359.8 MB, free: 5 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005698/0.4679, allocations: 1.788 MB / 361.6 MB, free: 3.203 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.02163/0.4895, allocations: 6.827 MB / 368.5 MB, free: 12.04 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003457/0.4931, allocations: 1.249 MB / 369.7 MB, free: 10.78 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01021/0.5033, allocations: 4.337 MB / 374 MB, free: 6.023 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.678e-05/0.5034, allocations: 55.56 kB / 374.1 MB, free: 5.961 MB / 314.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001423/0.5049, allocations: 202.6 kB / 374.3 MB, free: 5.762 MB / 314.7 MB Notification: Performance of pre-optimization done (n=97): time 5.08e-06/0.5049, allocations: 0 / 374.3 MB, free: 5.762 MB / 314.7 MB Notification: Performance of matching and sorting (n=112): time 0.03447/0.5394, allocations: 5.661 MB / 380 MB, free: 36 kB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001257/0.5395, allocations: 141.5 kB / 380.1 MB, free: 15.87 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00261/0.5422, allocations: 1.11 MB / 381.2 MB, free: 14.75 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004007/0.5426, allocations: 45.7 kB / 381.2 MB, free: 14.7 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006324/0.5433, allocations: 0.5876 MB / 381.8 MB, free: 14.11 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007686/0.5441, allocations: 390.4 kB / 382.2 MB, free: 13.72 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001802/0.5443, allocations: 28 kB / 382.2 MB, free: 13.69 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002367/0.5445, allocations: 374.7 kB / 382.6 MB, free: 13.32 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002233/0.5467, allocations: 0.6949 MB / 383.3 MB, free: 12.62 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002766/0.5496, allocations: 1.044 MB / 384.3 MB, free: 11.43 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002687/0.5523, allocations: 0.8144 MB / 385.2 MB, free: 10.62 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.67e-05/0.5524, allocations: 4 kB / 385.2 MB, free: 10.62 MB / 330.7 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.0073/0.5597, allocations: 2.168 MB / 387.3 MB, free: 8.438 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00168/0.5614, allocations: 3.754 MB / 391.1 MB, free: 4.387 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.897e-05/0.5615, allocations: 8 kB / 391.1 MB, free: 4.379 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01383/0.5754, allocations: 1.277 MB / 392.4 MB, free: 3.098 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002522/0.578, allocations: 299.6 kB / 392.7 MB, free: 2.805 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00439/0.5824, allocations: 1.61 MB / 394.3 MB, free: 1.168 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002538/0.585, allocations: 83.8 kB / 394.4 MB, free: 1.086 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003343/0.5854, allocations: 75.95 kB / 394.4 MB, free: 1.012 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.779e-05/0.5854, allocations: 4 kB / 394.4 MB, free: 1.008 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005887/0.5913, allocations: 1.917 MB / 396.4 MB, free: 15.08 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.917e-05/0.5914, allocations: 8 kB / 396.4 MB, free: 15.07 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01197/0.6034, allocations: 1.006 MB / 397.4 MB, free: 14.07 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002552/0.606, allocations: 303.5 kB / 397.7 MB, free: 13.77 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003141/0.6092, allocations: 1.29 MB / 399 MB, free: 12.45 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001762/0.611, allocations: 75.88 kB / 399 MB, free: 12.38 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002302/0.6112, allocations: 71.95 kB / 399.1 MB, free: 12.31 MB / 346.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.001178/0.6124, allocations: 393.2 kB / 399.5 MB, free: 11.91 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004996/0.6129, allocations: 146.2 kB / 399.6 MB, free: 11.77 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007128/0.6201, allocations: 2.078 MB / 401.7 MB, free: 9.676 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.418e-05/0.6202, allocations: 12 kB / 401.7 MB, free: 9.664 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.197e-06/0.6202, allocations: 3.938 kB / 401.7 MB, free: 9.66 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.323e-05/0.6202, allocations: 7.969 kB / 401.7 MB, free: 9.652 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01086/0.6311, allocations: 3.594 MB / 405.3 MB, free: 6.008 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.849e-06/0.6312, allocations: 0 / 405.3 MB, free: 6.008 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001928/0.6331, allocations: 191.7 kB / 405.5 MB, free: 5.82 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006898/0.64, allocations: 1.003 MB / 406.5 MB, free: 4.812 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003158/0.6404, allocations: 27.98 kB / 406.5 MB, free: 4.785 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003866/0.6443, allocations: 1.607 MB / 408.1 MB, free: 3.152 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.142e-06/0.6443, allocations: 3.953 kB / 408.1 MB, free: 3.148 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008302/0.6526, allocations: 2.899 MB / 411 MB, free: 232 kB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001514/0.6542, allocations: 419.1 kB / 411.5 MB, free: 15.8 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005078/0.6548, allocations: 24 kB / 411.5 MB, free: 15.77 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00221/0.657, allocations: 87.78 kB / 411.6 MB, free: 15.69 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000396/0.6574, allocations: 105.1 kB / 411.7 MB, free: 15.59 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002303/0.6577, allocations: 51.97 kB / 411.7 MB, free: 15.54 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001926/0.6596, allocations: 0.8324 MB / 412.6 MB, free: 14.7 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.21e-07/0.6596, allocations: 0 / 412.6 MB, free: 14.7 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.004764/0.6644, allocations: 1.152 MB / 413.7 MB, free: 13.55 MB / 362.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.003001/0.6675, allocations: 0.8347 MB / 414.5 MB, free: 12.7 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01091/0.6784, allocations: 2.721 MB / 417.3 MB, free: 9.984 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.14e-05/0.6785, allocations: 0 / 417.3 MB, free: 9.984 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003896/0.6824, allocations: 0.8651 MB / 418.1 MB, free: 9.125 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00532/0.6878, allocations: 0.5989 MB / 418.7 MB, free: 8.531 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01048/0.6983, allocations: 3.621 MB / 422.3 MB, free: 4.883 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001442/0.6998, allocations: 1.315 MB / 423.7 MB, free: 3.539 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009578/0.7008, allocations: 143.4 kB / 423.8 MB, free: 3.398 MB / 362.7 MB Notification: Performance of SimCode: time 1.022e-06/0.7008, allocations: 3.938 kB / 423.8 MB, free: 3.395 MB / 362.7 MB Notification: Performance of Templates: time 0.3857/1.087, allocations: 35.39 MB / 459.2 MB, free: 85.97 MB / 362.7 MB