Hudson logo

Failed

flattening_modelica_records.RecordSliceAssign.mo (from (result.xml))

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

Stacktrace

Output mismatch (see stdout for details)

Standard Output

 + RecordSliceAssign                                                                 ... equation mismatch [time: 6]

==== Log /tmp/omc-rtest-adrpo33/flattening/modelica/records/RecordSliceAssign.mo_temp3693/log-RecordSliceAssign.mo
function R "Automatically generated record constructor for R"
  input Real x;
  output R res;
end R;

function f
  input Integer N;
  output Real[N] y;
  protected R[N] r;
algorithm
  for i in 1:N loop
    r[i].x := /*Real*/(i);
    y[i] := r[i].x;
  end for;
end f;

class RecordSliceAssign
  Real y[1];
  Real y[2];
  Real y[3];
  Real y[4];
equation
  y = f(4);
end RecordSliceAssign;
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 f.o f.c
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 f_records.o f_records.c
g++ -shared -Xlinker --export-all-symbols -fPIC -o f.dll f.o f_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
f.makefile:20: recipe for target 'f' failed
make: *** [f] Error 1
RESULT: 2


Equation mismatch: diff says:
--- /tmp/omc-rtest-adrpo33/flattening/modelica/records/RecordSliceAssign.mo_temp3693/equations-expected2019-05-07 13:56:34.537988900 +0200
+++ /tmp/omc-rtest-adrpo33/flattening/modelica/records/RecordSliceAssign.mo_temp3693/equations-got2019-05-07 13:56:40.778997500 +0200
@@ -18,7 +18,17 @@
 Real y[1];
 Real y[2];
 Real y[3];
 Real y[4];
 equation
-y = {1.0, 2.0, 3.0, 4.0};
+y = f(4);
 end RecordSliceAssign;
+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 f.o f.c
+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 f_records.o f_records.c
+g++ -shared -Xlinker --export-all-symbols -fPIC -o f.dll f.o f_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
+f.makefile:20: recipe for target 'f' failed
+make: *** [f] Error 1
+RESULT: 2
+

Equation mismatch: omc-diff says:
Failed '{' 'f'
Line 23: Text differs:
expected: y = {
got:      y = f(

== 1 out of 1 tests failed [flattening/modelica/records/RecordSliceAssign.mo_temp3693, time: 7]

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