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_trunk_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks") Notification: Performance of loadModel(Modelica): time 2.187/2.187, allocations: 224.7 MB / 241.1 MB, free: 1.645 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.051e-05/3.054e-05, allocations: 4 kB / 294.6 MB, free: 11.39 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1398/0.1398, allocations: 50.41 MB / 345 MB, free: 8.934 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.03589/0.1758, allocations: 13.48 MB / 358.5 MB, free: 11.39 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02243/0.1983, allocations: 5.808 MB / 364.3 MB, free: 5.578 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002087/0.2005, allocations: 31.75 kB / 364.3 MB, free: 5.547 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00205/0.2026, allocations: 270.5 kB / 364.6 MB, free: 5.281 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004285/0.2069, allocations: 0.7669 MB / 365.3 MB, free: 4.512 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006415/0.2134, allocations: 1.192 MB / 366.5 MB, free: 3.316 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003331/0.2167, allocations: 0.9335 MB / 367.5 MB, free: 2.379 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001237/0.218, allocations: 423.7 kB / 367.9 MB, free: 1.965 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001737/0.2198, allocations: 0.5105 MB / 368.4 MB, free: 1.453 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001478/0.2213, allocations: 498.6 kB / 368.9 MB, free: 0.9648 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004246/0.2256, allocations: 1.085 MB / 369.9 MB, free: 15.88 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007372/0.2264, allocations: 84 kB / 370 MB, free: 15.8 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006076/0.227, allocations: 251.3 kB / 370.3 MB, free: 15.55 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005178/0.2275, allocations: 80 kB / 370.4 MB, free: 15.47 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004263/0.2318, allocations: 1.29 MB / 371.6 MB, free: 14.18 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.194e-06/0.2319, allocations: 4 kB / 371.6 MB, free: 14.18 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.825e-06/0.2319, allocations: 4 kB / 371.7 MB, free: 14.17 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.256e-05/0.232, allocations: 0 / 371.7 MB, free: 14.17 MB / 314.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.004521/0.2365, allocations: 1.021 MB / 372.7 MB, free: 13.11 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.618e-05/0.2366, allocations: 8.031 kB / 372.7 MB, free: 13.1 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007296/0.2373, allocations: 91.06 kB / 372.8 MB, free: 13.01 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01408/0.2514, allocations: 0.5778 MB / 373.3 MB, free: 12.39 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002802/0.2518, allocations: 108.7 kB / 373.5 MB, free: 12.27 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003371/0.2521, allocations: 55.94 kB / 373.5 MB, free: 12.21 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003452/0.2556, allocations: 0.8923 MB / 374.4 MB, free: 11.3 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.568e-05/0.2557, allocations: 0 / 374.4 MB, free: 11.3 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001821/0.2559, allocations: 27.98 kB / 374.4 MB, free: 11.27 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001801/0.2561, allocations: 49.28 kB / 374.5 MB, free: 11.22 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01144/0.2675, allocations: 0.8365 MB / 375.3 MB, free: 10.39 MB / 314.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.01572/0.2833, allocations: 3.478 MB / 378.8 MB, free: 6.719 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001885/0.2852, allocations: 0.6608 MB / 379.5 MB, free: 6.047 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005338/0.2906, allocations: 2.043 MB / 381.5 MB, free: 3.812 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.715e-05/0.2907, allocations: 43.12 kB / 381.5 MB, free: 3.762 MB / 314.7 MB Notification: Performance of pre-optimization done (n=56): time 3.547e-06/0.2907, allocations: 0 / 381.5 MB, free: 3.762 MB / 314.7 MB Notification: Performance of matching and sorting (n=66): time 0.01231/0.303, allocations: 2.848 MB / 384.4 MB, free: 0.8477 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.744e-05/0.3032, allocations: 93.61 kB / 384.5 MB, free: 0.7383 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001294/0.3045, allocations: 0.6009 MB / 385.1 MB, free: 132 kB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000136/0.3046, allocations: 41.69 kB / 385.1 MB, free: 84 kB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003483/0.305, allocations: 358.9 kB / 385.5 MB, free: 15.73 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003022/0.3053, allocations: 232.6 kB / 385.7 MB, free: 15.5 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.859e-05/0.3054, allocations: 16 kB / 385.7 MB, free: 15.48 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001735/0.3056, allocations: 346.8 kB / 386 MB, free: 15.13 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001037/0.3066, allocations: 353.8 kB / 386.4 MB, free: 14.79 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00121/0.3079, allocations: 0.5113 MB / 386.9 MB, free: 14.21 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001145/0.309, allocations: 411 kB / 387.3 MB, free: 13.82 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.719e-06/0.309, allocations: 0 / 387.3 MB, free: 13.82 MB / 330.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.003354/0.3124, allocations: 1.103 MB / 388.4 MB, free: 12.71 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008175/0.3133, allocations: 1.658 MB / 390.1 MB, free: 10.91 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.629e-05/0.3133, allocations: 4 kB / 390.1 MB, free: 10.91 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002154/0.3155, allocations: 444.4 kB / 390.5 MB, free: 10.47 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001308/0.3168, allocations: 163.7 kB / 390.7 MB, free: 10.31 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00198/0.3188, allocations: 1.017 MB / 391.7 MB, free: 9.27 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001122/0.3199, allocations: 35.98 kB / 391.7 MB, free: 9.234 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001219/0.3201, allocations: 35.98 kB / 391.8 MB, free: 9.199 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.298e-05/0.3201, allocations: 8 kB / 391.8 MB, free: 9.191 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003029/0.3231, allocations: 1.008 MB / 392.8 MB, free: 8.18 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.355e-05/0.3232, allocations: 4 kB / 392.8 MB, free: 8.176 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001145/0.3243, allocations: 308.8 kB / 393.1 MB, free: 7.871 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001274/0.3256, allocations: 171.7 kB / 393.2 MB, free: 7.703 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001615/0.3273, allocations: 0.8879 MB / 394.1 MB, free: 6.789 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008721/0.3282, allocations: 47.88 kB / 394.2 MB, free: 6.742 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001192/0.3283, allocations: 35.98 kB / 394.2 MB, free: 6.707 MB / 330.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.0006523/0.329, allocations: 253.5 kB / 394.5 MB, free: 6.449 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000258/0.3292, allocations: 75.06 kB / 394.5 MB, free: 6.375 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00346/0.3327, allocations: 1.103 MB / 395.6 MB, free: 5.258 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.817e-05/0.3328, allocations: 15.98 kB / 395.7 MB, free: 5.242 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.406e-06/0.3328, allocations: 0 / 395.7 MB, free: 5.242 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.099e-05/0.3328, allocations: 0 / 395.7 MB, free: 5.242 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00544/0.3383, allocations: 2.005 MB / 397.7 MB, free: 3.176 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.394e-06/0.3383, allocations: 0 / 397.7 MB, free: 3.176 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001156/0.3395, allocations: 119.9 kB / 397.8 MB, free: 3.059 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002093/0.3416, allocations: 459.2 kB / 398.2 MB, free: 2.609 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001225/0.3418, allocations: 15.98 kB / 398.2 MB, free: 2.594 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001993/0.3438, allocations: 1.028 MB / 399.3 MB, free: 1.539 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/0.3438, allocations: 0 / 399.3 MB, free: 1.539 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3316/0.6754, allocations: 1.585 MB / 400.9 MB, free: 52.52 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008487/0.6763, allocations: 251.6 kB / 401.1 MB, free: 52.43 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002457/0.6765, allocations: 16.42 kB / 401.1 MB, free: 52.43 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001075/0.6776, allocations: 44 kB / 401.2 MB, free: 52.43 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002345/0.6779, allocations: 56.14 kB / 401.2 MB, free: 52.43 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001262/0.678, allocations: 28.95 kB / 401.2 MB, free: 52.43 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.00108/0.6791, allocations: 474.5 kB / 401.7 MB, free: 52.33 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.61e-07/0.6791, allocations: 1.844 kB / 401.7 MB, free: 52.33 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002743/0.6819, allocations: 0.5816 MB / 402.3 MB, free: 52.33 MB / 330.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.001615/0.6835, allocations: 475.5 kB / 402.7 MB, free: 52.24 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.005076/0.6886, allocations: 1.384 MB / 404.1 MB, free: 52.16 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 9.088e-06/0.6887, allocations: 0 / 404.1 MB, free: 52.16 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00166/0.6904, allocations: 467.6 kB / 404.6 MB, free: 52.01 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003009/0.6934, allocations: 356.1 kB / 404.9 MB, free: 51.95 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005398/0.6988, allocations: 2.054 MB / 407 MB, free: 50.96 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007216/0.6996, allocations: 1.006 MB / 408 MB, free: 50.23 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005262/0.7002, allocations: 83.89 kB / 408.1 MB, free: 50.22 MB / 330.7 MB Notification: Performance of SimCode: time 1.894e-06/0.7002, allocations: 4 kB / 408.1 MB, free: 50.21 MB / 330.7 MB Notification: Performance of Templates: time 0.03981/0.74, allocations: 18.92 MB / 427 MB, free: 38.18 MB / 330.7 MB