Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test48,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test48",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.026/2.026, allocations: 209.3 MB / 221.9 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 5.912e-05/5.926e-05, allocations: 8 kB / 273.1 MB, free: 0.6367 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1397/0.1398, allocations: 48.7 MB / 321.8 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4819/0.6218, allocations: 75.79 MB / 397.6 MB, free: 14.05 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002842/0.6221, allocations: 63.97 kB / 397.7 MB, free: 13.99 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.018/0.6401, allocations: 4.327 MB / 402 MB, free: 9.668 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.6402, allocations: 0 / 402 MB, free: 9.668 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.7e-05/0.6402, allocations: 4 kB / 402 MB, free: 9.664 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.0005447/0.6408, allocations: 431.8 kB / 402.4 MB, free: 9.191 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.806e-05/0.6408, allocations: 16.03 kB / 402.5 MB, free: 9.176 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.907e-05/0.6409, allocations: 30.56 kB / 402.5 MB, free: 9.137 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.996e-05/0.641, allocations: 15.81 kB / 402.5 MB, free: 9.121 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003173/0.6413, allocations: 210.8 kB / 402.7 MB, free: 8.875 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.487e-05/0.6413, allocations: 3.984 kB / 402.7 MB, free: 8.871 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.188e-05/0.6414, allocations: 8 kB / 402.7 MB, free: 8.863 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000121/0.6415, allocations: 45.67 kB / 402.8 MB, free: 8.812 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.229e-05/0.6415, allocations: 0 / 402.8 MB, free: 8.812 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.425e-05/0.6415, allocations: 0 / 402.8 MB, free: 8.812 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.598e-06/0.6415, allocations: 3.938 kB / 402.8 MB, free: 8.809 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.732e-05/0.6416, allocations: 23.98 kB / 402.8 MB, free: 8.785 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004875/0.6421, allocations: 300.9 kB / 403.1 MB, free: 8.441 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002381/0.6424, allocations: 43.03 kB / 403.1 MB, free: 8.391 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.189e-05/0.6424, allocations: 12.86 kB / 403.1 MB, free: 8.375 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.4e-05/0.6425, allocations: 3.938 kB / 403.1 MB, free: 8.371 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000135/0.6426, allocations: 63.48 kB / 403.2 MB, free: 8.297 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 1.784e-06/0.6426, allocations: 0 / 403.2 MB, free: 8.297 MB / 330.7 MB Notification: Performance of matching and sorting (n=5): time 0.0004578/0.6431, allocations: 125 kB / 403.3 MB, free: 8.168 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.675e-05/0.6431, allocations: 55.41 kB / 403.4 MB, free: 8.102 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003514/0.6435, allocations: 214.7 kB / 403.6 MB, free: 7.879 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.397e-05/0.6435, allocations: 29.7 kB / 403.6 MB, free: 7.844 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.397e-05/0.6436, allocations: 166.6 kB / 403.8 MB, free: 7.68 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.576e-05/0.6437, allocations: 19.73 kB / 403.8 MB, free: 7.66 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.012e-05/0.6437, allocations: 8 kB / 403.8 MB, free: 7.652 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001263/0.6438, allocations: 318.8 kB / 404.1 MB, free: 7.332 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.512e-05/0.6439, allocations: 20 kB / 404.1 MB, free: 7.312 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.706e-05/0.644, allocations: 20 kB / 404.2 MB, free: 7.293 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001057/0.6441, allocations: 57.72 kB / 404.2 MB, free: 7.23 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.293e-06/0.6441, allocations: 0 / 404.2 MB, free: 7.23 MB / 330.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002825/0.6444, allocations: 127.3 kB / 404.3 MB, free: 7.094 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.076e-05/0.6445, allocations: 33.7 kB / 404.4 MB, free: 7.055 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.489e-06/0.6445, allocations: 0 / 404.4 MB, free: 7.055 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.815e-05/0.6445, allocations: 7.984 kB / 404.4 MB, free: 7.047 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.349e-05/0.6446, allocations: 8 kB / 404.4 MB, free: 7.039 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.438e-06/0.6446, allocations: 3.953 kB / 404.4 MB, free: 7.035 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.885e-05/0.6447, allocations: 4 kB / 404.4 MB, free: 7.031 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.612e-05/0.6447, allocations: 4 kB / 404.4 MB, free: 7.027 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.49e-05/0.6448, allocations: 108.9 kB / 404.5 MB, free: 6.914 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.621e-05/0.6449, allocations: 15.81 kB / 404.5 MB, free: 6.898 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002657/0.6451, allocations: 94.66 kB / 404.6 MB, free: 6.801 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.835e-06/0.6452, allocations: 4 kB / 404.6 MB, free: 6.797 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.6452, allocations: 0 / 404.6 MB, free: 6.797 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.172e-06/0.6452, allocations: 3.953 kB / 404.6 MB, free: 6.793 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005248/0.6457, allocations: 382.4 kB / 405 MB, free: 6.363 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.6457, allocations: 0 / 405 MB, free: 6.363 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.412e-05/0.6458, allocations: 8 kB / 405 MB, free: 6.355 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.885e-06/0.6458, allocations: 192 / 405 MB, free: 6.355 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.425e-05/0.6458, allocations: 8 kB / 405 MB, free: 6.348 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.08e-06/0.6459, allocations: 3.953 kB / 405 MB, free: 6.344 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.6459, allocations: 4 kB / 405 MB, free: 6.34 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002608/0.6461, allocations: 175.3 kB / 405.2 MB, free: 6.152 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.371e-05/0.6462, allocations: 97.02 kB / 405.3 MB, free: 6.039 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.48e-05/0.6463, allocations: 3.984 kB / 405.3 MB, free: 6.035 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.365e-05/0.6464, allocations: 0 / 405.3 MB, free: 6.035 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.207e-05/0.6465, allocations: 12.03 kB / 405.3 MB, free: 6.023 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.402e-05/0.6465, allocations: 7.984 kB / 405.3 MB, free: 6.016 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002547/0.6467, allocations: 189.1 kB / 405.5 MB, free: 5.832 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.996e-06/0.6468, allocations: 0 / 405.5 MB, free: 5.832 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003613/0.6471, allocations: 47.92 kB / 405.5 MB, free: 5.785 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.001424/0.6486, allocations: 0.9469 MB / 406.5 MB, free: 4.867 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002465/0.6488, allocations: 107.4 kB / 406.6 MB, free: 4.75 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.6488, allocations: 0 / 406.6 MB, free: 4.75 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 6.752e-05/0.6489, allocations: 23.98 kB / 406.6 MB, free: 4.727 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002898/0.6492, allocations: 16.14 kB / 406.6 MB, free: 4.707 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007747/0.65, allocations: 293 kB / 406.9 MB, free: 4.383 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003504/0.6504, allocations: 0.716 MB / 407.6 MB, free: 3.641 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.639e-05/0.6505, allocations: 39.36 kB / 407.7 MB, free: 3.602 MB / 330.7 MB Notification: Performance of SimCode: time 6.62e-07/0.6505, allocations: 0 / 407.7 MB, free: 3.602 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_Test48CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test48CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test48CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test48FMU.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_Test48.so OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test48CalcHelperMain.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_Test48_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test48.fmu' failed make: *** [ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test48.fmu] Error 1