Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTable2Ds.Test26,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test26",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.502/2.502, allocations: 270 MB / 282.7 MB, free: 1.871 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 4.016e-05/4.024e-05, allocations: 8 kB / 347.1 MB, free: 3.117 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3917/0.3918, allocations: 61.86 MB / 408.9 MB, free: 10.76 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.161/0.5528, allocations: 88.54 MB / 497.5 MB, free: 2.098 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000239/0.5531, allocations: 75.95 kB / 497.5 MB, free: 2.023 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01987/0.573, allocations: 4.558 MB / 0.4903 GB, free: 13.46 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.905e-06/0.5731, allocations: 0 / 0.4903 GB, free: 13.46 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.85e-05/0.5731, allocations: 0 / 0.4903 GB, free: 13.46 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0007655/0.5739, allocations: 406.1 kB / 0.4907 GB, free: 13.02 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.326e-05/0.574, allocations: 12.03 kB / 0.4907 GB, free: 13 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.204e-05/0.5741, allocations: 34.56 kB / 0.4908 GB, free: 12.96 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6e-05/0.5741, allocations: 7.906 kB / 0.4908 GB, free: 12.95 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004123/0.5746, allocations: 210.8 kB / 0.491 GB, free: 12.71 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.521e-05/0.5746, allocations: 0 / 0.491 GB, free: 12.71 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.682e-05/0.5747, allocations: 4 kB / 0.491 GB, free: 12.7 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002214/0.5749, allocations: 57.56 kB / 0.491 GB, free: 12.64 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.162e-05/0.575, allocations: 4 kB / 0.491 GB, free: 12.64 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.124e-05/0.575, allocations: 4 kB / 0.491 GB, free: 12.63 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.313e-05/0.575, allocations: 4 kB / 0.491 GB, free: 12.63 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001302/0.5752, allocations: 23.94 kB / 0.4911 GB, free: 12.61 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000723/0.5759, allocations: 308.7 kB / 0.4914 GB, free: 12.25 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003287/0.5763, allocations: 46.56 kB / 0.4914 GB, free: 12.2 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.103e-05/0.5764, allocations: 12.98 kB / 0.4914 GB, free: 12.18 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.171e-05/0.5764, allocations: 8.094 kB / 0.4914 GB, free: 12.18 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.495e-05/0.5765, allocations: 34.5 kB / 0.4914 GB, free: 12.13 MB / 426.7 MB Notification: Performance of pre-optimization done (n=5): time 3.376e-06/0.5765, allocations: 0 / 0.4914 GB, free: 12.13 MB / 426.7 MB Notification: Performance of matching and sorting (n=11): time 0.001329/0.5779, allocations: 209.1 kB / 0.4916 GB, free: 11.92 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.146e-05/0.5779, allocations: 55.41 kB / 0.4917 GB, free: 11.86 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003822/0.5784, allocations: 168 kB / 0.4919 GB, free: 11.69 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.795e-05/0.5784, allocations: 25.7 kB / 0.4919 GB, free: 11.66 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001173/0.5785, allocations: 170.5 kB / 0.492 GB, free: 11.49 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.232e-05/0.5786, allocations: 35.47 kB / 0.4921 GB, free: 11.45 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.198e-05/0.5787, allocations: 0 / 0.4921 GB, free: 11.45 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001984/0.5789, allocations: 318.8 kB / 0.4924 GB, free: 11.13 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001141/0.579, allocations: 24 kB / 0.4924 GB, free: 11.11 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001094/0.5792, allocations: 27.94 kB / 0.4924 GB, free: 11.08 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001295/0.5793, allocations: 31.98 kB / 0.4925 GB, free: 11.05 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.604e-06/0.5793, allocations: 0 / 0.4925 GB, free: 11.05 MB / 426.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003817/0.5797, allocations: 94.02 kB / 0.4926 GB, free: 10.95 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.553e-05/0.5798, allocations: 7.938 kB / 0.4926 GB, free: 10.95 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.398e-06/0.5798, allocations: 0 / 0.4926 GB, free: 10.95 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.116e-05/0.5798, allocations: 0 / 0.4926 GB, free: 10.95 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003561/0.5802, allocations: 27.98 kB / 0.4926 GB, free: 10.92 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.551e-05/0.5803, allocations: 7.953 kB / 0.4926 GB, free: 10.91 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002161/0.5805, allocations: 15.98 kB / 0.4926 GB, free: 10.89 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.548e-05/0.5805, allocations: 4 kB / 0.4926 GB, free: 10.89 MB / 426.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 (11): * Single equations (assignments): 11 * 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 prepare postOptimizeDAE: time 0.0001391/0.5807, allocations: 108.9 kB / 0.4927 GB, free: 10.78 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.263e-05/0.5808, allocations: 15.81 kB / 0.4927 GB, free: 10.76 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005251/0.5814, allocations: 130.2 kB / 0.4929 GB, free: 10.63 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.118e-05/0.5814, allocations: 4 kB / 0.4929 GB, free: 10.62 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.524e-06/0.5814, allocations: 0 / 0.4929 GB, free: 10.62 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.148e-05/0.5814, allocations: 7.953 kB / 0.4929 GB, free: 10.62 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001089/0.5825, allocations: 444 kB / 0.4933 GB, free: 10.12 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.558e-06/0.5826, allocations: 0 / 0.4933 GB, free: 10.12 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003704/0.583, allocations: 35.91 kB / 0.4933 GB, free: 10.09 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.631e-05/0.583, allocations: 8.016 kB / 0.4933 GB, free: 10.08 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.797e-05/0.5831, allocations: 8 kB / 0.4933 GB, free: 10.07 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.811e-06/0.5831, allocations: 0 / 0.4933 GB, free: 10.07 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.028e-05/0.5831, allocations: 4.375 kB / 0.4933 GB, free: 10.07 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005055/0.5836, allocations: 244.4 kB / 0.4936 GB, free: 9.793 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001207/0.5838, allocations: 89.02 kB / 0.4937 GB, free: 9.688 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.108e-05/0.5838, allocations: 11.98 kB / 0.4937 GB, free: 9.676 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002826/0.5841, allocations: 12 kB / 0.4937 GB, free: 9.664 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.196e-05/0.5843, allocations: 11.98 kB / 0.4937 GB, free: 9.652 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2e-05/0.5843, allocations: 4 kB / 0.4937 GB, free: 9.648 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0006207/0.5849, allocations: 141.3 kB / 0.4938 GB, free: 9.512 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.302e-06/0.585, allocations: 0 / 0.4938 GB, free: 9.512 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0007768/0.5858, allocations: 39.94 kB / 0.4939 GB, free: 9.473 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 11 * 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.003105/0.5889, allocations: 1.259 MB / 0.4951 GB, free: 8.328 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0003967/0.5894, allocations: 67.94 kB / 0.4952 GB, free: 8.262 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.801e-06/0.5894, allocations: 0 / 0.4952 GB, free: 8.262 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001778/0.5896, allocations: 47.92 kB / 0.4952 GB, free: 8.215 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004732/0.5901, allocations: 16.17 kB / 0.4952 GB, free: 8.199 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001309/0.5914, allocations: 298.1 kB / 0.4955 GB, free: 7.855 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004547/0.5919, allocations: 0.7121 MB / 0.4962 GB, free: 7.117 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001669/0.5921, allocations: 35.42 kB / 0.4962 GB, free: 7.082 MB / 426.7 MB Notification: Performance of SimCode: time 4.147e-06/0.5921, allocations: 0 / 0.4962 GB, free: 7.082 MB / 426.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"." "-I/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/C-Sources" -DUSE_LOGGER -c -o OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test26CalcHelperMain.o OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test26CalcHelperMain.cpp In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test26CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test26FMU.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_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test26.so OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test26CalcHelperMain.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 trunk/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 trunk/Resources/Library/x86_64-linux" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/Library/x86_64-linux" "-L/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/Library/linux64" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/Library/linux64" "-L/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/Library" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/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_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test26_FMU.makefile:93: recipe for target 'ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test26.fmu' failed make: *** [ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test26.fmu] Error 1