Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank.level|tank.medium.T|tank.aboveLevel.1.|tank.ports_m_flow_out.1.|timeTable.a|timeTable.b|timeTable.last|timeTable.nextEvent",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank") Notification: Performance of loadModel(Modelica): time 1.859/1.859, allocations: 171.1 MB / 186.3 MB, free: 1.418 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.038e-05/3.048e-05, allocations: 4 kB / 228.1 MB, free: 7.984 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09217/0.09222, allocations: 38.77 MB / 266.9 MB, free: 1.121 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank): time 0.03229/0.1246, allocations: 14.47 MB / 281.4 MB, free: 2.586 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.01584/0.1405, allocations: 5.459 MB / 286.8 MB, free: 13.12 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001308/0.1419, allocations: 31.75 kB / 286.9 MB, free: 13.09 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001564/0.1435, allocations: 314.5 kB / 287.2 MB, free: 12.78 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003869/0.1474, allocations: 0.7164 MB / 287.9 MB, free: 12.06 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006845/0.1542, allocations: 1.239 MB / 289.1 MB, free: 10.82 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.002914/0.1572, allocations: 0.836 MB / 290 MB, free: 9.984 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001013/0.1582, allocations: 347.3 kB / 290.3 MB, free: 9.645 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001707/0.16, allocations: 0.5065 MB / 290.8 MB, free: 9.137 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001324/0.1613, allocations: 442.8 kB / 291.2 MB, free: 8.703 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003851/0.1652, allocations: 0.9792 MB / 292.2 MB, free: 7.723 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007567/0.166, allocations: 72 kB / 292.3 MB, free: 7.652 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005283/0.1666, allocations: 211.3 kB / 292.5 MB, free: 7.445 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004257/0.167, allocations: 76 kB / 292.6 MB, free: 7.371 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00389/0.1709, allocations: 1.193 MB / 293.8 MB, free: 6.176 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.171, allocations: 0 / 293.8 MB, free: 6.176 MB / 250.7 MB Notification: Performance of FrontEnd: time 3.065e-06/0.171, allocations: 4 kB / 293.8 MB, free: 6.172 MB / 250.7 MB Notification: Performance of Transformations before backend: time 2.921e-05/0.1711, allocations: 0 / 293.8 MB, free: 6.172 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: 124 * Number of variables: 124 Notification: Performance of Generate backend data structure: time 0.003745/0.1748, allocations: 0.9918 MB / 294.8 MB, free: 5.125 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.114e-05/0.1749, allocations: 8.031 kB / 294.8 MB, free: 5.117 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007762/0.1757, allocations: 99.05 kB / 294.9 MB, free: 5.02 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001866/0.1776, allocations: 0.558 MB / 295.4 MB, free: 4.418 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001642/0.1778, allocations: 96.33 kB / 295.5 MB, free: 4.309 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001894/0.178, allocations: 51.94 kB / 295.6 MB, free: 4.258 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002771/0.1808, allocations: 0.7735 MB / 296.3 MB, free: 3.438 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.71e-05/0.1808, allocations: 7.984 kB / 296.3 MB, free: 3.43 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001503/0.181, allocations: 16 kB / 296.4 MB, free: 3.414 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001555/0.1812, allocations: 40.92 kB / 296.4 MB, free: 3.375 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002438/0.1836, allocations: 0.6635 MB / 297.1 MB, free: 2.707 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.2261/0.4097, allocations: 3.46 MB / 300.5 MB, free: 30.09 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001198/0.411, allocations: 394.8 kB / 300.9 MB, free: 30.06 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002554/0.4135, allocations: 1.277 MB / 302.2 MB, free: 29.22 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006846/0.4143, allocations: 276 kB / 302.5 MB, free: 29.14 MB / 250.7 MB Notification: Performance of pre-optimization done (n=33): time 3.316e-06/0.4143, allocations: 0 / 302.5 MB, free: 29.14 MB / 250.7 MB Notification: Performance of matching and sorting (n=38): time 0.006002/0.4203, allocations: 1.746 MB / 304.2 MB, free: 28.3 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.112e-05/0.4205, allocations: 160.8 kB / 304.4 MB, free: 28.12 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001449/0.4219, allocations: 0.6108 MB / 305 MB, free: 27.86 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001572/0.4221, allocations: 34.61 kB / 305 MB, free: 27.82 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003485/0.4225, allocations: 439.8 kB / 305.4 MB, free: 27.44 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000183/0.4227, allocations: 138.1 kB / 305.6 MB, free: 27.34 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.116e-05/0.4228, allocations: 16.17 kB / 305.6 MB, free: 27.33 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001031/0.4229, allocations: 340.7 kB / 305.9 MB, free: 27 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006764/0.4236, allocations: 230.9 kB / 306.1 MB, free: 26.93 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000834/0.4244, allocations: 0.5247 MB / 306.7 MB, free: 26.48 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00084/0.4253, allocations: 337.2 kB / 307 MB, free: 26.34 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.018e-05/0.4253, allocations: 3 kB / 307 MB, free: 26.34 MB / 250.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.00253/0.4278, allocations: 0.8911 MB / 307.9 MB, free: 25.98 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008426/0.4287, allocations: 3.605 MB / 311.5 MB, free: 22.16 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.963e-05/0.4288, allocations: 9.781 kB / 311.5 MB, free: 22.16 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001003/0.4298, allocations: 133.4 kB / 311.6 MB, free: 22.14 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001055/0.4309, allocations: 149.3 kB / 311.8 MB, free: 22.12 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008402/0.4317, allocations: 0.6758 MB / 312.5 MB, free: 21.54 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001066/0.4328, allocations: 45.69 kB / 312.5 MB, free: 21.52 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.814e-05/0.4329, allocations: 45.14 kB / 312.5 MB, free: 21.51 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.472e-05/0.433, allocations: 3.719 kB / 312.6 MB, free: 21.51 MB / 250.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002661/0.4356, allocations: 0.872 MB / 313.4 MB, free: 21.18 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.947e-05/0.4357, allocations: 9.312 kB / 313.4 MB, free: 21.18 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005923/0.4363, allocations: 107.9 kB / 313.5 MB, free: 21.16 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001004/0.4373, allocations: 153.2 kB / 313.7 MB, free: 21.14 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000689/0.4381, allocations: 0.6536 MB / 314.3 MB, free: 20.56 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000752/0.4388, allocations: 40.55 kB / 314.4 MB, free: 20.55 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.29e-05/0.4389, allocations: 39.23 kB / 314.4 MB, free: 20.54 MB / 250.7 MB Warning: Assuming fixed start value for the following 2 variables: tank.medium.T:VARIABLE(min = max(1.0, max(1.0, 1.0)) max = min(10000.0, min(10000.0, 10000.0)) start = tank.T_start unit = "K" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real tank.level:VARIABLE(start = tank.level_start unit = "m" fixed = true stateSelect=StateSelect.prefer ) "Fluid level in the tank" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,$PRE.tank.ports_m_flow_out[1],tank.ports_m_flow_out[1],$PRE.tank.aboveLevel[1],tank.aboveLevel[1],timeTable.a,timeTable.b,timeTable.last,$PRE.timeTable.nextEvent,timeTable.nextEvent) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (85): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0007763/0.4397, allocations: 313.8 kB / 314.7 MB, free: 20.32 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002085/0.4399, allocations: 75.91 kB / 314.8 MB, free: 20.28 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001978/0.4419, allocations: 0.6468 MB / 315.4 MB, free: 20 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.465e-05/0.442, allocations: 7.062 kB / 315.5 MB, free: 20 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.357e-06/0.442, allocations: 0.8438 kB / 315.5 MB, free: 20 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.104e-05/0.442, allocations: 1.453 kB / 315.5 MB, free: 20 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003291/0.4453, allocations: 1.304 MB / 316.8 MB, free: 19.33 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.632e-06/0.4454, allocations: 1.375 kB / 316.8 MB, free: 19.33 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005545/0.446, allocations: 60.53 kB / 316.8 MB, free: 19.32 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007565/0.4467, allocations: 122.3 kB / 316.9 MB, free: 19.29 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.762e-05/0.4468, allocations: 16.08 kB / 317 MB, free: 19.29 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007164/0.4475, allocations: 0.6598 MB / 317.6 MB, free: 18.7 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.856e-06/0.4476, allocations: 2.094 kB / 317.6 MB, free: 18.7 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002179/0.4497, allocations: 0.9638 MB / 318.6 MB, free: 18.22 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002913/0.4501, allocations: 145.3 kB / 318.7 MB, free: 18.08 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001923/0.4503, allocations: 15.56 kB / 318.7 MB, free: 18.07 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006657/0.451, allocations: 31.95 kB / 318.8 MB, free: 18.07 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001469/0.4511, allocations: 35.5 kB / 318.8 MB, free: 18.06 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.208e-05/0.4512, allocations: 22.5 kB / 318.8 MB, free: 18.05 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.000871/0.4521, allocations: 477.2 kB / 319.3 MB, free: 17.86 MB / 250.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.4521, allocations: 0 / 319.3 MB, free: 17.86 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.002218/0.4543, allocations: 0.4969 MB / 319.8 MB, free: 17.81 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (tank.level,tank.medium.T) * Number of discrete variables: 7 ($whenCondition1,tank.ports_m_flow_out[1],tank.aboveLevel[1],timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent) * Number of discrete states: 7 (timeTable.last,timeTable.nextEvent,timeTable.b,timeTable.a,$whenCondition1,tank.aboveLevel[1],tank.ports_m_flow_out[1]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.001478/0.4558, allocations: 411.7 kB / 320.2 MB, free: 17.67 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.003171/0.459, allocations: 1.118 MB / 321.3 MB, free: 17.1 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 8.536e-06/0.4591, allocations: 3.938 kB / 321.3 MB, free: 17.09 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009293/0.46, allocations: 308.7 kB / 321.6 MB, free: 16.93 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002116/0.4622, allocations: 261.5 kB / 321.9 MB, free: 16.79 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0034/0.4656, allocations: 1.722 MB / 323.6 MB, free: 15.64 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005015/0.4662, allocations: 0.9705 MB / 324.6 MB, free: 14.8 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002918/0.4665, allocations: 62.14 kB / 324.6 MB, free: 14.79 MB / 250.7 MB Notification: Performance of SimCode: time 3.105e-06/0.4665, allocations: 3.969 kB / 324.6 MB, free: 14.79 MB / 250.7 MB Notification: Performance of Templates: time 0.03148/0.498, allocations: 15.66 MB / 340.3 MB, free: 15.3 MB / 266.7 MB