Dear Professor Pfeifer,
I am new to Dynare, and am getting the error message below.
Code:
var y, c, k;
varexo g;
parameters beta, alpha, delta;
alpha = 0.36;
beta = 0.99;
delta = 0.025;
model;
c(+1) = cbeta(1+alpha*k^(alpha-1)-delta);
y = k(-1)^alpha;
k = (y-c)+(1-delta)*k(-1)-g;
end;
initval;
y = 3.7041;
c = 1.7543;
k = 37.9893;
g = 1;
end;
steady;
endval;
y = 3.7041;
c = 1.6543;
k = 37.9893;
g = 1.1;
end;
steady;
perfect_foresight_setup(periods = 500);
perfect_foresight_solver;
Output:
Using 64-bit preprocessor
Starting Dynare (version 4.6.4).
Calling Dynare with arguments: none
Starting preprocessing of the model file …
Found 3 equation(s).
Evaluating expressions…done
Computing static model derivatives (order 1).
Computing dynamic model derivatives (order 1).
Processing outputs …
done
Preprocessing completed.
STEADY-STATE RESULTS:
y 3.70406
c 1.75433
k 37.9893
STEADY-STATE RESULTS:
y 3.70406
c 1.65433
k 37.9893
MODEL SIMULATION:
Invalid MEX-file
‘/Applications/Dynare/4.6.4/mex/matlab/maci64-9.4-9.10/perfect_foresight_problem.mexmaci64’:
dlopen(/Applications/Dynare/4.6.4/mex/matlab/maci64-9.4-9.10/perfect_foresight_problem.mexmaci64,
6): Symbol not found: _aligned_alloc
Referenced from:
/Applications/Dynare/4.6.4/mex/matlab/maci64-9.4-9.10/perfect_foresight_problem.mexmaci64
Expected in: /usr/lib/libSystem.B.dylib
in /Applications/Dynare/4.6.4/mex/matlab/maci64-9.4-9.10/perfect_foresight_problem.mexmaci64
Error in sim1 (line 67)
[res, A] = perfect_foresight_problem(y, y0, yT, exogenousvariables, M.params, steadystate,
periods, M, options);
Error in perfect_foresight_solver_core (line 100)
sim1(oo_.endo_simul, oo_.exo_simul, oo_.steady_state, M_, options_);
Error in perfect_foresight_solver (line 63)
oo_ = perfect_foresight_solver_core(M_,options_,oo_);
Error in permg.driver (line 165)
perfect_foresight_solver;
Error in dynare (line 293)
evalin(‘base’,[fname ‘.driver’]) ;
Why is this error appearing? (In case it matters, no errors appear if I exclude the line for perfect_foresight_solver;
Thanks!