Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test7,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test7",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.102/2.102, allocations: 209.3 MB / 221.9 MB, free: 1.941 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.139e-05/4.156e-05, allocations: 4 kB / 273.1 MB, free: 0.6484 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1166/0.1166, allocations: 48.71 MB / 321.9 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4267/0.5434, allocations: 75.78 MB / 397.6 MB, free: 14.04 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003022/0.5438, allocations: 66.69 kB / 397.7 MB, free: 13.98 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01915/0.5629, allocations: 4.259 MB / 402 MB, free: 9.73 MB / 330.7 MB Notification: Performance of FrontEnd: time 4.398e-06/0.563, allocations: 3.984 kB / 402 MB, free: 9.727 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.72e-05/0.563, allocations: 4 kB / 402 MB, free: 9.723 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.000641/0.5637, allocations: 431.8 kB / 402.4 MB, free: 9.25 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.021e-05/0.5637, allocations: 8.031 kB / 402.4 MB, free: 9.242 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.171e-05/0.5638, allocations: 38.56 kB / 402.4 MB, free: 9.195 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.953e-05/0.5639, allocations: 7.906 kB / 402.5 MB, free: 9.188 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003408/0.5642, allocations: 210.8 kB / 402.7 MB, free: 8.941 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.37e-05/0.5643, allocations: 4 kB / 402.7 MB, free: 8.938 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.091e-05/0.5643, allocations: 7.906 kB / 402.7 MB, free: 8.93 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001664/0.5645, allocations: 49.67 kB / 402.7 MB, free: 8.875 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.245e-05/0.5645, allocations: 0 / 402.7 MB, free: 8.875 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.192e-05/0.5645, allocations: 0 / 402.7 MB, free: 8.875 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.826e-06/0.5645, allocations: 4 kB / 402.7 MB, free: 8.871 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.903e-05/0.5646, allocations: 15.94 kB / 402.7 MB, free: 8.855 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005124/0.5652, allocations: 300.9 kB / 403 MB, free: 8.512 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002604/0.5654, allocations: 43.05 kB / 403.1 MB, free: 8.461 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.351e-05/0.5655, allocations: 12.94 kB / 403.1 MB, free: 8.445 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.21e-05/0.5655, allocations: 7.938 kB / 403.1 MB, free: 8.438 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001583/0.5657, allocations: 55.34 kB / 403.1 MB, free: 8.371 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 2.424e-06/0.5657, allocations: 0 / 403.1 MB, free: 8.371 MB / 330.7 MB Notification: Performance of matching and sorting (n=5): time 0.000515/0.5662, allocations: 125.3 kB / 403.3 MB, free: 8.242 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.385e-05/0.5663, allocations: 55.41 kB / 403.3 MB, free: 8.176 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003452/0.5666, allocations: 201.9 kB / 403.5 MB, free: 7.973 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.703e-05/0.5667, allocations: 29.7 kB / 403.6 MB, free: 7.938 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001039/0.5668, allocations: 166.6 kB / 403.7 MB, free: 7.773 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.238e-05/0.5669, allocations: 19.78 kB / 403.7 MB, free: 7.754 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.395e-06/0.5669, allocations: 0 / 403.7 MB, free: 7.754 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001426/0.567, allocations: 318.8 kB / 404 MB, free: 7.434 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.164e-05/0.5671, allocations: 31.88 kB / 404.1 MB, free: 7.402 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.809e-05/0.5672, allocations: 23.98 kB / 404.1 MB, free: 7.379 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000105/0.5673, allocations: 49.7 kB / 404.1 MB, free: 7.324 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.332e-06/0.5673, allocations: 0 / 404.1 MB, free: 7.324 MB / 330.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002865/0.5676, allocations: 127.3 kB / 404.3 MB, free: 7.188 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.729e-05/0.5677, allocations: 33.7 kB / 404.3 MB, free: 7.148 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.032e-05/0.5677, allocations: 3.984 kB / 404.3 MB, free: 7.145 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.582e-05/0.5677, allocations: 3.938 kB / 404.3 MB, free: 7.141 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.148e-05/0.5678, allocations: 12 kB / 404.3 MB, free: 7.129 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.212e-05/0.5679, allocations: 3.953 kB / 404.3 MB, free: 7.125 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.246e-05/0.568, allocations: 7.938 kB / 404.3 MB, free: 7.117 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.022e-05/0.568, allocations: 8 kB / 404.3 MB, free: 7.109 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 8.736e-05/0.5681, allocations: 105 kB / 404.4 MB, free: 7 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.986e-05/0.5681, allocations: 15.89 kB / 404.5 MB, free: 6.984 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000292/0.5684, allocations: 86.77 kB / 404.5 MB, free: 6.891 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.819e-06/0.5685, allocations: 3.938 kB / 404.6 MB, free: 6.887 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.554e-06/0.5685, allocations: 128 / 404.6 MB, free: 6.887 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.033e-06/0.5685, allocations: 7.891 kB / 404.6 MB, free: 6.879 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005861/0.5691, allocations: 370.6 kB / 404.9 MB, free: 6.461 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.729e-06/0.5691, allocations: 4 kB / 404.9 MB, free: 6.457 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.929e-05/0.5692, allocations: 7.984 kB / 404.9 MB, free: 6.449 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.516e-06/0.5692, allocations: 0 / 404.9 MB, free: 6.449 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.684e-05/0.5692, allocations: 4 kB / 404.9 MB, free: 6.445 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.448e-06/0.5692, allocations: 3.953 kB / 404.9 MB, free: 6.441 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.5692, allocations: 0 / 404.9 MB, free: 6.441 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002764/0.5695, allocations: 179.3 kB / 405.1 MB, free: 6.25 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.98e-05/0.5696, allocations: 93.02 kB / 405.2 MB, free: 6.141 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.492e-05/0.5697, allocations: 8 kB / 405.2 MB, free: 6.133 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.632e-05/0.5698, allocations: 0 / 405.2 MB, free: 6.133 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.367e-05/0.5699, allocations: 11.94 kB / 405.2 MB, free: 6.121 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.599e-05/0.5699, allocations: 4 kB / 405.2 MB, free: 6.117 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002506/0.5702, allocations: 172.2 kB / 405.4 MB, free: 5.949 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.4e-07/0.5702, allocations: 0 / 405.4 MB, free: 5.949 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004127/0.5706, allocations: 39.92 kB / 405.4 MB, free: 5.91 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.001546/0.5721, allocations: 0.9605 MB / 406.4 MB, free: 4.984 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003051/0.5725, allocations: 111.4 kB / 406.5 MB, free: 4.863 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.5725, allocations: 0 / 406.5 MB, free: 4.863 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 7.547e-05/0.5726, allocations: 23.94 kB / 406.5 MB, free: 4.84 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003319/0.5729, allocations: 20.06 kB / 406.5 MB, free: 4.82 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008152/0.5738, allocations: 269.2 kB / 406.8 MB, free: 4.512 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004152/0.5742, allocations: 0.7121 MB / 407.5 MB, free: 3.773 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.968e-05/0.5743, allocations: 35.42 kB / 407.6 MB, free: 3.738 MB / 330.7 MB Notification: Performance of SimCode: time 6.71e-07/0.5743, allocations: 4 kB / 407.6 MB, free: 3.734 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_Test7CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test7CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test7CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test7FMU.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_Test7.so OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test7CalcHelperMain.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_Test7_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test7.fmu' failed make: *** [ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test7.fmu] Error 1