Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test13,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test13",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.149/2.149, allocations: 209.3 MB / 221.9 MB, free: 1.93 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.693e-05/3.713e-05, allocations: 8 kB / 273.1 MB, free: 0.6367 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1058/0.1059, allocations: 48.7 MB / 321.8 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4452/0.5512, allocations: 76.53 MB / 398.4 MB, free: 13.39 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002858/0.5515, allocations: 67.97 kB / 398.4 MB, free: 13.32 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01488/0.5664, allocations: 3.193 MB / 401.6 MB, free: 10.14 MB / 330.7 MB Notification: Performance of FrontEnd: time 4.909e-06/0.5665, allocations: 4 kB / 401.6 MB, free: 10.14 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.804e-05/0.5665, allocations: 0 / 401.6 MB, free: 10.14 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0007268/0.5673, allocations: 461.6 kB / 402.1 MB, free: 9.629 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.342e-05/0.5673, allocations: 12.03 kB / 402.1 MB, free: 9.617 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.88e-05/0.5674, allocations: 34.56 kB / 402.1 MB, free: 9.574 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.026e-05/0.5675, allocations: 11.91 kB / 402.1 MB, free: 9.562 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003394/0.5678, allocations: 212.4 kB / 402.3 MB, free: 9.316 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.499e-05/0.5678, allocations: 4 kB / 402.3 MB, free: 9.312 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.169e-05/0.5679, allocations: 11.94 kB / 402.4 MB, free: 9.301 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002011/0.5681, allocations: 73.61 kB / 402.4 MB, free: 9.223 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.113e-05/0.5681, allocations: 0 / 402.4 MB, free: 9.223 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.822e-05/0.5682, allocations: 8 kB / 402.4 MB, free: 9.215 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.813e-06/0.5682, allocations: 0 / 402.4 MB, free: 9.215 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001552/0.5683, allocations: 28 kB / 402.5 MB, free: 9.188 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007365/0.5691, allocations: 352.6 kB / 402.8 MB, free: 8.793 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000324/0.5694, allocations: 70.62 kB / 402.9 MB, free: 8.715 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.128e-05/0.5695, allocations: 20.98 kB / 402.9 MB, free: 8.691 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.259e-05/0.5696, allocations: 4 kB / 402.9 MB, free: 8.688 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002027/0.5698, allocations: 71.39 kB / 403 MB, free: 8.605 MB / 330.7 MB Notification: Performance of pre-optimization done (n=7): time 2.755e-06/0.5698, allocations: 0 / 403 MB, free: 8.605 MB / 330.7 MB Notification: Performance of matching and sorting (n=7): time 0.0003151/0.5701, allocations: 93.38 kB / 403.1 MB, free: 8.508 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.641e-05/0.5702, allocations: 55.39 kB / 403.1 MB, free: 8.441 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002207/0.5704, allocations: 149 kB / 403.3 MB, free: 8.293 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.42e-05/0.5705, allocations: 37.64 kB / 403.3 MB, free: 8.25 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001033/0.5706, allocations: 162.5 kB / 403.5 MB, free: 8.09 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.248e-05/0.5707, allocations: 23.73 kB / 403.5 MB, free: 8.066 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.117e-06/0.5707, allocations: 0 / 403.5 MB, free: 8.066 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000153/0.5708, allocations: 322.8 kB / 403.8 MB, free: 7.742 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.31e-05/0.5709, allocations: 24 kB / 403.8 MB, free: 7.719 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001053/0.5711, allocations: 37.7 kB / 403.9 MB, free: 7.676 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001358/0.5712, allocations: 61.69 kB / 403.9 MB, free: 7.609 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.466e-06/0.5712, allocations: 0 / 403.9 MB, free: 7.609 MB / 330.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003429/0.5716, allocations: 139.8 kB / 404.1 MB, free: 7.461 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.926e-05/0.5716, allocations: 37.7 kB / 404.1 MB, free: 7.418 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.773e-06/0.5717, allocations: 4.031 kB / 404.1 MB, free: 7.414 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.715e-05/0.5717, allocations: 0 / 404.1 MB, free: 7.414 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001778/0.5719, allocations: 23.88 kB / 404.1 MB, free: 7.391 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.078e-05/0.5719, allocations: 4 kB / 404.1 MB, free: 7.387 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000113/0.572, allocations: 11.84 kB / 404.1 MB, free: 7.375 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.091e-05/0.5721, allocations: 7.938 kB / 404.1 MB, free: 7.367 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (10): * Single equations (assignments): 9 * 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.0001137/0.5722, allocations: 117 kB / 404.3 MB, free: 7.246 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.155e-05/0.5722, allocations: 7.906 kB / 404.3 MB, free: 7.238 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003346/0.5726, allocations: 106.2 kB / 404.4 MB, free: 7.129 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.753e-06/0.5726, allocations: 4 kB / 404.4 MB, free: 7.125 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.897e-06/0.5726, allocations: 3.953 kB / 404.4 MB, free: 7.121 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.582e-06/0.5726, allocations: 3.984 kB / 404.4 MB, free: 7.117 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00025/0.5729, allocations: 197.8 kB / 404.6 MB, free: 6.875 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.5729, allocations: 0 / 404.6 MB, free: 6.875 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001545/0.5731, allocations: 15.94 kB / 404.6 MB, free: 6.859 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.87e-06/0.5731, allocations: 0 / 404.6 MB, free: 6.859 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.88e-05/0.5731, allocations: 3.984 kB / 404.6 MB, free: 6.855 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.925e-06/0.5731, allocations: 0 / 404.6 MB, free: 6.855 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.943e-06/0.5731, allocations: 8 kB / 404.6 MB, free: 6.848 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003708/0.5735, allocations: 144.8 kB / 404.7 MB, free: 6.688 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.71e-05/0.5736, allocations: 89.05 kB / 404.8 MB, free: 6.582 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.086e-05/0.5737, allocations: 0 / 404.8 MB, free: 6.582 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.939e-05/0.5738, allocations: 11.98 kB / 404.8 MB, free: 6.57 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.389e-05/0.5738, allocations: 4 kB / 404.8 MB, free: 6.566 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.038e-05/0.5739, allocations: 12.05 kB / 404.9 MB, free: 6.555 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001555/0.574, allocations: 123.3 kB / 405 MB, free: 6.434 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.5741, allocations: 0 / 405 MB, free: 6.434 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003422/0.5744, allocations: 39.89 kB / 405 MB, free: 6.395 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (err1.y) * 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 (8): * Single equations (assignments): 7 * 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.001549/0.576, allocations: 0.8791 MB / 405.9 MB, free: 5.543 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003826/0.5764, allocations: 123.4 kB / 406 MB, free: 5.41 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.302e-06/0.5764, allocations: 0 / 406 MB, free: 5.41 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 9.311e-05/0.5765, allocations: 27.94 kB / 406 MB, free: 5.383 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003808/0.5769, allocations: 31.94 kB / 406.1 MB, free: 5.352 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008333/0.5778, allocations: 251.5 kB / 406.3 MB, free: 5.059 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003655/0.5782, allocations: 0.7122 MB / 407 MB, free: 4.32 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001039/0.5783, allocations: 35.42 kB / 407.1 MB, free: 4.285 MB / 330.7 MB Notification: Performance of SimCode: time 1.774e-06/0.5783, allocations: 0 / 407.1 MB, free: 4.285 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_Test13CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test13CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test13CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test13FMU.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_Test13.so OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test13CalcHelperMain.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_Test13_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test13.fmu' failed make: *** [ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test13.fmu] Error 1