Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test65,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test65",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.237/2.237, allocations: 209.3 MB / 221.9 MB, free: 1.926 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 5.618e-05/5.62e-05, allocations: 4 kB / 273.2 MB, free: 0.6328 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1479/0.148, allocations: 48.71 MB / 321.9 MB, free: 15.82 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4556/0.6036, allocations: 75.57 MB / 397.4 MB, free: 14.24 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003345/0.6041, allocations: 67.97 kB / 397.5 MB, free: 14.17 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02218/0.6263, allocations: 3.87 MB / 401.4 MB, free: 10.31 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.295e-06/0.6263, allocations: 4 kB / 401.4 MB, free: 10.3 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.948e-05/0.6264, allocations: 4 kB / 401.4 MB, free: 10.3 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0006981/0.6271, allocations: 407.9 kB / 401.8 MB, free: 9.852 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.4e-05/0.6272, allocations: 16.02 kB / 401.8 MB, free: 9.836 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.378e-05/0.6272, allocations: 30.56 kB / 401.8 MB, free: 9.797 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.176e-05/0.6273, allocations: 7.906 kB / 401.8 MB, free: 9.789 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004047/0.6277, allocations: 204.5 kB / 402 MB, free: 9.551 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.463e-05/0.6278, allocations: 0 / 402 MB, free: 9.551 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.193e-05/0.6278, allocations: 4 kB / 402 MB, free: 9.547 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001398/0.628, allocations: 37.69 kB / 402.1 MB, free: 9.504 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.024e-05/0.628, allocations: 0 / 402.1 MB, free: 9.504 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.985e-05/0.628, allocations: 8 kB / 402.1 MB, free: 9.496 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.456e-06/0.628, allocations: 0 / 402.1 MB, free: 9.496 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.609e-05/0.6281, allocations: 7.938 kB / 402.1 MB, free: 9.488 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000334/0.6285, allocations: 189.6 kB / 402.3 MB, free: 9.254 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001074/0.6286, allocations: 26.58 kB / 402.3 MB, free: 9.219 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.795e-05/0.6287, allocations: 16.92 kB / 402.3 MB, free: 9.199 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.993e-05/0.6287, allocations: 3.938 kB / 402.3 MB, free: 9.195 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001943/0.6289, allocations: 59.83 kB / 402.4 MB, free: 9.125 MB / 330.7 MB Notification: Performance of pre-optimization done (n=3): time 2.605e-06/0.6289, allocations: 0 / 402.4 MB, free: 9.125 MB / 330.7 MB Notification: Performance of matching and sorting (n=3): time 0.0003068/0.6293, allocations: 61.53 kB / 402.4 MB, free: 9.059 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.518e-05/0.6293, allocations: 51.41 kB / 402.5 MB, free: 8.996 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003896/0.6298, allocations: 178.3 kB / 402.7 MB, free: 8.816 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.114e-05/0.6298, allocations: 29.7 kB / 402.7 MB, free: 8.781 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001139/0.6299, allocations: 166.5 kB / 402.9 MB, free: 8.617 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.464e-05/0.63, allocations: 7.906 kB / 402.9 MB, free: 8.609 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.808e-06/0.63, allocations: 0 / 402.9 MB, free: 8.609 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001788/0.6302, allocations: 318.8 kB / 403.2 MB, free: 8.289 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.026e-05/0.6303, allocations: 20 kB / 403.2 MB, free: 8.27 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.775e-05/0.6304, allocations: 19.98 kB / 403.2 MB, free: 8.25 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001337/0.6306, allocations: 49.69 kB / 403.3 MB, free: 8.195 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.427e-06/0.6306, allocations: 0 / 403.3 MB, free: 8.195 MB / 330.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0003577/0.631, allocations: 115.2 kB / 403.4 MB, free: 8.07 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.2e-05/0.631, allocations: 41.64 kB / 403.4 MB, free: 8.023 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.6311, allocations: 0 / 403.4 MB, free: 8.023 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.743e-05/0.6311, allocations: 0 / 403.4 MB, free: 8.023 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001122/0.6312, allocations: 4 kB / 403.4 MB, free: 8.02 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.235e-06/0.6312, allocations: 0 / 403.4 MB, free: 8.02 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001144/0.6314, allocations: 7.938 kB / 403.4 MB, free: 8.012 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.211e-05/0.6314, allocations: 7.984 kB / 403.4 MB, free: 8.004 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 (5): * Single equations (assignments): 4 * 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.0001136/0.6315, allocations: 108.9 kB / 403.5 MB, free: 7.891 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.388e-05/0.6316, allocations: 11.91 kB / 403.6 MB, free: 7.879 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002858/0.6319, allocations: 69.7 kB / 403.6 MB, free: 7.805 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.226e-06/0.6319, allocations: 4 kB / 403.6 MB, free: 7.801 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.646e-06/0.632, allocations: 0 / 403.6 MB, free: 7.801 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.96e-06/0.632, allocations: 3.938 kB / 403.6 MB, free: 7.797 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000278/0.6323, allocations: 185.6 kB / 403.8 MB, free: 7.566 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.3e-06/0.6323, allocations: 3.984 kB / 403.8 MB, free: 7.562 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.28e-05/0.6324, allocations: 4 kB / 403.8 MB, free: 7.559 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.618e-06/0.6324, allocations: 0 / 403.8 MB, free: 7.559 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.326e-05/0.6324, allocations: 96 / 403.8 MB, free: 7.559 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.005e-06/0.6324, allocations: 4 kB / 403.8 MB, free: 7.555 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.6324, allocations: 128 / 403.8 MB, free: 7.555 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002614/0.6327, allocations: 104.9 kB / 403.9 MB, free: 7.434 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001087/0.6328, allocations: 92.95 kB / 404 MB, free: 7.324 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.935e-05/0.6329, allocations: 0 / 404 MB, free: 7.324 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.911e-05/0.633, allocations: 4 kB / 404 MB, free: 7.32 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.93e-05/0.6331, allocations: 7.984 kB / 404 MB, free: 7.312 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.377e-05/0.6331, allocations: 0 / 404 MB, free: 7.312 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002765/0.6334, allocations: 160 kB / 404.2 MB, free: 7.156 MB / 330.7 MB Notification: Performance of sort global known variables: time 8.42e-07/0.6334, allocations: 0 / 404.2 MB, free: 7.156 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005537/0.634, allocations: 27.94 kB / 404.2 MB, free: 7.129 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 (4): * Single equations (assignments): 3 * 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.001435/0.6354, allocations: 0.8374 MB / 405 MB, free: 6.316 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002752/0.6358, allocations: 95.39 kB / 405.1 MB, free: 6.211 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.352e-06/0.6358, allocations: 0 / 405.1 MB, free: 6.211 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 5.937e-05/0.6358, allocations: 15.94 kB / 405.2 MB, free: 6.195 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003026/0.6362, allocations: 27.77 kB / 405.2 MB, free: 6.168 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000698/0.6369, allocations: 221.2 kB / 405.4 MB, free: 5.91 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003704/0.6373, allocations: 0.7043 MB / 406.1 MB, free: 5.18 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.021e-05/0.6374, allocations: 27.44 kB / 406.1 MB, free: 5.152 MB / 330.7 MB Notification: Performance of SimCode: time 1.493e-06/0.6374, allocations: 0 / 406.1 MB, free: 5.152 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_Test65CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test65CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test65CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test65FMU.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_Test65.so OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test65CalcHelperMain.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" -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_Test65_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test65.fmu' failed make: *** [ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test65.fmu] Error 1