Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTable2D.Test4,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test4",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.227/2.227, allocations: 235 MB / 247.6 MB, free: 14.58 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.375e-05/4.374e-05, allocations: 12.86 kB / 305 MB, free: 5.773 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4471/0.4472, allocations: 54.84 MB / 359.9 MB, free: 2.23 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1798/0.6271, allocations: 80.93 MB / 440.8 MB, free: 8 kB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003392/0.6275, allocations: 66.58 kB / 440.8 MB, free: 15.94 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02543/0.6529, allocations: 5.329 MB / 446.2 MB, free: 10.63 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.304e-06/0.653, allocations: 0 / 446.2 MB, free: 10.63 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.901e-05/0.653, allocations: 12 kB / 446.2 MB, free: 10.62 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.001096/0.6542, allocations: 0.5702 MB / 446.8 MB, free: 10 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.106e-05/0.6542, allocations: 8.031 kB / 446.8 MB, free: 9.992 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.16e-05/0.6543, allocations: 35.38 kB / 446.8 MB, free: 9.949 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001608/0.6545, allocations: 43.44 kB / 446.8 MB, free: 9.906 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008844/0.6554, allocations: 311.4 kB / 447.1 MB, free: 9.559 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.071e-05/0.6554, allocations: 4 kB / 447.2 MB, free: 9.555 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.493e-05/0.6555, allocations: 4 kB / 447.2 MB, free: 9.551 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001796/0.6557, allocations: 61.02 kB / 447.2 MB, free: 9.488 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.825e-05/0.6557, allocations: 3.984 kB / 447.2 MB, free: 9.484 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.64e-05/0.6557, allocations: 4 kB / 447.2 MB, free: 9.48 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.172e-06/0.6558, allocations: 0.5625 kB / 447.2 MB, free: 9.48 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.725e-05/0.6559, allocations: 16.81 kB / 447.2 MB, free: 9.465 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00109/0.657, allocations: 424.7 kB / 447.7 MB, free: 9 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003095/0.6573, allocations: 46.56 kB / 447.7 MB, free: 8.945 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.965e-05/0.6574, allocations: 8.859 kB / 447.7 MB, free: 8.934 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.816e-05/0.6574, allocations: 0 / 447.7 MB, free: 8.934 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.225e-05/0.6575, allocations: 40.09 kB / 447.7 MB, free: 8.887 MB / 378.7 MB Notification: Performance of pre-optimization done (n=3): time 2.434e-06/0.6575, allocations: 0 / 447.7 MB, free: 8.887 MB / 378.7 MB Notification: Performance of matching and sorting (n=5): time 0.0008638/0.6584, allocations: 176.3 kB / 447.9 MB, free: 8.707 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.587e-05/0.6585, allocations: 59.41 kB / 448 MB, free: 8.637 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002909/0.6614, allocations: 0.7615 MB / 448.7 MB, free: 7.871 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.175e-05/0.6615, allocations: 33.69 kB / 448.8 MB, free: 7.832 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003072/0.6618, allocations: 234.5 kB / 449 MB, free: 7.602 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.835e-05/0.6619, allocations: 15.72 kB / 449 MB, free: 7.586 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.526e-06/0.6619, allocations: 0 / 449 MB, free: 7.586 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001822/0.6621, allocations: 314.8 kB / 449.3 MB, free: 7.27 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.143e-05/0.6622, allocations: 15.94 kB / 449.3 MB, free: 7.254 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.926e-05/0.6623, allocations: 18.75 kB / 449.4 MB, free: 7.238 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001109/0.6624, allocations: 45.64 kB / 449.4 MB, free: 7.188 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.6624, allocations: 0 / 449.4 MB, free: 7.188 MB / 378.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002988/0.6628, allocations: 91.39 kB / 449.5 MB, free: 7.086 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.297e-05/0.6628, allocations: 29.7 kB / 449.5 MB, free: 7.051 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.374e-06/0.6629, allocations: 4 kB / 449.5 MB, free: 7.047 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.84e-05/0.6629, allocations: 0.9375 kB / 449.5 MB, free: 7.047 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001961/0.6631, allocations: 15.98 kB / 449.5 MB, free: 7.031 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.198e-05/0.6631, allocations: 0 / 449.5 MB, free: 7.031 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002273/0.6634, allocations: 11.94 kB / 449.6 MB, free: 7.02 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.841e-05/0.6634, allocations: 4 kB / 449.6 MB, free: 7.016 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 0.000113/0.6635, allocations: 112.9 kB / 449.7 MB, free: 6.898 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001788/0.6637, allocations: 39.53 kB / 449.7 MB, free: 6.859 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004699/0.6642, allocations: 118.8 kB / 449.8 MB, free: 6.734 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.869e-06/0.6642, allocations: 0 / 449.8 MB, free: 6.734 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.6642, allocations: 0 / 449.8 MB, free: 6.734 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.427e-06/0.6643, allocations: 4.547 kB / 449.8 MB, free: 6.73 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001639/0.6659, allocations: 0.5575 MB / 450.4 MB, free: 6.117 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.992e-06/0.666, allocations: 4.375 kB / 450.4 MB, free: 6.113 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001747/0.6662, allocations: 11.98 kB / 450.4 MB, free: 6.102 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.605e-06/0.6662, allocations: 4 kB / 450.4 MB, free: 6.098 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.739e-05/0.6662, allocations: 4 kB / 450.4 MB, free: 6.094 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.538e-06/0.6663, allocations: 3.938 kB / 450.4 MB, free: 6.09 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.915e-06/0.6663, allocations: 0 / 450.4 MB, free: 6.09 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004163/0.6667, allocations: 199 kB / 450.6 MB, free: 5.879 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004077/0.6671, allocations: 160.5 kB / 450.8 MB, free: 5.703 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.554e-05/0.6672, allocations: 0 / 450.8 MB, free: 5.703 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000252/0.6675, allocations: 4 kB / 450.8 MB, free: 5.699 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.986e-05/0.6676, allocations: 11.98 kB / 450.8 MB, free: 5.688 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.071e-05/0.6676, allocations: 0 / 450.8 MB, free: 5.688 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001702/0.6693, allocations: 0.6225 MB / 451.4 MB, free: 5.066 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.162e-06/0.6694, allocations: 0 / 451.4 MB, free: 5.066 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007721/0.6702, allocations: 59.94 kB / 451.5 MB, free: 5.008 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.001866/0.672, allocations: 0.9056 MB / 452.4 MB, free: 4.137 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003003/0.6724, allocations: 79.41 kB / 452.4 MB, free: 4.047 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.561e-06/0.6724, allocations: 4.094 kB / 452.4 MB, free: 4.043 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 8.423e-05/0.6725, allocations: 19.94 kB / 452.5 MB, free: 4.023 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005376/0.6731, allocations: 33.91 kB / 452.5 MB, free: 3.992 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003186/0.6763, allocations: 0.8329 MB / 453.3 MB, free: 3.117 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008215/0.6772, allocations: 0.8262 MB / 454.2 MB, free: 2.262 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004012/0.6776, allocations: 107.6 kB / 454.3 MB, free: 2.156 MB / 378.7 MB Notification: Performance of SimCode: time 1.473e-06/0.6776, allocations: 0 / 454.3 MB, free: 2.156 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_Test4CalcHelperMain.o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test4CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test4CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test4FMU.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_Test4.so OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test4CalcHelperMain.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_Test4_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test4.fmu' failed make: *** [ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test4.fmu] Error 1