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_trunk_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks") Notification: Performance of loadModel(Modelica): time 2.161/2.161, allocations: 224.7 MB / 241.1 MB, free: 1.691 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.995e-05/3.02e-05, allocations: 4 kB / 294.6 MB, free: 11.41 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1071/0.1071, allocations: 50.41 MB / 345 MB, free: 8.949 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.04002/0.1472, allocations: 24.45 MB / 369.4 MB, free: 428 kB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02658/0.1738, allocations: 12.52 MB / 381.9 MB, free: 3.879 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002134/0.176, allocations: 63.44 kB / 382 MB, free: 3.816 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002287/0.1784, allocations: 0.4973 MB / 382.5 MB, free: 3.316 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006835/0.1852, allocations: 1.604 MB / 384.1 MB, free: 1.707 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009641/0.1949, allocations: 2.458 MB / 386.6 MB, free: 15.24 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.004955/0.1999, allocations: 1.749 MB / 388.3 MB, free: 13.49 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002033/0.202, allocations: 0.8206 MB / 389.1 MB, free: 12.67 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003005/0.205, allocations: 1.005 MB / 390.1 MB, free: 11.66 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00275/0.2078, allocations: 1.013 MB / 391.2 MB, free: 10.64 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006816/0.2147, allocations: 2.2 MB / 393.4 MB, free: 8.441 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001344/0.2161, allocations: 164 kB / 393.5 MB, free: 8.281 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001121/0.2172, allocations: 494.7 kB / 394 MB, free: 7.797 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007277/0.218, allocations: 156 kB / 394.1 MB, free: 7.645 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006752/0.2247, allocations: 2.635 MB / 396.8 MB, free: 5.004 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.511e-06/0.2248, allocations: 0 / 396.8 MB, free: 5.004 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.186e-06/0.2248, allocations: 0 / 396.8 MB, free: 5.004 MB / 330.7 MB Notification: Performance of Transformations before backend: time 6.588e-05/0.2249, allocations: 0 / 396.8 MB, free: 5.004 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: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.00701/0.2319, allocations: 1.735 MB / 398.5 MB, free: 3.215 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.081e-05/0.232, allocations: 12.03 kB / 398.5 MB, free: 3.203 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001013/0.233, allocations: 170.1 kB / 398.7 MB, free: 3.035 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002862/0.2359, allocations: 0.9568 MB / 399.7 MB, free: 2.035 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002515/0.2362, allocations: 183 kB / 399.8 MB, free: 1.84 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003685/0.2366, allocations: 107.9 kB / 399.9 MB, free: 1.734 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3122/0.5488, allocations: 1.734 MB / 401.7 MB, free: 51.96 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.376e-05/0.549, allocations: 5.156 kB / 401.7 MB, free: 51.96 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005524/0.5496, allocations: 44.42 kB / 401.7 MB, free: 51.96 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004679/0.5543, allocations: 111.4 kB / 401.8 MB, free: 51.96 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01004/0.5644, allocations: 1.782 MB / 403.6 MB, free: 51.76 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.03138/0.5958, allocations: 6.814 MB / 410.4 MB, free: 47.97 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005119/0.601, allocations: 1.236 MB / 411.7 MB, free: 47.5 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01428/0.6153, allocations: 4.313 MB / 416 MB, free: 44.04 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.911e-05/0.6155, allocations: 54.14 kB / 416 MB, free: 43.98 MB / 330.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002083/0.6176, allocations: 207.7 kB / 416.2 MB, free: 43.87 MB / 330.7 MB Notification: Performance of pre-optimization done (n=97): time 9.417e-06/0.6176, allocations: 0 / 416.2 MB, free: 43.87 MB / 330.7 MB Notification: Performance of matching and sorting (n=112): time 0.0489/0.6665, allocations: 5.648 MB / 421.9 MB, free: 40.89 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001081/0.6667, allocations: 155.8 kB / 422 MB, free: 40.72 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003404/0.6701, allocations: 1.099 MB / 423.1 MB, free: 40.12 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005321/0.6708, allocations: 49.58 kB / 423.2 MB, free: 40.08 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007017/0.6715, allocations: 0.5875 MB / 423.8 MB, free: 39.53 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009225/0.6724, allocations: 386.8 kB / 424.1 MB, free: 39.21 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002453/0.6727, allocations: 27.94 kB / 424.2 MB, free: 39.18 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001843/0.6729, allocations: 368.7 kB / 424.5 MB, free: 38.83 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003026/0.676, allocations: 0.6969 MB / 425.2 MB, free: 38.47 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003594/0.6796, allocations: 1.04 MB / 426.3 MB, free: 37.68 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003575/0.6833, allocations: 0.8006 MB / 427.1 MB, free: 37.26 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.819e-05/0.6834, allocations: 6.781 kB / 427.1 MB, free: 37.26 MB / 330.7 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.009296/0.6927, allocations: 2.165 MB / 429.2 MB, free: 35.26 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001155/0.6939, allocations: 3.753 MB / 433 MB, free: 31.22 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.607e-05/0.694, allocations: 11.98 kB / 433 MB, free: 31.21 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01818/0.7122, allocations: 1.267 MB / 434.3 MB, free: 29.95 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003343/0.7156, allocations: 307.5 kB / 434.6 MB, free: 29.65 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0052/0.7209, allocations: 1.599 MB / 436.2 MB, free: 28.03 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00344/0.7244, allocations: 97.62 kB / 436.3 MB, free: 27.93 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004429/0.7249, allocations: 67.97 kB / 436.3 MB, free: 27.87 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.882e-05/0.7249, allocations: 4 kB / 436.3 MB, free: 27.86 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008099/0.733, allocations: 2.023 MB / 438.4 MB, free: 25.84 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.829e-05/0.7331, allocations: 8 kB / 438.4 MB, free: 25.83 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01606/0.7492, allocations: 1.099 MB / 439.5 MB, free: 24.73 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003419/0.7527, allocations: 307.5 kB / 439.8 MB, free: 24.43 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004687/0.7574, allocations: 1.426 MB / 441.2 MB, free: 22.98 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002728/0.7602, allocations: 91.84 kB / 441.3 MB, free: 22.89 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004311/0.7607, allocations: 72.78 kB / 441.3 MB, free: 22.82 MB / 330.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.001525/0.7623, allocations: 381.4 kB / 441.7 MB, free: 22.44 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006519/0.763, allocations: 150.2 kB / 441.9 MB, free: 22.29 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009598/0.7726, allocations: 2.084 MB / 444 MB, free: 20.2 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.239e-05/0.7727, allocations: 12 kB / 444 MB, free: 20.19 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.659e-05/0.7727, allocations: 11.94 kB / 444 MB, free: 20.18 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.661e-05/0.7728, allocations: 7.969 kB / 444 MB, free: 20.17 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01399/0.7868, allocations: 3.597 MB / 447.6 MB, free: 16.54 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.557e-05/0.7869, allocations: 0 / 447.6 MB, free: 16.54 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002587/0.7895, allocations: 187.8 kB / 447.8 MB, free: 16.36 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008969/0.7985, allocations: 0.9922 MB / 448.8 MB, free: 15.36 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004178/0.799, allocations: 31.98 kB / 448.8 MB, free: 15.33 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004679/0.8037, allocations: 1.611 MB / 450.4 MB, free: 13.7 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.031e-06/0.8038, allocations: 0.5625 kB / 450.4 MB, free: 13.7 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01092/0.8147, allocations: 2.896 MB / 453.3 MB, free: 10.78 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001849/0.8166, allocations: 427 kB / 453.7 MB, free: 10.34 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007455/0.8174, allocations: 24 kB / 453.7 MB, free: 10.32 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00327/0.8207, allocations: 86.72 kB / 453.8 MB, free: 10.24 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007245/0.8215, allocations: 101.2 kB / 453.9 MB, free: 10.14 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003463/0.8219, allocations: 51.91 kB / 454 MB, free: 10.09 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.002415/0.8243, allocations: 0.8401 MB / 454.8 MB, free: 9.242 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.412e-06/0.8244, allocations: 0 / 454.8 MB, free: 9.242 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.006387/0.8308, allocations: 1.153 MB / 456 MB, free: 8.195 MB / 330.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.003747/0.8346, allocations: 0.8389 MB / 456.8 MB, free: 7.508 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.01399/0.8487, allocations: 2.762 MB / 459.6 MB, free: 4.75 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.412e-05/0.8487, allocations: 0 / 459.6 MB, free: 4.75 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004429/0.8532, allocations: 0.8663 MB / 460.4 MB, free: 3.887 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00705/0.8603, allocations: 0.5998 MB / 461 MB, free: 3.297 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01255/0.8729, allocations: 3.618 MB / 464.6 MB, free: 15.67 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001821/0.8748, allocations: 1.319 MB / 466 MB, free: 14.32 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001295/0.8761, allocations: 143.4 kB / 466.1 MB, free: 14.18 MB / 346.7 MB Notification: Performance of SimCode: time 1.754e-06/0.8762, allocations: 0 / 466.1 MB, free: 14.18 MB / 346.7 MB Notification: Performance of Templates: time 0.1179/0.9941, allocations: 35.44 MB / 0.4898 GB, free: 10.82 MB / 378.7 MB