Hudson logo

Failed

flattening_modelica_others.StringPool.mo (from (result.xml))

Failing for the past 1,595 builds (Since #9699 )

Stacktrace

Output mismatch (see stdout for details)

Standard Output

 + StringPool                                                                        ... equation mismatch [time: 5]

==== Log /tmp/omc-rtest-adrpo33/flattening/modelica/others/StringPool.mo_temp6402/log-StringPool.mo
function StringPool.weirdStrStuff
  input String str;
  output String os1;
  output String os2;
algorithm
  os1 := "os1";
  os2 := "os2";
end StringPool.weirdStrStuff;

function StringPool.weirdStrStuff1
  input String str;
  output String os;
  protected String os1;
  protected String os2;
algorithm
  (os1, os2) := StringPool.weirdStrStuff(str);
  os := "overwritethecharpoolhere";
  os := os1 + os2;
end StringPool.weirdStrStuff1;

class StringPool
  constant String str1 = StringPool.weirdStrStuff1("abc");
end StringPool;
Error: Error building simulator. Build log: gcc  -falign-functions -fno-ipa-pure-const -mstackrealign -msse2 -mfpmath=sse   -I"C:/dev/hudson/workspace/OM_Win/OM/build/include/omc/c"  -c -o StringPool_weirdStrStuff1.o StringPool_weirdStrStuff1.c
StringPool_weirdStrStuff1.c: In function 'in_StringPool_weirdStrStuff1':
StringPool_weirdStrStuff1.c:42:37: warning: passing argument 2 of 'read_modelica_string' from incompatible pointer type [-Wincompatible-pointer-types]
   if (read_modelica_string(&inArgs, (char**) &_str)) return 1;
                                     ^
In file included from C:/dev/hudson/workspace/OM_Win/OM/build/include/omc/c/util/modelica.h:62:0,
                 from StringPool_weirdStrStuff1.h:4,
                 from StringPool_weirdStrStuff1.c:2:
C:/dev/hudson/workspace/OM_Win/OM/build/include/omc/c/util/read_write.h:65:12: note: expected 'void **' but argument is of type 'char **'
 extern int read_modelica_string(type_description **descptr, modelica_string *str);
            ^
gcc  -falign-functions -fno-ipa-pure-const -mstackrealign -msse2 -mfpmath=sse   -I"C:/dev/hudson/workspace/OM_Win/OM/build/include/omc/c"  -c -o StringPool_weirdStrStuff1_records.o StringPool_weirdStrStuff1_records.c
g++ -shared -Xlinker --export-all-symbols -fPIC -o StringPool_weirdStrStuff1.dll StringPool_weirdStrStuff1.o StringPool_weirdStrStuff1_records.o   -falign-functions -fno-ipa-pure-const -mstackrealign -msse2 -mfpmath=sse   -I"C:/dev/hudson/workspace/OM_Win/OM/build/include/omc/c"  -L"C:/dev/hudson/workspace/OM_Win/OM/build/lib//omc" -Wl,--stack,16777216,-rpath,'C:/dev/hudson/workspace/OM_Win/OM/build/lib//omc'   -fopenmp -Wl,-Bstatic -lregex -ltre -lintl -liconv -lexpat -lomcgc -lpthread -loleaut32 -limagehlp -lhdf5 -lz -lszip -Wl,-Bdynamic  -lOpenModelicaRuntimeC -Wl,-Bstatic -lomcgc -lregex -ltre -lintl -liconv -lexpat -static-libgcc -luuid -loleaut32 -lole32 -limagehlp -lws2_32 -llis -lumfpack -lklu -lcolamd -lbtf -lamd  -lsundials_idas -lsundials_kinsol -lsundials_nvecserial -lipopt -lcoinmumps -lpthread -lm -lgfortranbegin -lgfortran -lquadmath -lmingw32 -lgcc_eh -lmoldname -lmingwex -lmsvcrt -luser32 -lkernel32 -ladvapi32 -lshell32 -lopenblas -lcminpack -Wl,-Bdynamic -lm
C:/dev/hudson/workspace/OM_Win/OM/build/lib//omc/libOpenModelicaRuntimeC.a(base_array.o):base_array.c:(.rdata$.refptr.omc_assert[.refptr.omc_assert]+0x0): undefined reference to `omc_assert'
C:/dev/hudson/workspace/OM_Win/OM/build/lib//omc/libOpenModelicaRuntimeC.a(omc_gc.o):omc_gc.c:(.rdata$.refptr.omc_assert_warning[.refptr.omc_assert_warning]+0x0): undefined reference to `omc_assert_warning'
collect2.exe: error: ld returned 1 exit status
StringPool_weirdStrStuff1.makefile:20: recipe for target 'StringPool_weirdStrStuff1' failed
make: *** [StringPool_weirdStrStuff1] Error 1
RESULT: 2


Equation mismatch: diff says:
--- /tmp/omc-rtest-adrpo33/flattening/modelica/others/StringPool.mo_temp6402/equations-expected2019-05-16 22:04:22.064412200 +0200
+++ /tmp/omc-rtest-adrpo33/flattening/modelica/others/StringPool.mo_temp6402/equations-got2019-05-16 22:04:27.737364400 +0200
@@ -17,7 +17,27 @@
 os := "overwritethecharpoolhere";
 os := os1 + os2;
 end StringPool.weirdStrStuff1;
 
 class StringPool
-constant String str1 = "os1os2";
+constant String str1 = StringPool.weirdStrStuff1("abc");
 end StringPool;
+Error: Error building simulator. Build log: gcc  -falign-functions -fno-ipa-pure-const -mstackrealign -msse2 -mfpmath=sse   -I"C:/dev/hudson/workspace/OM_Win/OM/build/include/omc/c"  -c -o StringPool_weirdStrStuff1.o StringPool_weirdStrStuff1.c
+StringPool_weirdStrStuff1.c: In function 'in_StringPool_weirdStrStuff1':
+StringPool_weirdStrStuff1.c:42:37: warning: passing argument 2 of 'read_modelica_string' from incompatible pointer type [-Wincompatible-pointer-types]
+if (read_modelica_string(&inArgs, (char**) &_str)) return 1;
+^
+In file included from C:/dev/hudson/workspace/OM_Win/OM/build/include/omc/c/util/modelica.h:62:0,
+from StringPool_weirdStrStuff1.h:4,
+from StringPool_weirdStrStuff1.c:2:
+C:/dev/hudson/workspace/OM_Win/OM/build/include/omc/c/util/read_write.h:65:12: note: expected 'void **' but argument is of type 'char **'
+extern int read_modelica_string(type_description **descptr, modelica_string *str);
+^
+gcc -falign-functions -fno-ipa-pure-const -mstackrealign -msse2 -mfpmath=sse   -I"C:/dev/hudson/workspace/OM_Win/OM/build/include/omc/c"  -c -o StringPool_weirdStrStuff1_records.o StringPool_weirdStrStuff1_records.c
+g++ -shared -Xlinker --export-all-symbols -fPIC -o StringPool_weirdStrStuff1.dll StringPool_weirdStrStuff1.o StringPool_weirdStrStuff1_records.o   -falign-functions -fno-ipa-pure-const -mstackrealign -msse2 -mfpmath=sse   -I"C:/dev/hudson/workspace/OM_Win/OM/build/include/omc/c"  -L"C:/dev/hudson/workspace/OM_Win/OM/build/lib//omc" -Wl,--stack,16777216,-rpath,'C:/dev/hudson/workspace/OM_Win/OM/build/lib//omc'   -fopenmp -Wl,-Bstatic -lregex -ltre -lintl -liconv -lexpat -lomcgc -lpthread -loleaut32 -limagehlp -lhdf5 -lz -lszip -Wl,-Bdynamic  -lOpenModelicaRuntimeC -Wl,-Bstatic -lomcgc -lregex -ltre -lintl -liconv -lexpat -static-libgcc -luuid -loleaut32 -lole32 -limagehlp -lws2_32 -llis -lumfpack -lklu -lcolamd -lbtf -lamd  -lsundials_idas -lsundials_kinsol -lsundials_nvecserial -lipopt -lcoinmumps -lpthread -lm -lgfortranbegin -lgfortran -lquadmath -lmingw32 -lgcc_eh -lmoldname -lmingwex -lmsvcrt -luser32 -lkernel32 -ladvapi32 -lshell32 -lopenblas -lcminpack -Wl,-Bdynamic -lm
+C:/dev/hudson/workspace/OM_Win/OM/build/lib//omc/libOpenModelicaRuntimeC.a(base_array.o):base_array.c:(.rdata$.refptr.omc_assert[.refptr.omc_assert]+0x0): undefined reference to `omc_assert'
+C:/dev/hudson/workspace/OM_Win/OM/build/lib//omc/libOpenModelicaRuntimeC.a(omc_gc.o):omc_gc.c:(.rdata$.refptr.omc_assert_warning[.refptr.omc_assert_warning]+0x0): undefined reference to `omc_assert_warning'
+collect2.exe: error: ld returned 1 exit status
+StringPool_weirdStrStuff1.makefile:20: recipe for target 'StringPool_weirdStrStuff1' failed
+make: *** [StringPool_weirdStrStuff1] Error 1
+RESULT: 2
+

Equation mismatch: omc-diff says:
Failed '"' 'S'
Line 22: Text differs:
expected:  = "os
got:       = StringPool.weirdStrStuff

== 1 out of 1 tests failed [flattening/modelica/others/StringPool.mo_temp6402, time: 6]

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