Hudson logo

Failed

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

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

Stacktrace

Output mismatch (see stdout for details)

Standard Output

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

==== Log /tmp/omc-rtest-adrpo33/flattening/modelica/others/EndUnknown.mo_temp4932/log-EndUnknown.mo
function EndUnknown.simpson "Simpson's numerical integration formula"
  input Real[:] vals "function values";
  input Real a "Lower limit";
  input Real b "Upper limit";
  output Real res;
algorithm
  if size(vals, 1) >= 3 then
    res := 0.3333333333333333 * (b - a) * (vals[1] + 2.0 * sum(vals[3:2:-1 + size(vals, 1)]) + 4.0 * sum(vals[2:2:-1 + size(vals, 1)]) + vals[size(vals, 1)]) / /*Real*/(-1 + size(vals, 1));
  else
    res := 0.5 * (b - a) * sum(vals);
  end if;
end EndUnknown.simpson;

class EndUnknown
  constant Real a = EndUnknown.simpson({0.4, 0.3, 0.1, 0.2, 0.3}, 0.0, 1.0);
  Real x(start = 1.0);
equation
  der(x) = (-EndUnknown.simpson({0.4, 0.3, 0.1, 0.2, 0.3}, 0.0, 1.0)) * x;
end EndUnknown;
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 EndUnknown_simpson.o EndUnknown_simpson.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 EndUnknown_simpson_records.o EndUnknown_simpson_records.c
g++ -shared -Xlinker --export-all-symbols -fPIC -o EndUnknown_simpson.dll EndUnknown_simpson.o EndUnknown_simpson_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
EndUnknown_simpson.makefile:20: recipe for target 'EndUnknown_simpson' failed
make: *** [EndUnknown_simpson] Error 1
RESULT: 2


Equation mismatch: diff says:
--- /tmp/omc-rtest-adrpo33/flattening/modelica/others/EndUnknown.mo_temp4932/equations-expected2019-05-07 09:43:55.241064700 +0200
+++ /tmp/omc-rtest-adrpo33/flattening/modelica/others/EndUnknown.mo_temp4932/equations-got2019-05-07 09:44:01.528085200 +0200
@@ -10,10 +10,20 @@
 res := 0.5 * (b - a) * sum(vals);
 end if;
 end EndUnknown.simpson;
 
 class EndUnknown
-constant Real a = 0.2416666666666666;
+constant Real a = EndUnknown.simpson({0.4, 0.3, 0.1, 0.2, 0.3}, 0.0, 1.0);
 Real x(start = 1.0);
 equation
-der(x) = (-0.2416666666666666) * x;
+der(x) = (-EndUnknown.simpson({0.4, 0.3, 0.1, 0.2, 0.3}, 0.0, 1.0)) * x;
 end EndUnknown;
+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 EndUnknown_simpson.o EndUnknown_simpson.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 EndUnknown_simpson_records.o EndUnknown_simpson_records.c
+g++ -shared -Xlinker --export-all-symbols -fPIC -o EndUnknown_simpson.dll EndUnknown_simpson.o EndUnknown_simpson_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
+EndUnknown_simpson.makefile:20: recipe for target 'EndUnknown_simpson' failed
+make: *** [EndUnknown_simpson] Error 1
+RESULT: 2
+

Equation mismatch: omc-diff says:
Line 15: Text differs:
expected: constant Real a = 
got:      constant Real a = EndUnknown.simpson({

== 1 out of 1 tests failed [flattening/modelica/others/EndUnknown.mo_temp4932, time: 7]

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