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.064/2.064, allocations: 209.3 MB / 221.9 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.429e-05/4.449e-05, allocations: 8 kB / 273.1 MB, free: 0.6406 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1026/0.1027, allocations: 48.7 MB / 321.8 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4035/0.5063, allocations: 75.58 MB / 397.4 MB, free: 14.27 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000271/0.5066, allocations: 71.95 kB / 397.5 MB, free: 14.2 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01772/0.5243, allocations: 3.863 MB / 401.3 MB, free: 10.34 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.883e-06/0.5244, allocations: 4 kB / 401.3 MB, free: 10.34 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.959e-05/0.5244, allocations: 7.984 kB / 401.4 MB, free: 10.33 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.0005823/0.525, allocations: 407.9 kB / 401.8 MB, free: 9.879 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.913e-05/0.5251, allocations: 8.031 kB / 401.8 MB, free: 9.871 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.865e-05/0.5251, allocations: 30.56 kB / 401.8 MB, free: 9.832 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.139e-05/0.5252, allocations: 11.91 kB / 401.8 MB, free: 9.82 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003218/0.5255, allocations: 204.5 kB / 402 MB, free: 9.582 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.342e-05/0.5256, allocations: 0 / 402 MB, free: 9.582 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.493e-05/0.5256, allocations: 4 kB / 402 MB, free: 9.578 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001199/0.5257, allocations: 41.69 kB / 402 MB, free: 9.531 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.317e-06/0.5257, allocations: 0 / 402 MB, free: 9.531 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.021e-05/0.5258, allocations: 0 / 402 MB, free: 9.531 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.634e-06/0.5258, allocations: 3.984 kB / 402 MB, free: 9.527 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.892e-05/0.5258, allocations: 11.94 kB / 402.1 MB, free: 9.516 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002535/0.5261, allocations: 189.6 kB / 402.2 MB, free: 9.281 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001019/0.5262, allocations: 34.56 kB / 402.3 MB, free: 9.238 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.366e-05/0.5263, allocations: 12.92 kB / 402.3 MB, free: 9.223 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.803e-05/0.5263, allocations: 0 / 402.3 MB, free: 9.223 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001578/0.5265, allocations: 59.83 kB / 402.4 MB, free: 9.152 MB / 330.7 MB Notification: Performance of pre-optimization done (n=3): time 1.864e-06/0.5265, allocations: 0 / 402.4 MB, free: 9.152 MB / 330.7 MB Notification: Performance of matching and sorting (n=3): time 0.0002719/0.5268, allocations: 61.53 kB / 402.4 MB, free: 9.086 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.397e-05/0.5268, allocations: 55.34 kB / 402.5 MB, free: 9.02 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002772/0.5271, allocations: 178.3 kB / 402.6 MB, free: 8.84 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.401e-05/0.5272, allocations: 29.7 kB / 402.7 MB, free: 8.805 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.705e-05/0.5273, allocations: 162.6 kB / 402.8 MB, free: 8.645 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.719e-05/0.5273, allocations: 7.906 kB / 402.8 MB, free: 8.637 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.123e-06/0.5273, allocations: 0 / 402.8 MB, free: 8.637 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001343/0.5275, allocations: 314.8 kB / 403.1 MB, free: 8.32 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.274e-05/0.5276, allocations: 23.98 kB / 403.2 MB, free: 8.297 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.82e-05/0.5276, allocations: 16 kB / 403.2 MB, free: 8.281 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.836e-05/0.5277, allocations: 49.69 kB / 403.2 MB, free: 8.227 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.5278, allocations: 4 kB / 403.2 MB, free: 8.223 MB / 330.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002562/0.528, allocations: 111.2 kB / 403.3 MB, free: 8.102 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.764e-05/0.5281, allocations: 41.62 kB / 403.4 MB, free: 8.055 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.652e-06/0.5281, allocations: 128 / 403.4 MB, free: 8.055 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.619e-05/0.5281, allocations: 0 / 403.4 MB, free: 8.055 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.28e-05/0.5282, allocations: 8 kB / 403.4 MB, free: 8.047 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.254e-06/0.5282, allocations: 0 / 403.4 MB, free: 8.047 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.104e-05/0.5283, allocations: 7.938 kB / 403.4 MB, free: 8.039 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.12e-05/0.5284, allocations: 4.047 kB / 403.4 MB, free: 8.035 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 9.551e-05/0.5285, allocations: 116.9 kB / 403.5 MB, free: 7.914 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.843e-05/0.5285, allocations: 11.91 kB / 403.5 MB, free: 7.902 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000216/0.5287, allocations: 73.62 kB / 403.6 MB, free: 7.824 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.322e-06/0.5288, allocations: 4 kB / 403.6 MB, free: 7.82 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/0.5288, allocations: 0 / 403.6 MB, free: 7.82 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.5288, allocations: 0 / 403.6 MB, free: 7.82 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002016/0.529, allocations: 185.6 kB / 403.8 MB, free: 7.59 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.529, allocations: 0 / 403.8 MB, free: 7.59 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.373e-05/0.5291, allocations: 4 kB / 403.8 MB, free: 7.586 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.917e-06/0.5291, allocations: 0 / 403.8 MB, free: 7.586 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.305e-05/0.5291, allocations: 3.984 kB / 403.8 MB, free: 7.582 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.264e-06/0.5291, allocations: 4 kB / 403.8 MB, free: 7.578 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.5291, allocations: 0 / 403.8 MB, free: 7.578 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001857/0.5293, allocations: 96.83 kB / 403.9 MB, free: 7.465 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.814e-05/0.5294, allocations: 97 kB / 404 MB, free: 7.352 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.948e-05/0.5295, allocations: 0 / 404 MB, free: 7.352 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.734e-05/0.5295, allocations: 4 kB / 404 MB, free: 7.348 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.278e-05/0.5296, allocations: 0 / 404 MB, free: 7.348 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.203e-05/0.5296, allocations: 11.94 kB / 404 MB, free: 7.336 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001967/0.5298, allocations: 156 kB / 404.2 MB, free: 7.184 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.5298, allocations: 0 / 404.2 MB, free: 7.184 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003104/0.5301, allocations: 35.92 kB / 404.2 MB, free: 7.148 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.00135/0.5315, allocations: 0.8285 MB / 405 MB, free: 6.344 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002623/0.5318, allocations: 95.41 kB / 405.1 MB, free: 6.238 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.5318, allocations: 0 / 405.1 MB, free: 6.238 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 6.222e-05/0.5319, allocations: 19.98 kB / 405.1 MB, free: 6.219 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002856/0.5322, allocations: 15.84 kB / 405.1 MB, free: 6.203 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006388/0.5329, allocations: 229.1 kB / 405.4 MB, free: 5.938 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003062/0.5332, allocations: 0.7083 MB / 406.1 MB, free: 5.203 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.013e-05/0.5333, allocations: 27.42 kB / 406.1 MB, free: 5.176 MB / 330.7 MB Notification: Performance of SimCode: time 1.563e-06/0.5333, allocations: 0 / 406.1 MB, free: 5.176 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