Skip to content

Commit

Permalink
Expected output after collapsing some array crefs
Browse files Browse the repository at this point in the history
  • Loading branch information
sjoelund authored and OpenModelica-Hudson committed Jul 21, 2017
1 parent cccc5bd commit 160b2cd
Show file tree
Hide file tree
Showing 4 changed files with 605 additions and 1 deletion.
200 changes: 200 additions & 0 deletions openmodelica/debugDumps/lateInline.mos
Expand Up @@ -2052,6 +2052,104 @@ buildModel(testOptdaedump); getErrorString();
// ========================================
//
//
//
// ########################################
// post-optimization module collapseArrayExpressions (initialization)
// ########################################
//
//
// unknown partition
// ========================================
//
// Variables (2)
// ========================================
// 1: y:VARIABLE() type: Real
// 2: x:VARIABLE() type: Real
//
//
// Equations (2, 2)
// ========================================
// 1/1 (1): y = exp(time ^ 3.0) + x [binding]
// 2/2 (1): x = time ^ 3.0 + exp(time ^ 3.0) [binding]
//
//
// Simple Equations (0, 0)
// ========================================
//
//
// State Sets
// ========================================
//
//
// Matching
// ========================================
// 2 variables and equations
// var 1 is solved in eqn 1
// var 2 is solved in eqn 2
//
//
// StrongComponents
// ========================================
// {2:2}
// {1:1}
//
//
//
// BackendDAEType: initialization
//
//
// Known variables only depending on parameters and constants - globalKnownVars (0)
// ========================================
//
//
// Known variables only depending on states and inputs - localKnownVars (0)
// ========================================
//
//
// External Objects (0)
// ========================================
//
//
// Classes of External Objects (0)
// ========================================
//
//
// Alias Variables (0)
// ========================================
//
//
// Simple Shared Equations (0, 0)
// ========================================
//
//
// Initial Equations (0, 0)
// ========================================
//
//
// Zero Crossings (0)
// ========================================
//
//
// Relations (0)
// ========================================
//
//
// Time Events (0)
// ========================================
//
//
// Constraints (0)
// ========================================
//
//
// Base partitions (0)
// ========================================
//
//
// Sub partitions (0)
// ========================================
//
//
// post-optimization done.
//
// ########################################
Expand Down Expand Up @@ -3783,6 +3881,108 @@ buildModel(testOptdaedump); getErrorString();
// ========================================
//
//
//
// ########################################
// post-optimization module collapseArrayExpressions (simulation)
// ########################################
//
//
// unspecified partition
// ========================================
//
// Variables (3)
// ========================================
// 1: y:VARIABLE() type: Real
// 2: x:VARIABLE() type: Real
// 3: $cse1:VARIABLE() type: Real unreplaceable
//
//
// Equations (3, 3)
// ========================================
// 1/1 (1): x = time ^ 3.0 + $cse1 [binding]
// 2/2 (1): y = $cse1 + x [binding]
// 3/3 (1): $cse1 = exp(time ^ 3.0) [unknown]
//
//
// Simple Equations (0, 0)
// ========================================
//
//
// State Sets
// ========================================
//
//
// Matching
// ========================================
// 3 variables and equations
// var 1 is solved in eqn 2
// var 2 is solved in eqn 1
// var 3 is solved in eqn 3
//
//
// StrongComponents
// ========================================
// {3:3}
// {1:2}
// {2:1}
//
//
//
// BackendDAEType: simulation
//
//
// Known variables only depending on parameters and constants - globalKnownVars (0)
// ========================================
//
//
// Known variables only depending on states and inputs - localKnownVars (0)
// ========================================
//
//
// External Objects (0)
// ========================================
//
//
// Classes of External Objects (0)
// ========================================
//
//
// Alias Variables (0)
// ========================================
//
//
// Simple Shared Equations (0, 0)
// ========================================
//
//
// Initial Equations (0, 0)
// ========================================
//
//
// Zero Crossings (0)
// ========================================
//
//
// Relations (0)
// ========================================
//
//
// Time Events (0)
// ========================================
//
//
// Constraints (0)
// ========================================
//
//
// Base partitions (0)
// ========================================
//
//
// Sub partitions (0)
// ========================================
//
//
// post-optimization done.
// {"testOptdaedump","testOptdaedump_init.xml"}
// ""
Expand Down
102 changes: 102 additions & 0 deletions openmodelica/debugDumps/optSimpleSolveDAEdump.mos
Expand Up @@ -926,6 +926,108 @@ buildModel(testOptdaedump); getErrorString();
// ========================================
//
//
//
// ########################################
// post-optimization module collapseArrayExpressions (initialization)
// ########################################
//
//
// unknown partition
// ========================================
//
// Variables (3)
// ========================================
// 1: z:VARIABLE() type: Real
// 2: y:VARIABLE() type: Real
// 3: x:VARIABLE() type: Real
//
//
// Equations (3, 3)
// ========================================
// 1/1 (1): z = if noEvent(x > 0.0) then y / 3.0 - 0.3333333333333333 else 0.2 * y - 0.4 [dynamic]
// 2/2 (1): y = (-x ^ 3.0) ^ 0.3333333333333333 [dynamic]
// 3/3 (1): x = 0.5 * log((1.0 + 0.9 * sin(10.0 * time)) / (1.0 - 0.9 * sin(10.0 * time))) [dynamic]
//
//
// Simple Equations (0, 0)
// ========================================
//
//
// State Sets
// ========================================
//
//
// Matching
// ========================================
// 3 variables and equations
// var 1 is solved in eqn 1
// var 2 is solved in eqn 2
// var 3 is solved in eqn 3
//
//
// StrongComponents
// ========================================
// {3:3}
// {2:2}
// {1:1}
//
//
//
// BackendDAEType: initialization
//
//
// Known variables only depending on parameters and constants - globalKnownVars (0)
// ========================================
//
//
// Known variables only depending on states and inputs - localKnownVars (0)
// ========================================
//
//
// External Objects (0)
// ========================================
//
//
// Classes of External Objects (0)
// ========================================
//
//
// Alias Variables (0)
// ========================================
//
//
// Simple Shared Equations (0, 0)
// ========================================
//
//
// Initial Equations (0, 0)
// ========================================
//
//
// Zero Crossings (0)
// ========================================
//
//
// Relations (0)
// ========================================
//
//
// Time Events (0)
// ========================================
//
//
// Constraints (0)
// ========================================
//
//
// Base partitions (0)
// ========================================
//
//
// Sub partitions (0)
// ========================================
//
//
// post-optimization done.
//
// ########################################
Expand Down

0 comments on commit 160b2cd

Please sign in to comment.