Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test47,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test47",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.987/1.987, allocations: 209.3 MB / 221.9 MB, free: 1.941 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.488e-05/4.498e-05, allocations: 4 kB / 273.1 MB, free: 0.6445 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1121/0.1121, allocations: 48.7 MB / 321.8 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4787/0.5909, allocations: 75.78 MB / 397.6 MB, free: 14.17 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002809/0.5912, allocations: 75.95 kB / 397.7 MB, free: 14.09 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01914/0.6104, allocations: 4.327 MB / 402 MB, free: 9.773 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.634e-06/0.6104, allocations: 0 / 402 MB, free: 9.773 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.823e-05/0.6105, allocations: 4 kB / 402 MB, free: 9.77 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.0005871/0.6111, allocations: 435.8 kB / 402.4 MB, free: 9.293 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.247e-05/0.6111, allocations: 12.03 kB / 402.5 MB, free: 9.281 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.578e-05/0.6112, allocations: 34.55 kB / 402.5 MB, free: 9.238 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.297e-05/0.6113, allocations: 11.81 kB / 402.5 MB, free: 9.227 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003296/0.6116, allocations: 210.8 kB / 402.7 MB, free: 8.98 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.277e-05/0.6116, allocations: 0 / 402.7 MB, free: 8.98 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.615e-05/0.6117, allocations: 4 kB / 402.7 MB, free: 8.977 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001473/0.6118, allocations: 41.69 kB / 402.8 MB, free: 8.93 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.327e-05/0.6119, allocations: 4 kB / 402.8 MB, free: 8.926 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.12e-05/0.6119, allocations: 0 / 402.8 MB, free: 8.926 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.079e-06/0.6119, allocations: 4 kB / 402.8 MB, free: 8.922 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.712e-05/0.612, allocations: 19.92 kB / 402.8 MB, free: 8.902 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005097/0.6125, allocations: 304.9 kB / 403.1 MB, free: 8.555 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002502/0.6128, allocations: 47.03 kB / 403.1 MB, free: 8.5 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.396e-05/0.6128, allocations: 12.86 kB / 403.1 MB, free: 8.484 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.555e-05/0.6129, allocations: 0 / 403.1 MB, free: 8.484 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001532/0.613, allocations: 67.42 kB / 403.2 MB, free: 8.406 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 2.214e-06/0.613, allocations: 0 / 403.2 MB, free: 8.406 MB / 330.7 MB Notification: Performance of matching and sorting (n=5): time 0.0004936/0.6135, allocations: 121.1 kB / 403.3 MB, free: 8.281 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.234e-05/0.6136, allocations: 55.34 kB / 403.4 MB, free: 8.215 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003712/0.614, allocations: 222.7 kB / 403.6 MB, free: 7.984 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.311e-05/0.614, allocations: 25.7 kB / 403.6 MB, free: 7.953 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.637e-05/0.6141, allocations: 174.5 kB / 403.8 MB, free: 7.781 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.728e-05/0.6142, allocations: 11.81 kB / 403.8 MB, free: 7.77 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.969e-06/0.6142, allocations: 4 kB / 403.8 MB, free: 7.766 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001266/0.6143, allocations: 318.8 kB / 404.1 MB, free: 7.445 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.228e-05/0.6144, allocations: 16 kB / 404.1 MB, free: 7.43 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.253e-05/0.6145, allocations: 27.98 kB / 404.2 MB, free: 7.402 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001071/0.6146, allocations: 57.72 kB / 404.2 MB, free: 7.34 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.6146, allocations: 3.938 kB / 404.2 MB, free: 7.336 MB / 330.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002756/0.6149, allocations: 119.3 kB / 404.3 MB, free: 7.207 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.905e-05/0.615, allocations: 41.69 kB / 404.4 MB, free: 7.16 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.63e-06/0.615, allocations: 0 / 404.4 MB, free: 7.16 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.572e-05/0.615, allocations: 0 / 404.4 MB, free: 7.16 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.599e-05/0.6151, allocations: 8 kB / 404.4 MB, free: 7.152 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.055e-05/0.6151, allocations: 3.953 kB / 404.4 MB, free: 7.148 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.817e-05/0.6152, allocations: 8 kB / 404.4 MB, free: 7.141 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.792e-05/0.6152, allocations: 4 kB / 404.4 MB, free: 7.137 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.935e-05/0.6153, allocations: 109.1 kB / 404.5 MB, free: 7.023 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.852e-05/0.6154, allocations: 15.8 kB / 404.5 MB, free: 7.008 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002738/0.6157, allocations: 98.61 kB / 404.6 MB, free: 6.906 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.057e-06/0.6157, allocations: 0 / 404.6 MB, free: 6.906 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.6157, allocations: 128 / 404.6 MB, free: 6.906 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.394e-06/0.6157, allocations: 3.953 kB / 404.6 MB, free: 6.902 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006069/0.6163, allocations: 386.5 kB / 405 MB, free: 6.469 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.414e-06/0.6164, allocations: 3.938 kB / 405 MB, free: 6.465 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.511e-05/0.6164, allocations: 4 kB / 405 MB, free: 6.461 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.6164, allocations: 0 / 405 MB, free: 6.461 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.705e-05/0.6165, allocations: 12 kB / 405 MB, free: 6.449 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.3e-06/0.6165, allocations: 3.953 kB / 405 MB, free: 6.445 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/0.6165, allocations: 3.984 kB / 405 MB, free: 6.441 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002436/0.6168, allocations: 175.4 kB / 405.2 MB, free: 6.254 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.205e-05/0.6169, allocations: 93 kB / 405.3 MB, free: 6.145 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.183e-05/0.6169, allocations: 0 / 405.3 MB, free: 6.145 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.854e-05/0.617, allocations: 8 kB / 405.3 MB, free: 6.137 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.888e-05/0.6171, allocations: 7.953 kB / 405.3 MB, free: 6.129 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.318e-05/0.6171, allocations: 4 kB / 405.3 MB, free: 6.125 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002581/0.6174, allocations: 185.1 kB / 405.5 MB, free: 5.945 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.675e-06/0.6174, allocations: 0 / 405.5 MB, free: 5.945 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003688/0.6178, allocations: 43.92 kB / 405.5 MB, free: 5.902 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.001542/0.6193, allocations: 0.9464 MB / 406.5 MB, free: 4.984 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002781/0.6196, allocations: 123.3 kB / 406.6 MB, free: 4.852 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.6196, allocations: 0 / 406.6 MB, free: 4.852 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 7.054e-05/0.6197, allocations: 20 kB / 406.6 MB, free: 4.832 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003744/0.6201, allocations: 32 kB / 406.6 MB, free: 4.797 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008255/0.6209, allocations: 285 kB / 406.9 MB, free: 4.48 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003523/0.6213, allocations: 0.7159 MB / 407.6 MB, free: 3.738 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.567e-05/0.6214, allocations: 35.44 kB / 407.7 MB, free: 3.703 MB / 330.7 MB Notification: Performance of SimCode: time 1.032e-06/0.6214, allocations: 0 / 407.7 MB, free: 3.703 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_Test47CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test47CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test47CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test47FMU.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_Test47.so OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test47CalcHelperMain.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_Test47_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test47.fmu' failed make: *** [ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test47.fmu] Error 1