Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test38,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test38",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.964/1.964, allocations: 209.3 MB / 221.9 MB, free: 1.941 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.295e-05/4.306e-05, allocations: 8 kB / 273.1 MB, free: 0.6445 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1056/0.1057, allocations: 48.7 MB / 321.8 MB, free: 15.85 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4608/0.5665, allocations: 75.61 MB / 397.4 MB, free: 14.34 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003281/0.5669, allocations: 75.94 kB / 397.5 MB, free: 14.27 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02255/0.5895, allocations: 3.816 MB / 401.3 MB, free: 10.46 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.535e-06/0.5895, allocations: 4 kB / 401.3 MB, free: 10.46 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.031e-05/0.5896, allocations: 4 kB / 401.3 MB, free: 10.45 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0006778/0.5903, allocations: 404 kB / 401.7 MB, free: 10.01 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.411e-05/0.5903, allocations: 12.03 kB / 401.7 MB, free: 9.996 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.978e-05/0.5904, allocations: 30.56 kB / 401.8 MB, free: 9.957 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.799e-05/0.5905, allocations: 4 kB / 401.8 MB, free: 9.953 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003913/0.5909, allocations: 206.8 kB / 402 MB, free: 9.711 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.355e-05/0.5909, allocations: 0 / 402 MB, free: 9.711 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.588e-05/0.591, allocations: 4 kB / 402 MB, free: 9.707 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001536/0.5911, allocations: 45.69 kB / 402 MB, free: 9.656 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.004e-05/0.5912, allocations: 0 / 402 MB, free: 9.656 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.314e-05/0.5912, allocations: 0 / 402 MB, free: 9.656 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.012e-06/0.5912, allocations: 3.938 kB / 402 MB, free: 9.652 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.093e-05/0.5913, allocations: 15.92 kB / 402 MB, free: 9.637 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000323/0.5917, allocations: 185.6 kB / 402.2 MB, free: 9.406 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001136/0.5918, allocations: 30.52 kB / 402.3 MB, free: 9.367 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.5e-05/0.5919, allocations: 20.91 kB / 402.3 MB, free: 9.344 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.952e-05/0.5919, allocations: 0 / 402.3 MB, free: 9.344 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001866/0.5921, allocations: 55.84 kB / 402.3 MB, free: 9.277 MB / 330.7 MB Notification: Performance of pre-optimization done (n=3): time 2.795e-06/0.5921, allocations: 0 / 402.3 MB, free: 9.277 MB / 330.7 MB Notification: Performance of matching and sorting (n=3): time 0.0002904/0.5925, allocations: 57.58 kB / 402.4 MB, free: 9.215 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.233e-05/0.5925, allocations: 59.34 kB / 402.4 MB, free: 9.145 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003266/0.5929, allocations: 156.2 kB / 402.6 MB, free: 8.984 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.153e-05/0.5929, allocations: 29.7 kB / 402.6 MB, free: 8.949 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001107/0.5931, allocations: 162.6 kB / 402.8 MB, free: 8.789 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.228e-05/0.5931, allocations: 3.906 kB / 402.8 MB, free: 8.785 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.419e-05/0.5931, allocations: 4 kB / 402.8 MB, free: 8.781 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001841/0.5933, allocations: 314.8 kB / 403.1 MB, free: 8.465 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.803e-05/0.5934, allocations: 23.98 kB / 403.1 MB, free: 8.441 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.341e-05/0.5935, allocations: 12 kB / 403.1 MB, free: 8.43 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000133/0.5937, allocations: 49.69 kB / 403.2 MB, free: 8.375 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.542e-06/0.5937, allocations: 0 / 403.2 MB, free: 8.375 MB / 330.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0003548/0.5941, allocations: 115.3 kB / 403.3 MB, free: 8.25 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.857e-05/0.5942, allocations: 33.69 kB / 403.3 MB, free: 8.211 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/0.5942, allocations: 0 / 403.3 MB, free: 8.211 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.799e-05/0.5942, allocations: 0 / 403.3 MB, free: 8.211 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001177/0.5944, allocations: 11.94 kB / 403.3 MB, free: 8.199 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.325e-06/0.5944, allocations: 0 / 403.3 MB, free: 8.199 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001188/0.5945, allocations: 7.938 kB / 403.4 MB, free: 8.191 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.805e-05/0.5945, allocations: 0 / 403.4 MB, free: 8.191 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 (5): * Single equations (assignments): 4 * 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.0001171/0.5947, allocations: 112.9 kB / 403.5 MB, free: 8.074 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.817e-05/0.5947, allocations: 11.91 kB / 403.5 MB, free: 8.062 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002865/0.595, allocations: 73.61 kB / 403.5 MB, free: 7.984 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.426e-06/0.5951, allocations: 3.984 kB / 403.5 MB, free: 7.98 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/0.5951, allocations: 0 / 403.5 MB, free: 7.98 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.568e-06/0.5951, allocations: 0 / 403.5 MB, free: 7.98 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002655/0.5954, allocations: 185.6 kB / 403.7 MB, free: 7.75 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.5954, allocations: 0 / 403.7 MB, free: 7.75 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.47e-05/0.5955, allocations: 7.938 kB / 403.7 MB, free: 7.742 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.32e-06/0.5955, allocations: 3.938 kB / 403.7 MB, free: 7.738 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.579e-05/0.5955, allocations: 4 kB / 403.7 MB, free: 7.734 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.866e-06/0.5955, allocations: 4 kB / 403.7 MB, free: 7.73 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.5955, allocations: 0 / 403.7 MB, free: 7.73 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002452/0.5958, allocations: 92.97 kB / 403.8 MB, free: 7.621 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001002/0.5959, allocations: 85.02 kB / 403.9 MB, free: 7.52 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.712e-05/0.596, allocations: 0 / 403.9 MB, free: 7.52 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.564e-05/0.5961, allocations: 4.125 kB / 403.9 MB, free: 7.516 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.85e-05/0.5962, allocations: 11.98 kB / 403.9 MB, free: 7.504 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.683e-05/0.5962, allocations: 4 kB / 403.9 MB, free: 7.5 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002166/0.5964, allocations: 131 kB / 404.1 MB, free: 7.375 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.41e-07/0.5964, allocations: 0 / 404.1 MB, free: 7.375 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005314/0.597, allocations: 31.98 kB / 404.1 MB, free: 7.344 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 (4): * Single equations (assignments): 3 * 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.001754/0.5988, allocations: 0.8296 MB / 404.9 MB, free: 6.535 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003161/0.5991, allocations: 95.34 kB / 405 MB, free: 6.43 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.713e-06/0.5991, allocations: 0 / 405 MB, free: 6.43 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 7.695e-05/0.5992, allocations: 23.92 kB / 405 MB, free: 6.406 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003774/0.5996, allocations: 15.98 kB / 405.1 MB, free: 6.391 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000864/0.6005, allocations: 201.6 kB / 405.3 MB, free: 6.148 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004251/0.6009, allocations: 0.7006 MB / 406 MB, free: 5.422 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001009/0.6011, allocations: 27.42 kB / 406 MB, free: 5.395 MB / 330.7 MB Notification: Performance of SimCode: time 1.292e-06/0.6011, allocations: 0 / 406 MB, free: 5.395 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_Test38CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test38CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test38CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test38FMU.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_Test38.so OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test38CalcHelperMain.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_Test38_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test38.fmu' failed make: *** [ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test38.fmu] Error 1