Closed johhell closed 2 years ago
I am sorry, this should not have happened.
All the test models in ModiaBase, ModiaLang, next Modia3D version run and from the information above, I have no idea, where the error could be.
Can you send a complete model that runs under the previous version and does not longer run in the newest versions?
The first time I observed the problem was ~ Dec 20 2021. I tried a new ModiaLang
, but switched back to the old version. Maybe a modification you did short before is the reason.
I think the problem has to do with variables without init/start
values.
See below:
In the past a missing start-value was automatically set to 0.0
. Due to the missing value now, the values are ordered not correct in the m.x_init
This warning now results in an error.
Warning message from getSortedAndSolvedAST for model SMtest:
Init/start values missing in the model for some ODE states.
Involved variables:
T1.X.ixRe
T1.X.ixIm
synUnit.SM.phiKR
synUnit.SM.PsiIm
synUnit.SM.Psi1Im
define start/init
for all variables
At the moment I'm using variables without explicit definition.
In the new Modia version (0.9.0), the start/init implementation has changed. In particular missing start/init values should now be correctly handled. There is some chance that your reported error is fixed.
description
after upgrading to Julia 1.7 and using the latest version of
ModiaLang
, I have some problems with init-values in the simulationmodel. In a previous version ofModiaLang
I used (before mid Dec 2021) everything was fine. I can find the defined init-value in the table, but the position is not correct.used versions
git clone from 2022-02-21
definition of init-values in model
@instantiateModel --> correct
println(ModiaBase.get_x_table(instModel.equationInfo.x_info))
states in simulation --> error