Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Modelica_Synchronous test cases
Added test cases for the elementary clock signal tests after changing the Modelica_Synchronous library.
- Loading branch information
1 parent
c44afbc
commit 5ad2b53
Showing
7 changed files
with
95 additions
and
1 deletion.
There are no files selected for viewing
Binary file added
BIN
+1.76 KB
...lica_Synchronous/Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.mat.xz
Binary file not shown.
Binary file added
BIN
+1.61 KB
...delica_Synchronous/Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample.mat.xz
Binary file not shown.
Binary file added
BIN
+1.68 KB
...lica_Synchronous/Modelica_Synchronous.Examples.Elementary.ClockSignals.SuperSample.mat.xz
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
...odelica_Synchronous/Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.mos
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// name: Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample | ||
// keywords: simulation Modelica_Synchronous examples | ||
// status: correct | ||
// | ||
// Simulation Results | ||
// Modelica_Synchronous | ||
// | ||
|
||
runScript("../../common/ModelTestingDefaults.mos"); getErrorString(); | ||
|
||
echo(false); | ||
modelTestingType := OpenModelicaModelTesting.Kind.VerifiedSimulation; | ||
modelName := $TypeName(Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample); | ||
compareVars := {"sample1.y"}; | ||
|
||
runScript("common.mos");getErrorString(); | ||
|
||
runScript(modelTesting);getErrorString(); | ||
|
||
// Result: | ||
// "true | ||
// " | ||
// "" | ||
// Simulation options: startTime = 0.0, stopTime = 0.09, numberOfIntervals = 500, tolerance = 1e-06, method = 'dassl', fileNamePrefix = 'Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample', options = '', outputFormat = 'mat', variableFilter = 'time|sample1.y', cflags = '', simflags = ' -abortSlowSimulation -alarm=360 -emit_protected' | ||
// Result file: Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample_res.mat | ||
// Files Equal! | ||
// "true | ||
// " | ||
// "" | ||
// endResult |
30 changes: 30 additions & 0 deletions
30
.../Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample.mos
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// name: Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample | ||
// keywords: simulation Modelica_Synchronous examples | ||
// status: correct | ||
// | ||
// Simulation Results | ||
// Modelica_Synchronous | ||
// | ||
|
||
runScript("../../common/ModelTestingDefaults.mos"); getErrorString(); | ||
|
||
echo(false); | ||
modelTestingType := OpenModelicaModelTesting.Kind.VerifiedSimulation; | ||
modelName := $TypeName(Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample); | ||
compareVars := {"sample1.y"}; | ||
|
||
runScript("common.mos");getErrorString(); | ||
|
||
runScript(modelTesting);getErrorString(); | ||
|
||
// Result: | ||
// "true | ||
// " | ||
// "" | ||
// Simulation options: startTime = 0.0, stopTime = 0.09, numberOfIntervals = 500, tolerance = 1e-06, method = 'dassl', fileNamePrefix = 'Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample', options = '', outputFormat = 'mat', variableFilter = 'time|sample1.y', cflags = '', simflags = ' -abortSlowSimulation -alarm=360 -emit_protected' | ||
// Result file: Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample_res.mat | ||
// Files Equal! | ||
// "true | ||
// " | ||
// "" | ||
// endResult |
30 changes: 30 additions & 0 deletions
30
...odelica_Synchronous/Modelica_Synchronous.Examples.Elementary.ClockSignals.SuperSample.mos
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// name: Modelica_Synchronous.Examples.Elementary.ClockSignals.SuperSample | ||
// keywords: simulation Modelica_Synchronous examples | ||
// status: correct | ||
// | ||
// Simulation Results | ||
// Modelica_Synchronous | ||
// | ||
|
||
runScript("../../common/ModelTestingDefaults.mos"); getErrorString(); | ||
|
||
echo(false); | ||
modelTestingType := OpenModelicaModelTesting.Kind.VerifiedSimulation; | ||
modelName := $TypeName(Modelica_Synchronous.Examples.Elementary.ClockSignals.SuperSample); | ||
compareVars := {"sample1.y"}; | ||
|
||
runScript("common.mos");getErrorString(); | ||
|
||
runScript(modelTesting);getErrorString(); | ||
|
||
// Result: | ||
// "true | ||
// " | ||
// "" | ||
// Simulation options: startTime = 0.0, stopTime = 0.09, numberOfIntervals = 500, tolerance = 1e-06, method = 'dassl', fileNamePrefix = 'Modelica_Synchronous.Examples.Elementary.ClockSignals.SuperSample', options = '', outputFormat = 'mat', variableFilter = 'time|sample1.y', cflags = '', simflags = ' -abortSlowSimulation -alarm=360 -emit_protected' | ||
// Result file: Modelica_Synchronous.Examples.Elementary.ClockSignals.SuperSample_res.mat | ||
// Files Equal! | ||
// "true | ||
// " | ||
// "" | ||
// endResult |