Did you go over all the parameters and inputs required for type 12a? I am missing a connection between the weather generator and type 12a, for example...
If you do not connect the ambient temperature input (nr 3) to type 12A , you would get a straight line on the heating load output.
Also, chosing correct parameter values for type 12a can be a bit tricky, if you have varying supply temperatures (in reality, you will not have a constant effectiveness):
1) You'll need to set parameter 4 (pump flow rate) to the maximal (ON) flow rate for your application.
2)You'll have to set the 2th parameter (loss coefficent) and the 6th parameter (effectivity of HX) to a realistic value . e.g. If you want to be able to transfer 36000kJ/hr (10kW), when its -10°C outside, when your supply temperature is e.g. 56 (56°C-20°C == 36°C) you'll have to set #6 at 360000/36 = 1000 kJ/hr/K , and #2 at 36000/30 == 1200 kJ/hr/K
Also, controller type 2B is quite complex. Do take a look to the tutorial examples in the example library to make sure its connected properly! PS: Why don't you use a simple equation block to calculate the control action for next timestep?
I recommend you to check your results with other STWH calculating softwares.
For instance, http://kalkener.com/en/ calculates the main components of this type of facilities, its annual energy production and key performance and profitable indicators (Net Present Value -NPV- and Internal Rate of Return -IRR-), once the user has introduced the hot water energy consumption (in a daily, weekly and monthly basis), the location of the installation (through latitude and longitude) and the rest of variables (Supplied water average temperature, shadows, etc.).
This online software has been included into the following specialized websites (herein you will find attached their links):
BUILD-UP: The European portal for energy efficiency in buildings
and
The International Building Performance Simulation Association (IBPSA) IBPSA-USA