This should not be a problem with the Matlab4 format. The number of rows and columns of the matrix is ββstored as 2 32-bit unsigned integers, which should make a double matrix of size 8 * (2 ^ 32-1) * (2 ^ 32-1). This is just an implementation problem for reading the format.
Given the number of data points, if the model has more than approximately 136 variables, the total size of the data_2 matrix exceeds 4 GB (you can probably specify the size of the GridHH_SLP.mat file, if true). If so, it is possible that Matlab was not programmed to handle matrices of this size. I tried the 39GB data matrix in Octave and it just says: error: out of memory or dimension too large for Octave index type . I can open the same file in OpenModelica (but it is inefficient for building such large files because they are not saved in the transposed format by default).
If Dymola is able to output fewer variables, the file may work fine in Matlab. You can also try the alist program that comes with Dymola to output select variables in a mat file in csv format (if alist can handle large files).
source share