Hello Mattia,
I understand that you are getting an “empty sym” when trying to solve a system of equations.
For a system of equations of “n” variables to have a solution there should be “n” linearly independent equations. In your case there are 17 variables, so you need 17 independent equations. Even though there are 17 equations corresponding to 17 variables, the absence of a solution suggests the presence of two or more dependent equations within the generated set. It can be thought of as solving for point of intersection of two parallel lines in 2D space. There are 2 variables, 2 equations but there exists no solution.
If the matrices “Ke1”, “Ke2”, “Ke3”, “Ke4” are replaced with random valued 6x6 matrices, it can be observed that there exists a solution for the system of equations. This suggest that the matrices “Ke1”, “Ke2”, “Ke3”, “Ke4” are generating some linearly dependent equations. Ensuring that this does not happen by correcting these matrices might give a solution to the system of equations.