Opened 9 years ago

Closed 9 years ago

Last modified 8 years ago

#3477 closed defect (fixed)

Problem with simplified algorithms in certain cases

Reported by: lochel Owned by: lochel
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 Changed 9 years ago by lochel

  • Status changed from new to accepted

comment:2 Changed 9 years ago by lochel

  • Resolution set to fixed
  • Status changed from accepted to closed

Fixed in 1f2a73.
Test added in 535508.

comment:3 Changed 8 years ago by sjoelund.se

  • Milestone changed from 1.9.4 to 1.9.4-1.9.x

Milestone renamed

comment:4 Changed 8 years ago by sjoelund.se

  • Milestone changed from 1.9.4-1.9.x to 1.9.4

Milestone renamed

Note: See TracTickets for help on using tickets.