Running command: "" <> buildModelFMU(PowerSystems.Examples.Introductory.Units,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_Introductory_Units",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(PowerSystems): time 2.478/2.478, allocations: 233 MB / 245.6 MB, free: 14.81 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.49e-05/4.504e-05, allocations: 4 kB / 301.3 MB, free: 7.887 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1198/0.1199, allocations: 53.24 MB / 354.6 MB, free: 2.531 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4941/0.6141, allocations: 94.33 MB / 448.9 MB, free: 7.566 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003145/0.6145, allocations: 79.95 kB / 449 MB, free: 7.488 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08893/0.7034, allocations: 19.22 MB / 468.2 MB, free: 4.078 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.224e-06/0.7035, allocations: 0 / 468.2 MB, free: 4.078 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.577e-05/0.7036, allocations: 17.22 kB / 468.2 MB, free: 4.062 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: 208 * Number of variables: 208 Notification: Performance of Generate backend data structure: time 0.002954/0.7066, allocations: 0.9007 MB / 469.1 MB, free: 3.109 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.936e-05/0.7066, allocations: 12.03 kB / 469.1 MB, free: 3.098 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000408/0.7071, allocations: 131.1 kB / 469.3 MB, free: 2.961 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001222/0.7083, allocations: 138.9 kB / 469.4 MB, free: 2.824 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003433/0.7118, allocations: 0.8718 MB / 470.3 MB, free: 1.91 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.372e-05/0.7119, allocations: 61.98 kB / 470.3 MB, free: 1.848 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000206/0.7121, allocations: 72 kB / 470.4 MB, free: 1.777 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002724/0.7149, allocations: 1.083 MB / 471.5 MB, free: 0.5938 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.379e-05/0.715, allocations: 4 kB / 471.5 MB, free: 0.5898 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001198/0.7151, allocations: 32 kB / 471.5 MB, free: 0.5586 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001196/0.7152, allocations: 53.98 kB / 471.6 MB, free: 0.5078 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002437/0.7177, allocations: 0.7688 MB / 472.3 MB, free: 15.74 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009287/0.727, allocations: 5.003 MB / 477.3 MB, free: 10.5 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00121/0.7283, allocations: 392.5 kB / 477.7 MB, free: 10.1 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000545/0.7289, allocations: 210.4 kB / 477.9 MB, free: 9.887 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.385e-05/0.729, allocations: 16.25 kB / 478 MB, free: 9.871 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.555e-05/0.7291, allocations: 42.89 kB / 478 MB, free: 9.82 MB / 410.7 MB Notification: Performance of pre-optimization done (n=47): time 3.367e-06/0.7291, allocations: 0 / 478 MB, free: 9.82 MB / 410.7 MB Notification: Performance of matching and sorting (n=48): time 0.002688/0.7318, allocations: 0.9043 MB / 478.9 MB, free: 8.91 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.837e-05/0.7319, allocations: 85.11 kB / 479 MB, free: 8.809 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008113/0.7327, allocations: 443.6 kB / 479.4 MB, free: 8.363 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 9.096e-05/0.7328, allocations: 29.7 kB / 479.4 MB, free: 8.328 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003974/0.7332, allocations: 496.3 kB / 479.9 MB, free: 7.84 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002305/0.7335, allocations: 165.6 kB / 480.1 MB, free: 7.676 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.438e-05/0.7335, allocations: 19.98 kB / 480.1 MB, free: 7.656 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001722/0.7337, allocations: 350.8 kB / 480.5 MB, free: 7.305 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006273/0.7344, allocations: 233.7 kB / 480.7 MB, free: 7.074 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009372/0.7353, allocations: 0.6143 MB / 481.3 MB, free: 6.277 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009673/0.7363, allocations: 363.4 kB / 481.7 MB, free: 5.922 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.268e-05/0.7364, allocations: 4.172 kB / 481.7 MB, free: 5.918 MB / 410.7 MB Notification: Performance of matching and sorting (n=103) (initialization): time 0.002343/0.7387, allocations: 0.8258 MB / 482.5 MB, free: 5.086 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.972e-05/0.7388, allocations: 12 kB / 482.5 MB, free: 5.074 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.332e-05/0.7388, allocations: 12 kB / 482.5 MB, free: 5.062 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.06e-05/0.7389, allocations: 23.98 kB / 482.5 MB, free: 5.039 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001465/0.7404, allocations: 211.6 kB / 482.7 MB, free: 4.832 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.905e-05/0.7405, allocations: 19.94 kB / 482.8 MB, free: 4.812 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007914/0.7413, allocations: 47.88 kB / 482.8 MB, free: 4.766 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.361e-05/0.7414, allocations: 43.98 kB / 482.8 MB, free: 4.723 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 60 * 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 (97): * Single equations (assignments): 95 * Array equations: 2 * 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.0002191/0.7416, allocations: 168.7 kB / 483 MB, free: 4.551 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001292/0.7417, allocations: 55.86 kB / 483.1 MB, free: 4.496 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001565/0.7433, allocations: 0.542 MB / 483.6 MB, free: 3.945 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.71e-05/0.7434, allocations: 15.98 kB / 483.6 MB, free: 3.93 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.353e-06/0.7434, allocations: 0 / 483.6 MB, free: 3.93 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.556e-06/0.7435, allocations: 4 kB / 483.6 MB, free: 3.926 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003446/0.7469, allocations: 1.318 MB / 484.9 MB, free: 2.527 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.979e-06/0.747, allocations: 0.8125 kB / 484.9 MB, free: 2.527 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009391/0.7479, allocations: 119.8 kB / 485.1 MB, free: 2.41 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.509e-05/0.748, allocations: 4 kB / 485.1 MB, free: 2.406 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.771e-05/0.748, allocations: 8 kB / 485.1 MB, free: 2.398 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.449e-05/0.7481, allocations: 7.984 kB / 485.1 MB, free: 2.391 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.172e-06/0.7481, allocations: 4 kB / 485.1 MB, free: 2.387 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001631/0.7497, allocations: 0.7807 MB / 485.9 MB, free: 1.512 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002306/0.75, allocations: 124.4 kB / 486 MB, free: 1.371 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001124/0.7501, allocations: 19.98 kB / 486 MB, free: 1.352 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005221/0.7507, allocations: 23.97 kB / 486 MB, free: 1.328 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.812e-05/0.7508, allocations: 35.89 kB / 486.1 MB, free: 1.293 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.656e-05/0.7508, allocations: 16 kB / 486.1 MB, free: 1.277 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.000612/0.7515, allocations: 321.5 kB / 486.4 MB, free: 0.9648 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.01e-07/0.7515, allocations: 0 / 486.4 MB, free: 0.9648 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001273/0.7528, allocations: 191.9 kB / 486.6 MB, free: 0.7773 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 simulation (48): * Single equations (assignments): 45 * Array equations: 2 * 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.002275/0.7551, allocations: 1.969 MB / 488.5 MB, free: 14.72 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001656/0.7568, allocations: 0.5916 MB / 489.1 MB, free: 14.13 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.27e-06/0.7568, allocations: 0 / 489.1 MB, free: 14.13 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000601/0.7574, allocations: 252.6 kB / 489.4 MB, free: 13.88 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009645/0.7584, allocations: 93.97 kB / 489.5 MB, free: 13.79 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004268/0.7627, allocations: 1.313 MB / 490.8 MB, free: 12.4 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009454/0.7637, allocations: 1.02 MB / 491.8 MB, free: 11.35 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006462/0.7644, allocations: 259.3 kB / 492.1 MB, free: 11.09 MB / 426.7 MB Notification: Performance of SimCode: time 1.152e-06/0.7644, allocations: 0 / 492.1 MB, free: 11.09 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.689/3.454, allocations: 11.68 MB / 0.4919 GB, free: 15.43 MB / 442.7 MB