Running command: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Impedance,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Impedance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(PowerSystems): time 2.341/2.341, allocations: 233 MB / 245.6 MB, free: 14.85 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.073e-05/4.079e-05, allocations: 4 kB / 301.4 MB, free: 7.879 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1112/0.1113, allocations: 53.24 MB / 354.6 MB, free: 2.527 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4838/0.5952, allocations: 95.85 MB / 450.4 MB, free: 6.027 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004285/0.5956, allocations: 83.95 kB / 450.5 MB, free: 5.945 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05725/0.6529, allocations: 12.52 MB / 463 MB, free: 9.312 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.653, allocations: 0 / 463 MB, free: 9.312 MB / 394.7 MB Notification: Performance of Transformations before backend: time 3.377e-05/0.653, allocations: 8 kB / 463.1 MB, free: 9.305 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: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.00164/0.6547, allocations: 0.6837 MB / 463.7 MB, free: 8.57 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.763e-05/0.6547, allocations: 8.031 kB / 463.7 MB, free: 8.562 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001481/0.6549, allocations: 86.52 kB / 463.8 MB, free: 8.469 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008686/0.6558, allocations: 91.38 kB / 463.9 MB, free: 8.379 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003322/0.6591, allocations: 0.838 MB / 464.8 MB, free: 7.504 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.429e-05/0.6592, allocations: 29 kB / 464.8 MB, free: 7.477 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001205/0.6593, allocations: 44 kB / 464.8 MB, free: 7.434 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001386/0.6607, allocations: 0.6153 MB / 465.4 MB, free: 6.75 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.421e-05/0.6608, allocations: 11.92 kB / 465.5 MB, free: 6.738 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.161e-05/0.6609, allocations: 20 kB / 465.5 MB, free: 6.719 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.217e-05/0.6609, allocations: 24.78 kB / 465.5 MB, free: 6.695 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001124/0.6621, allocations: 429.2 kB / 465.9 MB, free: 6.277 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005172/0.6673, allocations: 2.921 MB / 468.8 MB, free: 3.207 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004902/0.6678, allocations: 197 kB / 469 MB, free: 2.996 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003131/0.6681, allocations: 129.8 kB / 469.2 MB, free: 2.863 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.87e-05/0.6682, allocations: 4 kB / 469.2 MB, free: 2.859 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.316e-05/0.6682, allocations: 38.55 kB / 469.2 MB, free: 2.812 MB / 394.7 MB Notification: Performance of pre-optimization done (n=24): time 3.206e-06/0.6682, allocations: 0 / 469.2 MB, free: 2.812 MB / 394.7 MB Notification: Performance of matching and sorting (n=25): time 0.00217/0.6704, allocations: 0.8606 MB / 470.1 MB, free: 1.895 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.216e-05/0.6705, allocations: 89.19 kB / 470.1 MB, free: 1.789 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004659/0.671, allocations: 290.6 kB / 470.4 MB, free: 1.5 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.76e-05/0.671, allocations: 35.42 kB / 470.5 MB, free: 1.461 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002553/0.6713, allocations: 337.6 kB / 470.8 MB, free: 1.129 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001125/0.6714, allocations: 90.73 kB / 470.9 MB, free: 1.039 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.154e-05/0.6715, allocations: 8 kB / 470.9 MB, free: 1.031 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001482/0.6716, allocations: 334.8 kB / 471.2 MB, free: 0.6953 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003642/0.672, allocations: 140.9 kB / 471.4 MB, free: 0.5586 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00052/0.6725, allocations: 320.3 kB / 471.7 MB, free: 164 kB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005297/0.6731, allocations: 205 kB / 471.9 MB, free: 15.96 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.448e-06/0.6731, allocations: 4 kB / 471.9 MB, free: 15.95 MB / 410.7 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001837/0.675, allocations: 0.5398 MB / 472.4 MB, free: 15.41 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.543e-05/0.675, allocations: 8 kB / 472.4 MB, free: 15.4 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0009655/0.676, allocations: 328.4 kB / 472.7 MB, free: 15.08 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005961/0.6766, allocations: 77.27 kB / 472.8 MB, free: 15 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006519/0.6773, allocations: 103.8 kB / 472.9 MB, free: 14.9 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002313/0.6796, allocations: 1.581 MB / 474.5 MB, free: 13.18 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004726/0.6801, allocations: 28.05 kB / 474.5 MB, free: 13.15 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.914e-05/0.6802, allocations: 20 kB / 474.5 MB, free: 13.13 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * 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 (48): * Single equations (assignments): 46 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001593/0.6803, allocations: 128.8 kB / 474.7 MB, free: 13 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.692e-05/0.6804, allocations: 35.58 kB / 474.7 MB, free: 12.96 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009575/0.6814, allocations: 353.3 kB / 475.1 MB, free: 12.61 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.212e-05/0.6814, allocations: 8 kB / 475.1 MB, free: 12.61 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.374e-06/0.6815, allocations: 0 / 475.1 MB, free: 12.61 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.6815, allocations: 0 / 475.1 MB, free: 12.61 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002169/0.6837, allocations: 0.8608 MB / 475.9 MB, free: 11.68 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.049e-06/0.6837, allocations: 0 / 475.9 MB, free: 11.68 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006013/0.6843, allocations: 51.97 kB / 476 MB, free: 11.63 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.066e-05/0.6843, allocations: 4.062 kB / 476 MB, free: 11.63 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.073e-05/0.6844, allocations: 15.98 kB / 476 MB, free: 11.61 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.372e-06/0.6844, allocations: 3.938 kB / 476 MB, free: 11.61 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.611e-06/0.6844, allocations: 5.219 kB / 476 MB, free: 11.61 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001165/0.6856, allocations: 0.5846 MB / 476.6 MB, free: 10.98 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001276/0.6857, allocations: 108.8 kB / 476.7 MB, free: 10.85 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.12e-05/0.6858, allocations: 11.94 kB / 476.7 MB, free: 10.84 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003319/0.6862, allocations: 19.97 kB / 476.7 MB, free: 10.82 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.673e-05/0.6862, allocations: 19.92 kB / 476.7 MB, free: 10.8 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.984e-05/0.6863, allocations: 4 kB / 476.7 MB, free: 10.8 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0003782/0.6867, allocations: 226.1 kB / 477 MB, free: 10.57 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-07/0.6867, allocations: 4 kB / 477 MB, free: 10.57 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0007703/0.6875, allocations: 108 kB / 477.1 MB, free: 10.46 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (ind.i[1],ind.i[2],ind.i[3]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 23 * Array equations: 1 * 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.001751/0.6892, allocations: 1.355 MB / 478.4 MB, free: 9.062 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001343/0.6906, allocations: 462.5 kB / 478.9 MB, free: 8.602 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/0.6907, allocations: 0.5625 kB / 478.9 MB, free: 8.602 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003675/0.691, allocations: 140.5 kB / 479 MB, free: 8.465 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000626/0.6917, allocations: 65.61 kB / 479.1 MB, free: 8.406 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002825/0.6945, allocations: 0.9553 MB / 480 MB, free: 7.402 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006467/0.6952, allocations: 0.8737 MB / 480.9 MB, free: 6.496 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003773/0.6956, allocations: 147.4 kB / 481.1 MB, free: 6.352 MB / 410.7 MB Notification: Performance of SimCode: time 1.132e-06/0.6956, allocations: 0 / 481.1 MB, free: 6.352 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.875/3.571, allocations: 7.769 MB / 488.8 MB, free: 14.57 MB / 426.7 MB