Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1") Notification: Performance of loadModel(Modelica): time 1.755/1.755, allocations: 171.2 MB / 185.7 MB, free: 1.391 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.164e-05/3.171e-05, allocations: 0 / 228.2 MB, free: 7.328 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08401/0.08407, allocations: 38.77 MB / 266.9 MB, free: 492 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1): time 0.0274/0.1115, allocations: 17.1 MB / 284 MB, free: 15.32 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01249/0.1241, allocations: 5.817 MB / 289.8 MB, free: 9.492 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001014/0.1251, allocations: 35.69 kB / 289.9 MB, free: 9.457 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001101/0.1263, allocations: 302.4 kB / 290.2 MB, free: 9.16 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003011/0.1293, allocations: 0.7825 MB / 290.9 MB, free: 8.375 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004938/0.1343, allocations: 1.231 MB / 292.2 MB, free: 7.141 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.002446/0.1367, allocations: 0.9103 MB / 293.1 MB, free: 6.227 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008312/0.1376, allocations: 403.9 kB / 293.5 MB, free: 5.832 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001443/0.139, allocations: 0.5494 MB / 294 MB, free: 5.281 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001022/0.1401, allocations: 462.7 kB / 294.5 MB, free: 4.828 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003144/0.1433, allocations: 1.1 MB / 295.6 MB, free: 3.727 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005034/0.1438, allocations: 84 kB / 295.7 MB, free: 3.645 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003764/0.1442, allocations: 219.3 kB / 295.9 MB, free: 3.43 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003688/0.1446, allocations: 88 kB / 296 MB, free: 3.344 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002998/0.1476, allocations: 1.317 MB / 297.3 MB, free: 2.023 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.1476, allocations: 0 / 297.3 MB, free: 2.023 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.264e-06/0.1476, allocations: 4 kB / 297.3 MB, free: 2.02 MB / 250.7 MB Notification: Performance of Transformations before backend: time 2.109e-05/0.1477, allocations: 4 kB / 297.3 MB, free: 2.016 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: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.003156/0.1508, allocations: 1.033 MB / 298.3 MB, free: 0.9336 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.992e-05/0.1509, allocations: 12.03 kB / 298.3 MB, free: 0.9219 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006076/0.1515, allocations: 102.9 kB / 298.4 MB, free: 0.8203 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001432/0.153, allocations: 0.5818 MB / 299 MB, free: 200 kB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.058e-05/0.1531, allocations: 45.3 kB / 299.1 MB, free: 152 kB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001526/0.1532, allocations: 52 kB / 299.1 MB, free: 100 kB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2081/0.3614, allocations: 0.8746 MB / 300 MB, free: 31.72 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.643e-05/0.3615, allocations: 1.938 kB / 300 MB, free: 31.72 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001274/0.3616, allocations: 28.92 kB / 300 MB, free: 31.72 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001069/0.3617, allocations: 44.05 kB / 300.1 MB, free: 31.72 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002234/0.364, allocations: 0.8101 MB / 300.9 MB, free: 31.64 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.007804/0.3718, allocations: 3.903 MB / 304.8 MB, free: 28.79 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001315/0.3731, allocations: 0.496 MB / 305.3 MB, free: 28.61 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003398/0.3766, allocations: 1.713 MB / 307 MB, free: 27.39 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.194e-05/0.3766, allocations: 37.03 kB / 307 MB, free: 27.34 MB / 250.7 MB Notification: Performance of pre-optimization done (n=41): time 3.076e-06/0.3766, allocations: 0 / 307 MB, free: 27.34 MB / 250.7 MB Notification: Performance of matching and sorting (n=46): time 0.005616/0.3823, allocations: 1.794 MB / 308.8 MB, free: 26.33 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.992e-05/0.3823, allocations: 133.1 kB / 308.9 MB, free: 26.18 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001087/0.3834, allocations: 0.6023 MB / 309.5 MB, free: 25.91 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 7.623e-05/0.3835, allocations: 37.11 kB / 309.6 MB, free: 25.87 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003107/0.3838, allocations: 427.2 kB / 310 MB, free: 25.53 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001629/0.384, allocations: 168.9 kB / 310.2 MB, free: 25.41 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.157e-05/0.3841, allocations: 15.53 kB / 310.2 MB, free: 25.4 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001235/0.3842, allocations: 386.1 kB / 310.6 MB, free: 25.05 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000679/0.3849, allocations: 259.6 kB / 310.8 MB, free: 24.97 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000828/0.3858, allocations: 0.5531 MB / 311.4 MB, free: 24.5 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008185/0.3866, allocations: 339.9 kB / 311.7 MB, free: 24.37 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.126e-06/0.3866, allocations: 2.438 kB / 311.7 MB, free: 24.37 MB / 250.7 MB Notification: Performance of matching and sorting (n=101) (initialization): time 0.002416/0.389, allocations: 0.9638 MB / 312.7 MB, free: 23.89 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006459/0.3897, allocations: 3.666 MB / 316.3 MB, free: 19.98 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.216e-05/0.3897, allocations: 9.188 kB / 316.3 MB, free: 19.98 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002557/0.3923, allocations: 274.7 kB / 316.6 MB, free: 19.86 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001135/0.3935, allocations: 172.3 kB / 316.8 MB, free: 19.82 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001161/0.3946, allocations: 1.248 MB / 318 MB, free: 18.64 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001126/0.3958, allocations: 59.53 kB / 318.1 MB, free: 18.62 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001096/0.3959, allocations: 44.95 kB / 318.1 MB, free: 18.61 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.206e-05/0.3959, allocations: 6.297 kB / 318.1 MB, free: 18.61 MB / 250.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002004/0.3979, allocations: 0.8079 MB / 318.9 MB, free: 18.19 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.574e-05/0.398, allocations: 9.688 kB / 318.9 MB, free: 18.19 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00153/0.3995, allocations: 139.7 kB / 319.1 MB, free: 18.13 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001575/0.4011, allocations: 225.5 kB / 319.3 MB, free: 18.07 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004155/0.4015, allocations: 0.5896 MB / 319.9 MB, free: 17.5 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009587/0.4025, allocations: 67.23 kB / 320 MB, free: 17.47 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.992e-05/0.4026, allocations: 39.58 kB / 320 MB, free: 17.46 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * 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 (95): * Single equations (assignments): 93 * 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 2,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0005252/0.4032, allocations: 254.6 kB / 320.2 MB, free: 17.26 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001573/0.4033, allocations: 70.91 kB / 320.3 MB, free: 17.22 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002487/0.4058, allocations: 0.8834 MB / 321.2 MB, free: 16.71 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.58e-05/0.4059, allocations: 10.05 kB / 321.2 MB, free: 16.7 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/0.4059, allocations: 0 / 321.2 MB, free: 16.7 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.546e-06/0.4059, allocations: 0 / 321.2 MB, free: 16.7 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003435/0.4093, allocations: 1.582 MB / 322.8 MB, free: 15.61 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.854e-06/0.4094, allocations: 8.062 kB / 322.8 MB, free: 15.61 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007178/0.4101, allocations: 94.75 kB / 322.9 MB, free: 15.59 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001588/0.4117, allocations: 223.7 kB / 323.1 MB, free: 15.49 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.22e-05/0.4118, allocations: 11.97 kB / 323.1 MB, free: 15.48 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008659/0.4126, allocations: 1.216 MB / 324.3 MB, free: 14.32 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.444e-06/0.4127, allocations: 0 / 324.3 MB, free: 14.32 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002322/0.415, allocations: 1.146 MB / 325.5 MB, free: 13.6 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002523/0.4153, allocations: 154.8 kB / 325.6 MB, free: 13.45 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002056/0.4155, allocations: 23.8 kB / 325.7 MB, free: 13.44 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007704/0.4163, allocations: 39.7 kB / 325.7 MB, free: 13.42 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001572/0.4165, allocations: 48.11 kB / 325.7 MB, free: 13.39 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.404e-05/0.4165, allocations: 23.67 kB / 325.8 MB, free: 13.38 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0007292/0.4173, allocations: 471.8 kB / 326.2 MB, free: 13.11 MB / 250.7 MB Notification: Performance of sort global known variables: time 3.7e-07/0.4173, allocations: 0 / 326.2 MB, free: 13.11 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.002095/0.4194, allocations: 0.5673 MB / 326.8 MB, free: 12.86 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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[2],tank1.aboveLevel[1]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * 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: 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 5,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.00143/0.4208, allocations: 494.9 kB / 327.3 MB, free: 12.45 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.002946/0.4238, allocations: 1.12 MB / 328.4 MB, free: 11.34 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 5.651e-06/0.4238, allocations: 0 / 328.4 MB, free: 11.34 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000837/0.4247, allocations: 335 kB / 328.7 MB, free: 11.01 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002259/0.427, allocations: 303.2 kB / 329 MB, free: 10.73 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003295/0.4303, allocations: 1.876 MB / 330.9 MB, free: 8.82 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004988/0.4308, allocations: 0.9966 MB / 331.9 MB, free: 7.793 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.00203/0.4329, allocations: 374.6 kB / 332.3 MB, free: 7.422 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000247/0.4331, allocations: 67.41 kB / 332.3 MB, free: 7.355 MB / 250.7 MB Notification: Performance of SimCode: time 9.12e-07/0.4331, allocations: 0 / 332.3 MB, free: 7.355 MB / 250.7 MB Notification: Performance of Templates: time 0.04752/0.4807, allocations: 18.97 MB / 351.3 MB, free: 4.426 MB / 266.7 MB