Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test42,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test42",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.109/2.109, allocations: 209.3 MB / 221.9 MB, free: 1.934 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.89e-05/3.859e-05, allocations: 4 kB / 273.1 MB, free: 0.6367 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1031/0.1032, allocations: 48.71 MB / 321.9 MB, free: 15.83 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4088/0.5121, allocations: 75.78 MB / 397.6 MB, free: 14.03 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002814/0.5125, allocations: 70.94 kB / 397.7 MB, free: 13.96 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01924/0.5317, allocations: 4.075 MB / 401.8 MB, free: 9.891 MB / 330.7 MB Notification: Performance of FrontEnd: time 4.177e-06/0.5318, allocations: 3.984 kB / 401.8 MB, free: 9.887 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.71e-05/0.5318, allocations: 0 / 401.8 MB, free: 9.887 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.0006363/0.5325, allocations: 427.8 kB / 402.2 MB, free: 9.418 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.54e-05/0.5325, allocations: 12.03 kB / 402.2 MB, free: 9.406 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.645e-05/0.5326, allocations: 30.56 kB / 402.2 MB, free: 9.367 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.143e-05/0.5326, allocations: 7.906 kB / 402.2 MB, free: 9.359 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003188/0.533, allocations: 207.4 kB / 402.5 MB, free: 9.113 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.6e-05/0.533, allocations: 0 / 402.5 MB, free: 9.113 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.078e-05/0.5331, allocations: 4 kB / 402.5 MB, free: 9.109 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001336/0.5332, allocations: 45.62 kB / 402.5 MB, free: 9.059 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.262e-05/0.5332, allocations: 0 / 402.5 MB, free: 9.059 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.254e-05/0.5333, allocations: 0 / 402.5 MB, free: 9.059 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.61e-06/0.5333, allocations: 8 kB / 402.5 MB, free: 9.051 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.262e-05/0.5334, allocations: 15.98 kB / 402.5 MB, free: 9.035 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005022/0.5339, allocations: 288.9 kB / 402.8 MB, free: 8.703 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002605/0.5342, allocations: 43.03 kB / 402.8 MB, free: 8.652 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.47e-05/0.5342, allocations: 12.86 kB / 402.9 MB, free: 8.637 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.986e-05/0.5343, allocations: 3.938 kB / 402.9 MB, free: 8.633 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001513/0.5344, allocations: 59.5 kB / 402.9 MB, free: 8.562 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 5.24e-06/0.5344, allocations: 3.984 kB / 402.9 MB, free: 8.559 MB / 330.7 MB Notification: Performance of matching and sorting (n=5): time 0.0005165/0.535, allocations: 117.3 kB / 403 MB, free: 8.438 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.122e-05/0.535, allocations: 55.34 kB / 403.1 MB, free: 8.371 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002746/0.5353, allocations: 174.8 kB / 403.3 MB, free: 8.195 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.47e-05/0.5354, allocations: 25.7 kB / 403.3 MB, free: 8.164 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.891e-05/0.5355, allocations: 162.5 kB / 403.4 MB, free: 8.004 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.205e-05/0.5355, allocations: 19.81 kB / 403.5 MB, free: 7.984 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.106e-06/0.5355, allocations: 0 / 403.5 MB, free: 7.984 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001334/0.5357, allocations: 318.8 kB / 403.8 MB, free: 7.664 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.571e-05/0.5357, allocations: 20 kB / 403.8 MB, free: 7.645 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.778e-05/0.5358, allocations: 23.98 kB / 403.8 MB, free: 7.621 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001089/0.536, allocations: 57.62 kB / 403.9 MB, free: 7.559 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.536, allocations: 0 / 403.9 MB, free: 7.559 MB / 330.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000303/0.5363, allocations: 123.4 kB / 404 MB, free: 7.426 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.363e-05/0.5364, allocations: 41.62 kB / 404 MB, free: 7.379 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/0.5364, allocations: 4 kB / 404 MB, free: 7.375 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.854e-05/0.5364, allocations: 0 / 404 MB, free: 7.375 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.758e-05/0.5365, allocations: 8 kB / 404.1 MB, free: 7.367 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.177e-05/0.5365, allocations: 3.953 kB / 404.1 MB, free: 7.363 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.021e-05/0.5366, allocations: 7.938 kB / 404.1 MB, free: 7.355 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.428e-05/0.5367, allocations: 0 / 404.1 MB, free: 7.355 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 9.874e-05/0.5368, allocations: 113 kB / 404.2 MB, free: 7.238 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.136e-05/0.5368, allocations: 7.906 kB / 404.2 MB, free: 7.23 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003067/0.5371, allocations: 97.7 kB / 404.3 MB, free: 7.133 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.939e-06/0.5372, allocations: 0 / 404.3 MB, free: 7.133 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.5372, allocations: 0 / 404.3 MB, free: 7.133 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.624e-06/0.5372, allocations: 3.953 kB / 404.3 MB, free: 7.129 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005589/0.5377, allocations: 354.7 kB / 404.6 MB, free: 6.727 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.683e-06/0.5378, allocations: 3.984 kB / 404.6 MB, free: 6.723 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.967e-05/0.5379, allocations: 8 kB / 404.6 MB, free: 6.715 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.394e-06/0.5379, allocations: 0 / 404.6 MB, free: 6.715 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.332e-05/0.5379, allocations: 7.938 kB / 404.6 MB, free: 6.707 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.229e-06/0.5379, allocations: 3.953 kB / 404.6 MB, free: 6.703 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.5379, allocations: 4 kB / 404.7 MB, free: 6.699 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002429/0.5382, allocations: 175.3 kB / 404.8 MB, free: 6.512 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.406e-05/0.5383, allocations: 85.02 kB / 404.9 MB, free: 6.41 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.496e-05/0.5383, allocations: 8 kB / 404.9 MB, free: 6.402 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.861e-05/0.5384, allocations: 0 / 404.9 MB, free: 6.402 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.131e-05/0.5385, allocations: 11.94 kB / 404.9 MB, free: 6.391 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.204e-05/0.5385, allocations: 0 / 404.9 MB, free: 6.391 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001833/0.5387, allocations: 139.2 kB / 405.1 MB, free: 6.254 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.5387, allocations: 0 / 405.1 MB, free: 6.254 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004045/0.5391, allocations: 35.94 kB / 405.1 MB, free: 6.219 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.001538/0.5407, allocations: 0.9558 MB / 406.1 MB, free: 5.293 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002874/0.541, allocations: 107.4 kB / 406.2 MB, free: 5.176 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.586e-06/0.541, allocations: 0 / 406.2 MB, free: 5.176 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 7.443e-05/0.5411, allocations: 23.94 kB / 406.2 MB, free: 5.152 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003841/0.5415, allocations: 19.88 kB / 406.2 MB, free: 5.133 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000744/0.5423, allocations: 236.8 kB / 406.4 MB, free: 4.859 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003225/0.5426, allocations: 0.7004 MB / 407.1 MB, free: 4.133 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.135e-05/0.5427, allocations: 27.42 kB / 407.2 MB, free: 4.105 MB / 330.7 MB Notification: Performance of SimCode: time 1.132e-06/0.5427, allocations: 0 / 407.2 MB, free: 4.105 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_Test42CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test42CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test42CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test42FMU.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_Test42.so OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test42CalcHelperMain.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_Test42_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test42.fmu' failed make: *** [ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test42.fmu] Error 1