Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test18,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test18",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.032/2.032, allocations: 209.3 MB / 221.9 MB, free: 1.93 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.194e-05/4.206e-05, allocations: 4 kB / 273.1 MB, free: 0.6367 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1143/0.1144, allocations: 48.7 MB / 321.8 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.461/0.5755, allocations: 75.77 MB / 397.6 MB, free: 14.04 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004194/0.576, allocations: 71.95 kB / 397.7 MB, free: 13.97 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0202/0.5962, allocations: 3.957 MB / 401.6 MB, free: 10.02 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.724e-06/0.5963, allocations: 4 kB / 401.6 MB, free: 10.02 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.475e-05/0.5963, allocations: 4 kB / 401.6 MB, free: 10.01 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.0005475/0.5968, allocations: 412 kB / 402 MB, free: 9.559 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.681e-05/0.5969, allocations: 8.031 kB / 402.1 MB, free: 9.551 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.216e-05/0.597, allocations: 30.56 kB / 402.1 MB, free: 9.512 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.639e-05/0.597, allocations: 11.91 kB / 402.1 MB, free: 9.5 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002785/0.5973, allocations: 194.8 kB / 402.3 MB, free: 9.27 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.455e-05/0.5973, allocations: 4 kB / 402.3 MB, free: 9.266 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.688e-05/0.5974, allocations: 4 kB / 402.3 MB, free: 9.262 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001288/0.5975, allocations: 49.67 kB / 402.3 MB, free: 9.207 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.207e-05/0.5975, allocations: 0 / 402.3 MB, free: 9.207 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.53e-05/0.5976, allocations: 3.984 kB / 402.3 MB, free: 9.203 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.06e-06/0.5976, allocations: 0 / 402.3 MB, free: 9.203 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.516e-05/0.5976, allocations: 12 kB / 402.4 MB, free: 9.191 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004466/0.5981, allocations: 292.8 kB / 402.6 MB, free: 8.855 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002454/0.5984, allocations: 54.97 kB / 402.7 MB, free: 8.793 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.011e-05/0.5984, allocations: 8.859 kB / 402.7 MB, free: 8.781 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.171e-05/0.5984, allocations: 0 / 402.7 MB, free: 8.781 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000135/0.5986, allocations: 59.48 kB / 402.8 MB, free: 8.711 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 1.944e-06/0.5986, allocations: 0 / 402.8 MB, free: 8.711 MB / 330.7 MB Notification: Performance of matching and sorting (n=5): time 0.000472/0.5991, allocations: 113.3 kB / 402.9 MB, free: 8.594 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.673e-05/0.5991, allocations: 51.41 kB / 402.9 MB, free: 8.531 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002054/0.5994, allocations: 153.2 kB / 403.1 MB, free: 8.371 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.159e-05/0.5994, allocations: 25.7 kB / 403.1 MB, free: 8.34 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.663e-05/0.5995, allocations: 158.6 kB / 403.3 MB, free: 8.184 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.325e-05/0.5995, allocations: 23.78 kB / 403.3 MB, free: 8.16 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.695e-06/0.5996, allocations: 0 / 403.3 MB, free: 8.16 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001219/0.5997, allocations: 314.8 kB / 403.6 MB, free: 7.844 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.649e-05/0.5998, allocations: 27.94 kB / 403.6 MB, free: 7.816 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.324e-05/0.5999, allocations: 27.88 kB / 403.6 MB, free: 7.789 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.72e-05/0.6, allocations: 49.69 kB / 403.7 MB, free: 7.734 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.6, allocations: 8 kB / 403.7 MB, free: 7.727 MB / 330.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002737/0.6003, allocations: 123.4 kB / 403.8 MB, free: 7.594 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.388e-05/0.6003, allocations: 29.7 kB / 403.8 MB, free: 7.559 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.6003, allocations: 0 / 403.8 MB, free: 7.559 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.571e-05/0.6004, allocations: 3.953 kB / 403.9 MB, free: 7.555 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.091e-05/0.6005, allocations: 15.92 kB / 403.9 MB, free: 7.539 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.005e-05/0.6005, allocations: 4 kB / 403.9 MB, free: 7.535 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.63e-05/0.6006, allocations: 0 / 403.9 MB, free: 7.535 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.061e-05/0.6006, allocations: 8.062 kB / 403.9 MB, free: 7.527 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 8.681e-05/0.6007, allocations: 112.2 kB / 404 MB, free: 7.414 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.684e-05/0.6007, allocations: 11.91 kB / 404 MB, free: 7.402 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002615/0.601, allocations: 89.75 kB / 404.1 MB, free: 7.312 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.012e-06/0.601, allocations: 0 / 404.1 MB, free: 7.312 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.273e-06/0.601, allocations: 7.891 kB / 404.1 MB, free: 7.305 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.601, allocations: 0 / 404.1 MB, free: 7.305 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004524/0.6015, allocations: 346.5 kB / 404.4 MB, free: 6.91 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.375e-06/0.6015, allocations: 0 / 404.4 MB, free: 6.91 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.375e-05/0.6016, allocations: 8 kB / 404.4 MB, free: 6.902 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.116e-06/0.6016, allocations: 0 / 404.4 MB, free: 6.902 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.97e-05/0.6016, allocations: 11.95 kB / 404.5 MB, free: 6.891 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.6016, allocations: 0 / 404.5 MB, free: 6.891 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.6017, allocations: 0 / 404.5 MB, free: 6.891 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002332/0.6019, allocations: 179.4 kB / 404.6 MB, free: 6.699 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.461e-05/0.602, allocations: 88.95 kB / 404.7 MB, free: 6.594 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.851e-05/0.602, allocations: 0 / 404.7 MB, free: 6.594 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001012/0.6021, allocations: 15.95 kB / 404.7 MB, free: 6.578 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.186e-05/0.6022, allocations: 3.984 kB / 404.7 MB, free: 6.574 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.356e-05/0.6022, allocations: 4 kB / 404.7 MB, free: 6.57 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000136/0.6023, allocations: 115.3 kB / 404.9 MB, free: 6.457 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.6024, allocations: 0 / 404.9 MB, free: 6.457 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003614/0.6027, allocations: 35.98 kB / 404.9 MB, free: 6.422 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.001455/0.6042, allocations: 0.9597 MB / 405.8 MB, free: 5.492 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002487/0.6045, allocations: 107.4 kB / 405.9 MB, free: 5.375 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.706e-06/0.6045, allocations: 0 / 405.9 MB, free: 5.375 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 7.108e-05/0.6046, allocations: 27.92 kB / 406 MB, free: 5.348 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002907/0.6049, allocations: 19.94 kB / 406 MB, free: 5.328 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00062/0.6055, allocations: 201.4 kB / 406.2 MB, free: 5.09 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003143/0.6058, allocations: 0.7004 MB / 406.9 MB, free: 4.363 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.61e-05/0.6059, allocations: 23.42 kB / 406.9 MB, free: 4.34 MB / 330.7 MB Notification: Performance of SimCode: time 7.41e-07/0.6059, allocations: 0 / 406.9 MB, free: 4.34 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_Test18CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test18CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test18CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test18FMU.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_Test18.so OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test18CalcHelperMain.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_Test18_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test18.fmu' failed make: *** [ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test18.fmu] Error 1