Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTable2D.Test18_usertab,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable2D_Test18_usertab",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.065/2.065, allocations: 209.4 MB / 216.9 MB, free: 6.668 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.169e-05/3.178e-05, allocations: 0 / 267.6 MB, free: 5.32 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.133/0.1331, allocations: 48.69 MB / 316.3 MB, free: 4.527 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4243/0.5575, allocations: 74.15 MB / 390.5 MB, free: 2.082 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000263/0.5578, allocations: 74.73 kB / 390.5 MB, free: 2.043 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01241/0.5702, allocations: 2.751 MB / 393.3 MB, free: 15.71 MB / 330.7 MB Notification: Performance of FrontEnd: time 6.091e-06/0.5703, allocations: 0.9844 kB / 393.3 MB, free: 15.71 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.335e-05/0.5703, allocations: 7.938 kB / 393.3 MB, free: 15.71 MB / 330.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.0007362/0.571, allocations: 430.9 kB / 393.7 MB, free: 15.24 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.261e-05/0.5711, allocations: 8.031 kB / 393.7 MB, free: 15.23 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.219e-05/0.5712, allocations: 7.828 kB / 393.7 MB, free: 15.23 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002655/0.5714, allocations: 190.2 kB / 393.9 MB, free: 15.01 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.479e-05/0.5715, allocations: 4 kB / 393.9 MB, free: 15 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.587e-05/0.5715, allocations: 4 kB / 393.9 MB, free: 15 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001319/0.5717, allocations: 29.69 kB / 393.9 MB, free: 14.98 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001577/0.5718, allocations: 70.02 kB / 394 MB, free: 14.91 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.225e-05/0.5719, allocations: 0 / 394 MB, free: 14.91 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.431e-05/0.5719, allocations: 0 / 394 MB, free: 14.91 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.309e-06/0.5719, allocations: 0 / 394 MB, free: 14.91 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004535/0.5724, allocations: 282.2 kB / 394.3 MB, free: 14.61 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001415/0.5725, allocations: 52.94 kB / 394.3 MB, free: 14.56 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.558e-05/0.5726, allocations: 16.23 kB / 394.4 MB, free: 14.55 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.849e-05/0.5726, allocations: 0 / 394.4 MB, free: 14.55 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.666e-05/0.5727, allocations: 34 kB / 394.4 MB, free: 14.51 MB / 330.7 MB Notification: Performance of pre-optimization done (n=5): time 1.693e-06/0.5727, allocations: 0 / 394.4 MB, free: 14.51 MB / 330.7 MB Notification: Performance of matching and sorting (n=8): time 0.001143/0.5739, allocations: 212.4 kB / 394.6 MB, free: 14.32 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.015e-05/0.5739, allocations: 81.06 kB / 394.7 MB, free: 14.22 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001301/0.5741, allocations: 118.4 kB / 394.8 MB, free: 14.11 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.438e-05/0.5741, allocations: 25.7 kB / 394.8 MB, free: 14.08 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.908e-05/0.5742, allocations: 161.4 kB / 395 MB, free: 13.92 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.85e-05/0.5743, allocations: 22.5 kB / 395 MB, free: 13.9 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.019e-05/0.5743, allocations: 0 / 395 MB, free: 13.9 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001256/0.5744, allocations: 318.5 kB / 395.3 MB, free: 13.59 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.277e-05/0.5745, allocations: 23.25 kB / 395.3 MB, free: 13.57 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.335e-05/0.5746, allocations: 37.03 kB / 395.4 MB, free: 13.54 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.949e-05/0.5747, allocations: 26.67 kB / 395.4 MB, free: 13.52 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.5747, allocations: 0 / 395.4 MB, free: 13.52 MB / 330.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002402/0.575, allocations: 84 kB / 395.5 MB, free: 13.45 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.614e-05/0.575, allocations: 29.7 kB / 395.5 MB, free: 13.41 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.753e-06/0.5751, allocations: 0 / 395.5 MB, free: 13.41 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.559e-05/0.5751, allocations: 4.281 kB / 395.5 MB, free: 13.41 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003857/0.5755, allocations: 51.92 kB / 395.6 MB, free: 13.36 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.808e-06/0.5755, allocations: 0 / 395.6 MB, free: 13.36 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002876/0.5758, allocations: 50.42 kB / 395.6 MB, free: 13.31 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.79e-05/0.5758, allocations: 4 kB / 395.6 MB, free: 13.31 MB / 330.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 0.0001035/0.5759, allocations: 101 kB / 395.7 MB, free: 13.2 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002374/0.5762, allocations: 80.34 kB / 395.8 MB, free: 13.13 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.355e-05/0.5762, allocations: 7.906 kB / 395.8 MB, free: 13.12 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003075/0.5766, allocations: 108.7 kB / 395.9 MB, free: 13.04 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.079e-06/0.5766, allocations: 0 / 395.9 MB, free: 13.04 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.026e-06/0.5766, allocations: 3.953 kB / 395.9 MB, free: 13.03 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.057e-06/0.5766, allocations: 4 kB / 395.9 MB, free: 13.03 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000576/0.5772, allocations: 341.5 kB / 396.2 MB, free: 12.68 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.895e-06/0.5772, allocations: 0 / 396.2 MB, free: 12.68 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003615/0.5776, allocations: 47.91 kB / 396.3 MB, free: 12.64 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.959e-06/0.5776, allocations: 4 kB / 396.3 MB, free: 12.63 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.579e-05/0.5776, allocations: 3.984 kB / 396.3 MB, free: 12.63 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.36e-06/0.5776, allocations: 3.953 kB / 396.3 MB, free: 12.62 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.826e-06/0.5777, allocations: 0 / 396.3 MB, free: 12.62 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002622/0.5779, allocations: 184.1 kB / 396.5 MB, free: 12.45 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.108e-05/0.578, allocations: 89 kB / 396.6 MB, free: 12.34 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.117e-05/0.578, allocations: 0 / 396.6 MB, free: 12.34 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003122/0.5784, allocations: 35.95 kB / 396.6 MB, free: 12.31 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.808e-05/0.5785, allocations: 19.5 kB / 396.6 MB, free: 12.29 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.22e-05/0.5785, allocations: 192 / 396.6 MB, free: 12.29 MB / 330.7 MB Notification: Performance of sorting global known variables: time 8.242e-05/0.5786, allocations: 93.97 kB / 396.7 MB, free: 12.21 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.5786, allocations: 0 / 396.7 MB, free: 12.21 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004132/0.579, allocations: 35.98 kB / 396.8 MB, free: 12.17 MB / 330.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.001286/0.5803, allocations: 0.9163 MB / 397.7 MB, free: 11.3 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002901/0.5806, allocations: 119.3 kB / 397.8 MB, free: 11.19 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.088e-06/0.5807, allocations: 0 / 397.8 MB, free: 11.19 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 9.849e-05/0.5808, allocations: 30.75 kB / 397.8 MB, free: 11.17 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003056/0.5811, allocations: 7.953 kB / 397.8 MB, free: 11.16 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000712/0.5818, allocations: 197.3 kB / 398 MB, free: 10.94 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003045/0.5821, allocations: 0.6963 MB / 398.7 MB, free: 10.21 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001341/0.5823, allocations: 24.92 kB / 398.7 MB, free: 10.2 MB / 330.7 MB Notification: Performance of SimCode: time 1.373e-06/0.5823, allocations: 0 / 398.7 MB, free: 10.2 MB / 330.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.1/Resources/Data/Tables" -DUSE_LOGGER -c -o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable2D_Test18_usertabCalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable2D_Test18_usertabCalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable2D_Test18_usertabCalcHelperMain.cpp:28: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable2D_Test18_usertabFunctions.cpp:5: In file included from /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Resources/Data/Tables/usertab.c:14: /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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.1/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.1/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.1/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_1_cpp_ModelicaTest_Tables_CombiTable2D_Test18_usertabCalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_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_1_cpp_ModelicaTest_Tables_CombiTable2D_Test18_usertab.so OMCppModelicaTest_3_2_1_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.1/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.1/Resources/Library/x86_64-linux" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Resources/Library/x86_64-linux" "-L/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Resources/Library/linux64" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Resources/Library/linux64" "-L/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Resources/Library" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Resources/Library" -lModelicaExternalC -lModelicaStandardTables -lModelicaIO -lModelicaMatIO -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_1_cpp_ModelicaTest_Tables_CombiTable2D_Test18_usertabCalcHelperMain.o:/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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_1_cpp_ModelicaTest_Tables_CombiTable2D_Test18_usertab_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable2D_Test18_usertab.fmu' failed make: *** [ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable2D_Test18_usertab.fmu] Error 1