Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test28,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test28",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.165/2.165, allocations: 209.3 MB / 221.9 MB, free: 1.926 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.098e-05/4.108e-05, allocations: 8 kB / 273.2 MB, free: 0.6328 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1015/0.1016, allocations: 48.71 MB / 321.9 MB, free: 15.82 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4074/0.509, allocations: 75.74 MB / 397.6 MB, free: 14.06 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002822/0.5093, allocations: 79.14 kB / 397.7 MB, free: 13.98 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01846/0.5278, allocations: 3.91 MB / 401.6 MB, free: 10.08 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.924e-06/0.5279, allocations: 0 / 401.6 MB, free: 10.08 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.834e-05/0.5279, allocations: 4 kB / 401.6 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.0006098/0.5285, allocations: 419.9 kB / 402 MB, free: 9.613 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.977e-05/0.5286, allocations: 8.031 kB / 402 MB, free: 9.605 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.95e-05/0.5286, allocations: 34.56 kB / 402.1 MB, free: 9.562 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.046e-05/0.5287, allocations: 7.906 kB / 402.1 MB, free: 9.555 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003334/0.5291, allocations: 194.9 kB / 402.2 MB, free: 9.324 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.501e-05/0.5291, allocations: 0 / 402.2 MB, free: 9.324 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.147e-05/0.5291, allocations: 7.906 kB / 402.3 MB, free: 9.316 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000126/0.5293, allocations: 41.69 kB / 402.3 MB, free: 9.27 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.227e-05/0.5293, allocations: 4 kB / 402.3 MB, free: 9.266 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.433e-05/0.5293, allocations: 7.984 kB / 402.3 MB, free: 9.258 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.49e-06/0.5293, allocations: 0 / 402.3 MB, free: 9.258 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.195e-05/0.5294, allocations: 19.89 kB / 402.3 MB, free: 9.238 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004818/0.5299, allocations: 284.9 kB / 402.6 MB, free: 8.91 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002629/0.5302, allocations: 51.02 kB / 402.7 MB, free: 8.852 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.15e-05/0.5303, allocations: 8.859 kB / 402.7 MB, free: 8.84 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.278e-05/0.5303, allocations: 4 kB / 402.7 MB, free: 8.836 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000156/0.5304, allocations: 63.44 kB / 402.7 MB, free: 8.762 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 2.225e-06/0.5305, allocations: 0 / 402.7 MB, free: 8.762 MB / 330.7 MB Notification: Performance of matching and sorting (n=5): time 0.0004996/0.531, allocations: 113.3 kB / 402.8 MB, free: 8.645 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.926e-05/0.531, allocations: 51.41 kB / 402.9 MB, free: 8.582 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002358/0.5313, allocations: 152.7 kB / 403 MB, free: 8.426 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.726e-05/0.5313, allocations: 33.7 kB / 403.1 MB, free: 8.387 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.491e-05/0.5314, allocations: 166.5 kB / 403.2 MB, free: 8.223 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.184e-05/0.5315, allocations: 19.8 kB / 403.3 MB, free: 8.203 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.005e-06/0.5315, allocations: 0 / 403.3 MB, free: 8.203 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001404/0.5316, allocations: 318.8 kB / 403.6 MB, free: 7.883 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.947e-05/0.5317, allocations: 23.94 kB / 403.6 MB, free: 7.859 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.891e-05/0.5318, allocations: 20 kB / 403.6 MB, free: 7.84 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001147/0.5319, allocations: 57.69 kB / 403.7 MB, free: 7.777 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.5319, allocations: 3.938 kB / 403.7 MB, free: 7.773 MB / 330.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003003/0.5323, allocations: 123.3 kB / 403.8 MB, free: 7.641 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.698e-05/0.5323, allocations: 37.7 kB / 403.8 MB, free: 7.598 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.803e-06/0.5323, allocations: 0 / 403.8 MB, free: 7.598 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.048e-05/0.5324, allocations: 3.953 kB / 403.8 MB, free: 7.594 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.58e-05/0.5325, allocations: 15.92 kB / 403.8 MB, free: 7.578 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.627e-06/0.5325, allocations: 0 / 403.8 MB, free: 7.578 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.736e-05/0.5326, allocations: 8 kB / 403.9 MB, free: 7.57 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.505e-05/0.5326, allocations: 0 / 403.9 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 9.421e-05/0.5327, allocations: 105 kB / 404 MB, free: 7.461 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.172e-05/0.5328, allocations: 7.906 kB / 404 MB, free: 7.453 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003331/0.5331, allocations: 98.02 kB / 404.1 MB, free: 7.355 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.709e-06/0.5331, allocations: 4 kB / 404.1 MB, free: 7.352 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.036e-05/0.5332, allocations: 7.953 kB / 404.1 MB, free: 7.344 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.191e-06/0.5332, allocations: 96 / 404.1 MB, free: 7.344 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005032/0.5337, allocations: 354.5 kB / 404.4 MB, free: 6.941 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-06/0.5337, allocations: 0 / 404.4 MB, free: 6.941 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.939e-05/0.5338, allocations: 4 kB / 404.4 MB, free: 6.938 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.029e-06/0.5338, allocations: 0 / 404.4 MB, free: 6.938 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.735e-05/0.5338, allocations: 11.95 kB / 404.4 MB, free: 6.926 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.551e-06/0.5339, allocations: 3.984 kB / 404.4 MB, free: 6.922 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.5339, allocations: 0 / 404.4 MB, free: 6.922 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002421/0.5341, allocations: 171.4 kB / 404.6 MB, free: 6.738 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.941e-05/0.5342, allocations: 85.02 kB / 404.7 MB, free: 6.637 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.599e-05/0.5343, allocations: 11.98 kB / 404.7 MB, free: 6.625 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000105/0.5344, allocations: 3.953 kB / 404.7 MB, free: 6.621 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.453e-05/0.5344, allocations: 4 kB / 404.7 MB, free: 6.617 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.217e-05/0.5344, allocations: 4 kB / 404.7 MB, free: 6.613 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001655/0.5346, allocations: 131.8 kB / 404.8 MB, free: 6.484 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.4e-07/0.5346, allocations: 0 / 404.8 MB, free: 6.484 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004109/0.5351, allocations: 35.94 kB / 404.9 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.001473/0.5365, allocations: 0.9432 MB / 405.8 MB, free: 5.539 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003265/0.5369, allocations: 119.4 kB / 405.9 MB, free: 5.41 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.546e-06/0.5369, allocations: 0 / 405.9 MB, free: 5.41 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 7.413e-05/0.537, allocations: 19.94 kB / 406 MB, free: 5.391 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003647/0.5374, allocations: 28 kB / 406 MB, free: 5.363 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007109/0.5381, allocations: 221.2 kB / 406.2 MB, free: 5.105 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003073/0.5385, allocations: 0.6965 MB / 406.9 MB, free: 4.383 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.817e-05/0.5386, allocations: 31.42 kB / 406.9 MB, free: 4.352 MB / 330.7 MB Notification: Performance of SimCode: time 1.162e-06/0.5386, allocations: 0 / 406.9 MB, free: 4.352 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_Test28CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test28CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test28CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test28FMU.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_Test28.so OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test28CalcHelperMain.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_Test28_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test28.fmu' failed make: *** [ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test28.fmu] Error 1