Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test70,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test70",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.172/2.172, allocations: 209.3 MB / 221.9 MB, free: 1.941 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.452e-05/3.486e-05, allocations: 4 kB / 273.2 MB, free: 0.6367 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1069/0.107, allocations: 48.71 MB / 321.9 MB, free: 15.83 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.414/0.521, allocations: 75.64 MB / 397.5 MB, free: 14.27 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000297/0.5213, allocations: 71.12 kB / 397.6 MB, free: 14.21 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0236/0.545, allocations: 5.478 MB / 403.1 MB, free: 8.734 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.545, allocations: 0 / 403.1 MB, free: 8.734 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.806e-05/0.5451, 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.001017/0.5461, allocations: 0.6451 MB / 403.7 MB, free: 8.027 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.441e-05/0.5462, allocations: 12.03 kB / 403.7 MB, free: 8.016 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.949e-05/0.5462, allocations: 30.56 kB / 403.7 MB, free: 7.977 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000147/0.5464, allocations: 59.38 kB / 403.8 MB, free: 7.918 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001052/0.5475, allocations: 443.3 kB / 404.2 MB, free: 7.445 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.768e-05/0.5475, allocations: 4 kB / 404.2 MB, free: 7.441 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.759e-05/0.5475, allocations: 8 kB / 404.2 MB, free: 7.434 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000187/0.5477, allocations: 67.8 kB / 404.3 MB, free: 7.355 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.013e-05/0.5478, allocations: 0 / 404.3 MB, free: 7.355 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.423e-05/0.5478, allocations: 0 / 404.3 MB, free: 7.355 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.767e-06/0.5478, allocations: 0 / 404.3 MB, free: 7.355 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.5e-05/0.5479, allocations: 23.92 kB / 404.3 MB, free: 7.332 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006528/0.5486, allocations: 390.2 kB / 404.7 MB, free: 6.898 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001387/0.5487, allocations: 57.2 kB / 404.8 MB, free: 6.824 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.531e-05/0.5488, allocations: 25.72 kB / 404.8 MB, free: 6.793 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.911e-05/0.5488, allocations: 0 / 404.8 MB, free: 6.793 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002276/0.5491, allocations: 93.09 kB / 404.9 MB, free: 6.684 MB / 330.7 MB Notification: Performance of pre-optimization done (n=6): time 1.944e-06/0.5491, allocations: 0 / 404.9 MB, free: 6.684 MB / 330.7 MB Notification: Performance of matching and sorting (n=6): time 0.0004533/0.5496, allocations: 133 kB / 405 MB, free: 6.547 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.6e-05/0.5496, allocations: 81.11 kB / 405.1 MB, free: 6.449 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002061/0.5517, allocations: 0.9106 MB / 406 MB, free: 5.531 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.528e-05/0.5518, allocations: 29.7 kB / 406 MB, free: 5.496 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002325/0.552, allocations: 254.5 kB / 406.3 MB, free: 5.246 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.98e-05/0.5521, allocations: 23.73 kB / 406.3 MB, free: 5.223 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.348e-05/0.5521, allocations: 4 kB / 406.3 MB, free: 5.219 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001782/0.5523, allocations: 318.8 kB / 406.6 MB, free: 4.898 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001237/0.5525, allocations: 35.98 kB / 406.7 MB, free: 4.863 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001312/0.5526, allocations: 45.72 kB / 406.7 MB, free: 4.812 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001846/0.5528, allocations: 99.38 kB / 406.8 MB, free: 4.703 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.925e-06/0.5528, allocations: 0 / 406.8 MB, free: 4.703 MB / 330.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004661/0.5533, allocations: 197.1 kB / 407 MB, free: 4.492 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.802e-05/0.5534, allocations: 63.39 kB / 407.1 MB, free: 4.418 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.063e-06/0.5534, allocations: 0 / 407.1 MB, free: 4.418 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.217e-05/0.5534, allocations: 7.984 kB / 407.1 MB, free: 4.41 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001285/0.5536, allocations: 8 kB / 407.1 MB, free: 4.402 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.956e-06/0.5536, allocations: 0 / 407.1 MB, free: 4.402 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002304/0.5538, allocations: 23.83 kB / 407.1 MB, free: 4.379 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.46e-05/0.5539, 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.0001142/0.554, allocations: 116.9 kB / 407.2 MB, free: 4.25 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001241/0.5541, allocations: 51.44 kB / 407.3 MB, free: 4.199 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000469/0.5546, allocations: 149.2 kB / 407.4 MB, free: 4.043 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.434e-06/0.5546, allocations: 4 kB / 407.4 MB, free: 4.039 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.605e-06/0.5546, allocations: 0 / 407.4 MB, free: 4.039 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.5546, allocations: 3.938 kB / 407.4 MB, free: 4.035 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005302/0.5552, allocations: 373.2 kB / 407.8 MB, free: 3.621 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.5552, allocations: 4 kB / 407.8 MB, free: 3.617 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.893e-05/0.5553, allocations: 7.984 kB / 407.8 MB, free: 3.609 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.825e-06/0.5553, allocations: 4 kB / 407.8 MB, free: 3.605 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.474e-05/0.5553, allocations: 4 kB / 407.8 MB, free: 3.602 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.457e-06/0.5554, allocations: 0 / 407.8 MB, free: 3.602 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.5554, allocations: 0 / 407.8 MB, free: 3.602 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003998/0.5558, allocations: 179.1 kB / 408 MB, free: 3.398 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003975/0.5562, allocations: 184.5 kB / 408.2 MB, free: 3.199 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.86e-05/0.5563, allocations: 8.062 kB / 408.2 MB, free: 3.191 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001483/0.5565, allocations: 16 kB / 408.2 MB, free: 3.176 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.276e-05/0.5565, allocations: 7.984 kB / 408.2 MB, free: 3.168 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.736e-05/0.5565, allocations: 4 kB / 408.2 MB, free: 3.164 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001477/0.558, allocations: 0.7201 MB / 408.9 MB, free: 2.449 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.5581, allocations: 0 / 408.9 MB, free: 2.449 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005784/0.5586, allocations: 103.9 kB / 409 MB, free: 2.348 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.00205/0.5607, allocations: 1.127 MB / 410.1 MB, free: 1.262 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004394/0.5612, allocations: 194.8 kB / 410.3 MB, free: 1.047 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.5612, allocations: 0 / 410.3 MB, free: 1.047 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 9.806e-05/0.5613, allocations: 32.03 kB / 410.4 MB, free: 1.016 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005645/0.5619, allocations: 51.77 kB / 410.4 MB, free: 0.9688 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002287/0.5642, allocations: 0.9191 MB / 411.3 MB, free: 0 / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006009/0.5648, allocations: 0.8388 MB / 412.2 MB, free: 15.14 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003454/0.5652, allocations: 147.3 kB / 412.3 MB, free: 14.99 MB / 346.7 MB Notification: Performance of SimCode: time 1.453e-06/0.5652, allocations: 0 / 412.3 MB, free: 14.99 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_Test70CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test70CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test70CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test70FMU.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_Test70.so OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test70CalcHelperMain.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_Test70_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test70.fmu' failed make: *** [ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test70.fmu] Error 1