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_3.2.2_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow") Notification: Performance of loadModel(Modelica): time 2.123/2.123, allocations: 194.9 MB / 211.2 MB, free: 8.34 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.227e-05/3.188e-05, allocations: 4 kB / 258.8 MB, free: 8.707 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3747/0.3747, allocations: 44.51 MB / 303.3 MB, free: 12.76 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.04534/0.4201, allocations: 20.39 MB / 323.7 MB, free: 9.246 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.02108/0.4412, allocations: 9.253 MB / 332.9 MB, free: 15.97 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001779/0.4431, allocations: 47.62 kB / 333 MB, free: 15.93 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001897/0.445, allocations: 393.8 kB / 333.4 MB, free: 15.54 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00557/0.4506, allocations: 1.285 MB / 334.7 MB, free: 14.25 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007315/0.458, allocations: 1.804 MB / 336.5 MB, free: 12.45 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.004113/0.4621, allocations: 1.583 MB / 338 MB, free: 10.86 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001947/0.4641, allocations: 0.8365 MB / 338.9 MB, free: 10.02 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002988/0.4672, allocations: 0.9548 MB / 339.8 MB, free: 9.066 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00254/0.4698, allocations: 0.9001 MB / 340.7 MB, free: 8.164 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005743/0.4756, allocations: 1.771 MB / 342.5 MB, free: 6.391 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00123/0.4768, allocations: 144 kB / 342.6 MB, free: 6.25 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001087/0.478, allocations: 454.8 kB / 343.1 MB, free: 5.805 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007228/0.4787, allocations: 140 kB / 343.2 MB, free: 5.668 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005672/0.4844, allocations: 2.284 MB / 345.5 MB, free: 3.379 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.4844, allocations: 4 kB / 345.5 MB, free: 3.375 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.066e-06/0.4845, allocations: 0 / 345.5 MB, free: 3.375 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.203e-05/0.4845, allocations: 0 / 345.5 MB, free: 3.375 MB / 282.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.007369/0.4919, allocations: 1.634 MB / 347.1 MB, free: 1.688 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.964e-05/0.492, allocations: 8.031 kB / 347.2 MB, free: 1.68 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00107/0.4931, allocations: 166.2 kB / 347.3 MB, free: 1.516 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002745/0.4958, allocations: 0.879 MB / 348.2 MB, free: 0.5938 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003058/0.4962, allocations: 234.5 kB / 348.4 MB, free: 344 kB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004034/0.4966, allocations: 99.92 kB / 348.5 MB, free: 244 kB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005474/0.5021, allocations: 1.79 MB / 350.3 MB, free: 14.39 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.661e-05/0.5022, allocations: 0 / 350.3 MB, free: 14.39 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000242/0.5025, allocations: 43.98 kB / 350.4 MB, free: 14.35 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002281/0.5027, allocations: 102 kB / 350.5 MB, free: 14.25 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005848/0.5086, allocations: 1.768 MB / 352.2 MB, free: 12.47 MB / 298.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.02315/0.5318, allocations: 7.018 MB / 359.2 MB, free: 5.148 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005066/0.5369, allocations: 1.486 MB / 360.7 MB, free: 3.645 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001481/0.5384, allocations: 0.6568 MB / 361.4 MB, free: 2.859 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.519e-05/0.5385, allocations: 51.56 kB / 361.4 MB, free: 2.801 MB / 298.7 MB Notification: Performance of pre-optimization done (n=116): time 4.268e-06/0.5385, allocations: 0 / 361.4 MB, free: 2.801 MB / 298.7 MB Notification: Performance of matching and sorting (n=128): time 0.03183/0.5704, allocations: 6.667 MB / 368.1 MB, free: 12.01 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001286/0.5706, allocations: 167.5 kB / 368.3 MB, free: 11.81 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002193/0.5728, allocations: 0.9686 MB / 369.2 MB, free: 10.82 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004198/0.5732, allocations: 53.7 kB / 369.3 MB, free: 10.77 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006134/0.5739, allocations: 498.9 kB / 369.8 MB, free: 10.27 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008211/0.5747, allocations: 437.7 kB / 370.2 MB, free: 9.84 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001809/0.5749, allocations: 28 kB / 370.2 MB, free: 9.812 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.000196/0.5751, allocations: 362.8 kB / 370.6 MB, free: 9.449 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002608/0.5777, allocations: 0.8354 MB / 371.4 MB, free: 8.613 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003/0.5808, allocations: 1.082 MB / 372.5 MB, free: 7.449 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002896/0.5837, allocations: 0.8925 MB / 373.4 MB, free: 6.555 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.312e-05/0.5838, allocations: 0 / 373.4 MB, free: 6.555 MB / 314.7 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.008619/0.5924, allocations: 2.55 MB / 375.9 MB, free: 3.98 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009248/0.5934, allocations: 2.005 MB / 377.9 MB, free: 1.824 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.925e-05/0.5934, allocations: 11.94 kB / 378 MB, free: 1.812 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006394/0.5998, allocations: 1.301 MB / 379.3 MB, free: 0.4961 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002053/0.602, allocations: 215.7 kB / 379.5 MB, free: 292 kB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01125/0.6132, allocations: 6.397 MB / 385.9 MB, free: 9.543 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002622/0.6159, allocations: 95.84 kB / 386 MB, free: 9.449 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000327/0.6163, allocations: 59.97 kB / 386 MB, free: 9.391 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.291e-05/0.6163, allocations: 4 kB / 386 MB, free: 9.387 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007483/0.6238, allocations: 2.17 MB / 388.2 MB, free: 7.199 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.683e-05/0.6239, allocations: 4 kB / 388.2 MB, free: 7.195 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003308/0.6272, allocations: 0.7733 MB / 389 MB, free: 6.406 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002182/0.6294, allocations: 239.6 kB / 389.2 MB, free: 6.172 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01037/0.6398, allocations: 6.855 MB / 396.1 MB, free: 14.87 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001851/0.6417, allocations: 96.34 kB / 396.2 MB, free: 14.77 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002448/0.642, allocations: 59.98 kB / 396.2 MB, free: 14.71 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * 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 (128): * Single equations (assignments): 123 * 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.001191/0.6432, allocations: 369.5 kB / 396.6 MB, free: 14.34 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005158/0.6437, allocations: 134.4 kB / 396.7 MB, free: 14.21 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009409/0.6532, allocations: 2.811 MB / 399.5 MB, free: 11.37 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.71e-05/0.6533, allocations: 20 kB / 399.5 MB, free: 11.35 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.271e-05/0.6533, allocations: 3.984 kB / 399.5 MB, free: 11.35 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.596e-05/0.6534, allocations: 3.984 kB / 399.5 MB, free: 11.34 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01439/0.6678, allocations: 4.538 MB / 404.1 MB, free: 6.73 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.227e-05/0.6678, allocations: 0 / 404.1 MB, free: 6.73 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001723/0.6696, allocations: 151.8 kB / 404.2 MB, free: 6.582 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006139/0.6757, allocations: 1.309 MB / 405.5 MB, free: 5.258 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003906/0.6762, allocations: 31.98 kB / 405.6 MB, free: 5.227 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01126/0.6875, allocations: 6.409 MB / 412 MB, free: 14.48 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.926e-06/0.6875, allocations: 0 / 412 MB, free: 14.48 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01271/0.7002, allocations: 3.948 MB / 415.9 MB, free: 10.5 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001618/0.7019, allocations: 443.1 kB / 416.4 MB, free: 10.04 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005655/0.7025, allocations: 31.94 kB / 416.4 MB, free: 10.01 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002381/0.7049, allocations: 103.9 kB / 416.5 MB, free: 9.91 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006574/0.7056, allocations: 141.1 kB / 416.6 MB, free: 9.77 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002614/0.7059, allocations: 51.97 kB / 416.7 MB, free: 9.719 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001643/0.7076, allocations: 0.7374 MB / 417.4 MB, free: 8.973 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.7076, allocations: 0 / 417.4 MB, free: 8.973 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.005071/0.7127, allocations: 1.039 MB / 418.5 MB, free: 7.934 MB / 362.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.002914/0.7156, allocations: 0.7128 MB / 419.2 MB, free: 7.219 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01394/0.7296, allocations: 3.836 MB / 423 MB, free: 3.32 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.207e-05/0.7297, allocations: 4.688 kB / 423 MB, free: 3.316 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006488/0.7362, allocations: 1.445 MB / 424.5 MB, free: 1.844 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005039/0.7413, allocations: 0.5613 MB / 425 MB, free: 1.285 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2944/1.036, allocations: 3.601 MB / 428.6 MB, free: 108.7 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002472/1.038, allocations: 1.292 MB / 429.9 MB, free: 107.9 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001418/1.04, allocations: 146.7 kB / 430 MB, free: 107.9 MB / 362.7 MB Notification: Performance of SimCode: time 2.003e-06/1.04, allocations: 0 / 430 MB, free: 107.9 MB / 362.7 MB Notification: Performance of Templates: time 0.1069/1.147, allocations: 51.66 MB / 481.7 MB, free: 63.25 MB / 362.7 MB