Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTable1D.Test31,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test31",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.389/2.389, allocations: 235 MB / 247.6 MB, free: 14.41 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.721e-05/3.727e-05, allocations: 4 kB / 305 MB, free: 5.566 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4126/0.4126, allocations: 54.86 MB / 359.9 MB, free: 2.328 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1687/0.5814, allocations: 80.9 MB / 440.8 MB, free: 15.98 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002782/0.5817, allocations: 77.17 kB / 440.8 MB, free: 15.91 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01395/0.5957, allocations: 3.341 MB / 444.2 MB, free: 12.6 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.5958, allocations: 0 / 444.2 MB, free: 12.6 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.408e-05/0.5958, allocations: 0 / 444.2 MB, free: 12.6 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0005611/0.5964, allocations: 428.4 kB / 444.6 MB, free: 12.13 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.082e-05/0.5964, allocations: 12.02 kB / 444.6 MB, free: 12.12 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.997e-05/0.5965, allocations: 34.56 kB / 444.6 MB, free: 12.07 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.25e-05/0.5965, allocations: 15.81 kB / 444.7 MB, free: 12.06 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003075/0.5969, allocations: 204.2 kB / 444.9 MB, free: 11.82 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.163e-05/0.5969, allocations: 0 / 444.9 MB, free: 11.82 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.54e-05/0.5969, allocations: 4.562 kB / 444.9 MB, free: 11.82 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001293/0.5971, allocations: 44.75 kB / 444.9 MB, free: 11.77 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.391e-05/0.5971, allocations: 3.953 kB / 444.9 MB, free: 11.77 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.46e-05/0.5971, allocations: 7.984 kB / 444.9 MB, free: 11.76 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.253e-06/0.5971, allocations: 4 kB / 444.9 MB, free: 11.75 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.056e-05/0.5972, allocations: 15.98 kB / 444.9 MB, free: 11.74 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005262/0.5977, allocations: 307.4 kB / 445.2 MB, free: 11.39 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002272/0.598, allocations: 50.45 kB / 445.3 MB, free: 11.33 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.033e-05/0.598, allocations: 12.86 kB / 445.3 MB, free: 11.32 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.377e-05/0.5981, allocations: 0 / 445.3 MB, free: 11.32 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.317e-05/0.5981, allocations: 34.56 kB / 445.3 MB, free: 11.27 MB / 378.7 MB Notification: Performance of pre-optimization done (n=3): time 1.593e-06/0.5981, allocations: 0 / 445.3 MB, free: 11.27 MB / 378.7 MB Notification: Performance of matching and sorting (n=5): time 0.0005434/0.5987, allocations: 129.2 kB / 445.5 MB, free: 11.14 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.77e-05/0.5987, allocations: 51.41 kB / 445.5 MB, free: 11.08 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003772/0.5991, allocations: 230.6 kB / 445.7 MB, free: 10.84 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.884e-05/0.5992, allocations: 25.7 kB / 445.8 MB, free: 10.8 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.217e-05/0.5993, allocations: 170.5 kB / 445.9 MB, free: 10.64 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.05e-05/0.5993, allocations: 23.73 kB / 445.9 MB, free: 10.61 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.702e-06/0.5993, allocations: 0 / 445.9 MB, free: 10.61 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001226/0.5995, allocations: 314.8 kB / 446.3 MB, free: 10.3 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.825e-05/0.5995, allocations: 16 kB / 446.3 MB, free: 10.28 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.643e-05/0.5996, allocations: 12 kB / 446.3 MB, free: 10.27 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.418e-05/0.5997, allocations: 41.69 kB / 446.3 MB, free: 10.22 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.989e-06/0.5997, allocations: 0 / 446.3 MB, free: 10.22 MB / 378.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002054/0.5999, allocations: 107.2 kB / 446.4 MB, free: 10.11 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.433e-05/0.6, allocations: 31.42 kB / 446.5 MB, free: 10.07 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/0.6, allocations: 4 kB / 446.5 MB, free: 10.07 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.683e-05/0.6, allocations: 3.984 kB / 446.5 MB, free: 10.06 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001381/0.6002, allocations: 12 kB / 446.5 MB, free: 10.05 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.147e-05/0.6002, allocations: 4 kB / 446.5 MB, free: 10.05 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.629e-05/0.6003, allocations: 7.984 kB / 446.5 MB, free: 10.04 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.123e-05/0.6003, allocations: 0 / 446.5 MB, free: 10.04 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.035e-05/0.6004, allocations: 109 kB / 446.6 MB, free: 9.926 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.614e-05/0.6005, allocations: 22.42 kB / 446.6 MB, free: 9.906 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002472/0.6007, allocations: 90.61 kB / 446.7 MB, free: 9.809 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.548e-06/0.6007, allocations: 0 / 446.7 MB, free: 9.809 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.6008, allocations: 0 / 446.7 MB, free: 9.809 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.6008, allocations: 0 / 446.7 MB, free: 9.809 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005755/0.6014, allocations: 377.1 kB / 447.1 MB, free: 9.387 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.6014, allocations: 0 / 447.1 MB, free: 9.387 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001184/0.6015, allocations: 19.98 kB / 447.1 MB, free: 9.367 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.188e-06/0.6015, allocations: 4 kB / 447.1 MB, free: 9.363 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.838e-06/0.6015, allocations: 0 / 447.1 MB, free: 9.363 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.404e-06/0.6016, allocations: 0 / 447.1 MB, free: 9.363 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.6016, allocations: 0 / 447.1 MB, free: 9.363 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002208/0.6018, allocations: 175.2 kB / 447.3 MB, free: 9.176 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.974e-05/0.6019, allocations: 97 kB / 447.4 MB, free: 9.062 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.927e-05/0.6019, allocations: 4 kB / 447.4 MB, free: 9.059 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001154/0.6021, allocations: 8 kB / 447.4 MB, free: 9.051 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.045e-05/0.6021, allocations: 7.984 kB / 447.4 MB, free: 9.043 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.376e-06/0.6021, allocations: 0.75 kB / 447.4 MB, free: 9.043 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002663/0.6024, allocations: 193.1 kB / 447.6 MB, free: 8.855 MB / 378.7 MB Notification: Performance of sort global known variables: time 6.01e-07/0.6024, allocations: 1.406 kB / 447.6 MB, free: 8.855 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003536/0.6028, allocations: 24 kB / 447.6 MB, free: 8.832 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.001238/0.604, allocations: 0.8878 MB / 448.5 MB, free: 7.988 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002152/0.6043, allocations: 91.39 kB / 448.6 MB, free: 7.887 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.6043, allocations: 0 / 448.6 MB, free: 7.887 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 6.784e-05/0.6044, allocations: 20 kB / 448.6 MB, free: 7.867 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002937/0.6047, allocations: 11.23 kB / 448.6 MB, free: 7.855 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008266/0.6055, allocations: 290.6 kB / 448.9 MB, free: 7.535 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000331/0.6059, allocations: 0.7238 MB / 449.6 MB, free: 6.785 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001082/0.606, allocations: 39.42 kB / 449.6 MB, free: 6.746 MB / 378.7 MB Notification: Performance of SimCode: time 7.31e-07/0.606, allocations: 0 / 449.6 MB, free: 6.746 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_CombiTable1D_Test31CalcHelperMain.o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test31CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test31CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test31FMU.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_CombiTable1D_Test31.so OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test31CalcHelperMain.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_CombiTable1D_Test31_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test31.fmu' failed make: *** [ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test31.fmu] Error 1