Running command: translateModel(PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv") Notification: Performance of loadModel(PowerSystems): time 2.363/2.363, allocations: 233 MB / 246.1 MB, free: 14.87 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.498e-05/3.509e-05, allocations: 6.031 kB / 302.2 MB, free: 7.484 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0929/0.09296, allocations: 53.23 MB / 355.4 MB, free: 2.133 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4511/0.5441, allocations: 112 MB / 467.5 MB, free: 5.699 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002848/0.5445, allocations: 95.88 kB / 467.5 MB, free: 5.605 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1246/0.6691, allocations: 30.51 MB / 498.1 MB, free: 6.797 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.132e-05/0.6691, allocations: 0 / 498.1 MB, free: 6.797 MB / 426.7 MB Notification: Performance of Transformations before backend: time 8.34e-05/0.6692, allocations: 27.94 kB / 498.1 MB, free: 6.77 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.00287/0.6721, allocations: 1.127 MB / 499.2 MB, free: 5.594 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.815e-05/0.6722, allocations: 12.03 kB / 499.2 MB, free: 5.582 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007638/0.6729, allocations: 134.6 kB / 499.4 MB, free: 5.449 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003103/0.6761, allocations: 0.9574 MB / 0.4886 GB, free: 4.445 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.262e-05/0.6762, allocations: 65.98 kB / 0.4887 GB, free: 4.383 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000302/0.6765, allocations: 87.91 kB / 0.4887 GB, free: 4.297 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002657/0.6792, allocations: 1.088 MB / 0.4898 GB, free: 3.148 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.461e-05/0.6793, allocations: 3.938 kB / 0.4898 GB, free: 3.145 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001278/0.6794, allocations: 36 kB / 0.4898 GB, free: 3.109 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001566/0.6796, allocations: 61.97 kB / 0.4899 GB, free: 3.047 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002216/0.6818, allocations: 0.8473 MB / 0.4907 GB, free: 2.199 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008869/0.6907, allocations: 4.418 MB / 0.495 GB, free: 13.55 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0013/0.692, allocations: 0.5363 MB / 0.4956 GB, free: 12.99 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008226/0.6929, allocations: 364.2 kB / 0.4959 GB, free: 12.62 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.532e-05/0.693, allocations: 8.562 kB / 0.4959 GB, free: 12.62 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.609e-05/0.693, allocations: 43.06 kB / 0.496 GB, free: 12.57 MB / 442.7 MB Notification: Performance of pre-optimization done (n=57): time 4.141e-06/0.693, allocations: 0 / 0.496 GB, free: 12.57 MB / 442.7 MB Notification: Performance of matching and sorting (n=62): time 0.005822/0.6989, allocations: 2.409 MB / 0.4983 GB, free: 10.04 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001073/0.699, allocations: 137.1 kB / 0.4984 GB, free: 9.875 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001107/0.7001, allocations: 0.5426 MB / 0.499 GB, free: 9.324 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001444/0.7003, allocations: 41.7 kB / 0.499 GB, free: 9.277 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004527/0.7008, allocations: 462.9 kB / 0.4995 GB, free: 8.816 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000307/0.7011, allocations: 220.8 kB / 0.4997 GB, free: 8.598 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.867e-05/0.7012, allocations: 20.03 kB / 0.4997 GB, free: 8.578 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002552/0.7014, allocations: 390.7 kB / 0.5001 GB, free: 8.188 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006565/0.7021, allocations: 249.7 kB / 0.5003 GB, free: 7.941 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008187/0.703, allocations: 480.3 kB / 0.5008 GB, free: 7.375 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003393/0.7064, allocations: 0.784 MB / 0.5015 GB, free: 6.574 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.189e-05/0.7064, allocations: 8 kB / 0.5015 GB, free: 6.566 MB / 442.7 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.004153/0.7106, allocations: 1.389 MB / 0.5029 GB, free: 5.121 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001512/0.7121, allocations: 2.785 MB / 0.5056 GB, free: 2.117 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.615e-05/0.7122, allocations: 15.95 kB / 0.5056 GB, free: 2.102 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002336/0.7145, allocations: 472.7 kB / 0.5061 GB, free: 1.633 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000705/0.7153, allocations: 135.8 kB / 0.5062 GB, free: 1.5 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005353/0.7207, allocations: 4.026 MB / 0.5101 GB, free: 13.18 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008891/0.7216, allocations: 35.98 kB / 0.5102 GB, free: 13.14 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001231/0.7218, allocations: 35.98 kB / 0.5102 GB, free: 13.11 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.529e-05/0.7218, allocations: 4 kB / 0.5102 GB, free: 13.1 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003573/0.7254, allocations: 1.263 MB / 0.5114 GB, free: 11.79 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.818e-05/0.7254, allocations: 8.281 kB / 0.5114 GB, free: 11.78 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002117/0.7276, allocations: 458.2 kB / 0.5119 GB, free: 11.32 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007009/0.7283, allocations: 127.8 kB / 0.512 GB, free: 11.2 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01315/0.7415, allocations: 7.434 MB / 0.5193 GB, free: 3.352 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008154/0.7423, allocations: 35.98 kB / 0.5193 GB, free: 3.316 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001074/0.7425, allocations: 35.98 kB / 0.5193 GB, free: 3.281 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.0002972/0.7428, allocations: 153.5 kB / 0.5195 GB, free: 3.125 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002296/0.743, allocations: 79.02 kB / 0.5196 GB, free: 3.047 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001939/0.745, allocations: 0.8216 MB / 0.5204 GB, free: 2.188 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.351e-05/0.745, allocations: 8 kB / 0.5204 GB, free: 2.18 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.269e-05/0.7451, allocations: 7.938 kB / 0.5204 GB, free: 2.172 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.299e-05/0.7451, allocations: 4 kB / 0.5204 GB, free: 2.168 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004133/0.7492, allocations: 1.803 MB / 0.5221 GB, free: 272 kB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.767e-06/0.7493, allocations: 0 / 0.5221 GB, free: 272 kB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009751/0.7503, allocations: 131.9 kB / 0.5223 GB, free: 140 kB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000246/0.7505, allocations: 65.66 kB / 0.5223 GB, free: 68 kB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.936e-05/0.7506, allocations: 12 kB / 0.5223 GB, free: 56 kB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2527/1.003, allocations: 2.739 MB / 0.525 GB, free: 125.8 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.61e-06/1.003, allocations: 5.5 kB / 0.525 GB, free: 125.8 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002583/1.006, allocations: 1.294 MB / 0.5263 GB, free: 125.4 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004863/1.006, allocations: 204.1 kB / 0.5265 GB, free: 125.3 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001756/1.007, allocations: 16.7 kB / 0.5265 GB, free: 125.3 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006056/1.007, allocations: 31.7 kB / 0.5265 GB, free: 125.3 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001449/1.007, allocations: 46.44 kB / 0.5266 GB, free: 125.3 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.503e-05/1.008, allocations: 17.84 kB / 0.5266 GB, free: 125.3 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0008685/1.008, allocations: 434.5 kB / 0.527 GB, free: 125.2 MB / 458.7 MB Notification: Performance of sort global known variables: time 8.55e-07/1.008, allocations: 0 / 0.527 GB, free: 125.2 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002276/1.011, allocations: 371.5 kB / 0.5273 GB, free: 125.2 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.0003662/1.011, allocations: 173.7 kB / 0.5275 GB, free: 125.1 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.004002/1.015, allocations: 1.814 MB / 0.5293 GB, free: 124.6 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.827e-06/1.015, allocations: 1.062 kB / 0.5293 GB, free: 124.6 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009575/1.016, allocations: 0.5141 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.00131/1.017, allocations: 191.2 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.003878/1.021, allocations: 1.612 MB / 0.5315 GB, free: 124 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009978/1.022, allocations: 1.121 MB / 0.5326 GB, free: 123.3 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001507/1.024, allocations: 268.6 kB / 0.5329 GB, free: 123.3 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002463/1.024, allocations: 51.17 kB / 0.5329 GB, free: 123.3 MB / 458.7 MB Notification: Performance of SimCode: time 2.003e-06/1.024, allocations: 0 / 0.5329 GB, free: 123.3 MB / 458.7 MB Notification: Performance of Templates: time 0.0404/1.065, allocations: 15.5 MB / 0.5481 GB, free: 122.5 MB / 458.7 MB