Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test21,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test21",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.157/2.157, allocations: 209.3 MB / 221.9 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 5.597e-05/5.601e-05, allocations: 4 kB / 273.2 MB, free: 0.6367 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1206/0.1207, allocations: 48.71 MB / 321.9 MB, free: 15.83 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4121/0.5328, allocations: 75.78 MB / 397.6 MB, free: 14.03 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002714/0.5332, allocations: 71.95 kB / 397.7 MB, free: 13.96 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01819/0.5514, allocations: 3.997 MB / 401.7 MB, free: 9.969 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.5514, allocations: 0 / 401.7 MB, free: 9.969 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.51e-05/0.5515, allocations: 0 / 401.7 MB, free: 9.969 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.0006186/0.5521, allocations: 419.9 kB / 402.1 MB, free: 9.508 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.04e-05/0.5522, allocations: 8.031 kB / 402.1 MB, free: 9.5 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.215e-05/0.5522, allocations: 34.55 kB / 402.2 MB, free: 9.457 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.899e-05/0.5523, allocations: 11.89 kB / 402.2 MB, free: 9.445 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003115/0.5526, allocations: 194.9 kB / 402.4 MB, free: 9.215 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.233e-05/0.5526, allocations: 4 kB / 402.4 MB, free: 9.211 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.75e-05/0.5527, allocations: 7.906 kB / 402.4 MB, free: 9.203 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001356/0.5528, allocations: 49.62 kB / 402.4 MB, free: 9.148 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.295e-05/0.5529, allocations: 0 / 402.4 MB, free: 9.148 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.182e-05/0.5529, allocations: 0 / 402.4 MB, free: 9.148 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.54e-06/0.5529, allocations: 0 / 402.4 MB, free: 9.148 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.872e-05/0.553, allocations: 19.94 kB / 402.4 MB, free: 9.129 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004832/0.5535, allocations: 296.9 kB / 402.7 MB, free: 8.789 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000252/0.5537, allocations: 47.03 kB / 402.8 MB, free: 8.734 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.087e-05/0.5538, allocations: 8.859 kB / 402.8 MB, free: 8.723 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.48e-05/0.5538, allocations: 8.078 kB / 402.8 MB, free: 8.715 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001559/0.554, allocations: 59.34 kB / 402.9 MB, free: 8.645 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 2.034e-06/0.554, allocations: 0 / 402.9 MB, free: 8.645 MB / 330.7 MB Notification: Performance of matching and sorting (n=5): time 0.000536/0.5546, allocations: 109.3 kB / 403 MB, free: 8.531 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.455e-05/0.5546, allocations: 55.41 kB / 403 MB, free: 8.465 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002294/0.5549, allocations: 160.5 kB / 403.2 MB, free: 8.301 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.691e-05/0.5549, allocations: 29.7 kB / 403.2 MB, free: 8.266 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.604e-05/0.555, allocations: 162.5 kB / 403.4 MB, free: 8.105 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.691e-05/0.5551, allocations: 11.81 kB / 403.4 MB, free: 8.094 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.764e-06/0.5551, allocations: 0 / 403.4 MB, free: 8.094 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001417/0.5552, allocations: 322.8 kB / 403.7 MB, free: 7.77 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.803e-05/0.5553, allocations: 24 kB / 403.7 MB, free: 7.746 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.686e-05/0.5554, allocations: 20 kB / 403.7 MB, free: 7.727 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001165/0.5555, allocations: 57.69 kB / 403.8 MB, free: 7.664 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.5555, allocations: 3.938 kB / 403.8 MB, free: 7.66 MB / 330.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002878/0.5558, allocations: 127.2 kB / 403.9 MB, free: 7.523 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.469e-05/0.5559, allocations: 29.7 kB / 403.9 MB, free: 7.488 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.211e-06/0.5559, allocations: 0 / 403.9 MB, free: 7.488 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.933e-05/0.5559, allocations: 7.953 kB / 404 MB, free: 7.48 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.001e-05/0.556, allocations: 8 kB / 404 MB, free: 7.473 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.155e-06/0.5561, allocations: 4 kB / 404 MB, free: 7.469 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.567e-05/0.5561, allocations: 3.984 kB / 404 MB, free: 7.465 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.892e-05/0.5562, allocations: 4 kB / 404 MB, free: 7.461 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.222e-05/0.5563, allocations: 113 kB / 404.1 MB, free: 7.344 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.755e-05/0.5563, allocations: 7.906 kB / 404.1 MB, free: 7.336 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002792/0.5566, allocations: 89.7 kB / 404.2 MB, free: 7.246 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-06/0.5566, allocations: 0 / 404.2 MB, free: 7.246 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.524e-06/0.5566, allocations: 7.953 kB / 404.2 MB, free: 7.238 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.5567, allocations: 0 / 404.2 MB, free: 7.238 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005142/0.5572, allocations: 350.5 kB / 404.5 MB, free: 6.84 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.5572, allocations: 4 kB / 404.5 MB, free: 6.836 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.076e-05/0.5573, allocations: 8 kB / 404.5 MB, free: 6.828 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.418e-06/0.5573, allocations: 144 / 404.5 MB, free: 6.828 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.386e-05/0.5573, allocations: 3.953 kB / 404.5 MB, free: 6.824 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.599e-06/0.5573, allocations: 7.938 kB / 404.6 MB, free: 6.816 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.5573, allocations: 0 / 404.6 MB, free: 6.816 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00025/0.5576, allocations: 179.6 kB / 404.7 MB, free: 6.625 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.992e-05/0.5577, allocations: 85.02 kB / 404.8 MB, free: 6.523 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.267e-05/0.5577, allocations: 8 kB / 404.8 MB, free: 6.516 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001051/0.5578, allocations: 7.953 kB / 404.8 MB, free: 6.508 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.008e-05/0.5579, allocations: 3.984 kB / 404.8 MB, free: 6.504 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.464e-05/0.5579, allocations: 4 kB / 404.8 MB, free: 6.5 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001706/0.5581, allocations: 127.8 kB / 405 MB, free: 6.375 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.5581, allocations: 0 / 405 MB, free: 6.375 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004235/0.5585, allocations: 39.92 kB / 405 MB, free: 6.336 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.001502/0.5601, allocations: 0.9466 MB / 405.9 MB, free: 5.422 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002891/0.5604, allocations: 115.4 kB / 406.1 MB, free: 5.297 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.626e-06/0.5604, allocations: 0 / 406.1 MB, free: 5.297 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 7.897e-05/0.5605, allocations: 23.94 kB / 406.1 MB, free: 5.273 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000342/0.5608, allocations: 19.94 kB / 406.1 MB, free: 5.254 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007213/0.5616, allocations: 217.2 kB / 406.3 MB, free: 5 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004051/0.562, allocations: 0.7004 MB / 407 MB, free: 4.273 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.549e-05/0.5621, allocations: 23.44 kB / 407 MB, free: 4.25 MB / 330.7 MB Notification: Performance of SimCode: time 1.423e-06/0.5621, allocations: 4 kB / 407 MB, free: 4.246 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_Test21CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test21CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test21CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test21FMU.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_Test21.so OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test21CalcHelperMain.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_Test21_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test21.fmu' failed make: *** [ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test21.fmu] Error 1