Running command: "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(PowerSystems): time 2.279/2.279, allocations: 233 MB / 245.6 MB, free: 15.03 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.612e-05/3.621e-05, allocations: 4 kB / 301.4 MB, free: 8.086 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1057/0.1057, allocations: 53.22 MB / 354.6 MB, free: 2.75 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4473/0.5531, allocations: 97.79 MB / 452.4 MB, free: 4.246 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000326/0.5534, allocations: 87.94 kB / 452.5 MB, free: 4.16 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1012/0.6546, allocations: 24.23 MB / 476.7 MB, free: 11.72 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.873e-06/0.6547, allocations: 0 / 476.7 MB, free: 11.72 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.591e-05/0.6548, allocations: 16 kB / 476.7 MB, free: 11.71 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.002444/0.6572, allocations: 0.8898 MB / 477.6 MB, free: 10.77 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.714e-05/0.6573, allocations: 8.031 kB / 477.6 MB, free: 10.76 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001857/0.6575, allocations: 102.5 kB / 477.7 MB, free: 10.65 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002004/0.6595, allocations: 194.9 kB / 477.9 MB, free: 10.46 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001275/0.6608, allocations: 0.5023 MB / 478.4 MB, free: 9.91 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.415e-05/0.6609, allocations: 41.27 kB / 478.4 MB, free: 9.871 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001751/0.661, allocations: 63.97 kB / 478.5 MB, free: 9.809 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001793/0.6628, allocations: 0.6841 MB / 479.2 MB, free: 9.09 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.906e-05/0.6629, allocations: 3.906 kB / 479.2 MB, free: 9.086 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.7e-05/0.663, allocations: 20 kB / 479.2 MB, free: 9.066 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000176/0.6632, allocations: 41.3 kB / 479.3 MB, free: 9.027 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001711/0.6649, allocations: 0.5999 MB / 479.8 MB, free: 8.426 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006633/0.6716, allocations: 2.7 MB / 482.6 MB, free: 5.613 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001479/0.6731, allocations: 494.1 kB / 483 MB, free: 5.113 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007841/0.6739, allocations: 299 kB / 483.3 MB, free: 4.816 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.533e-05/0.674, allocations: 16.41 kB / 483.3 MB, free: 4.801 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000881/0.6749, allocations: 376.7 kB / 483.7 MB, free: 4.414 MB / 410.7 MB Notification: Performance of pre-optimization done (n=55): time 3.407e-06/0.6749, allocations: 0 / 483.7 MB, free: 4.414 MB / 410.7 MB Notification: Performance of matching and sorting (n=57): time 0.004263/0.6792, allocations: 1.523 MB / 485.2 MB, free: 2.832 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.696e-05/0.6793, allocations: 115.4 kB / 485.3 MB, free: 2.695 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006975/0.68, allocations: 375.1 kB / 485.7 MB, free: 2.332 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 9.098e-05/0.6801, allocations: 33.7 kB / 485.7 MB, free: 2.293 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003028/0.6805, allocations: 335 kB / 486.1 MB, free: 1.961 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002596/0.6807, allocations: 189.2 kB / 486.3 MB, free: 1.773 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.811e-05/0.6808, allocations: 16 kB / 486.3 MB, free: 1.758 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001589/0.681, allocations: 334.8 kB / 486.6 MB, free: 1.422 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006487/0.6816, allocations: 229.3 kB / 486.8 MB, free: 1.195 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007763/0.6824, allocations: 340.5 kB / 487.2 MB, free: 0.8242 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007619/0.6832, allocations: 292.9 kB / 487.4 MB, free: 0.5352 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.917e-06/0.6832, allocations: 3.938 kB / 487.4 MB, free: 0.5312 MB / 410.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.002648/0.6859, allocations: 0.8338 MB / 488.3 MB, free: 15.67 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000498/0.6864, allocations: 0.9912 MB / 489.3 MB, free: 14.6 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.328e-05/0.6864, allocations: 4 kB / 489.3 MB, free: 14.6 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009641/0.6874, allocations: 166.9 kB / 489.4 MB, free: 14.43 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001002/0.6884, allocations: 123.8 kB / 489.6 MB, free: 14.31 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002691/0.6911, allocations: 2.106 MB / 491.7 MB, free: 12.04 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001051/0.6922, allocations: 76.08 kB / 491.7 MB, free: 11.96 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.129e-05/0.6923, allocations: 23.98 kB / 491.8 MB, free: 11.94 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.221e-05/0.6923, allocations: 4 kB / 491.8 MB, free: 11.94 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002302/0.6946, allocations: 0.7581 MB / 492.5 MB, free: 11.17 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.608e-06/0.6947, allocations: 4 kB / 492.5 MB, free: 11.16 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007105/0.6954, allocations: 141.6 kB / 492.7 MB, free: 11.02 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009386/0.6963, allocations: 120 kB / 492.8 MB, free: 10.9 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003875/0.7002, allocations: 2.159 MB / 494.9 MB, free: 8.617 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009769/0.7012, allocations: 47.95 kB / 495 MB, free: 8.57 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000106/0.7014, allocations: 24 kB / 495 MB, free: 8.547 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.0003343/0.7017, allocations: 148.8 kB / 495.2 MB, free: 8.395 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002317/0.702, allocations: 55.28 kB / 495.2 MB, free: 8.34 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002829/0.7048, allocations: 0.7169 MB / 495.9 MB, free: 7.602 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.678e-05/0.7049, allocations: 7.953 kB / 495.9 MB, free: 7.594 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.009e-05/0.7049, allocations: 8 kB / 495.9 MB, free: 7.586 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.519e-05/0.7049, allocations: 3.984 kB / 495.9 MB, free: 7.582 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005025/0.71, allocations: 1.546 MB / 497.5 MB, free: 5.953 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.097e-06/0.71, allocations: 0 / 497.5 MB, free: 5.953 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001652/0.7117, allocations: 131.8 kB / 497.6 MB, free: 5.824 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005139/0.7122, allocations: 69.83 kB / 497.7 MB, free: 5.75 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.275e-05/0.7123, allocations: 15.94 kB / 497.7 MB, free: 5.734 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00407/0.7164, allocations: 2.682 MB / 0.4887 GB, free: 2.785 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.847e-06/0.7165, allocations: 4.031 kB / 0.4887 GB, free: 2.781 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004245/0.7207, allocations: 1.232 MB / 0.4899 GB, free: 1.461 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005534/0.7213, allocations: 184.4 kB / 0.49 GB, free: 1.262 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001714/0.7215, allocations: 19.98 kB / 0.4901 GB, free: 1.242 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001265/0.7228, allocations: 63.94 kB / 0.4901 GB, free: 1.18 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002516/0.723, allocations: 60.47 kB / 0.4902 GB, free: 1.121 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.343e-05/0.7231, allocations: 19.94 kB / 0.4902 GB, free: 1.102 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0007295/0.7239, allocations: 297.2 kB / 0.4905 GB, free: 0.8164 MB / 426.7 MB Notification: Performance of sort global known variables: time 5.82e-07/0.7239, allocations: 0 / 0.4905 GB, free: 0.8164 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00202/0.7259, allocations: 260 kB / 0.4907 GB, free: 0.5625 MB / 426.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.004931/0.7309, allocations: 2.281 MB / 0.493 GB, free: 14.2 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004749/0.7357, allocations: 1.365 MB / 0.4943 GB, free: 12.77 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.683e-06/0.7357, allocations: 0 / 0.4943 GB, free: 12.77 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0017/0.7374, allocations: 0.5288 MB / 0.4948 GB, free: 12.22 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001286/0.7387, allocations: 108.6 kB / 0.4949 GB, free: 12.12 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005214/0.744, allocations: 1.321 MB / 0.4962 GB, free: 10.73 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00101/0.745, allocations: 0.9426 MB / 0.4971 GB, free: 9.762 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008202/0.7459, allocations: 223.4 kB / 0.4973 GB, free: 9.543 MB / 442.7 MB Notification: Performance of SimCode: time 1.362e-06/0.7459, allocations: 7.938 kB / 0.4973 GB, free: 9.535 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.885/3.631, allocations: 15.42 MB / 0.5124 GB, free: 10.11 MB / 458.7 MB