Running command: translateModel(PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv") Notification: Performance of loadModel(PowerSystems): time 2.405/2.405, allocations: 233 MB / 246.1 MB, free: 14.84 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.512e-05/3.523e-05, allocations: 8 kB / 302.2 MB, free: 7.484 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09279/0.09285, allocations: 53.24 MB / 355.4 MB, free: 2.129 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3957/0.4886, allocations: 112 MB / 467.5 MB, free: 5.688 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003086/0.4889, allocations: 91.94 kB / 467.6 MB, free: 5.598 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1275/0.6164, allocations: 30.51 MB / 498.1 MB, free: 6.789 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.382e-06/0.6165, allocations: 0 / 498.1 MB, free: 6.789 MB / 426.7 MB Notification: Performance of Transformations before backend: time 8.651e-05/0.6166, allocations: 24 kB / 498.1 MB, free: 6.766 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.002954/0.6195, allocations: 1.127 MB / 499.2 MB, free: 5.59 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.441e-05/0.6196, allocations: 8.031 kB / 499.2 MB, free: 5.582 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007547/0.6204, allocations: 138.6 kB / 499.4 MB, free: 5.445 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003035/0.6234, allocations: 0.9573 MB / 0.4886 GB, free: 4.441 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.401e-05/0.6235, allocations: 62 kB / 0.4886 GB, free: 4.383 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002747/0.6238, allocations: 95.89 kB / 0.4887 GB, free: 4.289 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002506/0.6263, allocations: 1.088 MB / 0.4898 GB, free: 3.141 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.955e-05/0.6264, allocations: 0 / 0.4898 GB, free: 3.141 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001317/0.6266, allocations: 36 kB / 0.4898 GB, free: 3.105 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001436/0.6267, allocations: 53.98 kB / 0.4899 GB, free: 3.051 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002131/0.6289, allocations: 0.8512 MB / 0.4907 GB, free: 2.199 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008982/0.6379, allocations: 4.414 MB / 0.495 GB, free: 13.56 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001332/0.6392, allocations: 0.5446 MB / 0.4956 GB, free: 12.98 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008545/0.6401, allocations: 364.5 kB / 0.4959 GB, free: 12.62 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.64e-05/0.6402, allocations: 8.562 kB / 0.4959 GB, free: 12.61 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.293e-05/0.6403, allocations: 35.12 kB / 0.4959 GB, free: 12.57 MB / 442.7 MB Notification: Performance of pre-optimization done (n=57): time 4.623e-06/0.6403, allocations: 4 kB / 0.496 GB, free: 12.56 MB / 442.7 MB Notification: Performance of matching and sorting (n=62): time 0.005883/0.6462, allocations: 2.409 MB / 0.4983 GB, free: 10.04 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000105/0.6463, allocations: 137.1 kB / 0.4984 GB, free: 9.871 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001048/0.6474, allocations: 0.5426 MB / 0.499 GB, free: 9.32 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001142/0.6475, allocations: 33.7 kB / 0.499 GB, free: 9.281 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000451/0.648, allocations: 470.9 kB / 0.4994 GB, free: 8.812 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002756/0.6483, allocations: 228.8 kB / 0.4997 GB, free: 8.586 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.892e-05/0.6483, allocations: 16 kB / 0.4997 GB, free: 8.57 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002725/0.6486, allocations: 390.7 kB / 0.5001 GB, free: 8.18 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006128/0.6493, allocations: 245.7 kB / 0.5003 GB, free: 7.938 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008164/0.6501, allocations: 480.3 kB / 0.5007 GB, free: 7.371 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005114/0.6552, allocations: 0.784 MB / 0.5015 GB, free: 6.57 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.225e-05/0.6553, allocations: 4 kB / 0.5015 GB, free: 6.566 MB / 442.7 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.007895/0.6632, allocations: 1.393 MB / 0.5029 GB, free: 5.117 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00234/0.6656, allocations: 2.789 MB / 0.5056 GB, free: 2.109 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.269e-05/0.6657, allocations: 11.95 kB / 0.5056 GB, free: 2.098 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004291/0.67, allocations: 468.7 kB / 0.5061 GB, free: 1.633 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001371/0.6714, allocations: 143.8 kB / 0.5062 GB, free: 1.492 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009361/0.6808, allocations: 4.022 MB / 0.5101 GB, free: 13.18 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001595/0.6825, allocations: 35.98 kB / 0.5102 GB, free: 13.14 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001731/0.6827, allocations: 36.42 kB / 0.5102 GB, free: 13.11 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.393e-05/0.6827, allocations: 7.984 kB / 0.5102 GB, free: 13.1 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006716/0.6895, allocations: 1.259 MB / 0.5114 GB, free: 11.79 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.053e-05/0.6896, allocations: 8 kB / 0.5114 GB, free: 11.78 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004006/0.6936, allocations: 458.2 kB / 0.5119 GB, free: 11.32 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001352/0.695, allocations: 131.8 kB / 0.512 GB, free: 11.2 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02314/0.7182, allocations: 7.439 MB / 0.5193 GB, free: 3.34 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008869/0.7191, allocations: 31.98 kB / 0.5193 GB, free: 3.309 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.85e-05/0.7192, allocations: 35.98 kB / 0.5193 GB, free: 3.273 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.0002968/0.7195, allocations: 157.7 kB / 0.5195 GB, free: 3.113 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002096/0.7198, allocations: 79.02 kB / 0.5196 GB, free: 3.035 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001953/0.7217, allocations: 0.8177 MB / 0.5204 GB, free: 2.18 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.417e-05/0.7218, allocations: 8 kB / 0.5204 GB, free: 2.172 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.157e-05/0.7218, allocations: 3.953 kB / 0.5204 GB, free: 2.168 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.569e-05/0.7218, allocations: 7.984 kB / 0.5204 GB, free: 2.16 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004178/0.726, allocations: 1.803 MB / 0.5221 GB, free: 264 kB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.178e-06/0.726, allocations: 0 / 0.5221 GB, free: 264 kB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001009/0.7271, allocations: 135.8 kB / 0.5223 GB, free: 128 kB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002367/0.7273, allocations: 57.72 kB / 0.5223 GB, free: 64 kB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.87e-05/0.7274, allocations: 16 kB / 0.5223 GB, free: 48 kB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2488/0.9763, allocations: 2.74 MB / 0.525 GB, free: 125.8 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.523e-06/0.9763, allocations: 4.812 kB / 0.525 GB, free: 125.8 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002509/0.9788, allocations: 1.294 MB / 0.5263 GB, free: 125.5 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004236/0.9793, allocations: 204 kB / 0.5265 GB, free: 125.4 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001551/0.9795, allocations: 14.64 kB / 0.5265 GB, free: 125.4 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006169/0.9801, allocations: 39.25 kB / 0.5265 GB, free: 125.4 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001354/0.9802, allocations: 40.48 kB / 0.5266 GB, free: 125.4 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.366e-05/0.9803, allocations: 18.83 kB / 0.5266 GB, free: 125.4 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0008085/0.9811, allocations: 434.8 kB / 0.527 GB, free: 125.3 MB / 458.7 MB Notification: Performance of sort global known variables: time 8.62e-07/0.9812, allocations: 2.719 kB / 0.527 GB, free: 125.3 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001973/0.9831, allocations: 371.3 kB / 0.5274 GB, free: 125.3 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.00032/0.9835, allocations: 166.4 kB / 0.5275 GB, free: 125.2 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003883/0.9874, allocations: 1.812 MB / 0.5293 GB, free: 124.6 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.779e-06/0.9874, allocations: 0 / 0.5293 GB, free: 124.6 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009237/0.9884, allocations: 0.5191 MB / 0.5298 GB, free: 124.4 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001275/0.9897, allocations: 191.3 kB / 0.53 GB, free: 124.4 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003618/0.9933, allocations: 1.605 MB / 0.5315 GB, free: 124 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009356/0.9943, allocations: 1.125 MB / 0.5326 GB, free: 123.3 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001405/0.9957, allocations: 266.1 kB / 0.5329 GB, free: 123.3 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002106/0.9959, allocations: 46.44 kB / 0.5329 GB, free: 123.3 MB / 458.7 MB Notification: Performance of SimCode: time 1.802e-06/0.9959, allocations: 0 / 0.5329 GB, free: 123.3 MB / 458.7 MB Notification: Performance of Templates: time 0.04017/1.036, allocations: 15.5 MB / 0.5481 GB, free: 122.6 MB / 458.7 MB