Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test40,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test40",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.002/2.002, allocations: 209.3 MB / 221.9 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.403e-05/3.413e-05, allocations: 4 kB / 273.1 MB, free: 0.6328 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1141/0.1141, allocations: 48.7 MB / 321.8 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4657/0.5799, allocations: 75.78 MB / 397.6 MB, free: 14.16 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002791/0.5803, allocations: 67.95 kB / 397.7 MB, free: 14.09 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01944/0.5997, allocations: 4.121 MB / 401.8 MB, free: 9.98 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.5998, allocations: 4 kB / 401.8 MB, free: 9.977 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.777e-05/0.5998, allocations: 8 kB / 401.8 MB, free: 9.969 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.0005854/0.6004, allocations: 415.9 kB / 402.2 MB, free: 9.512 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.306e-05/0.6005, allocations: 16.02 kB / 402.2 MB, free: 9.496 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.978e-05/0.6005, allocations: 34.56 kB / 402.3 MB, free: 9.453 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.106e-05/0.6006, allocations: 7.906 kB / 402.3 MB, free: 9.445 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003248/0.6009, allocations: 204.7 kB / 402.5 MB, free: 9.207 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.603e-05/0.601, allocations: 4 kB / 402.5 MB, free: 9.203 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.659e-05/0.601, allocations: 0 / 402.5 MB, free: 9.203 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001365/0.6012, allocations: 57.62 kB / 402.5 MB, free: 9.141 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.142e-05/0.6012, allocations: 0 / 402.5 MB, free: 9.141 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.154e-05/0.6012, allocations: 0 / 402.5 MB, free: 9.141 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.21e-06/0.6012, allocations: 0 / 402.5 MB, free: 9.141 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.48e-05/0.6013, allocations: 11.98 kB / 402.5 MB, free: 9.129 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005221/0.6018, allocations: 296.9 kB / 402.8 MB, free: 8.789 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002789/0.6021, allocations: 50.97 kB / 402.9 MB, free: 8.73 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.43e-05/0.6022, allocations: 12.86 kB / 402.9 MB, free: 8.715 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.36e-05/0.6022, allocations: 0 / 402.9 MB, free: 8.715 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001526/0.6024, allocations: 55.5 kB / 403 MB, free: 8.648 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 2.595e-06/0.6024, allocations: 0 / 403 MB, free: 8.648 MB / 330.7 MB Notification: Performance of matching and sorting (n=5): time 0.0005464/0.603, allocations: 121.2 kB / 403.1 MB, free: 8.523 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.857e-05/0.603, allocations: 55.41 kB / 403.1 MB, free: 8.457 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002977/0.6033, allocations: 177.3 kB / 403.3 MB, free: 8.277 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.293e-05/0.6034, allocations: 33.7 kB / 403.3 MB, free: 8.238 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.891e-05/0.6035, allocations: 162.5 kB / 403.5 MB, free: 8.078 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.576e-05/0.6036, allocations: 19.8 kB / 403.5 MB, free: 8.059 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.095e-06/0.6036, allocations: 0 / 403.5 MB, free: 8.059 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001669/0.6038, allocations: 322.8 kB / 403.8 MB, free: 7.734 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.199e-05/0.6039, allocations: 20 kB / 403.8 MB, free: 7.715 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.155e-05/0.6039, allocations: 23.94 kB / 403.9 MB, free: 7.691 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001103/0.6041, allocations: 53.69 kB / 403.9 MB, free: 7.633 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.6041, allocations: 4 kB / 403.9 MB, free: 7.629 MB / 330.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003153/0.6044, allocations: 127.3 kB / 404 MB, free: 7.492 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.956e-05/0.6045, allocations: 33.7 kB / 404.1 MB, free: 7.453 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.652e-06/0.6045, allocations: 0 / 404.1 MB, free: 7.453 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.632e-05/0.6045, allocations: 0 / 404.1 MB, free: 7.453 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.329e-05/0.6046, allocations: 8.062 kB / 404.1 MB, free: 7.445 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.448e-05/0.6046, allocations: 11.94 kB / 404.1 MB, free: 7.434 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.099e-05/0.6047, allocations: 4 kB / 404.1 MB, free: 7.43 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.744e-05/0.6048, allocations: 0 / 404.1 MB, free: 7.43 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.0001014/0.6049, allocations: 116.9 kB / 404.2 MB, free: 7.309 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.205e-05/0.6049, allocations: 11.81 kB / 404.2 MB, free: 7.297 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002846/0.6052, allocations: 89.77 kB / 404.3 MB, free: 7.203 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.997e-06/0.6052, allocations: 0 / 404.3 MB, free: 7.203 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.109e-06/0.6052, allocations: 0 / 404.3 MB, free: 7.203 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.993e-06/0.6053, allocations: 3.953 kB / 404.3 MB, free: 7.199 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005463/0.6058, allocations: 358.5 kB / 404.7 MB, free: 6.793 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/0.6058, allocations: 0 / 404.7 MB, free: 6.793 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.958e-05/0.6059, allocations: 8.141 kB / 404.7 MB, free: 6.785 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.322e-06/0.6059, allocations: 7.984 kB / 404.7 MB, free: 6.777 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.358e-05/0.6059, allocations: 3.984 kB / 404.7 MB, free: 6.773 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.624e-06/0.606, allocations: 7.953 kB / 404.7 MB, free: 6.766 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.606, allocations: 0 / 404.7 MB, free: 6.766 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002525/0.6062, allocations: 171.4 kB / 404.9 MB, free: 6.582 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.29e-05/0.6063, allocations: 96.91 kB / 405 MB, free: 6.469 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.846e-05/0.6064, allocations: 4 kB / 405 MB, free: 6.465 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.218e-05/0.6065, allocations: 4 kB / 405 MB, free: 6.461 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.351e-05/0.6065, allocations: 8.047 kB / 405 MB, free: 6.453 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.482e-05/0.6066, allocations: 7.922 kB / 405 MB, free: 6.445 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002033/0.6068, allocations: 152.9 kB / 405.1 MB, free: 6.297 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.6068, allocations: 3.938 kB / 405.1 MB, free: 6.293 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000363/0.6072, allocations: 39.94 kB / 405.2 MB, free: 6.254 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.001471/0.6087, allocations: 0.9434 MB / 406.1 MB, free: 5.34 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002604/0.6089, allocations: 107.4 kB / 406.2 MB, free: 5.223 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.544e-06/0.609, allocations: 0 / 406.2 MB, free: 5.223 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 7.03e-05/0.609, allocations: 31.88 kB / 406.3 MB, free: 5.191 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003021/0.6094, allocations: 15.94 kB / 406.3 MB, free: 5.176 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008597/0.6102, allocations: 253 kB / 406.5 MB, free: 4.887 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004842/0.6107, allocations: 0.7043 MB / 407.2 MB, free: 4.156 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001091/0.6109, allocations: 27.42 kB / 407.2 MB, free: 4.129 MB / 330.7 MB Notification: Performance of SimCode: time 9.21e-07/0.6109, allocations: 0 / 407.2 MB, free: 4.129 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_Test40CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test40CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test40CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test40FMU.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_Test40.so OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test40CalcHelperMain.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_Test40_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test40.fmu' failed make: *** [ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test40.fmu] Error 1