Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Failing MDD tests for synchronous blocks
- Loading branch information
1 parent
ed569e2
commit 192b838
Showing
8 changed files
with
119 additions
and
4 deletions.
There are no files selected for viewing
Binary file added
BIN
+1.45 KB
...ica_DeviceDrivers/Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager.mat.xz
Binary file not shown.
Binary file added
BIN
+1.46 KB
...iceDrivers/Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager_String.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
4 changes: 2 additions & 2 deletions
4
...arty/Modelica_DeviceDrivers/Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager.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
4 changes: 2 additions & 2 deletions
4
...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
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
55 changes: 55 additions & 0 deletions
55
...delica_DeviceDrivers/Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager.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,55 @@ | ||
// name: Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager | ||
// keywords: simulation Modelica_DeviceDrivers examples | ||
// status: omc failure | ||
// | ||
// Simulation Results | ||
// Modelica_DeviceDrivers | ||
// | ||
|
||
runScript("../../common/ModelTestingDefaults.mos"); getErrorString(); | ||
|
||
modelTestingType := OpenModelicaModelTesting.Kind.VerifiedSimulation; | ||
modelName := $TypeName(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager); | ||
compareVars := | ||
{"unpackInt.y", "unpackInt1.y", "getInteger.y[1]", "getBoolean.y[1]"}; | ||
|
||
runScript("common.mos");getErrorString(); | ||
|
||
runScript(modelTesting);getErrorString(); | ||
|
||
// Result: | ||
// "true | ||
// " | ||
// "" | ||
// OpenModelicaModelTesting.Kind.VerifiedSimulation | ||
// Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager | ||
// {"unpackInt.y","unpackInt1.y","getInteger.y[1]","getBoolean.y[1]"} | ||
// "Modelica_DeviceDrivers | ||
// \"\" | ||
// true | ||
// \"Modelica_DeviceDrivers\" | ||
// " | ||
// "" | ||
// Simulation options: startTime = 0.0, stopTime = 5.0, numberOfIntervals = 500, tolerance = 1e-06, method = 'dassl', fileNamePrefix = 'Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager', options = '', outputFormat = 'mat', variableFilter = 'time|unpackInt.y|unpackInt1.y|getInteger.y.1.|getBoolean.y.1.', cflags = '', simflags = ' -abortSlowSimulation -alarm=360 -emit_protected' | ||
// Error: Simulation did not produce a result-file | ||
// Errors: Failed to build model: Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackagerWarning: Alias equations of external objects are not Modelica compliant as in: | ||
// addBoolean.pkgOut[1].pkg = resetPointer.pkgIn.pkg | ||
// getBoolean.pkgIn.pkg = getInteger.pkgOut[1].pkg | ||
// addBoolean.pkgIn.pkg = addInteger.pkgOut[1].pkg | ||
// getInteger.pkgIn.pkg = unpackInt1.pkgOut[1].pkg | ||
// unpackInt.pkgOut[1].pkg = unpackInt1.pkgIn.pkg | ||
// resetPointer.pkgOut[1].pkg = unpackInt.pkgIn.pkg | ||
// addInteger.pkgIn.pkg = packInt1.pkgOut[1].pkg | ||
// packInt.pkgOut[1].pkg = packInt1.pkgIn.pkg | ||
// packInt.pkgIn.pkg = packager.pkgOut.pkg | ||
// addBoolean.pkgOut[1].pkg = addBoolean.pkgIn.pkg | ||
// unpackInt1.pkgOut[1].pkg = unpackInt1.pkgIn.pkg | ||
// getInteger.pkgOut[1].pkg = getInteger.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 | ||
// Error: Too many equations, over-determined system. The model has 100 equation(s) and 99 variable(s). | ||
// | ||
// endResult |
55 changes: 55 additions & 0 deletions
55
...DeviceDrivers/Modelica_DeviceDrivers.ClockedBlocks.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,55 @@ | ||
// name: Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager_String | ||
// keywords: simulation Modelica_DeviceDrivers examples | ||
// status: omc failure | ||
// | ||
// Simulation Results | ||
// Modelica_DeviceDrivers | ||
// | ||
|
||
runScript("../../common/ModelTestingDefaults.mos"); getErrorString(); | ||
|
||
modelTestingType := OpenModelicaModelTesting.Kind.VerifiedSimulation; | ||
modelName := $TypeName(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager_String); | ||
compareVars := | ||
{"unpackInt.y", "findString.y", "getInteger.y[1]"}; | ||
|
||
runScript("common.mos");getErrorString(); | ||
|
||
runScript(modelTesting);getErrorString(); | ||
|
||
// Result: | ||
// "true | ||
// " | ||
// "" | ||
// OpenModelicaModelTesting.Kind.VerifiedSimulation | ||
// Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager | ||
// {"unpackInt.y","unpackInt1.y","getInteger.y[1]","getBoolean.y[1]"} | ||
// "Modelica_DeviceDrivers | ||
// \"\" | ||
// true | ||
// \"Modelica_DeviceDrivers\" | ||
// " | ||
// "" | ||
// Simulation options: startTime = 0.0, stopTime = 5.0, numberOfIntervals = 500, tolerance = 1e-06, method = 'dassl', fileNamePrefix = 'Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager', options = '', outputFormat = 'mat', variableFilter = 'time|unpackInt.y|unpackInt1.y|getInteger.y.1.|getBoolean.y.1.', cflags = '', simflags = ' -abortSlowSimulation -alarm=360 -emit_protected' | ||
// Error: Simulation did not produce a result-file | ||
// Errors: Failed to build model: Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackagerWarning: Alias equations of external objects are not Modelica compliant as in: | ||
// addBoolean.pkgOut[1].pkg = resetPointer.pkgIn.pkg | ||
// getBoolean.pkgIn.pkg = getInteger.pkgOut[1].pkg | ||
// addBoolean.pkgIn.pkg = addInteger.pkgOut[1].pkg | ||
// getInteger.pkgIn.pkg = unpackInt1.pkgOut[1].pkg | ||
// unpackInt.pkgOut[1].pkg = unpackInt1.pkgIn.pkg | ||
// resetPointer.pkgOut[1].pkg = unpackInt.pkgIn.pkg | ||
// addInteger.pkgIn.pkg = packInt1.pkgOut[1].pkg | ||
// packInt.pkgOut[1].pkg = packInt1.pkgIn.pkg | ||
// packInt.pkgIn.pkg = packager.pkgOut.pkg | ||
// addBoolean.pkgOut[1].pkg = addBoolean.pkgIn.pkg | ||
// unpackInt1.pkgOut[1].pkg = unpackInt1.pkgIn.pkg | ||
// getInteger.pkgOut[1].pkg = getInteger.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 | ||
// Error: Too many equations, over-determined system. The model has 100 equation(s) and 99 variable(s). | ||
// | ||
// endResult |