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.1_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow") Notification: Performance of loadModel(Modelica): time 1.744/1.744, allocations: 171.1 MB / 186.3 MB, free: 1.422 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.222e-05/3.225e-05, allocations: 6.188 kB / 228.1 MB, free: 7.996 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0896/0.08966, allocations: 38.78 MB / 266.9 MB, free: 1.137 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.03493/0.1246, allocations: 20.38 MB / 287.3 MB, free: 12.68 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.02097/0.1457, allocations: 9.232 MB / 296.5 MB, free: 3.438 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001788/0.1475, allocations: 47.62 kB / 296.6 MB, free: 3.391 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001743/0.1493, allocations: 397.8 kB / 296.9 MB, free: 3 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005579/0.1549, allocations: 1.3 MB / 298.2 MB, free: 1.695 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.2329/0.3879, allocations: 1.792 MB / 300 MB, free: 4.914 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.004361/0.3923, allocations: 1.591 MB / 301.6 MB, free: 4.902 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002547/0.3949, allocations: 0.8341 MB / 302.5 MB, free: 4.883 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003828/0.3988, allocations: 0.9516 MB / 303.4 MB, free: 4.883 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003435/0.4023, allocations: 0.9054 MB / 304.3 MB, free: 4.879 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006521/0.4089, allocations: 1.766 MB / 306.1 MB, free: 4.875 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001642/0.4106, allocations: 145 kB / 306.2 MB, free: 4.875 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001339/0.4119, allocations: 455.8 kB / 306.7 MB, free: 4.875 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001115/0.4131, allocations: 139.3 kB / 306.8 MB, free: 4.875 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00604/0.4191, allocations: 2.278 MB / 309.1 MB, free: 4.715 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.4192, allocations: 0 / 309.1 MB, free: 4.715 MB / 250.7 MB Notification: Performance of FrontEnd: time 3.457e-06/0.4192, allocations: 0 / 309.1 MB, free: 4.715 MB / 250.7 MB Notification: Performance of Transformations before backend: time 8.758e-05/0.4193, allocations: 1.812 kB / 309.1 MB, free: 4.715 MB / 250.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.007819/0.4271, allocations: 1.636 MB / 310.7 MB, free: 3.844 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.116e-05/0.4272, allocations: 9.609 kB / 310.7 MB, free: 3.844 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001311/0.4285, allocations: 164.7 kB / 310.9 MB, free: 3.773 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002898/0.4315, allocations: 0.8861 MB / 311.8 MB, free: 3.465 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002623/0.4318, allocations: 233.3 kB / 312 MB, free: 3.309 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005189/0.4323, allocations: 98.69 kB / 312.1 MB, free: 3.305 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00545/0.4378, allocations: 1.78 MB / 313.9 MB, free: 3.141 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.888e-05/0.4379, allocations: 6.844 kB / 313.9 MB, free: 3.137 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000249/0.4381, allocations: 45.62 kB / 313.9 MB, free: 3.137 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002167/0.4383, allocations: 102.5 kB / 314 MB, free: 3.133 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005574/0.4439, allocations: 1.769 MB / 315.8 MB, free: 3.094 MB / 250.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.02163/0.4656, allocations: 7.009 MB / 322.8 MB, free: 15.6 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004755/0.4704, allocations: 1.5 MB / 324.3 MB, free: 15.33 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001435/0.4719, allocations: 0.6573 MB / 325 MB, free: 14.64 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.318e-05/0.472, allocations: 49.78 kB / 325 MB, free: 14.6 MB / 266.7 MB Notification: Performance of pre-optimization done (n=116): time 3.808e-06/0.472, allocations: 0 / 325 MB, free: 14.6 MB / 266.7 MB Notification: Performance of matching and sorting (n=128): time 0.03131/0.5033, allocations: 6.661 MB / 331.7 MB, free: 10.7 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001111/0.5035, allocations: 141.8 kB / 331.8 MB, free: 10.53 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002159/0.5057, allocations: 0.9593 MB / 332.8 MB, free: 9.789 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004756/0.5062, allocations: 56.2 kB / 332.8 MB, free: 9.746 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005545/0.5068, allocations: 0.494 MB / 333.3 MB, free: 9.422 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008938/0.5077, allocations: 432.4 kB / 333.7 MB, free: 9.062 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001868/0.5079, allocations: 28.75 kB / 333.8 MB, free: 9.055 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002036/0.5081, allocations: 360.5 kB / 334.1 MB, free: 8.715 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002552/0.5107, allocations: 0.8412 MB / 335 MB, free: 8.176 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002951/0.5137, allocations: 1.063 MB / 336 MB, free: 7.363 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003036/0.5168, allocations: 0.8963 MB / 336.9 MB, free: 6.598 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.077e-05/0.5168, allocations: 0 / 336.9 MB, free: 6.598 MB / 266.7 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.008968/0.5258, allocations: 2.552 MB / 339.5 MB, free: 4.059 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00099/0.5268, allocations: 2.015 MB / 341.5 MB, free: 1.891 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.506e-05/0.5269, allocations: 4 kB / 341.5 MB, free: 1.887 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006525/0.5334, allocations: 1.302 MB / 342.8 MB, free: 0.5742 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00214/0.5356, allocations: 216.2 kB / 343 MB, free: 384 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01118/0.5469, allocations: 6.393 MB / 349.4 MB, free: 9.672 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002772/0.5497, allocations: 87.91 kB / 349.5 MB, free: 9.586 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004151/0.5501, allocations: 63.97 kB / 349.6 MB, free: 9.523 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.724e-05/0.5502, allocations: 5.25 kB / 349.6 MB, free: 9.52 MB / 282.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007572/0.5578, allocations: 2.169 MB / 351.7 MB, free: 7.375 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.849e-05/0.5578, allocations: 8.344 kB / 351.7 MB, free: 7.367 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003347/0.5612, allocations: 0.7722 MB / 352.5 MB, free: 6.582 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002262/0.5635, allocations: 235.6 kB / 352.7 MB, free: 6.367 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01165/0.5752, allocations: 6.865 MB / 359.6 MB, free: 15.1 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002435/0.5777, allocations: 83.92 kB / 359.7 MB, free: 15.02 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003495/0.5781, allocations: 59.97 kB / 359.7 MB, free: 14.96 MB / 298.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.001803/0.5799, allocations: 381.8 kB / 360.1 MB, free: 14.59 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007488/0.5807, allocations: 137.2 kB / 360.3 MB, free: 14.45 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01357/0.5943, allocations: 2.808 MB / 363.1 MB, free: 11.63 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.798e-05/0.5944, allocations: 16 kB / 363.1 MB, free: 11.62 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.804e-05/0.5944, allocations: 4 kB / 363.1 MB, free: 11.61 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.726e-05/0.5944, allocations: 15.86 kB / 363.1 MB, free: 11.6 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01993/0.6144, allocations: 4.522 MB / 367.6 MB, free: 7.047 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.306e-05/0.6145, allocations: 4 kB / 367.6 MB, free: 7.043 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002295/0.6168, allocations: 153.7 kB / 367.8 MB, free: 6.898 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008115/0.6249, allocations: 1.296 MB / 369.1 MB, free: 5.59 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004861/0.6255, allocations: 39.97 kB / 369.1 MB, free: 5.551 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01521/0.6407, allocations: 6.4 MB / 375.5 MB, free: 14.84 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.866e-06/0.6408, allocations: 0 / 375.5 MB, free: 14.84 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01647/0.6573, allocations: 3.955 MB / 379.5 MB, free: 10.87 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001844/0.6592, allocations: 443.1 kB / 379.9 MB, free: 10.41 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006929/0.6599, allocations: 24 kB / 379.9 MB, free: 10.39 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002539/0.6624, allocations: 95.83 kB / 380 MB, free: 10.3 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006702/0.6632, allocations: 141.1 kB / 380.1 MB, free: 10.16 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002805/0.6635, allocations: 59.91 kB / 380.2 MB, free: 10.1 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.00167/0.6652, allocations: 0.7335 MB / 380.9 MB, free: 9.359 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.02e-07/0.6652, allocations: 0 / 380.9 MB, free: 9.359 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.005437/0.6706, allocations: 1.039 MB / 382 MB, free: 8.32 MB / 314.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.003122/0.6738, allocations: 0.7149 MB / 382.7 MB, free: 7.656 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.01418/0.688, allocations: 3.844 MB / 386.5 MB, free: 3.801 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 9.137e-06/0.6881, allocations: 0 / 386.5 MB, free: 3.801 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006366/0.6945, allocations: 1.44 MB / 388 MB, free: 2.355 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005344/0.6999, allocations: 0.5625 MB / 388.5 MB, free: 1.797 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01167/0.7116, allocations: 3.612 MB / 392.2 MB, free: 14.16 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001273/0.7129, allocations: 1.295 MB / 393.4 MB, free: 12.84 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009914/0.714, allocations: 133.8 kB / 393.6 MB, free: 12.71 MB / 330.7 MB Notification: Performance of SimCode: time 1.232e-06/0.714, allocations: 4 kB / 393.6 MB, free: 12.71 MB / 330.7 MB Notification: Performance of Templates: time 0.325/1.039, allocations: 51.62 MB / 445.2 MB, free: 128.6 MB / 362.7 MB