Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test50,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test50",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.018/2.018, allocations: 209.3 MB / 221.9 MB, free: 1.945 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.674e-05/3.679e-05, allocations: 7.984 kB / 273.1 MB, free: 0.6523 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1022/0.1023, allocations: 48.7 MB / 321.8 MB, free: 15.86 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4258/0.5281, allocations: 76.01 MB / 397.8 MB, free: 13.94 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003588/0.5286, allocations: 75.05 kB / 397.9 MB, free: 13.87 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03046/0.559, allocations: 5.039 MB / 403 MB, free: 8.852 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.963e-06/0.5591, allocations: 0 / 403 MB, free: 8.852 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.745e-05/0.5591, allocations: 0 / 403 MB, free: 8.852 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0007266/0.5599, allocations: 416 kB / 403.4 MB, free: 8.395 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.664e-05/0.56, allocations: 12.03 kB / 403.4 MB, free: 8.383 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.999e-05/0.56, allocations: 30.56 kB / 403.4 MB, free: 8.344 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.571e-05/0.5601, allocations: 15.86 kB / 403.4 MB, free: 8.328 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003667/0.5605, allocations: 194.9 kB / 403.6 MB, free: 8.098 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.615e-05/0.5606, allocations: 4 kB / 403.6 MB, free: 8.094 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.425e-05/0.5606, allocations: 0 / 403.6 MB, free: 8.094 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002455/0.5609, allocations: 75.33 kB / 403.7 MB, free: 8.008 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.741e-05/0.5609, allocations: 0 / 403.7 MB, free: 8.008 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.236e-05/0.561, allocations: 7.938 kB / 403.7 MB, free: 8 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.913e-06/0.561, allocations: 0 / 403.7 MB, free: 8 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001577/0.5612, allocations: 23.98 kB / 403.7 MB, free: 7.977 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007484/0.5619, allocations: 308.8 kB / 404 MB, free: 7.625 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002332/0.5622, allocations: 50.5 kB / 404.1 MB, free: 7.566 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.789e-05/0.5623, allocations: 20.84 kB / 404.1 MB, free: 7.543 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.094e-05/0.5623, allocations: 0 / 404.1 MB, free: 7.543 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002038/0.5626, allocations: 75.39 kB / 404.2 MB, free: 7.457 MB / 330.7 MB Notification: Performance of pre-optimization done (n=5): time 2.475e-06/0.5626, allocations: 0 / 404.2 MB, free: 7.457 MB / 330.7 MB Notification: Performance of matching and sorting (n=6): time 0.0007599/0.5634, allocations: 125.4 kB / 404.3 MB, free: 7.328 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.829e-05/0.5635, allocations: 81.11 kB / 404.4 MB, free: 7.23 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002896/0.5638, allocations: 141 kB / 404.5 MB, free: 7.082 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.168e-05/0.5639, allocations: 29.69 kB / 404.5 MB, free: 7.047 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001203/0.564, allocations: 166.5 kB / 404.7 MB, free: 6.883 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.701e-05/0.5641, allocations: 11.8 kB / 404.7 MB, free: 6.871 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.336e-05/0.5641, allocations: 4 kB / 404.7 MB, free: 6.867 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001583/0.5643, allocations: 322.8 kB / 405 MB, free: 6.543 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001367/0.5644, allocations: 24 kB / 405 MB, free: 6.52 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001419/0.5646, allocations: 41.66 kB / 405.1 MB, free: 6.473 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001349/0.5647, allocations: 53.69 kB / 405.1 MB, free: 6.414 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.889e-06/0.5648, allocations: 3.984 kB / 405.1 MB, free: 6.41 MB / 330.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004176/0.5652, allocations: 127.4 kB / 405.3 MB, free: 6.273 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.132e-05/0.5653, allocations: 33.69 kB / 405.3 MB, free: 6.234 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.687e-06/0.5653, allocations: 3.938 kB / 405.3 MB, free: 6.23 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.91e-05/0.5653, allocations: 4.031 kB / 405.3 MB, free: 6.227 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001753/0.5655, allocations: 16.05 kB / 405.3 MB, free: 6.211 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.01e-05/0.5655, allocations: 3.938 kB / 405.3 MB, free: 6.207 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001269/0.5657, allocations: 4 kB / 405.3 MB, free: 6.203 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.597e-05/0.5657, allocations: 7.984 kB / 405.3 MB, free: 6.195 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 (8): * Single equations (assignments): 7 * 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.0001249/0.5659, allocations: 105 kB / 405.4 MB, free: 6.086 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.573e-05/0.5659, allocations: 7.906 kB / 405.4 MB, free: 6.078 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005026/0.5664, allocations: 114.1 kB / 405.6 MB, free: 5.957 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.608e-06/0.5665, allocations: 8 kB / 405.6 MB, free: 5.949 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.139e-05/0.5665, allocations: 3.953 kB / 405.6 MB, free: 5.945 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/0.5665, allocations: 0 / 405.6 MB, free: 5.945 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008801/0.5674, allocations: 370.5 kB / 405.9 MB, free: 5.527 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.168e-06/0.5675, allocations: 0 / 405.9 MB, free: 5.527 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.46e-05/0.5676, allocations: 8 kB / 405.9 MB, free: 5.52 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.323e-05/0.5676, allocations: 7.938 kB / 406 MB, free: 5.512 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.731e-05/0.5676, allocations: 8.141 kB / 406 MB, free: 5.504 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.979e-06/0.5676, allocations: 4 kB / 406 MB, free: 5.5 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.5676, allocations: 4 kB / 406 MB, free: 5.496 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003978/0.568, allocations: 195.7 kB / 406.2 MB, free: 5.289 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.736e-05/0.5682, allocations: 89 kB / 406.2 MB, free: 5.184 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.893e-05/0.5682, allocations: 4 kB / 406.2 MB, free: 5.18 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001726/0.5684, allocations: 7.953 kB / 406.3 MB, free: 5.172 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.718e-05/0.5685, allocations: 3.984 kB / 406.3 MB, free: 5.168 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.911e-05/0.5685, allocations: 4 kB / 406.3 MB, free: 5.164 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001825/0.5687, allocations: 118.4 kB / 406.4 MB, free: 5.051 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.72e-07/0.5688, allocations: 0 / 406.4 MB, free: 5.051 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006473/0.5694, allocations: 51.92 kB / 406.4 MB, free: 5 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 (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.002467/0.5719, allocations: 1.037 MB / 407.5 MB, free: 4 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004278/0.5724, allocations: 119.3 kB / 407.6 MB, free: 3.871 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.34e-06/0.5724, allocations: 0 / 407.6 MB, free: 3.871 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001368/0.5726, allocations: 23.98 kB / 407.6 MB, free: 3.848 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004728/0.5731, allocations: 19.94 kB / 407.6 MB, free: 3.828 MB / 330.7 MB Warning: Could not resolve URI (uri) at compile-time; copying all loaded packages into the FMU Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003469/0.5765, allocations: 0.7586 MB / 408.4 MB, free: 3.027 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005339/0.5771, allocations: 0.7043 MB / 409.1 MB, free: 2.297 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001542/0.5773, allocations: 31.42 kB / 409.1 MB, free: 2.266 MB / 330.7 MB Notification: Performance of SimCode: time 1.092e-06/0.5773, allocations: 0 / 409.1 MB, free: 2.266 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_Test50CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test50CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test50CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test50FMU.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_Test50.so OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test50CalcHelperMain.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" -lModelicaExternalC -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_Test50_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test50.fmu' failed make: *** [ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test50.fmu] Error 1