Running command: "" <> buildModelFMU(PowerSystems.Examples.Introductory.ReferenceSynchron,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_Introductory_ReferenceSynchron",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(PowerSystems): time 2.352/2.352, allocations: 233 MB / 245.6 MB, free: 14.8 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.722e-05/3.728e-05, allocations: 4 kB / 301.3 MB, free: 7.883 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1182/0.1182, allocations: 53.24 MB / 354.6 MB, free: 2.527 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4542/0.5725, allocations: 95.2 MB / 449.8 MB, free: 6.68 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002621/0.5728, allocations: 75.97 kB / 449.9 MB, free: 6.605 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06052/0.6333, allocations: 13.15 MB / 463 MB, free: 9.34 MB / 394.7 MB Notification: Performance of FrontEnd: time 4.268e-06/0.6334, allocations: 0 / 463 MB, free: 9.34 MB / 394.7 MB Notification: Performance of Transformations before backend: time 3.412e-05/0.6334, allocations: 15.94 kB / 463 MB, free: 9.324 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 118 * Number of variables: 118 Notification: Performance of Generate backend data structure: time 0.001798/0.6352, allocations: 0.6717 MB / 463.7 MB, free: 8.605 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.904e-05/0.6353, allocations: 12.02 kB / 463.7 MB, free: 8.594 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001633/0.6355, allocations: 90.52 kB / 463.8 MB, free: 8.496 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000819/0.6363, allocations: 87.28 kB / 463.9 MB, free: 8.41 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00351/0.6398, allocations: 0.8369 MB / 464.7 MB, free: 7.531 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.932e-05/0.64, allocations: 36.77 kB / 464.8 MB, free: 7.496 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001262/0.6401, allocations: 39.94 kB / 464.8 MB, free: 7.457 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001617/0.6417, allocations: 0.6421 MB / 465.4 MB, free: 6.777 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.688e-05/0.6418, allocations: 4 kB / 465.4 MB, free: 6.773 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.271e-05/0.6419, allocations: 19.95 kB / 465.5 MB, free: 6.754 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000193/0.6421, allocations: 52.73 kB / 465.5 MB, free: 6.703 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001603/0.6437, allocations: 0.6224 MB / 466.1 MB, free: 6.082 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005737/0.6494, allocations: 2.44 MB / 468.6 MB, free: 3.52 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008331/0.6503, allocations: 326.4 kB / 468.9 MB, free: 3.18 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005501/0.6509, allocations: 258.1 kB / 469.1 MB, free: 2.922 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.06e-05/0.651, allocations: 4 kB / 469.2 MB, free: 2.918 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.359e-05/0.651, allocations: 38.55 kB / 469.2 MB, free: 2.871 MB / 394.7 MB Notification: Performance of pre-optimization done (n=46): time 3.837e-06/0.651, allocations: 0 / 469.2 MB, free: 2.871 MB / 394.7 MB Notification: Performance of matching and sorting (n=47): time 0.003094/0.6541, allocations: 1.248 MB / 470.4 MB, free: 1.574 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.935e-05/0.6542, allocations: 85.42 kB / 470.5 MB, free: 1.473 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004173/0.6547, allocations: 255.3 kB / 470.8 MB, free: 1.223 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.457e-05/0.6547, allocations: 37.69 kB / 470.8 MB, free: 1.18 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002036/0.6549, allocations: 294.2 kB / 471.1 MB, free: 0.8867 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001841/0.6551, allocations: 161.6 kB / 471.3 MB, free: 0.7266 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.313e-05/0.6552, allocations: 9.5 kB / 471.3 MB, free: 0.7188 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000155/0.6553, allocations: 342.8 kB / 471.6 MB, free: 384 kB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005126/0.6559, allocations: 209 kB / 471.8 MB, free: 176 kB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006464/0.6565, allocations: 353.5 kB / 472.1 MB, free: 15.77 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006929/0.6572, allocations: 277 kB / 472.4 MB, free: 15.5 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.853e-06/0.6573, allocations: 4 kB / 472.4 MB, free: 15.49 MB / 410.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001488/0.6588, allocations: 0.5984 MB / 473 MB, free: 14.88 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.679e-05/0.6588, allocations: 8 kB / 473 MB, free: 14.88 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.716e-05/0.6588, allocations: 4.594 kB / 473 MB, free: 14.87 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.845e-05/0.6589, allocations: 8 kB / 473 MB, free: 14.86 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008714/0.6597, allocations: 119.8 kB / 473.2 MB, free: 14.75 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.963e-05/0.6598, allocations: 7.938 kB / 473.2 MB, free: 14.74 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004968/0.6603, allocations: 31.91 kB / 473.2 MB, free: 14.71 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.405e-05/0.6604, allocations: 27.97 kB / 473.2 MB, free: 14.68 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (55): * Single equations (assignments): 52 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001738/0.6606, allocations: 124.9 kB / 473.3 MB, free: 14.55 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001059/0.6607, allocations: 35.53 kB / 473.4 MB, free: 14.52 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001486/0.6622, allocations: 0.5413 MB / 473.9 MB, free: 13.97 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.714e-05/0.6623, allocations: 23.98 kB / 473.9 MB, free: 13.95 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.234e-06/0.6623, allocations: 0 / 473.9 MB, free: 13.95 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.943e-06/0.6623, allocations: 0 / 473.9 MB, free: 13.95 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003256/0.6656, allocations: 1.165 MB / 475.1 MB, free: 12.71 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.089e-05/0.6656, allocations: 8.094 kB / 475.1 MB, free: 12.71 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007685/0.6664, allocations: 75.89 kB / 475.2 MB, free: 12.63 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.047e-06/0.6665, allocations: 0 / 475.2 MB, free: 12.63 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.09e-05/0.6665, allocations: 11.98 kB / 475.2 MB, free: 12.62 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.168e-06/0.6665, allocations: 4 kB / 475.2 MB, free: 12.62 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.14e-06/0.6665, allocations: 3.953 kB / 475.2 MB, free: 12.61 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002/0.6686, allocations: 0.9413 MB / 476.1 MB, free: 11.62 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001602/0.6688, allocations: 112.7 kB / 476.3 MB, free: 11.5 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.358e-05/0.6689, allocations: 8.656 kB / 476.3 MB, free: 11.49 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004338/0.6693, allocations: 20.34 kB / 476.3 MB, free: 11.47 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.999e-05/0.6694, allocations: 27.97 kB / 476.3 MB, free: 11.44 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.474e-05/0.6694, allocations: 8 kB / 476.3 MB, free: 11.43 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0003488/0.6698, allocations: 206.2 kB / 476.5 MB, free: 11.23 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.6698, allocations: 0 / 476.5 MB, free: 11.23 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0007616/0.6706, allocations: 120 kB / 476.6 MB, free: 11.11 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (load_dq0.i[1],load_dq0.i[2],load_dq0.i[3]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 30 * Array equations: 3 * 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.002579/0.6732, allocations: 1.817 MB / 478.5 MB, free: 9.242 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001255/0.6745, allocations: 0.5061 MB / 479 MB, free: 8.738 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.6745, allocations: 0 / 479 MB, free: 8.738 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005476/0.6751, allocations: 251.8 kB / 479.2 MB, free: 8.492 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006467/0.6757, allocations: 60.92 kB / 479.3 MB, free: 8.438 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003016/0.6788, allocations: 1.118 MB / 480.4 MB, free: 7.266 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006367/0.6795, allocations: 0.8831 MB / 481.3 MB, free: 6.355 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004158/0.6799, allocations: 151.4 kB / 481.4 MB, free: 6.207 MB / 410.7 MB Notification: Performance of SimCode: time 1.713e-06/0.6799, allocations: 4 kB / 481.4 MB, free: 6.203 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.751/3.431, allocations: 7.636 MB / 489.1 MB, free: 14.57 MB / 426.7 MB