Opened 4 years ago

Last modified 3 years ago

#6102 new defect

IDAS sensitivity yields absurd results

Reported by: gerrer@… 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)

basic_model.zip (8.8 KB ) - added by gerrer@… 4 years ago.
the model employed and corresponding result file

Download all attachments as: .zip

Change History (5)

by gerrer@…, 4 years ago

Attachment: basic_model.zip added

the model employed and corresponding result file

comment:1 by Francesco Casella, 4 years ago

Milestone: Future1.17.0
Priority: highblocker

comment:2 by Francesco Casella, 4 years ago

Milestone: 1.17.01.18.0

Rescheduled to 1.18.0

comment:3 by Francesco Casella, 3 years ago

Milestone: 1.18.0

Ticket retargeted after milestone closed

comment:4 by Francesco Casella, 3 years ago

Milestone: 1.19.0

1.18.0 blocker tickets moved to 1.19.0

Note: See TracTickets for help on using tickets.