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

Translation Error

Translation Error


Hello,

I got this error when I connected several block diagrams together including equation and algorithm sections.
Is there anything I can do here?

Below the Error message:

[1] 14:54:31 Translation Error
[CodegenC.tpl: 7200:11-7200:11]: Template error: tupleReturnVariableUpdates: Unhandled expression. {$TMP_otsg1$Pd$rB1$lB_1, $TMP_otsg1$Pd$rB2$lB_1, $TMP_otsg1$Pd$rB3$lB_1, $TMP_otsg1$Pd$rB4$lB_1, $TMP_otsg1$Pd$rB5$lB_1, $TMP_otsg1$Pd$rB6$lB_1, $TMP_otsg1$Pd$rB7$lB_1, $TMP_otsg1$Pd$rB8$lB_1, $TMP_otsg1$Pd$rB9$lB_1, $TMP_otsg1$Pd$rB10$lB_1, $TMP_otsg1$Pd$rB11$lB_1, $TMP_otsg1$Pd$rB12$lB_1, $TMP_otsg1$Pd$rB13$lB_1, $TMP_otsg1$Pd$rB14$lB_1, $TMP_otsg1$Pd$rB15$lB_1, $TMP_otsg1$Pd$rB16$lB_1, $TMP_otsg1$Pd$rB17$lB_1, $TMP_otsg1$Pd$rB18$lB_1, $TMP_otsg1$Pd$rB19$lB_1, $TMP_otsg1$Pd$rB20$lB_1, $TMP_otsg1$Pd$rB21$lB_1, $TMP_otsg1$Pd$rB22$lB_1, $TMP_otsg1$Pd$rB23$lB_1, $TMP_otsg1$Pd$rB24$lB_1, $TMP_otsg1$Pd$rB25$lB_1, $TMP_otsg1$Pd$rB26$lB_1, $TMP_otsg1$Pd$rB27$lB_1, $TMP_otsg1$Pd$rB28$lB_1, $TMP_otsg1$Pd$rB29$lB_1, $TMP_otsg1$Pd$rB30$lB_1, $TMP_otsg1$Pd$rB31$lB_1, $TMP_otsg1$Pd$rB32$lB_1, $TMP_otsg1$Pd$rB33$lB_1, $TMP_otsg1$Pd$rB34$lB_1, $TMP_otsg1$Pd$rB35$lB_1, $TMP_otsg1$Pd$rB36$lB_1, $TMP_otsg1$Pd$rB37$lB_1, $TMP_otsg1$Pd$rB38$lB_1, $TMP_otsg1$Pd$rB39$lB_1, $TMP_otsg1$Pd$rB40$lB_1, $TMP_otsg1$Pd$rB41$lB_1, $TMP_otsg1$Pd$rB42$lB_1, $TMP_otsg1$Pd$rB43$lB_1, $TMP_otsg1$Pd$rB44$lB_1, $TMP_otsg1$Pd$rB45$lB_1, $TMP_otsg1$Pd$rB46$lB_1, $TMP_otsg1$Pd$rB47$lB_1, $TMP_otsg1$Pd$rB48$lB_1, $TMP_otsg1$Pd$rB49$lB_1, $TMP_otsg1$Pd$rB50$lB_1, $TMP_otsg1$Pd$rB51$lB_1, $TMP_otsg1$Pd$rB52$lB_1, $TMP_otsg1$Pd$rB53$lB_1, $TMP_otsg1$Pd$rB54$lB_1, $TMP_otsg1$Pd$rB55$lB_1, $TMP_otsg1$Pd$rB56$lB_1, $TMP_otsg1$Pd$rB57$lB_1, $TMP_otsg1$Pd$rB58$lB_1, $TMP_otsg1$Pd$rB59$lB_1, $TMP_otsg1$Pd$rB60$lB_1, $TMP_otsg1$Pd$rB61$lB_1}

[2] 14:54:31 Translation Error
No system for the symbolic initialization was generated.

[3] 14:54:31 Translation Notification
The given system is mixed-determined. [index > 3]

[4] 14:54:31 Translation Notification
The given system is mixed-determined. [index > 2]

[5] 14:54:31 Translation Notification
The given system is mixed-determined. [index > 1]

[6] 14:54:31 Translation Notification
The given system is mixed-determined. [index > 0]

[7] 14:54:31 Translation Error
Internal error BackendDAEUtil.getAdjacencyMatrixEnhancedScalar failed

[8] 14:54:31 Translation Error
Internal error BackendDAE.adjacencyRowEnhanced failed for eqn: algorithm if otsg1.useM_flow then otsg1.m_flow := pipemodel1.p[1]; (otsg1.dp_total, pipemodel1.T[1], otsg1.p_out, otsg1.d) := SunrainModels.SolarSteamGenerator.OTSGfunction(0, 60, /*Real*/(otsg1.N_serie), /*Real*/(otsg1.N_branch), otsg1.A_col, otsg1.eta0, otsg1.a1, otsg1.a2, otsg1.b1, otsg1.b2, otsg1.m_flow, pipemodel2.T[21], pipemodel2.p[21], constant3.k, constant2.k); otsg1.p_outORm_flow := otsg1.p_out; else otsg1.p_out := pipemodel1.p[1]; otsg1.dp_total := pipemodel2.p[21] - otsg1.p_out; if initial() then otsg1.m_flow_g := otsg1.m_flow_start; else otsg1.m_flow_g := pre(otsg1.m_flow); end if; for i in 1:10 loop otsg1.count1 := 1 + otsg1.count1; (otsg1.dp_total_ref, pipemodel1.T[1], otsg1.p_out_calculated, otsg1.d) := SunrainModels.SolarSteamGenerator.OTSGfunction(0, 60, /*Real*/(otsg1.N_serie), /*Real*/(otsg1.N_branch), otsg1.A_col, otsg1.eta0, otsg1.a1, otsg1.a2, otsg1.b1, otsg1.b2, otsg1.m_flow_g, pipemodel2.T[21], pipemodel2.p[21], constant3.k, constant2.k); otsg1.a := 0.0; for i in 1:60 loop otsg1.a := otsg1.a + 1.0 / otsg1.d[i]; end for; otsg1.a := 0.01666666666666667 * otsg1.a * /*Real*/(otsg1.N_serie) / /*Real*/(otsg1.N_branch); otsg1.b := otsg1.b2 * otsg1.a / /*Real*/(otsg1.N_branch); otsg1.a := otsg1.b1 * otsg1.a; for k in 1:10 loop otsg1.count2 := 1 + otsg1.count2; otsg1.m_flow := (otsg1.dp_total - otsg1.m_flow_g * (otsg1.a + otsg1.b * abs(otsg1.m_flow_g))) / (otsg1.a + 2.0 * otsg1.b * abs(otsg1.m_flow_g)) + otsg1.m_flow_g; otsg1.eps2 := abs(otsg1.m_flow - otsg1.m_flow_g); otsg1.m_flow_g := otsg1.m_flow; end for; otsg1.count2ks := otsg1.count2; otsg1.count2 := 0; otsg1.eps1 := abs(otsg1.dp_total - otsg1.m_flow * (otsg1.a + otsg1.b * abs(otsg1.m_flow))); end for; otsg1.count1ks := otsg1.count1; otsg1.count1 := 0; otsg1.p_outORm_flow := otsg1.m_flow; end if;



Edited by: Arne - Mar-16-15 06:56:33

Re: Translation Error

Unfortunately nothing can be seen in the image as it is too small. Would be better to copy the text and paste it here in between

Code:

 text  

.

Edited by: adrpo - Mar-16-15 06:13:08
There are 0 guests and 0 other users also viewing this topic
You are here: