Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test35,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test35",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.106/2.106, allocations: 209.3 MB / 221.9 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.207e-05/4.198e-05, allocations: 4 kB / 273.2 MB, free: 0.6367 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1167/0.1168, allocations: 48.71 MB / 321.9 MB, free: 15.83 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4773/0.5941, allocations: 75.78 MB / 397.6 MB, free: 14.04 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002835/0.5945, allocations: 74.67 kB / 397.7 MB, free: 13.96 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01885/0.6133, allocations: 4.211 MB / 401.9 MB, free: 9.766 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.6134, allocations: 0 / 401.9 MB, free: 9.766 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.857e-05/0.6134, allocations: 4 kB / 401.9 MB, free: 9.762 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.0005945/0.614, allocations: 427.9 kB / 402.3 MB, free: 9.293 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.972e-05/0.6141, allocations: 12.03 kB / 402.4 MB, free: 9.281 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.536e-05/0.6142, allocations: 34.56 kB / 402.4 MB, free: 9.238 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.746e-05/0.6142, allocations: 7.906 kB / 402.4 MB, free: 9.23 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003247/0.6146, allocations: 206.8 kB / 402.6 MB, free: 8.988 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.588e-06/0.6146, allocations: 3.938 kB / 402.6 MB, free: 8.984 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.888e-05/0.6146, allocations: 4 kB / 402.6 MB, free: 8.98 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000127/0.6148, allocations: 41.69 kB / 402.6 MB, free: 8.934 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.492e-05/0.6148, allocations: 7.984 kB / 402.7 MB, free: 8.926 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.596e-05/0.6148, allocations: 7.984 kB / 402.7 MB, free: 8.918 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.4e-06/0.6148, allocations: 0 / 402.7 MB, free: 8.918 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.547e-05/0.6149, allocations: 12 kB / 402.7 MB, free: 8.906 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004932/0.6154, allocations: 304.7 kB / 403 MB, free: 8.559 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002665/0.6157, allocations: 46.97 kB / 403 MB, free: 8.504 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.532e-05/0.6158, allocations: 16.86 kB / 403 MB, free: 8.484 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.222e-05/0.6158, allocations: 0 / 403 MB, free: 8.484 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001467/0.6159, allocations: 59.48 kB / 403.1 MB, free: 8.414 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 2.354e-06/0.616, allocations: 0 / 403.1 MB, free: 8.414 MB / 330.7 MB Notification: Performance of matching and sorting (n=5): time 0.0004888/0.6165, allocations: 109.3 kB / 403.2 MB, free: 8.301 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.308e-05/0.6165, allocations: 55.41 kB / 403.2 MB, free: 8.234 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002985/0.6168, allocations: 186.5 kB / 403.4 MB, free: 8.039 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.655e-05/0.6169, allocations: 25.7 kB / 403.5 MB, free: 8.008 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.602e-05/0.617, allocations: 178.5 kB / 403.6 MB, free: 7.832 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.961e-05/0.617, allocations: 15.73 kB / 403.6 MB, free: 7.816 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.509e-05/0.617, allocations: 8 kB / 403.7 MB, free: 7.809 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001205/0.6172, allocations: 318.8 kB / 404 MB, free: 7.488 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.753e-05/0.6173, allocations: 23.98 kB / 404 MB, free: 7.465 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.098e-05/0.6173, allocations: 24 kB / 404 MB, free: 7.441 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001091/0.6175, allocations: 49.69 kB / 404.1 MB, free: 7.387 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-06/0.6175, allocations: 3.938 kB / 404.1 MB, free: 7.383 MB / 330.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002804/0.6178, allocations: 119.4 kB / 404.2 MB, free: 7.254 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5e-05/0.6178, allocations: 41.78 kB / 404.2 MB, free: 7.207 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.141e-06/0.6179, allocations: 3.938 kB / 404.2 MB, free: 7.203 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.914e-05/0.6179, allocations: 0 / 404.2 MB, free: 7.203 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.798e-05/0.618, allocations: 8 kB / 404.2 MB, free: 7.195 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.142e-05/0.618, allocations: 3.953 kB / 404.2 MB, free: 7.191 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.272e-05/0.6181, allocations: 4 kB / 404.2 MB, free: 7.188 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.742e-05/0.6181, allocations: 4 kB / 404.2 MB, free: 7.184 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.445e-05/0.6182, allocations: 112.9 kB / 404.4 MB, free: 7.066 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.228e-05/0.6183, allocations: 15.91 kB / 404.4 MB, free: 7.051 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002886/0.6186, allocations: 86.81 kB / 404.5 MB, free: 6.957 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.612e-06/0.6186, allocations: 4 kB / 404.5 MB, free: 6.953 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.519e-06/0.6186, allocations: 128 / 404.5 MB, free: 6.953 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.073e-06/0.6186, allocations: 3.953 kB / 404.5 MB, free: 6.949 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00052/0.6192, allocations: 370.4 kB / 404.8 MB, free: 6.531 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.594e-06/0.6192, allocations: 0 / 404.8 MB, free: 6.531 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.508e-05/0.6193, allocations: 8 kB / 404.8 MB, free: 6.523 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.011e-06/0.6193, allocations: 4 kB / 404.8 MB, free: 6.52 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.383e-05/0.6193, allocations: 3.984 kB / 404.8 MB, free: 6.516 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.949e-06/0.6193, allocations: 3.953 kB / 404.8 MB, free: 6.512 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.6193, allocations: 0 / 404.8 MB, free: 6.512 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000261/0.6196, allocations: 171.5 kB / 405 MB, free: 6.328 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.146e-05/0.6197, allocations: 93 kB / 405.1 MB, free: 6.219 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.335e-05/0.6198, allocations: 4 kB / 405.1 MB, free: 6.215 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001029/0.6199, allocations: 0 / 405.1 MB, free: 6.215 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.104e-05/0.6199, allocations: 15.89 kB / 405.1 MB, free: 6.199 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.582e-05/0.62, allocations: 7.984 kB / 405.1 MB, free: 6.191 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002156/0.6202, allocations: 156.9 kB / 405.3 MB, free: 6.039 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.6202, allocations: 0 / 405.3 MB, free: 6.039 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004076/0.6206, allocations: 39.88 kB / 405.3 MB, free: 6 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.001465/0.6221, allocations: 0.9478 MB / 406.3 MB, free: 5.09 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.000288/0.6224, allocations: 115.3 kB / 406.4 MB, free: 4.965 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.6224, allocations: 4 kB / 406.4 MB, free: 4.961 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 6.82e-05/0.6225, allocations: 16 kB / 406.4 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.0003439/0.6229, allocations: 24.06 kB / 406.4 MB, free: 4.922 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000796/0.6237, allocations: 257.3 kB / 406.7 MB, free: 4.633 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000344/0.624, allocations: 0.7043 MB / 407.4 MB, free: 3.902 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.641e-05/0.6242, allocations: 35.42 kB / 407.4 MB, free: 3.867 MB / 330.7 MB Notification: Performance of SimCode: time 9.12e-07/0.6242, allocations: 0 / 407.4 MB, free: 3.867 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_Test35CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test35CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test35CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test35FMU.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_Test35.so OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test35CalcHelperMain.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_Test35_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test35.fmu' failed make: *** [ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test35.fmu] Error 1