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.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2") Notification: Performance of loadModel(Modelica): time 1.854/1.854, allocations: 194.9 MB / 210.6 MB, free: 8.148 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.691e-05/2.681e-05, allocations: 7.906 kB / 258.8 MB, free: 7.852 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2905/0.2906, allocations: 44.5 MB / 303.3 MB, free: 12.95 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2): time 0.04925/0.3399, allocations: 30.86 MB / 334.2 MB, free: 14.63 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.02758/0.3675, allocations: 12.61 MB / 346.8 MB, free: 1.996 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002436/0.37, allocations: 67.44 kB / 346.9 MB, free: 1.93 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002554/0.3726, allocations: 0.5905 MB / 347.5 MB, free: 1.336 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007101/0.3797, allocations: 1.767 MB / 349.2 MB, free: 15.56 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009609/0.3894, allocations: 2.466 MB / 351.7 MB, free: 13.09 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004971/0.3944, allocations: 1.993 MB / 353.7 MB, free: 11.09 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001944/0.3964, allocations: 0.8509 MB / 354.5 MB, free: 10.24 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003259/0.3997, allocations: 1.122 MB / 355.7 MB, free: 9.117 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002928/0.4026, allocations: 1.064 MB / 356.7 MB, free: 8.051 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006952/0.4097, allocations: 2.196 MB / 358.9 MB, free: 5.852 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001509/0.4112, allocations: 164 kB / 359.1 MB, free: 5.691 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001328/0.4126, allocations: 0.4946 MB / 359.6 MB, free: 5.195 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001021/0.4137, allocations: 184 kB / 359.7 MB, free: 5.016 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007098/0.4208, allocations: 2.888 MB / 362.6 MB, free: 2.121 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.4209, allocations: 0 / 362.6 MB, free: 2.121 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.076e-06/0.4209, allocations: 4 kB / 362.6 MB, free: 2.117 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.508e-05/0.421, allocations: 0 / 362.6 MB, free: 2.117 MB / 298.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.007101/0.4281, allocations: 1.911 MB / 364.5 MB, free: 156 kB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.232e-05/0.4282, allocations: 12.03 kB / 364.6 MB, free: 144 kB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001334/0.4295, allocations: 202 kB / 364.8 MB, free: 15.94 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003317/0.4329, allocations: 1.063 MB / 365.8 MB, free: 14.82 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001852/0.4331, allocations: 94.28 kB / 365.9 MB, free: 14.73 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005524/0.4337, allocations: 124 kB / 366 MB, free: 14.61 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005937/0.4396, allocations: 1.92 MB / 368 MB, free: 12.59 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.771e-05/0.4398, allocations: 15.84 kB / 368 MB, free: 12.57 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002692/0.44, allocations: 51.97 kB / 368 MB, free: 12.52 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002794/0.4403, allocations: 122.3 kB / 368.1 MB, free: 12.4 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00643/0.4468, allocations: 1.972 MB / 370.1 MB, free: 10.42 MB / 314.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.02145/0.4683, allocations: 7.914 MB / 378 MB, free: 2.027 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003452/0.4718, allocations: 1.153 MB / 379.2 MB, free: 0.8594 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00764/0.4795, allocations: 3.385 MB / 382.6 MB, free: 13.21 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.684e-05/0.4796, allocations: 47.56 kB / 382.6 MB, free: 13.16 MB / 330.7 MB Notification: Performance of pre-optimization done (n=119): time 3.888e-06/0.4796, allocations: 0 / 382.6 MB, free: 13.16 MB / 330.7 MB Notification: Performance of matching and sorting (n=134): time 0.02091/0.5005, allocations: 5.381 MB / 388 MB, free: 7.645 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001043/0.5007, allocations: 171.5 kB / 388.2 MB, free: 7.441 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002399/0.5031, allocations: 1.167 MB / 389.3 MB, free: 6.266 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002368/0.5033, allocations: 53.7 kB / 389.4 MB, free: 6.207 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008151/0.5041, allocations: 0.7377 MB / 390.1 MB, free: 5.461 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006126/0.5048, allocations: 473.3 kB / 390.6 MB, free: 4.992 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001666/0.505, allocations: 36 kB / 390.6 MB, free: 4.957 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001985/0.5052, allocations: 377.9 kB / 391 MB, free: 4.582 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002241/0.5074, allocations: 0.7456 MB / 391.7 MB, free: 3.836 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002695/0.5101, allocations: 1.231 MB / 393 MB, free: 2.406 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002561/0.5127, allocations: 0.892 MB / 393.9 MB, free: 1.516 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.317e-05/0.5127, allocations: 4 kB / 393.9 MB, free: 1.512 MB / 330.7 MB Notification: Performance of matching and sorting (n=231) (initialization): time 0.006809/0.5196, allocations: 2.421 MB / 396.3 MB, free: 15.07 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002147/0.5218, allocations: 5.463 MB / 401.7 MB, free: 9.242 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.344e-05/0.5219, allocations: 15.95 kB / 401.8 MB, free: 9.227 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0119/0.5338, allocations: 1.115 MB / 402.9 MB, free: 8.098 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002791/0.5366, allocations: 363.4 kB / 403.2 MB, free: 7.742 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00397/0.5406, allocations: 2.873 MB / 406.1 MB, free: 4.762 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002588/0.5432, allocations: 135.8 kB / 406.2 MB, free: 4.629 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002944/0.5436, allocations: 83.97 kB / 406.3 MB, free: 4.547 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.495e-05/0.5436, allocations: 4 kB / 406.3 MB, free: 4.543 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006075/0.5497, allocations: 2.151 MB / 408.5 MB, free: 2.379 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.578e-05/0.5498, allocations: 15.98 kB / 408.5 MB, free: 2.363 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01014/0.5599, allocations: 0.8387 MB / 409.3 MB, free: 1.512 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003/0.563, allocations: 379.4 kB / 409.7 MB, free: 1.141 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003291/0.5663, allocations: 2.631 MB / 412.3 MB, free: 14.41 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002461/0.5688, allocations: 135.9 kB / 412.5 MB, free: 14.27 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003319/0.5692, allocations: 79.97 kB / 412.5 MB, free: 14.2 MB / 362.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.001283/0.5705, allocations: 459.1 kB / 413 MB, free: 13.73 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004898/0.571, allocations: 170 kB / 413.1 MB, free: 13.57 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007725/0.5787, allocations: 2.342 MB / 415.5 MB, free: 11.2 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.754e-05/0.5788, allocations: 16 kB / 415.5 MB, free: 11.18 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.508e-06/0.5788, allocations: 3.938 kB / 415.5 MB, free: 11.18 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.379e-05/0.5789, allocations: 8.156 kB / 415.5 MB, free: 11.17 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01164/0.5905, allocations: 3.959 MB / 419.5 MB, free: 7.121 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-05/0.5906, allocations: 3.938 kB / 419.5 MB, free: 7.117 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002124/0.5927, allocations: 243.6 kB / 419.7 MB, free: 6.879 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007349/0.6001, allocations: 0.9322 MB / 420.7 MB, free: 5.934 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000342/0.6005, allocations: 43.97 kB / 420.7 MB, free: 5.891 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003636/0.6041, allocations: 2.826 MB / 423.5 MB, free: 2.961 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.327e-06/0.6042, allocations: 7.984 kB / 423.5 MB, free: 2.953 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2469/0.8511, allocations: 3.2 MB / 426.7 MB, free: 110.2 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000733/0.8519, allocations: 262.3 kB / 427 MB, free: 110.1 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006726/0.8525, allocations: 37.95 kB / 427 MB, free: 110.1 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002059/0.8546, allocations: 103.2 kB / 427.1 MB, free: 110.1 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005896/0.8552, allocations: 148.7 kB / 427.3 MB, free: 110.1 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002632/0.8555, allocations: 61.14 kB / 427.3 MB, free: 110.1 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.00239/0.8579, allocations: 0.8979 MB / 428.2 MB, free: 110 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.62e-07/0.858, allocations: 0 / 428.2 MB, free: 110 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00576/0.8637, allocations: 1.251 MB / 429.5 MB, free: 110 MB / 362.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.003284/0.8671, allocations: 0.8713 MB / 430.3 MB, free: 109.9 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.008622/0.8758, allocations: 3.088 MB / 433.4 MB, free: 109 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.068e-05/0.8758, allocations: 3.719 kB / 433.4 MB, free: 109 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003187/0.879, allocations: 1.073 MB / 434.5 MB, free: 108.7 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00534/0.8844, allocations: 0.6752 MB / 435.2 MB, free: 108.6 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00766/0.8921, allocations: 4.088 MB / 439.3 MB, free: 106.5 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001057/0.8932, allocations: 1.436 MB / 440.7 MB, free: 105.5 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.004486/0.8977, allocations: 0.8347 MB / 441.5 MB, free: 104.7 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005563/0.8983, allocations: 127.4 kB / 441.7 MB, free: 104.6 MB / 362.7 MB Notification: Performance of SimCode: time 1.332e-06/0.8983, allocations: 3.938 kB / 441.7 MB, free: 104.6 MB / 362.7 MB Notification: Performance of Templates: time 0.118/1.016, allocations: 45.18 MB / 486.9 MB, free: 59.38 MB / 362.7 MB