Changeset 13362
- Timestamp:
- 2012-10-13T00:45:54+02:00 (12 years ago)
- Location:
- trunk/testsuite/simulation/modelica
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/testsuite/simulation/modelica/arrays/ArrayDivError.mos
r13337 r13362 13 13 // record SimulationResult 14 14 // 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 = ''", 16 16 // 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] 18 18 // Error: Error occurred while flattening model ArrayDivError 19 19 // " -
trunk/testsuite/simulation/modelica/initialization/FilterBlock1.mos
r13359 r13362 2 2 // keywords: equations when 3 3 // status: correct 4 // 4 // teardown_command: rm -f _FilterBlock1.* FilterBlock1_res.mat FilterBlock1.exe FilterBlock1.c FilterBlock1_* output.log 5 5 // Tests when, elsewhen 6 6 // Drmodelica: 9.1 reinit (p. 296) 7 7 // 8 8 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. 9 loadFile("FilterBlock1.mo"); getErrorString(); 10 simulate(FilterBlock1,numberOfIntervals=2, tolerance=1e-5); getErrorString(); 11 res := readSimulationResult("FilterBlock1_res.mat",{x, y},4); getErrorString(); 15 12 16 13 17 14 // Result: 18 15 // true 16 // "" 19 17 // record SimulationResult 20 18 // resultFile = "FilterBlock1_res.mat", … … 22 20 // messages = "" 23 21 // end SimulationResult; 24 // true25 // dimsize: 3, rows 426 // 022 // "" 23 // {{0.0,0.0,0.0,0.0},{0.0,0.0,0.0,0.0}} 24 // "" 27 25 // endResult
Note: See TracChangeset
for help on using the changeset viewer.