Hi @HoshangMustafa
Regarding your last questions.
ad1
In post 31 you have written that moment My from beam 12 acts counterclockwise. When we check moment balance in node 4, this moment (My from beam 12) is applied to node 4 in clockwise direction.
ad2
A. Moments applied to the node 4 from beam 12 (My), beam 9 (Mx), and also missing moment part 0.76, acting clockwise (in respect to node 4).
B. Since in statically stable structure sum of bending moments in each node, in each plane is 0, then moments from point A. are balanced by Mz moment difference in column part (difference between column part below node 4 and column part above node 4). This moment difference (equivalent moment in column) acts counterclockwise.
C. Sum of moments from point A (acting clockwise) and moments from point 2 (acting counterclockwise) gives 0 as expected for statically stable structure.
If anything remains not clear for you, or in your opinion, moments summation in node 4 should be different, please let me know. I would appreciate if you present your version of moments summation, then we can discuss it.

Krzysztof Wasik