Running command: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_SM_ctrlAv",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(PowerSystems): time 2.529/2.529, allocations: 233 MB / 246.1 MB, free: 14.84 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.8e-05/3.82e-05, allocations: 4 kB / 302.3 MB, free: 7.379 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1394/0.1395, allocations: 53.23 MB / 355.5 MB, free: 2.031 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5629/0.7024, allocations: 112 MB / 467.6 MB, free: 5.539 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000355/0.7029, allocations: 91.95 kB / 467.6 MB, free: 5.449 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.14/0.8428, allocations: 30.51 MB / 498.2 MB, free: 6.641 MB / 426.7 MB Notification: Performance of FrontEnd: time 4.298e-06/0.8429, allocations: 4 kB / 498.2 MB, free: 6.637 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001024/0.843, allocations: 20 kB / 498.2 MB, free: 6.617 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.004056/0.8471, allocations: 1.138 MB / 499.3 MB, free: 5.43 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.565e-05/0.8472, allocations: 15.95 kB / 499.3 MB, free: 5.414 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004483/0.8476, allocations: 135.4 kB / 499.5 MB, free: 5.273 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008871/0.8485, allocations: 130.6 kB / 499.6 MB, free: 5.145 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003618/0.8522, allocations: 0.9573 MB / 0.4888 GB, free: 4.141 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.932e-05/0.8523, allocations: 61.98 kB / 0.4889 GB, free: 4.082 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003805/0.8527, allocations: 91.89 kB / 0.489 GB, free: 3.992 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003026/0.8557, allocations: 1.092 MB / 0.49 GB, free: 2.84 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.236e-05/0.8558, allocations: 3.984 kB / 0.49 GB, free: 2.836 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001621/0.856, allocations: 36 kB / 0.4901 GB, free: 2.801 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001727/0.8562, allocations: 57.97 kB / 0.4901 GB, free: 2.742 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002724/0.8589, allocations: 0.8473 MB / 0.4909 GB, free: 1.895 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0109/0.8699, allocations: 4.418 MB / 0.4953 GB, free: 13.25 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001538/0.8715, allocations: 0.5402 MB / 0.4958 GB, free: 12.68 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001028/0.8725, allocations: 356.8 kB / 0.4961 GB, free: 12.32 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.254e-05/0.8726, allocations: 16.5 kB / 0.4961 GB, free: 12.31 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.175e-05/0.8727, allocations: 43.11 kB / 0.4962 GB, free: 12.26 MB / 442.7 MB Notification: Performance of pre-optimization done (n=57): time 3.987e-06/0.8727, allocations: 0 / 0.4962 GB, free: 12.26 MB / 442.7 MB Notification: Performance of matching and sorting (n=62): time 0.006769/0.8795, allocations: 2.405 MB / 0.4985 GB, free: 9.734 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.206e-05/0.8796, allocations: 133.1 kB / 0.4987 GB, free: 9.574 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001193/0.8809, allocations: 0.5466 MB / 0.4992 GB, free: 9.02 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000163/0.881, allocations: 37.7 kB / 0.4992 GB, free: 8.977 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005041/0.8816, allocations: 470.9 kB / 0.4997 GB, free: 8.508 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003217/0.8819, allocations: 216.8 kB / 0.4999 GB, free: 8.293 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.533e-05/0.882, allocations: 24.03 kB / 0.4999 GB, free: 8.27 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002332/0.8822, allocations: 386.7 kB / 0.5003 GB, free: 7.883 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007157/0.8829, allocations: 253.7 kB / 0.5005 GB, free: 7.633 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009118/0.8839, allocations: 468.3 kB / 0.501 GB, free: 7.078 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004538/0.8884, allocations: 0.7879 MB / 0.5017 GB, free: 6.273 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.217e-06/0.8885, allocations: 0 / 0.5017 GB, free: 6.273 MB / 442.7 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.005235/0.8938, allocations: 1.401 MB / 0.5031 GB, free: 4.816 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001414/0.8952, allocations: 2.793 MB / 0.5058 GB, free: 1.805 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.64e-05/0.8953, allocations: 12 kB / 0.5058 GB, free: 1.793 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003223/0.8985, allocations: 468.7 kB / 0.5063 GB, free: 1.328 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001034/0.8996, allocations: 127.8 kB / 0.5064 GB, free: 1.203 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005698/0.9053, allocations: 4.026 MB / 0.5103 GB, free: 12.88 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001138/0.9065, allocations: 43.97 kB / 0.5104 GB, free: 12.84 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001011/0.9066, allocations: 31.94 kB / 0.5104 GB, free: 12.81 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.173e-05/0.9067, allocations: 4 kB / 0.5104 GB, free: 12.8 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004413/0.9111, allocations: 1.267 MB / 0.5117 GB, free: 11.49 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.958e-05/0.9112, allocations: 8.281 kB / 0.5117 GB, free: 11.48 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00291/0.9141, allocations: 466.4 kB / 0.5121 GB, free: 11.02 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009953/0.9151, allocations: 135.7 kB / 0.5122 GB, free: 10.88 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01474/0.9299, allocations: 7.42 MB / 0.5195 GB, free: 3.047 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001031/0.931, allocations: 35.98 kB / 0.5195 GB, free: 3.012 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.747e-05/0.9311, allocations: 32 kB / 0.5196 GB, free: 2.98 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.0003097/0.9314, allocations: 156.8 kB / 0.5197 GB, free: 2.82 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000238/0.9317, allocations: 87.02 kB / 0.5198 GB, free: 2.734 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00229/0.934, allocations: 0.81 MB / 0.5206 GB, free: 1.887 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.305e-05/0.934, allocations: 8 kB / 0.5206 GB, free: 1.879 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.197e-06/0.934, allocations: 7.953 kB / 0.5206 GB, free: 1.871 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.321e-05/0.9341, allocations: 3.984 kB / 0.5206 GB, free: 1.867 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3301/1.264, allocations: 1.804 MB / 0.5224 GB, free: 127.7 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.886e-05/1.264, allocations: 1.344 kB / 0.5224 GB, free: 127.7 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001529/1.266, allocations: 130.9 kB / 0.5225 GB, free: 127.7 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003138/1.266, allocations: 60.25 kB / 0.5225 GB, free: 127.7 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000135/1.266, allocations: 15.36 kB / 0.5226 GB, free: 127.7 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002405/1.269, allocations: 2.749 MB / 0.5252 GB, free: 125.1 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.632e-06/1.269, allocations: 3.531 kB / 0.5252 GB, free: 125.1 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003244/1.272, allocations: 1.294 MB / 0.5265 GB, free: 124.7 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005786/1.273, allocations: 208.3 kB / 0.5267 GB, free: 124.6 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001615/1.273, allocations: 16.91 kB / 0.5267 GB, free: 124.6 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007628/1.274, allocations: 28.34 kB / 0.5267 GB, free: 124.6 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001648/1.274, allocations: 46.53 kB / 0.5268 GB, free: 124.6 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.345e-05/1.274, allocations: 16.78 kB / 0.5268 GB, free: 124.6 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0009337/1.275, allocations: 435.1 kB / 0.5272 GB, free: 124.6 MB / 458.7 MB Notification: Performance of sort global known variables: time 5.91e-07/1.275, allocations: 0 / 0.5272 GB, free: 124.6 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002506/1.277, allocations: 376.2 kB / 0.5276 GB, free: 124.6 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.003687/1.281, allocations: 2.115 MB / 0.5296 GB, free: 123.4 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005287/1.286, allocations: 1.812 MB / 0.5314 GB, free: 122.9 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.598e-06/1.286, allocations: 0.9688 kB / 0.5314 GB, free: 122.9 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001221/1.288, allocations: 0.519 MB / 0.5319 GB, free: 122.7 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001863/1.29, allocations: 185.7 kB / 0.5321 GB, free: 122.7 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006234/1.296, allocations: 1.835 MB / 0.5339 GB, free: 122.2 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001133/1.297, allocations: 1.12 MB / 0.535 GB, free: 121.5 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001822/1.299, allocations: 268.4 kB / 0.5352 GB, free: 121.5 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007952/1.3, allocations: 324.1 kB / 0.5356 GB, free: 121.5 MB / 458.7 MB Notification: Performance of SimCode: time 1.893e-06/1.3, allocations: 0 / 0.5356 GB, free: 121.5 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09121/1.391, allocations: 23.17 MB / 0.5582 GB, free: 120.2 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002516/1.391, allocations: 176.8 kB / 0.5584 GB, free: 120 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.565/4.956, allocations: 0 / 0.5584 GB, free: 120 MB / 458.7 MB