Opened 11 years ago

Closed 10 years ago

#2695 closed defect (fixed)

can't translate models with interdependence

Reported by: e.da-silva@… Owned by: Martin Sjölund
Priority: normal Milestone: 1.9.1
Component: Frontend Version: 1.9.0Beta
Keywords: Record, array, code generation Cc: Adrian Pop, Martin Sjölund, c.schulze@…

Description

can't translate a model containing arrays and records if there is interdependence between the elements of the model. Example tested in rev. 20609

Attachments (1)

TestTILMediaOSMC.zip (3.7 KB ) - added by DaSilva 11 years ago.
TestGas_error can not be translated

Download all attachments as: .zip

Change History (7)

by DaSilva, 11 years ago

Attachment: TestTILMediaOSMC.zip added

TestGas_error can not be translated

comment:1 by Lennart Ochel, 11 years ago

Cc: Adrian Pop Martin Sjölund added
Component: Code GenerationFrontend
Owner: changed from Lennart Ochel to somebody

I get the following error message (using r21215):

"[/#2695/TestTILMediaOSMC/TestGas_error.mo:5:3-5:59:writable] Error: Variable gas_pT1.gasType.nc not found in scope TestTILMediaOSMC.TestGas_error.
Error: Error occurred while flattening model TestTILMediaOSMC.TestGas_error
"

comment:2 by anonymous, 10 years ago

I tested the revision number 22133, and the error message is the same. It is not possible to translate any model with an interdependence of array of parameters or variables.

comment:3 by Adrian Pop, 10 years ago

Owner: changed from somebody to Adrian Pop
Status: newaccepted

comment:4 by c.schulze@…, 10 years ago

Last week we tested the nightly build and this bug still causes problems. We'd be happy if someone could take care this.

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

Owner: changed from Adrian Pop to Martin Sjölund
Status: acceptedassigned

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

Resolution: fixed
Status: assignedclosed

This is fixed by Adrian's larger changes in beta3/beta4 as well as the small fix in r22699.

Note: See TracTickets for help on using tickets.