Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d51c142
commit ed569e2
Showing
10 changed files
with
250 additions
and
1 deletion.
There are no files selected for viewing
Binary file added
BIN
+1.1 KB
...eDrivers/Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_ExternalTrigger.mat.xz
Binary file not shown.
Binary file added
BIN
+1.84 KB
...ica_DeviceDrivers/Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_String.mat.xz
Binary file not shown.
Binary file added
BIN
+2.84 KB
...delica_DeviceDrivers/Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDP.mat.xz
Binary file not shown.
Binary file added
BIN
+3.48 KB
...rivers/Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPAutoBufferSize.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
48 changes: 48 additions & 0 deletions
48
...viceDrivers/Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_ExternalTrigger.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,48 @@ | ||
// name: Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_ExternalTrigger | ||
// 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_DeviceDrivers.Blocks.Examples.TestSerialPackager_ExternalTrigger); | ||
compareVars := | ||
{"getInteger.y[1]"}; | ||
|
||
runScript("common.mos");getErrorString(); | ||
|
||
runScript(modelTesting);getErrorString(); | ||
|
||
// Result: | ||
// "true | ||
// " | ||
// "" | ||
// Simulation options: startTime = 0.0, stopTime = 5.0, numberOfIntervals = 500, tolerance = 1e-06, method = 'dassl', fileNamePrefix = 'Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_ExternalTrigger', options = '', outputFormat = 'mat', variableFilter = 'time|getInteger.y.1.', cflags = '', simflags = ' -abortSlowSimulation -alarm=360 -emit_protected' | ||
// Result file: Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_ExternalTrigger_res.mat | ||
// Files Equal! | ||
// Warning: Alias equations of external objects are not Modelica compliant as in: | ||
// getInteger.pkgIn.pkg = unpackInt1.pkgOut[1].pkg | ||
// unpackInt.pkgOut[1].pkg = unpackInt1.pkgIn.pkg | ||
// resetPointer.pkgOut[1].pkg = unpackInt.pkgIn.pkg | ||
// addInteger.pkgOut[1].pkg = resetPointer.pkgIn.pkg | ||
// addInteger.pkgIn.pkg = packInt1.pkgOut[1].pkg | ||
// packInt.pkgOut[1].pkg = packInt1.pkgIn.pkg | ||
// packInt.pkgIn.pkg = packager.pkgOut.pkg | ||
// unpackInt1.pkgOut[1].pkg = unpackInt1.pkgIn.pkg | ||
// unpackInt.pkgOut[1].pkg = unpackInt.pkgIn.pkg | ||
// resetPointer.pkgOut[1].pkg = resetPointer.pkgIn.pkg | ||
// packInt1.pkgOut[1].pkg = packInt1.pkgIn.pkg | ||
// addInteger.pkgOut[1].pkg = addInteger.pkgIn.pkg | ||
// packInt.pkgOut[1].pkg = packInt.pkgIn.pkg | ||
// Warning: Assuming fixed start value for the following 1 variables: | ||
// iExp.y:DISCRETE(min = 0 fixed = false ) "Value of Integer output" type: Integer | ||
// | ||
// "true | ||
// " | ||
// "" | ||
// endResult |
52 changes: 52 additions & 0 deletions
52
...delica_DeviceDrivers/Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_String.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,52 @@ | ||
// name: Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_String | ||
// keywords: simulation Modelica_DeviceDrivers examples | ||
// status: correct | ||
// | ||
|
||
runScript("../../common/ModelTestingDefaults.mos"); getErrorString(); | ||
|
||
modelTestingType := OpenModelicaModelTesting.Kind.VerifiedSimulation; | ||
modelName := $TypeName(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_String); | ||
compareVars := | ||
{"findString.y"}; | ||
|
||
runScript("common.mos");getErrorString(); | ||
runScript(modelTesting);getErrorString(); | ||
|
||
// Result: | ||
// "true | ||
// " | ||
// "" | ||
// OpenModelicaModelTesting.Kind.VerifiedSimulation | ||
// Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_String | ||
// {"findString.y"} | ||
// "Modelica_DeviceDrivers | ||
// \"\" | ||
// true | ||
// \"Modelica_DeviceDrivers\" | ||
// " | ||
// "" | ||
// Simulation options: startTime = 0.0, stopTime = 5.0, numberOfIntervals = 500, tolerance = 1e-06, method = 'dassl', fileNamePrefix = 'Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_String', options = '', outputFormat = 'mat', variableFilter = 'time|findString.y', cflags = '', simflags = ' -abortSlowSimulation -alarm=360 -emit_protected' | ||
// Result file: Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_String_res.mat | ||
// Files Equal! | ||
// Warning: Alias equations of external objects are not Modelica compliant as in: | ||
// addInteger.pkgOut[1].pkg = resetPointer.pkgIn.pkg | ||
// getInteger.pkgIn.pkg = getString.pkgOut[1].pkg | ||
// getString.pkgIn.pkg = unpackInt.pkgOut[1].pkg | ||
// addString.pkgIn.pkg = packInt.pkgOut[1].pkg | ||
// addInteger.pkgIn.pkg = addString.pkgOut[1].pkg | ||
// resetPointer.pkgOut[1].pkg = unpackInt.pkgIn.pkg | ||
// packInt.pkgIn.pkg = packager.pkgOut.pkg | ||
// getString.pkgOut[1].pkg = getString.pkgIn.pkg | ||
// addString.pkgOut[1].pkg = addString.pkgIn.pkg | ||
// unpackInt.pkgOut[1].pkg = unpackInt.pkgIn.pkg | ||
// resetPointer.pkgOut[1].pkg = resetPointer.pkgIn.pkg | ||
// addInteger.pkgOut[1].pkg = addInteger.pkgIn.pkg | ||
// packInt.pkgOut[1].pkg = packInt.pkgIn.pkg | ||
// Warning: Assuming fixed start value for the following 1 variables: | ||
// getString.data:DISCRETE() "Output string (read from package)" type: String | ||
// | ||
// "true | ||
// " | ||
// "" | ||
// endResult |
45 changes: 45 additions & 0 deletions
45
.../Modelica_DeviceDrivers/Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDP.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,45 @@ | ||
// name: Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDP | ||
// keywords: simulation Modelica_DeviceDrivers examples | ||
// status: correct | ||
// | ||
// Simulation Results | ||
// Modelica_DeviceDrivers | ||
// | ||
|
||
runScript("../../common/ModelTestingDefaults.mos"); getErrorString(); | ||
|
||
echo(false); | ||
modelTestingType := OpenModelicaModelTesting.Kind.SuppressedVerifiedSimulation; | ||
modelName := $TypeName(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDP); | ||
simflags := "-rt=1"; | ||
compareVars := | ||
{"getInteger.y[1]"}; | ||
|
||
runScript("common.mos");getErrorString(); | ||
runScript(modelTesting);getErrorString(); | ||
|
||
// Result: | ||
// "true | ||
// " | ||
// "" | ||
// Simulation options: startTime = 0.0, stopTime = 5.0, numberOfIntervals = 500, tolerance = 1e-06, method = 'dassl', fileNamePrefix = 'Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDP', options = '', outputFormat = 'mat', variableFilter = 'time|getInteger.y.1.', cflags = '', simflags = '-rt=1 -abortSlowSimulation -alarm=360 -emit_protected' | ||
// Result file: Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDP_res.mat | ||
// Files Equal! | ||
// Warning: Alias equations of external objects are not Modelica compliant as in: | ||
// getFloat.pkgOut[1].pkg = getInteger.pkgIn.pkg | ||
// getFloat.pkgIn.pkg = getReal.pkgOut[1].pkg | ||
// addInteger.pkgOut[1].pkg = uDPSend.pkgIn.pkg | ||
// addFloat.pkgOut[1].pkg = addInteger.pkgIn.pkg | ||
// addFloat.pkgIn.pkg = addReal.pkgOut[1].pkg | ||
// getReal.pkgIn.pkg = uDPReceive.pkgOut.pkg | ||
// addReal.pkgIn.pkg = packager.pkgOut.pkg | ||
// getFloat.pkgOut[1].pkg = getFloat.pkgIn.pkg | ||
// addFloat.pkgOut[1].pkg = addFloat.pkgIn.pkg | ||
// getReal.pkgOut[1].pkg = getReal.pkgIn.pkg | ||
// addInteger.pkgOut[1].pkg = addInteger.pkgIn.pkg | ||
// addReal.pkgOut[1].pkg = addReal.pkgIn.pkg | ||
// | ||
// "true | ||
// " | ||
// "" | ||
// endResult |
45 changes: 45 additions & 0 deletions
45
...ceDrivers/Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPAutoBufferSize.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,45 @@ | ||
// name: Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPAutoBufferSize | ||
// keywords: simulation Modelica_DeviceDrivers examples | ||
// status: correct | ||
// | ||
// Simulation Results | ||
// Modelica_DeviceDrivers | ||
// | ||
|
||
runScript("../../common/ModelTestingDefaults.mos"); getErrorString(); | ||
|
||
echo(false); | ||
modelTestingType := OpenModelicaModelTesting.Kind.SuppressedVerifiedSimulation; | ||
modelName := $TypeName(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPAutoBufferSize); | ||
simflags := "-rt=1"; | ||
compareVars := | ||
{"getReal.y[1]", "getFloat.y[1]", "getInteger.y[1]"}; | ||
|
||
runScript("common.mos");getErrorString(); | ||
runScript(modelTesting);getErrorString(); | ||
|
||
// Result: | ||
// "true | ||
// " | ||
// "" | ||
// Simulation options: startTime = 0.0, stopTime = 5.0, numberOfIntervals = 500, tolerance = 1e-06, method = 'dassl', fileNamePrefix = 'Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPAutoBufferSize', options = '', outputFormat = 'mat', variableFilter = 'time|getReal.y.1.|getFloat.y.1.|getInteger.y.1.', cflags = '', simflags = '-rt=1 -abortSlowSimulation -alarm=360 -emit_protected' | ||
// Result file: Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPAutoBufferSize_res.mat | ||
// Files Equal! | ||
// Warning: Alias equations of external objects are not Modelica compliant as in: | ||
// getFloat.pkgOut[1].pkg = getInteger.pkgIn.pkg | ||
// getFloat.pkgIn.pkg = getReal.pkgOut[1].pkg | ||
// addInteger.pkgOut[1].pkg = uDPSend.pkgIn.pkg | ||
// addFloat.pkgOut[1].pkg = addInteger.pkgIn.pkg | ||
// addFloat.pkgIn.pkg = addReal.pkgOut[1].pkg | ||
// getReal.pkgIn.pkg = uDPReceive.pkgOut.pkg | ||
// addReal.pkgIn.pkg = packager.pkgOut.pkg | ||
// getFloat.pkgOut[1].pkg = getFloat.pkgIn.pkg | ||
// addFloat.pkgOut[1].pkg = addFloat.pkgIn.pkg | ||
// getReal.pkgOut[1].pkg = getReal.pkgIn.pkg | ||
// addInteger.pkgOut[1].pkg = addInteger.pkgIn.pkg | ||
// addReal.pkgOut[1].pkg = addReal.pkgIn.pkg | ||
// | ||
// "true | ||
// " | ||
// "" | ||
// endResult |
42 changes: 42 additions & 0 deletions
42
...eDrivers/Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPExternalTrigger.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,42 @@ | ||
// name: Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPExternalTrigger | ||
// keywords: simulation Modelica_DeviceDrivers examples | ||
// status: correct | ||
// | ||
// Simulation Results | ||
// Modelica_DeviceDrivers | ||
// | ||
|
||
runScript("../../common/ModelTestingDefaults.mos"); getErrorString(); | ||
|
||
echo(false); | ||
modelTestingType := OpenModelicaModelTesting.Kind.SuppressedSimulation; | ||
modelName := $TypeName(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPExternalTrigger); | ||
|
||
runScript("common.mos");getErrorString(); | ||
runScript(modelTesting);getErrorString(); | ||
|
||
// Result: | ||
// "true | ||
// " | ||
// "" | ||
// Simulation options: startTime = 0.0, stopTime = 5.0, numberOfIntervals = 500, tolerance = 1e-06, method = 'dassl', fileNamePrefix = 'Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPExternalTrigger', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = ' -abortSlowSimulation -alarm=360' | ||
// Result file: Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPExternalTrigger_res.mat | ||
// Note: Reference file /home/bernhard/data/workspace/openmodelica/testsuite/ReferenceFiles/Modelica_DeviceDrivers/Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPExternalTrigger.mat does not exist. Cannot determine if the result improved! | ||
// Warning: Alias equations of external objects are not Modelica compliant as in: | ||
// getFloat.pkgOut[1].pkg = getInteger.pkgIn.pkg | ||
// getFloat.pkgIn.pkg = getReal.pkgOut[1].pkg | ||
// addInteger.pkgOut[1].pkg = uDPSend.pkgIn.pkg | ||
// addFloat.pkgOut[1].pkg = addInteger.pkgIn.pkg | ||
// addFloat.pkgIn.pkg = addReal.pkgOut[1].pkg | ||
// getReal.pkgIn.pkg = uDPReceive.pkgOut.pkg | ||
// addReal.pkgIn.pkg = packager.pkgOut.pkg | ||
// getFloat.pkgOut[1].pkg = getFloat.pkgIn.pkg | ||
// addFloat.pkgOut[1].pkg = addFloat.pkgIn.pkg | ||
// getReal.pkgOut[1].pkg = getReal.pkgIn.pkg | ||
// addInteger.pkgOut[1].pkg = addInteger.pkgIn.pkg | ||
// addReal.pkgOut[1].pkg = addReal.pkgIn.pkg | ||
// | ||
// "true | ||
// " | ||
// "" | ||
// endResult |