Opened 10 years ago

Closed 9 years ago

Last modified 7 years ago

#3091 closed defect (fixed)

Nonlinear equation system of size 1

Reported by: Lennart Ochel Owned by: Vitalij Ruge
Priority: high Milestone: 1.11.0
Component: Backend Version: trunk
Keywords: Cc:

Description

Nonlinear equation system of size 1 do not show up in the backend as nonlinear equation.

model A
  Real x;
equation
  sin(x) = time;
end A;

Currently, this equation get solved using a nonlinear solver. However, the backenddaeinfo-dump shows the following:

Notification: Model statistics after passing the front-end and creating the data structures used by the back-end:
 * Number of equations: 1
 * Number of variables: 1
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 1
 * Number of states: 0 ('+d=stateselection' for list of states)
 * Number of discrete variables: 0 ('+d=discreteinfo' for list of discrete vars)
 * Number of discrete states: 0 ('+d=discreteinfo' for list of discrete states)
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (1):
 * Single equations (assignments): 1
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (linear and non-linear blocks): 0
 * Torn equation systems: 0
 * Mixed (continuous/discrete) equation systems: 0
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 1
 * Number of states: 0 ('+d=stateselection' for list of states)
 * Number of discrete variables: 0 ('+d=discreteinfo' for list of discrete vars)
 * Number of discrete states: 0 ('+d=discreteinfo' for list of discrete states)
 * Top-level inputs: 0
Notification: Strong component statistics for simulation (1):
 * Single equations (assignments): 1
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (linear and non-linear blocks): 0
 * Torn equation systems: 0
 * Mixed (continuous/discrete) equation systems: 0

Change History (7)

comment:1 by Vitalij Ruge, 10 years ago

fixed in r24150 for simulation,
fixed in r24157 for initialization.

as test case we have already the print in Tearing9...

comment:2 by Lennart Ochel, 10 years ago

Owner: changed from Willi Braun to Vitalij Ruge
Status: newassigned

comment:3 by Lennart Ochel, 10 years ago

Resolution: fixed
Status: assignedclosed

comment:4 by Vitalij Ruge, 10 years ago

Resolution: fixed
Status: closedreopened

I will partial revert r24150,
there some side effect, if we manipulate(too soon) single equation, which are in the initialization equation system of size bigger 1.

comment:5 by Vitalij Ruge, 10 years ago

side effect = e.g. other tearing

comment:6 by Vitalij Ruge, 9 years ago

Resolution: fixed
Status: reopenedclosed

fixed with PR549

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

Milestone: Future1.11.0
Note: See TracTickets for help on using tickets.