Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test29,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test29",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.181/2.181, allocations: 209.3 MB / 221.9 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.601e-05/4.626e-05, allocations: 4 kB / 273.1 MB, free: 0.6328 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1264/0.1265, allocations: 48.69 MB / 321.8 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4313/0.5579, allocations: 75.78 MB / 397.6 MB, free: 14.14 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002924/0.5582, allocations: 71.28 kB / 397.7 MB, free: 14.08 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01893/0.5772, allocations: 4.011 MB / 401.7 MB, free: 10.07 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.884e-06/0.5773, allocations: 0 / 401.7 MB, free: 10.07 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.901e-05/0.5773, allocations: 4 kB / 401.7 MB, free: 10.07 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.0006289/0.5779, allocations: 419.9 kB / 402.1 MB, free: 9.605 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.262e-05/0.578, allocations: 12.02 kB / 402.1 MB, free: 9.594 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.587e-05/0.5781, allocations: 34.5 kB / 402.2 MB, free: 9.551 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.893e-05/0.5781, allocations: 7.906 kB / 402.2 MB, free: 9.543 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003251/0.5785, allocations: 194.9 kB / 402.4 MB, free: 9.312 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.786e-06/0.5785, allocations: 0 / 402.4 MB, free: 9.312 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.715e-05/0.5785, allocations: 11.91 kB / 402.4 MB, free: 9.301 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001351/0.5787, allocations: 41.69 kB / 402.4 MB, free: 9.254 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.239e-05/0.5787, allocations: 4 kB / 402.4 MB, free: 9.25 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.172e-05/0.5787, allocations: 0 / 402.4 MB, free: 9.25 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.188e-05/0.5787, allocations: 4 kB / 402.4 MB, free: 9.246 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.578e-05/0.5788, allocations: 19.94 kB / 402.4 MB, free: 9.227 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004977/0.5793, allocations: 284.9 kB / 402.7 MB, free: 8.898 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002459/0.5796, allocations: 43.03 kB / 402.8 MB, free: 8.848 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.94e-05/0.5797, allocations: 16.94 kB / 402.8 MB, free: 8.828 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.727e-05/0.5797, allocations: 11.97 kB / 402.8 MB, free: 8.816 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001585/0.5799, allocations: 59.34 kB / 402.8 MB, free: 8.746 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 2.395e-06/0.5799, allocations: 3.938 kB / 402.8 MB, free: 8.742 MB / 330.7 MB Notification: Performance of matching and sorting (n=5): time 0.0004898/0.5804, allocations: 109.3 kB / 402.9 MB, free: 8.629 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.059e-05/0.5805, allocations: 55.41 kB / 403 MB, free: 8.562 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002551/0.5807, allocations: 156.9 kB / 403.2 MB, free: 8.402 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.566e-05/0.5808, allocations: 25.7 kB / 403.2 MB, free: 8.371 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001034/0.5809, allocations: 170.5 kB / 403.3 MB, free: 8.203 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.914e-05/0.5809, allocations: 11.81 kB / 403.4 MB, free: 8.191 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.115e-05/0.5809, allocations: 0 / 403.4 MB, free: 8.191 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001465/0.5811, allocations: 326.8 kB / 403.7 MB, free: 7.863 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.634e-05/0.5812, allocations: 20 kB / 403.7 MB, free: 7.844 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.051e-05/0.5813, allocations: 20 kB / 403.7 MB, free: 7.824 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001059/0.5814, allocations: 53.69 kB / 403.8 MB, free: 7.766 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.5814, allocations: 3.938 kB / 403.8 MB, free: 7.762 MB / 330.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003123/0.5817, allocations: 131.2 kB / 403.9 MB, free: 7.621 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.013e-05/0.5818, allocations: 37.7 kB / 403.9 MB, free: 7.578 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.552e-06/0.5818, allocations: 0 / 403.9 MB, free: 7.578 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.864e-05/0.5818, allocations: 3.953 kB / 403.9 MB, free: 7.574 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.621e-05/0.5819, allocations: 11.98 kB / 404 MB, free: 7.562 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.306e-06/0.582, allocations: 0 / 404 MB, free: 7.562 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.367e-05/0.5821, allocations: 8.062 kB / 404 MB, free: 7.555 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.808e-05/0.5821, allocations: 4 kB / 404 MB, free: 7.551 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 9.653e-05/0.5822, allocations: 105 kB / 404.1 MB, free: 7.441 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.017e-05/0.5822, allocations: 7.906 kB / 404.1 MB, free: 7.434 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002896/0.5825, allocations: 97.7 kB / 404.2 MB, free: 7.336 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.5826, allocations: 0 / 404.2 MB, free: 7.336 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.274e-06/0.5826, allocations: 4.047 kB / 404.2 MB, free: 7.332 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.883e-06/0.5826, allocations: 7.922 kB / 404.2 MB, free: 7.324 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005103/0.5831, allocations: 342.6 kB / 404.5 MB, free: 6.934 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.976e-06/0.5831, allocations: 0 / 404.5 MB, free: 6.934 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.217e-05/0.5832, allocations: 7.938 kB / 404.5 MB, free: 6.926 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.359e-06/0.5832, allocations: 4 kB / 404.5 MB, free: 6.922 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.573e-05/0.5832, allocations: 11.95 kB / 404.5 MB, free: 6.91 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.224e-06/0.5833, allocations: 0 / 404.5 MB, free: 6.91 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.522e-06/0.5833, allocations: 0 / 404.5 MB, free: 6.91 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002426/0.5835, allocations: 171.4 kB / 404.7 MB, free: 6.727 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.358e-05/0.5836, allocations: 85.02 kB / 404.8 MB, free: 6.625 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.977e-05/0.5837, allocations: 4 kB / 404.8 MB, free: 6.621 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001007/0.5838, allocations: 7.953 kB / 404.8 MB, free: 6.613 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.052e-05/0.5838, allocations: 7.984 kB / 404.8 MB, free: 6.605 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.444e-05/0.5838, allocations: 8 kB / 404.8 MB, free: 6.598 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001826/0.584, allocations: 127.8 kB / 404.9 MB, free: 6.473 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.584, allocations: 0 / 404.9 MB, free: 6.473 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003792/0.5844, allocations: 35.94 kB / 405 MB, free: 6.438 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.001592/0.586, allocations: 0.9557 MB / 405.9 MB, free: 5.512 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003/0.5864, allocations: 115.3 kB / 406 MB, free: 5.387 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.5864, allocations: 0 / 406 MB, free: 5.387 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 7.094e-05/0.5865, allocations: 16 kB / 406.1 MB, free: 5.371 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003315/0.5868, allocations: 26.75 kB / 406.1 MB, free: 5.348 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000776/0.5876, allocations: 221.2 kB / 406.3 MB, free: 5.09 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003743/0.588, allocations: 0.7043 MB / 407 MB, free: 4.359 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.509e-05/0.5881, allocations: 27.42 kB / 407 MB, free: 4.332 MB / 330.7 MB Notification: Performance of SimCode: time 1.022e-06/0.5881, allocations: 0 / 407 MB, free: 4.332 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_Test29CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test29CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test29CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test29FMU.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_Test29.so OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test29CalcHelperMain.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_Test29_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test29.fmu' failed make: *** [ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test29.fmu] Error 1