Hudson logo

Failed

metamodelica_meta.ListReductionCodegen.mo (from (result.xml))

Failing for the past 711 builds (Since #6660 )

Stacktrace

Output mismatch (see stdout for details)

Standard Output

 + ListReductionCodegen                                                              ... equation mismatch [time: 1]

==== Log /tmp/omc-rtest-hudson/metamodelica/meta/ListReductionCodegen.mo_temp3885/log-ListReductionCodegen.mo
function ListReduction.f
  output String s = "
  ";
  protected String sList;
  protected String sArr;
  protected list<#Real> reals1 = List(#(1.0), #(2.0), #(3.0));
  protected list<#Real> reals2 = List(#(-3.0), #(-2.0), #(-1.0), #(0.0), #(1.0), #(2.0), #(3.0));
  protected Real[3] realsArr1 = {1.0, 2.0, 3.0};
  protected Real[7] realsArr2 = {-3.0, -2.0, -1.0, 0.0, 1.0, 2.0, 3.0};
  protected Real[3] realsArr3;
algorithm
  s := s + anyString(list(r for r in reals1));
  s := s + "
  ";
  s := s + anyString(listReverse(r for r in reals1));
  s := s + "
  ";
  s := s + anyString(listReverse(r for r in reals1));
  s := s + "
  ";
  s := s + anyString(list(r for r in reals1));
  s := s + "
  ";
  s := s + anyString(list(#(3.5 * unbox(r)) for r guard unbox(r) > 0.0 in reals2));
  s := s + "
  ";
  s := s + anyString(#(ListReduction.myMin(3.5 * unbox(r) for r guard abs(unbox(r)) < 3.0 in reals2)));
  s := s + "
  ";
  s := s + anyString(#(0.0));
  s := s + "
  ";
  realsArr3 := array(unbox(r) for r in reals1);
  s := s + "{" + realString(realsArr3[1]) + "," + realString(realsArr3[2]) + "," + realString(realsArr3[3]) + "," + "}";
  s := s + "
  ";
  s := s + anyString(#(min(unbox(r) for r in reals1)));
  s := s + "
  ";
  s := s + anyString(#(max(unbox(r) for r in reals1)));
  s := s + "
  ";
  s := s + anyString(#(realMax(1.5 * unbox(r) for r in reals1)));
  s := s + "
  ";
  s := s + anyString(#(sum(3.5 * unbox(r) for r guard unbox(r) > 0.0 in reals2)));
  s := s + "
  ";
  s := s + anyString(#(product(3.5 * unbox(r) for r guard unbox(r) > 0.0 in reals2)));
  s := s + "
  ";
  s := s + anyString(#(realMin(unbox(r) for r guard unbox(r) > 2.0 in reals1)));
  s := s + "
  ";
  sList := s;
  s := "
  ";
  s := s + anyString(list(#(r) for r in {realsArr1[1], realsArr1[2], realsArr1[3]}));
  s := s + "
  ";
  s := s + anyString(listReverse(#(r) for r in {realsArr1[1], realsArr1[2], realsArr1[3]}));
  s := s + "
  ";
  s := s + anyString(listReverse(#(r) for r in {realsArr1[1], realsArr1[2], realsArr1[3]}));
  s := s + "
  ";
  s := s + anyString(list(#(r) for r in {realsArr1[1], realsArr1[2], realsArr1[3]}));
  s := s + "
  ";
  s := s + anyString(list(#(3.5 * r) for r guard r > 0.0 in {realsArr2[1], realsArr2[2], realsArr2[3], realsArr2[4], realsArr2[5], realsArr2[6], realsArr2[7]}));
  s := s + "
  ";
  s := s + anyString(#(ListReduction.myMin(3.5 * r for r guard abs(r) < 3.0 in {realsArr2[1], realsArr2[2], realsArr2[3], realsArr2[4], realsArr2[5], realsArr2[6], realsArr2[7]})));
  s := s + "
  ";
  s := s + anyString(#(0.0));
  s := s + "
  ";
  realsArr3 := {realsArr1[1], realsArr1[2], realsArr1[3]};
  s := s + "{" + realString(realsArr3[1]) + "," + realString(realsArr3[2]) + "," + realString(realsArr3[3]) + "," + "}";
  s := s + "
  ";
  s := s + anyString(#(min({realsArr1[1], realsArr1[2], realsArr1[3]})));
  s := s + "
  ";
  s := s + anyString(#(max({realsArr1[1], realsArr1[2], realsArr1[3]})));
  s := s + "
  ";
  s := s + anyString(#(max(1.5 * realsArr1[3], max(1.5 * realsArr1[2], 1.5 * realsArr1[1]))));
  s := s + "
  ";
  s := s + anyString(#(sum(3.5 * r for r guard r > 0.0 in {realsArr2[1], realsArr2[2], realsArr2[3], realsArr2[4], realsArr2[5], realsArr2[6], realsArr2[7]})));
  s := s + "
  ";
  s := s + anyString(#(product(3.5 * r for r guard r > 0.0 in {realsArr2[1], realsArr2[2], realsArr2[3], realsArr2[4], realsArr2[5], realsArr2[6], realsArr2[7]})));
  s := s + "
  ";
  s := s + anyString(#(realMin(r for r guard r > 2.0 in {realsArr1[1], realsArr1[2], realsArr1[3]})));
  s := s + "
  ";
  sArr := s;
  assert(sList == sArr, "Reductions are different:
  Array:
  " + sArr + "
  List:
  " + sList + "
  ");
end ListReduction.f;

function ListReduction.myMin
  input Real r1;
  input Real r2;
  output Real r = min(r1, r2);
end ListReduction.myMin;

class ListReduction
  String s = ListReduction.f();
end ListReduction;
Error: Error building simulator. Build log: clang -g  -mfpmath=sse -fno-dollars-in-identifiers   -I"/Users/hudson/slave/workspace/OpenModelica_OSX_BUILD/OpenModelica/build/include/omc/c"  -c -o ListReduction_f.o ListReduction_f.c
clang -g  -mfpmath=sse -fno-dollars-in-identifiers   -I"/Users/hudson/slave/workspace/OpenModelica_OSX_BUILD/OpenModelica/build/include/omc/c"  -c -o ListReduction_f_records.o ListReduction_f_records.c
clang -single_module -dynamiclib -flat_namespace -o ListReduction_f.dylib ListReduction_f.o ListReduction_f_records.o  -g  -mfpmath=sse -fno-dollars-in-identifiers   -I"/Users/hudson/slave/workspace/OpenModelica_OSX_BUILD/OpenModelica/build/include/omc/c"  -L"/Users/hudson/slave/workspace/OpenModelica_OSX_BUILD/OpenModelica/build/lib/x86_64-darwin15.4.0/omc" -Wl,-rpath,'/Users/hudson/slave/workspace/OpenModelica_OSX_BUILD/OpenModelica/build/lib/x86_64-darwin15.4.0/omc'    -L/opt/openmodelica/lib -lOpenModelicaRuntimeC  -lopenblas   -lm -lm
Undefined symbols for architecture x86_64:
  "_omc_assert", referenced from:
      _omc_ListReduction_f in ListReduction_f.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [ListReduction_f] Error 1


Equation mismatch: diff says:
--- /tmp/omc-rtest-hudson/metamodelica/meta/ListReductionCodegen.mo_temp3885/equations-expected2019-05-16 21:59:17.000000000 +0200
+++ /tmp/omc-rtest-hudson/metamodelica/meta/ListReductionCodegen.mo_temp3885/equations-got2019-05-16 21:59:18.000000000 +0200
@@ -112,22 +112,17 @@
 input Real r2;
 output Real r = min(r1, r2);
 end ListReduction.myMin;
 
 class ListReduction
-String s = "
-{1, 2, 3}
-{3, 2, 1}
-{3, 2, 1}
-{1, 2, 3}
-{3.5, 7, 10.5}
--7
-0
-{1.0,2.0,3.0,}
-1
-3
-4.5
-21
-257.25
-3
-";
+String s = ListReduction.f();
 end ListReduction;
+Error: Error building simulator. Build log: clang -g  -mfpmath=sse -fno-dollars-in-identifiers   -I"/Users/hudson/slave/workspace/OpenModelica_OSX_BUILD/OpenModelica/build/include/omc/c"  -c -o ListReduction_f.o ListReduction_f.c
+clang -g  -mfpmath=sse -fno-dollars-in-identifiers   -I"/Users/hudson/slave/workspace/OpenModelica_OSX_BUILD/OpenModelica/build/include/omc/c"  -c -o ListReduction_f_records.o ListReduction_f_records.c
+clang -single_module -dynamiclib -flat_namespace -o ListReduction_f.dylib ListReduction_f.o ListReduction_f_records.o  -g  -mfpmath=sse -fno-dollars-in-identifiers   -I"/Users/hudson/slave/workspace/OpenModelica_OSX_BUILD/OpenModelica/build/include/omc/c"  -L"/Users/hudson/slave/workspace/OpenModelica_OSX_BUILD/OpenModelica/build/lib/x86_64-darwin15.4.0/omc" -Wl,-rpath,'/Users/hudson/slave/workspace/OpenModelica_OSX_BUILD/OpenModelica/build/lib/x86_64-darwin15.4.0/omc'    -L/opt/openmodelica/lib -lOpenModelicaRuntimeC  -lopenblas   -lm -lm
+Undefined symbols for architecture x86_64:
+"_omc_assert", referenced from:
+_omc_ListReduction_f in ListReduction_f.o
+ld: symbol(s) not found for architecture x86_64
+clang: error: linker command failed with exit code 1 (use -v to see invocation)
+make: *** [ListReduction_f] Error 1
+

Equation mismatch: omc-diff says:
Failed '"' 'L'
Line 117: Text differs:
expected: String s = "
got:      String s = ListReduction.f();

== 1 out of 1 tests failed [metamodelica/meta/ListReductionCodegen.mo_temp3885, time: 1]

Powered by Hudson Open Source Continuous Integration Server from the Eclipse Foundation