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.2_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks") Notification: Performance of loadModel(Modelica): time 2.103/2.103, allocations: 194.9 MB / 211.2 MB, free: 8.352 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.026e-05/4.032e-05, allocations: 4 kB / 258.8 MB, free: 8.707 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3169/0.3169, allocations: 44.5 MB / 303.3 MB, free: 12.79 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.02318/0.3402, allocations: 13.38 MB / 316.7 MB, free: 308 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01315/0.3534, allocations: 5.736 MB / 322.4 MB, free: 10.56 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001244/0.3547, allocations: 31.75 kB / 322.4 MB, free: 10.53 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001272/0.356, allocations: 278.5 kB / 322.7 MB, free: 10.25 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003326/0.3594, allocations: 0.763 MB / 323.5 MB, free: 9.488 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004936/0.3643, allocations: 1.192 MB / 324.7 MB, free: 8.293 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002558/0.3669, allocations: 0.9219 MB / 325.6 MB, free: 7.367 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009996/0.368, allocations: 423.6 kB / 326 MB, free: 6.953 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001641/0.3696, allocations: 0.5104 MB / 326.5 MB, free: 6.441 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001451/0.3711, allocations: 490.6 kB / 327 MB, free: 5.961 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003466/0.3747, allocations: 1.092 MB / 328.1 MB, free: 4.867 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006388/0.3754, allocations: 84 kB / 328.2 MB, free: 4.785 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004755/0.3758, allocations: 247.4 kB / 328.4 MB, free: 4.543 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003566/0.3762, allocations: 83.94 kB / 328.5 MB, free: 4.461 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003295/0.3795, allocations: 1.274 MB / 329.8 MB, free: 3.184 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.3796, allocations: 7.938 kB / 329.8 MB, free: 3.176 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.685e-06/0.3796, allocations: 0 / 329.8 MB, free: 3.176 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.001e-05/0.3796, allocations: 0 / 329.8 MB, free: 3.176 MB / 266.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.003687/0.3833, allocations: 1.025 MB / 330.8 MB, free: 2.102 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.956e-05/0.3834, allocations: 8.031 kB / 330.8 MB, free: 2.094 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005866/0.384, allocations: 98.95 kB / 330.9 MB, free: 1.996 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001671/0.3857, allocations: 0.5663 MB / 331.5 MB, free: 1.383 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001761/0.3859, allocations: 112.7 kB / 331.6 MB, free: 1.262 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002003/0.3861, allocations: 59.83 kB / 331.6 MB, free: 1.203 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002529/0.3887, allocations: 0.8963 MB / 332.5 MB, free: 288 kB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.888e-05/0.3887, allocations: 0 / 332.5 MB, free: 288 kB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001309/0.3889, allocations: 23.94 kB / 332.5 MB, free: 264 kB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001395/0.389, allocations: 65.14 kB / 332.6 MB, free: 200 kB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002644/0.3917, allocations: 0.8405 MB / 333.4 MB, free: 15.36 MB / 282.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.01075/0.4025, allocations: 3.487 MB / 336.9 MB, free: 11.67 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001921/0.4045, allocations: 0.6531 MB / 337.6 MB, free: 11 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00523/0.4098, allocations: 2.078 MB / 339.7 MB, free: 8.734 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.651e-05/0.4099, allocations: 39.12 kB / 339.7 MB, free: 8.688 MB / 282.7 MB Notification: Performance of pre-optimization done (n=56): time 3.707e-06/0.4099, allocations: 0 / 339.7 MB, free: 8.688 MB / 282.7 MB Notification: Performance of matching and sorting (n=66): time 0.0129/0.4228, allocations: 2.86 MB / 342.6 MB, free: 5.758 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.682e-05/0.4229, allocations: 85.67 kB / 342.6 MB, free: 5.656 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001486/0.4244, allocations: 0.601 MB / 343.2 MB, free: 5.051 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001993/0.4247, allocations: 37.7 kB / 343.3 MB, free: 5.008 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003308/0.425, allocations: 362.9 kB / 343.6 MB, free: 4.648 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003277/0.4253, allocations: 224.8 kB / 343.9 MB, free: 4.426 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.018e-05/0.4254, allocations: 16 kB / 343.9 MB, free: 4.41 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001609/0.4256, allocations: 342.8 kB / 344.2 MB, free: 4.066 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001164/0.4268, allocations: 353.8 kB / 344.6 MB, free: 3.723 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001318/0.4281, allocations: 0.5152 MB / 345.1 MB, free: 3.145 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001256/0.4294, allocations: 415 kB / 345.5 MB, free: 2.742 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.784e-06/0.4295, allocations: 3.953 kB / 345.5 MB, free: 2.738 MB / 282.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.003533/0.433, allocations: 1.099 MB / 346.6 MB, free: 1.629 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008691/0.4339, allocations: 1.658 MB / 348.2 MB, free: 15.84 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.063e-05/0.434, allocations: 7.938 kB / 348.2 MB, free: 15.83 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002291/0.4363, allocations: 444.4 kB / 348.7 MB, free: 15.39 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001358/0.4377, allocations: 163.8 kB / 348.8 MB, free: 15.23 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002267/0.44, allocations: 1.03 MB / 349.9 MB, free: 14.18 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001254/0.4413, allocations: 43.95 kB / 349.9 MB, free: 14.13 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001508/0.4415, allocations: 39.92 kB / 349.9 MB, free: 14.09 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.827e-05/0.4416, allocations: 4 kB / 350 MB, free: 14.09 MB / 298.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003145/0.4447, allocations: 0.9338 MB / 350.9 MB, free: 13.15 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.464e-05/0.4448, allocations: 12.09 kB / 350.9 MB, free: 13.14 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001001/0.4458, allocations: 240.7 kB / 351.1 MB, free: 12.9 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001396/0.4472, allocations: 163.8 kB / 351.3 MB, free: 12.74 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001367/0.4486, allocations: 0.8137 MB / 352.1 MB, free: 11.9 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008688/0.4495, allocations: 39.94 kB / 352.1 MB, free: 11.86 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000115/0.4497, allocations: 31.98 kB / 352.2 MB, free: 11.83 MB / 298.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.0007425/0.4504, allocations: 257.6 kB / 352.4 MB, free: 11.57 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002738/0.4507, allocations: 79.11 kB / 352.5 MB, free: 11.49 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004512/0.4552, allocations: 1.095 MB / 353.6 MB, free: 10.38 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.021e-05/0.4553, allocations: 8 kB / 353.6 MB, free: 10.38 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.051e-05/0.4554, allocations: 3.938 kB / 353.6 MB, free: 10.37 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.871e-05/0.4554, allocations: 3.984 kB / 353.6 MB, free: 10.37 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007761/0.4632, allocations: 2.002 MB / 355.6 MB, free: 8.305 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.023e-05/0.4632, allocations: 0 / 355.6 MB, free: 8.305 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001619/0.4649, allocations: 119.8 kB / 355.7 MB, free: 8.188 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003149/0.4681, allocations: 452.5 kB / 356.2 MB, free: 7.742 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001997/0.4683, allocations: 15.98 kB / 356.2 MB, free: 7.727 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002964/0.4713, allocations: 1.031 MB / 357.2 MB, free: 6.672 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.468e-06/0.4714, allocations: 0 / 357.2 MB, free: 6.672 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006243/0.4776, allocations: 1.603 MB / 358.8 MB, free: 5.043 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001098/0.4788, allocations: 248.1 kB / 359.1 MB, free: 4.781 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003392/0.4792, allocations: 15.98 kB / 359.1 MB, free: 4.766 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001653/0.4808, allocations: 47.91 kB / 359.1 MB, free: 4.719 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003087/0.4812, allocations: 60.56 kB / 359.2 MB, free: 4.66 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001716/0.4814, allocations: 27.98 kB / 359.2 MB, free: 4.633 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.001441/0.4828, allocations: 475 kB / 359.7 MB, free: 4.176 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.82e-07/0.4829, allocations: 0 / 359.7 MB, free: 4.176 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.003574/0.4865, allocations: 0.5701 MB / 360.3 MB, free: 3.605 MB / 298.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.00223/0.4888, allocations: 478.8 kB / 360.7 MB, free: 3.129 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.00708/0.4959, allocations: 1.354 MB / 362.1 MB, free: 1.777 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.269e-05/0.496, allocations: 3.938 kB / 362.1 MB, free: 1.773 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002891/0.4989, allocations: 463.4 kB / 362.5 MB, free: 1.324 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004128/0.5031, allocations: 361.8 kB / 362.9 MB, free: 0.9727 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007915/0.511, allocations: 2.063 MB / 364.9 MB, free: 14.88 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001111/0.5122, allocations: 1.007 MB / 366 MB, free: 13.84 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006978/0.5129, allocations: 87.39 kB / 366 MB, free: 13.76 MB / 314.7 MB Notification: Performance of SimCode: time 1.342e-06/0.513, allocations: 0 / 366 MB, free: 13.76 MB / 314.7 MB Notification: Performance of Templates: time 0.04918/0.5621, allocations: 18.89 MB / 384.9 MB, free: 10.88 MB / 330.7 MB