Running command: "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(PowerSystems): time 2.261/2.261, allocations: 233 MB / 245.6 MB, free: 15.04 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.109e-05/3.11e-05, allocations: 3.938 kB / 301.4 MB, free: 8.094 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1048/0.1049, allocations: 53.24 MB / 354.6 MB, free: 2.742 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4435/0.5485, allocations: 99.26 MB / 453.9 MB, free: 2.766 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003078/0.5488, allocations: 84.83 kB / 453.9 MB, free: 2.684 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1127/0.6616, allocations: 27.34 MB / 481.3 MB, free: 7.125 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.6616, allocations: 0 / 481.3 MB, free: 7.125 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.419e-05/0.6617, allocations: 20 kB / 481.3 MB, free: 7.105 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 161 * Number of variables: 161 Notification: Performance of Generate backend data structure: time 0.002802/0.6645, allocations: 0.9755 MB / 482.3 MB, free: 6.086 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.877e-05/0.6646, allocations: 12.03 kB / 482.3 MB, free: 6.074 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002338/0.6649, allocations: 110.5 kB / 482.4 MB, free: 5.957 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002133/0.667, allocations: 202.7 kB / 482.6 MB, free: 5.758 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001637/0.6687, allocations: 0.5783 MB / 483.2 MB, free: 5.137 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.469e-05/0.6688, allocations: 53.27 kB / 483.2 MB, free: 5.082 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001781/0.6689, allocations: 64 kB / 483.3 MB, free: 5.02 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002054/0.671, allocations: 0.7503 MB / 484 MB, free: 4.246 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.837e-05/0.6711, allocations: 4 kB / 484 MB, free: 4.242 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001111/0.6712, allocations: 27.98 kB / 484.1 MB, free: 4.215 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000167/0.6714, allocations: 41.23 kB / 484.1 MB, free: 4.172 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001863/0.6732, allocations: 0.6663 MB / 484.8 MB, free: 3.508 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007581/0.6808, allocations: 2.878 MB / 487.6 MB, free: 0.5234 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001997/0.6829, allocations: 0.8377 MB / 488.5 MB, free: 15.61 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006756/0.6836, allocations: 259.4 kB / 488.7 MB, free: 15.35 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.504e-05/0.6837, allocations: 12.55 kB / 488.8 MB, free: 15.34 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.837e-05/0.6837, allocations: 43.11 kB / 488.8 MB, free: 15.29 MB / 426.7 MB Notification: Performance of pre-optimization done (n=58): time 3.277e-06/0.6837, allocations: 0 / 488.8 MB, free: 15.29 MB / 426.7 MB Notification: Performance of matching and sorting (n=62): time 0.005195/0.6889, allocations: 1.918 MB / 490.7 MB, free: 13.29 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.622e-05/0.6891, allocations: 107.4 kB / 490.8 MB, free: 13.16 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008915/0.69, allocations: 453 kB / 491.3 MB, free: 12.7 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 9.301e-05/0.6901, allocations: 33.7 kB / 491.3 MB, free: 12.66 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003003/0.6904, allocations: 366.8 kB / 491.7 MB, free: 12.3 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002638/0.6907, allocations: 220.8 kB / 491.9 MB, free: 12.09 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.908e-05/0.6907, allocations: 16 kB / 491.9 MB, free: 12.07 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000155/0.6909, allocations: 334.8 kB / 492.2 MB, free: 11.73 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006551/0.6916, allocations: 213.6 kB / 492.4 MB, free: 11.52 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007318/0.6923, allocations: 326.8 kB / 492.7 MB, free: 11.16 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007203/0.693, allocations: 263.2 kB / 493 MB, free: 10.91 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.839e-06/0.6931, allocations: 4 kB / 493 MB, free: 10.9 MB / 426.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001924/0.695, allocations: 0.6478 MB / 493.6 MB, free: 10.24 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004771/0.6955, allocations: 1.148 MB / 494.8 MB, free: 9.008 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.41e-05/0.6955, allocations: 7.984 kB / 494.8 MB, free: 9 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004266/0.696, allocations: 60.81 kB / 494.9 MB, free: 8.938 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001465/0.6974, allocations: 175.8 kB / 495 MB, free: 8.766 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002328/0.6998, allocations: 1.606 MB / 496.6 MB, free: 7.023 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00102/0.7008, allocations: 64 kB / 496.7 MB, free: 6.961 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.106e-05/0.7009, allocations: 35.92 kB / 496.7 MB, free: 6.926 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.171e-05/0.701, allocations: 4 kB / 496.7 MB, free: 6.922 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001828/0.7028, allocations: 0.6034 MB / 497.3 MB, free: 6.312 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.748e-06/0.7028, allocations: 4 kB / 497.3 MB, free: 6.309 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000338/0.7032, allocations: 56.81 kB / 497.4 MB, free: 6.25 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001358/0.7045, allocations: 172.1 kB / 497.6 MB, free: 6.082 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002208/0.7068, allocations: 1.626 MB / 499.2 MB, free: 4.324 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006708/0.7075, allocations: 43.92 kB / 499.2 MB, free: 4.281 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.856e-05/0.7076, allocations: 32.05 kB / 499.3 MB, free: 4.25 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (75): * Single equations (assignments): 74 * 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: 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.0002426/0.7078, allocations: 137.4 kB / 499.4 MB, free: 4.109 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002212/0.708, allocations: 67.16 kB / 499.5 MB, free: 4.043 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002022/0.7101, allocations: 0.6743 MB / 0.4884 GB, free: 3.352 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.282e-05/0.7101, allocations: 8.141 kB / 0.4884 GB, free: 3.344 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.773e-06/0.7101, allocations: 7.984 kB / 0.4884 GB, free: 3.336 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.3e-05/0.7101, allocations: 3.984 kB / 0.4884 GB, free: 3.332 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005994/0.7162, allocations: 1.995 MB / 0.4904 GB, free: 1.203 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.414e-05/0.7162, allocations: 8.75 kB / 0.4904 GB, free: 1.195 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001158/0.7174, allocations: 135.8 kB / 0.4905 GB, free: 1.062 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003316/0.7177, allocations: 56.81 kB / 0.4906 GB, free: 1.004 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.854e-05/0.7178, allocations: 24 kB / 0.4906 GB, free: 0.9805 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001991/0.7198, allocations: 1.577 MB / 0.4921 GB, free: 15.27 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.638e-05/0.7199, allocations: 11.94 kB / 0.4922 GB, free: 15.26 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002933/0.7228, allocations: 1.446 MB / 0.4936 GB, free: 13.57 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000475/0.7233, allocations: 200.2 kB / 0.4938 GB, free: 13.36 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001317/0.7235, allocations: 16 kB / 0.4938 GB, free: 13.34 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008861/0.7244, allocations: 63.91 kB / 0.4938 GB, free: 13.28 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001867/0.7246, allocations: 63.81 kB / 0.4939 GB, free: 13.22 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.32e-05/0.7246, allocations: 27.98 kB / 0.4939 GB, free: 13.19 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0007329/0.7254, allocations: 357.6 kB / 0.4943 GB, free: 12.84 MB / 442.7 MB Notification: Performance of sort global known variables: time 5.51e-07/0.7254, allocations: 0 / 0.4943 GB, free: 12.84 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001809/0.7272, allocations: 252.7 kB / 0.4945 GB, free: 12.6 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * Number of states: 7 (powerPlant.evaporator.y,powerPlant.superheater1.y,powerPlant.superheater2.y,powerPlant.transferFunction.x_scaled[1],powerPlant.hotwellLevel.y,powerPlant.throttleDynamics.y,powerPlant.throttleCosts.y) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (62): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 Backend phase and start with SimCode phase: time 0.003918/0.7312, allocations: 3.756 MB / 0.4982 GB, free: 8.637 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002886/0.7341, allocations: 1.068 MB / 0.4992 GB, free: 7.551 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.164e-05/0.7341, allocations: 4 kB / 0.4992 GB, free: 7.547 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001117/0.7353, allocations: 421.4 kB / 0.4996 GB, free: 7.125 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001237/0.7365, allocations: 136 kB / 0.4998 GB, free: 6.996 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004379/0.7409, allocations: 1.469 MB / 0.5012 GB, free: 5.398 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007706/0.7417, allocations: 0.9935 MB / 0.5022 GB, free: 4.379 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006743/0.7424, allocations: 267.3 kB / 0.5024 GB, free: 4.117 MB / 442.7 MB Notification: Performance of SimCode: time 1.382e-06/0.7424, allocations: 4 kB / 0.5024 GB, free: 4.113 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.777/3.519, allocations: 14.65 MB / 0.5167 GB, free: 5.461 MB / 458.7 MB