Skip to content

Commit

Permalink
expected output
Browse files Browse the repository at this point in the history
  • Loading branch information
vwaurich authored and OpenModelica-Hudson committed Jun 14, 2017
1 parent 0d6e0e8 commit d68b056
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 76 deletions.
24 changes: 12 additions & 12 deletions simulation/modelica/synchronous/SamplingWithClocks.mos
Expand Up @@ -100,12 +100,12 @@ translateModel(SamplingWithClocks); getErrorString();
//
// Variables (1)
// ========================================
// 1: z:VARIABLE() type: Real
// 1: w:VARIABLE() type: Real
//
//
// Equations (1, 1)
// ========================================
// 1/1 (1): z = $getPart(x) [dynamic]
// 1/1 (1): w = $getPart(x) [dynamic]
//
//
// Simple Equations (0, 0)
Expand All @@ -124,12 +124,12 @@ translateModel(SamplingWithClocks); getErrorString();
//
// Variables (1)
// ========================================
// 1: w:VARIABLE() type: Real
// 1: z:VARIABLE() type: Real
//
//
// Equations (1, 1)
// ========================================
// 1/1 (1): w = $getPart(x) [dynamic]
// 1/1 (1): z = $getPart(x) [dynamic]
//
//
// Simple Equations (0, 0)
Expand All @@ -154,8 +154,8 @@ translateModel(SamplingWithClocks); getErrorString();
// ========================================
// 1: factor(1/1) shift(0/1) event(false)
// 2: factor(1/1) shift(0/1) event(false)
// 3: factor(2/1) shift(0/1) event(false)
// 4: factor(1/3) shift(0/1) event(false)
// 3: factor(1/3) shift(0/1) event(false)
// 4: factor(2/1) shift(0/1) event(false)
//
// synchronous features post-phase: synchronousFeatures
//
Expand Down Expand Up @@ -218,12 +218,12 @@ translateModel(SamplingWithClocks); getErrorString();
//
// Variables (1)
// ========================================
// 1: z:VARIABLE() type: Real
// 1: w:VARIABLE() type: Real
//
//
// Equations (1, 1)
// ========================================
// 1/1 (1): z = $getPart(x) [dynamic]
// 1/1 (1): w = $getPart(x) [dynamic]
//
//
// Simple Equations (0, 0)
Expand All @@ -242,12 +242,12 @@ translateModel(SamplingWithClocks); getErrorString();
//
// Variables (1)
// ========================================
// 1: w:VARIABLE() type: Real
// 1: z:VARIABLE() type: Real
//
//
// Equations (1, 1)
// ========================================
// 1/1 (1): w = $getPart(x) [dynamic]
// 1/1 (1): z = $getPart(x) [dynamic]
//
//
// Simple Equations (0, 0)
Expand All @@ -272,8 +272,8 @@ translateModel(SamplingWithClocks); getErrorString();
// ========================================
// 1: factor(1/1) shift(0/1) event(false)
// 2: factor(1/1) shift(0/1) event(false)
// 3: factor(2/1) shift(0/1) event(false)
// 4: factor(1/3) shift(0/1) event(false)
// 3: factor(1/3) shift(0/1) event(false)
// 4: factor(2/1) shift(0/1) event(false)
//
// true
// ""
Expand Down
128 changes: 64 additions & 64 deletions simulation/modelica/synchronous/SynchronousFeatures.ControlledMass.mos
Expand Up @@ -90,20 +90,16 @@ translateModel(SynchronousFeatures.ControlledMass); getErrorString();
// clocked partition(1)
// ========================================
//
// Variables (4)
// Variables (2)
// ========================================
// 1: uOuter:DISCRETE(start = 0.0 ) type: Real
// 2: intE:DISCRETE(start = 0.0 ) type: Real
// 3: eOuter:DISCRETE() type: Real
// 4: xd:DISCRETE() type: Real
// 1: xdFast:DISCRETE() type: Real
// 2: $var2:VARIABLE() type: Real
//
//
// Equations (4, 4)
// Equations (2, 2)
// ========================================
// 1/1 (1): xd = $getPart(x) [dynamic]
// 2/2 (1): eOuter = xref - xd [dynamic]
// 3/3 (1): intE = previous(intE) + eOuter [dynamic]
// 4/4 (1): uOuter = KOuter * (eOuter + intE / Ti) [dynamic]
// 1/1 (1): xdFast = $getPart(x) [dynamic]
// 2/2 (1): $var2 = (xdFast - previous(xdFast)) / interval() [dynamic]
//
//
// Simple Equations (0, 0)
Expand All @@ -120,16 +116,18 @@ translateModel(SynchronousFeatures.ControlledMass); getErrorString();
// clocked partition(2)
// ========================================
//
// Variables (2)
// Variables (3)
// ========================================
// 1: xdFast:DISCRETE() type: Real
// 2: $var2:VARIABLE() type: Real
// 1: uInner:DISCRETE(start = 0.0 ) type: Real
// 2: vref:DISCRETE() type: Real
// 3: vd:DISCRETE() type: Real
//
//
// Equations (2, 2)
// Equations (3, 3)
// ========================================
// 1/1 (1): xdFast = $getPart(x) [dynamic]
// 2/2 (1): $var2 = (xdFast - previous(xdFast)) / interval() [dynamic]
// 1/1 (1): vd = $getPart($var2) [dynamic]
// 2/2 (1): vref = $getPart($var3) [dynamic]
// 3/3 (1): uInner = KInner * (vref - vd) [dynamic]
//
//
// Simple Equations (0, 0)
Expand All @@ -146,14 +144,20 @@ translateModel(SynchronousFeatures.ControlledMass); getErrorString();
// clocked partition(3)
// ========================================
//
// Variables (1)
// Variables (4)
// ========================================
// 1: $var3:VARIABLE() type: Real
// 1: uOuter:DISCRETE(start = 0.0 ) type: Real
// 2: intE:DISCRETE(start = 0.0 ) type: Real
// 3: eOuter:DISCRETE() type: Real
// 4: xd:DISCRETE() type: Real
//
//
// Equations (1, 1)
// Equations (4, 4)
// ========================================
// 1/1 (1): $var3 = $getPart(uOuter) [dynamic]
// 1/1 (1): xd = $getPart(x) [dynamic]
// 2/2 (1): eOuter = xref - xd [dynamic]
// 3/3 (1): intE = previous(intE) + eOuter [dynamic]
// 4/4 (1): uOuter = KOuter * (eOuter + intE / Ti) [dynamic]
//
//
// Simple Equations (0, 0)
Expand All @@ -170,18 +174,14 @@ translateModel(SynchronousFeatures.ControlledMass); getErrorString();
// clocked partition(4)
// ========================================
//
// Variables (3)
// Variables (1)
// ========================================
// 1: uInner:DISCRETE(start = 0.0 ) type: Real
// 2: vref:DISCRETE() type: Real
// 3: vd:DISCRETE() type: Real
// 1: $var3:VARIABLE() type: Real
//
//
// Equations (3, 3)
// Equations (1, 1)
// ========================================
// 1/1 (1): vd = $getPart($var2) [dynamic]
// 2/2 (1): vref = $getPart($var3) [dynamic]
// 3/3 (1): uInner = KInner * (vref - vd) [dynamic]
// 1/1 (1): $var3 = $getPart(uOuter) [dynamic]
//
//
// Simple Equations (0, 0)
Expand All @@ -203,10 +203,10 @@ translateModel(SynchronousFeatures.ControlledMass); getErrorString();
//
// Sub clocks (4)
// ========================================
// 1: factor(5/1) shift(2/3) event(false)
// 2: factor(1/2) shift(0/1) event(false)
// 3: factor(1/1) shift(2/3) event(false)
// 4: factor(1/1) shift(0/1) event(true)
// 1: factor(1/2) shift(0/1) event(false)
// 2: factor(1/1) shift(0/1) event(true)
// 3: factor(5/1) shift(2/3) event(false)
// 4: factor(1/1) shift(2/3) event(false)
//
// synchronous features post-phase: synchronousFeatures
//
Expand Down Expand Up @@ -259,20 +259,16 @@ translateModel(SynchronousFeatures.ControlledMass); getErrorString();
// clocked partition(1)
// ========================================
//
// Variables (4)
// Variables (2)
// ========================================
// 1: uOuter:DISCRETE(start = 0.0 ) type: Real
// 2: intE:CLOCKED_STATE(start = 0.0 fixed = true ) type: Real
// 3: eOuter:DISCRETE() type: Real
// 4: xd:DISCRETE() type: Real
// 1: xdFast:CLOCKED_STATE(fixed = true ) type: Real
// 2: $var2:VARIABLE() type: Real
//
//
// Equations (4, 4)
// Equations (2, 2)
// ========================================
// 1/1 (1): xd = $getPart(x) [dynamic]
// 2/2 (1): eOuter = xref - xd [dynamic]
// 3/3 (1): intE = previous(intE) + eOuter [dynamic]
// 4/4 (1): uOuter = KOuter * (eOuter + intE / Ti) [dynamic]
// 1/1 (1): xdFast = $getPart(x) [dynamic]
// 2/2 (1): $var2 = (xdFast - previous(xdFast)) / interval() [dynamic]
//
//
// Simple Equations (0, 0)
Expand All @@ -289,16 +285,18 @@ translateModel(SynchronousFeatures.ControlledMass); getErrorString();
// clocked partition(2)
// ========================================
//
// Variables (2)
// Variables (3)
// ========================================
// 1: xdFast:CLOCKED_STATE(fixed = true ) type: Real
// 2: $var2:VARIABLE() type: Real
// 1: uInner:DISCRETE(start = 0.0 ) type: Real
// 2: vref:DISCRETE() type: Real
// 3: vd:DISCRETE() type: Real
//
//
// Equations (2, 2)
// Equations (3, 3)
// ========================================
// 1/1 (1): xdFast = $getPart(x) [dynamic]
// 2/2 (1): $var2 = (xdFast - previous(xdFast)) / interval() [dynamic]
// 1/1 (1): vd = $getPart($var2) [dynamic]
// 2/2 (1): vref = $getPart($var3) [dynamic]
// 3/3 (1): uInner = KInner * (vref - vd) [dynamic]
//
//
// Simple Equations (0, 0)
Expand All @@ -315,14 +313,20 @@ translateModel(SynchronousFeatures.ControlledMass); getErrorString();
// clocked partition(3)
// ========================================
//
// Variables (1)
// Variables (4)
// ========================================
// 1: $var3:VARIABLE() type: Real
// 1: uOuter:DISCRETE(start = 0.0 ) type: Real
// 2: intE:CLOCKED_STATE(start = 0.0 fixed = true ) type: Real
// 3: eOuter:DISCRETE() type: Real
// 4: xd:DISCRETE() type: Real
//
//
// Equations (1, 1)
// Equations (4, 4)
// ========================================
// 1/1 (1): $var3 = $getPart(uOuter) [dynamic]
// 1/1 (1): xd = $getPart(x) [dynamic]
// 2/2 (1): eOuter = xref - xd [dynamic]
// 3/3 (1): intE = previous(intE) + eOuter [dynamic]
// 4/4 (1): uOuter = KOuter * (eOuter + intE / Ti) [dynamic]
//
//
// Simple Equations (0, 0)
Expand All @@ -339,18 +343,14 @@ translateModel(SynchronousFeatures.ControlledMass); getErrorString();
// clocked partition(4)
// ========================================
//
// Variables (3)
// Variables (1)
// ========================================
// 1: uInner:DISCRETE(start = 0.0 ) type: Real
// 2: vref:DISCRETE() type: Real
// 3: vd:DISCRETE() type: Real
// 1: $var3:VARIABLE() type: Real
//
//
// Equations (3, 3)
// Equations (1, 1)
// ========================================
// 1/1 (1): vd = $getPart($var2) [dynamic]
// 2/2 (1): vref = $getPart($var3) [dynamic]
// 3/3 (1): uInner = KInner * (vref - vd) [dynamic]
// 1/1 (1): $var3 = $getPart(uOuter) [dynamic]
//
//
// Simple Equations (0, 0)
Expand All @@ -372,10 +372,10 @@ translateModel(SynchronousFeatures.ControlledMass); getErrorString();
//
// Sub clocks (4)
// ========================================
// 1: factor(5/1) shift(2/3) event(false)
// 2: factor(1/2) shift(0/1) event(false)
// 3: factor(1/1) shift(2/3) event(false)
// 4: factor(1/1) shift(0/1) event(true)
// 1: factor(1/2) shift(0/1) event(false)
// 2: factor(1/1) shift(0/1) event(true)
// 3: factor(5/1) shift(2/3) event(false)
// 4: factor(1/1) shift(2/3) event(false)
//
// true
// ""
Expand Down

0 comments on commit d68b056

Please sign in to comment.