Failedflattening_modelica_external-functions.ExternalFunction2.mo
(from (result.xml))
Failing for the past 1,592 builds
(Since
#9699
)
StacktraceOutput mismatch (see stdout for details) Standard Output + ExternalFunction2 ... equation mismatch [time: 10]
==== Log /tmp/omc-rtest-adrpo33/flattening/modelica/external-functions/ExternalFunction2.mo_temp5207/log-ExternalFunction2.mo
function ext_f
input Real[:] x;
output Real[size(x, 1)] y;
external "C" ExternalFunction2_f(x, size(x, 1), y, size(y, 1));
end ext_f;
class ExternalFunction2
constant Real x[1] = 3.0;
constant Real x[2] = 4.0;
constant Real x[3] = 5.0;
constant Real x[4] = 6.0;
Real y[1];
Real y[2];
Real y[3];
Real y[4];
equation
y = ext_f({3.0, 4.0, 5.0, 6.0});
end ExternalFunction2;
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 ext__f.o ext__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 ext__f_records.o ext__f_records.c
g++ -shared -Xlinker --export-all-symbols -fPIC -o ext__f.dll ext__f.o ext__f_records.o "-LC:/dev/hudson/workspace/OM_Win/OM/build/lib//omc" "-LC:/dev/hudson/workspace/OM_Win/OM/build/lib/" "-L%APPDATA%/.openmodelica/binaries/ext_f" "-LC:/dev/hudson/workspace/OM_Win/OM/testsuite/flattening/modelica/external-functions/ExternalFunction2.mo_temp5207/Resources/Library/mingw64" "-LC:/dev/hudson/workspace/OM_Win/OM/testsuite/flattening/modelica/external-functions/ExternalFunction2.mo_temp5207/Resources/Library/win64" "-LC:/dev/hudson/workspace/OM_Win/OM/testsuite/flattening/modelica/external-functions/ExternalFunction2.mo_temp5207/Resources/Library" ExternalFunction2_f.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
ext__f.makefile:20: recipe for target 'ext__f' failed
make: *** [ext__f] Error 1
RESULT: 2
Equation mismatch: diff says:
--- /tmp/omc-rtest-adrpo33/flattening/modelica/external-functions/ExternalFunction2.mo_temp5207/equations-expected2019-05-16 11:32:36.867998400 +0200
+++ /tmp/omc-rtest-adrpo33/flattening/modelica/external-functions/ExternalFunction2.mo_temp5207/equations-got2019-05-16 11:32:46.659952700 +0200
@@ -13,10 +13,17 @@
Real y[1];
Real y[2];
Real y[3];
Real y[4];
equation
-y[1] = 9.0;
-y[2] = 12.0;
-y[3] = 15.0;
-y[4] = 18.0;
+y = ext_f({3.0, 4.0, 5.0, 6.0});
end ExternalFunction2;
+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 ext__f.o ext__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 ext__f_records.o ext__f_records.c
+g++ -shared -Xlinker --export-all-symbols -fPIC -o ext__f.dll ext__f.o ext__f_records.o "-LC:/dev/hudson/workspace/OM_Win/OM/build/lib//omc" "-LC:/dev/hudson/workspace/OM_Win/OM/build/lib/" "-L%APPDATA%/.openmodelica/binaries/ext_f" "-LC:/dev/hudson/workspace/OM_Win/OM/testsuite/flattening/modelica/external-functions/Resources/Library/mingw64" "-LC:/dev/hudson/workspace/OM_Win/OM/testsuite/flattening/modelica/external-functions/Resources/Library/win64" "-LC:/dev/hudson/workspace/OM_Win/OM/testsuite/flattening/modelica/external-functions/Resources/Library" ExternalFunction2_f.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
+ext__f.makefile:20: recipe for target 'ext__f' failed
+make: *** [ext__f] Error 1
+RESULT: 2
+
Equation mismatch: omc-diff says:
Failed '[' ' '
Line 18: Text differs:
expected: y[
got: y = ext_f({
== 1 out of 1 tests failed [flattening/modelica/external-functions/ExternalFunction2.mo_temp5207, time: 11]
|