Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test13,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test13",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.122/2.122, allocations: 209.3 MB / 221.9 MB, free: 1.934 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.383e-05/4.388e-05, allocations: 8 kB / 273.1 MB, free: 0.6367 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.103/0.103, allocations: 48.71 MB / 321.9 MB, free: 15.83 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4077/0.5108, allocations: 76.53 MB / 398.4 MB, free: 13.28 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002871/0.5112, allocations: 74.67 kB / 398.5 MB, free: 13.21 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01458/0.5258, allocations: 3.19 MB / 401.6 MB, free: 10.03 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.5258, allocations: 0 / 401.6 MB, free: 10.03 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.735e-05/0.5259, allocations: 8 kB / 401.7 MB, free: 10.02 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0006815/0.5266, allocations: 465.6 kB / 402.1 MB, free: 9.512 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.832e-05/0.5266, allocations: 8.031 kB / 402.1 MB, free: 9.504 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.685e-05/0.5267, allocations: 38.56 kB / 402.2 MB, free: 9.457 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.574e-05/0.5268, allocations: 11.84 kB / 402.2 MB, free: 9.445 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000363/0.5271, allocations: 212.4 kB / 402.4 MB, free: 9.199 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.915e-05/0.5272, allocations: 8 kB / 402.4 MB, free: 9.191 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.425e-05/0.5272, allocations: 8 kB / 402.4 MB, free: 9.184 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001906/0.5274, allocations: 65.62 kB / 402.5 MB, free: 9.113 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.011e-05/0.5275, allocations: 0 / 402.5 MB, free: 9.113 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.559e-05/0.5275, allocations: 0 / 402.5 MB, free: 9.113 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.188e-06/0.5275, allocations: 4 kB / 402.5 MB, free: 9.109 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001201/0.5276, allocations: 31.98 kB / 402.5 MB, free: 9.078 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00071/0.5284, allocations: 352.6 kB / 402.8 MB, free: 8.684 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003087/0.5287, allocations: 66.61 kB / 402.9 MB, free: 8.609 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.79e-05/0.5288, allocations: 24.98 kB / 402.9 MB, free: 8.582 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.491e-05/0.5288, allocations: 0 / 402.9 MB, free: 8.582 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001933/0.529, allocations: 79.38 kB / 403 MB, free: 8.492 MB / 330.7 MB Notification: Performance of pre-optimization done (n=7): time 2.174e-06/0.529, allocations: 0 / 403 MB, free: 8.492 MB / 330.7 MB Notification: Performance of matching and sorting (n=7): time 0.0003055/0.5293, allocations: 89.39 kB / 403.1 MB, free: 8.398 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.286e-05/0.5294, allocations: 55.39 kB / 403.1 MB, free: 8.332 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002085/0.5296, allocations: 144.9 kB / 403.3 MB, free: 8.188 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.334e-05/0.5297, allocations: 29.81 kB / 403.3 MB, free: 8.152 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.707e-05/0.5298, allocations: 174.4 kB / 403.5 MB, free: 7.98 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.566e-05/0.5298, allocations: 15.75 kB / 403.5 MB, free: 7.965 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.236e-05/0.5298, allocations: 4 kB / 403.5 MB, free: 7.961 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001241/0.53, allocations: 322.8 kB / 403.8 MB, free: 7.637 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.942e-05/0.5301, allocations: 24 kB / 403.8 MB, free: 7.613 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001114/0.5302, allocations: 45.7 kB / 403.9 MB, free: 7.562 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001233/0.5303, allocations: 54.23 kB / 403.9 MB, free: 7.504 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.5304, allocations: 0 / 403.9 MB, free: 7.504 MB / 330.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000337/0.5307, allocations: 147.3 kB / 404.1 MB, free: 7.348 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.753e-05/0.5308, allocations: 33.73 kB / 404.1 MB, free: 7.309 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.335e-06/0.5308, allocations: 8 kB / 404.1 MB, free: 7.301 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.534e-05/0.5308, allocations: 0 / 404.1 MB, free: 7.301 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001827/0.531, allocations: 19.94 kB / 404.1 MB, free: 7.281 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.129e-05/0.531, allocations: 4 kB / 404.1 MB, free: 7.277 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001082/0.5312, allocations: 11.84 kB / 404.2 MB, free: 7.266 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.59e-05/0.5312, allocations: 4 kB / 404.2 MB, free: 7.262 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: 3 ($whenCondition1,$PRE.t_new.nextTimeEvent,t_new.nextTimeEvent) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 9 * 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.936e-05/0.5313, allocations: 116.9 kB / 404.3 MB, free: 7.141 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.612e-05/0.5314, allocations: 11.89 kB / 404.3 MB, free: 7.129 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002973/0.5317, allocations: 106.3 kB / 404.4 MB, free: 7.02 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.311e-06/0.5317, allocations: 4 kB / 404.4 MB, free: 7.016 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.937e-06/0.5317, allocations: 3.953 kB / 404.4 MB, free: 7.012 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.5317, allocations: 192 / 404.4 MB, free: 7.012 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002319/0.532, allocations: 197.6 kB / 404.6 MB, free: 6.77 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.532, allocations: 3.938 kB / 404.6 MB, free: 6.766 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001437/0.5321, allocations: 12 kB / 404.6 MB, free: 6.754 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.505e-06/0.5322, allocations: 0 / 404.6 MB, free: 6.754 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.468e-05/0.5322, allocations: 3.938 kB / 404.6 MB, free: 6.75 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.669e-06/0.5322, allocations: 8 kB / 404.6 MB, free: 6.742 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.118e-06/0.5322, allocations: 3.984 kB / 404.6 MB, free: 6.738 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003484/0.5326, allocations: 144.9 kB / 404.8 MB, free: 6.578 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.448e-05/0.5327, allocations: 89.05 kB / 404.9 MB, free: 6.473 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.027e-05/0.5327, allocations: 0 / 404.9 MB, free: 6.473 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.745e-05/0.5328, allocations: 11.98 kB / 404.9 MB, free: 6.461 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.136e-05/0.5329, allocations: 4 kB / 404.9 MB, free: 6.457 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.942e-05/0.5329, allocations: 8.062 kB / 404.9 MB, free: 6.449 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001452/0.5331, allocations: 123.2 kB / 405 MB, free: 6.328 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.11e-07/0.5331, allocations: 0 / 405 MB, free: 6.328 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003519/0.5334, allocations: 39.89 kB / 405 MB, free: 6.289 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (err1.y) * 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 (8): * Single equations (assignments): 7 * 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.001442/0.5349, allocations: 0.8878 MB / 405.9 MB, free: 5.43 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003234/0.5353, allocations: 123.3 kB / 406 MB, free: 5.297 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/0.5353, allocations: 0 / 406 MB, free: 5.297 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 9.156e-05/0.5354, allocations: 24 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.0003517/0.5358, allocations: 23.8 kB / 406.1 MB, free: 5.25 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007955/0.5366, allocations: 255.5 kB / 406.3 MB, free: 4.953 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003218/0.5369, allocations: 0.7122 MB / 407.1 MB, free: 4.215 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.867e-05/0.537, allocations: 31.42 kB / 407.1 MB, free: 4.184 MB / 330.7 MB Notification: Performance of SimCode: time 1.142e-06/0.537, allocations: 4 kB / 407.1 MB, free: 4.18 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_Test13CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test13CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test13CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test13FMU.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_Test13.so OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test13CalcHelperMain.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_Test13_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test13.fmu' failed make: *** [ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test13.fmu] Error 1