Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test14,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test14",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.192/2.192, allocations: 209.3 MB / 221.9 MB, free: 1.934 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.822e-05/4.835e-05, allocations: 4 kB / 273.1 MB, free: 0.6328 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1347/0.1348, allocations: 48.7 MB / 321.8 MB, free: 15.83 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4323/0.5672, allocations: 77.46 MB / 399.3 MB, free: 12.46 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002784/0.5675, allocations: 67.97 kB / 399.4 MB, free: 12.39 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01921/0.5867, allocations: 3.949 MB / 403.3 MB, free: 8.449 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.522e-06/0.5868, allocations: 0 / 403.3 MB, free: 8.449 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.03e-05/0.5868, allocations: 4 kB / 403.3 MB, free: 8.445 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.001127/0.588, allocations: 0.546 MB / 403.9 MB, free: 7.836 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.417e-05/0.588, allocations: 12.03 kB / 403.9 MB, free: 7.824 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.524e-05/0.5881, allocations: 34.56 kB / 403.9 MB, free: 7.781 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.732e-05/0.5882, allocations: 11.91 kB / 403.9 MB, free: 7.77 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003902/0.5886, allocations: 231.5 kB / 404.2 MB, free: 7.5 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.783e-05/0.5886, allocations: 4 kB / 404.2 MB, free: 7.496 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.504e-05/0.5887, allocations: 8 kB / 404.2 MB, free: 7.488 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002713/0.589, allocations: 93.58 kB / 404.3 MB, free: 7.391 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.292e-05/0.589, allocations: 4 kB / 404.3 MB, free: 7.387 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.098e-05/0.589, allocations: 0 / 404.3 MB, free: 7.387 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.696e-06/0.589, allocations: 4 kB / 404.3 MB, free: 7.383 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002147/0.5893, allocations: 40 kB / 404.3 MB, free: 7.344 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001099/0.5904, allocations: 420.6 kB / 404.7 MB, free: 6.883 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003982/0.5908, allocations: 90.62 kB / 404.8 MB, free: 6.785 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001227/0.5909, allocations: 40.86 kB / 404.8 MB, free: 6.742 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.622e-05/0.591, allocations: 3.984 kB / 404.8 MB, free: 6.738 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002798/0.5913, allocations: 103.4 kB / 404.9 MB, free: 6.625 MB / 330.7 MB Notification: Performance of pre-optimization done (n=10): time 2.996e-06/0.5913, allocations: 7.938 kB / 405 MB, free: 6.617 MB / 330.7 MB Notification: Performance of matching and sorting (n=10): time 0.0004199/0.5917, allocations: 125.3 kB / 405.1 MB, free: 6.488 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.653e-05/0.5918, allocations: 51.41 kB / 405.1 MB, free: 6.426 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002879/0.5921, allocations: 178.3 kB / 405.3 MB, free: 6.246 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.09e-05/0.5921, allocations: 41.69 kB / 405.3 MB, free: 6.199 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001044/0.5923, allocations: 174.4 kB / 405.5 MB, free: 6.027 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.845e-05/0.5923, allocations: 23.7 kB / 405.5 MB, free: 6.004 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.717e-05/0.5923, allocations: 4 kB / 405.5 MB, free: 6 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001285/0.5925, allocations: 311.2 kB / 405.8 MB, free: 5.688 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001475/0.5926, allocations: 44 kB / 405.9 MB, free: 5.645 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000162/0.5928, allocations: 57.7 kB / 405.9 MB, free: 5.582 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001838/0.593, allocations: 107.3 kB / 406 MB, free: 5.465 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.593, allocations: 0 / 406 MB, free: 5.465 MB / 330.7 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0005136/0.5936, allocations: 205 kB / 406.2 MB, free: 5.246 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.005e-05/0.5936, allocations: 67.39 kB / 406.3 MB, free: 5.168 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-06/0.5937, allocations: 0 / 406.3 MB, free: 5.168 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.859e-05/0.5937, allocations: 0 / 406.3 MB, free: 5.168 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003243/0.594, allocations: 35.92 kB / 406.3 MB, free: 5.133 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.173e-05/0.594, allocations: 8.031 kB / 406.4 MB, free: 5.125 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003353/0.5944, allocations: 39.81 kB / 406.4 MB, free: 5.086 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.819e-05/0.5944, allocations: 4 kB / 406.4 MB, free: 5.082 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,$PRE.trapezoid1.T_start,trapezoid1.T_start,$PRE.trapezoid1.count,trapezoid1.count,$PRE.t_new.nextTimeEvent,t_new.nextTimeEvent) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 2 * 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.0001229/0.5946, allocations: 112.9 kB / 406.5 MB, free: 4.965 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.302e-05/0.5946, allocations: 15.81 kB / 406.5 MB, free: 4.949 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004104/0.595, allocations: 131.1 kB / 406.7 MB, free: 4.816 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.013e-06/0.5951, allocations: 8 kB / 406.7 MB, free: 4.809 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.614e-06/0.5951, allocations: 3.953 kB / 406.7 MB, free: 4.805 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.564e-06/0.5951, allocations: 3.984 kB / 406.7 MB, free: 4.801 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002792/0.5954, allocations: 221.6 kB / 406.9 MB, free: 4.535 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.414e-06/0.5954, allocations: 0 / 406.9 MB, free: 4.535 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002859/0.5957, allocations: 31.92 kB / 406.9 MB, free: 4.504 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.155e-05/0.5957, allocations: 7.984 kB / 406.9 MB, free: 4.496 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.077e-05/0.5958, allocations: 4 kB / 406.9 MB, free: 4.492 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.836e-06/0.5958, allocations: 0 / 406.9 MB, free: 4.492 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.5958, allocations: 0 / 406.9 MB, free: 4.492 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005256/0.5963, allocations: 201.3 kB / 407.1 MB, free: 4.277 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.94e-05/0.5964, allocations: 88.95 kB / 407.2 MB, free: 4.172 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.599e-05/0.5965, allocations: 4 kB / 407.2 MB, free: 4.168 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003061/0.5968, allocations: 32.03 kB / 407.2 MB, free: 4.137 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001034/0.5969, allocations: 20.06 kB / 407.3 MB, free: 4.117 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.221e-05/0.5969, allocations: 11.94 kB / 407.3 MB, free: 4.105 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002149/0.5972, allocations: 145.2 kB / 407.4 MB, free: 3.965 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.594e-06/0.5972, allocations: 0 / 407.4 MB, free: 3.965 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004088/0.5976, allocations: 59.81 kB / 407.5 MB, free: 3.906 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (err1.y) * Number of discrete variables: 5 ($whenCondition2,$whenCondition1,trapezoid1.T_start,trapezoid1.count,t_new.nextTimeEvent) * Number of discrete states: 2 (trapezoid1.count,t_new.nextTimeEvent) * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.001736/0.5993, allocations: 0.9375 MB / 408.4 MB, free: 2.996 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005081/0.5999, allocations: 214.8 kB / 408.6 MB, free: 2.762 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.398e-06/0.5999, allocations: 0 / 408.6 MB, free: 2.762 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001563/0.6001, allocations: 43.92 kB / 408.7 MB, free: 2.719 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004233/0.6005, allocations: 36.11 kB / 408.7 MB, free: 2.68 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001021/0.6016, allocations: 303.1 kB / 409 MB, free: 2.34 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000337/0.6019, allocations: 0.7158 MB / 409.7 MB, free: 1.598 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001459/0.6021, allocations: 43.42 kB / 409.8 MB, free: 1.555 MB / 330.7 MB Notification: Performance of SimCode: time 8.21e-07/0.6021, allocations: 0 / 409.8 MB, free: 1.555 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_Test14CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test14CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test14CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test14FMU.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_Test14.so OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test14CalcHelperMain.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_Test14_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test14.fmu' failed make: *** [ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test14.fmu] Error 1