Opened 8 years ago

Last modified 7 years ago

#4276 closed defect

Modellübersetzung schlägt fehl — at Version 4

Reported by: schneider@… Owned by: somebody
Priority: high Milestone: 1.12.0
Component: Frontend Version:
Keywords: Cc:

Description (last modified by Lennart Ochel)

Hallo,
Das angehängte modell bdm.mue_v_t lässt sich nicht übersetzen. Es erscheint nur die Aufforderung einen Bug Report zu senden.
Könnten sie die Ursache überprüfen?

Die Fehlermeldung:

[bdm/bdm.mo:28:56-28:69:writable] Warning: Non-array modification 'false' for array component, possibly due to missing 'each'.
[bdm/bdm.mo:67:7-67:66:writable] Error: Failed elaborate assignment for some unknown reason: (q_0, sample_data) := bdm.mue_v_t.Model.mue_v_t_set_ini_cond({parameters[1], parameters[2], parameters[3], parameters[4], parameters[5], parameters[6]}, {inp[1], inp[2]}). File a bug report and we will make sure this error gets a better message in the future.
Error: Error occurred while flattening model bdm.mue_v_t.Model

Change History (4)

comment:1 by Lennart Ochel, 8 years ago

Reporter: changed from schneider@… to schneider@…

Dem Ticket ist kein Modell beigefügt.

comment:2 by Lennart Ochel, 8 years ago

Das Trac-System enthält einen Fehler, der es verhindert einen Anhang hochzuladen, sofern die Sprache "Deutsch" eingestellt ist.

Last edited 8 years ago by Lennart Ochel (previous) (diff)

comment:3 by Lennart Ochel, 8 years ago

It seems that the issue is related to an algorithm section. Is there a good reason for using an algorithm instead of equations as stated below?

file: bdm/bdm.mo
@@ -25,7 +25,7 @@ package bdm
     protected
       final parameter Real parameters[6] = {multiple_instances, data.integrator_t0, data.a, data.b, data.c, data.v_ref};
       parameter Real q_0[1](each fixed = false);
-      Real q[1](each stateSelect = StateSelect.prefer, fixed = false, start = q_0);
+      Real q[1](each stateSelect = StateSelect.prefer, each fixed = false, start = q_0);
       Real f[1];
       Real ma[1];
       Real inp[2];
@@ -63,9 +63,9 @@ package bdm
       
         external "Fortran 77" mue_v_t_set_ini_cond(para, inp, q, samp_out);
       end mue_v_t_set_ini_cond;
-    initial algorithm
-      (q_0, sample_data) := mue_v_t_set_ini_cond(parameters, inp);
-      sample_data_hold := sample_data;
+    initial equation
+      (q_0, sample_data) = mue_v_t_set_ini_cond(parameters, inp);
+      sample_data_hold = sample_data;
     equation
       (ma, f, outp) = mue_v_t_get_ma_f(parameters, inp, sample_data, q);
     algorithm

comment:4 by Lennart Ochel, 8 years ago

Component: *unknown*Frontend
Description: modified (diff)
Summary: modellübersetzÜbersetzung schlägt fehl.Modellübersetzung schlägt fehl
Note: See TracTickets for help on using tickets.