Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test39,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test39",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.118/2.118, allocations: 209.3 MB / 221.9 MB, free: 1.941 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.876e-05/4.882e-05, allocations: 4 kB / 273.2 MB, free: 0.6289 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1303/0.1304, allocations: 48.7 MB / 321.9 MB, free: 15.83 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4193/0.5498, allocations: 75.62 MB / 397.5 MB, free: 14.2 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002693/0.5501, allocations: 75.94 kB / 397.6 MB, free: 14.13 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01634/0.5664, allocations: 3.834 MB / 401.4 MB, free: 10.3 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.5665, allocations: 0 / 401.4 MB, free: 10.3 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.581e-05/0.5665, allocations: 4 kB / 401.4 MB, free: 10.3 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0004969/0.567, allocations: 392 kB / 401.8 MB, free: 9.863 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.998e-05/0.5671, allocations: 19.95 kB / 401.8 MB, free: 9.844 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.279e-05/0.5671, allocations: 30.56 kB / 401.8 MB, free: 9.805 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.361e-05/0.5672, allocations: 4 kB / 401.8 MB, free: 9.801 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002802/0.5675, allocations: 206.8 kB / 402 MB, free: 9.559 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.242e-05/0.5675, allocations: 0 / 402 MB, free: 9.559 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.653e-05/0.5675, allocations: 8 kB / 402 MB, free: 9.551 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001093/0.5677, allocations: 37.69 kB / 402.1 MB, free: 9.508 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.857e-06/0.5677, allocations: 0 / 402.1 MB, free: 9.508 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.387e-05/0.5677, allocations: 4 kB / 402.1 MB, free: 9.504 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.159e-06/0.5677, allocations: 0 / 402.1 MB, free: 9.504 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.589e-05/0.5678, allocations: 11.94 kB / 402.1 MB, free: 9.492 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002333/0.568, allocations: 189.6 kB / 402.3 MB, free: 9.258 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.89e-05/0.5681, allocations: 30.52 kB / 402.3 MB, free: 9.219 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.754e-05/0.5682, allocations: 12.92 kB / 402.3 MB, free: 9.203 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.181e-05/0.5682, allocations: 0 / 402.3 MB, free: 9.203 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001427/0.5684, allocations: 59.83 kB / 402.4 MB, free: 9.133 MB / 330.7 MB Notification: Performance of pre-optimization done (n=3): time 1.673e-06/0.5684, allocations: 0 / 402.4 MB, free: 9.133 MB / 330.7 MB Notification: Performance of matching and sorting (n=3): time 0.0002091/0.5686, allocations: 57.59 kB / 402.4 MB, free: 9.07 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.367e-05/0.5687, allocations: 55.41 kB / 402.5 MB, free: 9.004 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002292/0.5689, allocations: 152.7 kB / 402.6 MB, free: 8.848 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.326e-05/0.5689, allocations: 29.7 kB / 402.7 MB, free: 8.812 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.882e-05/0.569, allocations: 166.5 kB / 402.8 MB, free: 8.648 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.483e-05/0.5691, allocations: 7.891 kB / 402.8 MB, free: 8.641 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.157e-06/0.5691, allocations: 4 kB / 402.8 MB, free: 8.637 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001191/0.5692, allocations: 322.7 kB / 403.2 MB, free: 8.312 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.822e-05/0.5693, allocations: 12 kB / 403.2 MB, free: 8.301 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.897e-05/0.5693, allocations: 20 kB / 403.2 MB, free: 8.281 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.169e-05/0.5694, allocations: 49.69 kB / 403.2 MB, free: 8.227 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.285e-06/0.5695, allocations: 4 kB / 403.2 MB, free: 8.223 MB / 330.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002297/0.5697, allocations: 103.4 kB / 403.3 MB, free: 8.109 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.32e-05/0.5698, allocations: 33.7 kB / 403.4 MB, free: 8.07 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.669e-06/0.5698, allocations: 0 / 403.4 MB, free: 8.07 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.899e-05/0.5698, allocations: 0 / 403.4 MB, free: 8.07 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.359e-05/0.5699, allocations: 11.94 kB / 403.4 MB, free: 8.059 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.958e-06/0.5699, allocations: 4 kB / 403.4 MB, free: 8.055 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.857e-05/0.57, allocations: 7.922 kB / 403.4 MB, free: 8.047 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.507e-05/0.57, allocations: 4 kB / 403.4 MB, free: 8.043 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 (5): * Single equations (assignments): 4 * 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.722e-05/0.5701, allocations: 112.9 kB / 403.5 MB, free: 7.926 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.368e-05/0.5702, allocations: 11.91 kB / 403.5 MB, free: 7.914 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002033/0.5704, allocations: 73.61 kB / 403.6 MB, free: 7.836 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.823e-06/0.5704, allocations: 4 kB / 403.6 MB, free: 7.832 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.5704, allocations: 0 / 403.6 MB, free: 7.832 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/0.5704, allocations: 0 / 403.6 MB, free: 7.832 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001822/0.5706, allocations: 181.7 kB / 403.8 MB, free: 7.605 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/0.5706, allocations: 4 kB / 403.8 MB, free: 7.602 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.662e-05/0.5707, allocations: 4 kB / 403.8 MB, free: 7.598 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.5707, allocations: 0 / 403.8 MB, free: 7.598 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.25e-05/0.5707, allocations: 3.984 kB / 403.8 MB, free: 7.594 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.799e-06/0.5707, allocations: 8 kB / 403.8 MB, free: 7.586 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.5707, allocations: 0 / 403.8 MB, free: 7.586 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001722/0.5709, allocations: 92.92 kB / 403.9 MB, free: 7.477 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.308e-05/0.571, allocations: 93 kB / 404 MB, free: 7.367 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.646e-05/0.571, allocations: 0 / 404 MB, free: 7.367 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.674e-05/0.5711, allocations: 0 / 404 MB, free: 7.367 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.326e-05/0.5711, allocations: 4 kB / 404 MB, free: 7.363 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.396e-06/0.5712, allocations: 4 kB / 404 MB, free: 7.359 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000154/0.5713, allocations: 131.8 kB / 404.1 MB, free: 7.23 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.1e-07/0.5713, allocations: 0 / 404.1 MB, free: 7.23 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000317/0.5717, allocations: 24 kB / 404.1 MB, free: 7.207 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 (4): * Single equations (assignments): 3 * 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.001289/0.573, allocations: 0.8447 MB / 405 MB, free: 6.391 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002195/0.5732, allocations: 95.39 kB / 405.1 MB, free: 6.285 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.5732, allocations: 0 / 405.1 MB, free: 6.285 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 5.236e-05/0.5733, allocations: 12 kB / 405.1 MB, free: 6.273 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000262/0.5735, allocations: 19.89 kB / 405.1 MB, free: 6.254 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005996/0.5742, allocations: 205.5 kB / 405.3 MB, free: 6.008 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003291/0.5745, allocations: 0.7043 MB / 406 MB, free: 5.277 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.166e-05/0.5746, allocations: 27.42 kB / 406 MB, free: 5.25 MB / 330.7 MB Notification: Performance of SimCode: time 8.42e-07/0.5746, allocations: 0 / 406 MB, free: 5.25 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_Test39CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test39CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test39CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test39FMU.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_Test39.so OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test39CalcHelperMain.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_Test39_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test39.fmu' failed make: *** [ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test39.fmu] Error 1