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

function call with multiple outputs

function call with multiple outputs

Hello,

I have a simple model with function call. compilation and simulation works fine but exporting the fmu causes an error

Model:

model Test
  input Integer i1;
  input Integer i2;
  output Integer A;
  output Integer B;
equation
  (A, B) = Test.fcn_Test(i1, i2);
end Test;


function fcn_Test
  input Integer i1;
  input Integer i2;
  output Integer A;
  output Integer B;
algorithm
  A := i1 + 1;
  B := i2 + 2;
end fcn_Test;

The error comes after exporting the fmu:

[1] 17:09:28 Übersetzung Fehler
[c:/dev/OpenModelica/OMCompiler/Compiler/Util/Graph.mo: 1006:9-1006:105]: Interner Fehler Graph.addForbiddenColors failed.

[2] 17:09:28 Übersetzung Fehler
[c:/dev/OpenModelica/OMCompiler/Compiler/Util/Graph.mo: 974:9-974:111]: Interner Fehler Graph.partialDistance2colorInt failed.

[3] 17:09:28 Übersetzung Fehler
[c:/dev/OpenModelica/OMCompiler/Compiler/BackEnd/SymbolicJacobian.mo: 1172:9-1172:86]: Interner Fehler function generateSparsePattern failed

[4] 17:09:28 Skripting Meldung
The FMU Test.Test.fmu is generated at C:/Users/BENJAM~1.BLA/AppData/Local/Temp/OpenModelica/OMEdit


Can someone help me? Thanks in advance!!
Ben

There are 0 guests and 0 other users also viewing this topic
You are here: