Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T|tank1.aboveLevel.1.|tank2.aboveLevel.1.|tank2.aboveLevel.2.|tank2.aboveLevel.3.|tank3.aboveLevel.1.|tank3.aboveLevel.2.",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2") Notification: Performance of loadModel(Modelica): time 1.711/1.711, allocations: 171.2 MB / 185.7 MB, free: 1.406 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.851e-05/2.849e-05, allocations: 0 / 228.2 MB, free: 7.332 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07913/0.07918, allocations: 38.77 MB / 266.9 MB, free: 492 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2): time 0.05007/0.1293, allocations: 30.87 MB / 297.8 MB, free: 1.523 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.2484/0.3777, allocations: 12.58 MB / 310.4 MB, free: 4.668 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002575/0.3804, allocations: 68.78 kB / 310.4 MB, free: 4.668 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00229/0.3827, allocations: 0.581 MB / 311 MB, free: 4.66 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007157/0.3899, allocations: 1.786 MB / 312.8 MB, free: 4.613 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01036/0.4002, allocations: 2.468 MB / 315.3 MB, free: 4.527 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.005299/0.4056, allocations: 1.994 MB / 317.3 MB, free: 4.512 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001961/0.4076, allocations: 0.8513 MB / 318.1 MB, free: 4.246 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003636/0.4113, allocations: 1.127 MB / 319.2 MB, free: 3.969 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003357/0.4147, allocations: 1.059 MB / 320.3 MB, free: 3.609 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007615/0.4223, allocations: 2.187 MB / 322.5 MB, free: 3.051 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001629/0.424, allocations: 168.3 kB / 322.7 MB, free: 3.047 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001318/0.4254, allocations: 0.5035 MB / 323.2 MB, free: 2.852 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001292/0.4267, allocations: 182.5 kB / 323.3 MB, free: 2.852 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007013/0.4337, allocations: 2.885 MB / 326.2 MB, free: 1.465 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.4338, allocations: 0 / 326.2 MB, free: 1.465 MB / 250.7 MB Notification: Performance of FrontEnd: time 3.055e-06/0.4338, allocations: 3.938 kB / 326.2 MB, free: 1.461 MB / 250.7 MB Notification: Performance of Transformations before backend: time 8.836e-05/0.4339, allocations: 0 / 326.2 MB, free: 1.461 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: 315 * Number of variables: 315 Notification: Performance of Generate backend data structure: time 0.006415/0.4403, allocations: 1.91 MB / 328.1 MB, free: 212 kB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.516e-05/0.4404, allocations: 10.03 kB / 328.1 MB, free: 212 kB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001174/0.4416, allocations: 202.6 kB / 328.3 MB, free: 112 kB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003171/0.4448, allocations: 1.055 MB / 329.4 MB, free: 15.52 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001495/0.445, allocations: 106.3 kB / 329.5 MB, free: 15.47 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004258/0.4454, allocations: 123.6 kB / 329.6 MB, free: 15.43 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005548/0.451, allocations: 1.931 MB / 331.6 MB, free: 14.23 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.141e-05/0.4511, allocations: 3.938 kB / 331.6 MB, free: 14.22 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002622/0.4514, allocations: 58.02 kB / 331.6 MB, free: 14.19 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002562/0.4516, allocations: 117.1 kB / 331.7 MB, free: 14.15 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006447/0.4581, allocations: 1.977 MB / 333.7 MB, free: 12.77 MB / 266.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.02139/0.4795, allocations: 7.9 MB / 341.6 MB, free: 4.461 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003515/0.4831, allocations: 1.158 MB / 342.8 MB, free: 3.301 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00863/0.4918, allocations: 3.392 MB / 346.2 MB, free: 15.68 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.08e-05/0.4919, allocations: 47.56 kB / 346.2 MB, free: 15.63 MB / 282.7 MB Notification: Performance of pre-optimization done (n=119): time 4.368e-06/0.4919, allocations: 0 / 346.2 MB, free: 15.63 MB / 282.7 MB Notification: Performance of matching and sorting (n=134): time 0.03001/0.5219, allocations: 5.367 MB / 351.6 MB, free: 10.16 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001572/0.5221, allocations: 171.5 kB / 351.7 MB, free: 9.961 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003966/0.5261, allocations: 1.171 MB / 352.9 MB, free: 8.781 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005094/0.5267, allocations: 57.7 kB / 353 MB, free: 8.719 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001301/0.528, allocations: 0.7324 MB / 353.7 MB, free: 7.984 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001126/0.5292, allocations: 469.5 kB / 354.2 MB, free: 7.531 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002747/0.5295, allocations: 36 kB / 354.2 MB, free: 7.496 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0003242/0.5298, allocations: 381.9 kB / 354.6 MB, free: 7.117 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00362/0.5334, allocations: 0.7495 MB / 355.3 MB, free: 6.367 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004273/0.5378, allocations: 1.232 MB / 356.5 MB, free: 4.934 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003991/0.5418, allocations: 0.8835 MB / 357.4 MB, free: 4.055 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.088e-05/0.5419, allocations: 4 kB / 357.4 MB, free: 4.051 MB / 282.7 MB Notification: Performance of matching and sorting (n=231) (initialization): time 0.01088/0.5528, allocations: 2.439 MB / 359.9 MB, free: 1.59 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.003256/0.5561, allocations: 5.466 MB / 365.3 MB, free: 11.77 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.615e-05/0.5562, allocations: 12 kB / 365.4 MB, free: 11.75 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01757/0.5738, allocations: 1.111 MB / 366.5 MB, free: 10.63 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004156/0.578, allocations: 367.4 kB / 366.8 MB, free: 10.27 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005794/0.5839, allocations: 2.873 MB / 369.7 MB, free: 7.293 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003778/0.5877, allocations: 136 kB / 369.8 MB, free: 7.16 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006414/0.5884, allocations: 87.97 kB / 369.9 MB, free: 7.074 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.191e-05/0.5885, allocations: 4 kB / 369.9 MB, free: 7.07 MB / 298.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00982/0.5983, allocations: 2.159 MB / 372.1 MB, free: 4.898 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.464e-05/0.5984, allocations: 16 kB / 372.1 MB, free: 4.883 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01175/0.6102, allocations: 0.8382 MB / 372.9 MB, free: 4.031 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002987/0.6132, allocations: 371.4 kB / 373.3 MB, free: 3.668 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003359/0.6166, allocations: 2.631 MB / 375.9 MB, free: 0.9336 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003967/0.6206, allocations: 128.1 kB / 376 MB, free: 0.8086 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000762/0.6214, allocations: 83.97 kB / 376.1 MB, free: 0.7266 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * Number of states: 0 () * Number of discrete variables: 18 ($PRE.tank3.aboveLevel[1],tank3.aboveLevel[1],$PRE.tank3.aboveLevel[2],tank3.aboveLevel[2],$PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],$PRE.tank2.aboveLevel[3],tank2.aboveLevel[3],tank2.ports_m_flow_out[3],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[1],tank3.ports_m_flow_out[2],tank3.ports_m_flow_out[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (210): * Single equations (assignments): 206 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 2,2 7,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.002766/0.6242, allocations: 466.8 kB / 376.6 MB, free: 268 kB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008116/0.6251, allocations: 162 kB / 376.7 MB, free: 104 kB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01308/0.6382, allocations: 2.338 MB / 379.1 MB, free: 13.73 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.565e-05/0.6383, allocations: 16 kB / 379.1 MB, free: 13.72 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.417e-06/0.6383, allocations: 4 kB / 379.1 MB, free: 13.71 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.448e-05/0.6383, allocations: 8.062 kB / 379.1 MB, free: 13.71 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01241/0.6507, allocations: 3.967 MB / 383.1 MB, free: 9.68 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.686e-05/0.6508, allocations: 4 kB / 383.1 MB, free: 9.676 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002201/0.653, allocations: 239.6 kB / 383.3 MB, free: 9.441 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007433/0.6605, allocations: 0.9284 MB / 384.2 MB, free: 8.5 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003618/0.6609, allocations: 39.97 kB / 384.3 MB, free: 8.461 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003915/0.6648, allocations: 2.826 MB / 387.1 MB, free: 5.535 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.418e-06/0.6649, allocations: 0 / 387.1 MB, free: 5.535 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009342/0.6742, allocations: 3.219 MB / 390.3 MB, free: 2.23 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007817/0.675, allocations: 266.8 kB / 390.6 MB, free: 1.949 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006015/0.6757, allocations: 36 kB / 390.6 MB, free: 1.914 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002012/0.6777, allocations: 103.9 kB / 390.7 MB, free: 1.812 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000456/0.6782, allocations: 145.1 kB / 390.9 MB, free: 1.672 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002193/0.6784, allocations: 55.97 kB / 390.9 MB, free: 1.617 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.002015/0.6804, allocations: 0.8914 MB / 391.8 MB, free: 0.7266 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.51e-07/0.6805, allocations: 0 / 391.8 MB, free: 0.7266 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.005018/0.6855, allocations: 1.25 MB / 393.1 MB, free: 15.47 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (tank3.level,tank3.medium.T,tank1.level,tank1.medium.T,tank2.level,tank2.medium.T) * Number of discrete variables: 6 (tank3.aboveLevel[1],tank3.aboveLevel[2],tank1.aboveLevel[1],tank2.aboveLevel[1],tank2.aboveLevel[2],tank2.aboveLevel[3]) * Number of discrete states: 6 (tank3.aboveLevel[1],tank3.aboveLevel[2],tank1.aboveLevel[1],tank2.aboveLevel[1],tank2.aboveLevel[2],tank2.aboveLevel[3]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (133): * Single equations (assignments): 127 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,2 12,2 12,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.003202/0.6887, allocations: 0.8798 MB / 393.9 MB, free: 14.64 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.01021/0.699, allocations: 3.097 MB / 397 MB, free: 11.56 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.357e-05/0.699, allocations: 4 kB / 397 MB, free: 11.55 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003688/0.7027, allocations: 1.065 MB / 398.1 MB, free: 10.49 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00581/0.7086, allocations: 0.6709 MB / 398.8 MB, free: 9.824 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009549/0.7182, allocations: 4.079 MB / 402.9 MB, free: 5.727 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001446/0.7197, allocations: 1.444 MB / 404.3 MB, free: 4.25 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.004889/0.7246, allocations: 0.8301 MB / 405.1 MB, free: 3.414 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000635/0.7252, allocations: 139.3 kB / 405.3 MB, free: 3.277 MB / 330.7 MB Notification: Performance of SimCode: time 1.052e-06/0.7253, allocations: 0 / 405.3 MB, free: 3.277 MB / 330.7 MB Notification: Performance of Templates: time 0.3322/1.057, allocations: 45.16 MB / 450.4 MB, free: 128.2 MB / 362.7 MB