Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Fluid_TestComponents_Vessels_TestSimpleTank",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(ModelicaTest): time 2.939/2.939, allocations: 235.2 MB / 242.3 MB, free: 9.566 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.127e-05/3.162e-05, allocations: 4 kB / 299.6 MB, free: 204 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4868/0.4869, allocations: 54.86 MB / 354.4 MB, free: 15.18 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.478/1.965, allocations: 329.6 MB / 0.668 GB, free: 134.3 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003599/1.965, allocations: 86.25 kB / 0.668 GB, free: 134.3 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6823/2.648, allocations: 140.7 MB / 0.8054 GB, free: 31.27 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.974e-06/2.648, allocations: 0 / 0.8054 GB, free: 31.27 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001038/2.648, allocations: 20 kB / 0.8054 GB, free: 31.25 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 153 * Number of variables: 153 Notification: Performance of Generate backend data structure: time 0.004487/2.652, allocations: 1.18 MB / 0.8066 GB, free: 30.02 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.806e-05/2.652, allocations: 16.02 kB / 0.8066 GB, free: 30 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002754/2.653, allocations: 82.52 kB / 0.8067 GB, free: 29.91 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008056/2.654, allocations: 106.9 kB / 0.8068 GB, free: 29.81 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002772/2.656, allocations: 0.7101 MB / 0.8075 GB, free: 29.05 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001476/2.656, allocations: 88.72 kB / 0.8076 GB, free: 28.96 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002151/2.657, allocations: 32 kB / 0.8076 GB, free: 28.93 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002678/2.659, allocations: 0.8224 MB / 0.8084 GB, free: 28.1 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002756/2.662, allocations: 0.9192 MB / 0.8093 GB, free: 27.14 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.775e-05/2.662, allocations: 0 / 0.8093 GB, free: 27.14 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001801/2.662, allocations: 4 kB / 0.8093 GB, free: 27.13 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001423/2.663, allocations: 49.28 kB / 0.8094 GB, free: 27.09 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01197/2.675, allocations: 3.871 MB / 0.8131 GB, free: 23.04 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001816/2.676, allocations: 0.6127 MB / 0.8137 GB, free: 22.41 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001128/2.678, allocations: 370.3 kB / 0.8141 GB, free: 22.05 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006616/2.684, allocations: 2.342 MB / 0.8164 GB, free: 19.46 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001199/2.686, allocations: 423.4 kB / 0.8168 GB, free: 19.03 MB / 490.7 MB Notification: Performance of pre-optimization done (n=47): time 4.629e-06/2.686, allocations: 4 kB / 0.8168 GB, free: 19.02 MB / 490.7 MB Notification: Performance of matching and sorting (n=52): time 0.0152/2.701, allocations: 2.389 MB / 0.8191 GB, free: 16.57 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.629e-05/2.701, allocations: 162.6 kB / 0.8193 GB, free: 16.38 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001198/2.702, allocations: 0.5464 MB / 0.8198 GB, free: 15.82 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001805/2.702, allocations: 29.7 kB / 0.8198 GB, free: 15.79 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004664/2.703, allocations: 454.8 kB / 0.8203 GB, free: 15.33 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002738/2.703, allocations: 169.5 kB / 0.8204 GB, free: 15.16 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.88e-05/2.703, allocations: 4 kB / 0.8204 GB, free: 15.16 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001668/2.703, allocations: 382.8 kB / 0.8208 GB, free: 14.78 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00105/2.704, allocations: 345.9 kB / 0.8211 GB, free: 14.44 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001236/2.706, allocations: 0.6073 MB / 0.8217 GB, free: 13.7 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01001/2.716, allocations: 1.04 MB / 0.8227 GB, free: 12.66 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-05/2.716, allocations: 0 / 0.8227 GB, free: 12.66 MB / 490.7 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.01301/2.729, allocations: 1.753 MB / 0.8244 GB, free: 10.9 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008454/2.73, allocations: 3.429 MB / 0.8278 GB, free: 7.199 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.061e-05/2.73, allocations: 8 kB / 0.8278 GB, free: 7.191 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00162/2.731, allocations: 329.5 kB / 0.8281 GB, free: 6.863 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001554/2.733, allocations: 163.7 kB / 0.8283 GB, free: 6.703 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004278/2.737, allocations: 1.631 MB / 0.8299 GB, free: 5.02 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001731/2.739, allocations: 36.03 kB / 0.8299 GB, free: 4.984 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002451/2.739, allocations: 51.92 kB / 0.8299 GB, free: 4.934 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.665e-05/2.739, allocations: 4 kB / 0.83 GB, free: 4.93 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01045/2.75, allocations: 1.42 MB / 0.8313 GB, free: 3.5 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.097e-05/2.75, allocations: 11.95 kB / 0.8313 GB, free: 3.488 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001241/2.751, allocations: 253.9 kB / 0.8316 GB, free: 3.234 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001517/2.753, allocations: 155.7 kB / 0.8317 GB, free: 3.082 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003078/2.756, allocations: 2.284 MB / 0.834 GB, free: 0.6602 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001484/2.757, allocations: 36.06 kB / 0.834 GB, free: 0.625 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000209/2.758, allocations: 36 kB / 0.834 GB, free: 0.5898 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2],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 (89): * Single equations (assignments): 86 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 1,2 4} Notification: Performance of prepare postOptimizeDAE: time 0.000442/2.758, allocations: 174.3 kB / 0.8342 GB, free: 416 kB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002825/2.758, allocations: 87.05 kB / 0.8343 GB, free: 328 kB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3992/3.158, allocations: 1.128 MB / 0.8354 GB, free: 123.6 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.975e-05/3.158, allocations: 7.719 kB / 0.8354 GB, free: 123.6 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/3.158, allocations: 3.766 kB / 0.8354 GB, free: 123.6 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.137e-05/3.158, allocations: 3.203 kB / 0.8354 GB, free: 123.6 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008728/3.167, allocations: 1.886 MB / 0.8372 GB, free: 123.3 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.618e-06/3.167, allocations: 1.938 kB / 0.8372 GB, free: 123.3 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009624/3.168, allocations: 77.14 kB / 0.8373 GB, free: 123.3 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001442/3.169, allocations: 315.4 kB / 0.8376 GB, free: 123.3 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000179/3.169, allocations: 8.875 kB / 0.8376 GB, free: 123.3 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003946/3.173, allocations: 1.594 MB / 0.8392 GB, free: 122.3 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.057e-06/3.173, allocations: 5.656 kB / 0.8392 GB, free: 122.3 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006542/3.18, allocations: 1.599 MB / 0.8408 GB, free: 122.1 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008144/3.181, allocations: 235.2 kB / 0.841 GB, free: 122 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002403/3.181, allocations: 10.22 kB / 0.841 GB, free: 122 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001213/3.182, allocations: 31.41 kB / 0.841 GB, free: 122 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002598/3.182, allocations: 49.09 kB / 0.8411 GB, free: 122 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001387/3.183, allocations: 36.08 kB / 0.8411 GB, free: 122 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0008678/3.184, allocations: 419.6 kB / 0.8415 GB, free: 121.9 MB / 490.7 MB Notification: Performance of sort global known variables: time 6.51e-07/3.184, allocations: 0 / 0.8415 GB, free: 121.9 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.003411/3.187, allocations: 0.6176 MB / 0.8421 GB, free: 121.9 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (tank.medium.T,tank.level) * Number of discrete variables: 10 ($whenCondition1,tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2],timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 6 (timeTable.nextEvent,timeTable.last,timeTable.nextEventScaled,timeTable.b,timeTable.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 39 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 1,2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.008721/3.196, allocations: 2.585 MB / 0.8446 GB, free: 121.2 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.00484/3.201, allocations: 1.546 MB / 0.8461 GB, free: 121 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 7.233e-06/3.201, allocations: 0 / 0.8461 GB, free: 121 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001767/3.202, allocations: 460.4 kB / 0.8466 GB, free: 120.9 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002769/3.205, allocations: 254 kB / 0.8468 GB, free: 120.9 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007053/3.212, allocations: 1.655 MB / 0.8484 GB, free: 120.6 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007726/3.213, allocations: 1.028 MB / 0.8494 GB, free: 119.9 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.002579/3.216, allocations: 326.7 kB / 0.8497 GB, free: 119.9 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007181/3.217, allocations: 288.4 kB / 0.85 GB, free: 119.9 MB / 490.7 MB Notification: Performance of SimCode: time 1.343e-06/3.217, allocations: 3.531 kB / 0.85 GB, free: 119.9 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1606/3.377, allocations: 26.42 MB / 0.8758 GB, free: 119 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.000317/3.378, allocations: 204.4 kB / 0.876 GB, free: 118.8 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 4.833/8.21, allocations: 3.219 kB / 0.876 GB, free: 118.8 MB / 490.7 MB