Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test7,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test7",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.108/2.108, allocations: 209.3 MB / 221.9 MB, free: 1.941 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 5.272e-05/5.291e-05, allocations: 4 kB / 273.1 MB, free: 0.6445 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1098/0.1099, allocations: 48.72 MB / 321.8 MB, free: 15.83 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3999/0.5099, allocations: 75.77 MB / 397.6 MB, free: 14.16 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002803/0.5103, allocations: 71.95 kB / 397.7 MB, free: 14.09 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01925/0.5296, allocations: 4.263 MB / 401.9 MB, free: 9.836 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.903e-06/0.5296, allocations: 0 / 401.9 MB, free: 9.836 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.695e-05/0.5296, allocations: 0 / 401.9 MB, free: 9.836 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.0006662/0.5303, allocations: 431.9 kB / 402.4 MB, free: 9.363 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.689e-05/0.5304, allocations: 12.03 kB / 402.4 MB, free: 9.352 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.416e-05/0.5305, allocations: 34.5 kB / 402.4 MB, free: 9.309 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.258e-05/0.5305, allocations: 11.91 kB / 402.4 MB, free: 9.297 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003887/0.531, allocations: 218.8 kB / 402.6 MB, free: 9.043 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.011e-05/0.531, allocations: 8 kB / 402.6 MB, free: 9.035 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.03e-05/0.531, allocations: 3.906 kB / 402.6 MB, free: 9.031 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001553/0.5312, allocations: 45.69 kB / 402.7 MB, free: 8.98 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.616e-05/0.5312, allocations: 3.984 kB / 402.7 MB, free: 8.977 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.362e-05/0.5313, allocations: 0 / 402.7 MB, free: 8.977 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.811e-06/0.5313, allocations: 0 / 402.7 MB, free: 8.977 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.136e-05/0.5314, allocations: 12 kB / 402.7 MB, free: 8.965 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006046/0.532, allocations: 304.9 kB / 403 MB, free: 8.617 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003146/0.5324, allocations: 50.95 kB / 403.1 MB, free: 8.559 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.727e-05/0.5324, allocations: 12.86 kB / 403.1 MB, free: 8.543 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.672e-05/0.5325, allocations: 96 / 403.1 MB, free: 8.543 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001836/0.5327, allocations: 59.39 kB / 403.1 MB, free: 8.473 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 2.735e-06/0.5327, allocations: 0 / 403.1 MB, free: 8.473 MB / 330.7 MB Notification: Performance of matching and sorting (n=5): time 0.0006164/0.5333, allocations: 125.1 kB / 403.2 MB, free: 8.344 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.164e-05/0.5334, allocations: 55.41 kB / 403.3 MB, free: 8.277 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004606/0.5339, allocations: 205.9 kB / 403.5 MB, free: 8.07 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.149e-05/0.5339, allocations: 25.7 kB / 403.5 MB, free: 8.039 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000123/0.5341, allocations: 166.6 kB / 403.7 MB, free: 7.875 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.071e-05/0.5341, allocations: 15.8 kB / 403.7 MB, free: 7.859 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.672e-05/0.5342, allocations: 7.938 kB / 403.7 MB, free: 7.852 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.00016/0.5343, allocations: 314.8 kB / 404 MB, free: 7.535 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001104/0.5345, allocations: 24 kB / 404 MB, free: 7.512 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001125/0.5346, allocations: 27.94 kB / 404.1 MB, free: 7.484 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001503/0.5348, allocations: 49.69 kB / 404.1 MB, free: 7.43 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.5348, allocations: 0 / 404.1 MB, free: 7.43 MB / 330.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004228/0.5352, allocations: 131.3 kB / 404.2 MB, free: 7.289 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.969e-05/0.5353, allocations: 33.7 kB / 404.3 MB, free: 7.25 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.213e-06/0.5353, allocations: 3.938 kB / 404.3 MB, free: 7.246 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.541e-05/0.5353, allocations: 0 / 404.3 MB, free: 7.246 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001269/0.5355, allocations: 11.98 kB / 404.3 MB, free: 7.234 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.227e-05/0.5355, allocations: 3.953 kB / 404.3 MB, free: 7.23 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001144/0.5357, allocations: 11.94 kB / 404.3 MB, free: 7.219 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.363e-05/0.5357, allocations: 4 kB / 404.3 MB, free: 7.215 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.0001195/0.5358, allocations: 109 kB / 404.4 MB, free: 7.102 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.825e-05/0.5359, allocations: 7.906 kB / 404.4 MB, free: 7.094 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003976/0.5363, allocations: 98.59 kB / 404.5 MB, free: 6.988 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.29e-06/0.5363, allocations: 0 / 404.5 MB, free: 6.988 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.5364, allocations: 0 / 404.5 MB, free: 6.988 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.917e-06/0.5364, allocations: 3.953 kB / 404.5 MB, free: 6.984 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007711/0.5372, allocations: 370.5 kB / 404.9 MB, free: 6.566 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.5372, allocations: 0 / 404.9 MB, free: 6.566 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.479e-05/0.5373, allocations: 11.98 kB / 404.9 MB, free: 6.555 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.489e-06/0.5373, allocations: 192 / 404.9 MB, free: 6.555 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.815e-05/0.5373, allocations: 4 kB / 404.9 MB, free: 6.551 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.358e-06/0.5374, allocations: 7.953 kB / 404.9 MB, free: 6.543 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.979e-06/0.5374, allocations: 3.938 kB / 404.9 MB, free: 6.539 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003487/0.5378, allocations: 175.4 kB / 405.1 MB, free: 6.352 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001212/0.5379, allocations: 93 kB / 405.2 MB, free: 6.242 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.073e-05/0.538, allocations: 4 kB / 405.2 MB, free: 6.238 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001678/0.5382, allocations: 4 kB / 405.2 MB, free: 6.234 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.87e-05/0.5382, allocations: 11.94 kB / 405.2 MB, free: 6.223 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.559e-05/0.5383, allocations: 0 / 405.2 MB, free: 6.223 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000345/0.5386, allocations: 172.2 kB / 405.4 MB, free: 6.055 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.91e-07/0.5386, allocations: 4 kB / 405.4 MB, free: 6.051 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006658/0.5393, allocations: 43.86 kB / 405.4 MB, free: 6.008 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.001987/0.5413, allocations: 0.9516 MB / 406.4 MB, free: 5.09 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003587/0.5417, allocations: 107.4 kB / 406.5 MB, free: 4.973 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.5417, allocations: 3.938 kB / 406.5 MB, free: 4.969 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 9.665e-05/0.5419, allocations: 23.98 kB / 406.5 MB, free: 4.945 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000445/0.5423, allocations: 23.84 kB / 406.5 MB, free: 4.922 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001053/0.5434, allocations: 265.2 kB / 406.8 MB, free: 4.617 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003967/0.5438, allocations: 0.7121 MB / 407.5 MB, free: 3.879 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001225/0.5439, allocations: 35.42 kB / 407.5 MB, free: 3.844 MB / 330.7 MB Notification: Performance of SimCode: time 9.82e-07/0.544, allocations: 0 / 407.5 MB, free: 3.844 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_Test7CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test7CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test7CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test7FMU.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_Test7.so OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test7CalcHelperMain.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_Test7_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test7.fmu' failed make: *** [ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test7.fmu] Error 1