Opened 11 years ago

Closed 10 years ago

#2537 closed defect (fixed)

Differentiation of homotopy

Reported by: Adrian Pop Owned by: Willi Braun
Priority: high Milestone: 1.9.2
Component: Backend Version: trunk
Keywords: Cc: Francesco Casella, Lennart Ochel

Description

See the attached model.

loadFile("cis.mo"); getErrorString();
simulate(ThermoPower.Examples.CISE.CISESim120501); getErrorString();

gives:

[c:\\bin\\cygwin\\home\\adrpo\\dev\\OpenModelicaNoChanges\\build\\bin\\b\\ThermoPower\\cis.mo:1631:7-1631:195:writable] Error: Internal error 
Differentiate.differentiateEquationTime failed for Plant.Downcomer.h[1] = homotopy(Plant.Drum.afd * Plant.Drum.hf + (1.0 - Plant.Drum.afd) * Plant.Drum.hl, Plant.Drum.afd * Plant.Drum.hf + (1.0 - Plant.Drum.afd) * Plant.Drum.hl)


Error: Internal error - IndexReduction.pantelidesIndexReduction1 failed! Use +d=bltdump to get more information.
Error: Internal error - IndexReduction.pantelidesIndexReduction failed!
Error: Internal error Transformation Module PFPlusExt index Reduction Method Pantelides failed!

Attachments (1)

cis.mo (692.1 KB ) - added by Adrian Pop 11 years ago.

Download all attachments as: .zip

Change History (9)

by Adrian Pop, 11 years ago

Attachment: cis.mo added

comment:1 by Lennart Ochel, 11 years ago

Cc: Lennart Ochel added

comment:2 by Adrian Pop, 11 years ago

Owner: changed from probably noone to Willi Braun
Status: newassigned

comment:3 by Adrian Pop, 11 years ago

I guess we need to do:

diff(homotopy(e1, e2)) -> homotopy(diff(e1), diff(e2))

The questions is what should we do after that.
Do we have any support for homotopy?

comment:4 by Adrian Pop, 11 years ago

Resolution: fixed
Status: assignedclosed

Fixed in r18671. Seems we do handle homotopy in initialization.
Added test also as now the model ThermoPower.Examples.CISE.CISESim120501 simulates.
No check of results yet.

Last edited 11 years ago by Adrian Pop (previous) (diff)

comment:5 by Adrian Pop, 11 years ago

Resolution: fixed
Status: closedreopened

Damn, this fix breaks Modelica.Fluid.Examples.HeatingSystem and 2 AVM models.
I will comment it out for now and maybe Willi can come up with a better fix.

comment:6 by Adrian Pop, 11 years ago

Status: reopenedassigned

Hm, the problem was that we had homotopy(e, e).
I now commented out:

diff(homotopy(e1, e2)) -> homotopy(diff(e1), diff(e2))

and added simplification:

homotopy(e, e) -> e

which hopefully is OK.
I'll keep this ticked open even if the given model works.

comment:7 by Martin Sjölund, 10 years ago

Milestone: 1.9.11.9.2

This ticket was not closed for 1.9.1, which has now been released. It was batch modified for milestone 1.9.2 (but maybe an empty milestone was more appropriate; feel free to change it).

comment:8 by Francesco Casella, 10 years ago

Resolution: fixed
Status: assignedclosed

The original test case now works successfully. As there was no further feedback in the last 12 months, I guess we can close the ticket.

Note: See TracTickets for help on using tickets.