Running command: "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2,fileNamePrefix="PowerSystems_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(PowerSystems): time 2.463/2.463, allocations: 233 MB / 246.1 MB, free: 15.01 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.583e-05/3.593e-05, allocations: 4 kB / 302.3 MB, free: 7.594 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1307/0.1307, allocations: 53.24 MB / 355.5 MB, free: 2.238 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4647/0.5955, allocations: 97.44 MB / 453 MB, free: 4.371 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003217/0.5959, allocations: 87.94 kB / 453.1 MB, free: 4.285 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09822/0.6941, allocations: 21.65 MB / 474.7 MB, free: 14.48 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.6942, allocations: 0 / 474.7 MB, free: 14.48 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.233e-05/0.6943, allocations: 19.94 kB / 474.7 MB, free: 14.46 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: 142 * Number of variables: 142 Notification: Performance of Generate backend data structure: time 0.002747/0.697, allocations: 0.9173 MB / 475.6 MB, free: 13.5 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.638e-05/0.6971, allocations: 12.03 kB / 475.7 MB, free: 13.49 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002882/0.6974, allocations: 98.5 kB / 475.8 MB, free: 13.39 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001758/0.6992, allocations: 170.8 kB / 475.9 MB, free: 13.22 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001726/0.701, allocations: 0.5584 MB / 476.5 MB, free: 12.62 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.89e-05/0.7011, allocations: 41.83 kB / 476.5 MB, free: 12.57 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001901/0.7013, allocations: 67.84 kB / 476.6 MB, free: 12.51 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001805/0.7031, allocations: 0.6488 MB / 477.2 MB, free: 11.84 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.248e-05/0.7032, allocations: 0 / 477.2 MB, free: 11.84 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001034/0.7033, allocations: 24 kB / 477.3 MB, free: 11.81 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.473e-05/0.7034, allocations: 33.3 kB / 477.3 MB, free: 11.78 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001658/0.7051, allocations: 0.5335 MB / 477.8 MB, free: 11.25 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007224/0.7123, allocations: 2.563 MB / 480.4 MB, free: 8.582 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001934/0.7143, allocations: 0.6208 MB / 481 MB, free: 7.914 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005302/0.7149, allocations: 195 kB / 481.2 MB, free: 7.719 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.093e-05/0.715, allocations: 4.438 kB / 481.2 MB, free: 7.715 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.412e-05/0.715, allocations: 43 kB / 481.2 MB, free: 7.664 MB / 410.7 MB Notification: Performance of pre-optimization done (n=49): time 3.707e-06/0.7151, allocations: 0 / 481.2 MB, free: 7.664 MB / 410.7 MB Notification: Performance of matching and sorting (n=49): time 0.001417/0.7165, allocations: 451.4 kB / 481.7 MB, free: 7.215 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.127e-05/0.7166, allocations: 107.3 kB / 481.8 MB, free: 7.086 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008981/0.7175, allocations: 453 kB / 482.2 MB, free: 6.633 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 9.62e-05/0.7176, allocations: 37.7 kB / 482.3 MB, free: 6.59 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003753/0.718, allocations: 332.5 kB / 482.6 MB, free: 6.262 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002497/0.7183, allocations: 173.5 kB / 482.8 MB, free: 6.09 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.989e-05/0.7183, allocations: 12 kB / 482.8 MB, free: 6.078 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002065/0.7186, allocations: 370.8 kB / 483.1 MB, free: 5.707 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005013/0.7191, allocations: 161.2 kB / 483.3 MB, free: 5.551 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000659/0.7197, allocations: 284 kB / 483.6 MB, free: 5.238 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006085/0.7204, allocations: 201.6 kB / 483.8 MB, free: 5.043 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.64e-06/0.7204, allocations: 0 / 483.8 MB, free: 5.043 MB / 410.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.002217/0.7226, allocations: 0.6483 MB / 484.4 MB, free: 4.383 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006727/0.7233, allocations: 1.049 MB / 485.5 MB, free: 3.254 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.096e-05/0.7234, allocations: 4 kB / 485.5 MB, free: 3.25 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005949/0.724, allocations: 100.8 kB / 485.6 MB, free: 3.148 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001186/0.7252, allocations: 139.8 kB / 485.7 MB, free: 3.012 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000878/0.7261, allocations: 0.6828 MB / 486.4 MB, free: 2.305 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009534/0.7271, allocations: 91.45 kB / 486.5 MB, free: 2.215 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.432e-05/0.7271, allocations: 16 kB / 486.5 MB, free: 2.199 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.733e-05/0.7272, allocations: 7.953 kB / 486.5 MB, free: 2.191 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001692/0.7289, allocations: 0.5185 MB / 487 MB, free: 1.668 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.005e-05/0.7289, allocations: 4 kB / 487 MB, free: 1.664 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004611/0.7294, allocations: 88.75 kB / 487.1 MB, free: 1.574 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001134/0.7305, allocations: 144.1 kB / 487.2 MB, free: 1.434 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002956/0.7335, allocations: 1.924 MB / 489.2 MB, free: 15.38 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009436/0.7345, allocations: 79.55 kB / 489.2 MB, free: 15.3 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.547e-05/0.7346, allocations: 24 kB / 489.3 MB, free: 15.28 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (57): * Single equations (assignments): 56 * 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 9} Notification: Performance of prepare postOptimizeDAE: time 0.0002389/0.7348, allocations: 136.8 kB / 489.4 MB, free: 15.14 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001794/0.735, allocations: 67.25 kB / 489.5 MB, free: 15.07 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00147/0.7365, allocations: 494.4 kB / 490 MB, free: 14.57 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.116e-05/0.7366, allocations: 4 kB / 490 MB, free: 14.57 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.7366, allocations: 4 kB / 490 MB, free: 14.57 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.329e-05/0.7366, allocations: 3.984 kB / 490 MB, free: 14.56 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002829/0.7394, allocations: 1.201 MB / 491.2 MB, free: 13.3 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.851e-06/0.7395, allocations: 0 / 491.2 MB, free: 13.3 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001203/0.7407, allocations: 119.9 kB / 491.3 MB, free: 13.19 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.336e-05/0.7407, allocations: 4 kB / 491.3 MB, free: 13.18 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.309e-05/0.7408, allocations: 12 kB / 491.3 MB, free: 13.17 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.142e-06/0.7408, allocations: 0 / 491.3 MB, free: 13.17 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.299e-06/0.7408, allocations: 4 kB / 491.3 MB, free: 13.17 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001929/0.7428, allocations: 0.8055 MB / 492.1 MB, free: 12.33 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004048/0.7432, allocations: 184.2 kB / 492.3 MB, free: 12.13 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001333/0.7434, allocations: 12 kB / 492.3 MB, free: 12.12 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007795/0.7442, allocations: 51.95 kB / 492.4 MB, free: 12.07 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001489/0.7443, allocations: 36.38 kB / 492.4 MB, free: 12.04 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.92e-05/0.7444, allocations: 12 kB / 492.4 MB, free: 12.02 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0007312/0.7451, allocations: 365.5 kB / 492.8 MB, free: 11.67 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.7452, allocations: 0 / 492.8 MB, free: 11.67 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001303/0.7465, allocations: 263.8 kB / 493 MB, free: 11.41 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 9 (powerPlant.rotor.phi,powerPlant.rotor.w,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 (50): * Single equations (assignments): 49 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002526/0.749, allocations: 1.443 MB / 494.5 MB, free: 9.938 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002312/0.7514, allocations: 0.8065 MB / 495.3 MB, free: 9.121 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.25e-06/0.7514, allocations: 0 / 495.3 MB, free: 9.121 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006211/0.7521, allocations: 222.9 kB / 495.5 MB, free: 8.902 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001066/0.7532, allocations: 119.7 kB / 495.6 MB, free: 8.789 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004453/0.7576, allocations: 1.291 MB / 496.9 MB, free: 7.453 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006854/0.7584, allocations: 0.9469 MB / 497.8 MB, free: 6.48 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001084/0.7595, allocations: 154.6 kB / 498 MB, free: 6.328 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005435/0.76, allocations: 239.3 kB / 498.2 MB, free: 6.094 MB / 426.7 MB Notification: Performance of SimCode: time 1.422e-06/0.76, allocations: 0 / 498.2 MB, free: 6.094 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05061/0.8107, allocations: 13.67 MB / 0.4999 GB, free: 8.5 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003728/0.8111, allocations: 191.7 kB / 0.5001 GB, free: 8.262 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.043/3.854, allocations: 0 / 0.5001 GB, free: 8.262 MB / 442.7 MB