<br><font size=2 face="sans-serif">Matteo,</font>
<br>
<br><font size=2 face="sans-serif">I've had similar problems (well, they
still haunt me from time to time) and the only thing that I may add to
what has been said is that, depending of how your system works, closed
loops (especially when involves flowrate control) may be a problem. Usually
what helps me is to add in the loop an input/output delayer. Basically
what it does is to hold the output from a component for one time step.
It ends up "opening" the loop without major impacts into what
I am calculating.</font>
<br>
<br>
<br><font size=2 face="sans-serif">Lucas Lira </font><pre>**********************************************************************
The information in this e-mail is confidential and may be legally privileged. It may not represent the views of Scottish and Southern Energy Group. It is intended solely for the addressees. Access to this e-mail by anyone else is unauthorised. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. Any unauthorised recipient should advise the sender immediately of the error in transmission. Unless specifically stated otherwise, this email (or any attachments to it) is not an offer capable of acceptance or acceptance of an offer and it does not form part of a binding contractual agreement. Scottish Hydro Electric, Southern Electric, SWALEC, Atlantic Electric and Gas, S+S and SSE Power Distribution are trading names of the Scottish and Southern Energy Group. 
Scottish and Southern Energy plc, Inveralmond House, 200 Dunkeld Road, Perth, Perthshire, PH1 3AQ. Registered in Scotland Number. 117119
**********************************************************************
</pre>