Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#3477 closed defect (fixed)

Problem with simplified algorithms in certain cases

Reported by: Lennart Ochel Owned by: Lennart Ochel
Priority: high Milestone: 1.9.4
Component: Backend Version:
Keywords: Cc:

Description

Some simplifications on algorithms may have the result that output variables disappear. This is probably one of the simplest test cases to show the issue:

model M
  Real x;
algorithm 
  if initial() then
    x := cos(time);
  end if;
end M;

This is the error dump:

[Compiler/SimCode/SimCodeUtil.mo:5122:7-5122:164:writable] Error: Internal error Inverse Algorithm needs to be solved for {x} in
algorithm
Discrete variables are not supported yet.
[Compiler/SimCode/SimCodeUtil.mo:5127:7-5127:88:writable] Error: Internal error function createSingleAlgorithmCode failed
[Compiler/SimCode/SimCodeUtil.mo:456:5-456:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]

Change History (4)

comment:1 by Lennart Ochel, 9 years ago

Status: newaccepted

comment:2 by Lennart Ochel, 9 years ago

Resolution: fixed
Status: acceptedclosed

Fixed in 1f2a73.
Test added in 535508.

comment:3 by Martin Sjölund, 9 years ago

Milestone: 1.9.41.9.4-1.9.x

Milestone renamed

comment:4 by Martin Sjölund, 9 years ago

Milestone: 1.9.4-1.9.x1.9.4

Milestone renamed

Note: See TracTickets for help on using tickets.