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_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1") Notification: Performance of loadModel(Modelica): time 1.897/1.897, allocations: 171.1 MB / 186.3 MB, free: 1.402 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.519e-05/3.533e-05, allocations: 4 kB / 228.1 MB, free: 7.969 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08908/0.08914, allocations: 38.78 MB / 266.9 MB, free: 1.109 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1): time 0.02918/0.1184, allocations: 17.09 MB / 284 MB, free: 15.95 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01292/0.1314, allocations: 5.81 MB / 289.8 MB, free: 10.14 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001226/0.1327, allocations: 35.69 kB / 289.8 MB, free: 10.1 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00142/0.1341, allocations: 302.4 kB / 290.1 MB, free: 9.805 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003678/0.1378, allocations: 0.7864 MB / 290.9 MB, free: 9.016 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005577/0.1434, allocations: 1.227 MB / 292.2 MB, free: 7.785 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.002669/0.1461, allocations: 0.9064 MB / 293.1 MB, free: 6.875 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001119/0.1473, allocations: 411.9 kB / 293.5 MB, free: 6.473 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001793/0.1491, allocations: 0.5533 MB / 294 MB, free: 5.918 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001289/0.1505, allocations: 466.7 kB / 294.5 MB, free: 5.461 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00356/0.1541, allocations: 1.096 MB / 295.6 MB, free: 4.363 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008296/0.155, allocations: 84 kB / 295.6 MB, free: 4.281 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005649/0.1556, allocations: 215.3 kB / 295.9 MB, free: 4.07 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000414/0.156, allocations: 88 kB / 295.9 MB, free: 3.984 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00363/0.1596, allocations: 1.325 MB / 297.3 MB, free: 2.656 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.1597, allocations: 4 kB / 297.3 MB, free: 2.652 MB / 250.7 MB Notification: Performance of FrontEnd: time 4.498e-06/0.1597, allocations: 0 / 297.3 MB, free: 2.652 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.223e-05/0.1598, allocations: 0 / 297.3 MB, free: 2.652 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.003474/0.1633, allocations: 1.033 MB / 298.3 MB, free: 1.57 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.05e-05/0.1633, allocations: 8.031 kB / 298.3 MB, free: 1.562 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006511/0.164, allocations: 102.9 kB / 298.4 MB, free: 1.461 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001608/0.1656, allocations: 0.5857 MB / 299 MB, free: 0.832 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.361e-05/0.1657, allocations: 41.31 kB / 299 MB, free: 0.7891 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001822/0.1659, allocations: 55.98 kB / 299.1 MB, free: 0.7344 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2207/0.3866, allocations: 0.8655 MB / 300 MB, free: 31.45 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.664e-05/0.3867, allocations: 4.5 kB / 300 MB, free: 31.45 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001884/0.3869, allocations: 26.12 kB / 300 MB, free: 31.45 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001317/0.3871, allocations: 48.52 kB / 300 MB, free: 31.45 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00291/0.39, allocations: 0.8056 MB / 300.8 MB, free: 31.44 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.009356/0.3994, allocations: 3.912 MB / 304.8 MB, free: 28.71 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001614/0.4011, allocations: 499.6 kB / 305.2 MB, free: 28.53 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004071/0.4052, allocations: 1.712 MB / 307 MB, free: 27.31 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.369e-05/0.4053, allocations: 38.67 kB / 307 MB, free: 27.27 MB / 250.7 MB Notification: Performance of pre-optimization done (n=41): time 3.096e-06/0.4053, allocations: 0 / 307 MB, free: 27.27 MB / 250.7 MB Notification: Performance of matching and sorting (n=46): time 0.006543/0.4118, allocations: 1.796 MB / 308.8 MB, free: 26.25 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.606e-05/0.412, allocations: 138.8 kB / 308.9 MB, free: 26.1 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001293/0.4133, allocations: 0.5972 MB / 309.5 MB, free: 25.83 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001787/0.4135, allocations: 39.42 kB / 309.6 MB, free: 25.79 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000335/0.4138, allocations: 448.9 kB / 310 MB, free: 25.41 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002194/0.4141, allocations: 160.9 kB / 310.2 MB, free: 25.29 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.587e-05/0.4141, allocations: 18.38 kB / 310.2 MB, free: 25.27 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001051/0.4143, allocations: 342 kB / 310.5 MB, free: 24.95 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008363/0.4151, allocations: 264.8 kB / 310.8 MB, free: 24.86 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009683/0.4161, allocations: 0.5511 MB / 311.3 MB, free: 24.39 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009849/0.4171, allocations: 346.4 kB / 311.7 MB, free: 24.26 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.043e-05/0.4172, allocations: 2.469 kB / 311.7 MB, free: 24.26 MB / 250.7 MB Notification: Performance of matching and sorting (n=101) (initialization): time 0.002716/0.4199, allocations: 0.9183 MB / 312.6 MB, free: 23.88 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007908/0.4207, allocations: 3.667 MB / 316.2 MB, free: 20 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.674e-05/0.4208, allocations: 9.25 kB / 316.3 MB, free: 20 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002892/0.4237, allocations: 273.4 kB / 316.5 MB, free: 19.88 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001277/0.425, allocations: 167.9 kB / 316.7 MB, free: 19.84 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001369/0.4264, allocations: 1.261 MB / 317.9 MB, free: 18.66 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001338/0.4278, allocations: 66.53 kB / 318 MB, free: 18.62 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000184/0.4281, allocations: 37.25 kB / 318 MB, free: 18.62 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.769e-05/0.4281, allocations: 3.719 kB / 318 MB, free: 18.62 MB / 250.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002447/0.4305, allocations: 0.8081 MB / 318.9 MB, free: 18.2 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.085e-05/0.4306, allocations: 9.906 kB / 318.9 MB, free: 18.2 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001702/0.4323, allocations: 143.2 kB / 319 MB, free: 18.14 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001806/0.4342, allocations: 224.8 kB / 319.2 MB, free: 18.07 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005025/0.4347, allocations: 0.5848 MB / 319.8 MB, free: 17.52 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009906/0.4357, allocations: 60.45 kB / 319.9 MB, free: 17.48 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001339/0.4359, allocations: 45.42 kB / 319.9 MB, free: 17.47 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.0007125/0.4366, allocations: 253.2 kB / 320.2 MB, free: 17.27 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002746/0.4369, allocations: 70.62 kB / 320.2 MB, free: 17.24 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002799/0.4397, allocations: 0.8821 MB / 321.1 MB, free: 16.72 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.939e-05/0.4398, allocations: 6.875 kB / 321.1 MB, free: 16.72 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.466e-06/0.4398, allocations: 5.203 kB / 321.1 MB, free: 16.72 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.256e-05/0.4398, allocations: 5.359 kB / 321.1 MB, free: 16.71 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00402/0.4438, allocations: 1.576 MB / 322.7 MB, free: 15.63 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.037e-06/0.4439, allocations: 1.656 kB / 322.7 MB, free: 15.63 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007815/0.4447, allocations: 93.11 kB / 322.8 MB, free: 15.61 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001684/0.4464, allocations: 228.2 kB / 323 MB, free: 15.51 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.331e-05/0.4465, allocations: 15.92 kB / 323 MB, free: 15.5 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009619/0.4475, allocations: 1.218 MB / 324.3 MB, free: 14.34 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.368e-06/0.4475, allocations: 0 / 324.3 MB, free: 14.34 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00248/0.45, allocations: 1.149 MB / 325.4 MB, free: 13.62 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002896/0.4503, allocations: 154.6 kB / 325.6 MB, free: 13.47 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002013/0.4505, allocations: 18.84 kB / 325.6 MB, free: 13.46 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007725/0.4513, allocations: 41.61 kB / 325.6 MB, free: 13.44 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001657/0.4515, allocations: 57.66 kB / 325.7 MB, free: 13.41 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.935e-05/0.4516, allocations: 21.48 kB / 325.7 MB, free: 13.4 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.000804/0.4524, allocations: 467 kB / 326.1 MB, free: 13.13 MB / 250.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.4524, allocations: 0 / 326.1 MB, free: 13.13 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.002241/0.4547, allocations: 0.5718 MB / 326.7 MB, free: 13.06 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.001578/0.4563, allocations: 478.9 kB / 327.2 MB, free: 12.88 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.003174/0.4595, allocations: 1.108 MB / 328.3 MB, free: 11.89 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 8.546e-06/0.4596, allocations: 0 / 328.3 MB, free: 11.89 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009021/0.4605, allocations: 328.6 kB / 328.6 MB, free: 11.57 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002485/0.463, allocations: 307.3 kB / 328.9 MB, free: 11.28 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003765/0.4668, allocations: 1.896 MB / 330.8 MB, free: 9.344 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005177/0.4674, allocations: 0.9994 MB / 331.8 MB, free: 8.312 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004523/0.4678, allocations: 79.42 kB / 331.9 MB, free: 8.234 MB / 250.7 MB Notification: Performance of SimCode: time 1.593e-06/0.4679, allocations: 0 / 331.9 MB, free: 8.234 MB / 250.7 MB Notification: Performance of Templates: time 0.04643/0.5143, allocations: 21.52 MB / 353.4 MB, free: 2.734 MB / 266.7 MB