Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTable2D.Test2,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.36/2.36, allocations: 235 MB / 247.6 MB, free: 14.38 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.497e-05/3.502e-05, allocations: 4 kB / 305 MB, free: 5.566 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3909/0.3909, allocations: 54.85 MB / 359.9 MB, free: 2.684 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1473/0.5383, allocations: 80.97 MB / 440.8 MB, free: 24 kB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000274/0.5386, allocations: 67.97 kB / 440.9 MB, free: 15.96 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01993/0.5586, allocations: 5.42 MB / 446.3 MB, free: 10.55 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.753e-06/0.5586, allocations: 0 / 446.3 MB, free: 10.55 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.934e-05/0.5587, allocations: 4 kB / 446.3 MB, free: 10.55 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0007716/0.5595, allocations: 0.5732 MB / 446.9 MB, free: 9.926 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.226e-05/0.5595, allocations: 12.03 kB / 446.9 MB, free: 9.914 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.598e-05/0.5596, allocations: 34.56 kB / 446.9 MB, free: 9.871 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001016/0.5597, allocations: 39.44 kB / 447 MB, free: 9.832 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006293/0.5603, allocations: 312.2 kB / 447.3 MB, free: 9.484 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.875e-05/0.5604, allocations: 8.562 kB / 447.3 MB, free: 9.477 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.491e-05/0.5604, allocations: 0 / 447.3 MB, free: 9.477 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001457/0.5606, allocations: 53.64 kB / 447.3 MB, free: 9.418 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.271e-05/0.5606, allocations: 3.062 kB / 447.3 MB, free: 9.418 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.082e-05/0.5606, allocations: 4 kB / 447.3 MB, free: 9.414 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.53e-06/0.5606, allocations: 0 / 447.3 MB, free: 9.414 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.399e-05/0.5607, allocations: 19.94 kB / 447.4 MB, free: 9.395 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007971/0.5615, allocations: 426.3 kB / 447.8 MB, free: 8.93 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002366/0.5618, allocations: 43.22 kB / 447.8 MB, free: 8.879 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.581e-05/0.5618, allocations: 12.86 kB / 447.8 MB, free: 8.863 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.767e-05/0.5619, allocations: 4 kB / 447.8 MB, free: 8.859 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.668e-05/0.5619, allocations: 38.5 kB / 447.9 MB, free: 8.812 MB / 378.7 MB Notification: Performance of pre-optimization done (n=3): time 2.234e-06/0.5619, allocations: 0 / 447.9 MB, free: 8.812 MB / 378.7 MB Notification: Performance of matching and sorting (n=5): time 0.0006403/0.5626, allocations: 176.3 kB / 448 MB, free: 8.633 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.409e-05/0.5626, allocations: 51.41 kB / 448.1 MB, free: 8.57 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001877/0.5645, allocations: 0.7703 MB / 448.9 MB, free: 7.797 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.697e-05/0.5646, allocations: 29.7 kB / 448.9 MB, free: 7.762 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002097/0.5648, allocations: 242.4 kB / 449.1 MB, free: 7.523 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.584e-05/0.5648, allocations: 11.75 kB / 449.1 MB, free: 7.512 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.242e-06/0.5649, allocations: 0 / 449.1 MB, free: 7.512 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001216/0.565, allocations: 322.8 kB / 449.5 MB, free: 7.188 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.271e-05/0.5651, allocations: 12 kB / 449.5 MB, free: 7.176 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.222e-05/0.5651, allocations: 8 kB / 449.5 MB, free: 7.168 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.624e-05/0.5652, allocations: 41.69 kB / 449.5 MB, free: 7.121 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.5652, allocations: 4 kB / 449.5 MB, free: 7.117 MB / 378.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002062/0.5654, allocations: 98.02 kB / 449.6 MB, free: 7.012 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.033e-05/0.5655, allocations: 31.11 kB / 449.7 MB, free: 6.977 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.514e-06/0.5655, allocations: 0 / 449.7 MB, free: 6.977 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.672e-05/0.5655, allocations: 0 / 449.7 MB, free: 6.977 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001443/0.5657, allocations: 19.92 kB / 449.7 MB, free: 6.957 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.574e-06/0.5657, allocations: 0 / 449.7 MB, free: 6.957 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001453/0.5659, allocations: 8 kB / 449.7 MB, free: 6.949 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.067e-05/0.5659, allocations: 0 / 449.7 MB, free: 6.949 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 (6): * Single equations (assignments): 5 * 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.603e-05/0.566, allocations: 120.9 kB / 449.8 MB, free: 6.824 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001153/0.5661, allocations: 39.44 kB / 449.8 MB, free: 6.785 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003121/0.5664, allocations: 113 kB / 449.9 MB, free: 6.664 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.632e-06/0.5664, allocations: 4.141 kB / 449.9 MB, free: 6.66 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.5665, allocations: 0 / 449.9 MB, free: 6.66 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.223e-06/0.5665, allocations: 7.969 kB / 450 MB, free: 6.652 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001065/0.5675, allocations: 0.553 MB / 450.5 MB, free: 6.043 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.5676, allocations: 4 kB / 450.5 MB, free: 6.039 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001307/0.5677, allocations: 17.77 kB / 450.5 MB, free: 6.023 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.031e-06/0.5677, allocations: 0 / 450.5 MB, free: 6.023 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.253e-05/0.5678, allocations: 0.875 kB / 450.5 MB, free: 6.023 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.308e-06/0.5678, allocations: 1.641 kB / 450.5 MB, free: 6.023 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.611e-06/0.5678, allocations: 4 kB / 450.5 MB, free: 6.02 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002946/0.5681, allocations: 193.8 kB / 450.7 MB, free: 5.816 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002769/0.5684, allocations: 164.5 kB / 450.9 MB, free: 5.637 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.842e-05/0.5685, allocations: 0 / 450.9 MB, free: 5.637 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001638/0.5686, allocations: 11.98 kB / 450.9 MB, free: 5.625 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.541e-05/0.5687, allocations: 4 kB / 450.9 MB, free: 5.621 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.152e-05/0.5687, allocations: 4 kB / 450.9 MB, free: 5.617 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001129/0.5699, allocations: 0.6263 MB / 451.5 MB, free: 4.992 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.31e-07/0.5699, allocations: 0 / 451.5 MB, free: 4.992 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004609/0.5703, allocations: 55.94 kB / 451.6 MB, free: 4.938 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 (5): * Single equations (assignments): 5 * 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.001306/0.5717, allocations: 0.9057 MB / 452.5 MB, free: 4.074 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002304/0.5719, allocations: 87.34 kB / 452.6 MB, free: 3.977 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.5719, allocations: 3.938 kB / 452.6 MB, free: 3.973 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 5.438e-05/0.572, allocations: 12 kB / 452.6 MB, free: 3.961 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003577/0.5724, allocations: 29.08 kB / 452.6 MB, free: 3.938 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002014/0.5744, allocations: 0.8328 MB / 453.5 MB, free: 3.062 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005273/0.575, allocations: 0.8301 MB / 454.3 MB, free: 2.203 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002476/0.5752, allocations: 107.6 kB / 454.4 MB, free: 2.098 MB / 378.7 MB Notification: Performance of SimCode: time 9.02e-07/0.5752, allocations: 4 kB / 454.4 MB, free: 2.094 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=6 -DPMC_USE_SUNDIALS -DFMU_BUILD -DRUNTIME_STATIC_LINKING -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp" -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -I"." -DUSE_LOGGER -c -o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test2CalcHelperMain.o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test2CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test2CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test2FMU.cpp:11: /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../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) { ^ 1 warning generated. clang++ -shared -o ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test2.so OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test2CalcHelperMain.o -L"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/Tables" "-L/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc" "-L/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/" "-L/var/lib/hudson/.openmodelica/binaries/Modelica" -Wl,-rpath="/var/lib/hudson/.openmodelica/binaries/Modelica" "-L/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Resources/Library/x86_64-linux" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Resources/Library/x86_64-linux" "-L/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Resources/Library/linux64" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Resources/Library/linux64" "-L/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Resources/Library" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Resources/Library" -lModelicaStandardTables -lModelicaIO -lModelicaMatIO -lzlib -lOMCppModelicaUtilities_static -lOMCppDgesv_static /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/cpp/libModelicaMatIO.a(ModelicaMatIO.c.o): In function `Mat_VarDelete': /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/3rdParty/ModelicaExternalC/C-Sources/ModelicaMatIO.c:4972: warning: the use of `mktemp' is dangerous, better use `mkstemp' or `mkdtemp' /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/cpp/libModelicaMatIO.a(ModelicaMatIO.c.o): In function `strdup_vprintf': /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/3rdParty/ModelicaExternalC/C-Sources/ModelicaMatIO.c:1469: undefined reference to `rpl_vsnprintf' /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/3rdParty/ModelicaExternalC/C-Sources/ModelicaMatIO.c:1476: undefined reference to `rpl_vsnprintf' /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/3rdParty/ModelicaExternalC/C-Sources/ModelicaMatIO.c:1469: undefined reference to `rpl_vsnprintf' /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/3rdParty/ModelicaExternalC/C-Sources/ModelicaMatIO.c:1476: undefined reference to `rpl_vsnprintf' /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/cpp/libModelicaMatIO.a(ModelicaMatIO.c.o): In function `Mat_Create5': /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/3rdParty/ModelicaExternalC/C-Sources/ModelicaMatIO.c:7716: undefined reference to `rpl_snprintf' /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/3rdParty/ModelicaExternalC/C-Sources/ModelicaMatIO.c:7711: undefined reference to `rpl_snprintf' clang: error: linker command failed with exit code 1 (use -v to see invocation) ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test2_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test2.fmu' failed make: *** [ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test2.fmu] Error 1