Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test60,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test60",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.011/2.011, allocations: 209.3 MB / 221.9 MB, free: 1.941 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.19e-05/4.195e-05, allocations: 8 kB / 273.2 MB, free: 0.6367 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1048/0.1049, allocations: 48.71 MB / 321.9 MB, free: 15.83 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4089/0.5138, allocations: 76 MB / 397.9 MB, free: 13.81 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003093/0.5142, allocations: 71.95 kB / 397.9 MB, free: 13.74 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02252/0.5367, allocations: 4.766 MB / 402.7 MB, free: 8.992 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.834e-06/0.5368, allocations: 0 / 402.7 MB, free: 8.992 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.216e-05/0.5368, allocations: 0 / 402.7 MB, free: 8.992 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0006385/0.5375, allocations: 416 kB / 403.1 MB, free: 8.535 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.134e-05/0.5375, allocations: 8.031 kB / 403.1 MB, free: 8.527 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.784e-05/0.5376, allocations: 30.56 kB / 403.1 MB, free: 8.488 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.706e-05/0.5377, allocations: 11.91 kB / 403.2 MB, free: 8.477 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003121/0.538, allocations: 198.9 kB / 403.4 MB, free: 8.242 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.368e-05/0.538, allocations: 0 / 403.4 MB, free: 8.242 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.542e-05/0.538, allocations: 4 kB / 403.4 MB, free: 8.238 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001676/0.5382, allocations: 63.33 kB / 403.4 MB, free: 8.164 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.202e-05/0.5383, allocations: 0 / 403.4 MB, free: 8.164 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.327e-05/0.5383, allocations: 0 / 403.4 MB, free: 8.164 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.879e-06/0.5383, allocations: 0 / 403.4 MB, free: 8.164 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.853e-05/0.5384, allocations: 12 kB / 403.4 MB, free: 8.152 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004883/0.5389, allocations: 284.9 kB / 403.7 MB, free: 7.824 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002504/0.5391, allocations: 42.56 kB / 403.8 MB, free: 7.773 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.641e-05/0.5392, allocations: 12.95 kB / 403.8 MB, free: 7.758 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.067e-05/0.5392, allocations: 7.922 kB / 403.8 MB, free: 7.75 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000151/0.5394, allocations: 59.41 kB / 403.8 MB, free: 7.68 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 2.796e-06/0.5394, allocations: 0 / 403.8 MB, free: 7.68 MB / 330.7 MB Notification: Performance of matching and sorting (n=5): time 0.0005109/0.5399, allocations: 113.5 kB / 403.9 MB, free: 7.562 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.555e-05/0.54, allocations: 81.05 kB / 404 MB, free: 7.465 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002212/0.5403, allocations: 132.8 kB / 404.2 MB, free: 7.328 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.786e-05/0.5403, allocations: 29.7 kB / 404.2 MB, free: 7.293 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001018/0.5404, allocations: 154.6 kB / 404.3 MB, free: 7.141 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.773e-05/0.5405, allocations: 15.75 kB / 404.3 MB, free: 7.125 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.648e-06/0.5405, allocations: 0 / 404.3 MB, free: 7.125 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000168/0.5407, allocations: 334.8 kB / 404.7 MB, free: 6.789 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.26e-05/0.5407, allocations: 20 kB / 404.7 MB, free: 6.77 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.202e-05/0.5408, allocations: 29.72 kB / 404.7 MB, free: 6.734 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001074/0.541, allocations: 45.69 kB / 404.8 MB, free: 6.684 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.472e-06/0.541, allocations: 0 / 404.8 MB, free: 6.684 MB / 330.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002816/0.5413, allocations: 119.3 kB / 404.9 MB, free: 6.555 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.897e-05/0.5413, allocations: 37.7 kB / 404.9 MB, free: 6.512 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.172e-06/0.5413, allocations: 0 / 404.9 MB, free: 6.512 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.39e-05/0.5414, allocations: 8.016 kB / 404.9 MB, free: 6.504 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.949e-05/0.5415, allocations: 8 kB / 404.9 MB, free: 6.496 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.413e-05/0.5415, allocations: 7.938 kB / 404.9 MB, free: 6.488 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.856e-05/0.5416, allocations: 4 kB / 404.9 MB, free: 6.484 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.719e-05/0.5416, allocations: 4 kB / 405 MB, free: 6.48 MB / 330.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: 3 ($whenCondition1,$PRE.t_new.nextTimeEvent,t_new.nextTimeEvent) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 6 * 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.0001038/0.5417, allocations: 109 kB / 405.1 MB, free: 6.367 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.352e-05/0.5418, allocations: 3.906 kB / 405.1 MB, free: 6.363 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002874/0.5421, allocations: 85.7 kB / 405.1 MB, free: 6.277 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.083e-06/0.5421, allocations: 8 kB / 405.2 MB, free: 6.27 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.5421, allocations: 0 / 405.2 MB, free: 6.27 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.412e-06/0.5421, allocations: 3.953 kB / 405.2 MB, free: 6.266 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005163/0.5426, allocations: 342.7 kB / 405.5 MB, free: 5.875 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.5427, allocations: 3.938 kB / 405.5 MB, free: 5.871 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.135e-05/0.5427, allocations: 15.92 kB / 405.5 MB, free: 5.855 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.469e-06/0.5428, allocations: 0 / 405.5 MB, free: 5.855 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.143e-05/0.5428, allocations: 0 / 405.5 MB, free: 5.855 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.019e-06/0.5428, allocations: 3.953 kB / 405.5 MB, free: 5.852 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.5428, allocations: 0 / 405.5 MB, free: 5.852 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002586/0.5431, allocations: 175.4 kB / 405.7 MB, free: 5.664 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.294e-05/0.5432, allocations: 85.02 kB / 405.8 MB, free: 5.562 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.324e-05/0.5432, allocations: 4 kB / 405.8 MB, free: 5.559 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001043/0.5433, allocations: 4.25 kB / 405.8 MB, free: 5.555 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.931e-05/0.5434, allocations: 7.938 kB / 405.8 MB, free: 5.547 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.07e-05/0.5434, allocations: 8 kB / 405.8 MB, free: 5.539 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001255/0.5435, allocations: 104.5 kB / 405.9 MB, free: 5.438 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.21e-07/0.5435, allocations: 4 kB / 405.9 MB, free: 5.434 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004572/0.544, allocations: 51.88 kB / 405.9 MB, free: 5.383 MB / 330.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: 2 ($whenCondition1,t_new.nextTimeEvent) * Number of discrete states: 1 (t_new.nextTimeEvent) * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.001798/0.5458, allocations: 1.021 MB / 407 MB, free: 4.402 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002932/0.5461, allocations: 107.3 kB / 407.1 MB, free: 4.285 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.017e-06/0.5462, allocations: 0 / 407.1 MB, free: 4.285 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 7.266e-05/0.5463, allocations: 19.98 kB / 407.1 MB, free: 4.266 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003424/0.5466, allocations: 19.94 kB / 407.1 MB, free: 4.246 MB / 330.7 MB Warning: Could not resolve URI (uri) at compile-time; copying all loaded packages into the FMU Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00306/0.5497, allocations: 0.7433 MB / 407.9 MB, free: 3.457 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004476/0.5502, allocations: 0.6926 MB / 408.5 MB, free: 2.738 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001367/0.5503, allocations: 27.42 kB / 408.6 MB, free: 2.711 MB / 330.7 MB Notification: Performance of SimCode: time 1.623e-06/0.5504, allocations: 0 / 408.6 MB, free: 2.711 MB / 330.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_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test60CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test60CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test60CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test60FMU.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_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test60.so OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test60CalcHelperMain.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.1/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.1/Resources/Library/x86_64-linux" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Resources/Library/x86_64-linux" "-L/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Resources/Library/linux64" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Resources/Library/linux64" "-L/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Resources/Library" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Resources/Library" -lModelicaExternalC -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_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test60_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test60.fmu' failed make: *** [ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test60.fmu] Error 1