Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test10,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test10",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.16/2.16, allocations: 209.3 MB / 221.9 MB, free: 1.93 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.01e-05/4.016e-05, allocations: 4 kB / 273.2 MB, free: 0.6328 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1046/0.1047, allocations: 48.71 MB / 321.9 MB, free: 15.82 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4168/0.5216, allocations: 76.53 MB / 398.4 MB, free: 13.29 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002702/0.5219, allocations: 67.97 kB / 398.5 MB, free: 13.22 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01482/0.5368, allocations: 3.22 MB / 401.7 MB, free: 10 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.144e-06/0.5368, allocations: 4 kB / 401.7 MB, free: 10 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.912e-05/0.5368, allocations: 4 kB / 401.7 MB, free: 9.996 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.000762/0.5376, allocations: 465.6 kB / 402.1 MB, free: 9.484 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.168e-05/0.5377, allocations: 12.02 kB / 402.2 MB, free: 9.473 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.663e-05/0.5378, allocations: 38.56 kB / 402.2 MB, free: 9.426 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.331e-05/0.5378, allocations: 7.906 kB / 402.2 MB, free: 9.418 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003461/0.5382, allocations: 208.4 kB / 402.4 MB, free: 9.176 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.512e-05/0.5382, allocations: 8 kB / 402.4 MB, free: 9.168 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.261e-05/0.5383, allocations: 4 kB / 402.4 MB, free: 9.164 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001963/0.5385, allocations: 65.67 kB / 402.5 MB, free: 9.094 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.438e-06/0.5385, allocations: 0 / 402.5 MB, free: 9.094 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.92e-05/0.5385, allocations: 4 kB / 402.5 MB, free: 9.09 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.101e-06/0.5385, allocations: 0 / 402.5 MB, free: 9.09 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001153/0.5387, allocations: 31.98 kB / 402.5 MB, free: 9.059 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007181/0.5394, allocations: 360.5 kB / 402.9 MB, free: 8.656 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002969/0.5397, allocations: 62.69 kB / 402.9 MB, free: 8.586 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.97e-05/0.5398, allocations: 28.97 kB / 403 MB, free: 8.555 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.48e-05/0.5398, allocations: 0 / 403 MB, free: 8.555 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001984/0.5401, allocations: 71.39 kB / 403 MB, free: 8.473 MB / 330.7 MB Notification: Performance of pre-optimization done (n=7): time 2.705e-06/0.5401, allocations: 0 / 403 MB, free: 8.473 MB / 330.7 MB Notification: Performance of matching and sorting (n=7): time 0.0002994/0.5404, allocations: 93.39 kB / 403.1 MB, free: 8.375 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.313e-05/0.5404, allocations: 51.41 kB / 403.2 MB, free: 8.312 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002049/0.5407, allocations: 152.8 kB / 403.3 MB, free: 8.16 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.993e-05/0.5407, allocations: 29.7 kB / 403.3 MB, free: 8.125 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.26e-05/0.5408, allocations: 166.6 kB / 403.5 MB, free: 7.961 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.752e-05/0.5409, allocations: 27.69 kB / 403.5 MB, free: 7.934 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.37e-05/0.5409, allocations: 8 kB / 403.5 MB, free: 7.926 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001257/0.541, allocations: 314.8 kB / 403.9 MB, free: 7.609 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.286e-05/0.5411, allocations: 24 kB / 403.9 MB, free: 7.586 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001019/0.5412, allocations: 37.72 kB / 403.9 MB, free: 7.543 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001264/0.5414, allocations: 62.23 kB / 404 MB, free: 7.477 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.5414, allocations: 0 / 404 MB, free: 7.477 MB / 330.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003355/0.5417, allocations: 143.3 kB / 404.1 MB, free: 7.324 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.635e-05/0.5418, allocations: 33.69 kB / 404.1 MB, free: 7.285 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.023e-06/0.5418, allocations: 4 kB / 404.2 MB, free: 7.281 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.017e-05/0.5419, allocations: 0 / 404.2 MB, free: 7.281 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000175/0.542, allocations: 19.94 kB / 404.2 MB, free: 7.262 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.262e-05/0.5421, allocations: 7.938 kB / 404.2 MB, free: 7.254 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001124/0.5422, allocations: 15.84 kB / 404.2 MB, free: 7.238 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.798e-05/0.5422, allocations: 4 kB / 404.2 MB, free: 7.234 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.0001061/0.5423, allocations: 109 kB / 404.3 MB, free: 7.121 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.182e-05/0.5424, allocations: 15.84 kB / 404.3 MB, free: 7.105 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002957/0.5427, allocations: 98.27 kB / 404.4 MB, free: 7.008 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.5427, allocations: 0 / 404.4 MB, free: 7.008 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.047e-06/0.5427, allocations: 7.953 kB / 404.4 MB, free: 7 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.988e-06/0.5427, allocations: 0 / 404.4 MB, free: 7 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002462/0.543, allocations: 193.6 kB / 404.6 MB, free: 6.762 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.543, allocations: 0 / 404.6 MB, free: 6.762 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001592/0.5432, allocations: 23.91 kB / 404.6 MB, free: 6.738 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.883e-06/0.5432, allocations: 4 kB / 404.6 MB, free: 6.734 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.84e-05/0.5432, allocations: 4 kB / 404.6 MB, free: 6.73 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.417e-06/0.5432, allocations: 160 / 404.6 MB, free: 6.73 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.5433, allocations: 0 / 404.6 MB, free: 6.73 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003581/0.5436, allocations: 156.8 kB / 404.8 MB, free: 6.559 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.836e-05/0.5437, allocations: 85.05 kB / 404.9 MB, free: 6.457 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.986e-05/0.5438, allocations: 0 / 404.9 MB, free: 6.457 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.958e-05/0.5439, allocations: 12.06 kB / 404.9 MB, free: 6.445 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.091e-05/0.5439, allocations: 7.984 kB / 404.9 MB, free: 6.438 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.609e-05/0.544, allocations: 4 kB / 404.9 MB, free: 6.434 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001438/0.5441, allocations: 119.5 kB / 405 MB, free: 6.316 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.5441, allocations: 0 / 405 MB, free: 6.316 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003558/0.5445, allocations: 47.81 kB / 405.1 MB, free: 6.27 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.001438/0.5459, allocations: 0.879 MB / 405.9 MB, free: 5.414 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003165/0.5463, allocations: 123.3 kB / 406.1 MB, free: 5.281 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.5463, allocations: 0 / 406.1 MB, free: 5.281 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 8.786e-05/0.5464, allocations: 23.98 kB / 406.1 MB, free: 5.258 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000344/0.5468, allocations: 28.08 kB / 406.1 MB, free: 5.23 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008209/0.5476, allocations: 259.7 kB / 406.4 MB, free: 4.934 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003363/0.548, allocations: 0.7121 MB / 407.1 MB, free: 4.195 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.488e-05/0.5481, allocations: 27.42 kB / 407.1 MB, free: 4.168 MB / 330.7 MB Notification: Performance of SimCode: time 9.72e-07/0.5481, allocations: 0 / 407.1 MB, free: 4.168 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_Test10CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test10CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test10CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test10FMU.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_Test10.so OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test10CalcHelperMain.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_Test10_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test10.fmu' failed make: *** [ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test10.fmu] Error 1