Diagnosing simfunction acceleration failure
1 view (last 30 days)
I get the following error when trying to accelerate a simfunction in R2019b. Is there a way I could specifically identify the culprit of this error?
Warning: Following error occurred while testing a MEX file created for SimBiology acceleration: Accelerated results for initialAssignment rules did not match the unaccelerated results. Check that initialAssignment rule expressions and any user-defined functions are valid and supported for code generation as described in the Language, Function, and Object Support in MATLAB documentation. If this problem persists, contact Technical Support. Click here for more information.
Arthur Goldsipe on 3 Dec 2019
There is currently no publicly documented way to get additional debugging information. These situations have historically been rare and unique enough that Technical Support and the SimBiology development team has worked one-on-one with users to diagnose the problem. We are continually thinking about ways to make debugging easier. In fact, this message that you're seeing is one that I added in R2019b to catch a problem with generated code that I thought users were unlikely to encounter. I'm glad that added the check! I'll reach out to you via email to see if we can find a way to diagnose the problem, and I'll see if that leads to any ideas for for additional diagnostic information I could easily provide.