Running command: translateModel(Modelica.Fluid.Examples.Tanks.EmptyTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank2.level|tank2.ports.1..m_flow",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks") Notification: Performance of loadModel(Modelica): time 1.672/1.672, allocations: 171.1 MB / 186.3 MB, free: 1.41 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.024e-05/4.027e-05, allocations: 4 kB / 228.1 MB, free: 7.992 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0856/0.08567, allocations: 38.78 MB / 266.9 MB, free: 1.129 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.02246/0.1082, allocations: 13.37 MB / 280.3 MB, free: 3.707 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.01258/0.1208, allocations: 5.734 MB / 286 MB, free: 13.96 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001133/0.122, allocations: 31.75 kB / 286 MB, free: 13.93 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001142/0.1232, allocations: 282.4 kB / 286.3 MB, free: 13.66 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003146/0.1264, allocations: 0.7669 MB / 287.1 MB, free: 12.89 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004818/0.1312, allocations: 1.188 MB / 288.3 MB, free: 11.7 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.002535/0.1338, allocations: 0.9219 MB / 289.2 MB, free: 10.77 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009864/0.1348, allocations: 423.7 kB / 289.6 MB, free: 10.36 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001318/0.1361, allocations: 0.5105 MB / 290.1 MB, free: 9.848 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001167/0.1373, allocations: 490.6 kB / 290.6 MB, free: 9.367 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003409/0.1408, allocations: 1.085 MB / 291.7 MB, free: 8.281 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006455/0.1415, allocations: 88 kB / 291.8 MB, free: 8.195 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000537/0.142, allocations: 243.3 kB / 292 MB, free: 7.957 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004057/0.1424, allocations: 84 kB / 292.1 MB, free: 7.875 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00344/0.1459, allocations: 1.286 MB / 293.4 MB, free: 6.586 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.146, allocations: 0 / 293.4 MB, free: 6.586 MB / 250.7 MB Notification: Performance of FrontEnd: time 3.397e-06/0.146, allocations: 4 kB / 293.4 MB, free: 6.582 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.322e-05/0.146, allocations: 0 / 293.4 MB, free: 6.582 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: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.003704/0.1497, allocations: 1.018 MB / 294.4 MB, free: 5.512 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.086e-05/0.1498, allocations: 8.031 kB / 294.4 MB, free: 5.504 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006068/0.1504, allocations: 95.06 kB / 294.5 MB, free: 5.41 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001675/0.1521, allocations: 0.5857 MB / 295.1 MB, free: 4.781 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001617/0.1523, allocations: 104.7 kB / 295.2 MB, free: 4.668 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002066/0.1525, allocations: 55.98 kB / 295.2 MB, free: 4.613 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002571/0.1551, allocations: 0.8923 MB / 296.1 MB, free: 3.695 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.069e-05/0.1552, allocations: 4 kB / 296.1 MB, free: 3.691 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001287/0.1553, allocations: 23.98 kB / 296.1 MB, free: 3.668 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001419/0.1555, allocations: 57.27 kB / 296.2 MB, free: 3.609 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00259/0.1581, allocations: 0.8405 MB / 297 MB, free: 2.77 MB / 250.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.3046/0.4627, allocations: 3.488 MB / 300.5 MB, free: 30.35 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002732/0.4655, allocations: 0.6554 MB / 301.2 MB, free: 30.32 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006413/0.472, allocations: 2.066 MB / 303.2 MB, free: 29.11 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.18e-05/0.4721, allocations: 41 kB / 303.3 MB, free: 29.07 MB / 250.7 MB Notification: Performance of pre-optimization done (n=56): time 6.523e-06/0.4721, allocations: 0 / 303.3 MB, free: 29.07 MB / 250.7 MB Notification: Performance of matching and sorting (n=66): time 0.03746/0.5096, allocations: 2.864 MB / 306.2 MB, free: 27.87 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.856e-05/0.5097, allocations: 84.84 kB / 306.2 MB, free: 27.77 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001866/0.5116, allocations: 0.6045 MB / 306.8 MB, free: 27.51 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002575/0.5119, allocations: 42.58 kB / 306.9 MB, free: 27.46 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003555/0.5123, allocations: 346.6 kB / 307.2 MB, free: 27.16 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004773/0.5171, allocations: 233.8 kB / 307.4 MB, free: 26.98 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000152/0.5173, allocations: 15.56 kB / 307.5 MB, free: 26.97 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001437/0.5175, allocations: 342.1 kB / 307.8 MB, free: 26.64 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001702/0.5192, allocations: 358.4 kB / 308.1 MB, free: 26.52 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005959/0.5252, allocations: 0.5075 MB / 308.7 MB, free: 26.21 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001813/0.5271, allocations: 413.6 kB / 309.1 MB, free: 26.05 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.057e-06/0.5271, allocations: 1.953 kB / 309.1 MB, free: 26.05 MB / 250.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.005001/0.5321, allocations: 1.117 MB / 310.2 MB, free: 25.61 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002968/0.5352, allocations: 1.653 MB / 311.8 MB, free: 23.86 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.363e-05/0.5352, allocations: 6.688 kB / 311.8 MB, free: 23.86 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002968/0.5382, allocations: 443.4 kB / 312.3 MB, free: 23.79 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001619/0.5399, allocations: 167.2 kB / 312.4 MB, free: 23.77 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002063/0.542, allocations: 1.02 MB / 313.5 MB, free: 23.06 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001271/0.5433, allocations: 46.25 kB / 313.5 MB, free: 23.05 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001279/0.5435, allocations: 35.81 kB / 313.5 MB, free: 23.04 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.632e-05/0.5435, allocations: 6.25 kB / 313.5 MB, free: 23.04 MB / 250.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002727/0.5462, allocations: 0.9339 MB / 314.5 MB, free: 22.68 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.765e-05/0.5463, allocations: 8.219 kB / 314.5 MB, free: 22.68 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009359/0.5472, allocations: 244.2 kB / 314.7 MB, free: 22.61 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001361/0.5486, allocations: 171.8 kB / 314.9 MB, free: 22.56 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001084/0.5497, allocations: 0.8041 MB / 315.7 MB, free: 21.88 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008419/0.5506, allocations: 44.17 kB / 315.7 MB, free: 21.86 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001034/0.5507, allocations: 35.52 kB / 315.8 MB, free: 21.85 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 83 * 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 {4 9} Notification: Performance of prepare postOptimizeDAE: time 0.0006329/0.5514, allocations: 253.6 kB / 316 MB, free: 21.64 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002612/0.5516, allocations: 77.09 kB / 316.1 MB, free: 21.61 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003215/0.5549, allocations: 1.094 MB / 317.2 MB, free: 20.98 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.089e-05/0.5549, allocations: 7.625 kB / 317.2 MB, free: 20.98 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.241e-05/0.555, allocations: 6.25 kB / 317.2 MB, free: 20.98 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.003e-05/0.555, allocations: 9.297 kB / 317.2 MB, free: 20.97 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005484/0.5605, allocations: 2.002 MB / 319.2 MB, free: 19.68 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.208e-06/0.5606, allocations: 0 / 319.2 MB, free: 19.68 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001113/0.5617, allocations: 122 kB / 319.3 MB, free: 19.65 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001975/0.5637, allocations: 447.9 kB / 319.8 MB, free: 19.46 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001524/0.5639, allocations: 16.98 kB / 319.8 MB, free: 19.45 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001744/0.5656, allocations: 1.031 MB / 320.8 MB, free: 18.64 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.5657, allocations: 0 / 320.8 MB, free: 18.64 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003994/0.5697, allocations: 1.598 MB / 322.4 MB, free: 17.74 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007243/0.5705, allocations: 250.3 kB / 322.7 MB, free: 17.52 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002888/0.5708, allocations: 15.97 kB / 322.7 MB, free: 17.51 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001182/0.572, allocations: 47.64 kB / 322.7 MB, free: 17.49 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002016/0.5722, allocations: 65.58 kB / 322.8 MB, free: 17.45 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001116/0.5724, allocations: 23.73 kB / 322.8 MB, free: 17.45 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0008119/0.5732, allocations: 478.8 kB / 323.3 MB, free: 17 MB / 250.7 MB Notification: Performance of sort global known variables: time 5.41e-07/0.5732, allocations: 0 / 323.3 MB, free: 17 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.002207/0.5754, allocations: 0.5733 MB / 323.8 MB, free: 16.48 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T) * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 57 * 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 {4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.001494/0.577, allocations: 468.8 kB / 324.3 MB, free: 16.09 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.004442/0.5814, allocations: 1.362 MB / 325.7 MB, free: 14.73 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 7.293e-06/0.5815, allocations: 0 / 325.7 MB, free: 14.73 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001701/0.5832, allocations: 472.6 kB / 326.1 MB, free: 14.27 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002827/0.586, allocations: 354.8 kB / 326.5 MB, free: 13.93 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004704/0.5908, allocations: 2.064 MB / 328.5 MB, free: 11.83 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004872/0.5913, allocations: 1.003 MB / 329.5 MB, free: 10.8 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004656/0.5918, allocations: 83.41 kB / 329.6 MB, free: 10.72 MB / 250.7 MB Notification: Performance of SimCode: time 1.343e-06/0.5918, allocations: 0 / 329.6 MB, free: 10.72 MB / 250.7 MB Notification: Performance of Templates: time 0.03846/0.6303, allocations: 18.91 MB / 348.5 MB, free: 7.836 MB / 266.7 MB