-
Notifications
You must be signed in to change notification settings - Fork 298
/
Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager.mos
54 lines (49 loc) · 2.49 KB
/
Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager.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
51
52
53
54
// name: Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager
// 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);
compareVars :=
{"unpackInt.y", "getInteger.y[1]", "unpackInt1.y"};
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', options = '', outputFormat = 'mat', variableFilter = 'time|unpackInt.y|getInteger.y.1.|unpackInt1.y', cflags = '', simflags = ' -abortSlowSimulation -alarm=360 -emit_protected'
// Result file: Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_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:
// 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
//
// "true
// "
// ""
// endResult