Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test37,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test37",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.181/2.181, allocations: 209.3 MB / 221.9 MB, free: 1.93 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 5.165e-05/5.171e-05, allocations: 4 kB / 273.2 MB, free: 0.6367 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1135/0.1136, allocations: 48.71 MB / 321.9 MB, free: 15.83 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5076/0.6213, allocations: 75.61 MB / 397.5 MB, free: 14.32 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002643/0.6216, allocations: 71.95 kB / 397.5 MB, free: 14.25 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01749/0.6391, allocations: 3.827 MB / 401.4 MB, free: 10.43 MB / 330.7 MB Notification: Performance of FrontEnd: time 4.368e-06/0.6392, allocations: 3.984 kB / 401.4 MB, free: 10.43 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.45e-05/0.6392, allocations: 4 kB / 401.4 MB, free: 10.43 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.0005912/0.6398, allocations: 404 kB / 401.8 MB, free: 9.98 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.942e-05/0.6398, allocations: 15.91 kB / 401.8 MB, free: 9.965 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.962e-05/0.6399, allocations: 30.56 kB / 401.8 MB, free: 9.926 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.399e-05/0.64, allocations: 4 kB / 401.8 MB, free: 9.922 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003282/0.6403, allocations: 198.8 kB / 402 MB, free: 9.688 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.699e-05/0.6403, allocations: 4 kB / 402 MB, free: 9.684 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.886e-05/0.6404, allocations: 0 / 402 MB, free: 9.684 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001226/0.6405, allocations: 45.69 kB / 402.1 MB, free: 9.633 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.328e-06/0.6405, allocations: 0 / 402.1 MB, free: 9.633 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.156e-05/0.6405, allocations: 0 / 402.1 MB, free: 9.633 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.37e-06/0.6406, allocations: 0 / 402.1 MB, free: 9.633 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.749e-05/0.6406, allocations: 15.94 kB / 402.1 MB, free: 9.617 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003086/0.6409, allocations: 185.5 kB / 402.3 MB, free: 9.387 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.623e-05/0.6411, allocations: 30.56 kB / 402.3 MB, free: 9.348 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.728e-05/0.6411, allocations: 16.92 kB / 402.3 MB, free: 9.328 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.878e-05/0.6412, allocations: 0 / 402.3 MB, free: 9.328 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001524/0.6413, allocations: 55.84 kB / 402.4 MB, free: 9.262 MB / 330.7 MB Notification: Performance of pre-optimization done (n=3): time 1.884e-06/0.6413, allocations: 0 / 402.4 MB, free: 9.262 MB / 330.7 MB Notification: Performance of matching and sorting (n=3): time 0.0002567/0.6416, allocations: 65.52 kB / 402.4 MB, free: 9.191 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.091e-05/0.6417, allocations: 51.41 kB / 402.5 MB, free: 9.129 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002498/0.6419, allocations: 156.3 kB / 402.6 MB, free: 8.969 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.061e-05/0.642, allocations: 29.7 kB / 402.7 MB, free: 8.934 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.822e-05/0.6421, allocations: 158.6 kB / 402.8 MB, free: 8.777 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.108e-05/0.6421, allocations: 11.91 kB / 402.8 MB, free: 8.766 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.133e-06/0.6421, allocations: 0 / 402.8 MB, free: 8.766 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001508/0.6423, allocations: 318.8 kB / 403.1 MB, free: 8.445 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.536e-05/0.6424, allocations: 20 kB / 403.1 MB, free: 8.426 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.545e-05/0.6425, allocations: 12 kB / 403.2 MB, free: 8.414 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.858e-05/0.6426, allocations: 49.69 kB / 403.2 MB, free: 8.359 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.6426, allocations: 0 / 403.2 MB, free: 8.359 MB / 330.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002672/0.6429, allocations: 111.4 kB / 403.3 MB, free: 8.238 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.298e-05/0.6429, allocations: 37.69 kB / 403.4 MB, free: 8.195 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/0.643, allocations: 0 / 403.4 MB, free: 8.195 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.689e-05/0.643, allocations: 4 kB / 403.4 MB, free: 8.191 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.66e-05/0.6431, allocations: 11.88 kB / 403.4 MB, free: 8.18 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.965e-06/0.6431, allocations: 0 / 403.4 MB, free: 8.18 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.562e-05/0.6432, allocations: 7.938 kB / 403.4 MB, free: 8.172 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.342e-05/0.6432, allocations: 0 / 403.4 MB, free: 8.172 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.0001092/0.6434, allocations: 116.9 kB / 403.5 MB, free: 8.051 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.79e-05/0.6434, allocations: 7.906 kB / 403.5 MB, free: 8.043 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002461/0.6437, allocations: 81.59 kB / 403.6 MB, free: 7.957 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.163e-06/0.6437, allocations: 4.031 kB / 403.6 MB, free: 7.953 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.6437, allocations: 0 / 403.6 MB, free: 7.953 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.6437, allocations: 0 / 403.6 MB, free: 7.953 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002158/0.6439, allocations: 177.6 kB / 403.8 MB, free: 7.73 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/0.6439, allocations: 0 / 403.8 MB, free: 7.73 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.353e-05/0.644, allocations: 4.125 kB / 403.8 MB, free: 7.727 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.228e-06/0.644, allocations: 3.938 kB / 403.8 MB, free: 7.723 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.255e-05/0.644, allocations: 8 kB / 403.8 MB, free: 7.715 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.504e-06/0.644, allocations: 0 / 403.8 MB, free: 7.715 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.6441, allocations: 4 kB / 403.8 MB, free: 7.711 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001929/0.6443, allocations: 96.97 kB / 403.9 MB, free: 7.598 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.433e-05/0.6444, allocations: 85.02 kB / 404 MB, free: 7.496 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.77e-05/0.6444, allocations: 0 / 404 MB, free: 7.496 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.219e-05/0.6445, allocations: 7.984 kB / 404 MB, free: 7.488 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.258e-05/0.6445, allocations: 0 / 404 MB, free: 7.488 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.468e-05/0.6446, allocations: 4 kB / 404 MB, free: 7.484 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001779/0.6447, allocations: 135 kB / 404.1 MB, free: 7.355 MB / 330.7 MB Notification: Performance of sort global known variables: time 9.52e-07/0.6448, allocations: 0 / 404.1 MB, free: 7.355 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003326/0.6451, allocations: 28 kB / 404.1 MB, free: 7.328 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.001377/0.6465, allocations: 0.8302 MB / 405 MB, free: 6.52 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002784/0.6468, allocations: 103.4 kB / 405.1 MB, free: 6.406 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.6468, allocations: 0 / 405.1 MB, free: 6.406 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 5.847e-05/0.6469, allocations: 15.94 kB / 405.1 MB, free: 6.391 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002984/0.6472, allocations: 15.89 kB / 405.1 MB, free: 6.375 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006709/0.6479, allocations: 209.5 kB / 405.3 MB, free: 6.125 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003892/0.6483, allocations: 0.6965 MB / 406 MB, free: 5.402 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.488e-05/0.6484, allocations: 27.42 kB / 406 MB, free: 5.375 MB / 330.7 MB Notification: Performance of SimCode: time 1.272e-06/0.6484, allocations: 0 / 406 MB, free: 5.375 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_Test37CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test37CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test37CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test37FMU.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_Test37.so OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test37CalcHelperMain.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_Test37_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test37.fmu' failed make: *** [ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test37.fmu] Error 1