Skip to content

Failed

tests / 05 testsuite-clang 2/3 / openmodelica_basemodelica.SD.mo (from (result.xml))

Failing for the past 4 builds (Since #1 )
Took 0 ms.

Stacktrace

Output mismatch (see stdout for details)

Standard Output

 + SD                                                                                ... equation mismatch [time: 0]

==== Log /tmp/omc-rtest-omtmpuser/openmodelica/basemodelica/SD.mo_temp5150/log-SD.mo
//! base 0.1.0
package 'SD'
  model 'SD'
    parameter Integer 'N' = 3;
    parameter Real[3] 'p' = {1.0, 1.5, 2.0};
    Real[3] 'c.c.f';
    Real[3] 'c.c.e';
    Real[3, {3, 4, 5}] 'c.x';
    parameter Real[3] 'c.p' = 'p'[:];
    parameter Integer[3] 'c.N' = {3, 4, 5};
    parameter Real 's.p' = 3.0;
    Real 's.c.e';
    Real 's.c.f';
  equation
    'c.x'[:,1] = 'c.c.e'[:];
    'c.x'[:,'c.N'[:]] = 'c.c.f'[:];

    for '$i1' in 1:3 loop
      for 'i' in 2:({3, 4, 5})['$i1'] loop
        'c.x'['i'] = 'c.x'['i' - 1] + 'c.p';
      end for;
    end for;

    's.c.f' = 's.p';
    'c.c.e'[2] = 'c.c.e'[1];
    's.c.e' = 'c.c.e'[1];
    'c.c.e'[3] = 'c.c.e'[1];
    'c.c.f'[3] + 's.c.f' + 'c.c.f'[2] + 'c.c.f'[1] = 0.0;
  end 'SD';
end 'SD';

Equation mismatch: diff says:
--- /tmp/omc-rtest-omtmpuser/openmodelica/basemodelica/SD.mo_temp5150/equations-expected2024-06-29 01:25:13.662621028 +0000
+++ /tmp/omc-rtest-omtmpuser/openmodelica/basemodelica/SD.mo_temp5150/equations-got2024-06-29 01:25:13.786621572 +0000
@@ -15,11 +15,11 @@
 'c.x'[:,1] = 'c.c.e'[:];
 'c.x'[:,'c.N'[:]] = 'c.c.f'[:];
 
 for '$i1' in 1:3 loop
 for 'i' in 2:({3, 4, 5})['$i1'] loop
-'c.x'['$i1','i'] = 'c.x'['$i1','i' - 1] + 'c.p'['$i1'];
+'c.x'['i'] = 'c.x'['i' - 1] + 'c.p';
 end for;
 end for;
 
 's.c.f' = 's.p';
 'c.c.e'[2] = 'c.c.e'[1];

Equation mismatch: omc-diff says:
Failed '$' 'i'
Line 20: Text differs:
expected: 'c.x'['$i
got:      'c.x'['i'] = 'c.x'['i' 

== 1 out of 1 tests failed [openmodelica/basemodelica/SD.mo_temp5150, time: 0]