Running command: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Drives_SM_ctrlAv",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(PowerSystems): time 2.327/2.327, allocations: 233 MB / 245.6 MB, free: 14.8 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.495e-05/4.501e-05, allocations: 7.938 kB / 301.4 MB, free: 7.883 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1116/0.1117, allocations: 53.24 MB / 354.6 MB, free: 2.531 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4726/0.5843, allocations: 112 MB / 466.6 MB, free: 5.953 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000296/0.5847, allocations: 87.95 kB / 466.7 MB, free: 5.867 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1745/0.7592, allocations: 30.52 MB / 497.2 MB, free: 7.055 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.355e-06/0.7593, allocations: 0 / 497.2 MB, free: 7.055 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001028/0.7594, allocations: 27.94 kB / 497.2 MB, free: 7.027 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 219 * Number of variables: 219 Notification: Performance of Generate backend data structure: time 0.004031/0.7634, allocations: 1.134 MB / 498.4 MB, free: 5.844 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.409e-05/0.7635, allocations: 16.02 kB / 498.4 MB, free: 5.828 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003758/0.7639, allocations: 131.4 kB / 498.5 MB, free: 5.691 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008031/0.7647, allocations: 130.6 kB / 498.7 MB, free: 5.562 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003646/0.7684, allocations: 0.957 MB / 499.6 MB, free: 4.559 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000103/0.7685, allocations: 65.98 kB / 499.7 MB, free: 4.496 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003583/0.7689, allocations: 95.89 kB / 499.8 MB, free: 4.402 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002873/0.7718, allocations: 1.081 MB / 0.4891 GB, free: 3.262 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.069e-05/0.7719, allocations: 3.938 kB / 0.4891 GB, free: 3.258 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001408/0.772, allocations: 32 kB / 0.4891 GB, free: 3.227 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002171/0.7723, allocations: 61.97 kB / 0.4892 GB, free: 3.164 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00255/0.7748, allocations: 0.8434 MB / 0.49 GB, free: 2.32 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01052/0.7854, allocations: 4.426 MB / 0.4943 GB, free: 13.67 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001547/0.787, allocations: 0.5363 MB / 0.4949 GB, free: 13.1 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009899/0.788, allocations: 353.1 kB / 0.4952 GB, free: 12.75 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.098e-05/0.7881, allocations: 12.55 kB / 0.4952 GB, free: 12.73 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.245e-05/0.7882, allocations: 47.05 kB / 0.4953 GB, free: 12.68 MB / 442.7 MB Notification: Performance of pre-optimization done (n=57): time 3.677e-06/0.7882, allocations: 0 / 0.4953 GB, free: 12.68 MB / 442.7 MB Notification: Performance of matching and sorting (n=62): time 0.006614/0.7948, allocations: 2.409 MB / 0.4976 GB, free: 10.15 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001013/0.795, allocations: 133.1 kB / 0.4977 GB, free: 9.992 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001161/0.7961, allocations: 0.5466 MB / 0.4983 GB, free: 9.438 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001513/0.7963, allocations: 33.7 kB / 0.4983 GB, free: 9.398 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004491/0.7968, allocations: 489.4 kB / 0.4988 GB, free: 8.914 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002955/0.7971, allocations: 220.8 kB / 0.499 GB, free: 8.695 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.226e-05/0.7972, allocations: 19.94 kB / 0.499 GB, free: 8.676 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001697/0.7973, allocations: 350.8 kB / 0.4993 GB, free: 8.324 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006967/0.7981, allocations: 245.7 kB / 0.4996 GB, free: 8.082 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000891/0.799, allocations: 480.3 kB / 0.5 GB, free: 7.516 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00437/0.8033, allocations: 0.7801 MB / 0.5008 GB, free: 6.719 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.194e-05/0.8034, allocations: 4 kB / 0.5008 GB, free: 6.715 MB / 442.7 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.004873/0.8083, allocations: 1.355 MB / 0.5021 GB, free: 5.305 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001297/0.8096, allocations: 2.791 MB / 0.5048 GB, free: 2.293 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.313e-05/0.8097, allocations: 12 kB / 0.5049 GB, free: 2.281 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00312/0.8128, allocations: 476.7 kB / 0.5053 GB, free: 1.809 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001009/0.8139, allocations: 131.8 kB / 0.5054 GB, free: 1.68 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005587/0.8195, allocations: 4.018 MB / 0.5094 GB, free: 13.36 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001071/0.8206, allocations: 39.98 kB / 0.5094 GB, free: 13.32 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.696e-05/0.8207, allocations: 31.98 kB / 0.5094 GB, free: 13.29 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.388e-05/0.8207, allocations: 4 kB / 0.5094 GB, free: 13.29 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004423/0.8252, allocations: 1.271 MB / 0.5107 GB, free: 11.97 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.433e-05/0.8252, allocations: 8 kB / 0.5107 GB, free: 11.96 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002815/0.8281, allocations: 458.5 kB / 0.5111 GB, free: 11.5 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001013/0.8291, allocations: 131.8 kB / 0.5112 GB, free: 11.38 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01477/0.8439, allocations: 7.401 MB / 0.5185 GB, free: 3.559 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000786/0.8448, allocations: 31.98 kB / 0.5185 GB, free: 3.527 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.108e-05/0.8449, allocations: 28 kB / 0.5185 GB, free: 3.5 MB / 458.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: $DER.sm_ctrl.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * 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 (66): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * 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%) 3} * Non-linear torn systems: 1 {4 24} Notification: Performance of prepare postOptimizeDAE: time 0.0003178/0.8452, allocations: 161.5 kB / 0.5187 GB, free: 3.336 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002653/0.8455, allocations: 79.06 kB / 0.5188 GB, free: 3.258 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002232/0.8477, allocations: 0.8139 MB / 0.5196 GB, free: 2.406 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.624e-05/0.8478, allocations: 11.95 kB / 0.5196 GB, free: 2.395 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.238e-05/0.8478, allocations: 4 kB / 0.5196 GB, free: 2.391 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.387e-05/0.8478, allocations: 7.922 kB / 0.5196 GB, free: 2.383 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004558/0.8524, allocations: 1.799 MB / 0.5213 GB, free: 496 kB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.126e-05/0.8525, allocations: 4 kB / 0.5213 GB, free: 492 kB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001392/0.8539, allocations: 131.8 kB / 0.5215 GB, free: 360 kB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002876/0.8542, allocations: 61.67 kB / 0.5215 GB, free: 292 kB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.318e-05/0.8543, allocations: 15.98 kB / 0.5215 GB, free: 276 kB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2953/1.15, allocations: 2.74 MB / 0.5242 GB, free: 125.9 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/1.15, allocations: 1.969 kB / 0.5242 GB, free: 125.9 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002939/1.153, allocations: 1.297 MB / 0.5255 GB, free: 125.5 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005027/1.153, allocations: 201.7 kB / 0.5257 GB, free: 125.4 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001583/1.153, allocations: 15.64 kB / 0.5257 GB, free: 125.4 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007416/1.154, allocations: 32.53 kB / 0.5257 GB, free: 125.4 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001563/1.154, allocations: 45.89 kB / 0.5258 GB, free: 125.4 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.28e-05/1.154, allocations: 18.06 kB / 0.5258 GB, free: 125.4 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.000864/1.155, allocations: 435.8 kB / 0.5262 GB, free: 125.4 MB / 458.7 MB Notification: Performance of sort global known variables: time 4.91e-07/1.155, allocations: 0 / 0.5262 GB, free: 125.4 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002159/1.157, allocations: 366.6 kB / 0.5265 GB, free: 125.4 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (sm_ctrl.motor.phi_el,sm_ctrl.motor.w_el,sm_ctrl.motor.i_s[1],sm_ctrl.motor.i_s[2],sm_ctrl.motor.i_s[3],PI_i_q.I.y) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (64): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.003069/1.16, allocations: 2.123 MB / 0.5286 GB, free: 124.2 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.004547/1.165, allocations: 1.779 MB / 0.5304 GB, free: 123.7 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.794e-06/1.165, allocations: 2.109 kB / 0.5304 GB, free: 123.7 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001074/1.166, allocations: 0.5195 MB / 0.5309 GB, free: 123.5 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001601/1.168, allocations: 198 kB / 0.5311 GB, free: 123.5 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005462/1.173, allocations: 1.886 MB / 0.5329 GB, free: 123 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009473/1.174, allocations: 1.115 MB / 0.534 GB, free: 122.3 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007289/1.175, allocations: 333.8 kB / 0.5343 GB, free: 122.3 MB / 458.7 MB Notification: Performance of SimCode: time 1.152e-06/1.175, allocations: 0 / 0.5343 GB, free: 122.3 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.024/4.199, allocations: 25.05 MB / 0.5588 GB, free: 121.2 MB / 458.7 MB