Changeset 13362


Ignore:
Timestamp:
2012-10-13T00:45:54+02:00 (12 years ago)
Author:
adrpo
Message:
  • fix tests.
Location:
trunk/testsuite/simulation/modelica
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/testsuite/simulation/modelica/arrays/ArrayDivError.mos

    r13337 r13362  
    1313// record SimulationResult
    1414//     resultFile = "",
    15 //     simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 2, tolerance = 0.00001, method = 'dassl', fileNamePrefix = 'ArrayDivError', storeInTemp = false, noClean = false, options = '', outputFormat = 'mat', variableFilter = '.*', measureTime = false, cflags = '', simflags = ''",
     15//     simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 2, tolerance = 1e-05, method = 'dassl', fileNamePrefix = 'ArrayDivError', storeInTemp = false, noClean = false, options = '', outputFormat = 'mat', variableFilter = '.*', measureTime = false, cflags = '', simflags = ''",
    1616//     messages = "Simulation failed for model: ArrayDivError
    17 // [ArrayDivError.mo:10:2-10:22:writable] Error: Type mismatch in equation {{Div1[1,1], Div1[1,2], Div1[1,3]}}={1.0, 2.0, 3.0} of type Real[1, 3]=Real[3]
     17// [ArrayDivError.mo:10:3-10:23:writable] Error: Type mismatch in equation {{Div1[1,1], Div1[1,2], Div1[1,3]}}={1.0, 2.0, 3.0} of type Real[1, 3]=Real[3]
    1818// Error: Error occurred while flattening model ArrayDivError
    1919// "
  • trunk/testsuite/simulation/modelica/initialization/FilterBlock1.mos

    r13359 r13362  
    22// keywords: equations when
    33// status:   correct
    4 //
     4// teardown_command: rm -f _FilterBlock1.* FilterBlock1_res.mat FilterBlock1.exe FilterBlock1.c FilterBlock1_* output.log
    55//  Tests when, elsewhen
    66// Drmodelica: 9.1 reinit (p. 296)
    77//
    88
    9 loadFile("FilterBlock1.mo");
    10 simulate(FilterBlock1,numberOfIntervals=2, tolerance=1e-5); // 2 intervals == 3 values
    11 echo(false); // turns of output
    12 res:=readSimulationResult("FilterBlock1_res.mat",{x, y},3);
    13 echo(true); // turns on output
    14 system("rm -rf FilterBlock1.plt FilterBlock1.exe FilterBlock1.c FilterBlock1_* output.log"); // remove tmp files.
     9loadFile("FilterBlock1.mo"); getErrorString();
     10simulate(FilterBlock1,numberOfIntervals=2, tolerance=1e-5); getErrorString();
     11res := readSimulationResult("FilterBlock1_res.mat",{x, y},4); getErrorString();
    1512
    1613
    1714// Result:
    1815// true
     16// ""
    1917// record SimulationResult
    2018//     resultFile = "FilterBlock1_res.mat",
     
    2220//     messages = ""
    2321// end SimulationResult;
    24 // true
    25 // dimsize: 3, rows 4
    26 // 0
     22// ""
     23// {{0.0,0.0,0.0,0.0},{0.0,0.0,0.0,0.0}}
     24// ""
    2725// endResult
Note: See TracChangeset for help on using the changeset viewer.