-
Notifications
You must be signed in to change notification settings - Fork 298
/
Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_ExternalTrigger.mos
50 lines (45 loc) · 2.29 KB
/
Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_ExternalTrigger.mos
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
// name: Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_ExternalTrigger
// keywords: simulation Modelica_DeviceDrivers examples
// status: correct
//
// Simulation Results
// Modelica_DeviceDrivers
//
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
// Messages: LOG_SUCCESS | info | The initialization finished successfully without homotopy method.
// LOG_SUCCESS | info | The simulation finished successfully.
//
// Files Equal!
// Warning: Requested package Modelica_Synchronous of version 0.92.2, but this package was already loaded with version 0.93.0-dev. There are no conversion annotations and 0.92.2 is older than 0.93.0-dev, so the libraries are probably incompatible.
// 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
//
// "true
// "
// ""
// endResult