Running command: "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2,fileNamePrefix="PowerSystems_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(PowerSystems): time 2.288/2.288, allocations: 233 MB / 246.1 MB, free: 14.81 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.521e-05/4.566e-05, allocations: 0 / 302.3 MB, free: 7.383 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.114/0.1141, allocations: 53.24 MB / 355.5 MB, free: 2.031 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4596/0.5738, allocations: 97.8 MB / 453.3 MB, free: 3.867 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003172/0.5742, allocations: 79.95 kB / 453.4 MB, free: 3.789 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1005/0.6747, allocations: 24.24 MB / 477.6 MB, free: 11.36 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.6747, allocations: 4 kB / 477.6 MB, free: 11.35 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.94e-05/0.6748, allocations: 20 kB / 477.7 MB, free: 11.33 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.002359/0.6772, allocations: 0.882 MB / 478.6 MB, free: 10.4 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.09e-05/0.6772, allocations: 8.031 kB / 478.6 MB, free: 10.39 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001796/0.6774, allocations: 102.5 kB / 478.7 MB, free: 10.28 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001943/0.6794, allocations: 186.9 kB / 478.8 MB, free: 10.1 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001192/0.6806, allocations: 0.5062 MB / 479.3 MB, free: 9.547 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.483e-05/0.6807, allocations: 49.2 kB / 479.4 MB, free: 9.5 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001601/0.6808, allocations: 55.91 kB / 479.4 MB, free: 9.445 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001731/0.6826, allocations: 0.6841 MB / 480.1 MB, free: 8.727 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.458e-05/0.6826, allocations: 4 kB / 480.1 MB, free: 8.723 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.431e-05/0.6827, allocations: 20 kB / 480.2 MB, free: 8.703 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001434/0.6829, allocations: 37.28 kB / 480.2 MB, free: 8.668 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001664/0.6846, allocations: 0.5999 MB / 480.8 MB, free: 8.066 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006286/0.6909, allocations: 2.712 MB / 483.5 MB, free: 5.242 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00146/0.6924, allocations: 490.1 kB / 484 MB, free: 4.746 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007968/0.6932, allocations: 307 kB / 484.3 MB, free: 4.441 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.52e-05/0.6933, allocations: 8.391 kB / 484.3 MB, free: 4.434 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008689/0.6941, allocations: 372.8 kB / 484.7 MB, free: 4.051 MB / 410.7 MB Notification: Performance of pre-optimization done (n=55): time 2.925e-06/0.6942, allocations: 0 / 484.7 MB, free: 4.051 MB / 410.7 MB Notification: Performance of matching and sorting (n=57): time 0.004072/0.6982, allocations: 1.523 MB / 486.2 MB, free: 2.469 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.017e-05/0.6983, allocations: 111.4 kB / 486.3 MB, free: 2.336 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006913/0.6991, allocations: 375.1 kB / 486.7 MB, free: 1.973 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 7.68e-05/0.6991, allocations: 37.7 kB / 486.7 MB, free: 1.93 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003225/0.6995, allocations: 296.7 kB / 487 MB, free: 1.633 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002406/0.6997, allocations: 193.2 kB / 487.2 MB, free: 1.441 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.671e-05/0.6998, allocations: 15.94 kB / 487.2 MB, free: 1.426 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001881/0.7, allocations: 370.7 kB / 487.5 MB, free: 1.055 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006361/0.7007, allocations: 225.3 kB / 487.8 MB, free: 0.832 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007427/0.7014, allocations: 340.5 kB / 488.1 MB, free: 472 kB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007473/0.7022, allocations: 296.9 kB / 488.4 MB, free: 172 kB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.467e-06/0.7022, allocations: 0 / 488.4 MB, free: 172 kB / 410.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.00265/0.7049, allocations: 0.8608 MB / 489.2 MB, free: 15.28 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004308/0.7053, allocations: 0.9912 MB / 490.2 MB, free: 14.21 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.311e-05/0.7053, allocations: 4 kB / 490.2 MB, free: 14.21 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009427/0.7063, allocations: 169.5 kB / 490.4 MB, free: 14.04 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009591/0.7073, allocations: 131.7 kB / 490.5 MB, free: 13.91 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002536/0.7098, allocations: 2.109 MB / 492.6 MB, free: 11.63 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009894/0.7108, allocations: 67.92 kB / 492.7 MB, free: 11.57 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.062e-05/0.7109, allocations: 20 kB / 492.7 MB, free: 11.55 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.817e-06/0.7109, allocations: 4.062 kB / 492.7 MB, free: 11.54 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00226/0.7132, allocations: 0.7541 MB / 493.5 MB, free: 10.78 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.7132, allocations: 0 / 493.5 MB, free: 10.78 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000806/0.7141, allocations: 165.9 kB / 493.7 MB, free: 10.61 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009323/0.715, allocations: 111.9 kB / 493.8 MB, free: 10.5 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004874/0.7199, allocations: 3.534 MB / 497.3 MB, free: 6.703 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009789/0.7209, allocations: 59.92 kB / 497.4 MB, free: 6.645 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.615e-05/0.721, allocations: 20 kB / 497.4 MB, free: 6.625 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.0002604/0.7213, allocations: 141.5 kB / 497.5 MB, free: 6.48 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001373/0.7214, allocations: 59.34 kB / 497.6 MB, free: 6.422 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002152/0.7236, allocations: 0.7168 MB / 498.3 MB, free: 5.691 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.419e-05/0.7236, allocations: 8 kB / 498.3 MB, free: 5.684 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.396e-06/0.7236, allocations: 4 kB / 498.3 MB, free: 5.68 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.207e-05/0.7237, allocations: 7.922 kB / 498.3 MB, free: 5.672 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00374/0.7274, allocations: 1.542 MB / 499.9 MB, free: 4.051 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.638e-06/0.7275, allocations: 8.031 kB / 499.9 MB, free: 4.043 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001227/0.7287, allocations: 139.8 kB / 500 MB, free: 3.906 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003715/0.7291, allocations: 53.69 kB / 0.4883 GB, free: 3.848 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.275e-05/0.7292, allocations: 19.98 kB / 0.4883 GB, free: 3.828 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002738/0.7319, allocations: 2.682 MB / 0.491 GB, free: 0.8711 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.732, allocations: 0 / 0.491 GB, free: 0.8711 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002934/0.7349, allocations: 1.239 MB / 0.4922 GB, free: 15.55 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004005/0.7353, allocations: 184.4 kB / 0.4924 GB, free: 15.35 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001197/0.7355, allocations: 12 kB / 0.4924 GB, free: 15.34 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008908/0.7364, allocations: 67.92 kB / 0.4924 GB, free: 15.27 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001955/0.7366, allocations: 56.44 kB / 0.4925 GB, free: 15.21 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.138e-05/0.7367, allocations: 20 kB / 0.4925 GB, free: 15.2 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0005345/0.7372, allocations: 289.2 kB / 0.4928 GB, free: 14.91 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.7372, allocations: 4 kB / 0.4928 GB, free: 14.91 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001379/0.7386, allocations: 264.2 kB / 0.493 GB, free: 14.65 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.003527/0.7422, allocations: 2.307 MB / 0.4953 GB, free: 12.27 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003527/0.7457, allocations: 1.406 MB / 0.4967 GB, free: 10.8 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.227e-06/0.7458, allocations: 3.938 kB / 0.4967 GB, free: 10.8 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001246/0.747, allocations: 0.5366 MB / 0.4972 GB, free: 10.25 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009086/0.7479, allocations: 101.3 kB / 0.4973 GB, free: 10.15 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003697/0.7517, allocations: 1.28 MB / 0.4985 GB, free: 8.812 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007032/0.7524, allocations: 0.9434 MB / 0.4995 GB, free: 7.84 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001013/0.7534, allocations: 180.4 kB / 0.4996 GB, free: 7.66 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000511/0.7539, allocations: 219.4 kB / 0.4998 GB, free: 7.445 MB / 442.7 MB Notification: Performance of SimCode: time 2.705e-06/0.7539, allocations: 0 / 0.4998 GB, free: 7.445 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05232/0.8063, allocations: 14.36 MB / 0.5139 GB, free: 9.16 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002678/0.8066, allocations: 190.9 kB / 0.514 GB, free: 8.93 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.023/3.829, allocations: 0 / 0.514 GB, free: 8.93 MB / 458.7 MB