Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test51,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test51",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.152/2.152, allocations: 209.3 MB / 221.9 MB, free: 1.934 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.161e-05/4.166e-05, allocations: 4 kB / 273.2 MB, free: 0.6211 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1109/0.111, allocations: 48.7 MB / 321.9 MB, free: 15.82 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5111/0.6222, allocations: 75.78 MB / 397.6 MB, free: 14.03 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003878/0.6227, allocations: 70.78 kB / 397.7 MB, free: 13.96 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02087/0.6436, allocations: 4.181 MB / 401.9 MB, free: 9.793 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.6436, allocations: 0 / 401.9 MB, free: 9.793 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.693e-05/0.6437, allocations: 4 kB / 401.9 MB, free: 9.789 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.0006017/0.6443, allocations: 423.8 kB / 402.3 MB, free: 9.324 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.431e-05/0.6444, allocations: 20.02 kB / 402.3 MB, free: 9.305 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.016e-05/0.6444, allocations: 30.56 kB / 402.4 MB, free: 9.266 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.1e-05/0.6445, allocations: 7.906 kB / 402.4 MB, free: 9.258 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003232/0.6448, allocations: 206.9 kB / 402.6 MB, free: 9.016 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.39e-05/0.6449, allocations: 0 / 402.6 MB, free: 9.016 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.491e-05/0.6449, allocations: 4 kB / 402.6 MB, free: 9.012 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001264/0.645, allocations: 41.69 kB / 402.6 MB, free: 8.965 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.331e-05/0.6451, allocations: 0 / 402.6 MB, free: 8.965 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.208e-05/0.6451, allocations: 0 / 402.6 MB, free: 8.965 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.749e-06/0.6451, allocations: 4 kB / 402.6 MB, free: 8.961 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.459e-05/0.6452, allocations: 23.92 kB / 402.6 MB, free: 8.938 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004946/0.6457, allocations: 304.7 kB / 402.9 MB, free: 8.59 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002457/0.646, allocations: 43.03 kB / 403 MB, free: 8.539 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.335e-05/0.646, allocations: 12.86 kB / 403 MB, free: 8.523 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.543e-05/0.6461, allocations: 3.938 kB / 403 MB, free: 8.52 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001533/0.6462, allocations: 67.42 kB / 403.1 MB, free: 8.441 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 2.024e-06/0.6462, allocations: 0 / 403.1 MB, free: 8.441 MB / 330.7 MB Notification: Performance of matching and sorting (n=5): time 0.000486/0.6467, allocations: 105.3 kB / 403.2 MB, free: 8.332 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.675e-05/0.6468, allocations: 51.41 kB / 403.2 MB, free: 8.27 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003374/0.6471, allocations: 190.5 kB / 403.4 MB, free: 8.07 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.41e-05/0.6472, allocations: 25.7 kB / 403.4 MB, free: 8.039 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001161/0.6473, allocations: 170.5 kB / 403.6 MB, free: 7.871 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.236e-05/0.6474, allocations: 15.73 kB / 403.6 MB, free: 7.855 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.03e-05/0.6474, allocations: 4 kB / 403.6 MB, free: 7.852 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001648/0.6476, allocations: 322.8 kB / 403.9 MB, free: 7.527 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.822e-05/0.6476, allocations: 23.94 kB / 404 MB, free: 7.504 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.248e-05/0.6477, allocations: 24 kB / 404 MB, free: 7.48 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001127/0.6478, allocations: 49.69 kB / 404 MB, free: 7.426 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.6479, allocations: 3.938 kB / 404 MB, free: 7.422 MB / 330.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002891/0.6482, allocations: 119.4 kB / 404.1 MB, free: 7.293 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.741e-05/0.6482, allocations: 37.64 kB / 404.2 MB, free: 7.25 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.58e-06/0.6482, allocations: 0 / 404.2 MB, free: 7.25 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.441e-05/0.6483, allocations: 0 / 404.2 MB, free: 7.25 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.649e-05/0.6484, allocations: 19.98 kB / 404.2 MB, free: 7.23 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.949e-06/0.6484, allocations: 3.953 kB / 404.2 MB, free: 7.227 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.329e-05/0.6485, allocations: 8.062 kB / 404.2 MB, free: 7.219 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.466e-05/0.6485, allocations: 4 kB / 404.2 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 9.015e-05/0.6486, allocations: 101 kB / 404.3 MB, free: 7.109 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.926e-05/0.6486, allocations: 11.91 kB / 404.3 MB, free: 7.098 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003112/0.649, allocations: 94.73 kB / 404.4 MB, free: 6.996 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.821e-06/0.649, allocations: 11.88 kB / 404.4 MB, free: 6.984 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.7e-06/0.649, allocations: 4.141 kB / 404.4 MB, free: 6.98 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.057e-06/0.649, allocations: 7.938 kB / 404.4 MB, free: 6.973 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000536/0.6496, allocations: 362.5 kB / 404.8 MB, free: 6.562 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.6496, allocations: 0 / 404.8 MB, free: 6.562 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.001e-05/0.6497, allocations: 8 kB / 404.8 MB, free: 6.555 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.527e-06/0.6497, allocations: 0 / 404.8 MB, free: 6.555 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.16e-05/0.6497, allocations: 0 / 404.8 MB, free: 6.555 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.622e-06/0.6497, allocations: 3.953 kB / 404.8 MB, free: 6.551 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.6497, allocations: 4 kB / 404.8 MB, free: 6.547 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002506/0.65, allocations: 179.4 kB / 405 MB, free: 6.355 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.581e-05/0.6501, allocations: 89.02 kB / 405.1 MB, free: 6.25 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.589e-05/0.6501, allocations: 7.984 kB / 405.1 MB, free: 6.242 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.606e-05/0.6502, allocations: 0 / 405.1 MB, free: 6.242 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.644e-05/0.6503, allocations: 7.953 kB / 405.1 MB, free: 6.234 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.414e-05/0.6503, allocations: 4 kB / 405.1 MB, free: 6.23 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002128/0.6505, allocations: 160.9 kB / 405.3 MB, free: 6.074 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.6506, allocations: 4 kB / 405.3 MB, free: 6.07 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003831/0.651, allocations: 31.94 kB / 405.3 MB, free: 6.039 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.001422/0.6524, allocations: 0.9548 MB / 406.2 MB, free: 5.117 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002538/0.6527, allocations: 115.4 kB / 406.4 MB, free: 4.992 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.6527, allocations: 0 / 406.4 MB, free: 4.992 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 6.988e-05/0.6528, allocations: 19.94 kB / 406.4 MB, free: 4.973 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000324/0.6531, allocations: 19.94 kB / 406.4 MB, free: 4.953 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000708/0.6538, allocations: 248.9 kB / 406.6 MB, free: 4.672 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003178/0.6542, allocations: 0.7082 MB / 407.3 MB, free: 3.938 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.424e-05/0.6543, allocations: 35.42 kB / 407.4 MB, free: 3.902 MB / 330.7 MB Notification: Performance of SimCode: time 6.81e-07/0.6543, allocations: 0 / 407.4 MB, free: 3.902 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_Test51CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test51CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test51CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test51FMU.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_Test51.so OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test51CalcHelperMain.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_Test51_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test51.fmu' failed make: *** [ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test51.fmu] Error 1