Data2Dynamics/d2d

Error with Matlab 2020a

bernhardsteiert opened this issue · 4 comments

Hi D2D-team,

I'm getting the following error when trying to run the template model (created using arCreateProject, vanilla - no changes):

Data 2 Dynamics Software
(arFramework3, def-version 3, c-version code_190517c)
Website & bug report: http://www.data2dynamics.org
Copyright 2016 D2D Development Team. All rights reserved.

Clearing old D2D mex files from memory  [OK]
loading model #1, from file Models/model_template.def...

loading data #1, from file Data/data_template.def...
loading data #1, from file Data/data_template.xls...
*	            Prot1_wb -> not assigned
*	            Prot2_wb -> not assigned

calculating model m1, model_template...
calculating condition m1 c1, model_template...
 -> writing condition m1 c1, model_template...

ans =

    '[0; exp(-t*p[3]); -t*exp(-t*p[3])*p[2]; 0; 0]'

Error using arCompileAll>ccode2 (line 2993)
Failure attempting to replace derivatives in

Error in arCompileAll>writeCcode (line 2351)
    cstr = ccode2(cond_data.sym.dfudp(:), matlab_version);

Error in arCompileAll>arWriteCFilesCondition (line 1754)
            writeCcode(fid, matlab_version, condition, 'fsu');

Error in arCompileAll (line 332)
                    arWriteCFilesCondition(fid_ode, matlab_version, config, model,
                    condition_sym, m, c, timedebug);

Error in Setup (line 4)
arCompileAll;

I guess this has something to do with how Matlab 2020a handles symbolic expressions. Anybody else facing this issue?
Let me know if you need further details.

Cheers,
Bernhard

I also faced problems with Matlab2020a but I didn't have time to check this.

Mohammad Hossein Yamani mhyamani@fdm.uni-freiburg.de will check D2D in Matlab 2020a

Hi Clemens and Mohammad,
How is your progress? Is there anything I can do to support you? Unfortunately, I only have access to 2020a, which makes it difficult to compare side-by-side.
Best,
Bernhard

Hi Bernhard
Please check pull request #153