Failed
openmodelica_bootstrapping.SimplifyTest.mos (from (result.xml))
Stacktrace
Output mismatch (see stdout for details)
Standard Output
+ SimplifyTest ... equation mismatch [time: 22] ==== Log C:\Windows\TEMP/omc-rtest-OpenModelica/openmodelica/bootstrapping/SimplifyTest.mos_temp429/log-SimplifyTest.mos " " "" true "" true "Error: Error building simulator. Build log: make: Entering directory '/c/dev/jenkins/ws/Windows/OM_Win/TESTSU~1/OPENMO~1/BOOTST~1/SIMPLI~2.MOS' clang -g -DOM_HAVE_PTHREADS -Wno-parentheses-equality -falign-functions -mstackrealign -msse2 -mfpmath=sse \"-IC:/dev/jenkins/ws/Windows/OM_Win/OMCompiler/Compiler/Util/\" -I\"C:/dev/jenkins/ws/Windows/OM_Win/build/include/omc/c\" -I\"C:/dev/jenkins/ws/Windows/OM_Win/build/include/omc\" -c -o SimplifyTest_test.o SimplifyTest_test.c SimplifyTest_test.c:16984:3: error: call to undeclared function 'omc_File_File_destructor'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 16984 | omc_File_File_destructor(threadData,_file); | ^ SimplifyTest_test.c:16984:3: note: did you mean 'omc_File_File_constructor'? ./SimplifyTest_test.h:1972:18: note: 'omc_File_File_constructor' declared here 1972 | modelica_complex omc_File_File_constructor(threadData_t *threadData, modelica_metatype _fromID); | ^ SimplifyTest_test.c:17237:3: error: call to undeclared function 'omc_File_File_destructor'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 17237 | omc_File_File_destructor(threadData,_file); | ^ SimplifyTest_test.c:19107:3: error: call to undeclared function 'omc_File_File_destructor'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 19107 | omc_File_File_destructor(threadData,_file); | ^ SimplifyTest_test.c:20260:3: error: call to undeclared function 'omc_File_File_destructor'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 20260 | omc_File_File_destructor(threadData,_file); | ^ SimplifyTest_test.c:44512:3: error: call to undeclared function 'omc_System_StringAllocator_destructor'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 44512 | omc_System_StringAllocator_destructor(threadData,_sb); | ^ SimplifyTest_test.c:44512:3: note: did you mean 'omc_System_StringAllocator_constructor'? ./SimplifyTest_test.h:3459:18: note: 'omc_System_StringAllocator_constructor' declared here 3459 | modelica_complex omc_System_StringAllocator_constructor(threadData_t *threadData, modelica_integer _sz); | ^ SimplifyTest_test.c:86706:16: warning: absolute value function 'labs' given an argument of type 'modelica_integer' (aka 'long long') but has parameter of type 'long' which may cause truncation of value [-Wabsolute-value] 86706 | _i = labs(_i); | ^ SimplifyTest_test.c:86706:16: note: use function 'llabs' instead 86706 | _i = labs(_i); | ^~~~ | llabs 1 warning and 5 errors generated. make: *** [SimplifyTest_test.makefile:25: SimplifyTest_test] Error 1 make: Leaving directory '/c/dev/jenkins/ws/Windows/OM_Win/TESTSU~1/OPENMO~1/BOOTST~1/SIMPLI~2.MOS' RESULT: 2 " '' Equation mismatch: diff says: --- "C:\\Windows\\TEMP/omc-rtest-OpenModelica/openmodelica/bootstrapping/SimplifyTest.mos_temp429/equations-expected"2024-04-28 16:36:33.098561100 +0200 +++ "C:\\Windows\\TEMP/omc-rtest-OpenModelica/openmodelica/bootstrapping/SimplifyTest.mos_temp429/equations-got"2024-04-28 16:36:55.890560700 +0200 @@ -2,181 +2,43 @@ " "" true "" true -simplify(1) = 1 -simplify(2) = 2 -simplify(3) = 3 -simplify(1 + 2) = 3 -simplify(1.0) = 1.0 -simplify(x) = x -simplify(x * 1.0) = x -simplify(1.0 * x) = x -simplify(x * 1.0 + 1.0 * x) = 2.0 * x -simplify((x * 1.0 + 1.0 * x) * x) = 2.0 * x ^ 2.0 -simplify(1.0 + 1.0) = 2.0 -simplify(1.0 + 1.0 + 1.0) = 3.0 -simplify(1.0 + 1.0 + 1.0 + 1.0) = 4.0 -simplify(1.0 + 1.0 + 1.0 + 1.0 + 1.0) = 5.0 -simplify(x * x) = x ^ 2.0 -simplify(x * x * 1.0) = x ^ 2.0 -simplify(x * 1.0 + 1.0 * x + 1.0 + 1.0 + 1.0 + 1.0 + 1.0 + x * 1.0 + 1.0 * x + x * x * 1.0 + (x * 1.0 + 1.0 * x) * x + 1.0 + 1.0 + 1.0) = 2.0 * x + 5.0 + 2.0 * x + x ^ 2.0 + 2.0 * x ^ 2.0 + 3.0 -simplify((-x) / y - x / z) = (-x) * (1.0 / y + 1.0 / z) -simplify(x * y + x * z) = x * (y + z) -simplify(x * y + z * x) = x * (y + z) -simplify(y * x + z * x) = x * (y + z) -simplify(y * x + x * z) = x * (y + z) -simplify(y ^ x * z ^ x) = (y * z) ^ x -simplify(x ^ y * x ^ z) = x ^ (y + z) -simplify(x ^ y / x ^ z) = x ^ (y - z) -simplify(y / x + z / x) = (y + z) / x -simplify(y * x + z * x) = x * (y + z) -simplify(y * x - z * x) = (y - z) * x -simplify(y / x - z / x) = (y - z) / x -simplify(x * y - x / z) = (y - 1.0 / z) * x -simplify(x * y + x / z) = (y + 1.0 / z) * x -simplify(x / y - x * z) = (1.0 / y - z) * x -simplify(x / y + x * z) = (1.0 / y + z) * x -simplify(x * z + y * z) = z * (x + y) -simplify(x * z - y * z) = (x - y) * z -simplify(x / z + y / z) = (x + y) / z -simplify(x / z - y / z) = (x - y) / z -simplify(y / x * z - w / x) = (y * z - w) / x -simplify(y / x * z + w / x) = (y * z + w) / x -simplify(y * x * z - w * x) = (y * z - w) * x -simplify(y * x * z + w * x) = (y * z + w) * x -simplify(y * x * z + w * x * v) = (y * z + w * v) * x -simplify(y * x * z - w * x * v) = (y * z - w * v) * x -simplify(y / x * z + w / x * v) = (y * z + w * v) / x -simplify(y / x * z - w / x * v) = (y * z - w * v) / x -simplify(y * x - z * x * w) = (y - z * w) * x -simplify(y * x + z * x * w) = (y + z * w) * x -simplify(y / x - z / x * w) = (y - z * w) / x -simplify(y / x + z / x * w) = (y + z * w) / x -simplify(x * y - x * z) = x * (y - z) -simplify(x * y - z * y) = (x - z) * y -simplify(y * x * z - w * x) = (y * z - w) * x -simplify(y * x * z + w * x) = (y * z + w) * x -simplify(y * x / z - w * x) = x * (y / z - w) -simplify(y * x / z + w * x) = x * (y / z + w) -simplify(y * x * z - x * w) = x * (y * z - w) -simplify(y * x * z + x * w) = x * (y * z + w) -simplify(y * x / z - x * w) = x * (y / z - w) -simplify(y * x / z + x * w) = x * (y / z + w) -simplify(y * x * z - w * x) = x * (y * z - w) -simplify(y * x * z + w * x) = x * (y * z + w) -simplify(y * x / z - w * x) = x * (y / z - w) -simplify(y * x / z + w * x) = x * (y / z + w) -simplify(y * x * z - x * w) = x * (y * z - w) -simplify(y * x * z + x * w) = x * (y * z + w) -simplify(y * x / z - x * w) = x * (y / z - w) -simplify(y * x / z + x * w) = x * (y / z + w) -simplify(y * x * z - w * x * v) = x * (y * z - w * v) -simplify(y * x * z + w * x * v) = x * (y * z + w * v) -simplify(y * x * z + w * x * v) = x * (y * z + w * v) -simplify(y * x / z - w * x * v) = x * (y / z - w * v) -simplify(y * x / z + w * x * v) = x * (y / z + w * v) -simplify(y * x * z - w * x / v) = x * (y * z - w / v) -simplify(y * x * z + w * x / v) = x * (y * z + w / v) -simplify(y * x / z - w * x / v) = x * (y / z - w / v) -simplify(y * x / z + w * x / v) = x * (y / z + w / v) -simplify(y * x - z * x * w) = x * (y - z * w) -simplify(y * x + z * x * w) = x * (y + z * w) -simplify(y * x - z * x / w) = x * (y - z / w) -simplify(y * x + z * x / w) = x * (y + z / w) -simplify(x / y ^ (-z)) = x * y ^ z -simplify((y * x + z) / x) = y + z / x -simplify((y * x - z) / x) = y - z / x -simplify((y + z * x) / x) = y / x + z -simplify((y - z * x) / x) = y / x - z -simplify(abs(x) * abs(y)) = abs(x * y) -simplify(abs(x) / abs(y)) = abs(x / y) -simplify(y / exp(x)) = y * exp(-x) -simplify(exp(x) * exp(y)) = exp(x + y) -simplify(exp(x) / exp(y)) = exp(x - y) -simplify(x - x) = 0.0 -simplify(x + x) = 2.0 * x -simplify(x * x) = x ^ 2.0 -simplify(x / x) = 1.0 -simplify(0.0 / 0.0) = 0.0 / 0.0 -simplify(sqrt(x) * x) = x ^ 1.5 -simplify(x / sqrt(x)) = sqrt(x) -simplify(x / abs(x)) = sign(x) -simplify(abs(x) / x) = sign(x) -simplify(x / abs(x) * abs(x) / x) = sign(x) ^ 2.0 -simplify(sin(x) * cos(x)) = 0.5 * sin(2.0 * x) -simplify(sin(x) * cos(x)) = 0.5 * sin(2.0 * x) -simplify(sin(x) ^ 2.0 + cos(x) ^ 2.0) = 1.0 -simplify(cos(x) ^ 2.0 + sin(x) ^ 2.0) = 1.0 -simplify(cos(x) * tan(x)) = sin(x) -simplify(tan(x) * cos(x)) = sin(x) -simplify(cosh(x) ^ 2.0 + (-sinh(x) ^ 2.0)) = 1.0 -simplify((-sinh(x) ^ 2.0) + cosh(x) ^ 2.0) = 1.0 -simplify(cos(x) * tan(x)) = sin(x) -simplify(tan(x) * cos(x)) = sin(x) -simplify(x + (-y)) = x - y -simplify((-y) + x) = x - y -simplify(x + (-y) * z) = x - y * z -simplify(x + (-y) / z) = x - y / z -simplify(x * y * x) = y * x ^ 2.0 -simplify(x * x * y) = y * x ^ 2.0 -simplify(y + x * y) = y * (1.0 + x) -simplify(y + y * x) = y * (1.0 + x) -simplify(x * y + y) = y * (1.0 + x) -simplify(y * x + y) = y * (1.0 + x) -simplify(x * x ^ y) = x ^ (1.0 + y) -simplify(x ^ y * x) = x ^ (1.0 + y) -simplify(x * sqrt(x)) = x ^ 1.5 -simplify(sqrt(x) * x) = x ^ 1.5 -simplify((y * z * x + w) / x) = y * z + w / x -simplify((y * z * x - w) / x) = y * z - w / x -simplify(x - (-y) * z) = x + y * z -simplify(x - (-y) / z) = x + y / z -simplify((-x) * (x - z)) = x * (z - x) -simplify((-x) / (x - z)) = x / (z - x) -simplify((-x) ^ 2.0) = x ^ 2.0 -simplify(sqrt(x) ^ 2.0) = x -simplify(sqrt(x) ^ y) = x ^ (0.5 * y) -simplify(x / x ^ y) = x ^ (1.0 - y) -simplify(log(1.0 / x) + log(x)) = 0.0 -simplify(log(1.0 / x)) = -log(x) -simplify(log(sqrt(x))) = 0.5 * log(x) -simplify(log(1.0 / x) - log(x) + 4.0 * log(sqrt(x))) = (-log(x)) - log(x) + 2.0 * log(x) -simplify(exp(log(x) * y)) = x ^ y -simplify(exp(z * log(x) * y)) = x ^ (y * z) -simplify(exp(log(x) / y)) = x ^ (1.0 / y) -simplify(exp(z * log(x) * y) * exp(log(x) * y)) = x ^ (y * (1.0 + z)) -simplify(exp(z * log(x) * y / w)) = x ^ (y * z / w) -simplify(exp(z * log(x) * y) * exp(log(x) * y) * exp(z * log(x) * y / w)) = x ^ (y * (1.0 + z) + y * z / w) -simplify(exp(z * (-log(x) * y) / w)) = x ^ ((-y) * z / w) -simplify(exp(z * (-log(x) * y) / w) ^ exp(z * (-log(x) * y) / w)) = x ^ ((-y) * z / w * x ^ ((-y) * z / w)) -simplify(if abs(x) <= 0.0 then x else y) = if abs(x) <= 0.0 then x else y -simplify(if 0.0 < abs(x) then x else y) = if 0.0 < abs(x) then x else y -simplify(if abs(x) >= 0.0 then x else y) = x -simplify(if 0.0 > abs(x) then x else y) = y -simplify(if exp(x) + abs(x) <= 0.0 then x else y) = if exp(x) + abs(x) <= 0.0 then x else y -simplify(if 0.0 < exp(x) + abs(x) then x else y) = if 0.0 < exp(x) + abs(x) then x else y -simplify(if exp(x) + abs(x) >= 0.0 then x else y) = x -simplify(if 0.0 > exp(x) + abs(x) then x else y) = y -simplify(if exp(x) <= abs(x) then x else y) = if exp(x) <= abs(x) then x else y -simplify(if abs(x) < exp(x) then x else y) = if abs(x) < exp(x) then x else y -simplify(if abs(x) >= exp(x) then x else y) = if abs(x) >= exp(x) then x else y -simplify(if abs(x) > exp(x) then x else y) = if abs(x) > exp(x) then x else y -simplify(if (-y) + abs(x) <= 0.0 then x else y) = if abs(x) - y <= 0.0 then x else y -simplify(if 0.0 < (-y) + abs(x) then x else y) = if 0.0 < abs(x) - y then x else y -simplify(if (-y) + abs(x) >= 0.0 then x else y) = if abs(x) - y >= 0.0 then x else y -simplify(if 0.0 > (-y) + abs(x) then x else y) = if 0.0 > abs(x) - y then x else y -simplify(if x + 1.0 <= x then x else y) = if x + 1.0 <= x then x else y -simplify(if x < x + 1.0 then x else y) = if x < x + 1.0 then x else y -simplify(if x + 1.0 >= x then x else y) = x -simplify(if x > x + 1.0 then x else y) = y -simplify(if (-exp(x)) * abs(x) * cosh(x) <= 0.0 then x else y) = x -simplify(if 0.0 < (-exp(x)) * abs(x) * cosh(x) then x else y) = y -simplify(if (-exp(x)) * abs(x) * cosh(x) >= 0.0 then x else y) = if (-exp(x)) * abs(x) * cosh(x) >= 0.0 then x else y -simplify(if 0.0 > (-exp(x)) * abs(x) * cosh(x) then x else y) = if 0.0 > (-exp(x)) * abs(x) * cosh(x) then x else y -simplify(if 0.0 <= (-exp(x)) * abs(x) * cosh(x) then x else y) = if 0.0 <= (-exp(x)) * abs(x) * cosh(x) then x else y -simplify(if (-exp(x)) * abs(x) * cosh(x) < 0.0 then x else y) = if (-exp(x)) * abs(x) * cosh(x) < 0.0 then x else y -simplify(if 0.0 >= (-exp(x)) * abs(x) * cosh(x) then x else y) = x -simplify(if (-exp(x)) * abs(x) * cosh(x) > 0.0 then x else y) = y -"" +"Error: Error building simulator. Build log: make: Entering directory '/c/dev/jenkins/ws/Windows/OM_Win/TESTSU~1/OPENMO~1/BOOTST~1/SIMPLI~2.MOS' +clang -g -DOM_HAVE_PTHREADS -Wno-parentheses-equality -falign-functions -mstackrealign -msse2 -mfpmath=sse \"-IC:/dev/jenkins/ws/Windows/OM_Win/OMCompiler/Compiler/Util/\" -I\"C:/dev/jenkins/ws/Windows/OM_Win/build/include/omc/c\" -I\"C:/dev/jenkins/ws/Windows/OM_Win/build/include/omc\" -c -o SimplifyTest_test.o SimplifyTest_test.c +SimplifyTest_test.c:16984:3: error: call to undeclared function 'omc_File_File_destructor'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] +16984 | omc_File_File_destructor(threadData,_file); +| ^ +SimplifyTest_test.c:16984:3: note: did you mean 'omc_File_File_constructor'? +./SimplifyTest_test.h:1972:18: note: 'omc_File_File_constructor' declared here +1972 | modelica_complex omc_File_File_constructor(threadData_t *threadData, modelica_metatype _fromID); +| ^ +SimplifyTest_test.c:17237:3: error: call to undeclared function 'omc_File_File_destructor'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] +17237 | omc_File_File_destructor(threadData,_file); +| ^ +SimplifyTest_test.c:19107:3: error: call to undeclared function 'omc_File_File_destructor'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] +19107 | omc_File_File_destructor(threadData,_file); +| ^ +SimplifyTest_test.c:20260:3: error: call to undeclared function 'omc_File_File_destructor'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] +20260 | omc_File_File_destructor(threadData,_file); +| ^ +SimplifyTest_test.c:44512:3: error: call to undeclared function 'omc_System_StringAllocator_destructor'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] +44512 | omc_System_StringAllocator_destructor(threadData,_sb); +| ^ +SimplifyTest_test.c:44512:3: note: did you mean 'omc_System_StringAllocator_constructor'? +./SimplifyTest_test.h:3459:18: note: 'omc_System_StringAllocator_constructor' declared here +3459 | modelica_complex omc_System_StringAllocator_constructor(threadData_t *threadData, modelica_integer _sz); +| ^ +SimplifyTest_test.c:86706:16: warning: absolute value function 'labs' given an argument of type 'modelica_integer' (aka 'long long') but has parameter of type 'long' which may cause truncation of value [-Wabsolute-value] +86706 | _i = labs(_i); +| ^ +SimplifyTest_test.c:86706:16: note: use function 'llabs' instead +86706 | _i = labs(_i); +| ^~~~ +| llabs +1 warning and 5 errors generated. +make: *** [SimplifyTest_test.makefile:25: SimplifyTest_test] Error 1 +make: Leaving directory '/c/dev/jenkins/ws/Windows/OM_Win/TESTSU~1/OPENMO~1/BOOTST~1/SIMPLI~2.MOS' +RESULT: 2 +" '' Equation mismatch: omc-diff says: Line 7: Lexical token differs: expected: simplify( got: == 1 out of 1 tests failed [openmodelica/bootstrapping/SimplifyTest.mos_temp429, time: 23]