Running command: "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(PowerSystems): time 2.44/2.44, allocations: 233 MB / 246.1 MB, free: 14.84 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.698e-05/3.738e-05, allocations: 4 kB / 302.3 MB, free: 7.391 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1133/0.1134, allocations: 53.24 MB / 355.5 MB, free: 2.035 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4627/0.5761, allocations: 97.79 MB / 453.3 MB, free: 3.898 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003246/0.5765, allocations: 83.95 kB / 453.4 MB, free: 3.816 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1036/0.6801, allocations: 24.24 MB / 477.6 MB, free: 11.38 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.6802, allocations: 0 / 477.6 MB, free: 11.38 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.015e-05/0.6802, allocations: 16 kB / 477.7 MB, free: 11.37 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: 139 * Number of variables: 139 Notification: Performance of Generate backend data structure: time 0.002668/0.6829, allocations: 0.8898 MB / 478.6 MB, free: 10.43 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.712e-05/0.683, allocations: 12.02 kB / 478.6 MB, free: 10.41 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002508/0.6833, allocations: 94.52 kB / 478.7 MB, free: 10.31 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002089/0.6854, allocations: 186.9 kB / 478.8 MB, free: 10.13 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001362/0.6868, allocations: 0.4946 MB / 479.3 MB, free: 9.59 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.035e-05/0.6869, allocations: 61.12 kB / 479.4 MB, free: 9.531 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002034/0.6871, allocations: 55.91 kB / 479.4 MB, free: 9.477 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001849/0.6889, allocations: 0.6842 MB / 480.1 MB, free: 8.758 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.571e-05/0.689, allocations: 3.938 kB / 480.1 MB, free: 8.754 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001003/0.6891, allocations: 24 kB / 480.2 MB, free: 8.73 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001721/0.6893, allocations: 37.3 kB / 480.2 MB, free: 8.695 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001775/0.6911, allocations: 0.596 MB / 480.8 MB, free: 8.098 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007288/0.6984, allocations: 2.708 MB / 483.5 MB, free: 5.277 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001691/0.7002, allocations: 498.1 kB / 484 MB, free: 4.773 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000884/0.7011, allocations: 308.8 kB / 484.3 MB, free: 4.469 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.851e-05/0.7012, allocations: 8.391 kB / 484.3 MB, free: 4.461 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008847/0.7021, allocations: 372.8 kB / 484.7 MB, free: 4.078 MB / 410.7 MB Notification: Performance of pre-optimization done (n=55): time 3.567e-06/0.7021, allocations: 0 / 484.7 MB, free: 4.078 MB / 410.7 MB Notification: Performance of matching and sorting (n=57): time 0.004253/0.7064, allocations: 1.523 MB / 486.2 MB, free: 2.496 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.747e-05/0.7065, allocations: 115.3 kB / 486.3 MB, free: 2.359 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007375/0.7072, allocations: 371.1 kB / 486.7 MB, free: 2 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 9.997e-05/0.7074, allocations: 37.7 kB / 486.7 MB, free: 1.957 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003172/0.7077, allocations: 288.6 kB / 487 MB, free: 1.668 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002639/0.708, allocations: 201.2 kB / 487.2 MB, free: 1.469 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.651e-05/0.708, allocations: 19.97 kB / 487.2 MB, free: 1.449 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001868/0.7082, allocations: 366.7 kB / 487.5 MB, free: 1.082 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000651/0.7089, allocations: 233.2 kB / 487.8 MB, free: 0.8516 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000741/0.7096, allocations: 332.6 kB / 488.1 MB, free: 500 kB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007594/0.7104, allocations: 300.8 kB / 488.4 MB, free: 196 kB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.088e-06/0.7104, allocations: 4.031 kB / 488.4 MB, free: 192 kB / 410.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.002761/0.7132, allocations: 0.8491 MB / 489.2 MB, free: 15.32 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004602/0.7137, allocations: 0.995 MB / 490.2 MB, free: 14.24 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.403e-05/0.7137, allocations: 4 kB / 490.2 MB, free: 14.24 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001003/0.7148, allocations: 173.6 kB / 490.4 MB, free: 14.06 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001056/0.7158, allocations: 119.8 kB / 490.5 MB, free: 13.95 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002862/0.7187, allocations: 2.109 MB / 492.6 MB, free: 11.67 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001209/0.72, allocations: 67.92 kB / 492.7 MB, free: 11.61 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.648e-05/0.7201, allocations: 20 kB / 492.7 MB, free: 11.59 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.576e-05/0.7201, allocations: 4 kB / 492.7 MB, free: 11.58 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002382/0.7225, allocations: 0.758 MB / 493.5 MB, free: 10.81 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.317e-05/0.7226, allocations: 4 kB / 493.5 MB, free: 10.81 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008648/0.7235, allocations: 157.9 kB / 493.6 MB, free: 10.65 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001028/0.7245, allocations: 119.8 kB / 493.8 MB, free: 10.53 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005344/0.7299, allocations: 3.53 MB / 497.3 MB, free: 6.738 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001087/0.731, allocations: 60 kB / 497.4 MB, free: 6.68 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001087/0.7312, allocations: 20 kB / 497.4 MB, free: 6.66 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 6 (system.initime,$whenCondition1,$PRE.secondary.T_start,secondary.T_start,$PRE.secondary.count,secondary.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (57): * Single equations (assignments): 54 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {1 12} Notification: Performance of prepare postOptimizeDAE: time 0.0002815/0.7315, allocations: 144.7 kB / 497.5 MB, free: 6.512 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001678/0.7316, allocations: 55.34 kB / 497.6 MB, free: 6.457 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002199/0.7339, allocations: 0.7207 MB / 498.3 MB, free: 5.723 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.555e-05/0.7339, allocations: 8 kB / 498.3 MB, free: 5.715 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.724e-06/0.7339, allocations: 0 / 498.3 MB, free: 5.715 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.94e-05/0.734, allocations: 11.92 kB / 498.3 MB, free: 5.703 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004181/0.7381, allocations: 1.538 MB / 499.8 MB, free: 4.082 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.163e-05/0.7382, allocations: 4 kB / 499.9 MB, free: 4.078 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001273/0.7395, allocations: 140 kB / 500 MB, free: 3.941 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000398/0.7399, allocations: 61.67 kB / 0.4883 GB, free: 3.875 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.391e-05/0.74, allocations: 12 kB / 0.4883 GB, free: 3.863 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002812/0.7429, allocations: 2.693 MB / 0.491 GB, free: 0.8945 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.063e-06/0.7429, allocations: 4 kB / 0.491 GB, free: 0.8906 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003076/0.746, allocations: 1.228 MB / 0.4922 GB, free: 15.58 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004897/0.7465, allocations: 180.5 kB / 0.4923 GB, free: 15.38 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001426/0.7467, allocations: 23.92 kB / 0.4924 GB, free: 15.36 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009916/0.7477, allocations: 63.94 kB / 0.4924 GB, free: 15.3 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002141/0.7479, allocations: 56.38 kB / 0.4925 GB, free: 15.24 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.557e-05/0.748, allocations: 20 kB / 0.4925 GB, free: 15.22 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0005663/0.7486, allocations: 293.2 kB / 0.4928 GB, free: 14.94 MB / 442.7 MB Notification: Performance of sort global known variables: time 5.71e-07/0.7486, allocations: 0 / 0.4928 GB, free: 14.94 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001502/0.7501, allocations: 264 kB / 0.493 GB, free: 14.68 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (hydroPlant.reservoirLevel.y,hydroPlant.rotor.phi,hydroPlant.rotor.w,hydroPlant.controlDynamics.x_scaled[1]) * Number of discrete variables: 4 (system.initime,$whenCondition1,secondary.T_start,secondary.count) * Number of discrete states: 1 (secondary.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (61): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003669/0.7538, allocations: 2.294 MB / 0.4953 GB, free: 12.3 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003789/0.7577, allocations: 1.406 MB / 0.4966 GB, free: 10.84 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.256e-06/0.7577, allocations: 3.938 kB / 0.4967 GB, free: 10.84 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001401/0.7591, allocations: 0.5404 MB / 0.4972 GB, free: 10.28 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001056/0.7602, allocations: 102.3 kB / 0.4973 GB, free: 10.19 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004255/0.7645, allocations: 1.284 MB / 0.4985 GB, free: 8.844 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007954/0.7654, allocations: 0.9473 MB / 0.4995 GB, free: 7.867 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001116/0.7665, allocations: 180.4 kB / 0.4996 GB, free: 7.688 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005889/0.7671, allocations: 223.4 kB / 0.4998 GB, free: 7.469 MB / 442.7 MB Notification: Performance of SimCode: time 3.707e-06/0.7672, allocations: 0 / 0.4998 GB, free: 7.469 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0527/0.8199, allocations: 14.37 MB / 0.5139 GB, free: 9.176 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002194/0.8201, allocations: 186.5 kB / 0.514 GB, free: 8.957 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.142/3.962, allocations: 0 / 0.514 GB, free: 8.957 MB / 458.7 MB