Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTable2Ds.Test5,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test5",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.579/2.579, allocations: 270 MB / 282.6 MB, free: 1.824 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.461e-05/3.451e-05, allocations: 4 kB / 347.1 MB, free: 3.105 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3952/0.3952, allocations: 61.87 MB / 408.9 MB, free: 10.73 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.162/0.5573, allocations: 88.48 MB / 497.4 MB, free: 2.125 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002881/0.5577, allocations: 71.97 kB / 497.5 MB, free: 2.055 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03073/0.5884, allocations: 7.846 MB / 0.4935 GB, free: 10.19 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.5885, allocations: 0 / 0.4935 GB, free: 10.19 MB / 426.7 MB Notification: Performance of Transformations before backend: time 3.178e-05/0.5885, allocations: 8 kB / 0.4935 GB, free: 10.18 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.000768/0.5893, allocations: 0.552 MB / 0.494 GB, free: 9.586 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.283e-05/0.5894, allocations: 8.031 kB / 0.494 GB, free: 9.578 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.126e-05/0.5894, allocations: 42.48 kB / 0.4941 GB, free: 9.527 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001047/0.5896, allocations: 43.44 kB / 0.4941 GB, free: 9.484 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006422/0.5902, allocations: 319.4 kB / 0.4944 GB, free: 9.133 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.257e-05/0.5902, allocations: 0 / 0.4944 GB, free: 9.133 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.168e-05/0.5903, allocations: 4 kB / 0.4944 GB, free: 9.129 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001535/0.5904, allocations: 49.69 kB / 0.4945 GB, free: 9.074 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.347e-05/0.5905, allocations: 0 / 0.4945 GB, free: 9.074 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.073e-05/0.5905, allocations: 3.938 kB / 0.4945 GB, free: 9.07 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.005e-05/0.5905, allocations: 8 kB / 0.4945 GB, free: 9.062 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.431e-05/0.5906, allocations: 12 kB / 0.4945 GB, free: 9.051 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008203/0.5914, allocations: 444.5 kB / 0.4949 GB, free: 8.566 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002347/0.5917, allocations: 50.5 kB / 0.495 GB, free: 8.508 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.624e-05/0.5917, allocations: 8.859 kB / 0.495 GB, free: 8.496 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.584e-05/0.5918, allocations: 96 / 0.495 GB, free: 8.496 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.533e-05/0.5918, allocations: 34.55 kB / 0.495 GB, free: 8.453 MB / 426.7 MB Notification: Performance of pre-optimization done (n=3): time 1.603e-06/0.5918, allocations: 0 / 0.495 GB, free: 8.453 MB / 426.7 MB Notification: Performance of matching and sorting (n=5): time 0.000643/0.5925, allocations: 192 kB / 0.4952 GB, free: 8.258 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.608e-05/0.5925, allocations: 55.41 kB / 0.4952 GB, free: 8.191 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001927/0.5945, allocations: 0.7811 MB / 0.496 GB, free: 7.402 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.728e-05/0.5945, allocations: 29.7 kB / 0.496 GB, free: 7.367 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002085/0.5947, allocations: 242.5 kB / 0.4963 GB, free: 7.129 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.41e-05/0.5948, allocations: 15.75 kB / 0.4963 GB, free: 7.113 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.001e-06/0.5948, allocations: 0 / 0.4963 GB, free: 7.113 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001466/0.595, allocations: 314.8 kB / 0.4966 GB, free: 6.797 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.384e-05/0.595, allocations: 4 kB / 0.4966 GB, free: 6.793 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.928e-05/0.5951, allocations: 15.94 kB / 0.4966 GB, free: 6.777 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.861e-05/0.5951, allocations: 15.98 kB / 0.4966 GB, free: 6.762 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.5951, allocations: 4 kB / 0.4966 GB, free: 6.758 MB / 426.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001669/0.5953, allocations: 49.7 kB / 0.4967 GB, free: 6.703 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.168e-05/0.5954, allocations: 4 kB / 0.4967 GB, free: 6.699 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.917e-06/0.5954, allocations: 7.984 kB / 0.4967 GB, free: 6.691 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.68e-05/0.5954, allocations: 0 / 0.4967 GB, free: 6.691 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001521/0.5956, allocations: 12 kB / 0.4967 GB, free: 6.68 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.093e-05/0.5956, allocations: 3.953 kB / 0.4967 GB, free: 6.676 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001755/0.5958, allocations: 15.98 kB / 0.4967 GB, free: 6.66 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.258e-05/0.5958, allocations: 4 kB / 0.4967 GB, free: 6.656 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 (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 prepare postOptimizeDAE: time 8.318e-05/0.5959, allocations: 101 kB / 0.4968 GB, free: 6.551 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001216/0.596, allocations: 43.44 kB / 0.4968 GB, free: 6.508 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003326/0.5964, allocations: 117 kB / 0.497 GB, free: 6.379 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.138e-06/0.5964, allocations: 0 / 0.497 GB, free: 6.379 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.5964, allocations: 0 / 0.497 GB, free: 6.379 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.728e-06/0.5964, allocations: 3.953 kB / 0.497 GB, free: 6.375 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001075/0.5975, allocations: 0.5651 MB / 0.4975 GB, free: 5.754 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.926e-06/0.5975, allocations: 0 / 0.4975 GB, free: 5.754 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001311/0.5977, allocations: 20 kB / 0.4975 GB, free: 5.734 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.428e-06/0.5977, allocations: 3.984 kB / 0.4975 GB, free: 5.73 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.858e-06/0.5977, allocations: 3.938 kB / 0.4975 GB, free: 5.727 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.284e-06/0.5977, allocations: 7.938 kB / 0.4976 GB, free: 5.719 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.5977, allocations: 0 / 0.4976 GB, free: 5.719 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002783/0.598, allocations: 202.9 kB / 0.4977 GB, free: 5.504 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002835/0.5983, allocations: 156.6 kB / 0.4979 GB, free: 5.332 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.102e-05/0.5984, allocations: 0 / 0.4979 GB, free: 5.332 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001873/0.5986, allocations: 12 kB / 0.4979 GB, free: 5.32 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.312e-05/0.5987, allocations: 7.938 kB / 0.4979 GB, free: 5.312 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.092e-05/0.5987, allocations: 4 kB / 0.4979 GB, free: 5.309 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001171/0.5999, allocations: 0.6303 MB / 0.4985 GB, free: 4.68 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.5999, allocations: 0 / 0.4985 GB, free: 4.68 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0004673/0.6004, allocations: 71.84 kB / 0.4986 GB, free: 4.609 MB / 426.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.001658/0.602, allocations: 1.015 MB / 0.4996 GB, free: 3.707 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0001621/0.6022, allocations: 28 kB / 0.4996 GB, free: 3.68 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.6022, allocations: 0 / 0.4996 GB, free: 3.68 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 5.559e-05/0.6023, allocations: 19.94 kB / 0.4996 GB, free: 3.66 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004588/0.6028, allocations: 33.95 kB / 0.4997 GB, free: 3.621 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002075/0.6049, allocations: 0.8627 MB / 0.5005 GB, free: 2.715 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005649/0.6054, allocations: 0.8301 MB / 0.5013 GB, free: 1.859 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002781/0.6057, allocations: 111.6 kB / 0.5014 GB, free: 1.75 MB / 426.7 MB Notification: Performance of SimCode: time 1.683e-06/0.6058, allocations: 0 / 0.5014 GB, free: 1.75 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_Test5CalcHelperMain.o OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test5CalcHelperMain.cpp In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test5CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test5FMU.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_Test5.so OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test5CalcHelperMain.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_Test5_FMU.makefile:93: recipe for target 'ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test5.fmu' failed make: *** [ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test5.fmu] Error 1