Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTable2D.Test1,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.371/2.371, allocations: 235 MB / 247.6 MB, free: 14.38 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.763e-05/3.778e-05, allocations: 4 kB / 305 MB, free: 5.559 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.41/0.41, allocations: 54.86 MB / 359.9 MB, free: 2.32 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1477/0.5578, allocations: 80.96 MB / 440.8 MB, free: 15.92 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002705/0.5582, allocations: 72.67 kB / 440.9 MB, free: 15.85 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01923/0.5774, allocations: 5.417 MB / 446.3 MB, free: 10.46 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.814e-06/0.5775, allocations: 0 / 446.3 MB, free: 10.46 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.784e-05/0.5775, allocations: 8 kB / 446.3 MB, free: 10.45 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.0007361/0.5782, allocations: 0.5693 MB / 446.9 MB, free: 9.828 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.206e-05/0.5783, allocations: 12.03 kB / 446.9 MB, free: 9.816 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.326e-05/0.5784, allocations: 34.56 kB / 446.9 MB, free: 9.773 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001061/0.5785, allocations: 43.44 kB / 447 MB, free: 9.73 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006121/0.5791, allocations: 311.4 kB / 447.3 MB, free: 9.383 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.472e-05/0.5791, allocations: 4 kB / 447.3 MB, free: 9.379 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.236e-05/0.5792, allocations: 0 / 447.3 MB, free: 9.379 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001439/0.5793, allocations: 65.56 kB / 447.3 MB, free: 9.309 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.453e-05/0.5794, allocations: 7.266 kB / 447.4 MB, free: 9.305 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.115e-05/0.5794, allocations: 0 / 447.4 MB, free: 9.305 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.931e-06/0.5794, allocations: 0 / 447.4 MB, free: 9.305 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.502e-05/0.5795, allocations: 16 kB / 447.4 MB, free: 9.289 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007359/0.5802, allocations: 424.7 kB / 447.8 MB, free: 8.824 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002162/0.5805, allocations: 42.61 kB / 447.8 MB, free: 8.773 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.188e-05/0.5805, allocations: 18.78 kB / 447.8 MB, free: 8.754 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.635e-05/0.5805, allocations: 4 kB / 447.8 MB, free: 8.75 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.476e-05/0.5806, allocations: 33.19 kB / 447.9 MB, free: 8.711 MB / 378.7 MB Notification: Performance of pre-optimization done (n=3): time 1.863e-06/0.5806, allocations: 0 / 447.9 MB, free: 8.711 MB / 378.7 MB Notification: Performance of matching and sorting (n=5): time 0.0005901/0.5812, allocations: 180.1 kB / 448.1 MB, free: 8.527 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.758e-05/0.5812, allocations: 55.41 kB / 448.1 MB, free: 8.461 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001809/0.5831, allocations: 0.7654 MB / 448.9 MB, free: 7.691 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.988e-05/0.5831, allocations: 25.7 kB / 448.9 MB, free: 7.66 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002031/0.5833, allocations: 246.4 kB / 449.1 MB, free: 7.418 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.352e-05/0.5834, allocations: 7.812 kB / 449.1 MB, free: 7.41 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.991e-06/0.5834, allocations: 4 kB / 449.2 MB, free: 7.406 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001218/0.5835, allocations: 318.8 kB / 449.5 MB, free: 7.086 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.207e-05/0.5836, allocations: 12 kB / 449.5 MB, free: 7.074 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.275e-05/0.5836, allocations: 16 kB / 449.5 MB, free: 7.059 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.059e-05/0.5837, allocations: 41.69 kB / 449.5 MB, free: 7.012 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.5837, allocations: 0 / 449.5 MB, free: 7.012 MB / 378.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.000187/0.5839, allocations: 91.39 kB / 449.6 MB, free: 6.91 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.34e-05/0.584, allocations: 31.42 kB / 449.7 MB, free: 6.875 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.101e-06/0.584, allocations: 0 / 449.7 MB, free: 6.875 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.36e-05/0.584, allocations: 0 / 449.7 MB, free: 6.875 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001333/0.5841, allocations: 16.75 kB / 449.7 MB, free: 6.859 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.136e-05/0.5842, allocations: 3.984 kB / 449.7 MB, free: 6.855 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001247/0.5843, allocations: 15.94 kB / 449.7 MB, free: 6.84 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.101e-05/0.5843, allocations: 0 / 449.7 MB, free: 6.84 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.329e-05/0.5844, allocations: 112.9 kB / 449.8 MB, free: 6.723 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001101/0.5845, allocations: 39.44 kB / 449.8 MB, free: 6.684 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002852/0.5848, allocations: 116.5 kB / 450 MB, free: 6.562 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.5849, allocations: 4 kB / 450 MB, free: 6.559 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.5849, allocations: 0 / 450 MB, free: 6.559 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.5849, allocations: 0 / 450 MB, free: 6.559 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001014/0.5859, allocations: 0.5658 MB / 450.5 MB, free: 5.938 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.305e-06/0.5859, allocations: 0 / 450.5 MB, free: 5.938 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001261/0.5861, allocations: 18.98 kB / 450.5 MB, free: 5.922 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.216e-06/0.5861, allocations: 0 / 450.5 MB, free: 5.922 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.097e-05/0.5861, allocations: 0 / 450.5 MB, free: 5.922 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.471e-06/0.5861, allocations: 4 kB / 450.5 MB, free: 5.918 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.5861, allocations: 0 / 450.5 MB, free: 5.918 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002658/0.5864, allocations: 199 kB / 450.7 MB, free: 5.707 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002621/0.5867, allocations: 160.5 kB / 450.9 MB, free: 5.531 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.702e-05/0.5868, allocations: 0 / 450.9 MB, free: 5.531 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001635/0.5869, allocations: 12 kB / 450.9 MB, free: 5.52 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.645e-05/0.587, allocations: 4.641 kB / 450.9 MB, free: 5.516 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.041e-05/0.587, allocations: 4 kB / 450.9 MB, free: 5.512 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00111/0.5881, allocations: 0.6186 MB / 451.5 MB, free: 4.895 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.5881, allocations: 0 / 451.5 MB, free: 4.895 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004503/0.5886, allocations: 63.92 kB / 451.6 MB, free: 4.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.001244/0.5899, allocations: 0.8993 MB / 452.5 MB, free: 3.977 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001958/0.5901, allocations: 91.33 kB / 452.6 MB, free: 3.875 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.5901, allocations: 0 / 452.6 MB, free: 3.875 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 5.991e-05/0.5902, allocations: 16 kB / 452.6 MB, free: 3.859 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003346/0.5905, allocations: 29.97 kB / 452.6 MB, free: 3.832 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001974/0.5925, allocations: 0.8367 MB / 453.5 MB, free: 2.953 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000523/0.593, allocations: 0.8223 MB / 454.3 MB, free: 2.102 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002508/0.5933, allocations: 115.6 kB / 454.4 MB, free: 1.988 MB / 378.7 MB Notification: Performance of SimCode: time 7.11e-07/0.5933, allocations: 0 / 454.4 MB, free: 1.988 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_Test1CalcHelperMain.o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test1CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test1CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test1FMU.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_Test1.so OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test1CalcHelperMain.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_Test1_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test1.fmu' failed make: *** [ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test1.fmu] Error 1