I work with Dynare v4.5.6 in Octave version 4.4.0 (up to date) on Mac OS High Sierra and I face the problems when dynare computes stochastic simulations.

Worth to note that this is not a case for Windows Octave.

Basically, the problem occurs in the part of stochastic simulations with any .mod file I tried. As an example, I attach here one particular .mod file. CA_LS07.mod (3.1 KB)

It computes static and dynamic models derivatives, it returns steady-state results, however, it gives an error afterwards.

Using 64-bit preprocessor
Starting Dynare (version 4.5.6).
Starting preprocessing of the model file â€¦
Found 12 equation(s).
Evaluating expressionsâ€¦done
Computing static model derivatives:

order 1
Computing dynamic model derivatives:

order 1

order 2
Processing outputs â€¦
done
Preprocessing completed.

STEADY-STATE RESULTS:

y 0
R 0
pi 0
z 0
deltaq 0
deltay_star 0
y_bar 0
y_star 0
deltae 0
pi_star 0
inflationq 0
interest 0
error: index (,,0): subscripts must be either integers 1 to (2^63)-1 or logicals

Does anyone have similar problems on Octave (Mac OS)? Any possible suggestions where should I look for?

Yes, I installed it by strictly following the provided wiki-guide, with a usage of homebrew package.
However, I was sloppy at the adding paths for Octave.
I had to add 2 paths:

Thatâ€™s weirdâ€¦ Only the /usr/local/opt/dynare/lib/dynare/matlab (if you did not change the default installation) path is required. The second path you mention is usually the one associated to the Dynare/Matlab package (which is not compatible with Octave). You should never add different versions of Dynare in the Octave path (it is a source of problems, and the result will depend on the ordering of the addpath commands).

It is also written in Wiki guide that for legacy versions of dynare we need to specify path for them:

Dynare 4.3.3 - 4.4.2 on Mac OS X 10.6 or higher

â€¦
â€¦

Octave Setup

Install Octave 3.6.4 via Homebrew (which requires XCode) by following the instructions in the â€śSimple Installation Instructionsâ€ť subsection of the â€śHomebrewâ€ť section of this site.

Before executing MOD files, you need to execute the following command at Octave prompt:

addpath /Applications/Dynare/{version}/matlab

I am a little bit puzzled as well with that, however, if you say that it works flawlessly for you, the problem might be idiosyncratic, i.e., holds only for my laptop (but can be fixed with a weird procedure).
Thanks for the help.

error: index ( , ,0): subscripts must be either integers 1 to (2^63)-1 or logicals

Following your solution, I tried to add the path addpath /Applications/Dynare/4.5.6/matlab However I donâ€™t have a folder in my mac as /Applications/Dynare/â€¦

@asieeeh that is not a solution. As @stepan-a said, it is incorrect to add multiple dynare paths to your Octave path.

@asieeeh did you install Dynare and Octave via Homebrew? If so, your Octave version should be 4.4.1 not 4.4.0 and your Dynare version should be 4.5.6_3. Please confirm this is the case. Also, please provide the .mod file for which this poses a problem. I confirm that the .mod file posted by the OP works for me.