Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register
  • Index
  • » Users
  • » pbraun
  • » Profile

Posts

Posts

Jan-06-15 20:43:52
Unexpected error

Hello Willi,

Thank you very much! It seems to work.

Best regards.

Dec-29-14 23:32:20
Unexpected error

Hello Everybody,

I tried to use the Cholesky decomposition and got an unexpected error.
The simplest example of the model is:

model test
  Real msr_mat[2, 2];
equation
  msr_mat = Modelica.Math.Matrices.cholesky({{1,0},{0,1}}, false);
end test;


The corresponding error message is:

"[/usr/lib/omlibrary/Modelica 3.2.1/Math/package.mo:2463:7-2466:15:readonly]
Error: Type mismatch in assignment in H := {} of Real[size(A, 1), size(A, 2)] := Integer[0, 0]
Error: Error occurred while flattening model test"


Please help to explain this behavior.

Thanks in anticipation.

Hello Everybody,

currently I'm porting some models I developed and tested successfully in Dymola to OpenModelica.
In this context I need help with the usage of the built-in functions zeros(.), ones(.), identity(.).

The following behavior of the OpenMOdelica I can't explain.
Giving in OMShell:
a_1 := zeros(3)
a_2 := ones(3)
n := 3
a_3 := identity(n)
leads to a_1, a_2, a_3 empty arrays.

What's the problem?

Thanks in anticipation.

  • Index
  • » Users
  • » pbraun
  • » Profile
You are here: