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_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks") Notification: Performance of loadModel(Modelica): time 1.762/1.762, allocations: 171.1 MB / 186.3 MB, free: 1.328 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.227e-05/3.236e-05, allocations: 10.17 kB / 228.1 MB, free: 7.977 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09238/0.09244, allocations: 38.76 MB / 266.9 MB, free: 1.129 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.03931/0.1318, allocations: 24.24 MB / 291.1 MB, free: 8.809 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.2527/0.3845, allocations: 12.44 MB / 303.6 MB, free: 4.012 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002389/0.387, allocations: 59.62 kB / 303.6 MB, free: 4.012 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00241/0.3894, allocations: 0.5011 MB / 304.1 MB, free: 4.012 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007496/0.397, allocations: 1.616 MB / 305.7 MB, free: 3.973 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01071/0.4078, allocations: 2.442 MB / 308.2 MB, free: 3.898 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.005227/0.413, allocations: 1.75 MB / 309.9 MB, free: 3.891 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002136/0.4152, allocations: 0.8233 MB / 310.8 MB, free: 3.867 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003505/0.4187, allocations: 0.9883 MB / 311.7 MB, free: 3.863 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003408/0.4222, allocations: 1.013 MB / 312.8 MB, free: 3.863 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007759/0.43, allocations: 2.193 MB / 315 MB, free: 3.469 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001748/0.4318, allocations: 163.4 kB / 315.1 MB, free: 3.469 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001518/0.4334, allocations: 489.4 kB / 315.6 MB, free: 3.34 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001502/0.4349, allocations: 154.8 kB / 315.7 MB, free: 3.34 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007192/0.4421, allocations: 2.621 MB / 318.4 MB, free: 2.145 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.4422, allocations: 0 / 318.4 MB, free: 2.145 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.295e-06/0.4422, allocations: 0 / 318.4 MB, free: 2.145 MB / 250.7 MB Notification: Performance of Transformations before backend: time 8.645e-05/0.4423, allocations: 0 / 318.4 MB, free: 2.145 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.007455/0.4498, allocations: 1.74 MB / 320.1 MB, free: 0.9805 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.444e-05/0.4498, allocations: 16.84 kB / 320.1 MB, free: 0.9766 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001123/0.4509, allocations: 175.9 kB / 320.3 MB, free: 0.8945 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002828/0.4538, allocations: 0.9584 MB / 321.2 MB, free: 412 kB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000198/0.454, allocations: 182.8 kB / 321.4 MB, free: 308 kB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003729/0.4544, allocations: 101.8 kB / 321.5 MB, free: 308 kB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005324/0.4598, allocations: 1.751 MB / 323.3 MB, free: 15.78 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.464e-05/0.4598, allocations: 0 / 323.3 MB, free: 15.78 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002637/0.4601, allocations: 42.83 kB / 323.3 MB, free: 15.78 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000281/0.4604, allocations: 115.5 kB / 323.4 MB, free: 15.75 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005839/0.4663, allocations: 1.778 MB / 325.2 MB, free: 15.45 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.02194/0.4882, allocations: 6.833 MB / 332 MB, free: 11.86 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003549/0.4918, allocations: 1.237 MB / 333.3 MB, free: 11.06 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01083/0.5027, allocations: 4.337 MB / 337.6 MB, free: 7.062 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.64e-05/0.5028, allocations: 47.56 kB / 337.7 MB, free: 7.008 MB / 266.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001562/0.5044, allocations: 198.7 kB / 337.9 MB, free: 6.812 MB / 266.7 MB Notification: Performance of pre-optimization done (n=97): time 5.69e-06/0.5044, allocations: 0 / 337.9 MB, free: 6.812 MB / 266.7 MB Notification: Performance of matching and sorting (n=112): time 0.03446/0.5389, allocations: 5.674 MB / 343.5 MB, free: 1.121 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001113/0.5391, allocations: 144.6 kB / 343.7 MB, free: 0.9531 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002663/0.5418, allocations: 1.106 MB / 344.8 MB, free: 15.84 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004103/0.5422, allocations: 45.7 kB / 344.8 MB, free: 15.79 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006371/0.5429, allocations: 0.5976 MB / 345.4 MB, free: 15.19 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006742/0.5435, allocations: 387.8 kB / 345.8 MB, free: 14.81 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001761/0.5437, allocations: 28 kB / 345.8 MB, free: 14.79 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002148/0.544, allocations: 374.7 kB / 346.2 MB, free: 14.41 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002183/0.5462, allocations: 0.6949 MB / 346.9 MB, free: 13.71 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002575/0.5488, allocations: 1.039 MB / 347.9 MB, free: 12.54 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002583/0.5514, allocations: 0.8177 MB / 348.7 MB, free: 11.73 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.418e-05/0.5514, allocations: 4 kB / 348.7 MB, free: 11.73 MB / 282.7 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.006901/0.5583, allocations: 2.168 MB / 350.9 MB, free: 9.605 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001589/0.56, allocations: 3.752 MB / 354.7 MB, free: 5.566 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.489e-05/0.5601, allocations: 8 kB / 354.7 MB, free: 5.559 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01371/0.5738, allocations: 1.277 MB / 356 MB, free: 4.277 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002506/0.5763, allocations: 300.5 kB / 356.2 MB, free: 4.004 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004378/0.5807, allocations: 1.608 MB / 357.9 MB, free: 2.371 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002709/0.5835, allocations: 79.86 kB / 357.9 MB, free: 2.293 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004855/0.584, allocations: 79.91 kB / 358 MB, free: 2.215 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.613e-05/0.5841, allocations: 4 kB / 358 MB, free: 2.211 MB / 282.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006331/0.5904, allocations: 1.916 MB / 359.9 MB, free: 360 kB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.168e-05/0.5905, allocations: 11.98 kB / 359.9 MB, free: 348 kB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01322/0.6037, allocations: 0.9926 MB / 360.9 MB, free: 15.35 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003495/0.6073, allocations: 311.7 kB / 361.2 MB, free: 15.06 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004355/0.6117, allocations: 1.292 MB / 362.5 MB, free: 13.75 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002702/0.6145, allocations: 83.8 kB / 362.6 MB, free: 13.67 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005714/0.6151, allocations: 72.08 kB / 362.7 MB, free: 13.6 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.001946/0.6171, allocations: 388.7 kB / 363.1 MB, free: 13.23 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007834/0.6179, allocations: 146.2 kB / 363.2 MB, free: 13.08 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01076/0.6287, allocations: 2.092 MB / 365.3 MB, free: 10.98 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.074e-05/0.6288, allocations: 12 kB / 365.3 MB, free: 10.96 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.238e-05/0.6288, allocations: 2.531 kB / 365.3 MB, free: 10.96 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.283e-05/0.6289, allocations: 15.86 kB / 365.3 MB, free: 10.95 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01561/0.6445, allocations: 3.586 MB / 368.9 MB, free: 7.336 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.023e-05/0.6446, allocations: 0 / 368.9 MB, free: 7.336 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002617/0.6472, allocations: 192.8 kB / 369.1 MB, free: 7.156 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009252/0.6566, allocations: 0.9983 MB / 370.1 MB, free: 6.156 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004984/0.6571, allocations: 31.98 kB / 370.1 MB, free: 6.125 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006121/0.6633, allocations: 1.61 MB / 371.7 MB, free: 4.492 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.09e-06/0.6633, allocations: 0 / 371.7 MB, free: 4.492 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0125/0.6759, allocations: 2.895 MB / 374.6 MB, free: 1.578 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002086/0.678, allocations: 426.9 kB / 375.1 MB, free: 1.141 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007936/0.6788, allocations: 27.95 kB / 375.1 MB, free: 1.113 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003071/0.6819, allocations: 82.84 kB / 375.2 MB, free: 1.035 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006899/0.6827, allocations: 97.16 kB / 375.3 MB, free: 0.9414 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003659/0.6831, allocations: 51.97 kB / 375.3 MB, free: 0.8906 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.002842/0.6859, allocations: 0.8363 MB / 376.1 MB, free: 52 kB / 298.7 MB Notification: Performance of sort global known variables: time 1.293e-06/0.686, allocations: 0 / 376.1 MB, free: 52 kB / 298.7 MB Notification: Performance of remove unused functions: time 0.008016/0.694, allocations: 1.156 MB / 377.3 MB, free: 14.89 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.004878/0.699, allocations: 0.8245 MB / 378.1 MB, free: 14.12 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0151/0.7142, allocations: 2.727 MB / 380.8 MB, free: 11.47 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.492e-05/0.7142, allocations: 1.781 kB / 380.9 MB, free: 11.47 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005125/0.7194, allocations: 0.869 MB / 381.7 MB, free: 10.62 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006757/0.7262, allocations: 0.6003 MB / 382.3 MB, free: 10.03 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01366/0.7399, allocations: 3.624 MB / 385.9 MB, free: 6.402 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002029/0.742, allocations: 1.312 MB / 387.3 MB, free: 5.062 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001315/0.7434, allocations: 146.1 kB / 387.4 MB, free: 4.922 MB / 314.7 MB Notification: Performance of SimCode: time 2.484e-06/0.7434, allocations: 0 / 387.4 MB, free: 4.922 MB / 314.7 MB Notification: Performance of Templates: time 0.09663/0.84, allocations: 35.39 MB / 422.8 MB, free: 1.582 MB / 346.7 MB