Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test19,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test19",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.103/2.103, allocations: 209.3 MB / 221.9 MB, free: 1.926 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.873e-05/4.892e-05, allocations: 4 kB / 273.1 MB, free: 0.6367 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.113/0.1131, allocations: 48.7 MB / 321.8 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4365/0.5496, allocations: 75.74 MB / 397.6 MB, free: 14.07 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002709/0.55, allocations: 71.09 kB / 397.7 MB, free: 14.01 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01782/0.5678, allocations: 3.91 MB / 401.6 MB, free: 10.1 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.5679, allocations: 0 / 401.6 MB, free: 10.1 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.391e-05/0.5679, allocations: 0 / 401.6 MB, free: 10.1 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.0006062/0.5685, allocations: 416 kB / 402 MB, free: 9.645 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.548e-05/0.5686, allocations: 8.031 kB / 402 MB, free: 9.637 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.757e-05/0.5686, allocations: 38.5 kB / 402 MB, free: 9.59 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.868e-05/0.5687, allocations: 7.906 kB / 402 MB, free: 9.582 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003219/0.569, allocations: 190.9 kB / 402.2 MB, free: 9.355 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.541e-05/0.5691, allocations: 4 kB / 402.2 MB, free: 9.352 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.195e-05/0.5691, allocations: 7.906 kB / 402.2 MB, free: 9.344 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001359/0.5693, allocations: 45.69 kB / 402.3 MB, free: 9.293 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.34e-05/0.5693, allocations: 4 kB / 402.3 MB, free: 9.289 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.148e-05/0.5693, allocations: 0 / 402.3 MB, free: 9.289 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.18e-06/0.5693, allocations: 0 / 402.3 MB, free: 9.289 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.582e-05/0.5694, allocations: 19.94 kB / 402.3 MB, free: 9.27 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005127/0.5699, allocations: 300.8 kB / 402.6 MB, free: 8.926 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002554/0.5702, allocations: 39.03 kB / 402.6 MB, free: 8.879 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.639e-05/0.5703, allocations: 16.86 kB / 402.6 MB, free: 8.859 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.28e-05/0.5703, allocations: 4 kB / 402.6 MB, free: 8.855 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001553/0.5705, allocations: 55.44 kB / 402.7 MB, free: 8.789 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 2.514e-06/0.5705, allocations: 0 / 402.7 MB, free: 8.789 MB / 330.7 MB Notification: Performance of matching and sorting (n=5): time 0.0005034/0.571, allocations: 109.3 kB / 402.8 MB, free: 8.676 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.542e-05/0.5711, allocations: 59.41 kB / 402.9 MB, free: 8.605 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002332/0.5713, allocations: 152.9 kB / 403 MB, free: 8.449 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.528e-05/0.5714, allocations: 25.7 kB / 403 MB, free: 8.418 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.145e-05/0.5715, allocations: 170.5 kB / 403.2 MB, free: 8.25 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.984e-05/0.5715, allocations: 23.73 kB / 403.2 MB, free: 8.227 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.215e-06/0.5715, allocations: 0 / 403.2 MB, free: 8.227 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001267/0.5717, allocations: 314.8 kB / 403.5 MB, free: 7.91 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.582e-05/0.5717, allocations: 27.94 kB / 403.6 MB, free: 7.883 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.972e-05/0.5718, allocations: 23.94 kB / 403.6 MB, free: 7.859 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001086/0.5719, allocations: 53.69 kB / 403.6 MB, free: 7.801 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.572, allocations: 0 / 403.6 MB, free: 7.801 MB / 330.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002979/0.5723, allocations: 131.2 kB / 403.8 MB, free: 7.66 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.413e-05/0.5723, allocations: 33.7 kB / 403.8 MB, free: 7.621 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.803e-06/0.5723, allocations: 0 / 403.8 MB, free: 7.621 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.048e-05/0.5724, allocations: 3.953 kB / 403.8 MB, free: 7.617 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.757e-05/0.5725, allocations: 11.98 kB / 403.8 MB, free: 7.605 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.064e-05/0.5725, allocations: 4 kB / 403.8 MB, free: 7.602 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.035e-05/0.5726, allocations: 0 / 403.8 MB, free: 7.602 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.852e-05/0.5726, allocations: 4.062 kB / 403.8 MB, free: 7.598 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.003e-05/0.5727, allocations: 109 kB / 403.9 MB, free: 7.484 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.047e-05/0.5728, allocations: 11.91 kB / 403.9 MB, free: 7.473 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002867/0.5731, allocations: 97.69 kB / 404 MB, free: 7.375 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.948e-06/0.5731, allocations: 0 / 404 MB, free: 7.375 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.027e-05/0.5731, allocations: 7.953 kB / 404 MB, free: 7.367 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.5731, allocations: 0 / 404 MB, free: 7.367 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005184/0.5736, allocations: 342.6 kB / 404.4 MB, free: 6.977 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/0.5737, allocations: 0 / 404.4 MB, free: 6.977 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.144e-05/0.5737, allocations: 11.94 kB / 404.4 MB, free: 6.965 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.749e-06/0.5738, allocations: 0 / 404.4 MB, free: 6.965 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.775e-05/0.5738, allocations: 11.95 kB / 404.4 MB, free: 6.953 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.051e-06/0.5738, allocations: 4 kB / 404.4 MB, free: 6.949 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.959e-06/0.5738, allocations: 3.984 kB / 404.4 MB, free: 6.945 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002357/0.5741, allocations: 167.5 kB / 404.6 MB, free: 6.766 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.298e-05/0.5741, allocations: 85.02 kB / 404.7 MB, free: 6.664 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.351e-05/0.5742, allocations: 4.078 kB / 404.7 MB, free: 6.66 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001059/0.5743, allocations: 15.89 kB / 404.7 MB, free: 6.645 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.237e-05/0.5744, allocations: 0 / 404.7 MB, free: 6.645 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.51e-05/0.5744, allocations: 8 kB / 404.7 MB, free: 6.637 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001635/0.5746, allocations: 135 kB / 404.8 MB, free: 6.508 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.5746, allocations: 0 / 404.8 MB, free: 6.508 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003772/0.575, allocations: 31.94 kB / 404.8 MB, free: 6.477 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.001474/0.5765, allocations: 0.952 MB / 405.8 MB, free: 5.555 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002988/0.5768, allocations: 119.3 kB / 405.9 MB, free: 5.426 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.55e-06/0.5768, allocations: 4 kB / 405.9 MB, free: 5.422 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 6.934e-05/0.5769, allocations: 16 kB / 405.9 MB, free: 5.406 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003336/0.5772, allocations: 23.94 kB / 406 MB, free: 5.383 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007527/0.578, allocations: 225.2 kB / 406.2 MB, free: 5.121 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003256/0.5784, allocations: 0.6965 MB / 406.9 MB, free: 4.398 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.257e-05/0.5785, allocations: 31.42 kB / 406.9 MB, free: 4.367 MB / 330.7 MB Notification: Performance of SimCode: time 1.553e-06/0.5785, allocations: 0 / 406.9 MB, free: 4.367 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_Test19CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test19CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test19CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test19FMU.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_Test19.so OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test19CalcHelperMain.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_Test19_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test19.fmu' failed make: *** [ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test19.fmu] Error 1