Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test23,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test23",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.065/2.065, allocations: 209.3 MB / 221.9 MB, free: 1.941 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.789e-05/4.807e-05, allocations: 7.938 kB / 273.2 MB, free: 0.6445 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1162/0.1163, allocations: 48.71 MB / 321.9 MB, free: 15.83 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5074/0.6238, allocations: 75.74 MB / 397.6 MB, free: 14.08 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003357/0.6242, allocations: 75.95 kB / 397.7 MB, free: 14.01 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02206/0.6462, allocations: 3.938 MB / 401.6 MB, free: 10.07 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.753e-06/0.6463, allocations: 0 / 401.6 MB, free: 10.07 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.47e-05/0.6463, allocations: 0 / 401.6 MB, free: 10.07 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.0006186/0.647, allocations: 435.8 kB / 402 MB, free: 9.598 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.017e-05/0.647, allocations: 8.031 kB / 402.1 MB, free: 9.59 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.708e-05/0.6471, allocations: 30.56 kB / 402.1 MB, free: 9.551 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.479e-05/0.6471, allocations: 11.89 kB / 402.1 MB, free: 9.539 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000384/0.6475, allocations: 195.5 kB / 402.3 MB, free: 9.305 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.912e-05/0.6476, allocations: 7.984 kB / 402.3 MB, free: 9.297 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.735e-05/0.6476, allocations: 0 / 402.3 MB, free: 9.297 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001405/0.6478, allocations: 49.62 kB / 402.3 MB, free: 9.242 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.33e-05/0.6478, allocations: 0 / 402.3 MB, free: 9.242 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.273e-05/0.6478, allocations: 4 kB / 402.4 MB, free: 9.238 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.015e-06/0.6478, allocations: 3.984 kB / 402.4 MB, free: 9.234 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.482e-05/0.6479, allocations: 15.98 kB / 402.4 MB, free: 9.219 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005187/0.6485, allocations: 292.9 kB / 402.7 MB, free: 8.883 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002654/0.6487, allocations: 43.03 kB / 402.7 MB, free: 8.832 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.576e-05/0.6488, allocations: 12.86 kB / 402.7 MB, free: 8.816 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.08e-05/0.6488, allocations: 8.078 kB / 402.7 MB, free: 8.809 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000162/0.649, allocations: 59.33 kB / 402.8 MB, free: 8.738 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 3.146e-06/0.649, allocations: 4 kB / 402.8 MB, free: 8.734 MB / 330.7 MB Notification: Performance of matching and sorting (n=5): time 0.000509/0.6495, allocations: 113.3 kB / 402.9 MB, free: 8.617 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.992e-05/0.6496, allocations: 55.39 kB / 402.9 MB, free: 8.551 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002673/0.6499, allocations: 174.8 kB / 403.1 MB, free: 8.375 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.476e-05/0.6499, allocations: 25.7 kB / 403.1 MB, free: 8.344 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.87e-05/0.65, allocations: 162.6 kB / 403.3 MB, free: 8.184 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.443e-05/0.6501, allocations: 27.73 kB / 403.3 MB, free: 8.156 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.206e-06/0.6501, allocations: 0 / 403.3 MB, free: 8.156 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001383/0.6503, allocations: 314.8 kB / 403.6 MB, free: 7.84 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.528e-05/0.6503, allocations: 20 kB / 403.7 MB, free: 7.82 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.592e-05/0.6504, allocations: 27.98 kB / 403.7 MB, free: 7.793 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001138/0.6506, allocations: 49.69 kB / 403.7 MB, free: 7.738 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.6506, allocations: 3.938 kB / 403.7 MB, free: 7.734 MB / 330.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002942/0.6509, allocations: 127.3 kB / 403.9 MB, free: 7.598 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.772e-05/0.6509, allocations: 33.7 kB / 403.9 MB, free: 7.559 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.651, allocations: 4 kB / 403.9 MB, free: 7.555 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.46e-05/0.651, allocations: 0 / 403.9 MB, free: 7.555 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.615e-05/0.6511, allocations: 11.98 kB / 403.9 MB, free: 7.543 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.054e-05/0.6511, allocations: 3.953 kB / 403.9 MB, free: 7.539 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.952e-05/0.6512, allocations: 7.938 kB / 403.9 MB, free: 7.531 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.017e-05/0.6512, allocations: 8 kB / 403.9 MB, free: 7.523 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.0001215/0.6514, allocations: 105 kB / 404 MB, free: 7.414 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.1e-05/0.6514, allocations: 7.906 kB / 404 MB, free: 7.406 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002985/0.6517, allocations: 97.69 kB / 404.1 MB, free: 7.309 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.318e-06/0.6517, allocations: 0 / 404.1 MB, free: 7.309 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.6518, allocations: 0 / 404.1 MB, free: 7.309 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.893e-06/0.6518, allocations: 7.953 kB / 404.1 MB, free: 7.301 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005439/0.6523, allocations: 346.6 kB / 404.5 MB, free: 6.906 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.487e-06/0.6523, allocations: 0 / 404.5 MB, free: 6.906 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.463e-05/0.6524, allocations: 4 kB / 404.5 MB, free: 6.902 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.424e-06/0.6524, allocations: 4 kB / 404.5 MB, free: 6.898 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.484e-05/0.6525, allocations: 4.078 kB / 404.5 MB, free: 6.895 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.563e-06/0.6525, allocations: 15.83 kB / 404.5 MB, free: 6.879 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.6525, allocations: 0 / 404.5 MB, free: 6.879 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002597/0.6528, allocations: 175.5 kB / 404.7 MB, free: 6.691 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.102e-05/0.6529, allocations: 93 kB / 404.8 MB, free: 6.582 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.337e-05/0.6529, allocations: 4 kB / 404.8 MB, free: 6.578 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.784e-05/0.653, allocations: 0 / 404.8 MB, free: 6.578 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.682e-05/0.6531, allocations: 7.953 kB / 404.8 MB, free: 6.57 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.722e-05/0.6531, allocations: 7.984 kB / 404.8 MB, free: 6.562 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001966/0.6533, allocations: 139.3 kB / 404.9 MB, free: 6.426 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.6533, allocations: 0 / 404.9 MB, free: 6.426 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004143/0.6537, allocations: 35.92 kB / 405 MB, free: 6.391 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.001609/0.6554, allocations: 0.9594 MB / 405.9 MB, free: 5.465 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003005/0.6557, allocations: 111.4 kB / 406 MB, free: 5.344 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.378e-06/0.6557, allocations: 0 / 406 MB, free: 5.344 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 7.461e-05/0.6558, allocations: 23.92 kB / 406 MB, free: 5.32 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003573/0.6562, allocations: 15.94 kB / 406.1 MB, free: 5.305 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007495/0.6569, allocations: 233.3 kB / 406.3 MB, free: 5.035 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003457/0.6573, allocations: 0.7004 MB / 407 MB, free: 4.309 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.35e-05/0.6574, allocations: 31.42 kB / 407 MB, free: 4.277 MB / 330.7 MB Notification: Performance of SimCode: time 9.22e-07/0.6574, allocations: 0 / 407 MB, free: 4.277 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_Test23CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test23CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test23CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test23FMU.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_Test23.so OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test23CalcHelperMain.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_Test23_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test23.fmu' failed make: *** [ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test23.fmu] Error 1