Running command: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Drives_SM_ctrlAv",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(PowerSystems): time 2.532/2.532, allocations: 233 MB / 246.1 MB, free: 15.03 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.895e-05/3.933e-05, allocations: 4 kB / 302.3 MB, free: 7.598 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1259/0.126, allocations: 53.24 MB / 355.5 MB, free: 2.242 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5146/0.6406, allocations: 112 MB / 467.6 MB, free: 5.668 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003631/0.6411, allocations: 91.95 kB / 467.6 MB, free: 5.578 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1372/0.7783, allocations: 30.51 MB / 498.2 MB, free: 6.766 MB / 426.7 MB Notification: Performance of FrontEnd: time 4.609e-06/0.7784, allocations: 0 / 498.2 MB, free: 6.766 MB / 426.7 MB Notification: Performance of Transformations before backend: time 9.865e-05/0.7785, allocations: 31.94 kB / 498.2 MB, free: 6.734 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.004002/0.7825, allocations: 1.138 MB / 499.3 MB, free: 5.547 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.415e-05/0.7826, allocations: 8.031 kB / 499.3 MB, free: 5.539 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004116/0.783, allocations: 135.4 kB / 499.5 MB, free: 5.398 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008653/0.7839, allocations: 134.6 kB / 499.6 MB, free: 5.266 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003842/0.7878, allocations: 0.9574 MB / 0.4888 GB, free: 4.262 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.034e-05/0.7879, allocations: 65.98 kB / 0.4889 GB, free: 4.199 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003936/0.7883, allocations: 91.84 kB / 0.489 GB, free: 4.109 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002939/0.7913, allocations: 1.085 MB / 0.49 GB, free: 2.965 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.634e-05/0.7914, allocations: 7.938 kB / 0.49 GB, free: 2.957 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001488/0.7915, allocations: 32 kB / 0.4901 GB, free: 2.926 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002023/0.7918, allocations: 57.98 kB / 0.4901 GB, free: 2.867 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002569/0.7943, allocations: 0.8434 MB / 0.4909 GB, free: 2.023 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01097/0.8053, allocations: 4.422 MB / 0.4953 GB, free: 13.38 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001567/0.807, allocations: 0.5363 MB / 0.4958 GB, free: 12.81 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001023/0.808, allocations: 365 kB / 0.4961 GB, free: 12.44 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.939e-05/0.8081, allocations: 4.562 kB / 0.4961 GB, free: 12.44 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.926e-05/0.8082, allocations: 43.06 kB / 0.4962 GB, free: 12.39 MB / 442.7 MB Notification: Performance of pre-optimization done (n=57): time 4.348e-06/0.8082, allocations: 0 / 0.4962 GB, free: 12.39 MB / 442.7 MB Notification: Performance of matching and sorting (n=62): time 0.006738/0.815, allocations: 2.409 MB / 0.4985 GB, free: 9.859 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001034/0.8151, allocations: 137.1 kB / 0.4987 GB, free: 9.695 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00118/0.8163, allocations: 0.5426 MB / 0.4992 GB, free: 9.145 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000126/0.8165, allocations: 37.7 kB / 0.4992 GB, free: 9.102 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000481/0.817, allocations: 470.9 kB / 0.4997 GB, free: 8.633 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003114/0.8173, allocations: 228.8 kB / 0.4999 GB, free: 8.406 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.257e-05/0.8174, allocations: 12 kB / 0.4999 GB, free: 8.395 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002634/0.8176, allocations: 390.7 kB / 0.5003 GB, free: 8.004 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007367/0.8184, allocations: 249.7 kB / 0.5005 GB, free: 7.758 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009154/0.8193, allocations: 480.3 kB / 0.501 GB, free: 7.191 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004576/0.8239, allocations: 0.7801 MB / 0.5017 GB, free: 6.395 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.758e-06/0.824, allocations: 0 / 0.5017 GB, free: 6.395 MB / 442.7 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.005321/0.8293, allocations: 1.397 MB / 0.5031 GB, free: 4.941 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001448/0.8308, allocations: 2.789 MB / 0.5058 GB, free: 1.93 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.053e-05/0.8309, allocations: 11.95 kB / 0.5058 GB, free: 1.918 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003192/0.8341, allocations: 476.7 kB / 0.5063 GB, free: 1.445 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001001/0.8351, allocations: 135.8 kB / 0.5064 GB, free: 1.312 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005577/0.8407, allocations: 4.022 MB / 0.5104 GB, free: 12.99 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001095/0.8419, allocations: 35.98 kB / 0.5104 GB, free: 12.96 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.737e-05/0.842, allocations: 40.09 kB / 0.5104 GB, free: 12.92 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.668e-05/0.842, allocations: 7.984 kB / 0.5104 GB, free: 12.91 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004459/0.8465, allocations: 1.263 MB / 0.5117 GB, free: 11.6 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.094e-05/0.8466, allocations: 8 kB / 0.5117 GB, free: 11.59 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002871/0.8495, allocations: 450.2 kB / 0.5121 GB, free: 11.14 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001025/0.8505, allocations: 131.8 kB / 0.5122 GB, free: 11.01 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01566/0.8662, allocations: 7.432 MB / 0.5195 GB, free: 3.164 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001003/0.8673, allocations: 31.98 kB / 0.5195 GB, free: 3.133 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.412e-05/0.8674, allocations: 31.98 kB / 0.5195 GB, free: 3.102 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.0003074/0.8677, allocations: 156.8 kB / 0.5197 GB, free: 2.941 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002047/0.8679, allocations: 87.02 kB / 0.5198 GB, free: 2.855 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002317/0.8702, allocations: 0.8177 MB / 0.5206 GB, free: 2 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.59e-05/0.8703, allocations: 4 kB / 0.5206 GB, free: 1.996 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.077e-05/0.8703, allocations: 11.89 kB / 0.5206 GB, free: 1.984 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.452e-05/0.8704, allocations: 3.984 kB / 0.5206 GB, free: 1.98 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004703/0.8751, allocations: 1.799 MB / 0.5224 GB, free: 84 kB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.226e-05/0.8751, allocations: 4 kB / 0.5224 GB, free: 80 kB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.3269/1.202, allocations: 128.9 kB / 0.5225 GB, free: 127.9 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000318/1.202, allocations: 54.17 kB / 0.5225 GB, free: 127.9 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001341/1.203, allocations: 17.27 kB / 0.5225 GB, free: 127.9 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002245/1.205, allocations: 2.752 MB / 0.5252 GB, free: 125.4 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.048e-06/1.205, allocations: 1.031 kB / 0.5252 GB, free: 125.4 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002959/1.208, allocations: 1.293 MB / 0.5265 GB, free: 125 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005619/1.208, allocations: 203.2 kB / 0.5267 GB, free: 124.9 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000184/1.209, allocations: 21.02 kB / 0.5267 GB, free: 124.9 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008007/1.209, allocations: 31.61 kB / 0.5267 GB, free: 124.9 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001703/1.21, allocations: 40.77 kB / 0.5268 GB, free: 124.9 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.886e-05/1.21, allocations: 22.3 kB / 0.5268 GB, free: 124.9 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0008797/1.211, allocations: 432.2 kB / 0.5272 GB, free: 124.8 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.292e-06/1.211, allocations: 0 / 0.5272 GB, free: 124.8 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.00255/1.213, allocations: 375.6 kB / 0.5276 GB, free: 124.8 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.003421/1.217, allocations: 2.119 MB / 0.5296 GB, free: 123.7 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.004968/1.222, allocations: 1.809 MB / 0.5314 GB, free: 123.2 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.047e-06/1.222, allocations: 0.875 kB / 0.5314 GB, free: 123.2 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001154/1.223, allocations: 0.5196 MB / 0.5319 GB, free: 122.9 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001692/1.225, allocations: 192.6 kB / 0.5321 GB, free: 122.9 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005821/1.23, allocations: 1.838 MB / 0.5339 GB, free: 122.5 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001004/1.232, allocations: 1.122 MB / 0.535 GB, free: 121.8 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001811/1.233, allocations: 265.1 kB / 0.5352 GB, free: 121.8 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007366/1.234, allocations: 322.5 kB / 0.5356 GB, free: 121.8 MB / 458.7 MB Notification: Performance of SimCode: time 1.262e-06/1.234, allocations: 1.344 kB / 0.5356 GB, free: 121.8 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07533/1.31, allocations: 23.16 MB / 0.5582 GB, free: 120.4 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002438/1.31, allocations: 177.2 kB / 0.5583 GB, free: 120.2 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.396/4.706, allocations: 3.75 kB / 0.5583 GB, free: 120.2 MB / 458.7 MB