Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test32,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test32",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.034/2.034, allocations: 209.3 MB / 221.9 MB, free: 1.945 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.141e-05/4.156e-05, allocations: 4 kB / 273.1 MB, free: 0.6523 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.114/0.1141, allocations: 48.71 MB / 321.8 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.507/0.6211, allocations: 75.74 MB / 397.6 MB, free: 14.21 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003556/0.6215, allocations: 75.11 kB / 397.6 MB, free: 14.14 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02505/0.6466, allocations: 3.915 MB / 401.6 MB, free: 10.23 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.175e-06/0.6467, allocations: 0 / 401.6 MB, free: 10.23 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.69e-05/0.6467, allocations: 0 / 401.6 MB, free: 10.23 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.000709/0.6474, allocations: 423.9 kB / 402 MB, free: 9.766 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.956e-05/0.6475, allocations: 11.97 kB / 402 MB, free: 9.754 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.58e-05/0.6476, allocations: 30.56 kB / 402 MB, free: 9.715 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.355e-05/0.6477, allocations: 7.906 kB / 402 MB, free: 9.707 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003754/0.6481, allocations: 194.9 kB / 402.2 MB, free: 9.477 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.626e-05/0.6481, allocations: 0 / 402.2 MB, free: 9.477 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.902e-05/0.6481, allocations: 11.91 kB / 402.2 MB, free: 9.465 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001671/0.6483, allocations: 45.67 kB / 402.3 MB, free: 9.414 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.937e-05/0.6484, allocations: 0 / 402.3 MB, free: 9.414 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.439e-05/0.6484, allocations: 4 kB / 402.3 MB, free: 9.41 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.477e-06/0.6484, allocations: 4 kB / 402.3 MB, free: 9.406 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.813e-05/0.6485, allocations: 15.95 kB / 402.3 MB, free: 9.391 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006263/0.6492, allocations: 288.9 kB / 402.6 MB, free: 9.059 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003218/0.6495, allocations: 43.03 kB / 402.6 MB, free: 9.008 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.296e-05/0.6496, allocations: 12.86 kB / 402.6 MB, free: 8.992 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.204e-05/0.6497, allocations: 7.938 kB / 402.6 MB, free: 8.984 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001948/0.6499, allocations: 67.41 kB / 402.7 MB, free: 8.906 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 3.878e-06/0.6499, allocations: 0 / 402.7 MB, free: 8.906 MB / 330.7 MB Notification: Performance of matching and sorting (n=5): time 0.0006603/0.6506, allocations: 109.3 kB / 402.8 MB, free: 8.793 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.721e-05/0.6506, allocations: 51.41 kB / 402.9 MB, free: 8.73 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000314/0.651, allocations: 152.9 kB / 403 MB, free: 8.574 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.42e-05/0.651, allocations: 29.7 kB / 403 MB, free: 8.539 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001142/0.6512, allocations: 178.4 kB / 403.2 MB, free: 8.363 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.604e-05/0.6512, allocations: 15.81 kB / 403.2 MB, free: 8.348 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.163e-05/0.6513, allocations: 0 / 403.2 MB, free: 8.348 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001566/0.6514, allocations: 318.8 kB / 403.5 MB, free: 8.027 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001143/0.6516, allocations: 20 kB / 403.6 MB, free: 8.008 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000108/0.6517, allocations: 23.98 kB / 403.6 MB, free: 7.984 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001562/0.6519, allocations: 53.69 kB / 403.6 MB, free: 7.926 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.6519, allocations: 3.938 kB / 403.6 MB, free: 7.922 MB / 330.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004237/0.6523, allocations: 127.2 kB / 403.8 MB, free: 7.785 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.089e-05/0.6524, allocations: 37.69 kB / 403.8 MB, free: 7.742 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.727e-06/0.6524, allocations: 4 kB / 403.8 MB, free: 7.738 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.21e-05/0.6525, allocations: 3.953 kB / 403.8 MB, free: 7.734 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001256/0.6526, allocations: 8 kB / 403.8 MB, free: 7.727 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.858e-06/0.6526, allocations: 0 / 403.8 MB, free: 7.727 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001186/0.6528, allocations: 4 kB / 403.8 MB, free: 7.723 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.745e-05/0.6528, allocations: 4 kB / 403.8 MB, free: 7.719 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.0001164/0.6529, allocations: 109 kB / 403.9 MB, free: 7.605 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.411e-05/0.653, allocations: 7.906 kB / 403.9 MB, free: 7.598 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003642/0.6534, allocations: 97.8 kB / 404 MB, free: 7.5 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.939e-06/0.6534, allocations: 3.938 kB / 404 MB, free: 7.496 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.305e-06/0.6534, allocations: 4.078 kB / 404 MB, free: 7.492 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.693e-06/0.6534, allocations: 4 kB / 404 MB, free: 7.488 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006171/0.6541, allocations: 342.6 kB / 404.4 MB, free: 7.098 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.6541, allocations: 0 / 404.4 MB, free: 7.098 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.986e-05/0.6542, allocations: 11.92 kB / 404.4 MB, free: 7.086 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.103e-05/0.6542, allocations: 4 kB / 404.4 MB, free: 7.082 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.041e-05/0.6543, allocations: 7.953 kB / 404.4 MB, free: 7.074 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.337e-06/0.6543, allocations: 4 kB / 404.4 MB, free: 7.07 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.6543, allocations: 0 / 404.4 MB, free: 7.07 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003555/0.6547, allocations: 167.5 kB / 404.6 MB, free: 6.891 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.644e-05/0.6548, allocations: 89 kB / 404.7 MB, free: 6.785 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.252e-05/0.6548, allocations: 4 kB / 404.7 MB, free: 6.781 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001629/0.655, allocations: 7.953 kB / 404.7 MB, free: 6.773 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.849e-05/0.6551, allocations: 7.984 kB / 404.7 MB, free: 6.766 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.448e-05/0.6551, allocations: 4 kB / 404.7 MB, free: 6.762 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002175/0.6553, allocations: 127.8 kB / 404.8 MB, free: 6.637 MB / 330.7 MB Notification: Performance of sort global known variables: time 8.41e-07/0.6554, allocations: 0 / 404.8 MB, free: 6.637 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0008027/0.6562, allocations: 39.92 kB / 404.8 MB, free: 6.598 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.002422/0.6586, allocations: 0.9559 MB / 405.8 MB, free: 5.672 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.000405/0.6591, allocations: 111.3 kB / 405.9 MB, free: 5.551 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.399e-06/0.6591, allocations: 0 / 405.9 MB, free: 5.551 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 9.995e-05/0.6592, allocations: 23.98 kB / 405.9 MB, free: 5.527 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004807/0.6597, allocations: 15.95 kB / 406 MB, free: 5.512 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001007/0.6608, allocations: 229.2 kB / 406.2 MB, free: 5.246 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000411/0.6612, allocations: 0.7034 MB / 406.9 MB, free: 4.52 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001106/0.6613, allocations: 27.42 kB / 406.9 MB, free: 4.492 MB / 330.7 MB Notification: Performance of SimCode: time 1.473e-06/0.6614, allocations: 0 / 406.9 MB, free: 4.492 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_Test32CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test32CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test32CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test32FMU.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_Test32.so OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test32CalcHelperMain.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_Test32_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test32.fmu' failed make: *** [ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test32.fmu] Error 1