Opened 4 years ago
Last modified 3 years ago
#6102 new defect
IDAS sensitivity yields absurd results
Reported by: | Owned by: | Karim Adbdelhak | |
---|---|---|---|
Priority: | blocker | Milestone: | 1.19.0 |
Component: | Backend | Version: | |
Keywords: | Cc: |
Description
I run forward sensitivity analysis using IDA (https://openmodelica.org/doc/OpenModelicaUsersGuide/latest/parametersensitivity.html) on the following model:
model basic
parameter Real mu = 2;
parameter Real lambda = -1;
Real y(start=2, fixed=true);
equation
der(y) = mu*y + lambda;
end basic;
Analytic solution of this model is :
y(t) = (mu + lambda/mu)*exp(mu*t) - lambda/mu.
Analytic sensitivities are thus:
s_lambda(t) = (exp(mu*t) - 1/mu (--> increases with time)
s_mu(t) = (big nonzero thing)*exp(mu*t) + ctt (--> increases with time)
But sensitivity computation yields:
$Sensitivities.lambda.y = [0.0, ..., 0.0]
$Sensitivities.mu.y = [0.0, ..., 0.0].
Attachments (1)
Change History (5)
by , 4 years ago
Attachment: | basic_model.zip added |
---|
comment:1 by , 4 years ago
Milestone: | Future → 1.17.0 |
---|---|
Priority: | high → blocker |
the model employed and corresponding result file