Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank,fileNamePrefix="Modelica_trunk_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_OneTank",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.939/1.939, allocations: 225.8 MB / 239.3 MB, free: 11.22 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.36e-05/3.38e-05, allocations: 4 kB / 292.2 MB, free: 8.762 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1089/0.109, allocations: 50.41 MB / 342.6 MB, free: 6.328 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.052/1.161, allocations: 327.1 MB / 0.654 GB, free: 28.78 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003511/1.161, allocations: 88.44 kB / 0.6541 GB, free: 28.73 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7997/1.961, allocations: 146.1 MB / 0.7968 GB, free: 91.55 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.663e-06/1.961, allocations: 0 / 0.7968 GB, free: 91.55 MB / 458.7 MB Notification: Performance of Transformations before backend: time 8.189e-05/1.961, allocations: 19.98 kB / 0.7968 GB, free: 91.53 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.003148/1.964, allocations: 1.087 MB / 0.7979 GB, free: 90.39 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.749e-05/1.964, allocations: 8.031 kB / 0.7979 GB, free: 90.38 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002259/1.965, allocations: 94.52 kB / 0.798 GB, free: 90.28 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005504/1.965, allocations: 98.95 kB / 0.7981 GB, free: 90.18 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001841/1.967, allocations: 0.6087 MB / 0.7987 GB, free: 89.54 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001056/1.967, allocations: 88.36 kB / 0.7987 GB, free: 89.43 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001568/1.967, allocations: 51.98 kB / 0.7988 GB, free: 89.38 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001817/1.969, allocations: 0.8045 MB / 0.7996 GB, free: 88.52 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.008e-05/1.969, allocations: 0 / 0.7996 GB, free: 88.52 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001107/1.969, allocations: 28 kB / 0.7996 GB, free: 88.5 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.796e-05/1.97, allocations: 40.97 kB / 0.7996 GB, free: 88.46 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001568/1.971, allocations: 0.6577 MB / 0.8003 GB, free: 87.8 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006976/1.978, allocations: 3.408 MB / 0.8036 GB, free: 84.19 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009618/1.979, allocations: 419.2 kB / 0.804 GB, free: 83.77 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005505/1.98, allocations: 257.1 kB / 0.8043 GB, free: 83.51 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002589/1.982, allocations: 1.413 MB / 0.8056 GB, free: 81.96 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006732/1.983, allocations: 373.2 kB / 0.806 GB, free: 81.56 MB / 458.7 MB Notification: Performance of pre-optimization done (n=35): time 3.006e-06/1.983, allocations: 0 / 0.806 GB, free: 81.56 MB / 458.7 MB Notification: Performance of matching and sorting (n=40): time 0.00476/1.988, allocations: 1.582 MB / 0.8075 GB, free: 79.91 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.021e-05/1.988, allocations: 273 kB / 0.8078 GB, free: 79.58 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001214/1.989, allocations: 0.6719 MB / 0.8085 GB, free: 78.9 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001451/1.989, allocations: 37.7 kB / 0.8085 GB, free: 78.86 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002829/1.99, allocations: 409.6 kB / 0.8089 GB, free: 78.45 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000157/1.99, allocations: 134.2 kB / 0.809 GB, free: 78.32 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.047e-05/1.99, allocations: 16 kB / 0.809 GB, free: 78.3 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 7.832e-05/1.99, allocations: 338.8 kB / 0.8093 GB, free: 77.96 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006132/1.991, allocations: 253.5 kB / 0.8096 GB, free: 77.72 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007713/1.991, allocations: 0.4933 MB / 0.8101 GB, free: 77.12 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007292/1.992, allocations: 348.3 kB / 0.8104 GB, free: 76.77 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.621e-06/1.992, allocations: 0 / 0.8104 GB, free: 76.77 MB / 458.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.002413/1.995, allocations: 0.9139 MB / 0.8113 GB, free: 75.84 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004831/1.995, allocations: 2.477 MB / 0.8137 GB, free: 73.17 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.528e-05/1.995, allocations: 4 kB / 0.8137 GB, free: 73.17 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008552/1.996, allocations: 136.7 kB / 0.8138 GB, free: 73.03 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001009/1.997, allocations: 135.8 kB / 0.814 GB, free: 72.9 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007467/1.998, allocations: 0.6772 MB / 0.8146 GB, free: 72.2 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001368/1.999, allocations: 52.02 kB / 0.8147 GB, free: 72.14 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001726/1.999, allocations: 36 kB / 0.8147 GB, free: 72.11 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.401e-05/1.999, allocations: 4 kB / 0.8147 GB, free: 72.11 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002667/2.002, allocations: 0.8973 MB / 0.8156 GB, free: 71.2 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.916e-05/2.002, allocations: 8.125 kB / 0.8156 GB, free: 71.19 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005873/2.003, allocations: 112.8 kB / 0.8157 GB, free: 71.07 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001016/2.004, allocations: 135.8 kB / 0.8158 GB, free: 70.94 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006509/2.005, allocations: 0.6499 MB / 0.8165 GB, free: 70.27 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009948/2.006, allocations: 51.91 kB / 0.8165 GB, free: 70.21 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001087/2.006, allocations: 39.95 kB / 0.8166 GB, free: 70.18 MB / 458.7 MB Warning: Assuming fixed start value for the following 2 variables: tank.level:VARIABLE(start = tank.level_start unit = "m" stateSelect=StateSelect.prefer ) "Fluid level in the tank" type: Real 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" nominal = 300.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 11 ($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,timeTable.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (78): * Single equations (assignments): 76 * 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.0003912/2.006, allocations: 216.4 kB / 0.8168 GB, free: 69.96 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002394/2.006, allocations: 82.97 kB / 0.8169 GB, free: 69.88 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002155/2.008, allocations: 0.7322 MB / 0.8176 GB, free: 69.12 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.046e-05/2.009, allocations: 7.984 kB / 0.8176 GB, free: 69.12 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.604e-06/2.009, allocations: 4 kB / 0.8176 GB, free: 69.11 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.889e-06/2.009, allocations: 7.953 kB / 0.8176 GB, free: 69.11 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003499/2.012, allocations: 1.447 MB / 0.819 GB, free: 67.59 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.294e-06/2.012, allocations: 4 kB / 0.819 GB, free: 67.59 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005541/2.013, allocations: 59.91 kB / 0.8191 GB, free: 67.53 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007427/2.013, allocations: 124.8 kB / 0.8192 GB, free: 67.4 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.589e-05/2.014, allocations: 19.94 kB / 0.8192 GB, free: 67.38 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006768/2.014, allocations: 0.6656 MB / 0.8198 GB, free: 66.69 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.514e-06/2.014, allocations: 0 / 0.8198 GB, free: 66.69 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002452/2.017, allocations: 1.087 MB / 0.8209 GB, free: 65.57 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004039/2.017, allocations: 164.1 kB / 0.8211 GB, free: 65.39 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002438/2.018, allocations: 16.12 kB / 0.8211 GB, free: 65.37 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009414/2.018, allocations: 35.97 kB / 0.8211 GB, free: 65.34 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001489/2.019, allocations: 39.94 kB / 0.8212 GB, free: 65.3 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.76e-05/2.019, allocations: 23.98 kB / 0.8212 GB, free: 65.27 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001009/2.02, allocations: 0.5226 MB / 0.8217 GB, free: 64.76 MB / 458.7 MB Notification: Performance of sort global known variables: time 6.71e-07/2.02, allocations: 0 / 0.8217 GB, free: 64.76 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002605/2.022, allocations: 0.601 MB / 0.8223 GB, free: 64.16 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (tank.medium.T,tank.level) * Number of discrete variables: 8 ($whenCondition1,tank.ports_m_flow_out[1],tank.aboveLevel[1],timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 8 (tank.aboveLevel[1],tank.ports_m_flow_out[1],timeTable.nextEvent,timeTable.last,timeTable.nextEventScaled,timeTable.b,timeTable.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 31 * 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.004054/2.026, allocations: 2.137 MB / 0.8244 GB, free: 61.99 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003149/2.03, allocations: 1.102 MB / 0.8254 GB, free: 60.86 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.787e-06/2.03, allocations: 4.5 kB / 0.8254 GB, free: 60.86 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009749/2.031, allocations: 347.2 kB / 0.8258 GB, free: 60.5 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002688/2.033, allocations: 297.5 kB / 0.8261 GB, free: 60.21 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004336/2.038, allocations: 1.407 MB / 0.8274 GB, free: 58.75 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004799/2.038, allocations: 0.9814 MB / 0.8284 GB, free: 57.75 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005758/2.039, allocations: 263.4 kB / 0.8286 GB, free: 57.49 MB / 458.7 MB Notification: Performance of SimCode: time 1.082e-06/2.039, allocations: 0 / 0.8286 GB, free: 57.49 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.265/5.304, allocations: 21.22 MB / 0.8494 GB, free: 36.36 MB / 458.7 MB