I am using STAN to conduct MFA, SFA and EFA therefore I have created 5 layers good, three substances and energy. I was wondering why when I run the model for the 5 layers I get an error message that the calculation was canceled after 100 iterations. However, when I run the model of each level separately (that is switching off the other layers) the calculations work fine and the model runs. Is that normal to happen if I run each level separately instead of all together?
These errors are normaly related to division by zero problems caused by e.g. a concentration equation (c = m_substance / m_good) if the unknown mass flow on the layer of goods (m_good) converges against zero during the iterative calculation procedure.