Running command: "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(PowerSystems): time 2.318/2.318, allocations: 233 MB / 245.6 MB, free: 14.81 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.235e-05/3.246e-05, allocations: 4 kB / 301.4 MB, free: 7.879 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1084/0.1084, allocations: 53.23 MB / 354.6 MB, free: 2.531 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4583/0.5668, allocations: 97.45 MB / 452 MB, free: 4.445 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003234/0.5672, allocations: 83.95 kB / 452.1 MB, free: 4.363 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09204/0.6592, allocations: 21.65 MB / 473.8 MB, free: 14.57 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.094e-06/0.6593, allocations: 3.938 kB / 473.8 MB, free: 14.56 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.589e-05/0.6594, allocations: 20 kB / 473.8 MB, free: 14.54 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.002597/0.662, allocations: 0.9095 MB / 474.7 MB, free: 13.59 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.128e-05/0.662, allocations: 12.03 kB / 474.7 MB, free: 13.58 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001964/0.6623, allocations: 106.4 kB / 474.8 MB, free: 13.46 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001487/0.6638, allocations: 170.8 kB / 475 MB, free: 13.3 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001419/0.6652, allocations: 0.5588 MB / 475.5 MB, free: 12.7 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.645e-05/0.6653, allocations: 41.31 kB / 475.6 MB, free: 12.65 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001681/0.6655, allocations: 63.94 kB / 475.6 MB, free: 12.59 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00171/0.6672, allocations: 0.6488 MB / 476.3 MB, free: 11.92 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.902e-05/0.6672, allocations: 0 / 476.3 MB, free: 11.92 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.891e-05/0.6673, allocations: 27.98 kB / 476.3 MB, free: 11.89 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.229e-05/0.6674, allocations: 37.23 kB / 476.4 MB, free: 11.85 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001531/0.669, allocations: 0.5297 MB / 476.9 MB, free: 11.32 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006305/0.6753, allocations: 2.555 MB / 479.4 MB, free: 8.668 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001822/0.6771, allocations: 0.6248 MB / 480.1 MB, free: 7.996 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005053/0.6777, allocations: 199 kB / 480.3 MB, free: 7.797 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.026e-05/0.6778, allocations: 8.422 kB / 480.3 MB, free: 7.789 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.752e-05/0.6778, allocations: 43.03 kB / 480.3 MB, free: 7.738 MB / 410.7 MB Notification: Performance of pre-optimization done (n=49): time 3.146e-06/0.6778, allocations: 4 kB / 480.3 MB, free: 7.734 MB / 410.7 MB Notification: Performance of matching and sorting (n=49): time 0.001293/0.6791, allocations: 451.5 kB / 480.8 MB, free: 7.285 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.552e-05/0.6792, allocations: 107.2 kB / 480.9 MB, free: 7.156 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008118/0.68, allocations: 449 kB / 481.3 MB, free: 6.707 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 7.307e-05/0.6801, allocations: 37.7 kB / 481.3 MB, free: 6.664 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000308/0.6804, allocations: 347 kB / 481.7 MB, free: 6.324 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002296/0.6807, allocations: 177.5 kB / 481.8 MB, free: 6.148 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.817e-05/0.6807, allocations: 8 kB / 481.9 MB, free: 6.141 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001944/0.681, allocations: 334.8 kB / 482.2 MB, free: 5.805 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005089/0.6815, allocations: 169 kB / 482.3 MB, free: 5.641 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006153/0.6821, allocations: 272 kB / 482.6 MB, free: 5.34 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005632/0.6827, allocations: 201.6 kB / 482.8 MB, free: 5.145 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.276e-06/0.6827, allocations: 7.953 kB / 482.8 MB, free: 5.137 MB / 410.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001957/0.6847, allocations: 0.5941 MB / 483.4 MB, free: 4.531 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000489/0.6852, allocations: 1.049 MB / 484.5 MB, free: 3.402 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.237e-05/0.6852, allocations: 4 kB / 484.5 MB, free: 3.398 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005566/0.6858, allocations: 108.8 kB / 484.6 MB, free: 3.289 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001104/0.6869, allocations: 135.8 kB / 484.7 MB, free: 3.156 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008626/0.6878, allocations: 0.6812 MB / 485.4 MB, free: 2.449 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008598/0.6887, allocations: 91.39 kB / 485.5 MB, free: 2.359 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.984e-05/0.6887, allocations: 19.95 kB / 485.5 MB, free: 2.34 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.076e-05/0.6887, allocations: 4.062 kB / 485.5 MB, free: 2.336 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001586/0.6903, allocations: 0.5184 MB / 486 MB, free: 1.812 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.1e-05/0.6904, allocations: 7.953 kB / 486 MB, free: 1.805 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003784/0.6908, allocations: 77.16 kB / 486.1 MB, free: 1.727 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00106/0.6918, allocations: 143.8 kB / 486.2 MB, free: 1.586 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002825/0.6947, allocations: 1.909 MB / 488.1 MB, free: 15.55 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005574/0.6953, allocations: 55.73 kB / 488.2 MB, free: 15.49 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.905e-05/0.6953, allocations: 20 kB / 488.2 MB, free: 15.47 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.0002258/0.6956, allocations: 144.8 kB / 488.4 MB, free: 15.32 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002089/0.6958, allocations: 67.14 kB / 488.4 MB, free: 15.26 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001392/0.6972, allocations: 498.5 kB / 488.9 MB, free: 14.76 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.459e-05/0.6972, allocations: 4.281 kB / 488.9 MB, free: 14.75 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.936e-06/0.6972, allocations: 7.938 kB / 488.9 MB, free: 14.75 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.865e-06/0.6973, allocations: 0 / 488.9 MB, free: 14.75 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002616/0.6999, allocations: 1.193 MB / 490.1 MB, free: 13.5 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.338e-06/0.6999, allocations: 0 / 490.1 MB, free: 13.5 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001189/0.7011, allocations: 127.9 kB / 490.2 MB, free: 13.37 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.356e-06/0.7011, allocations: 0 / 490.2 MB, free: 13.37 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.932e-05/0.7012, allocations: 12 kB / 490.3 MB, free: 13.36 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.275e-06/0.7012, allocations: 7.938 kB / 490.3 MB, free: 13.35 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.7012, allocations: 0 / 490.3 MB, free: 13.35 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001853/0.7031, allocations: 0.8017 MB / 491.1 MB, free: 12.52 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003416/0.7035, allocations: 196.1 kB / 491.3 MB, free: 12.31 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001184/0.7036, allocations: 12 kB / 491.3 MB, free: 12.3 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007462/0.7043, allocations: 47.95 kB / 491.3 MB, free: 12.25 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000135/0.7045, allocations: 36.38 kB / 491.3 MB, free: 12.21 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.01e-05/0.7046, allocations: 19.95 kB / 491.4 MB, free: 12.2 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0006616/0.7052, allocations: 361.5 kB / 491.7 MB, free: 11.84 MB / 426.7 MB Notification: Performance of sort global known variables: time 7.12e-07/0.7052, allocations: 0 / 491.7 MB, free: 11.84 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001219/0.7065, allocations: 259.9 kB / 492 MB, free: 11.59 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.002296/0.7088, allocations: 1.443 MB / 493.4 MB, free: 10.12 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002142/0.7109, allocations: 0.7836 MB / 494.2 MB, free: 9.324 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.427e-06/0.711, allocations: 1.375 kB / 494.2 MB, free: 9.324 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005613/0.7115, allocations: 213.6 kB / 494.4 MB, free: 9.113 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009611/0.7125, allocations: 124.8 kB / 494.5 MB, free: 9 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004093/0.7166, allocations: 1.329 MB / 495.9 MB, free: 7.621 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006648/0.7173, allocations: 0.9419 MB / 496.8 MB, free: 6.652 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005943/0.7179, allocations: 239.4 kB / 497 MB, free: 6.418 MB / 426.7 MB Notification: Performance of SimCode: time 1.102e-06/0.7179, allocations: 0 / 497 MB, free: 6.418 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.665/3.383, allocations: 11.89 MB / 0.497 GB, free: 10.53 MB / 442.7 MB