Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test52,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test52",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.127/2.127, allocations: 209.3 MB / 221.9 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.369e-05/4.385e-05, allocations: 8 kB / 273.1 MB, free: 0.6445 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1179/0.1179, allocations: 48.71 MB / 321.8 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6059/0.7239, allocations: 75.77 MB / 397.6 MB, free: 14.17 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003931/0.7244, allocations: 83.09 kB / 397.7 MB, free: 14.09 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02913/0.7536, allocations: 4.189 MB / 401.9 MB, free: 9.914 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.116e-06/0.7537, allocations: 0 / 401.9 MB, free: 9.914 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.802e-05/0.7537, allocations: 0 / 401.9 MB, free: 9.914 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.000807/0.7545, allocations: 427.9 kB / 402.3 MB, free: 9.445 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.726e-05/0.7546, allocations: 16.02 kB / 402.3 MB, free: 9.43 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.181e-05/0.7547, allocations: 30.56 kB / 402.3 MB, free: 9.391 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.384e-05/0.7548, allocations: 11.91 kB / 402.4 MB, free: 9.379 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004339/0.7553, allocations: 206.8 kB / 402.6 MB, free: 9.137 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.732e-05/0.7553, allocations: 0 / 402.6 MB, free: 9.137 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.246e-05/0.7554, allocations: 8 kB / 402.6 MB, free: 9.129 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001697/0.7556, allocations: 41.69 kB / 402.6 MB, free: 9.082 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.538e-05/0.7556, allocations: 0 / 402.6 MB, free: 9.082 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.535e-05/0.7556, allocations: 0 / 402.6 MB, free: 9.082 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.762e-06/0.7556, allocations: 0 / 402.6 MB, free: 9.082 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001011/0.7558, allocations: 19.98 kB / 402.6 MB, free: 9.062 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006861/0.7565, allocations: 304.7 kB / 402.9 MB, free: 8.715 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003632/0.7569, allocations: 50.97 kB / 403 MB, free: 8.656 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.629e-05/0.757, allocations: 8.859 kB / 403 MB, free: 8.645 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.928e-05/0.757, allocations: 0 / 403 MB, free: 8.645 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002016/0.7572, allocations: 59.48 kB / 403 MB, free: 8.574 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 3.397e-06/0.7572, allocations: 0 / 403 MB, free: 8.574 MB / 330.7 MB Notification: Performance of matching and sorting (n=5): time 0.0007065/0.758, allocations: 117.3 kB / 403.2 MB, free: 8.453 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.672e-05/0.758, allocations: 51.41 kB / 403.2 MB, free: 8.391 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004562/0.7585, allocations: 186.5 kB / 403.4 MB, free: 8.195 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.769e-05/0.7586, allocations: 29.7 kB / 403.4 MB, free: 8.16 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001266/0.7587, allocations: 170.5 kB / 403.6 MB, free: 7.992 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.039e-05/0.7588, allocations: 23.73 kB / 403.6 MB, free: 7.969 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.104e-05/0.7588, allocations: 0 / 403.6 MB, free: 7.969 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001705/0.759, allocations: 314.8 kB / 403.9 MB, free: 7.652 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001069/0.7591, allocations: 20 kB / 403.9 MB, free: 7.633 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001061/0.7593, allocations: 31.94 kB / 404 MB, free: 7.602 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001615/0.7594, allocations: 53.72 kB / 404 MB, free: 7.543 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.7595, allocations: 7.938 kB / 404 MB, free: 7.535 MB / 330.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004465/0.7599, allocations: 119.4 kB / 404.1 MB, free: 7.406 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.614e-05/0.76, allocations: 33.7 kB / 404.2 MB, free: 7.367 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.815e-06/0.76, allocations: 0 / 404.2 MB, free: 7.367 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.372e-05/0.7601, allocations: 3.984 kB / 404.2 MB, free: 7.363 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001356/0.7602, allocations: 11.94 kB / 404.2 MB, free: 7.352 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.411e-05/0.7603, allocations: 3.953 kB / 404.2 MB, free: 7.348 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000123/0.7604, allocations: 8 kB / 404.2 MB, free: 7.34 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.787e-05/0.7605, allocations: 8 kB / 404.2 MB, free: 7.332 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.0001235/0.7606, allocations: 105 kB / 404.3 MB, free: 7.223 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.748e-05/0.7607, allocations: 7.906 kB / 404.3 MB, free: 7.215 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007993/0.7615, allocations: 94.66 kB / 404.4 MB, free: 7.113 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.586e-06/0.7615, allocations: 0 / 404.4 MB, free: 7.113 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.142e-06/0.7615, allocations: 3.938 kB / 404.4 MB, free: 7.109 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.118e-06/0.7616, allocations: 4.094 kB / 404.4 MB, free: 7.105 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008861/0.7625, allocations: 370.5 kB / 404.8 MB, free: 6.688 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.799e-06/0.7625, allocations: 0 / 404.8 MB, free: 6.688 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001041/0.7626, allocations: 4.188 kB / 404.8 MB, free: 6.684 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.614e-06/0.7627, allocations: 0 / 404.8 MB, free: 6.684 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.41e-05/0.7627, allocations: 12 kB / 404.8 MB, free: 6.672 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.885e-06/0.7627, allocations: 3.953 kB / 404.8 MB, free: 6.668 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.7628, allocations: 0 / 404.8 MB, free: 6.668 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003941/0.7632, allocations: 175.4 kB / 405 MB, free: 6.48 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001089/0.7633, allocations: 93.02 kB / 405.1 MB, free: 6.371 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.932e-05/0.7634, allocations: 3.984 kB / 405.1 MB, free: 6.367 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001849/0.7636, allocations: 8 kB / 405.1 MB, free: 6.359 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.8e-05/0.7637, allocations: 3.953 kB / 405.1 MB, free: 6.355 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.736e-05/0.7637, allocations: 4 kB / 405.1 MB, free: 6.352 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003113/0.764, allocations: 164.9 kB / 405.2 MB, free: 6.191 MB / 330.7 MB Notification: Performance of sort global known variables: time 8.11e-07/0.7641, allocations: 0 / 405.2 MB, free: 6.191 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006401/0.7647, allocations: 31.94 kB / 405.3 MB, free: 6.16 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.002152/0.7669, allocations: 0.9585 MB / 406.2 MB, free: 5.234 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004069/0.7673, allocations: 111.4 kB / 406.3 MB, free: 5.113 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.539e-06/0.7674, allocations: 0 / 406.3 MB, free: 5.113 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001089/0.7675, allocations: 23.94 kB / 406.4 MB, free: 5.09 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004909/0.768, allocations: 15.94 kB / 406.4 MB, free: 5.074 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001108/0.7691, allocations: 252.8 kB / 406.6 MB, free: 4.789 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004775/0.7697, allocations: 0.7082 MB / 407.3 MB, free: 4.055 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001298/0.7698, allocations: 35.42 kB / 407.4 MB, free: 4.02 MB / 330.7 MB Notification: Performance of SimCode: time 1.773e-06/0.7698, allocations: 0 / 407.4 MB, free: 4.02 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_Test52CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test52CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test52CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test52FMU.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_Test52.so OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test52CalcHelperMain.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_Test52_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test52.fmu' failed make: *** [ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test52.fmu] Error 1