Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test72,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test72",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.297/2.297, allocations: 209.3 MB / 221.9 MB, free: 1.93 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.605e-05/3.609e-05, allocations: 4 kB / 273.2 MB, free: 0.6289 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1049/0.1049, allocations: 48.7 MB / 321.9 MB, free: 15.82 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5168/0.6218, allocations: 75.64 MB / 397.5 MB, free: 14.27 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003648/0.6222, allocations: 71.19 kB / 397.6 MB, free: 14.21 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03142/0.6537, allocations: 5.48 MB / 403 MB, free: 8.734 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.264e-06/0.6537, allocations: 0 / 403 MB, free: 8.734 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.63e-05/0.6538, allocations: 4 kB / 403.1 MB, free: 8.73 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.001254/0.6551, allocations: 0.6489 MB / 403.7 MB, free: 8.023 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.54e-05/0.6552, allocations: 12.03 kB / 403.7 MB, free: 8.012 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.63e-05/0.6552, allocations: 30.56 kB / 403.7 MB, free: 7.973 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001932/0.6554, allocations: 51.39 kB / 403.8 MB, free: 7.922 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001387/0.6568, allocations: 451.3 kB / 404.2 MB, free: 7.441 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.675e-05/0.6569, allocations: 7.984 kB / 404.2 MB, free: 7.434 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.646e-05/0.6569, allocations: 4 kB / 404.2 MB, free: 7.43 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002263/0.6572, allocations: 67.8 kB / 404.3 MB, free: 7.352 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.057e-05/0.6572, allocations: 0 / 404.3 MB, free: 7.352 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.004e-05/0.6573, allocations: 3.984 kB / 404.3 MB, free: 7.348 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.703e-06/0.6573, allocations: 0 / 404.3 MB, free: 7.348 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001264/0.6574, allocations: 27.92 kB / 404.3 MB, free: 7.32 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008207/0.6582, allocations: 382.2 kB / 404.7 MB, free: 6.895 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001831/0.6585, allocations: 57.2 kB / 404.8 MB, free: 6.82 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.388e-05/0.6586, allocations: 25.77 kB / 404.8 MB, free: 6.789 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.363e-05/0.6586, allocations: 0 / 404.8 MB, free: 6.789 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002843/0.6589, allocations: 105 kB / 404.9 MB, free: 6.668 MB / 330.7 MB Notification: Performance of pre-optimization done (n=6): time 2.374e-06/0.6589, allocations: 0 / 404.9 MB, free: 6.668 MB / 330.7 MB Notification: Performance of matching and sorting (n=6): time 0.0005875/0.6595, allocations: 121.1 kB / 405 MB, free: 6.543 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.748e-05/0.6596, allocations: 85.05 kB / 405.1 MB, free: 6.441 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002958/0.6626, allocations: 0.9145 MB / 406 MB, free: 5.52 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.822e-05/0.6627, allocations: 29.7 kB / 406 MB, free: 5.484 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003112/0.6631, allocations: 250.6 kB / 406.3 MB, free: 5.238 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.192e-05/0.6631, allocations: 15.81 kB / 406.3 MB, free: 5.223 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.836e-05/0.6632, allocations: 4 kB / 406.3 MB, free: 5.219 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001792/0.6634, allocations: 322.8 kB / 406.6 MB, free: 4.895 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001729/0.6635, allocations: 32 kB / 406.7 MB, free: 4.863 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001794/0.6637, allocations: 49.7 kB / 406.7 MB, free: 4.809 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002435/0.664, allocations: 99.38 kB / 406.8 MB, free: 4.699 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.418e-06/0.664, allocations: 0 / 406.8 MB, free: 4.699 MB / 330.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0006272/0.6647, allocations: 201 kB / 407 MB, free: 4.484 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.299e-05/0.6648, allocations: 59.41 kB / 407.1 MB, free: 4.414 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.456e-06/0.6648, allocations: 0 / 407.1 MB, free: 4.414 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.291e-05/0.6648, allocations: 4 kB / 407.1 MB, free: 4.41 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001643/0.665, allocations: 15.98 kB / 407.1 MB, free: 4.395 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.728e-06/0.665, allocations: 0 / 407.1 MB, free: 4.395 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003353/0.6654, allocations: 15.84 kB / 407.1 MB, free: 4.379 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.83e-05/0.6654, allocations: 8 kB / 407.1 MB, free: 4.371 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition2,$PRE.startTime.nextTimeEvent,startTime.nextTimeEvent,$whenCondition1,$PRE.startTime_0.nextTimeEvent,startTime_0.nextTimeEvent) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 2 * 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.0001609/0.6656, allocations: 113 kB / 407.2 MB, free: 4.254 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002001/0.6658, allocations: 59.36 kB / 407.3 MB, free: 4.195 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006945/0.6666, allocations: 149.2 kB / 407.4 MB, free: 4.039 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.143e-06/0.6666, allocations: 4 kB / 407.4 MB, free: 4.035 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.287e-05/0.6666, allocations: 4.125 kB / 407.4 MB, free: 4.031 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.013e-06/0.6667, allocations: 3.938 kB / 407.4 MB, free: 4.027 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008151/0.6675, allocations: 373.2 kB / 407.8 MB, free: 3.613 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.939e-06/0.6675, allocations: 0 / 407.8 MB, free: 3.613 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001213/0.6677, allocations: 7.938 kB / 407.8 MB, free: 3.605 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.345e-05/0.6677, allocations: 4 kB / 407.8 MB, free: 3.602 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.44e-05/0.6677, allocations: 4 kB / 407.8 MB, free: 3.598 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.919e-06/0.6678, allocations: 3.984 kB / 407.8 MB, free: 3.594 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.6678, allocations: 0 / 407.8 MB, free: 3.594 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006567/0.6684, allocations: 179.3 kB / 408 MB, free: 3.391 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005346/0.669, allocations: 180.5 kB / 408.2 MB, free: 3.195 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001427/0.6692, allocations: 15.97 kB / 408.2 MB, free: 3.18 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002405/0.6694, allocations: 8 kB / 408.2 MB, free: 3.172 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.863e-05/0.6695, allocations: 7.984 kB / 408.2 MB, free: 3.164 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.74e-05/0.6696, allocations: 4 kB / 408.2 MB, free: 3.16 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.002268/0.6719, allocations: 0.7201 MB / 408.9 MB, free: 2.445 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.458e-06/0.6719, allocations: 0 / 408.9 MB, free: 2.445 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001009/0.673, allocations: 107.8 kB / 409 MB, free: 2.34 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition2,startTime.nextTimeEvent,$whenCondition1,startTime_0.nextTimeEvent) * Number of discrete states: 2 (startTime_0.nextTimeEvent,startTime.nextTimeEvent) * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.002933/0.6759, allocations: 1.117 MB / 410.1 MB, free: 1.262 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006087/0.6766, allocations: 198.7 kB / 410.3 MB, free: 1.043 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.651e-06/0.6766, allocations: 3.938 kB / 410.3 MB, free: 1.039 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00014/0.6768, allocations: 31.92 kB / 410.4 MB, free: 1.008 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007932/0.6776, allocations: 47.69 kB / 410.4 MB, free: 0.9648 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003427/0.681, allocations: 0.9152 MB / 411.3 MB, free: 0 / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008687/0.682, allocations: 0.8506 MB / 412.2 MB, free: 15.12 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000533/0.6825, allocations: 139.4 kB / 412.3 MB, free: 14.98 MB / 346.7 MB Notification: Performance of SimCode: time 1.663e-06/0.6826, allocations: 0 / 412.3 MB, free: 14.98 MB / 346.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_Test72CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test72CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test72CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test72FMU.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_Test72.so OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test72CalcHelperMain.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_Test72_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test72.fmu' failed make: *** [ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test72.fmu] Error 1