Running command: translateModel(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|lowerTank.level|lowerTank.medium.h|upperTank.level|upperTank.medium.h|hysteresis.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow") Notification: Performance of loadModel(Modelica): time 2.177/2.177, allocations: 224.7 MB / 241.1 MB, free: 1.688 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.737e-05/2.726e-05, allocations: 0 / 294.6 MB, free: 11.41 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1233/0.1234, allocations: 50.42 MB / 345 MB, free: 8.953 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.03737/0.1608, allocations: 20.57 MB / 365.5 MB, free: 4.316 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02042/0.1813, allocations: 9.321 MB / 374.9 MB, free: 10.98 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001713/0.1831, allocations: 47.62 kB / 374.9 MB, free: 10.93 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001819/0.1849, allocations: 393.8 kB / 375.3 MB, free: 10.55 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005475/0.1904, allocations: 1.289 MB / 376.6 MB, free: 9.254 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007315/0.1978, allocations: 1.808 MB / 378.4 MB, free: 7.441 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.003949/0.2017, allocations: 1.591 MB / 380 MB, free: 5.848 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001819/0.2036, allocations: 0.8328 MB / 380.8 MB, free: 5.012 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002871/0.2065, allocations: 0.9664 MB / 381.8 MB, free: 4.043 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002501/0.2091, allocations: 0.9079 MB / 382.7 MB, free: 3.133 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005791/0.2149, allocations: 1.771 MB / 384.5 MB, free: 1.359 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001174/0.2162, allocations: 144 kB / 384.6 MB, free: 1.219 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009142/0.2171, allocations: 458.8 kB / 385.1 MB, free: 0.7695 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006306/0.2177, allocations: 140 kB / 385.2 MB, free: 0.6328 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005891/0.2236, allocations: 2.288 MB / 387.5 MB, free: 14.34 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.2237, allocations: 0 / 387.5 MB, free: 14.34 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.565e-06/0.2237, allocations: 0 / 387.5 MB, free: 14.34 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.219e-05/0.2238, allocations: 0 / 387.5 MB, free: 14.34 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 271 * Number of variables: 271 Notification: Performance of Generate backend data structure: time 0.007306/0.2311, allocations: 1.645 MB / 389.1 MB, free: 12.64 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.197e-05/0.2312, allocations: 12.03 kB / 389.1 MB, free: 12.63 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001062/0.2323, allocations: 158.3 kB / 389.3 MB, free: 12.47 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002893/0.2352, allocations: 0.8712 MB / 390.2 MB, free: 11.56 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000313/0.2355, allocations: 242.4 kB / 390.4 MB, free: 11.29 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003772/0.2359, allocations: 99.89 kB / 390.5 MB, free: 11.2 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005457/0.2414, allocations: 1.779 MB / 392.3 MB, free: 9.359 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.966e-05/0.2415, allocations: 3.938 kB / 392.3 MB, free: 9.355 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002378/0.2418, allocations: 43.97 kB / 392.3 MB, free: 9.312 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002356/0.242, allocations: 106 kB / 392.4 MB, free: 9.207 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005653/0.2477, allocations: 1.768 MB / 394.2 MB, free: 7.43 MB / 330.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.02155/0.2693, allocations: 6.967 MB / 401.2 MB, free: 168 kB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2802/0.5496, allocations: 1.489 MB / 402.7 MB, free: 52.15 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001376/0.551, allocations: 0.6601 MB / 403.3 MB, free: 51.49 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.345e-05/0.5511, allocations: 45.53 kB / 403.4 MB, free: 51.45 MB / 330.7 MB Notification: Performance of pre-optimization done (n=116): time 3.967e-06/0.5511, allocations: 0.7188 kB / 403.4 MB, free: 51.45 MB / 330.7 MB Notification: Performance of matching and sorting (n=128): time 0.03137/0.5825, allocations: 6.654 MB / 410 MB, free: 49.04 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001023/0.5826, allocations: 169 kB / 410.2 MB, free: 48.85 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003427/0.5861, allocations: 0.9715 MB / 411.1 MB, free: 48.46 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005593/0.5867, allocations: 51.89 kB / 411.2 MB, free: 48.41 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006372/0.5874, allocations: 492.5 kB / 411.7 MB, free: 47.98 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001152/0.5885, allocations: 435.3 kB / 412.1 MB, free: 47.66 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003454/0.5889, allocations: 26.38 kB / 412.1 MB, free: 47.64 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002163/0.5892, allocations: 364 kB / 412.5 MB, free: 47.3 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003951/0.5932, allocations: 0.8244 MB / 413.3 MB, free: 47 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00437/0.5976, allocations: 1.07 MB / 414.4 MB, free: 46.45 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004009/0.6017, allocations: 0.8832 MB / 415.3 MB, free: 46.09 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-05/0.6018, allocations: 3.969 kB / 415.3 MB, free: 46.09 MB / 330.7 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.01181/0.6136, allocations: 2.524 MB / 417.8 MB, free: 45.09 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005929/0.6142, allocations: 1.832 MB / 419.6 MB, free: 43.16 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.498e-05/0.6143, allocations: 7.812 kB / 419.6 MB, free: 43.16 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008177/0.6225, allocations: 1.288 MB / 420.9 MB, free: 42.67 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002631/0.6252, allocations: 212.3 kB / 421.1 MB, free: 42.62 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01305/0.6383, allocations: 6.382 MB / 427.5 MB, free: 37.03 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002693/0.641, allocations: 98.69 kB / 427.6 MB, free: 36.98 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003533/0.6414, allocations: 62.62 kB / 427.7 MB, free: 36.96 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.393e-05/0.6415, allocations: 6.812 kB / 427.7 MB, free: 36.96 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006841/0.6483, allocations: 2.339 MB / 430 MB, free: 34.81 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.278e-05/0.6484, allocations: 4 kB / 430 MB, free: 34.81 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003677/0.6521, allocations: 1.017 MB / 431 MB, free: 33.79 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001961/0.6541, allocations: 223.7 kB / 431.3 MB, free: 33.57 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007842/0.6619, allocations: 6.111 MB / 437.4 MB, free: 27.13 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002083/0.6641, allocations: 91.94 kB / 437.5 MB, free: 27.04 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002839/0.6644, allocations: 59.92 kB / 437.5 MB, free: 26.98 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 12 (upperTank.regularFlow[1],upperTank.regularFlow[2],upperTank.regularFlow[3],upperTank.inFlow[1],upperTank.inFlow[2],upperTank.inFlow[3],lowerTank.regularFlow[1],lowerTank.regularFlow[2],lowerTank.inFlow[1],lowerTank.inFlow[2],$PRE.hysteresis.y,hysteresis.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (126): * Single equations (assignments): 121 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 3 {2 3,4 11,4 11} Notification: Performance of prepare postOptimizeDAE: time 0.001243/0.6657, allocations: 379.8 kB / 437.9 MB, free: 26.6 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005116/0.6662, allocations: 138.3 kB / 438 MB, free: 26.46 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009513/0.6757, allocations: 2.816 MB / 440.8 MB, free: 23.64 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.816e-05/0.6758, allocations: 16 kB / 440.8 MB, free: 23.62 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.023e-05/0.6758, allocations: 0 / 440.8 MB, free: 23.62 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.673e-05/0.6759, allocations: 7.969 kB / 440.9 MB, free: 23.61 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01586/0.6917, allocations: 4.552 MB / 445.4 MB, free: 19.03 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.514e-05/0.6918, allocations: 0 / 445.4 MB, free: 19.03 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002003/0.6938, allocations: 155.8 kB / 445.6 MB, free: 18.88 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006687/0.7005, allocations: 1.3 MB / 446.9 MB, free: 17.57 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003468/0.7009, allocations: 39.92 kB / 446.9 MB, free: 17.53 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01122/0.7122, allocations: 6.413 MB / 453.3 MB, free: 10.79 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.7122, allocations: 0 / 453.3 MB, free: 10.79 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01399/0.7262, allocations: 3.952 MB / 457.3 MB, free: 6.809 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001741/0.728, allocations: 443.1 kB / 457.7 MB, free: 6.355 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005542/0.7286, allocations: 28 kB / 457.7 MB, free: 6.328 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002482/0.7311, allocations: 95.86 kB / 457.8 MB, free: 6.234 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006004/0.7317, allocations: 145 kB / 458 MB, free: 6.09 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002716/0.732, allocations: 51.97 kB / 458 MB, free: 6.039 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001838/0.7339, allocations: 0.7493 MB / 458.8 MB, free: 5.281 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.31e-07/0.7339, allocations: 0 / 458.8 MB, free: 5.281 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.005337/0.7392, allocations: 1.051 MB / 459.8 MB, free: 4.312 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (upperTank.level,upperTank.medium.T,lowerTank.level,lowerTank.medium.T) * Number of discrete variables: 11 (upperTank.regularFlow[1],upperTank.regularFlow[2],upperTank.regularFlow[3],upperTank.inFlow[1],upperTank.inFlow[2],upperTank.inFlow[3],lowerTank.regularFlow[1],lowerTank.regularFlow[2],lowerTank.inFlow[1],lowerTank.inFlow[2],hysteresis.y) * Number of discrete states: 1 (hysteresis.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (97): * Single equations (assignments): 88 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 3 {2 4,4 14,4 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.003035/0.7423, allocations: 0.7199 MB / 460.5 MB, free: 3.652 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.01462/0.757, allocations: 3.796 MB / 464.3 MB, free: 15.8 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 9.608e-06/0.757, allocations: 0 / 464.3 MB, free: 15.8 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005435/0.7625, allocations: 1.425 MB / 465.8 MB, free: 14.36 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004989/0.7675, allocations: 0.5688 MB / 466.3 MB, free: 13.79 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01191/0.7794, allocations: 3.609 MB / 469.9 MB, free: 10.17 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001301/0.7808, allocations: 1.288 MB / 471.2 MB, free: 8.855 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009592/0.7818, allocations: 135.4 kB / 471.3 MB, free: 8.723 MB / 346.7 MB Notification: Performance of SimCode: time 1.433e-06/0.7818, allocations: 0 / 471.3 MB, free: 8.723 MB / 346.7 MB Notification: Performance of Templates: time 0.1198/0.9016, allocations: 51.66 MB / 0.5107 GB, free: 5.121 MB / 394.7 MB