Failedflattening_modelica_external-functions.ExternalFunctionArray.mo
(from (result.xml))
Failing for the past 1,575 builds
(Since
#9699
)
StacktraceOutput mismatch (see stdout for details) Standard Output + ExternalFunctionArray ... equation mismatch [time: 7]
==== Log /tmp/omc-rtest-adrpo33/flattening/modelica/external-functions/ExternalFunctionArray.mo_temp7288/log-ExternalFunctionArray.mo
function ExternalFunctionArray.f
input Real r;
output Real[2] res = ExternalFunctionArray.get_results(r, "abc", 2) + ExternalFunctionArray.get_results(2.0 * r, "abc", 2);
end ExternalFunctionArray.f;
function ExternalFunctionArray.get_results
input Real m;
input String property;
input Integer n;
output Real[n] res;
external "C" getresults(m, property, res, n);
end ExternalFunctionArray.get_results;
class ExternalFunctionArray
Real res[1];
Real res[2];
equation
res = ExternalFunctionArray.f(1.5);
end ExternalFunctionArray;
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 ExternalFunctionArray_f.o ExternalFunctionArray_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 ExternalFunctionArray_f_records.o ExternalFunctionArray_f_records.c
g++ -shared -Xlinker --export-all-symbols -fPIC -o ExternalFunctionArray_f.dll ExternalFunctionArray_f.o ExternalFunctionArray_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
ExternalFunctionArray_f.makefile:20: recipe for target 'ExternalFunctionArray_f' failed
make: *** [ExternalFunctionArray_f] Error 1
RESULT: 2
Equation mismatch: diff says:
--- /tmp/omc-rtest-adrpo33/flattening/modelica/external-functions/ExternalFunctionArray.mo_temp7288/equations-expected2019-05-09 17:36:01.934671700 +0200
+++ /tmp/omc-rtest-adrpo33/flattening/modelica/external-functions/ExternalFunctionArray.mo_temp7288/equations-got2019-05-09 17:36:08.020683300 +0200
@@ -14,7 +14,17 @@
class ExternalFunctionArray
Real res[1];
Real res[2];
equation
-res = {6.75, 11.25};
+res = ExternalFunctionArray.f(1.5);
end ExternalFunctionArray;
+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 ExternalFunctionArray_f.o ExternalFunctionArray_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 ExternalFunctionArray_f_records.o ExternalFunctionArray_f_records.c
+g++ -shared -Xlinker --export-all-symbols -fPIC -o ExternalFunctionArray_f.dll ExternalFunctionArray_f.o ExternalFunctionArray_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
+ExternalFunctionArray_f.makefile:20: recipe for target 'ExternalFunctionArray_f' failed
+make: *** [ExternalFunctionArray_f] Error 1
+RESULT: 2
+
Equation mismatch: omc-diff says:
Failed '{' 'E'
Line 19: Text differs:
expected: res = {
got: res = ExternalFunctionArray.f(
== 1 out of 1 tests failed [flattening/modelica/external-functions/ExternalFunctionArray.mo_temp7288, time: 7]
|