Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTable2D.Test18_usertab.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTable2D.Test18_usertab,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test18_usertab",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.283/2.283, allocations: 235.1 MB / 243 MB, free: 9.582 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.386e-05/2.416e-05, allocations: 0 / 303.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3779/0.3779, allocations: 54.86 MB / 358.1 MB, free: 14.85 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1419/0.5199, allocations: 80.36 MB / 438.5 MB, free: 14.38 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002564/0.5202, allocations: 67.97 kB / 438.6 MB, free: 14.31 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01231/0.5326, allocations: 2.896 MB / 441.5 MB, free: 11.41 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.5326, allocations: 0 / 441.5 MB, free: 11.41 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.248e-05/0.5326, allocations: 0 / 441.5 MB, free: 11.41 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0007076/0.5334, allocations: 431.9 kB / 441.9 MB, free: 10.94 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.936e-05/0.5334, allocations: 8.031 kB / 441.9 MB, free: 10.93 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.177e-05/0.5335, allocations: 15.86 kB / 441.9 MB, free: 10.91 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000283/0.5338, allocations: 190.9 kB / 442.1 MB, free: 10.69 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.381e-05/0.5338, allocations: 4 kB / 442.1 MB, free: 10.68 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.577e-05/0.5339, allocations: 8 kB / 442.1 MB, free: 10.68 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000128/0.534, allocations: 23.94 kB / 442.1 MB, free: 10.65 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001553/0.5342, allocations: 75.31 kB / 442.2 MB, free: 10.57 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.175e-05/0.5342, allocations: 4 kB / 442.2 MB, free: 10.56 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.693e-05/0.5342, allocations: 3.953 kB / 442.2 MB, free: 10.56 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.109e-06/0.5342, allocations: 0 / 442.2 MB, free: 10.56 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004218/0.5347, allocations: 273.3 kB / 442.5 MB, free: 10.25 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001402/0.5348, allocations: 42.56 kB / 442.5 MB, free: 10.2 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.445e-05/0.5349, allocations: 20.98 kB / 442.5 MB, free: 10.18 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.063e-05/0.5349, allocations: 4 kB / 442.5 MB, free: 10.18 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.217e-05/0.535, allocations: 38.45 kB / 442.6 MB, free: 10.13 MB / 378.7 MB Notification: Performance of pre-optimization done (n=5): time 1.773e-06/0.535, allocations: 0 / 442.6 MB, free: 10.13 MB / 378.7 MB Notification: Performance of matching and sorting (n=8): time 0.001085/0.5361, allocations: 199.2 kB / 442.8 MB, free: 9.93 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.569e-05/0.5361, allocations: 81.11 kB / 442.8 MB, free: 9.832 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001244/0.5363, allocations: 116.9 kB / 443 MB, free: 9.711 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.997e-05/0.5363, allocations: 25.7 kB / 443 MB, free: 9.68 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.766e-05/0.5364, allocations: 162.7 kB / 443.1 MB, free: 9.516 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.235e-05/0.5365, allocations: 23.66 kB / 443.2 MB, free: 9.492 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.068e-05/0.5365, allocations: 0 / 443.2 MB, free: 9.492 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000112/0.5366, allocations: 314.8 kB / 443.5 MB, free: 9.176 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.686e-05/0.5367, allocations: 28 kB / 443.5 MB, free: 9.148 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.056e-05/0.5368, allocations: 33.66 kB / 443.5 MB, free: 9.109 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.726e-05/0.5369, allocations: 23.98 kB / 443.6 MB, free: 9.086 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/0.5369, allocations: 0 / 443.6 MB, free: 9.086 MB / 378.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002472/0.5371, allocations: 97.56 kB / 443.7 MB, free: 8.984 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.387e-05/0.5372, allocations: 37.66 kB / 443.7 MB, free: 8.941 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.5372, allocations: 0 / 443.7 MB, free: 8.941 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.316e-05/0.5372, allocations: 0 / 443.7 MB, free: 8.941 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000393/0.5376, allocations: 43.95 kB / 443.7 MB, free: 8.898 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.12e-06/0.5377, allocations: 0 / 443.7 MB, free: 8.898 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002793/0.538, allocations: 35.97 kB / 443.8 MB, free: 8.863 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.856e-05/0.538, allocations: 4 kB / 443.8 MB, free: 8.859 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.876e-05/0.5381, allocations: 107 kB / 443.9 MB, free: 8.75 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002295/0.5383, allocations: 89.66 kB / 444 MB, free: 8.656 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.32e-05/0.5384, allocations: 11.86 kB / 444 MB, free: 8.645 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002929/0.5387, allocations: 106.2 kB / 444.1 MB, free: 8.531 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.917e-06/0.5387, allocations: 0 / 444.1 MB, free: 8.531 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.5387, allocations: 0 / 444.1 MB, free: 8.531 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.132e-06/0.5387, allocations: 4 kB / 444.1 MB, free: 8.527 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005315/0.5393, allocations: 347 kB / 444.4 MB, free: 8.145 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.736e-06/0.5393, allocations: 0 / 444.4 MB, free: 8.145 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003506/0.5397, allocations: 51.97 kB / 444.5 MB, free: 8.094 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.899e-06/0.5397, allocations: 0 / 444.5 MB, free: 8.094 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.739e-05/0.5397, allocations: 3.984 kB / 444.5 MB, free: 8.09 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.495e-06/0.5397, allocations: 192 / 444.5 MB, free: 8.09 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.5397, allocations: 0 / 444.5 MB, free: 8.09 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002625/0.54, allocations: 187.7 kB / 444.7 MB, free: 7.891 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.554e-05/0.5401, allocations: 88.97 kB / 444.7 MB, free: 7.785 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.668e-05/0.5401, allocations: 0 / 444.7 MB, free: 7.785 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003186/0.5404, allocations: 39.95 kB / 444.8 MB, free: 7.746 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.382e-05/0.5405, allocations: 7.984 kB / 444.8 MB, free: 7.738 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.118e-05/0.5406, allocations: 4.281 kB / 444.8 MB, free: 7.734 MB / 378.7 MB Notification: Performance of sorting global known variables: time 8.075e-05/0.5406, allocations: 100.2 kB / 444.9 MB, free: 7.637 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.6e-07/0.5407, allocations: 0 / 444.9 MB, free: 7.637 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003878/0.5411, allocations: 35.92 kB / 444.9 MB, free: 7.602 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001402/0.5425, allocations: 0.9394 MB / 445.9 MB, free: 6.684 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002796/0.5428, allocations: 115.4 kB / 446 MB, free: 6.559 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.5428, allocations: 0 / 446 MB, free: 6.559 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001027/0.5429, allocations: 35.94 kB / 446 MB, free: 6.523 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002739/0.5432, allocations: 7.938 kB / 446 MB, free: 6.516 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000632/0.5438, allocations: 203.4 kB / 446.2 MB, free: 6.273 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002642/0.5441, allocations: 0.7002 MB / 446.9 MB, free: 5.547 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001241/0.5443, allocations: 35.36 kB / 447 MB, free: 5.512 MB / 378.7 MB Notification: Performance of SimCode: time 9.42e-07/0.5443, allocations: 0 / 447 MB, free: 5.512 MB / 378.7 MB Error: Error building simulator. Build log: clang++ -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DSUNDIALS_MAJOR_VERSION=2 -DSUNDIALS_MINOR_VERSION=7 -DPMC_USE_SUNDIALS -DFMU_BUILD -DRUNTIME_STATIC_LINKING -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/include/omc/cpp" -I"." -I"." -I"." "-I/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Resources/Data/Tables" -DUSE_LOGGER -c -o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test18_usertabCalcHelperMain.o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test18_usertabCalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test18_usertabCalcHelperMain.cpp:28: In file included from ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test18_usertabFunctions.cpp:5: In file included from /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Resources/Data/Tables/usertab.c:14: /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Resources/Data/Tables/usertab.h:75:13: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] {"TestTable_1D_Time", TestTable_1D_Time, 0, {6, 2}} ^ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Resources/Data/Tables/usertab.h:76:13: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] ,{"TestTable_1D_a" , TestTable_1D_a, 1, {4, 2}} ^ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Resources/Data/Tables/usertab.h:77:13: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] ,{"TestTable_1D_b" , TestTable_1D_b, 1, {5, 3}} ^ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Resources/Data/Tables/usertab.h:78:13: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] ,{"TestTable_2D" , TestTable_2D, 2, {5, 4}} ^ In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test18_usertabCalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test18_usertabFMU.cpp:11: /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/include/omc/cpp/FMU2/FMU2Wrapper.cpp:93:11: warning: 6 enumeration values not handled in switch: 'LC_INIT', 'LC_LS', 'LC_SOLVER'... [-Wswitch] switch (cat) { ^ 5 warnings generated. clang++ -shared -o ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test18_usertab.so OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test18_usertabCalcHelperMain.o -L"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/x86_64-linux-gnu/omc/cpp" -Wl,--no-undefined -lOMCppSystem_static -lOMCppMath_static -lOMCppModelicaUtilities_static -lOMCppFMU_static -lOMCppNewton_static -lOMCppDgesvSolver_static -lOMCppSolver_static -lOMCppExtensionUtilities_static -L"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/Tables" "-L/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/x86_64-linux-gnu/omc" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/x86_64-linux-gnu/omc" "-L/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/" "-L/var/lib/hudson/.openmodelica/binaries/Modelica" -Wl,-rpath="/var/lib/hudson/.openmodelica/binaries/Modelica" "-L/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Resources/Library/x86_64-linux" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Resources/Library/x86_64-linux" "-L/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Resources/Library/linux64" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Resources/Library/linux64" "-L/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Resources/Library" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Resources/Library" -lModelicaExternalC -lModelicaStandardTables -lModelicaIO -lModelicaMatIO -lzlib -lOMCppModelicaUtilities_static -lOMCppDgesv_static /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/x86_64-linux-gnu/omc/cpp/libModelicaStandardTables.a(ModelicaStandardTables.c.o): In function `usertab': /var/lib/hudson/slave/workspace/OpenModelica_TEST_LIBS/OpenModelica/OMCompiler/3rdParty/ModelicaExternalC/C-Sources/ModelicaStandardTables.c:5704: multiple definition of `usertab' OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test18_usertabCalcHelperMain.o:/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Resources/Data/Tables/usertab.c:38: first defined here /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/x86_64-linux-gnu/omc/cpp/libModelicaMatIO.a(ModelicaMatIO.c.o): In function `Mat_VarDelete': /var/lib/hudson/slave/workspace/OpenModelica_TEST_LIBS/OpenModelica/OMCompiler/3rdParty/ModelicaExternalC/C-Sources/ModelicaMatIO.c:7581: warning: the use of `mktemp' is dangerous, better use `mkstemp' or `mkdtemp' clang: error: linker command failed with exit code 1 (use -v to see invocation) ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test18_usertab_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test18_usertab.fmu' failed make: *** [ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test18_usertab.fmu] Error 1