The return value of this function must match the problem size
Can anyone explain what this error message means - I have an OdeSolve block which is giving me this error, even though it is a copy and paste of another solve block which works, but with different initial conditions.
I have a system of DAE's which I need to solve wrt t (i.e. time). For background, it represents a leadscrew mechanism driven by a torsion spring, with friction and flexure of several components. I have set this up in a solve block, using OdeSolve and it works. However, the solution becomes unstable if I extend the solution interval to be too log (greater than 0.9 seconds). In attempting to solve this I have tried eliminating variables (didn't help), changing tol, the number points etc. Now I am attempting to splice two solve blocks together, by feeding the end conditions from one into the initial conditions for the next. The first solve block would solve the first time period (e.g. 0 to 0.8s) and the second would solve the second. The second is an exact copy of the first, but with the initial conditions of the second set to match the end conditions of the first. And I get "The return value of this function must match the problem size". I tried changing all the variable names (same error).
Can someone tell me what this error message means (it doesn't appear in the help files)?

