```python
import numpy as np
import pydae.build as db
import sympy as sym
from pydae.models import grid2dae_dq
import copy
```

```python

```

```python
U_b = 20e3
V_b = U_b/np.sqrt(3)

data_ode = {
"system":{"f_hz":50,"model_type":"ode"},
"buses": [{"bus":"01"},{"bus":"02"},{"bus":"03"},{"bus":"04"},{"bus":"05"},
          {"bus":"06"},{"bus":"07"},{"bus":"08"},{"bus":"09"},{"bus":"10"},{"bus":"11"}],
"lines":     [
                {"bus_j":"01", "bus_k":"02", "R_km":0.501, "X_km":0.716, "B_muS_km":47.493, "km":2.82},
                {"bus_j":"02", "bus_k":"03", "R_km":0.501, "X_km":0.716, "B_muS_km":47.493, "km":4.42},
                {"bus_j":"03", "bus_k":"04", "R_km":0.501, "X_km":0.716, "B_muS_km":47.493, "km":0.61},
                {"bus_j":"03", "bus_k":"08", "R_km":0.501, "X_km":0.716, "B_muS_km":47.493, "km":1.30},
                {"bus_j":"04", "bus_k":"05", "R_km":0.501, "X_km":0.716, "B_muS_km":47.493, "km":0.56},
                {"bus_j":"05", "bus_k":"06", "R_km":0.501, "X_km":0.716, "B_muS_km":47.493, "km":1.54},
                {"bus_j":"06", "bus_k":"07", "R_km":0.501, "X_km":0.716, "B_muS_km":47.493, "km":0.24},
                {"bus_j":"07", "bus_k":"08", "R_km":0.501, "X_km":0.716, "B_muS_km":47.493, "km":1.67},
                {"bus_j":"08", "bus_k":"09", "R_km":0.501, "X_km":0.716, "B_muS_km":47.493, "km":0.32},
                {"bus_j":"09", "bus_k":"10", "R_km":0.501, "X_km":0.716, "B_muS_km":47.493, "km":0.77},
                {"bus_j":"10", "bus_k":"11", "R_km":0.501, "X_km":0.716, "B_muS_km":47.493, "km":0.33},
             ],
"loads" : [
        #{"bus": "12", "kVA":0e3, "pf": 0.95, "T_i":0.01,"I_max":1200},
        #{"bus": "13", "kVA":0e3, "pf": 0.95, "T_i":0.01,"I_max":1200},
        #{"bus": "14", "kVA":0e3, "pf": 0.95, "T_i":0.01,"I_max":1200}
        ],
"grid_formers" : [
                  {"bus": "01","V_phph":20.0e3, "deg":0.0},
                 ]}

data_dae = copy.deepcopy(data_ode)
data_dae['system']['model_type'] = 'dae'
data_ae = copy.deepcopy(data_ode)
data_ae['system']['model_type'] = 'ae'

```

```python
grid_ode  = grid2dae_dq(data_ode)
grid_dae   = grid2dae_dq(data_dae)
grid_ae   = grid2dae_dq(data_ae)
```

```python
params_dict,u_run_dict = grid_ode['params'],grid_ode['u']
f_list,g_list = grid_ode['f'],grid_ode['g']
x_list,y_list = grid_ode['x'],grid_ode['y']
h_dict = {str(grid_ode['v_list'][0]):grid_ode['v_list'][0]}

sys = {'name':f"cigre_eu_mv_ode",
       'params_dict':params_dict,
       'f_list':f_list,
       'g_list':g_list,
       'x_list':x_list,
       'y_ini_list':y_list,
       'y_run_list':y_list,
       'u_run_dict':u_run_dict,
       'u_ini_dict':u_run_dict,
       'h_dict':h_dict
      }

sys = db.system(sys)
db.sys2num(sys)

```

    system without algebraic equations, adding dummy algebraic equation

```python
params_dict,u_run_dict = grid_dae['params'],grid_dae['u']
f_list,g_list = grid_dae['f'],grid_dae['g']
x_list,y_list = grid_dae['x'],grid_dae['y']
h_dict = {str(grid_dae['v_list'][0]):grid_dae['v_list'][0]}

sys = {'name':f"cigre_eu_mv_dae",
       'params_dict':params_dict,
       'f_list':f_list,
       'g_list':g_list,
       'x_list':x_list,
       'y_ini_list':y_list,
       'y_run_list':y_list,
       'u_run_dict':u_run_dict,
       'u_ini_dict':u_run_dict,
       'h_dict':h_dict
      }

sys = db.system(sys)
db.sys2num(sys)

```

    jacobians respect u = 0

```python
params_dict,u_run_dict = grid_ae['params'],grid_ae['u']
f_list,g_list = grid_ae['f'],grid_ae['g']
x_list,y_list = grid_ae['x'],grid_ae['y']

sys = {'name':f"cigre_eu_mv_ae",
       'params_dict':params_dict,
       'f_list':f_list,
       'g_list':g_list,
       'x_list':x_list,
       'y_ini_list':y_list,
       'y_run_list':y_list,
       'u_run_dict':u_run_dict,
       'u_ini_dict':u_run_dict,
       'h_dict':h_dict
      }

sys = db.system(sys)
db.sys2num(sys)
```

    system without dynamic equations, adding dummy dynamic equation

```python
sys
```

    {'name': 'cigre_eu_mv_ae',
     'params_dict': {'R_0102': 1.41282,
      'L_0102': 0.0064270585739141526,
      'C_0102': 4.2631325817165496e-07,
      'R_0203': 2.21442,
      'L_0203': 0.01007361663003566,
      'C_0203': 6.681931209640832e-07,
      'R_0304': 0.30561,
      'L_0304': 0.001390250258896324,
      'C_0304': 9.22166976896133e-08,
      'R_0308': 0.6513,
      'L_0308': 0.0029628284205987236,
      'C_0308': 1.96527388518848e-07,
      'R_0405': 0.28056000000000003,
      'L_0405': 0.0012762953196425273,
      'C_0405': 8.465795197734993e-08,
      'R_0506': 0.77154,
      'L_0506': 0.0035098121290169496,
      'C_0506': 2.3280936793771228e-07,
      'R_0607': 0.12024,
      'L_0607': 0.0005469837084182259,
      'C_0607': 3.628197941886425e-08,
      'R_0708': 0.8366699999999999,
      'L_0708': 0.0038060949710768213,
      'C_0708': 2.5246210678959706e-07,
      'R_0809': 0.16032,
      'L_0809': 0.0007293116112243012,
      'C_0809': 4.837597255848566e-08,
      'R_0910': 0.38577,
      'L_0910': 0.0017549060645084748,
      'C_0910': 1.1640468396885614e-07,
      'R_1011': 0.16533,
      'L_1011': 0.0007521025990750605,
      'C_1011': 4.988772170093834e-08,
      'i_02_D': 0.0,
      'i_02_Q': 0.0,
      'i_03_D': 0.0,
      'i_03_Q': 0.0,
      'i_04_D': 0.0,
      'i_04_Q': 0.0,
      'i_05_D': 0.0,
      'i_05_Q': 0.0,
      'i_06_D': 0.0,
      'i_06_Q': 0.0,
      'i_07_D': 0.0,
      'i_07_Q': 0.0,
      'i_08_D': 0.0,
      'i_08_Q': 0.0,
      'i_09_D': 0.0,
      'i_09_Q': 0.0,
      'i_10_D': 0.0,
      'i_10_Q': 0.0,
      'i_11_D': 0.0,
      'i_11_Q': 0.0,
      'omega': 314.1592653589793},
     'f_list': [u_dummy - x_dummy],
     'g_list': [L_0102*i_l_0102_Q*omega - R_0102*i_l_0102_D + v_01_D - v_02_D,
      -L_0102*i_l_0102_D*omega - R_0102*i_l_0102_Q + v_01_Q - v_02_Q,
      L_0203*i_l_0203_Q*omega - R_0203*i_l_0203_D + v_02_D - v_03_D,
      -L_0203*i_l_0203_D*omega - R_0203*i_l_0203_Q + v_02_Q - v_03_Q,
      L_0304*i_l_0304_Q*omega - R_0304*i_l_0304_D + v_03_D - v_04_D,
      -L_0304*i_l_0304_D*omega - R_0304*i_l_0304_Q + v_03_Q - v_04_Q,
      L_0308*i_l_0308_Q*omega - R_0308*i_l_0308_D + v_03_D - v_08_D,
      -L_0308*i_l_0308_D*omega - R_0308*i_l_0308_Q + v_03_Q - v_08_Q,
      L_0405*i_l_0405_Q*omega - R_0405*i_l_0405_D + v_04_D - v_05_D,
      -L_0405*i_l_0405_D*omega - R_0405*i_l_0405_Q + v_04_Q - v_05_Q,
      L_0506*i_l_0506_Q*omega - R_0506*i_l_0506_D + v_05_D - v_06_D,
      -L_0506*i_l_0506_D*omega - R_0506*i_l_0506_Q + v_05_Q - v_06_Q,
      L_0607*i_l_0607_Q*omega - R_0607*i_l_0607_D + v_06_D - v_07_D,
      -L_0607*i_l_0607_D*omega - R_0607*i_l_0607_Q + v_06_Q - v_07_Q,
      L_0708*i_l_0708_Q*omega - R_0708*i_l_0708_D + v_07_D - v_08_D,
      -L_0708*i_l_0708_D*omega - R_0708*i_l_0708_Q + v_07_Q - v_08_Q,
      L_0809*i_l_0809_Q*omega - R_0809*i_l_0809_D + v_08_D - v_09_D,
      -L_0809*i_l_0809_D*omega - R_0809*i_l_0809_Q + v_08_Q - v_09_Q,
      L_0910*i_l_0910_Q*omega - R_0910*i_l_0910_D + v_09_D - v_10_D,
      -L_0910*i_l_0910_D*omega - R_0910*i_l_0910_Q + v_09_Q - v_10_Q,
      L_1011*i_l_1011_Q*omega - R_1011*i_l_1011_D + v_10_D - v_11_D,
      -L_1011*i_l_1011_D*omega - R_1011*i_l_1011_Q + v_10_Q - v_11_Q,
      C_0102*omega*v_01_Q/2 + i_01_D - i_l_0102_D,
      -C_0102*omega*v_01_D/2 + i_01_Q - i_l_0102_Q,
      i_02_D + i_l_0102_D - i_l_0203_D + omega*v_02_Q*(C_0102/2 + C_0203/2),
      i_02_Q + i_l_0102_Q - i_l_0203_Q - omega*v_02_D*(C_0102/2 + C_0203/2),
      i_03_D + i_l_0203_D - i_l_0304_D - i_l_0308_D + omega*v_03_Q*(C_0203/2 + C_0304/2 + C_0308/2),
      i_03_Q + i_l_0203_Q - i_l_0304_Q - i_l_0308_Q - omega*v_03_D*(C_0203/2 + C_0304/2 + C_0308/2),
      i_04_D + i_l_0304_D - i_l_0405_D + omega*v_04_Q*(C_0304/2 + C_0405/2),
      i_04_Q + i_l_0304_Q - i_l_0405_Q - omega*v_04_D*(C_0304/2 + C_0405/2),
      i_05_D + i_l_0405_D - i_l_0506_D + omega*v_05_Q*(C_0405/2 + C_0506/2),
      i_05_Q + i_l_0405_Q - i_l_0506_Q - omega*v_05_D*(C_0405/2 + C_0506/2),
      i_06_D + i_l_0506_D - i_l_0607_D + omega*v_06_Q*(C_0506/2 + C_0607/2),
      i_06_Q + i_l_0506_Q - i_l_0607_Q - omega*v_06_D*(C_0506/2 + C_0607/2),
      i_07_D + i_l_0607_D - i_l_0708_D + omega*v_07_Q*(C_0607/2 + C_0708/2),
      i_07_Q + i_l_0607_Q - i_l_0708_Q - omega*v_07_D*(C_0607/2 + C_0708/2),
      i_08_D + i_l_0308_D + i_l_0708_D - i_l_0809_D + omega*v_08_Q*(C_0308/2 + C_0708/2 + C_0809/2),
      i_08_Q + i_l_0308_Q + i_l_0708_Q - i_l_0809_Q - omega*v_08_D*(C_0308/2 + C_0708/2 + C_0809/2),
      i_09_D + i_l_0809_D - i_l_0910_D + omega*v_09_Q*(C_0809/2 + C_0910/2),
      i_09_Q + i_l_0809_Q - i_l_0910_Q - omega*v_09_D*(C_0809/2 + C_0910/2),
      i_10_D + i_l_0910_D - i_l_1011_D + omega*v_10_Q*(C_0910/2 + C_1011/2),
      i_10_Q + i_l_0910_Q - i_l_1011_Q - omega*v_10_D*(C_0910/2 + C_1011/2),
      C_1011*omega*v_11_Q/2 + i_11_D + i_l_1011_D,
      -C_1011*omega*v_11_D/2 + i_11_Q + i_l_1011_Q],
     'x_list': ['x_dummy'],
     'y_ini_list': [i_l_0102_D,
      i_l_0102_Q,
      i_l_0203_D,
      i_l_0203_Q,
      i_l_0304_D,
      i_l_0304_Q,
      i_l_0308_D,
      i_l_0308_Q,
      i_l_0405_D,
      i_l_0405_Q,
      i_l_0506_D,
      i_l_0506_Q,
      i_l_0607_D,
      i_l_0607_Q,
      i_l_0708_D,
      i_l_0708_Q,
      i_l_0809_D,
      i_l_0809_Q,
      i_l_0910_D,
      i_l_0910_Q,
      i_l_1011_D,
      i_l_1011_Q,
      i_01_D,
      i_01_Q,
      v_02_D,
      v_02_Q,
      v_03_D,
      v_03_Q,
      v_04_D,
      v_04_Q,
      v_05_D,
      v_05_Q,
      v_06_D,
      v_06_Q,
      v_07_D,
      v_07_Q,
      v_08_D,
      v_08_Q,
      v_09_D,
      v_09_Q,
      v_10_D,
      v_10_Q,
      v_11_D,
      v_11_Q],
     'y_run_list': [i_l_0102_D,
      i_l_0102_Q,
      i_l_0203_D,
      i_l_0203_Q,
      i_l_0304_D,
      i_l_0304_Q,
      i_l_0308_D,
      i_l_0308_Q,
      i_l_0405_D,
      i_l_0405_Q,
      i_l_0506_D,
      i_l_0506_Q,
      i_l_0607_D,
      i_l_0607_Q,
      i_l_0708_D,
      i_l_0708_Q,
      i_l_0809_D,
      i_l_0809_Q,
      i_l_0910_D,
      i_l_0910_Q,
      i_l_1011_D,
      i_l_1011_Q,
      i_01_D,
      i_01_Q,
      v_02_D,
      v_02_Q,
      v_03_D,
      v_03_Q,
      v_04_D,
      v_04_Q,
      v_05_D,
      v_05_Q,
      v_06_D,
      v_06_Q,
      v_07_D,
      v_07_Q,
      v_08_D,
      v_08_Q,
      v_09_D,
      v_09_Q,
      v_10_D,
      v_10_Q,
      v_11_D,
      v_11_Q],
     'u_run_dict': {'v_01_D': 0.0, 'v_01_Q': 16329.931618554521, 'u_dummy': 1.0},
     'u_ini_dict': {'v_01_D': 0.0, 'v_01_Q': 16329.931618554521, 'u_dummy': 1.0},
     'h_dict': {'v_01_D': v_01_D},
     'f': Matrix([[u_dummy - x_dummy]]),
     'g': Matrix([
     [                                L_0102*i_l_0102_Q*omega - R_0102*i_l_0102_D + v_01_D - v_02_D],
     [                               -L_0102*i_l_0102_D*omega - R_0102*i_l_0102_Q + v_01_Q - v_02_Q],
     [                                L_0203*i_l_0203_Q*omega - R_0203*i_l_0203_D + v_02_D - v_03_D],
     [                               -L_0203*i_l_0203_D*omega - R_0203*i_l_0203_Q + v_02_Q - v_03_Q],
     [                                L_0304*i_l_0304_Q*omega - R_0304*i_l_0304_D + v_03_D - v_04_D],
     [                               -L_0304*i_l_0304_D*omega - R_0304*i_l_0304_Q + v_03_Q - v_04_Q],
     [                                L_0308*i_l_0308_Q*omega - R_0308*i_l_0308_D + v_03_D - v_08_D],
     [                               -L_0308*i_l_0308_D*omega - R_0308*i_l_0308_Q + v_03_Q - v_08_Q],
     [                                L_0405*i_l_0405_Q*omega - R_0405*i_l_0405_D + v_04_D - v_05_D],
     [                               -L_0405*i_l_0405_D*omega - R_0405*i_l_0405_Q + v_04_Q - v_05_Q],
     [                                L_0506*i_l_0506_Q*omega - R_0506*i_l_0506_D + v_05_D - v_06_D],
     [                               -L_0506*i_l_0506_D*omega - R_0506*i_l_0506_Q + v_05_Q - v_06_Q],
     [                                L_0607*i_l_0607_Q*omega - R_0607*i_l_0607_D + v_06_D - v_07_D],
     [                               -L_0607*i_l_0607_D*omega - R_0607*i_l_0607_Q + v_06_Q - v_07_Q],
     [                                L_0708*i_l_0708_Q*omega - R_0708*i_l_0708_D + v_07_D - v_08_D],
     [                               -L_0708*i_l_0708_D*omega - R_0708*i_l_0708_Q + v_07_Q - v_08_Q],
     [                                L_0809*i_l_0809_Q*omega - R_0809*i_l_0809_D + v_08_D - v_09_D],
     [                               -L_0809*i_l_0809_D*omega - R_0809*i_l_0809_Q + v_08_Q - v_09_Q],
     [                                L_0910*i_l_0910_Q*omega - R_0910*i_l_0910_D + v_09_D - v_10_D],
     [                               -L_0910*i_l_0910_D*omega - R_0910*i_l_0910_Q + v_09_Q - v_10_Q],
     [                                L_1011*i_l_1011_Q*omega - R_1011*i_l_1011_D + v_10_D - v_11_D],
     [                               -L_1011*i_l_1011_D*omega - R_1011*i_l_1011_Q + v_10_Q - v_11_Q],
     [                                                  C_0102*omega*v_01_Q/2 + i_01_D - i_l_0102_D],
     [                                                 -C_0102*omega*v_01_D/2 + i_01_Q - i_l_0102_Q],
     [                        i_02_D + i_l_0102_D - i_l_0203_D + omega*v_02_Q*(C_0102/2 + C_0203/2)],
     [                        i_02_Q + i_l_0102_Q - i_l_0203_Q - omega*v_02_D*(C_0102/2 + C_0203/2)],
     [i_03_D + i_l_0203_D - i_l_0304_D - i_l_0308_D + omega*v_03_Q*(C_0203/2 + C_0304/2 + C_0308/2)],
     [i_03_Q + i_l_0203_Q - i_l_0304_Q - i_l_0308_Q - omega*v_03_D*(C_0203/2 + C_0304/2 + C_0308/2)],
     [                        i_04_D + i_l_0304_D - i_l_0405_D + omega*v_04_Q*(C_0304/2 + C_0405/2)],
     [                        i_04_Q + i_l_0304_Q - i_l_0405_Q - omega*v_04_D*(C_0304/2 + C_0405/2)],
     [                        i_05_D + i_l_0405_D - i_l_0506_D + omega*v_05_Q*(C_0405/2 + C_0506/2)],
     [                        i_05_Q + i_l_0405_Q - i_l_0506_Q - omega*v_05_D*(C_0405/2 + C_0506/2)],
     [                        i_06_D + i_l_0506_D - i_l_0607_D + omega*v_06_Q*(C_0506/2 + C_0607/2)],
     [                        i_06_Q + i_l_0506_Q - i_l_0607_Q - omega*v_06_D*(C_0506/2 + C_0607/2)],
     [                        i_07_D + i_l_0607_D - i_l_0708_D + omega*v_07_Q*(C_0607/2 + C_0708/2)],
     [                        i_07_Q + i_l_0607_Q - i_l_0708_Q - omega*v_07_D*(C_0607/2 + C_0708/2)],
     [i_08_D + i_l_0308_D + i_l_0708_D - i_l_0809_D + omega*v_08_Q*(C_0308/2 + C_0708/2 + C_0809/2)],
     [i_08_Q + i_l_0308_Q + i_l_0708_Q - i_l_0809_Q - omega*v_08_D*(C_0308/2 + C_0708/2 + C_0809/2)],
     [                        i_09_D + i_l_0809_D - i_l_0910_D + omega*v_09_Q*(C_0809/2 + C_0910/2)],
     [                        i_09_Q + i_l_0809_Q - i_l_0910_Q - omega*v_09_D*(C_0809/2 + C_0910/2)],
     [                        i_10_D + i_l_0910_D - i_l_1011_D + omega*v_10_Q*(C_0910/2 + C_1011/2)],
     [                        i_10_Q + i_l_0910_Q - i_l_1011_Q - omega*v_10_D*(C_0910/2 + C_1011/2)],
     [                                                  C_1011*omega*v_11_Q/2 + i_11_D + i_l_1011_D],
     [                                                 -C_1011*omega*v_11_D/2 + i_11_Q + i_l_1011_Q]]),
     'x': Matrix([[x_dummy]]),
     'y_ini': Matrix([
     [i_l_0102_D],
     [i_l_0102_Q],
     [i_l_0203_D],
     [i_l_0203_Q],
     [i_l_0304_D],
     [i_l_0304_Q],
     [i_l_0308_D],
     [i_l_0308_Q],
     [i_l_0405_D],
     [i_l_0405_Q],
     [i_l_0506_D],
     [i_l_0506_Q],
     [i_l_0607_D],
     [i_l_0607_Q],
     [i_l_0708_D],
     [i_l_0708_Q],
     [i_l_0809_D],
     [i_l_0809_Q],
     [i_l_0910_D],
     [i_l_0910_Q],
     [i_l_1011_D],
     [i_l_1011_Q],
     [    i_01_D],
     [    i_01_Q],
     [    v_02_D],
     [    v_02_Q],
     [    v_03_D],
     [    v_03_Q],
     [    v_04_D],
     [    v_04_Q],
     [    v_05_D],
     [    v_05_Q],
     [    v_06_D],
     [    v_06_Q],
     [    v_07_D],
     [    v_07_Q],
     [    v_08_D],
     [    v_08_Q],
     [    v_09_D],
     [    v_09_Q],
     [    v_10_D],
     [    v_10_Q],
     [    v_11_D],
     [    v_11_Q]]),
     'y_run': Matrix([
     [i_l_0102_D],
     [i_l_0102_Q],
     [i_l_0203_D],
     [i_l_0203_Q],
     [i_l_0304_D],
     [i_l_0304_Q],
     [i_l_0308_D],
     [i_l_0308_Q],
     [i_l_0405_D],
     [i_l_0405_Q],
     [i_l_0506_D],
     [i_l_0506_Q],
     [i_l_0607_D],
     [i_l_0607_Q],
     [i_l_0708_D],
     [i_l_0708_Q],
     [i_l_0809_D],
     [i_l_0809_Q],
     [i_l_0910_D],
     [i_l_0910_Q],
     [i_l_1011_D],
     [i_l_1011_Q],
     [    i_01_D],
     [    i_01_Q],
     [    v_02_D],
     [    v_02_Q],
     [    v_03_D],
     [    v_03_Q],
     [    v_04_D],
     [    v_04_Q],
     [    v_05_D],
     [    v_05_Q],
     [    v_06_D],
     [    v_06_Q],
     [    v_07_D],
     [    v_07_Q],
     [    v_08_D],
     [    v_08_Q],
     [    v_09_D],
     [    v_09_Q],
     [    v_10_D],
     [    v_10_Q],
     [    v_11_D],
     [    v_11_Q]]),
     'u_ini': Matrix([
     [ v_01_D],
     [ v_01_Q],
     [u_dummy]]),
     'u_run': Matrix([
     [ v_01_D],
     [ v_01_Q],
     [u_dummy]]),
     'h': Matrix([[v_01_D]]),
     'Fx_run': Matrix([[-1]]),
     'Fy_run': Matrix([[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]]),
     'Gx_run': Matrix([
     [0],
     [0],
     [0],
     [0],
     [0],
     [0],
     [0],
     [0],
     [0],
     [0],
     [0],
     [0],
     [0],
     [0],
     [0],
     [0],
     [0],
     [0],
     [0],
     [0],
     [0],
     [0],
     [0],
     [0],
     [0],
     [0],
     [0],
     [0],
     [0],
     [0],
     [0],
     [0],
     [0],
     [0],
     [0],
     [0],
     [0],
     [0],
     [0],
     [0],
     [0],
     [0],
     [0],
     [0]]),
     'Gy_run': Matrix([
     [      -R_0102, L_0102*omega,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0, 0, 0,                           -1,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,                            0,                           0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,               0,              0],
     [-L_0102*omega,      -R_0102,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0, 0, 0,                            0,                          -1,                                       0,                                      0,                            0,                           0,                            0,                           0,                            0,                           0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,               0,              0],
     [            0,            0,       -R_0203, L_0203*omega,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0, 0, 0,                            1,                           0,                                      -1,                                      0,                            0,                           0,                            0,                           0,                            0,                           0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,               0,              0],
     [            0,            0, -L_0203*omega,      -R_0203,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0, 0, 0,                            0,                           1,                                       0,                                     -1,                            0,                           0,                            0,                           0,                            0,                           0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,               0,              0],
     [            0,            0,             0,            0,       -R_0304, L_0304*omega,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0, 0, 0,                            0,                           0,                                       1,                                      0,                           -1,                           0,                            0,                           0,                            0,                           0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,               0,              0],
     [            0,            0,             0,            0, -L_0304*omega,      -R_0304,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0, 0, 0,                            0,                           0,                                       0,                                      1,                            0,                          -1,                            0,                           0,                            0,                           0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,               0,              0],
     [            0,            0,             0,            0,             0,            0,       -R_0308, L_0308*omega,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0, 0, 0,                            0,                           0,                                       1,                                      0,                            0,                           0,                            0,                           0,                            0,                           0,                            0,                           0,                                      -1,                                      0,                            0,                           0,                            0,                           0,               0,              0],
     [            0,            0,             0,            0,             0,            0, -L_0308*omega,      -R_0308,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0, 0, 0,                            0,                           0,                                       0,                                      1,                            0,                           0,                            0,                           0,                            0,                           0,                            0,                           0,                                       0,                                     -1,                            0,                           0,                            0,                           0,               0,              0],
     [            0,            0,             0,            0,             0,            0,             0,            0,       -R_0405, L_0405*omega,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0, 0, 0,                            0,                           0,                                       0,                                      0,                            1,                           0,                           -1,                           0,                            0,                           0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,               0,              0],
     [            0,            0,             0,            0,             0,            0,             0,            0, -L_0405*omega,      -R_0405,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0, 0, 0,                            0,                           0,                                       0,                                      0,                            0,                           1,                            0,                          -1,                            0,                           0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,               0,              0],
     [            0,            0,             0,            0,             0,            0,             0,            0,             0,            0,       -R_0506, L_0506*omega,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0, 0, 0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            1,                           0,                           -1,                           0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,               0,              0],
     [            0,            0,             0,            0,             0,            0,             0,            0,             0,            0, -L_0506*omega,      -R_0506,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0, 0, 0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           1,                            0,                          -1,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,               0,              0],
     [            0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,       -R_0607, L_0607*omega,             0,            0,             0,            0,             0,            0,             0,            0, 0, 0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,                            1,                           0,                           -1,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,               0,              0],
     [            0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0, -L_0607*omega,      -R_0607,             0,            0,             0,            0,             0,            0,             0,            0, 0, 0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,                            0,                           1,                            0,                          -1,                                       0,                                      0,                            0,                           0,                            0,                           0,               0,              0],
     [            0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,       -R_0708, L_0708*omega,             0,            0,             0,            0,             0,            0, 0, 0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,                            0,                           0,                            1,                           0,                                      -1,                                      0,                            0,                           0,                            0,                           0,               0,              0],
     [            0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0, -L_0708*omega,      -R_0708,             0,            0,             0,            0,             0,            0, 0, 0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,                            0,                           0,                            0,                           1,                                       0,                                     -1,                            0,                           0,                            0,                           0,               0,              0],
     [            0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,       -R_0809, L_0809*omega,             0,            0,             0,            0, 0, 0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,                            0,                           0,                            0,                           0,                                       1,                                      0,                           -1,                           0,                            0,                           0,               0,              0],
     [            0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0, -L_0809*omega,      -R_0809,             0,            0,             0,            0, 0, 0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,                            0,                           0,                            0,                           0,                                       0,                                      1,                            0,                          -1,                            0,                           0,               0,              0],
     [            0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,       -R_0910, L_0910*omega,             0,            0, 0, 0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,                            0,                           0,                            0,                           0,                                       0,                                      0,                            1,                           0,                           -1,                           0,               0,              0],
     [            0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0, -L_0910*omega,      -R_0910,             0,            0, 0, 0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,                            0,                           0,                            0,                           0,                                       0,                                      0,                            0,                           1,                            0,                          -1,               0,              0],
     [            0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,       -R_1011, L_1011*omega, 0, 0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,                            0,                           0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            1,                           0,              -1,              0],
     [            0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0, -L_1011*omega,      -R_1011, 0, 0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,                            0,                           0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           1,               0,             -1],
     [           -1,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0, 1, 0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,                            0,                           0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,               0,              0],
     [            0,           -1,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0, 0, 1,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,                            0,                           0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,               0,              0],
     [            1,            0,            -1,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0, 0, 0,                            0, omega*(C_0102/2 + C_0203/2),                                       0,                                      0,                            0,                           0,                            0,                           0,                            0,                           0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,               0,              0],
     [            0,            1,             0,           -1,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0, 0, 0, -omega*(C_0102/2 + C_0203/2),                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,                            0,                           0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,               0,              0],
     [            0,            0,             1,            0,            -1,            0,            -1,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0, 0, 0,                            0,                           0,                                       0, omega*(C_0203/2 + C_0304/2 + C_0308/2),                            0,                           0,                            0,                           0,                            0,                           0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,               0,              0],
     [            0,            0,             0,            1,             0,           -1,             0,           -1,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0, 0, 0,                            0,                           0, -omega*(C_0203/2 + C_0304/2 + C_0308/2),                                      0,                            0,                           0,                            0,                           0,                            0,                           0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,               0,              0],
     [            0,            0,             0,            0,             1,            0,             0,            0,            -1,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0, 0, 0,                            0,                           0,                                       0,                                      0,                            0, omega*(C_0304/2 + C_0405/2),                            0,                           0,                            0,                           0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,               0,              0],
     [            0,            0,             0,            0,             0,            1,             0,            0,             0,           -1,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0, 0, 0,                            0,                           0,                                       0,                                      0, -omega*(C_0304/2 + C_0405/2),                           0,                            0,                           0,                            0,                           0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,               0,              0],
     [            0,            0,             0,            0,             0,            0,             0,            0,             1,            0,            -1,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0, 0, 0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0, omega*(C_0405/2 + C_0506/2),                            0,                           0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,               0,              0],
     [            0,            0,             0,            0,             0,            0,             0,            0,             0,            1,             0,           -1,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0, 0, 0,                            0,                           0,                                       0,                                      0,                            0,                           0, -omega*(C_0405/2 + C_0506/2),                           0,                            0,                           0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,               0,              0],
     [            0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             1,            0,            -1,            0,             0,            0,             0,            0,             0,            0,             0,            0, 0, 0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,                            0, omega*(C_0506/2 + C_0607/2),                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,               0,              0],
     [            0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            1,             0,           -1,             0,            0,             0,            0,             0,            0,             0,            0, 0, 0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0, -omega*(C_0506/2 + C_0607/2),                           0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,               0,              0],
     [            0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             1,            0,            -1,            0,             0,            0,             0,            0,             0,            0, 0, 0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,                            0,                           0,                            0, omega*(C_0607/2 + C_0708/2),                                       0,                                      0,                            0,                           0,                            0,                           0,               0,              0],
     [            0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            1,             0,           -1,             0,            0,             0,            0,             0,            0, 0, 0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,                            0,                           0, -omega*(C_0607/2 + C_0708/2),                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,               0,              0],
     [            0,            0,             0,            0,             0,            0,             1,            0,             0,            0,             0,            0,             0,            0,             1,            0,            -1,            0,             0,            0,             0,            0, 0, 0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,                            0,                           0,                            0,                           0,                                       0, omega*(C_0308/2 + C_0708/2 + C_0809/2),                            0,                           0,                            0,                           0,               0,              0],
     [            0,            0,             0,            0,             0,            0,             0,            1,             0,            0,             0,            0,             0,            0,             0,            1,             0,           -1,             0,            0,             0,            0, 0, 0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,                            0,                           0,                            0,                           0, -omega*(C_0308/2 + C_0708/2 + C_0809/2),                                      0,                            0,                           0,                            0,                           0,               0,              0],
     [            0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             1,            0,            -1,            0,             0,            0, 0, 0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,                            0,                           0,                            0,                           0,                                       0,                                      0,                            0, omega*(C_0809/2 + C_0910/2),                            0,                           0,               0,              0],
     [            0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            1,             0,           -1,             0,            0, 0, 0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,                            0,                           0,                            0,                           0,                                       0,                                      0, -omega*(C_0809/2 + C_0910/2),                           0,                            0,                           0,               0,              0],
     [            0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             1,            0,            -1,            0, 0, 0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,                            0,                           0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0, omega*(C_0910/2 + C_1011/2),               0,              0],
     [            0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            1,             0,           -1, 0, 0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,                            0,                           0,                            0,                           0,                                       0,                                      0,                            0,                           0, -omega*(C_0910/2 + C_1011/2),                           0,               0,              0],
     [            0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             1,            0, 0, 0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,                            0,                           0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,               0, C_1011*omega/2],
     [            0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            1, 0, 0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,                            0,                           0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0, -C_1011*omega/2,              0]]),
     'Fx_ini': Matrix([[-1]]),
     'Fy_ini': Matrix([[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]]),
     'Gx_ini': Matrix([
     [0],
     [0],
     [0],
     [0],
     [0],
     [0],
     [0],
     [0],
     [0],
     [0],
     [0],
     [0],
     [0],
     [0],
     [0],
     [0],
     [0],
     [0],
     [0],
     [0],
     [0],
     [0],
     [0],
     [0],
     [0],
     [0],
     [0],
     [0],
     [0],
     [0],
     [0],
     [0],
     [0],
     [0],
     [0],
     [0],
     [0],
     [0],
     [0],
     [0],
     [0],
     [0],
     [0],
     [0]]),
     'Gy_ini': Matrix([
     [      -R_0102, L_0102*omega,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0, 0, 0,                           -1,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,                            0,                           0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,               0,              0],
     [-L_0102*omega,      -R_0102,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0, 0, 0,                            0,                          -1,                                       0,                                      0,                            0,                           0,                            0,                           0,                            0,                           0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,               0,              0],
     [            0,            0,       -R_0203, L_0203*omega,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0, 0, 0,                            1,                           0,                                      -1,                                      0,                            0,                           0,                            0,                           0,                            0,                           0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,               0,              0],
     [            0,            0, -L_0203*omega,      -R_0203,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0, 0, 0,                            0,                           1,                                       0,                                     -1,                            0,                           0,                            0,                           0,                            0,                           0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,               0,              0],
     [            0,            0,             0,            0,       -R_0304, L_0304*omega,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0, 0, 0,                            0,                           0,                                       1,                                      0,                           -1,                           0,                            0,                           0,                            0,                           0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,               0,              0],
     [            0,            0,             0,            0, -L_0304*omega,      -R_0304,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0, 0, 0,                            0,                           0,                                       0,                                      1,                            0,                          -1,                            0,                           0,                            0,                           0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,               0,              0],
     [            0,            0,             0,            0,             0,            0,       -R_0308, L_0308*omega,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0, 0, 0,                            0,                           0,                                       1,                                      0,                            0,                           0,                            0,                           0,                            0,                           0,                            0,                           0,                                      -1,                                      0,                            0,                           0,                            0,                           0,               0,              0],
     [            0,            0,             0,            0,             0,            0, -L_0308*omega,      -R_0308,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0, 0, 0,                            0,                           0,                                       0,                                      1,                            0,                           0,                            0,                           0,                            0,                           0,                            0,                           0,                                       0,                                     -1,                            0,                           0,                            0,                           0,               0,              0],
     [            0,            0,             0,            0,             0,            0,             0,            0,       -R_0405, L_0405*omega,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0, 0, 0,                            0,                           0,                                       0,                                      0,                            1,                           0,                           -1,                           0,                            0,                           0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,               0,              0],
     [            0,            0,             0,            0,             0,            0,             0,            0, -L_0405*omega,      -R_0405,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0, 0, 0,                            0,                           0,                                       0,                                      0,                            0,                           1,                            0,                          -1,                            0,                           0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,               0,              0],
     [            0,            0,             0,            0,             0,            0,             0,            0,             0,            0,       -R_0506, L_0506*omega,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0, 0, 0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            1,                           0,                           -1,                           0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,               0,              0],
     [            0,            0,             0,            0,             0,            0,             0,            0,             0,            0, -L_0506*omega,      -R_0506,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0, 0, 0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           1,                            0,                          -1,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,               0,              0],
     [            0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,       -R_0607, L_0607*omega,             0,            0,             0,            0,             0,            0,             0,            0, 0, 0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,                            1,                           0,                           -1,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,               0,              0],
     [            0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0, -L_0607*omega,      -R_0607,             0,            0,             0,            0,             0,            0,             0,            0, 0, 0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,                            0,                           1,                            0,                          -1,                                       0,                                      0,                            0,                           0,                            0,                           0,               0,              0],
     [            0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,       -R_0708, L_0708*omega,             0,            0,             0,            0,             0,            0, 0, 0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,                            0,                           0,                            1,                           0,                                      -1,                                      0,                            0,                           0,                            0,                           0,               0,              0],
     [            0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0, -L_0708*omega,      -R_0708,             0,            0,             0,            0,             0,            0, 0, 0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,                            0,                           0,                            0,                           1,                                       0,                                     -1,                            0,                           0,                            0,                           0,               0,              0],
     [            0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,       -R_0809, L_0809*omega,             0,            0,             0,            0, 0, 0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,                            0,                           0,                            0,                           0,                                       1,                                      0,                           -1,                           0,                            0,                           0,               0,              0],
     [            0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0, -L_0809*omega,      -R_0809,             0,            0,             0,            0, 0, 0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,                            0,                           0,                            0,                           0,                                       0,                                      1,                            0,                          -1,                            0,                           0,               0,              0],
     [            0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,       -R_0910, L_0910*omega,             0,            0, 0, 0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,                            0,                           0,                            0,                           0,                                       0,                                      0,                            1,                           0,                           -1,                           0,               0,              0],
     [            0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0, -L_0910*omega,      -R_0910,             0,            0, 0, 0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,                            0,                           0,                            0,                           0,                                       0,                                      0,                            0,                           1,                            0,                          -1,               0,              0],
     [            0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,       -R_1011, L_1011*omega, 0, 0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,                            0,                           0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            1,                           0,              -1,              0],
     [            0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0, -L_1011*omega,      -R_1011, 0, 0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,                            0,                           0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           1,               0,             -1],
     [           -1,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0, 1, 0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,                            0,                           0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,               0,              0],
     [            0,           -1,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0, 0, 1,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,                            0,                           0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,               0,              0],
     [            1,            0,            -1,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0, 0, 0,                            0, omega*(C_0102/2 + C_0203/2),                                       0,                                      0,                            0,                           0,                            0,                           0,                            0,                           0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,               0,              0],
     [            0,            1,             0,           -1,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0, 0, 0, -omega*(C_0102/2 + C_0203/2),                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,                            0,                           0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,               0,              0],
     [            0,            0,             1,            0,            -1,            0,            -1,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0, 0, 0,                            0,                           0,                                       0, omega*(C_0203/2 + C_0304/2 + C_0308/2),                            0,                           0,                            0,                           0,                            0,                           0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,               0,              0],
     [            0,            0,             0,            1,             0,           -1,             0,           -1,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0, 0, 0,                            0,                           0, -omega*(C_0203/2 + C_0304/2 + C_0308/2),                                      0,                            0,                           0,                            0,                           0,                            0,                           0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,               0,              0],
     [            0,            0,             0,            0,             1,            0,             0,            0,            -1,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0, 0, 0,                            0,                           0,                                       0,                                      0,                            0, omega*(C_0304/2 + C_0405/2),                            0,                           0,                            0,                           0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,               0,              0],
     [            0,            0,             0,            0,             0,            1,             0,            0,             0,           -1,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0, 0, 0,                            0,                           0,                                       0,                                      0, -omega*(C_0304/2 + C_0405/2),                           0,                            0,                           0,                            0,                           0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,               0,              0],
     [            0,            0,             0,            0,             0,            0,             0,            0,             1,            0,            -1,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0, 0, 0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0, omega*(C_0405/2 + C_0506/2),                            0,                           0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,               0,              0],
     [            0,            0,             0,            0,             0,            0,             0,            0,             0,            1,             0,           -1,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0, 0, 0,                            0,                           0,                                       0,                                      0,                            0,                           0, -omega*(C_0405/2 + C_0506/2),                           0,                            0,                           0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,               0,              0],
     [            0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             1,            0,            -1,            0,             0,            0,             0,            0,             0,            0,             0,            0, 0, 0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,                            0, omega*(C_0506/2 + C_0607/2),                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,               0,              0],
     [            0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            1,             0,           -1,             0,            0,             0,            0,             0,            0,             0,            0, 0, 0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0, -omega*(C_0506/2 + C_0607/2),                           0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,               0,              0],
     [            0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             1,            0,            -1,            0,             0,            0,             0,            0,             0,            0, 0, 0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,                            0,                           0,                            0, omega*(C_0607/2 + C_0708/2),                                       0,                                      0,                            0,                           0,                            0,                           0,               0,              0],
     [            0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            1,             0,           -1,             0,            0,             0,            0,             0,            0, 0, 0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,                            0,                           0, -omega*(C_0607/2 + C_0708/2),                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,               0,              0],
     [            0,            0,             0,            0,             0,            0,             1,            0,             0,            0,             0,            0,             0,            0,             1,            0,            -1,            0,             0,            0,             0,            0, 0, 0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,                            0,                           0,                            0,                           0,                                       0, omega*(C_0308/2 + C_0708/2 + C_0809/2),                            0,                           0,                            0,                           0,               0,              0],
     [            0,            0,             0,            0,             0,            0,             0,            1,             0,            0,             0,            0,             0,            0,             0,            1,             0,           -1,             0,            0,             0,            0, 0, 0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,                            0,                           0,                            0,                           0, -omega*(C_0308/2 + C_0708/2 + C_0809/2),                                      0,                            0,                           0,                            0,                           0,               0,              0],
     [            0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             1,            0,            -1,            0,             0,            0, 0, 0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,                            0,                           0,                            0,                           0,                                       0,                                      0,                            0, omega*(C_0809/2 + C_0910/2),                            0,                           0,               0,              0],
     [            0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            1,             0,           -1,             0,            0, 0, 0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,                            0,                           0,                            0,                           0,                                       0,                                      0, -omega*(C_0809/2 + C_0910/2),                           0,                            0,                           0,               0,              0],
     [            0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             1,            0,            -1,            0, 0, 0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,                            0,                           0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0, omega*(C_0910/2 + C_1011/2),               0,              0],
     [            0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            1,             0,           -1, 0, 0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,                            0,                           0,                            0,                           0,                                       0,                                      0,                            0,                           0, -omega*(C_0910/2 + C_1011/2),                           0,               0,              0],
     [            0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             1,            0, 0, 0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,                            0,                           0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,               0, C_1011*omega/2],
     [            0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            0,             0,            1, 0, 0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0,                            0,                           0,                            0,                           0,                                       0,                                      0,                            0,                           0,                            0,                           0, -C_1011*omega/2,              0]]),
     'Fu_run': Matrix([[0, 0, 1]]),
     'Gu_run': Matrix([
     [0, 0, 0],
     [0, 0, 0],
     [0, 0, 0],
     [0, 0, 0],
     [0, 0, 0],
     [0, 0, 0],
     [0, 0, 0],
     [0, 0, 0],
     [0, 0, 0],
     [0, 0, 0],
     [0, 0, 0],
     [0, 0, 0],
     [0, 0, 0],
     [0, 0, 0],
     [0, 0, 0],
     [0, 0, 0],
     [0, 0, 0],
     [0, 0, 0],
     [0, 0, 0],
     [0, 0, 0],
     [0, 0, 0],
     [0, 0, 0],
     [0, 0, 0],
     [0, 0, 0],
     [0, 0, 0],
     [0, 0, 0],
     [0, 0, 0],
     [0, 0, 0],
     [0, 0, 0],
     [0, 0, 0],
     [0, 0, 0],
     [0, 0, 0],
     [0, 0, 0],
     [0, 0, 0],
     [0, 0, 0],
     [0, 0, 0],
     [0, 0, 0],
     [0, 0, 0],
     [0, 0, 0],
     [0, 0, 0],
     [0, 0, 0],
     [0, 0, 0],
     [0, 0, 0],
     [0, 0, 0]]),
     'Hx_run': Matrix([[0]]),
     'Hy_run': Matrix([[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]]),
     'Hu_run': Matrix([[0, 0, 0]])}

```python

```

```python

```

```python

```

```python
grid_ode
```

    {'f': [(L_0102*i_l_0102_Q*omega - R_0102*i_l_0102_D + v_01_D - v_02_D)/L_0102,
      (-L_0102*i_l_0102_D*omega - R_0102*i_l_0102_Q + v_01_Q - v_02_Q)/L_0102,
      (L_0203*i_l_0203_Q*omega - R_0203*i_l_0203_D + v_02_D - v_03_D)/L_0203,
      (-L_0203*i_l_0203_D*omega - R_0203*i_l_0203_Q + v_02_Q - v_03_Q)/L_0203,
      (L_0304*i_l_0304_Q*omega - R_0304*i_l_0304_D + v_03_D - v_04_D)/L_0304,
      (-L_0304*i_l_0304_D*omega - R_0304*i_l_0304_Q + v_03_Q - v_04_Q)/L_0304,
      (L_0308*i_l_0308_Q*omega - R_0308*i_l_0308_D + v_03_D - v_08_D)/L_0308,
      (-L_0308*i_l_0308_D*omega - R_0308*i_l_0308_Q + v_03_Q - v_08_Q)/L_0308,
      (L_0405*i_l_0405_Q*omega - R_0405*i_l_0405_D + v_04_D - v_05_D)/L_0405,
      (-L_0405*i_l_0405_D*omega - R_0405*i_l_0405_Q + v_04_Q - v_05_Q)/L_0405,
      (L_0506*i_l_0506_Q*omega - R_0506*i_l_0506_D + v_05_D - v_06_D)/L_0506,
      (-L_0506*i_l_0506_D*omega - R_0506*i_l_0506_Q + v_05_Q - v_06_Q)/L_0506,
      (L_0607*i_l_0607_Q*omega - R_0607*i_l_0607_D + v_06_D - v_07_D)/L_0607,
      (-L_0607*i_l_0607_D*omega - R_0607*i_l_0607_Q + v_06_Q - v_07_Q)/L_0607,
      (L_0708*i_l_0708_Q*omega - R_0708*i_l_0708_D + v_07_D - v_08_D)/L_0708,
      (-L_0708*i_l_0708_D*omega - R_0708*i_l_0708_Q + v_07_Q - v_08_Q)/L_0708,
      (L_0809*i_l_0809_Q*omega - R_0809*i_l_0809_D + v_08_D - v_09_D)/L_0809,
      (-L_0809*i_l_0809_D*omega - R_0809*i_l_0809_Q + v_08_Q - v_09_Q)/L_0809,
      (L_0910*i_l_0910_Q*omega - R_0910*i_l_0910_D + v_09_D - v_10_D)/L_0910,
      (-L_0910*i_l_0910_D*omega - R_0910*i_l_0910_Q + v_09_Q - v_10_Q)/L_0910,
      (L_1011*i_l_1011_Q*omega - R_1011*i_l_1011_D + v_10_D - v_11_D)/L_1011,
      (-L_1011*i_l_1011_D*omega - R_1011*i_l_1011_Q + v_10_Q - v_11_Q)/L_1011,
      (i_02_D + i_l_0102_D - i_l_0203_D + omega*v_02_Q*(C_0102/2 + C_0203/2))/(C_0102/2 + C_0203/2),
      (i_02_Q + i_l_0102_Q - i_l_0203_Q - omega*v_02_D*(C_0102/2 + C_0203/2))/(C_0102/2 + C_0203/2),
      (i_03_D + i_l_0203_D - i_l_0304_D - i_l_0308_D + omega*v_03_Q*(C_0203/2 + C_0304/2 + C_0308/2))/(C_0203/2 + C_0304/2 + C_0308/2),
      (i_03_Q + i_l_0203_Q - i_l_0304_Q - i_l_0308_Q - omega*v_03_D*(C_0203/2 + C_0304/2 + C_0308/2))/(C_0203/2 + C_0304/2 + C_0308/2),
      (i_04_D + i_l_0304_D - i_l_0405_D + omega*v_04_Q*(C_0304/2 + C_0405/2))/(C_0304/2 + C_0405/2),
      (i_04_Q + i_l_0304_Q - i_l_0405_Q - omega*v_04_D*(C_0304/2 + C_0405/2))/(C_0304/2 + C_0405/2),
      (i_05_D + i_l_0405_D - i_l_0506_D + omega*v_05_Q*(C_0405/2 + C_0506/2))/(C_0405/2 + C_0506/2),
      (i_05_Q + i_l_0405_Q - i_l_0506_Q - omega*v_05_D*(C_0405/2 + C_0506/2))/(C_0405/2 + C_0506/2),
      (i_06_D + i_l_0506_D - i_l_0607_D + omega*v_06_Q*(C_0506/2 + C_0607/2))/(C_0506/2 + C_0607/2),
      (i_06_Q + i_l_0506_Q - i_l_0607_Q - omega*v_06_D*(C_0506/2 + C_0607/2))/(C_0506/2 + C_0607/2),
      (i_07_D + i_l_0607_D - i_l_0708_D + omega*v_07_Q*(C_0607/2 + C_0708/2))/(C_0607/2 + C_0708/2),
      (i_07_Q + i_l_0607_Q - i_l_0708_Q - omega*v_07_D*(C_0607/2 + C_0708/2))/(C_0607/2 + C_0708/2),
      (i_08_D + i_l_0308_D + i_l_0708_D - i_l_0809_D + omega*v_08_Q*(C_0308/2 + C_0708/2 + C_0809/2))/(C_0308/2 + C_0708/2 + C_0809/2),
      (i_08_Q + i_l_0308_Q + i_l_0708_Q - i_l_0809_Q - omega*v_08_D*(C_0308/2 + C_0708/2 + C_0809/2))/(C_0308/2 + C_0708/2 + C_0809/2),
      (i_09_D + i_l_0809_D - i_l_0910_D + omega*v_09_Q*(C_0809/2 + C_0910/2))/(C_0809/2 + C_0910/2),
      (i_09_Q + i_l_0809_Q - i_l_0910_Q - omega*v_09_D*(C_0809/2 + C_0910/2))/(C_0809/2 + C_0910/2),
      (i_10_D + i_l_0910_D - i_l_1011_D + omega*v_10_Q*(C_0910/2 + C_1011/2))/(C_0910/2 + C_1011/2),
      (i_10_Q + i_l_0910_Q - i_l_1011_Q - omega*v_10_D*(C_0910/2 + C_1011/2))/(C_0910/2 + C_1011/2),
      2*(C_1011*omega*v_11_Q/2 + i_11_D + i_l_1011_D)/C_1011,
      2*(-C_1011*omega*v_11_D/2 + i_11_Q + i_l_1011_Q)/C_1011],
     'g': [],
     'x': [i_l_0102_D,
      i_l_0102_Q,
      i_l_0203_D,
      i_l_0203_Q,
      i_l_0304_D,
      i_l_0304_Q,
      i_l_0308_D,
      i_l_0308_Q,
      i_l_0405_D,
      i_l_0405_Q,
      i_l_0506_D,
      i_l_0506_Q,
      i_l_0607_D,
      i_l_0607_Q,
      i_l_0708_D,
      i_l_0708_Q,
      i_l_0809_D,
      i_l_0809_Q,
      i_l_0910_D,
      i_l_0910_Q,
      i_l_1011_D,
      i_l_1011_Q,
      v_02_D,
      v_02_Q,
      v_03_D,
      v_03_Q,
      v_04_D,
      v_04_Q,
      v_05_D,
      v_05_Q,
      v_06_D,
      v_06_Q,
      v_07_D,
      v_07_Q,
      v_08_D,
      v_08_Q,
      v_09_D,
      v_09_Q,
      v_10_D,
      v_10_Q,
      v_11_D,
      v_11_Q],
     'y': [],
     'x_list': ['i_l_0102_D',
      'i_l_0102_Q',
      'i_l_0203_D',
      'i_l_0203_Q',
      'i_l_0304_D',
      'i_l_0304_Q',
      'i_l_0308_D',
      'i_l_0308_Q',
      'i_l_0405_D',
      'i_l_0405_Q',
      'i_l_0506_D',
      'i_l_0506_Q',
      'i_l_0607_D',
      'i_l_0607_Q',
      'i_l_0708_D',
      'i_l_0708_Q',
      'i_l_0809_D',
      'i_l_0809_Q',
      'i_l_0910_D',
      'i_l_0910_Q',
      'i_l_1011_D',
      'i_l_1011_Q',
      'v_02_D',
      'v_02_Q',
      'v_03_D',
      'v_03_Q',
      'v_04_D',
      'v_04_Q',
      'v_05_D',
      'v_05_Q',
      'v_06_D',
      'v_06_Q',
      'v_07_D',
      'v_07_Q',
      'v_08_D',
      'v_08_Q',
      'v_09_D',
      'v_09_Q',
      'v_10_D',
      'v_10_Q',
      'v_11_D',
      'v_11_Q'],
     'u': {'v_01_D': 0.0, 'v_01_Q': 16329.931618554521, 'u_dummy': 1.0},
     'params': {'R_0102': 1.41282,
      'L_0102': 0.0064270585739141526,
      'C_0102': 4.2631325817165496e-07,
      'R_0203': 2.21442,
      'L_0203': 0.01007361663003566,
      'C_0203': 6.681931209640832e-07,
      'R_0304': 0.30561,
      'L_0304': 0.001390250258896324,
      'C_0304': 9.22166976896133e-08,
      'R_0308': 0.6513,
      'L_0308': 0.0029628284205987236,
      'C_0308': 1.96527388518848e-07,
      'R_0405': 0.28056000000000003,
      'L_0405': 0.0012762953196425273,
      'C_0405': 8.465795197734993e-08,
      'R_0506': 0.77154,
      'L_0506': 0.0035098121290169496,
      'C_0506': 2.3280936793771228e-07,
      'R_0607': 0.12024,
      'L_0607': 0.0005469837084182259,
      'C_0607': 3.628197941886425e-08,
      'R_0708': 0.8366699999999999,
      'L_0708': 0.0038060949710768213,
      'C_0708': 2.5246210678959706e-07,
      'R_0809': 0.16032,
      'L_0809': 0.0007293116112243012,
      'C_0809': 4.837597255848566e-08,
      'R_0910': 0.38577,
      'L_0910': 0.0017549060645084748,
      'C_0910': 1.1640468396885614e-07,
      'R_1011': 0.16533,
      'L_1011': 0.0007521025990750605,
      'C_1011': 4.988772170093834e-08,
      'i_02_D': 0.0,
      'i_02_Q': 0.0,
      'i_03_D': 0.0,
      'i_03_Q': 0.0,
      'i_04_D': 0.0,
      'i_04_Q': 0.0,
      'i_05_D': 0.0,
      'i_05_Q': 0.0,
      'i_06_D': 0.0,
      'i_06_Q': 0.0,
      'i_07_D': 0.0,
      'i_07_Q': 0.0,
      'i_08_D': 0.0,
      'i_08_Q': 0.0,
      'i_09_D': 0.0,
      'i_09_Q': 0.0,
      'i_10_D': 0.0,
      'i_10_Q': 0.0,
      'i_11_D': 0.0,
      'i_11_Q': 0.0,
      'omega': 314.1592653589793},
     'v_list': [v_01_D,
      v_01_Q,
      v_02_D,
      v_02_Q,
      v_03_D,
      v_03_Q,
      v_04_D,
      v_04_Q,
      v_05_D,
      v_05_Q,
      v_06_D,
      v_06_Q,
      v_07_D,
      v_07_Q,
      v_08_D,
      v_08_Q,
      v_09_D,
      v_09_Q,
      v_10_D,
      v_10_Q,
      v_11_D,
      v_11_Q]}

```python
grid_dae  = grid2dae_dq(data)

grid_formers = data["grid_formers"]
if data['system']["model_type"] == "ode":
    for grid_former in grid_formers:
        bus = grid_former['bus']
        idx_D = grid_dae['x_list'].index(f'v_{bus}_D')
        grid_dae['f'].pop(idx_D)
        grid_dae['x'].pop(idx_D)
        grid_dae['x_list'].pop(idx_D)
        grid_dae['u'].update({f'v_{bus}_D':grid_former["V_phph"]*np.sqrt(2/3)*np.sin(np.deg2rad(grid_former["deg"]))})
        idx_Q = grid_dae['x_list'].index(f'v_{bus}_Q')
        grid_dae['f'].pop(idx_Q)
        grid_dae['x'].pop(idx_Q)
        grid_dae['x_list'].pop(idx_Q)
        grid_dae['u'].update({f'v_{bus}_Q':grid_former["V_phph"]*np.sqrt(2/3)*np.cos(np.deg2rad(grid_former["deg"]))})

        f_list = grid_dae['f']
        x_list = grid_dae['x']

        a = sym.Symbol('a')
        y_list = ['a']
        g_list = [1-a]

if data['system']["model_type"] == "ae":

    a = sym.Symbol('a')
    x_list = ['a']
    f_list = [1-a]

    g_list = grid_dae['g']
    y_list = grid_dae['y']

params_dict = grid_dae['params']
u_run_dict = grid_dae['u']

sys = {'name':f"cigre_eu_mv_{data['system']['model_type']}",
       'params_dict':params_dict,
       'f_list':f_list,
       'g_list':g_list,
       'x_list':x_list,
       'y_ini_list':y_list,
       'y_run_list':y_list,
       'u_run_dict':u_run_dict,
       'u_ini_dict':u_run_dict,
       'h_dict':{'i_R06_d':y_list[0]}
      }

sys = db.system(sys)
db.sys2num(sys)
```

```python
grid_dae
```

    {'f': [(-L_0102*i_l_0102_Q*omega - R_0102*i_l_0102_D + v_01_D - v_02_D)/L_0102,
      (L_0102*i_l_0102_D*omega - R_0102*i_l_0102_Q + v_01_Q - v_02_Q)/L_0102,
      (-L_0203*i_l_0203_Q*omega - R_0203*i_l_0203_D + v_02_D - v_03_D)/L_0203,
      (L_0203*i_l_0203_D*omega - R_0203*i_l_0203_Q + v_02_Q - v_03_Q)/L_0203,
      (-L_0304*i_l_0304_Q*omega - R_0304*i_l_0304_D + v_03_D - v_04_D)/L_0304,
      (L_0304*i_l_0304_D*omega - R_0304*i_l_0304_Q + v_03_Q - v_04_Q)/L_0304,
      (-L_0308*i_l_0308_Q*omega - R_0308*i_l_0308_D + v_03_D - v_08_D)/L_0308,
      (L_0308*i_l_0308_D*omega - R_0308*i_l_0308_Q + v_03_Q - v_08_Q)/L_0308,
      (-L_0405*i_l_0405_Q*omega - R_0405*i_l_0405_D + v_04_D - v_05_D)/L_0405,
      (L_0405*i_l_0405_D*omega - R_0405*i_l_0405_Q + v_04_Q - v_05_Q)/L_0405,
      (-L_0506*i_l_0506_Q*omega - R_0506*i_l_0506_D + v_05_D - v_06_D)/L_0506,
      (L_0506*i_l_0506_D*omega - R_0506*i_l_0506_Q + v_05_Q - v_06_Q)/L_0506,
      (-L_0607*i_l_0607_Q*omega - R_0607*i_l_0607_D + v_06_D - v_07_D)/L_0607,
      (L_0607*i_l_0607_D*omega - R_0607*i_l_0607_Q + v_06_Q - v_07_Q)/L_0607,
      (-L_0708*i_l_0708_Q*omega - R_0708*i_l_0708_D + v_07_D - v_08_D)/L_0708,
      (L_0708*i_l_0708_D*omega - R_0708*i_l_0708_Q + v_07_Q - v_08_Q)/L_0708,
      (-L_0809*i_l_0809_Q*omega - R_0809*i_l_0809_D + v_08_D - v_09_D)/L_0809,
      (L_0809*i_l_0809_D*omega - R_0809*i_l_0809_Q + v_08_Q - v_09_Q)/L_0809,
      (-L_0910*i_l_0910_Q*omega - R_0910*i_l_0910_D + v_09_D - v_10_D)/L_0910,
      (L_0910*i_l_0910_D*omega - R_0910*i_l_0910_Q + v_09_Q - v_10_Q)/L_0910,
      (-L_1011*i_l_1011_Q*omega - R_1011*i_l_1011_D + v_10_D - v_11_D)/L_1011,
      (L_1011*i_l_1011_D*omega - R_1011*i_l_1011_Q + v_10_Q - v_11_Q)/L_1011,
      (i_02_D + i_l_0102_D - i_l_0203_D + omega*v_02_Q*(-C_0102/2 - C_0203/2))/(C_0102/2 + C_0203/2),
      (i_02_Q + i_l_0102_Q - i_l_0203_Q - omega*v_02_D*(-C_0102/2 - C_0203/2))/(C_0102/2 + C_0203/2),
      (i_03_D + i_l_0203_D - i_l_0304_D - i_l_0308_D + omega*v_03_Q*(-C_0203/2 - C_0304/2 - C_0308/2))/(C_0203/2 + C_0304/2 + C_0308/2),
      (i_03_Q + i_l_0203_Q - i_l_0304_Q - i_l_0308_Q - omega*v_03_D*(-C_0203/2 - C_0304/2 - C_0308/2))/(C_0203/2 + C_0304/2 + C_0308/2),
      (i_04_D + i_l_0304_D - i_l_0405_D + omega*v_04_Q*(-C_0304/2 - C_0405/2))/(C_0304/2 + C_0405/2),
      (i_04_Q + i_l_0304_Q - i_l_0405_Q - omega*v_04_D*(-C_0304/2 - C_0405/2))/(C_0304/2 + C_0405/2),
      (i_05_D + i_l_0405_D - i_l_0506_D + omega*v_05_Q*(-C_0405/2 - C_0506/2))/(C_0405/2 + C_0506/2),
      (i_05_Q + i_l_0405_Q - i_l_0506_Q - omega*v_05_D*(-C_0405/2 - C_0506/2))/(C_0405/2 + C_0506/2),
      (i_06_D + i_l_0506_D - i_l_0607_D + omega*v_06_Q*(-C_0506/2 - C_0607/2))/(C_0506/2 + C_0607/2),
      (i_06_Q + i_l_0506_Q - i_l_0607_Q - omega*v_06_D*(-C_0506/2 - C_0607/2))/(C_0506/2 + C_0607/2),
      (i_07_D + i_l_0607_D - i_l_0708_D + omega*v_07_Q*(-C_0607/2 - C_0708/2))/(C_0607/2 + C_0708/2),
      (i_07_Q + i_l_0607_Q - i_l_0708_Q - omega*v_07_D*(-C_0607/2 - C_0708/2))/(C_0607/2 + C_0708/2),
      (i_08_D + i_l_0308_D + i_l_0708_D - i_l_0809_D + omega*v_08_Q*(-C_0308/2 - C_0708/2 - C_0809/2))/(C_0308/2 + C_0708/2 + C_0809/2),
      (i_08_Q + i_l_0308_Q + i_l_0708_Q - i_l_0809_Q - omega*v_08_D*(-C_0308/2 - C_0708/2 - C_0809/2))/(C_0308/2 + C_0708/2 + C_0809/2),
      (i_09_D + i_l_0809_D - i_l_0910_D + omega*v_09_Q*(-C_0809/2 - C_0910/2))/(C_0809/2 + C_0910/2),
      (i_09_Q + i_l_0809_Q - i_l_0910_Q - omega*v_09_D*(-C_0809/2 - C_0910/2))/(C_0809/2 + C_0910/2),
      (i_10_D + i_l_0910_D - i_l_1011_D + omega*v_10_Q*(-C_0910/2 - C_1011/2))/(C_0910/2 + C_1011/2),
      (i_10_Q + i_l_0910_Q - i_l_1011_Q - omega*v_10_D*(-C_0910/2 - C_1011/2))/(C_0910/2 + C_1011/2),
      2*(-C_1011*omega*v_11_Q/2 + i_11_D + i_l_1011_D)/C_1011,
      2*(C_1011*omega*v_11_D/2 + i_11_Q + i_l_1011_Q)/C_1011],
     'g': [],
     'x': [i_l_0102_D,
      i_l_0102_Q,
      i_l_0203_D,
      i_l_0203_Q,
      i_l_0304_D,
      i_l_0304_Q,
      i_l_0308_D,
      i_l_0308_Q,
      i_l_0405_D,
      i_l_0405_Q,
      i_l_0506_D,
      i_l_0506_Q,
      i_l_0607_D,
      i_l_0607_Q,
      i_l_0708_D,
      i_l_0708_Q,
      i_l_0809_D,
      i_l_0809_Q,
      i_l_0910_D,
      i_l_0910_Q,
      i_l_1011_D,
      i_l_1011_Q,
      v_02_D,
      v_02_Q,
      v_03_D,
      v_03_Q,
      v_04_D,
      v_04_Q,
      v_05_D,
      v_05_Q,
      v_06_D,
      v_06_Q,
      v_07_D,
      v_07_Q,
      v_08_D,
      v_08_Q,
      v_09_D,
      v_09_Q,
      v_10_D,
      v_10_Q,
      v_11_D,
      v_11_Q],
     'y': [],
     'x_list': ['i_l_0102_D',
      'i_l_0102_Q',
      'i_l_0203_D',
      'i_l_0203_Q',
      'i_l_0304_D',
      'i_l_0304_Q',
      'i_l_0308_D',
      'i_l_0308_Q',
      'i_l_0405_D',
      'i_l_0405_Q',
      'i_l_0506_D',
      'i_l_0506_Q',
      'i_l_0607_D',
      'i_l_0607_Q',
      'i_l_0708_D',
      'i_l_0708_Q',
      'i_l_0809_D',
      'i_l_0809_Q',
      'i_l_0910_D',
      'i_l_0910_Q',
      'i_l_1011_D',
      'i_l_1011_Q',
      'v_02_D',
      'v_02_Q',
      'v_03_D',
      'v_03_Q',
      'v_04_D',
      'v_04_Q',
      'v_05_D',
      'v_05_Q',
      'v_06_D',
      'v_06_Q',
      'v_07_D',
      'v_07_Q',
      'v_08_D',
      'v_08_Q',
      'v_09_D',
      'v_09_Q',
      'v_10_D',
      'v_10_Q',
      'v_11_D',
      'v_11_Q'],
     'u': {'v_01_D': 0.0, 'v_01_Q': 16329.931618554521},
     'params': {'R_0102': 1.41282,
      'L_0102': 0.0064270585739141526,
      'C_0102': 4.2631325817165496e-07,
      'R_0203': 2.21442,
      'L_0203': 0.01007361663003566,
      'C_0203': 6.681931209640832e-07,
      'R_0304': 0.30561,
      'L_0304': 0.001390250258896324,
      'C_0304': 9.22166976896133e-08,
      'R_0308': 0.6513,
      'L_0308': 0.0029628284205987236,
      'C_0308': 1.96527388518848e-07,
      'R_0405': 0.28056000000000003,
      'L_0405': 0.0012762953196425273,
      'C_0405': 8.465795197734993e-08,
      'R_0506': 0.77154,
      'L_0506': 0.0035098121290169496,
      'C_0506': 2.3280936793771228e-07,
      'R_0607': 0.12024,
      'L_0607': 0.0005469837084182259,
      'C_0607': 3.628197941886425e-08,
      'R_0708': 0.8366699999999999,
      'L_0708': 0.0038060949710768213,
      'C_0708': 2.5246210678959706e-07,
      'R_0809': 0.16032,
      'L_0809': 0.0007293116112243012,
      'C_0809': 4.837597255848566e-08,
      'R_0910': 0.38577,
      'L_0910': 0.0017549060645084748,
      'C_0910': 1.1640468396885614e-07,
      'R_1011': 0.16533,
      'L_1011': 0.0007521025990750605,
      'C_1011': 4.988772170093834e-08,
      'i_02_D': 0.0,
      'i_02_Q': 0.0,
      'i_03_D': 0.0,
      'i_03_Q': 0.0,
      'i_04_D': 0.0,
      'i_04_Q': 0.0,
      'i_05_D': 0.0,
      'i_05_Q': 0.0,
      'i_06_D': 0.0,
      'i_06_Q': 0.0,
      'i_07_D': 0.0,
      'i_07_Q': 0.0,
      'i_08_D': 0.0,
      'i_08_Q': 0.0,
      'i_09_D': 0.0,
      'i_09_Q': 0.0,
      'i_10_D': 0.0,
      'i_10_Q': 0.0,
      'i_11_D': 0.0,
      'i_11_Q': 0.0,
      'omega': 314.1592653589793},
     'v_list': [v_01_D,
      v_01_Q,
      v_02_D,
      v_02_Q,
      v_03_D,
      v_03_Q,
      v_04_D,
      v_04_Q,
      v_05_D,
      v_05_Q,
      v_06_D,
      v_06_Q,
      v_07_D,
      v_07_Q,
      v_08_D,
      v_08_Q,
      v_09_D,
      v_09_Q,
      v_10_D,
      v_10_Q,
      v_11_D,
      v_11_Q]}

```python
sys
```

    {'name': 'cigre_eu_mv',
     'params_dict': {'R_0102': 1.41282,
      'L_0102': 0.0064270585739141526,
      'C_0102': 4.2631325817165496e-07,
      'R_0203': 2.21442,
      'L_0203': 0.01007361663003566,
      'C_0203': 6.681931209640832e-07,
      'R_0304': 0.30561,
      'L_0304': 0.001390250258896324,
      'C_0304': 9.22166976896133e-08,
      'R_0308': 0.6513,
      'L_0308': 0.0029628284205987236,
      'C_0308': 1.96527388518848e-07,
      'R_0405': 0.28056000000000003,
      'L_0405': 0.0012762953196425273,
      'C_0405': 8.465795197734993e-08,
      'R_0506': 0.77154,
      'L_0506': 0.0035098121290169496,
      'C_0506': 2.3280936793771228e-07,
      'R_0607': 0.12024,
      'L_0607': 0.0005469837084182259,
      'C_0607': 3.628197941886425e-08,
      'R_0708': 0.8366699999999999,
      'L_0708': 0.0038060949710768213,
      'C_0708': 2.5246210678959706e-07,
      'R_0809': 0.16032,
      'L_0809': 0.0007293116112243012,
      'C_0809': 4.837597255848566e-08,
      'R_0910': 0.38577,
      'L_0910': 0.0017549060645084748,
      'C_0910': 1.1640468396885614e-07,
      'R_1011': 0.16533,
      'L_1011': 0.0007521025990750605,
      'C_1011': 4.988772170093834e-08,
      'i_02_D': 0.0,
      'i_02_Q': 0.0,
      'i_03_D': 0.0,
      'i_03_Q': 0.0,
      'i_04_D': 0.0,
      'i_04_Q': 0.0,
      'i_05_D': 0.0,
      'i_05_Q': 0.0,
      'i_06_D': 0.0,
      'i_06_Q': 0.0,
      'i_07_D': 0.0,
      'i_07_Q': 0.0,
      'i_08_D': 0.0,
      'i_08_Q': 0.0,
      'i_09_D': 0.0,
      'i_09_Q': 0.0,
      'i_10_D': 0.0,
      'i_10_Q': 0.0,
      'i_11_D': 0.0,
      'i_11_Q': 0.0,
      'omega': 314.1592653589793},
     'f_list': [(-L_0102*i_l_0102_Q*omega - R_0102*i_l_0102_D + v_01_D - v_02_D)/L_0102,
      (L_0102*i_l_0102_D*omega - R_0102*i_l_0102_Q + v_01_Q - v_02_Q)/L_0102,
      (-L_0203*i_l_0203_Q*omega - R_0203*i_l_0203_D + v_02_D - v_03_D)/L_0203,
      (L_0203*i_l_0203_D*omega - R_0203*i_l_0203_Q + v_02_Q - v_03_Q)/L_0203,
      (-L_0304*i_l_0304_Q*omega - R_0304*i_l_0304_D + v_03_D - v_04_D)/L_0304,
      (L_0304*i_l_0304_D*omega - R_0304*i_l_0304_Q + v_03_Q - v_04_Q)/L_0304,
      (-L_0308*i_l_0308_Q*omega - R_0308*i_l_0308_D + v_03_D - v_08_D)/L_0308,
      (L_0308*i_l_0308_D*omega - R_0308*i_l_0308_Q + v_03_Q - v_08_Q)/L_0308,
      (-L_0405*i_l_0405_Q*omega - R_0405*i_l_0405_D + v_04_D - v_05_D)/L_0405,
      (L_0405*i_l_0405_D*omega - R_0405*i_l_0405_Q + v_04_Q - v_05_Q)/L_0405,
      (-L_0506*i_l_0506_Q*omega - R_0506*i_l_0506_D + v_05_D - v_06_D)/L_0506,
      (L_0506*i_l_0506_D*omega - R_0506*i_l_0506_Q + v_05_Q - v_06_Q)/L_0506,
      (-L_0607*i_l_0607_Q*omega - R_0607*i_l_0607_D + v_06_D - v_07_D)/L_0607,
      (L_0607*i_l_0607_D*omega - R_0607*i_l_0607_Q + v_06_Q - v_07_Q)/L_0607,
      (-L_0708*i_l_0708_Q*omega - R_0708*i_l_0708_D + v_07_D - v_08_D)/L_0708,
      (L_0708*i_l_0708_D*omega - R_0708*i_l_0708_Q + v_07_Q - v_08_Q)/L_0708,
      (-L_0809*i_l_0809_Q*omega - R_0809*i_l_0809_D + v_08_D - v_09_D)/L_0809,
      (L_0809*i_l_0809_D*omega - R_0809*i_l_0809_Q + v_08_Q - v_09_Q)/L_0809,
      (-L_0910*i_l_0910_Q*omega - R_0910*i_l_0910_D + v_09_D - v_10_D)/L_0910,
      (L_0910*i_l_0910_D*omega - R_0910*i_l_0910_Q + v_09_Q - v_10_Q)/L_0910,
      (-L_1011*i_l_1011_Q*omega - R_1011*i_l_1011_D + v_10_D - v_11_D)/L_1011,
      (L_1011*i_l_1011_D*omega - R_1011*i_l_1011_Q + v_10_Q - v_11_Q)/L_1011],
     'g_list': [-C_0102*omega*v_01_Q/2 + i_01_D - i_l_0102_D,
      C_0102*omega*v_01_D/2 + i_01_Q - i_l_0102_Q,
      i_02_D + i_l_0102_D - i_l_0203_D + omega*v_02_Q*(-C_0102/2 - C_0203/2),
      i_02_Q + i_l_0102_Q - i_l_0203_Q - omega*v_02_D*(-C_0102/2 - C_0203/2),
      i_03_D + i_l_0203_D - i_l_0304_D - i_l_0308_D + omega*v_03_Q*(-C_0203/2 - C_0304/2 - C_0308/2),
      i_03_Q + i_l_0203_Q - i_l_0304_Q - i_l_0308_Q - omega*v_03_D*(-C_0203/2 - C_0304/2 - C_0308/2),
      i_04_D + i_l_0304_D - i_l_0405_D + omega*v_04_Q*(-C_0304/2 - C_0405/2),
      i_04_Q + i_l_0304_Q - i_l_0405_Q - omega*v_04_D*(-C_0304/2 - C_0405/2),
      i_05_D + i_l_0405_D - i_l_0506_D + omega*v_05_Q*(-C_0405/2 - C_0506/2),
      i_05_Q + i_l_0405_Q - i_l_0506_Q - omega*v_05_D*(-C_0405/2 - C_0506/2),
      i_06_D + i_l_0506_D - i_l_0607_D + omega*v_06_Q*(-C_0506/2 - C_0607/2),
      i_06_Q + i_l_0506_Q - i_l_0607_Q - omega*v_06_D*(-C_0506/2 - C_0607/2),
      i_07_D + i_l_0607_D - i_l_0708_D + omega*v_07_Q*(-C_0607/2 - C_0708/2),
      i_07_Q + i_l_0607_Q - i_l_0708_Q - omega*v_07_D*(-C_0607/2 - C_0708/2),
      i_08_D + i_l_0308_D + i_l_0708_D - i_l_0809_D + omega*v_08_Q*(-C_0308/2 - C_0708/2 - C_0809/2),
      i_08_Q + i_l_0308_Q + i_l_0708_Q - i_l_0809_Q - omega*v_08_D*(-C_0308/2 - C_0708/2 - C_0809/2),
      i_09_D + i_l_0809_D - i_l_0910_D + omega*v_09_Q*(-C_0809/2 - C_0910/2),
      i_09_Q + i_l_0809_Q - i_l_0910_Q - omega*v_09_D*(-C_0809/2 - C_0910/2),
      i_10_D + i_l_0910_D - i_l_1011_D + omega*v_10_Q*(-C_0910/2 - C_1011/2),
      i_10_Q + i_l_0910_Q - i_l_1011_Q - omega*v_10_D*(-C_0910/2 - C_1011/2),
      -C_1011*omega*v_11_Q/2 + i_11_D + i_l_1011_D,
      C_1011*omega*v_11_D/2 + i_11_Q + i_l_1011_Q],
     'x_list': [i_l_0102_D,
      i_l_0102_Q,
      i_l_0203_D,
      i_l_0203_Q,
      i_l_0304_D,
      i_l_0304_Q,
      i_l_0308_D,
      i_l_0308_Q,
      i_l_0405_D,
      i_l_0405_Q,
      i_l_0506_D,
      i_l_0506_Q,
      i_l_0607_D,
      i_l_0607_Q,
      i_l_0708_D,
      i_l_0708_Q,
      i_l_0809_D,
      i_l_0809_Q,
      i_l_0910_D,
      i_l_0910_Q,
      i_l_1011_D,
      i_l_1011_Q],
     'y_ini_list': [i_01_D,
      i_01_Q,
      v_02_D,
      v_02_Q,
      v_03_D,
      v_03_Q,
      v_04_D,
      v_04_Q,
      v_05_D,
      v_05_Q,
      v_06_D,
      v_06_Q,
      v_07_D,
      v_07_Q,
      v_08_D,
      v_08_Q,
      v_09_D,
      v_09_Q,
      v_10_D,
      v_10_Q,
      v_11_D,
      v_11_Q],
     'y_run_list': [i_01_D,
      i_01_Q,
      v_02_D,
      v_02_Q,
      v_03_D,
      v_03_Q,
      v_04_D,
      v_04_Q,
      v_05_D,
      v_05_Q,
      v_06_D,
      v_06_Q,
      v_07_D,
      v_07_Q,
      v_08_D,
      v_08_Q,
      v_09_D,
      v_09_Q,
      v_10_D,
      v_10_Q,
      v_11_D,
      v_11_Q],
     'u_run_dict': {'v_01_D': 0.0, 'v_01_Q': 16329.931618554521},
     'u_ini_dict': {'v_01_D': 0.0, 'v_01_Q': 16329.931618554521},
     'h_dict': {'i_R06_d': i_01_D},
     'f': Matrix([
     [(-L_0102*i_l_0102_Q*omega - R_0102*i_l_0102_D + v_01_D - v_02_D)/L_0102],
     [ (L_0102*i_l_0102_D*omega - R_0102*i_l_0102_Q + v_01_Q - v_02_Q)/L_0102],
     [(-L_0203*i_l_0203_Q*omega - R_0203*i_l_0203_D + v_02_D - v_03_D)/L_0203],
     [ (L_0203*i_l_0203_D*omega - R_0203*i_l_0203_Q + v_02_Q - v_03_Q)/L_0203],
     [(-L_0304*i_l_0304_Q*omega - R_0304*i_l_0304_D + v_03_D - v_04_D)/L_0304],
     [ (L_0304*i_l_0304_D*omega - R_0304*i_l_0304_Q + v_03_Q - v_04_Q)/L_0304],
     [(-L_0308*i_l_0308_Q*omega - R_0308*i_l_0308_D + v_03_D - v_08_D)/L_0308],
     [ (L_0308*i_l_0308_D*omega - R_0308*i_l_0308_Q + v_03_Q - v_08_Q)/L_0308],
     [(-L_0405*i_l_0405_Q*omega - R_0405*i_l_0405_D + v_04_D - v_05_D)/L_0405],
     [ (L_0405*i_l_0405_D*omega - R_0405*i_l_0405_Q + v_04_Q - v_05_Q)/L_0405],
     [(-L_0506*i_l_0506_Q*omega - R_0506*i_l_0506_D + v_05_D - v_06_D)/L_0506],
     [ (L_0506*i_l_0506_D*omega - R_0506*i_l_0506_Q + v_05_Q - v_06_Q)/L_0506],
     [(-L_0607*i_l_0607_Q*omega - R_0607*i_l_0607_D + v_06_D - v_07_D)/L_0607],
     [ (L_0607*i_l_0607_D*omega - R_0607*i_l_0607_Q + v_06_Q - v_07_Q)/L_0607],
     [(-L_0708*i_l_0708_Q*omega - R_0708*i_l_0708_D + v_07_D - v_08_D)/L_0708],
     [ (L_0708*i_l_0708_D*omega - R_0708*i_l_0708_Q + v_07_Q - v_08_Q)/L_0708],
     [(-L_0809*i_l_0809_Q*omega - R_0809*i_l_0809_D + v_08_D - v_09_D)/L_0809],
     [ (L_0809*i_l_0809_D*omega - R_0809*i_l_0809_Q + v_08_Q - v_09_Q)/L_0809],
     [(-L_0910*i_l_0910_Q*omega - R_0910*i_l_0910_D + v_09_D - v_10_D)/L_0910],
     [ (L_0910*i_l_0910_D*omega - R_0910*i_l_0910_Q + v_09_Q - v_10_Q)/L_0910],
     [(-L_1011*i_l_1011_Q*omega - R_1011*i_l_1011_D + v_10_D - v_11_D)/L_1011],
     [ (L_1011*i_l_1011_D*omega - R_1011*i_l_1011_Q + v_10_Q - v_11_Q)/L_1011]]),
     'g': Matrix([
     [                                                  -C_0102*omega*v_01_Q/2 + i_01_D - i_l_0102_D],
     [                                                   C_0102*omega*v_01_D/2 + i_01_Q - i_l_0102_Q],
     [                        i_02_D + i_l_0102_D - i_l_0203_D + omega*v_02_Q*(-C_0102/2 - C_0203/2)],
     [                        i_02_Q + i_l_0102_Q - i_l_0203_Q - omega*v_02_D*(-C_0102/2 - C_0203/2)],
     [i_03_D + i_l_0203_D - i_l_0304_D - i_l_0308_D + omega*v_03_Q*(-C_0203/2 - C_0304/2 - C_0308/2)],
     [i_03_Q + i_l_0203_Q - i_l_0304_Q - i_l_0308_Q - omega*v_03_D*(-C_0203/2 - C_0304/2 - C_0308/2)],
     [                        i_04_D + i_l_0304_D - i_l_0405_D + omega*v_04_Q*(-C_0304/2 - C_0405/2)],
     [                        i_04_Q + i_l_0304_Q - i_l_0405_Q - omega*v_04_D*(-C_0304/2 - C_0405/2)],
     [                        i_05_D + i_l_0405_D - i_l_0506_D + omega*v_05_Q*(-C_0405/2 - C_0506/2)],
     [                        i_05_Q + i_l_0405_Q - i_l_0506_Q - omega*v_05_D*(-C_0405/2 - C_0506/2)],
     [                        i_06_D + i_l_0506_D - i_l_0607_D + omega*v_06_Q*(-C_0506/2 - C_0607/2)],
     [                        i_06_Q + i_l_0506_Q - i_l_0607_Q - omega*v_06_D*(-C_0506/2 - C_0607/2)],
     [                        i_07_D + i_l_0607_D - i_l_0708_D + omega*v_07_Q*(-C_0607/2 - C_0708/2)],
     [                        i_07_Q + i_l_0607_Q - i_l_0708_Q - omega*v_07_D*(-C_0607/2 - C_0708/2)],
     [i_08_D + i_l_0308_D + i_l_0708_D - i_l_0809_D + omega*v_08_Q*(-C_0308/2 - C_0708/2 - C_0809/2)],
     [i_08_Q + i_l_0308_Q + i_l_0708_Q - i_l_0809_Q - omega*v_08_D*(-C_0308/2 - C_0708/2 - C_0809/2)],
     [                        i_09_D + i_l_0809_D - i_l_0910_D + omega*v_09_Q*(-C_0809/2 - C_0910/2)],
     [                        i_09_Q + i_l_0809_Q - i_l_0910_Q - omega*v_09_D*(-C_0809/2 - C_0910/2)],
     [                        i_10_D + i_l_0910_D - i_l_1011_D + omega*v_10_Q*(-C_0910/2 - C_1011/2)],
     [                        i_10_Q + i_l_0910_Q - i_l_1011_Q - omega*v_10_D*(-C_0910/2 - C_1011/2)],
     [                                                  -C_1011*omega*v_11_Q/2 + i_11_D + i_l_1011_D],
     [                                                   C_1011*omega*v_11_D/2 + i_11_Q + i_l_1011_Q]]),
     'x': Matrix([
     [i_l_0102_D],
     [i_l_0102_Q],
     [i_l_0203_D],
     [i_l_0203_Q],
     [i_l_0304_D],
     [i_l_0304_Q],
     [i_l_0308_D],
     [i_l_0308_Q],
     [i_l_0405_D],
     [i_l_0405_Q],
     [i_l_0506_D],
     [i_l_0506_Q],
     [i_l_0607_D],
     [i_l_0607_Q],
     [i_l_0708_D],
     [i_l_0708_Q],
     [i_l_0809_D],
     [i_l_0809_Q],
     [i_l_0910_D],
     [i_l_0910_Q],
     [i_l_1011_D],
     [i_l_1011_Q]]),
     'y_ini': Matrix([
     [i_01_D],
     [i_01_Q],
     [v_02_D],
     [v_02_Q],
     [v_03_D],
     [v_03_Q],
     [v_04_D],
     [v_04_Q],
     [v_05_D],
     [v_05_Q],
     [v_06_D],
     [v_06_Q],
     [v_07_D],
     [v_07_Q],
     [v_08_D],
     [v_08_Q],
     [v_09_D],
     [v_09_Q],
     [v_10_D],
     [v_10_Q],
     [v_11_D],
     [v_11_Q]]),
     'y_run': Matrix([
     [i_01_D],
     [i_01_Q],
     [v_02_D],
     [v_02_Q],
     [v_03_D],
     [v_03_Q],
     [v_04_D],
     [v_04_Q],
     [v_05_D],
     [v_05_Q],
     [v_06_D],
     [v_06_Q],
     [v_07_D],
     [v_07_Q],
     [v_08_D],
     [v_08_Q],
     [v_09_D],
     [v_09_Q],
     [v_10_D],
     [v_10_Q],
     [v_11_D],
     [v_11_Q]]),
     'u_ini': Matrix([
     [v_01_D],
     [v_01_Q]]),
     'u_run': Matrix([
     [v_01_D],
     [v_01_Q]]),
     'h': Matrix([[i_01_D]]),
     'Fx_run': Matrix([
     [-R_0102/L_0102,         -omega,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0],
     [         omega, -R_0102/L_0102,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0],
     [             0,              0, -R_0203/L_0203,         -omega,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0],
     [             0,              0,          omega, -R_0203/L_0203,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0],
     [             0,              0,              0,              0, -R_0304/L_0304,         -omega,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0],
     [             0,              0,              0,              0,          omega, -R_0304/L_0304,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0],
     [             0,              0,              0,              0,              0,              0, -R_0308/L_0308,         -omega,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0],
     [             0,              0,              0,              0,              0,              0,          omega, -R_0308/L_0308,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0],
     [             0,              0,              0,              0,              0,              0,              0,              0, -R_0405/L_0405,         -omega,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0],
     [             0,              0,              0,              0,              0,              0,              0,              0,          omega, -R_0405/L_0405,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0],
     [             0,              0,              0,              0,              0,              0,              0,              0,              0,              0, -R_0506/L_0506,         -omega,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0],
     [             0,              0,              0,              0,              0,              0,              0,              0,              0,              0,          omega, -R_0506/L_0506,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0],
     [             0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0, -R_0607/L_0607,         -omega,              0,              0,              0,              0,              0,              0,              0,              0],
     [             0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,          omega, -R_0607/L_0607,              0,              0,              0,              0,              0,              0,              0,              0],
     [             0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0, -R_0708/L_0708,         -omega,              0,              0,              0,              0,              0,              0],
     [             0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,          omega, -R_0708/L_0708,              0,              0,              0,              0,              0,              0],
     [             0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0, -R_0809/L_0809,         -omega,              0,              0,              0,              0],
     [             0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,          omega, -R_0809/L_0809,              0,              0,              0,              0],
     [             0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0, -R_0910/L_0910,         -omega,              0,              0],
     [             0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,          omega, -R_0910/L_0910,              0,              0],
     [             0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0, -R_1011/L_1011,         -omega],
     [             0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,          omega, -R_1011/L_1011]]),
     'Fy_run': Matrix([
     [0, 0, -1/L_0102,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0],
     [0, 0,         0, -1/L_0102,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0],
     [0, 0,  1/L_0203,         0, -1/L_0203,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0],
     [0, 0,         0,  1/L_0203,         0, -1/L_0203,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0],
     [0, 0,         0,         0,  1/L_0304,         0, -1/L_0304,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0],
     [0, 0,         0,         0,         0,  1/L_0304,         0, -1/L_0304,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0],
     [0, 0,         0,         0,  1/L_0308,         0,         0,         0,         0,         0,         0,         0,         0,         0, -1/L_0308,         0,         0,         0,         0,         0,         0,         0],
     [0, 0,         0,         0,         0,  1/L_0308,         0,         0,         0,         0,         0,         0,         0,         0,         0, -1/L_0308,         0,         0,         0,         0,         0,         0],
     [0, 0,         0,         0,         0,         0,  1/L_0405,         0, -1/L_0405,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0],
     [0, 0,         0,         0,         0,         0,         0,  1/L_0405,         0, -1/L_0405,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0],
     [0, 0,         0,         0,         0,         0,         0,         0,  1/L_0506,         0, -1/L_0506,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0],
     [0, 0,         0,         0,         0,         0,         0,         0,         0,  1/L_0506,         0, -1/L_0506,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0],
     [0, 0,         0,         0,         0,         0,         0,         0,         0,         0,  1/L_0607,         0, -1/L_0607,         0,         0,         0,         0,         0,         0,         0,         0,         0],
     [0, 0,         0,         0,         0,         0,         0,         0,         0,         0,         0,  1/L_0607,         0, -1/L_0607,         0,         0,         0,         0,         0,         0,         0,         0],
     [0, 0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,  1/L_0708,         0, -1/L_0708,         0,         0,         0,         0,         0,         0,         0],
     [0, 0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,  1/L_0708,         0, -1/L_0708,         0,         0,         0,         0,         0,         0],
     [0, 0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,  1/L_0809,         0, -1/L_0809,         0,         0,         0,         0,         0],
     [0, 0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,  1/L_0809,         0, -1/L_0809,         0,         0,         0,         0],
     [0, 0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,  1/L_0910,         0, -1/L_0910,         0,         0,         0],
     [0, 0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,  1/L_0910,         0, -1/L_0910,         0,         0],
     [0, 0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,  1/L_1011,         0, -1/L_1011,         0],
     [0, 0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,  1/L_1011,         0, -1/L_1011]]),
     'Gx_run': Matrix([
     [-1,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0],
     [ 0, -1,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0],
     [ 1,  0, -1,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0],
     [ 0,  1,  0, -1,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0],
     [ 0,  0,  1,  0, -1,  0, -1,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0],
     [ 0,  0,  0,  1,  0, -1,  0, -1,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0],
     [ 0,  0,  0,  0,  1,  0,  0,  0, -1,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0],
     [ 0,  0,  0,  0,  0,  1,  0,  0,  0, -1,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0],
     [ 0,  0,  0,  0,  0,  0,  0,  0,  1,  0, -1,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0],
     [ 0,  0,  0,  0,  0,  0,  0,  0,  0,  1,  0, -1,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0],
     [ 0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  1,  0, -1,  0,  0,  0,  0,  0,  0,  0,  0,  0],
     [ 0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  1,  0, -1,  0,  0,  0,  0,  0,  0,  0,  0],
     [ 0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  1,  0, -1,  0,  0,  0,  0,  0,  0,  0],
     [ 0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  1,  0, -1,  0,  0,  0,  0,  0,  0],
     [ 0,  0,  0,  0,  0,  0,  1,  0,  0,  0,  0,  0,  0,  0,  1,  0, -1,  0,  0,  0,  0,  0],
     [ 0,  0,  0,  0,  0,  0,  0,  1,  0,  0,  0,  0,  0,  0,  0,  1,  0, -1,  0,  0,  0,  0],
     [ 0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  1,  0, -1,  0,  0,  0],
     [ 0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  1,  0, -1,  0,  0],
     [ 0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  1,  0, -1,  0],
     [ 0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  1,  0, -1],
     [ 0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  1,  0],
     [ 0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  1]]),
     'Gy_run': Matrix([
     [1, 0,                             0,                            0,                                        0,                                       0,                             0,                            0,                             0,                            0,                             0,                            0,                             0,                            0,                                        0,                                       0,                             0,                            0,                             0,                            0,              0,               0],
     [0, 1,                             0,                            0,                                        0,                                       0,                             0,                            0,                             0,                            0,                             0,                            0,                             0,                            0,                                        0,                                       0,                             0,                            0,                             0,                            0,              0,               0],
     [0, 0,                             0, omega*(-C_0102/2 - C_0203/2),                                        0,                                       0,                             0,                            0,                             0,                            0,                             0,                            0,                             0,                            0,                                        0,                                       0,                             0,                            0,                             0,                            0,              0,               0],
     [0, 0, -omega*(-C_0102/2 - C_0203/2),                            0,                                        0,                                       0,                             0,                            0,                             0,                            0,                             0,                            0,                             0,                            0,                                        0,                                       0,                             0,                            0,                             0,                            0,              0,               0],
     [0, 0,                             0,                            0,                                        0, omega*(-C_0203/2 - C_0304/2 - C_0308/2),                             0,                            0,                             0,                            0,                             0,                            0,                             0,                            0,                                        0,                                       0,                             0,                            0,                             0,                            0,              0,               0],
     [0, 0,                             0,                            0, -omega*(-C_0203/2 - C_0304/2 - C_0308/2),                                       0,                             0,                            0,                             0,                            0,                             0,                            0,                             0,                            0,                                        0,                                       0,                             0,                            0,                             0,                            0,              0,               0],
     [0, 0,                             0,                            0,                                        0,                                       0,                             0, omega*(-C_0304/2 - C_0405/2),                             0,                            0,                             0,                            0,                             0,                            0,                                        0,                                       0,                             0,                            0,                             0,                            0,              0,               0],
     [0, 0,                             0,                            0,                                        0,                                       0, -omega*(-C_0304/2 - C_0405/2),                            0,                             0,                            0,                             0,                            0,                             0,                            0,                                        0,                                       0,                             0,                            0,                             0,                            0,              0,               0],
     [0, 0,                             0,                            0,                                        0,                                       0,                             0,                            0,                             0, omega*(-C_0405/2 - C_0506/2),                             0,                            0,                             0,                            0,                                        0,                                       0,                             0,                            0,                             0,                            0,              0,               0],
     [0, 0,                             0,                            0,                                        0,                                       0,                             0,                            0, -omega*(-C_0405/2 - C_0506/2),                            0,                             0,                            0,                             0,                            0,                                        0,                                       0,                             0,                            0,                             0,                            0,              0,               0],
     [0, 0,                             0,                            0,                                        0,                                       0,                             0,                            0,                             0,                            0,                             0, omega*(-C_0506/2 - C_0607/2),                             0,                            0,                                        0,                                       0,                             0,                            0,                             0,                            0,              0,               0],
     [0, 0,                             0,                            0,                                        0,                                       0,                             0,                            0,                             0,                            0, -omega*(-C_0506/2 - C_0607/2),                            0,                             0,                            0,                                        0,                                       0,                             0,                            0,                             0,                            0,              0,               0],
     [0, 0,                             0,                            0,                                        0,                                       0,                             0,                            0,                             0,                            0,                             0,                            0,                             0, omega*(-C_0607/2 - C_0708/2),                                        0,                                       0,                             0,                            0,                             0,                            0,              0,               0],
     [0, 0,                             0,                            0,                                        0,                                       0,                             0,                            0,                             0,                            0,                             0,                            0, -omega*(-C_0607/2 - C_0708/2),                            0,                                        0,                                       0,                             0,                            0,                             0,                            0,              0,               0],
     [0, 0,                             0,                            0,                                        0,                                       0,                             0,                            0,                             0,                            0,                             0,                            0,                             0,                            0,                                        0, omega*(-C_0308/2 - C_0708/2 - C_0809/2),                             0,                            0,                             0,                            0,              0,               0],
     [0, 0,                             0,                            0,                                        0,                                       0,                             0,                            0,                             0,                            0,                             0,                            0,                             0,                            0, -omega*(-C_0308/2 - C_0708/2 - C_0809/2),                                       0,                             0,                            0,                             0,                            0,              0,               0],
     [0, 0,                             0,                            0,                                        0,                                       0,                             0,                            0,                             0,                            0,                             0,                            0,                             0,                            0,                                        0,                                       0,                             0, omega*(-C_0809/2 - C_0910/2),                             0,                            0,              0,               0],
     [0, 0,                             0,                            0,                                        0,                                       0,                             0,                            0,                             0,                            0,                             0,                            0,                             0,                            0,                                        0,                                       0, -omega*(-C_0809/2 - C_0910/2),                            0,                             0,                            0,              0,               0],
     [0, 0,                             0,                            0,                                        0,                                       0,                             0,                            0,                             0,                            0,                             0,                            0,                             0,                            0,                                        0,                                       0,                             0,                            0,                             0, omega*(-C_0910/2 - C_1011/2),              0,               0],
     [0, 0,                             0,                            0,                                        0,                                       0,                             0,                            0,                             0,                            0,                             0,                            0,                             0,                            0,                                        0,                                       0,                             0,                            0, -omega*(-C_0910/2 - C_1011/2),                            0,              0,               0],
     [0, 0,                             0,                            0,                                        0,                                       0,                             0,                            0,                             0,                            0,                             0,                            0,                             0,                            0,                                        0,                                       0,                             0,                            0,                             0,                            0,              0, -C_1011*omega/2],
     [0, 0,                             0,                            0,                                        0,                                       0,                             0,                            0,                             0,                            0,                             0,                            0,                             0,                            0,                                        0,                                       0,                             0,                            0,                             0,                            0, C_1011*omega/2,               0]]),
     'Fx_ini': Matrix([
     [-R_0102/L_0102,         -omega,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0],
     [         omega, -R_0102/L_0102,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0],
     [             0,              0, -R_0203/L_0203,         -omega,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0],
     [             0,              0,          omega, -R_0203/L_0203,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0],
     [             0,              0,              0,              0, -R_0304/L_0304,         -omega,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0],
     [             0,              0,              0,              0,          omega, -R_0304/L_0304,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0],
     [             0,              0,              0,              0,              0,              0, -R_0308/L_0308,         -omega,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0],
     [             0,              0,              0,              0,              0,              0,          omega, -R_0308/L_0308,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0],
     [             0,              0,              0,              0,              0,              0,              0,              0, -R_0405/L_0405,         -omega,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0],
     [             0,              0,              0,              0,              0,              0,              0,              0,          omega, -R_0405/L_0405,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0],
     [             0,              0,              0,              0,              0,              0,              0,              0,              0,              0, -R_0506/L_0506,         -omega,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0],
     [             0,              0,              0,              0,              0,              0,              0,              0,              0,              0,          omega, -R_0506/L_0506,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0],
     [             0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0, -R_0607/L_0607,         -omega,              0,              0,              0,              0,              0,              0,              0,              0],
     [             0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,          omega, -R_0607/L_0607,              0,              0,              0,              0,              0,              0,              0,              0],
     [             0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0, -R_0708/L_0708,         -omega,              0,              0,              0,              0,              0,              0],
     [             0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,          omega, -R_0708/L_0708,              0,              0,              0,              0,              0,              0],
     [             0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0, -R_0809/L_0809,         -omega,              0,              0,              0,              0],
     [             0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,          omega, -R_0809/L_0809,              0,              0,              0,              0],
     [             0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0, -R_0910/L_0910,         -omega,              0,              0],
     [             0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,          omega, -R_0910/L_0910,              0,              0],
     [             0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0, -R_1011/L_1011,         -omega],
     [             0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,              0,          omega, -R_1011/L_1011]]),
     'Fy_ini': Matrix([
     [0, 0, -1/L_0102,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0],
     [0, 0,         0, -1/L_0102,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0],
     [0, 0,  1/L_0203,         0, -1/L_0203,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0],
     [0, 0,         0,  1/L_0203,         0, -1/L_0203,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0],
     [0, 0,         0,         0,  1/L_0304,         0, -1/L_0304,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0],
     [0, 0,         0,         0,         0,  1/L_0304,         0, -1/L_0304,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0],
     [0, 0,         0,         0,  1/L_0308,         0,         0,         0,         0,         0,         0,         0,         0,         0, -1/L_0308,         0,         0,         0,         0,         0,         0,         0],
     [0, 0,         0,         0,         0,  1/L_0308,         0,         0,         0,         0,         0,         0,         0,         0,         0, -1/L_0308,         0,         0,         0,         0,         0,         0],
     [0, 0,         0,         0,         0,         0,  1/L_0405,         0, -1/L_0405,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0],
     [0, 0,         0,         0,         0,         0,         0,  1/L_0405,         0, -1/L_0405,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0],
     [0, 0,         0,         0,         0,         0,         0,         0,  1/L_0506,         0, -1/L_0506,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0],
     [0, 0,         0,         0,         0,         0,         0,         0,         0,  1/L_0506,         0, -1/L_0506,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0],
     [0, 0,         0,         0,         0,         0,         0,         0,         0,         0,  1/L_0607,         0, -1/L_0607,         0,         0,         0,         0,         0,         0,         0,         0,         0],
     [0, 0,         0,         0,         0,         0,         0,         0,         0,         0,         0,  1/L_0607,         0, -1/L_0607,         0,         0,         0,         0,         0,         0,         0,         0],
     [0, 0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,  1/L_0708,         0, -1/L_0708,         0,         0,         0,         0,         0,         0,         0],
     [0, 0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,  1/L_0708,         0, -1/L_0708,         0,         0,         0,         0,         0,         0],
     [0, 0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,  1/L_0809,         0, -1/L_0809,         0,         0,         0,         0,         0],
     [0, 0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,  1/L_0809,         0, -1/L_0809,         0,         0,         0,         0],
     [0, 0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,  1/L_0910,         0, -1/L_0910,         0,         0,         0],
     [0, 0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,  1/L_0910,         0, -1/L_0910,         0,         0],
     [0, 0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,  1/L_1011,         0, -1/L_1011,         0],
     [0, 0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,         0,  1/L_1011,         0, -1/L_1011]]),
     'Gx_ini': Matrix([
     [-1,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0],
     [ 0, -1,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0],
     [ 1,  0, -1,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0],
     [ 0,  1,  0, -1,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0],
     [ 0,  0,  1,  0, -1,  0, -1,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0],
     [ 0,  0,  0,  1,  0, -1,  0, -1,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0],
     [ 0,  0,  0,  0,  1,  0,  0,  0, -1,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0],
     [ 0,  0,  0,  0,  0,  1,  0,  0,  0, -1,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0],
     [ 0,  0,  0,  0,  0,  0,  0,  0,  1,  0, -1,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0],
     [ 0,  0,  0,  0,  0,  0,  0,  0,  0,  1,  0, -1,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0],
     [ 0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  1,  0, -1,  0,  0,  0,  0,  0,  0,  0,  0,  0],
     [ 0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  1,  0, -1,  0,  0,  0,  0,  0,  0,  0,  0],
     [ 0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  1,  0, -1,  0,  0,  0,  0,  0,  0,  0],
     [ 0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  1,  0, -1,  0,  0,  0,  0,  0,  0],
     [ 0,  0,  0,  0,  0,  0,  1,  0,  0,  0,  0,  0,  0,  0,  1,  0, -1,  0,  0,  0,  0,  0],
     [ 0,  0,  0,  0,  0,  0,  0,  1,  0,  0,  0,  0,  0,  0,  0,  1,  0, -1,  0,  0,  0,  0],
     [ 0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  1,  0, -1,  0,  0,  0],
     [ 0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  1,  0, -1,  0,  0],
     [ 0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  1,  0, -1,  0],
     [ 0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  1,  0, -1],
     [ 0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  1,  0],
     [ 0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  1]]),
     'Gy_ini': Matrix([
     [1, 0,                             0,                            0,                                        0,                                       0,                             0,                            0,                             0,                            0,                             0,                            0,                             0,                            0,                                        0,                                       0,                             0,                            0,                             0,                            0,              0,               0],
     [0, 1,                             0,                            0,                                        0,                                       0,                             0,                            0,                             0,                            0,                             0,                            0,                             0,                            0,                                        0,                                       0,                             0,                            0,                             0,                            0,              0,               0],
     [0, 0,                             0, omega*(-C_0102/2 - C_0203/2),                                        0,                                       0,                             0,                            0,                             0,                            0,                             0,                            0,                             0,                            0,                                        0,                                       0,                             0,                            0,                             0,                            0,              0,               0],
     [0, 0, -omega*(-C_0102/2 - C_0203/2),                            0,                                        0,                                       0,                             0,                            0,                             0,                            0,                             0,                            0,                             0,                            0,                                        0,                                       0,                             0,                            0,                             0,                            0,              0,               0],
     [0, 0,                             0,                            0,                                        0, omega*(-C_0203/2 - C_0304/2 - C_0308/2),                             0,                            0,                             0,                            0,                             0,                            0,                             0,                            0,                                        0,                                       0,                             0,                            0,                             0,                            0,              0,               0],
     [0, 0,                             0,                            0, -omega*(-C_0203/2 - C_0304/2 - C_0308/2),                                       0,                             0,                            0,                             0,                            0,                             0,                            0,                             0,                            0,                                        0,                                       0,                             0,                            0,                             0,                            0,              0,               0],
     [0, 0,                             0,                            0,                                        0,                                       0,                             0, omega*(-C_0304/2 - C_0405/2),                             0,                            0,                             0,                            0,                             0,                            0,                                        0,                                       0,                             0,                            0,                             0,                            0,              0,               0],
     [0, 0,                             0,                            0,                                        0,                                       0, -omega*(-C_0304/2 - C_0405/2),                            0,                             0,                            0,                             0,                            0,                             0,                            0,                                        0,                                       0,                             0,                            0,                             0,                            0,              0,               0],
     [0, 0,                             0,                            0,                                        0,                                       0,                             0,                            0,                             0, omega*(-C_0405/2 - C_0506/2),                             0,                            0,                             0,                            0,                                        0,                                       0,                             0,                            0,                             0,                            0,              0,               0],
     [0, 0,                             0,                            0,                                        0,                                       0,                             0,                            0, -omega*(-C_0405/2 - C_0506/2),                            0,                             0,                            0,                             0,                            0,                                        0,                                       0,                             0,                            0,                             0,                            0,              0,               0],
     [0, 0,                             0,                            0,                                        0,                                       0,                             0,                            0,                             0,                            0,                             0, omega*(-C_0506/2 - C_0607/2),                             0,                            0,                                        0,                                       0,                             0,                            0,                             0,                            0,              0,               0],
     [0, 0,                             0,                            0,                                        0,                                       0,                             0,                            0,                             0,                            0, -omega*(-C_0506/2 - C_0607/2),                            0,                             0,                            0,                                        0,                                       0,                             0,                            0,                             0,                            0,              0,               0],
     [0, 0,                             0,                            0,                                        0,                                       0,                             0,                            0,                             0,                            0,                             0,                            0,                             0, omega*(-C_0607/2 - C_0708/2),                                        0,                                       0,                             0,                            0,                             0,                            0,              0,               0],
     [0, 0,                             0,                            0,                                        0,                                       0,                             0,                            0,                             0,                            0,                             0,                            0, -omega*(-C_0607/2 - C_0708/2),                            0,                                        0,                                       0,                             0,                            0,                             0,                            0,              0,               0],
     [0, 0,                             0,                            0,                                        0,                                       0,                             0,                            0,                             0,                            0,                             0,                            0,                             0,                            0,                                        0, omega*(-C_0308/2 - C_0708/2 - C_0809/2),                             0,                            0,                             0,                            0,              0,               0],
     [0, 0,                             0,                            0,                                        0,                                       0,                             0,                            0,                             0,                            0,                             0,                            0,                             0,                            0, -omega*(-C_0308/2 - C_0708/2 - C_0809/2),                                       0,                             0,                            0,                             0,                            0,              0,               0],
     [0, 0,                             0,                            0,                                        0,                                       0,                             0,                            0,                             0,                            0,                             0,                            0,                             0,                            0,                                        0,                                       0,                             0, omega*(-C_0809/2 - C_0910/2),                             0,                            0,              0,               0],
     [0, 0,                             0,                            0,                                        0,                                       0,                             0,                            0,                             0,                            0,                             0,                            0,                             0,                            0,                                        0,                                       0, -omega*(-C_0809/2 - C_0910/2),                            0,                             0,                            0,              0,               0],
     [0, 0,                             0,                            0,                                        0,                                       0,                             0,                            0,                             0,                            0,                             0,                            0,                             0,                            0,                                        0,                                       0,                             0,                            0,                             0, omega*(-C_0910/2 - C_1011/2),              0,               0],
     [0, 0,                             0,                            0,                                        0,                                       0,                             0,                            0,                             0,                            0,                             0,                            0,                             0,                            0,                                        0,                                       0,                             0,                            0, -omega*(-C_0910/2 - C_1011/2),                            0,              0,               0],
     [0, 0,                             0,                            0,                                        0,                                       0,                             0,                            0,                             0,                            0,                             0,                            0,                             0,                            0,                                        0,                                       0,                             0,                            0,                             0,                            0,              0, -C_1011*omega/2],
     [0, 0,                             0,                            0,                                        0,                                       0,                             0,                            0,                             0,                            0,                             0,                            0,                             0,                            0,                                        0,                                       0,                             0,                            0,                             0,                            0, C_1011*omega/2,               0]]),
     'Fu_run': Matrix([
     [0, 0],
     [0, 0],
     [0, 0],
     [0, 0],
     [0, 0],
     [0, 0],
     [0, 0],
     [0, 0],
     [0, 0],
     [0, 0],
     [0, 0],
     [0, 0],
     [0, 0],
     [0, 0],
     [0, 0],
     [0, 0],
     [0, 0],
     [0, 0],
     [0, 0],
     [0, 0],
     [0, 0],
     [0, 0]]),
     'Gu_run': Matrix([
     [0, 0],
     [0, 0],
     [0, 0],
     [0, 0],
     [0, 0],
     [0, 0],
     [0, 0],
     [0, 0],
     [0, 0],
     [0, 0],
     [0, 0],
     [0, 0],
     [0, 0],
     [0, 0],
     [0, 0],
     [0, 0],
     [0, 0],
     [0, 0],
     [0, 0],
     [0, 0],
     [0, 0],
     [0, 0]]),
     'Hx_run': Matrix([[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]]),
     'Hy_run': Matrix([[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]]),
     'Hu_run': Matrix([[0, 0]])}

```python

```

```python

```