Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2") Notification: Performance of loadModel(Modelica): time 1.79/1.79, allocations: 194.9 MB / 210.6 MB, free: 8.348 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.878e-05/2.876e-05, allocations: 7.906 kB / 258.8 MB, free: 8.043 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2905/0.2905, allocations: 44.5 MB / 303.3 MB, free: 12.82 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2): time 0.02716/0.3178, allocations: 18.14 MB / 321.5 MB, free: 11.28 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01648/0.3343, allocations: 8.23 MB / 329.7 MB, free: 3.039 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001056/0.3354, allocations: 43.69 kB / 329.7 MB, free: 2.996 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001111/0.3365, allocations: 334.2 kB / 330.1 MB, free: 2.668 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003332/0.3399, allocations: 0.9732 MB / 331 MB, free: 1.691 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006157/0.346, allocations: 1.699 MB / 332.7 MB, free: 15.98 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.002488/0.3485, allocations: 1.082 MB / 333.8 MB, free: 14.91 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008056/0.3494, allocations: 455.9 kB / 334.3 MB, free: 14.46 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001401/0.3508, allocations: 0.6468 MB / 334.9 MB, free: 13.81 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001199/0.352, allocations: 0.5727 MB / 335.5 MB, free: 13.24 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004165/0.3562, allocations: 1.545 MB / 337 MB, free: 11.69 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004995/0.3567, allocations: 104 kB / 337.1 MB, free: 11.59 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004334/0.3572, allocations: 275.2 kB / 337.4 MB, free: 11.32 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003833/0.3576, allocations: 100 kB / 337.5 MB, free: 11.22 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003576/0.3611, allocations: 1.738 MB / 339.2 MB, free: 9.48 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.3612, allocations: 4 kB / 339.2 MB, free: 9.477 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.284e-06/0.3612, allocations: 0 / 339.2 MB, free: 9.477 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.62e-05/0.3612, allocations: 3.938 kB / 339.2 MB, free: 9.473 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: 164 * Number of variables: 164 Notification: Performance of Generate backend data structure: time 0.003488/0.3647, allocations: 1.205 MB / 340.5 MB, free: 8.215 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.29e-05/0.3648, allocations: 8.031 kB / 340.5 MB, free: 8.207 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005363/0.3653, allocations: 126.7 kB / 340.6 MB, free: 8.082 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001576/0.3669, allocations: 0.675 MB / 341.3 MB, free: 7.363 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.552e-05/0.367, allocations: 49.3 kB / 341.3 MB, free: 7.316 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001686/0.3672, allocations: 67.92 kB / 341.4 MB, free: 7.25 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002525/0.3697, allocations: 1.044 MB / 342.4 MB, free: 6.152 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.937e-05/0.3698, allocations: 3.938 kB / 342.4 MB, free: 6.148 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000135/0.3699, allocations: 31.97 kB / 342.5 MB, free: 6.117 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001531/0.3701, allocations: 65.27 kB / 342.5 MB, free: 6.051 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002713/0.3728, allocations: 1.024 MB / 343.5 MB, free: 5.027 MB / 282.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.009788/0.3826, allocations: 4.522 MB / 348.1 MB, free: 228 kB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001517/0.3841, allocations: 0.5319 MB / 348.6 MB, free: 15.68 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003485/0.3877, allocations: 1.938 MB / 350.5 MB, free: 13.53 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.715e-05/0.3877, allocations: 38.89 kB / 350.6 MB, free: 13.48 MB / 298.7 MB Notification: Performance of pre-optimization done (n=40): time 2.575e-06/0.3877, allocations: 0 / 350.6 MB, free: 13.48 MB / 298.7 MB Notification: Performance of matching and sorting (n=45): time 0.006697/0.3944, allocations: 1.881 MB / 352.5 MB, free: 11.51 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.779e-05/0.3945, allocations: 158.2 kB / 352.6 MB, free: 11.32 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001419/0.396, allocations: 0.7423 MB / 353.3 MB, free: 10.57 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.282e-05/0.3961, allocations: 37.7 kB / 353.4 MB, free: 10.52 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005186/0.3966, allocations: 0.4984 MB / 353.9 MB, free: 10.02 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001978/0.3968, allocations: 165.7 kB / 354 MB, free: 9.855 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.336e-05/0.3969, allocations: 16 kB / 354.1 MB, free: 9.84 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.000222/0.3971, allocations: 402.7 kB / 354.5 MB, free: 9.438 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008572/0.398, allocations: 301.8 kB / 354.8 MB, free: 9.141 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001185/0.3992, allocations: 0.6694 MB / 355.4 MB, free: 8.297 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001042/0.4002, allocations: 409.8 kB / 355.8 MB, free: 7.898 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.035e-05/0.4003, allocations: 4 kB / 355.8 MB, free: 7.895 MB / 298.7 MB Notification: Performance of matching and sorting (n=117) (initialization): time 0.00297/0.4033, allocations: 1.116 MB / 356.9 MB, free: 6.762 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0018/0.4051, allocations: 4.62 MB / 361.6 MB, free: 1.781 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.826e-05/0.4051, allocations: 12 kB / 361.6 MB, free: 1.77 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003996/0.4091, allocations: 373.3 kB / 361.9 MB, free: 1.398 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001325/0.4105, allocations: 191.7 kB / 362.1 MB, free: 1.211 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001585/0.4121, allocations: 1.319 MB / 363.4 MB, free: 15.84 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00122/0.4133, allocations: 63.88 kB / 363.5 MB, free: 15.78 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001238/0.4135, allocations: 51.98 kB / 363.6 MB, free: 15.73 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.749e-06/0.4135, allocations: 4.062 kB / 363.6 MB, free: 15.72 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002656/0.4161, allocations: 0.9949 MB / 364.6 MB, free: 14.72 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.778e-05/0.4162, allocations: 12 kB / 364.6 MB, free: 14.71 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003649/0.4198, allocations: 349.7 kB / 364.9 MB, free: 14.36 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001226/0.4211, allocations: 191.7 kB / 365.1 MB, free: 14.18 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001411/0.4225, allocations: 1.292 MB / 366.4 MB, free: 12.83 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001071/0.4236, allocations: 63.91 kB / 366.4 MB, free: 12.77 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001149/0.4237, allocations: 47.98 kB / 366.5 MB, free: 12.72 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],tank1.ports_m_flow_out[2],tank1.ports_m_flow_out[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (111): * Single equations (assignments): 109 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 3,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0006522/0.4244, allocations: 298.8 kB / 366.8 MB, free: 12.42 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001942/0.4246, allocations: 86.88 kB / 366.9 MB, free: 12.34 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00274/0.4273, allocations: 0.7842 MB / 367.7 MB, free: 11.54 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.148e-05/0.4274, allocations: 8 kB / 367.7 MB, free: 11.53 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.4274, allocations: 0 / 367.7 MB, free: 11.53 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.474e-06/0.4274, allocations: 0 / 367.7 MB, free: 11.53 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003965/0.4314, allocations: 1.552 MB / 369.2 MB, free: 9.91 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.791e-06/0.4314, allocations: 4 kB / 369.2 MB, free: 9.906 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006882/0.4321, allocations: 79.95 kB / 369.3 MB, free: 9.828 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002418/0.4346, allocations: 301.4 kB / 369.6 MB, free: 9.527 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.362e-05/0.4346, allocations: 19.94 kB / 369.6 MB, free: 9.508 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001546/0.4362, allocations: 1.292 MB / 370.9 MB, free: 8.164 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.881e-06/0.4362, allocations: 3.953 kB / 370.9 MB, free: 8.16 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002786/0.439, allocations: 1.079 MB / 372 MB, free: 7.039 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003288/0.4394, allocations: 184.2 kB / 372.2 MB, free: 6.84 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002338/0.4396, allocations: 23.94 kB / 372.2 MB, free: 6.816 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007943/0.4404, allocations: 31.98 kB / 372.2 MB, free: 6.785 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000167/0.4406, allocations: 48.34 kB / 372.3 MB, free: 6.734 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.263e-05/0.4407, allocations: 20 kB / 372.3 MB, free: 6.715 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001154/0.4419, allocations: 0.5692 MB / 372.9 MB, free: 6.152 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.625e-06/0.4419, allocations: 0 / 372.9 MB, free: 6.152 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.002723/0.4446, allocations: 0.7261 MB / 373.6 MB, free: 5.426 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (tank1.level,tank1.medium.T) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Number of discrete states: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.002124/0.4468, allocations: 0.5837 MB / 374.2 MB, free: 4.84 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.004191/0.451, allocations: 1.275 MB / 375.4 MB, free: 3.57 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.532e-06/0.451, allocations: 0 / 375.4 MB, free: 3.57 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001029/0.4521, allocations: 315.7 kB / 375.8 MB, free: 3.258 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002474/0.4545, allocations: 305.5 kB / 376 MB, free: 2.957 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004782/0.4594, allocations: 2.012 MB / 378.1 MB, free: 0.9141 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009473/0.4603, allocations: 1.066 MB / 379.1 MB, free: 15.82 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.002463/0.4628, allocations: 415.4 kB / 379.5 MB, free: 15.41 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002608/0.4631, allocations: 59.42 kB / 379.6 MB, free: 15.35 MB / 330.7 MB Notification: Performance of SimCode: time 1.352e-06/0.4631, allocations: 0 / 379.6 MB, free: 15.35 MB / 330.7 MB Notification: Performance of Templates: time 0.0595/0.5226, allocations: 21.64 MB / 401.2 MB, free: 9.707 MB / 346.7 MB