Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test22,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test22",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.147/2.147, allocations: 209.3 MB / 221.9 MB, free: 1.93 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 5.215e-05/5.232e-05, allocations: 4 kB / 273.2 MB, free: 0.6367 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1236/0.1237, allocations: 48.7 MB / 321.9 MB, free: 15.83 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.425/0.5488, allocations: 75.79 MB / 397.6 MB, free: 14.13 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003053/0.5492, allocations: 66.75 kB / 397.7 MB, free: 14.07 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02/0.5692, allocations: 4.005 MB / 401.7 MB, free: 10.07 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.864e-06/0.5693, allocations: 0 / 401.7 MB, free: 10.07 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.593e-05/0.5693, allocations: 0 / 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.0006217/0.5699, allocations: 419.9 kB / 402.1 MB, free: 9.613 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.278e-05/0.57, allocations: 12.03 kB / 402.1 MB, free: 9.602 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.647e-05/0.57, allocations: 30.56 kB / 402.2 MB, free: 9.562 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.529e-05/0.5701, allocations: 7.906 kB / 402.2 MB, free: 9.555 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003237/0.5704, allocations: 198.9 kB / 402.4 MB, free: 9.32 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.456e-05/0.5705, allocations: 0 / 402.4 MB, free: 9.32 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.382e-05/0.5705, allocations: 11.91 kB / 402.4 MB, free: 9.309 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001841/0.5707, allocations: 45.67 kB / 402.4 MB, free: 9.258 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.866e-05/0.5708, allocations: 0 / 402.4 MB, free: 9.258 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.493e-05/0.5708, allocations: 0 / 402.4 MB, free: 9.258 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.093e-06/0.5708, allocations: 0 / 402.4 MB, free: 9.258 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.671e-05/0.5709, allocations: 23.89 kB / 402.4 MB, free: 9.234 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005661/0.5715, allocations: 284.9 kB / 402.7 MB, free: 8.906 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002742/0.5718, allocations: 43.03 kB / 402.8 MB, free: 8.855 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.384e-05/0.5718, allocations: 16.86 kB / 402.8 MB, free: 8.836 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.913e-05/0.5719, allocations: 0 / 402.8 MB, free: 8.836 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001675/0.5721, allocations: 63.42 kB / 402.8 MB, free: 8.762 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 2.365e-06/0.5721, allocations: 0 / 402.8 MB, free: 8.762 MB / 330.7 MB Notification: Performance of matching and sorting (n=5): time 0.000579/0.5727, allocations: 105.5 kB / 403 MB, free: 8.652 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.41e-05/0.5727, allocations: 55.41 kB / 403 MB, free: 8.586 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000262/0.573, allocations: 156.9 kB / 403.2 MB, free: 8.426 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.683e-05/0.5731, allocations: 33.64 kB / 403.2 MB, free: 8.387 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.028e-05/0.5732, allocations: 166.5 kB / 403.4 MB, free: 8.223 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.774e-05/0.5732, allocations: 19.8 kB / 403.4 MB, free: 8.203 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.995e-06/0.5732, allocations: 0 / 403.4 MB, free: 8.203 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001252/0.5734, allocations: 314.8 kB / 403.7 MB, free: 7.887 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.161e-05/0.5734, allocations: 31.92 kB / 403.7 MB, free: 7.855 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.161e-05/0.5735, allocations: 20 kB / 403.7 MB, free: 7.836 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001083/0.5737, allocations: 57.62 kB / 403.8 MB, free: 7.773 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.023e-06/0.5737, allocations: 4 kB / 403.8 MB, free: 7.77 MB / 330.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003104/0.574, allocations: 123.3 kB / 403.9 MB, free: 7.637 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.412e-05/0.5741, allocations: 33.69 kB / 403.9 MB, free: 7.598 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.201e-05/0.5741, allocations: 0 / 403.9 MB, free: 7.598 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.662e-05/0.5741, allocations: 11.88 kB / 404 MB, free: 7.586 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001323/0.5743, allocations: 8 kB / 404 MB, free: 7.578 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.558e-05/0.5743, allocations: 4 kB / 404 MB, free: 7.574 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.47e-05/0.5744, allocations: 0 / 404 MB, free: 7.574 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.459e-05/0.5745, allocations: 4 kB / 404 MB, free: 7.57 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 0.0001525/0.5746, allocations: 117 kB / 404.1 MB, free: 7.449 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.627e-05/0.5747, allocations: 7.906 kB / 404.1 MB, free: 7.441 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003471/0.575, allocations: 85.77 kB / 404.2 MB, free: 7.355 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.36e-06/0.5751, allocations: 0 / 404.2 MB, free: 7.355 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.042e-05/0.5751, allocations: 3.953 kB / 404.2 MB, free: 7.352 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.21e-06/0.5751, allocations: 7.938 kB / 404.2 MB, free: 7.344 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006012/0.5757, allocations: 342.7 kB / 404.5 MB, free: 6.953 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.198e-06/0.5757, allocations: 0 / 404.5 MB, free: 6.953 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.472e-05/0.5758, allocations: 16.08 kB / 404.5 MB, free: 6.938 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.352e-06/0.5759, allocations: 3.938 kB / 404.5 MB, free: 6.934 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.761e-05/0.5759, allocations: 7.953 kB / 404.6 MB, free: 6.926 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.179e-05/0.5759, allocations: 4 kB / 404.6 MB, free: 6.922 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.5759, allocations: 0 / 404.6 MB, free: 6.922 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002844/0.5762, allocations: 171.4 kB / 404.7 MB, free: 6.738 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.332e-05/0.5763, allocations: 89 kB / 404.8 MB, free: 6.633 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.169e-05/0.5764, allocations: 0 / 404.8 MB, free: 6.633 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001115/0.5765, allocations: 11.95 kB / 404.8 MB, free: 6.621 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.372e-05/0.5766, allocations: 7.984 kB / 404.8 MB, free: 6.613 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.535e-05/0.5766, allocations: 4 kB / 404.8 MB, free: 6.609 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001866/0.5768, allocations: 130.8 kB / 405 MB, free: 6.484 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.5768, allocations: 0 / 405 MB, free: 6.484 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000421/0.5772, allocations: 35.92 kB / 405 MB, free: 6.449 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.001615/0.5788, allocations: 0.9555 MB / 406 MB, free: 5.523 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003237/0.5792, allocations: 107.4 kB / 406.1 MB, free: 5.406 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.294e-05/0.5792, allocations: 4 kB / 406.1 MB, free: 5.402 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 7.83e-05/0.5793, allocations: 27.92 kB / 406.1 MB, free: 5.375 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003904/0.5797, allocations: 11.94 kB / 406.1 MB, free: 5.363 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008154/0.5806, allocations: 217.2 kB / 406.3 MB, free: 5.109 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003998/0.581, allocations: 0.7043 MB / 407 MB, free: 4.379 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.823e-05/0.5811, allocations: 23.42 kB / 407 MB, free: 4.355 MB / 330.7 MB Notification: Performance of SimCode: time 1.492e-06/0.5811, allocations: 0 / 407 MB, free: 4.355 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_Test22CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test22CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test22CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test22FMU.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_Test22.so OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test22CalcHelperMain.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_Test22_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test22.fmu' failed make: *** [ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test22.fmu] Error 1