Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test24,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test24",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.068/2.068, allocations: 209.3 MB / 221.9 MB, free: 1.934 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.401e-05/4.429e-05, allocations: 8 kB / 273.1 MB, free: 0.6406 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1075/0.1076, allocations: 48.71 MB / 321.8 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4414/0.549, allocations: 75.74 MB / 397.6 MB, free: 14.18 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003431/0.5494, allocations: 67.97 kB / 397.6 MB, free: 14.11 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03575/0.5852, allocations: 3.953 MB / 401.6 MB, free: 10.16 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.222e-05/0.5853, allocations: 4 kB / 401.6 MB, free: 10.16 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.246e-05/0.5854, allocations: 0 / 401.6 MB, free: 10.16 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.001313/0.5868, allocations: 427.8 kB / 402 MB, free: 9.691 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.448e-05/0.5869, allocations: 12.03 kB / 402 MB, free: 9.68 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.139e-05/0.587, allocations: 34.56 kB / 402.1 MB, free: 9.637 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.714e-05/0.5871, allocations: 7.906 kB / 402.1 MB, free: 9.629 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000482/0.5876, allocations: 195.5 kB / 402.3 MB, free: 9.395 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.257e-05/0.5876, allocations: 0 / 402.3 MB, free: 9.395 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.974e-05/0.5877, allocations: 4 kB / 402.3 MB, free: 9.391 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001995/0.5879, allocations: 53.61 kB / 402.3 MB, free: 9.332 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.88e-05/0.5879, allocations: 0 / 402.3 MB, free: 9.332 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.794e-05/0.588, allocations: 4 kB / 402.3 MB, free: 9.328 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.077e-05/0.588, allocations: 4 kB / 402.3 MB, free: 9.324 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.86e-05/0.5881, allocations: 11.94 kB / 402.3 MB, free: 9.312 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000756/0.5889, allocations: 292.9 kB / 402.6 MB, free: 8.977 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003456/0.5893, allocations: 50.95 kB / 402.7 MB, free: 8.918 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.616e-05/0.5894, allocations: 12.86 kB / 402.7 MB, free: 8.902 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.454e-05/0.5894, allocations: 8 kB / 402.7 MB, free: 8.895 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002571/0.5897, allocations: 55.48 kB / 402.8 MB, free: 8.828 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 4.568e-06/0.5897, allocations: 0 / 402.8 MB, free: 8.828 MB / 330.7 MB Notification: Performance of matching and sorting (n=5): time 0.000723/0.5904, allocations: 113.2 kB / 402.9 MB, free: 8.711 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.527e-05/0.5905, allocations: 59.41 kB / 402.9 MB, free: 8.641 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003725/0.5909, allocations: 169.5 kB / 403.1 MB, free: 8.465 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.042e-05/0.591, allocations: 25.7 kB / 403.1 MB, free: 8.434 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001299/0.5911, allocations: 170.5 kB / 403.3 MB, free: 8.266 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.467e-05/0.5912, allocations: 7.812 kB / 403.3 MB, free: 8.258 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.901e-05/0.5912, allocations: 8 kB / 403.3 MB, free: 8.25 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002123/0.5914, allocations: 318.8 kB / 403.6 MB, free: 7.93 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001292/0.5916, allocations: 20 kB / 403.6 MB, free: 7.91 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001097/0.5917, allocations: 27.94 kB / 403.7 MB, free: 7.883 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001818/0.5919, allocations: 49.69 kB / 403.7 MB, free: 7.828 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.5919, allocations: 0 / 403.7 MB, free: 7.828 MB / 330.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004717/0.5924, allocations: 127.3 kB / 403.8 MB, free: 7.691 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.678e-05/0.5925, allocations: 37.7 kB / 403.9 MB, free: 7.648 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.919e-06/0.5925, allocations: 0 / 403.9 MB, free: 7.648 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.359e-05/0.5926, allocations: 0 / 403.9 MB, free: 7.648 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001248/0.5927, allocations: 8 kB / 403.9 MB, free: 7.641 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.49e-05/0.5928, allocations: 7.938 kB / 403.9 MB, free: 7.633 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001325/0.5929, allocations: 7.938 kB / 403.9 MB, free: 7.625 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.801e-05/0.593, allocations: 4.094 kB / 403.9 MB, free: 7.621 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 0.0001429/0.5931, allocations: 116.9 kB / 404 MB, free: 7.5 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.504e-05/0.5932, allocations: 7.906 kB / 404 MB, free: 7.492 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000433/0.5936, allocations: 85.89 kB / 404.1 MB, free: 7.406 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.382e-05/0.5937, allocations: 4 kB / 404.1 MB, free: 7.402 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.562e-06/0.5937, allocations: 0 / 404.1 MB, free: 7.402 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.536e-06/0.5937, allocations: 7.953 kB / 404.1 MB, free: 7.395 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008585/0.5946, allocations: 354.5 kB / 404.5 MB, free: 6.992 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-05/0.5947, allocations: 0 / 404.5 MB, free: 6.992 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002168/0.5949, allocations: 8 kB / 404.5 MB, free: 6.984 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.171e-05/0.595, allocations: 4 kB / 404.5 MB, free: 6.98 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.13e-05/0.5951, allocations: 4 kB / 404.5 MB, free: 6.977 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.233e-05/0.5952, allocations: 3.953 kB / 404.5 MB, free: 6.973 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.267e-05/0.5953, allocations: 3.984 kB / 404.5 MB, free: 6.969 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001052/0.5964, allocations: 175.3 kB / 404.6 MB, free: 6.781 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002791/0.5967, allocations: 89.02 kB / 404.7 MB, free: 6.676 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001303/0.5969, allocations: 3.984 kB / 404.7 MB, free: 6.672 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002742/0.5972, allocations: 8 kB / 404.7 MB, free: 6.664 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.71e-05/0.5973, allocations: 3.953 kB / 404.7 MB, free: 6.66 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.642e-05/0.5974, allocations: 8 kB / 404.8 MB, free: 6.652 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003022/0.5977, allocations: 137.9 kB / 404.9 MB, free: 6.52 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.91e-07/0.5977, allocations: 0 / 404.9 MB, free: 6.52 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.00132/0.599, allocations: 35.94 kB / 404.9 MB, free: 6.484 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.001749/0.6008, allocations: 0.9599 MB / 405.9 MB, free: 5.555 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002988/0.6012, allocations: 107.4 kB / 406 MB, free: 5.438 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.496e-06/0.6012, allocations: 0 / 406 MB, free: 5.438 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 7.432e-05/0.6013, allocations: 19.94 kB / 406 MB, free: 5.418 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00037/0.6017, allocations: 23.94 kB / 406 MB, free: 5.395 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007257/0.6024, allocations: 237.2 kB / 406.3 MB, free: 5.121 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003487/0.6028, allocations: 0.6965 MB / 407 MB, free: 4.398 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.733e-05/0.6029, allocations: 31.42 kB / 407 MB, free: 4.367 MB / 330.7 MB Notification: Performance of SimCode: time 1.363e-06/0.6029, allocations: 0 / 407 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_Test24CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test24CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test24CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test24FMU.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_Test24.so OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test24CalcHelperMain.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_Test24_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test24.fmu' failed make: *** [ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test24.fmu] Error 1