Running command: translateModel(PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv") Notification: Performance of loadModel(PowerSystems): time 2.114/2.114, allocations: 233 MB / 245.6 MB, free: 14.81 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.736e-05/4.751e-05, allocations: 7.938 kB / 301.3 MB, free: 7.977 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1095/0.1096, allocations: 53.24 MB / 354.5 MB, free: 2.625 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4662/0.5759, allocations: 112 MB / 466.5 MB, free: 6.012 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002549/0.5762, allocations: 91.94 kB / 466.6 MB, free: 5.922 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1219/0.6981, allocations: 30.51 MB / 497.1 MB, free: 7.113 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.631e-06/0.6981, allocations: 0 / 497.1 MB, free: 7.113 MB / 426.7 MB Notification: Performance of Transformations before backend: time 7.442e-05/0.6982, allocations: 27.94 kB / 497.1 MB, free: 7.086 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.002646/0.7008, allocations: 1.134 MB / 498.3 MB, free: 5.902 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.055e-05/0.7009, allocations: 8.031 kB / 498.3 MB, free: 5.895 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005997/0.7015, allocations: 130.6 kB / 498.4 MB, free: 5.766 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002595/0.7041, allocations: 0.9492 MB / 499.4 MB, free: 4.77 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.642e-05/0.7042, allocations: 66 kB / 499.4 MB, free: 4.707 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000261/0.7045, allocations: 95.88 kB / 499.5 MB, free: 4.613 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002321/0.7068, allocations: 1.081 MB / 0.4889 GB, free: 3.473 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.232e-05/0.7069, allocations: 7.938 kB / 0.4889 GB, free: 3.465 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001254/0.707, allocations: 32 kB / 0.4889 GB, free: 3.434 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001439/0.7072, allocations: 61.97 kB / 0.489 GB, free: 3.371 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002016/0.7092, allocations: 0.8434 MB / 0.4898 GB, free: 2.527 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008098/0.7173, allocations: 4.426 MB / 0.4941 GB, free: 13.88 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001256/0.7186, allocations: 0.5441 MB / 0.4946 GB, free: 13.3 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008061/0.7195, allocations: 352.6 kB / 0.495 GB, free: 12.95 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.906e-05/0.7195, allocations: 13.02 kB / 0.495 GB, free: 12.93 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.22e-05/0.7196, allocations: 43.06 kB / 0.495 GB, free: 12.88 MB / 442.7 MB Notification: Performance of pre-optimization done (n=57): time 4.026e-06/0.7196, allocations: 3.938 kB / 0.495 GB, free: 12.88 MB / 442.7 MB Notification: Performance of matching and sorting (n=62): time 0.005459/0.7251, allocations: 2.405 MB / 0.4974 GB, free: 10.36 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000101/0.7252, allocations: 141.1 kB / 0.4975 GB, free: 10.19 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009922/0.7262, allocations: 0.5426 MB / 0.4981 GB, free: 9.637 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 6.761e-05/0.7263, allocations: 37.7 kB / 0.4981 GB, free: 9.594 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004045/0.7267, allocations: 489.4 kB / 0.4986 GB, free: 9.109 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002465/0.727, allocations: 224.8 kB / 0.4988 GB, free: 8.887 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.473e-05/0.727, allocations: 12 kB / 0.4988 GB, free: 8.875 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001876/0.7272, allocations: 346.8 kB / 0.4991 GB, free: 8.527 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000587/0.7278, allocations: 249.7 kB / 0.4994 GB, free: 8.281 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008135/0.7287, allocations: 484.3 kB / 0.4998 GB, free: 7.711 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003233/0.7319, allocations: 0.7762 MB / 0.5006 GB, free: 6.918 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.111e-06/0.7319, allocations: 0 / 0.5006 GB, free: 6.918 MB / 442.7 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.003704/0.7357, allocations: 1.351 MB / 0.5019 GB, free: 5.512 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0015/0.7372, allocations: 2.791 MB / 0.5046 GB, free: 2.5 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.746e-05/0.7372, allocations: 11.95 kB / 0.5046 GB, free: 2.488 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002258/0.7395, allocations: 480.7 kB / 0.5051 GB, free: 2.012 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007042/0.7402, allocations: 127.8 kB / 0.5052 GB, free: 1.887 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005041/0.7453, allocations: 4.022 MB / 0.5091 GB, free: 13.57 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007899/0.7461, allocations: 35.98 kB / 0.5092 GB, free: 13.54 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.77e-05/0.7462, allocations: 32 kB / 0.5092 GB, free: 13.5 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.236e-05/0.7462, allocations: 4 kB / 0.5092 GB, free: 13.5 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003421/0.7497, allocations: 1.267 MB / 0.5104 GB, free: 12.18 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.689e-05/0.7497, allocations: 8.281 kB / 0.5104 GB, free: 12.18 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002097/0.7518, allocations: 458.2 kB / 0.5109 GB, free: 11.72 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007043/0.7525, allocations: 135.8 kB / 0.511 GB, free: 11.59 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01221/0.7648, allocations: 7.389 MB / 0.5182 GB, free: 3.781 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005257/0.7653, allocations: 31.98 kB / 0.5183 GB, free: 3.75 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.979e-05/0.7654, allocations: 36 kB / 0.5183 GB, free: 3.715 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.0002749/0.7657, allocations: 157.7 kB / 0.5184 GB, free: 3.555 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002416/0.766, allocations: 79.02 kB / 0.5185 GB, free: 3.477 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001853/0.7678, allocations: 0.8177 MB / 0.5193 GB, free: 2.621 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.129e-05/0.7679, allocations: 12 kB / 0.5193 GB, free: 2.609 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.073e-06/0.7679, allocations: 3.953 kB / 0.5193 GB, free: 2.605 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.294e-05/0.7679, allocations: 3.984 kB / 0.5193 GB, free: 2.602 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003821/0.7717, allocations: 1.807 MB / 0.5211 GB, free: 0.6953 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.128e-06/0.7718, allocations: 96 / 0.5211 GB, free: 0.6953 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009935/0.7728, allocations: 131.9 kB / 0.5212 GB, free: 0.5664 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002347/0.773, allocations: 65.64 kB / 0.5213 GB, free: 0.4961 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.837e-05/0.7731, allocations: 19.98 kB / 0.5213 GB, free: 488 kB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.291/1.064, allocations: 2.738 MB / 0.524 GB, free: 125.9 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.828e-06/1.064, allocations: 1.156 kB / 0.524 GB, free: 125.9 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002514/1.067, allocations: 1.294 MB / 0.5252 GB, free: 125.6 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004025/1.067, allocations: 204.2 kB / 0.5254 GB, free: 125.5 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001371/1.067, allocations: 15.55 kB / 0.5255 GB, free: 125.5 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008144/1.068, allocations: 30.39 kB / 0.5255 GB, free: 125.5 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001905/1.068, allocations: 50.09 kB / 0.5255 GB, free: 125.5 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.707e-05/1.068, allocations: 19.52 kB / 0.5256 GB, free: 125.5 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0007814/1.069, allocations: 432.9 kB / 0.526 GB, free: 125.4 MB / 458.7 MB Notification: Performance of sort global known variables: time 8.49e-07/1.069, allocations: 1.031 kB / 0.526 GB, free: 125.4 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001909/1.071, allocations: 372.4 kB / 0.5263 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.0002943/1.072, allocations: 168.8 kB / 0.5265 GB, free: 125.3 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003688/1.075, allocations: 1.783 MB / 0.5282 GB, free: 124.7 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.646e-06/1.075, allocations: 1.188 kB / 0.5282 GB, free: 124.7 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008795/1.076, allocations: 0.5182 MB / 0.5287 GB, free: 124.5 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001178/1.077, allocations: 194.4 kB / 0.5289 GB, free: 124.5 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003501/1.081, allocations: 1.661 MB / 0.5305 GB, free: 124.1 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009001/1.082, allocations: 1.117 MB / 0.5316 GB, free: 123.4 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002998/1.082, allocations: 60.89 kB / 0.5317 GB, free: 123.4 MB / 458.7 MB Notification: Performance of SimCode: time 1.874e-06/1.082, allocations: 1.188 kB / 0.5317 GB, free: 123.4 MB / 458.7 MB Notification: Performance of Templates: time 0.02996/1.112, allocations: 20.55 MB / 0.5518 GB, free: 122.8 MB / 458.7 MB