Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test34,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test34",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.214/2.214, allocations: 209.3 MB / 221.9 MB, free: 1.934 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 5.428e-05/5.435e-05, allocations: 4 kB / 273.1 MB, free: 0.6367 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1452/0.1453, allocations: 48.71 MB / 321.9 MB, free: 15.82 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.482/0.6273, allocations: 75.78 MB / 397.6 MB, free: 14.01 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002878/0.6277, allocations: 75.95 kB / 397.7 MB, free: 13.94 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01803/0.6458, allocations: 4.004 MB / 401.7 MB, free: 9.945 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.853e-06/0.6458, allocations: 0 / 401.7 MB, free: 9.945 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.574e-05/0.6458, allocations: 4 kB / 401.7 MB, free: 9.941 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.0005891/0.6464, allocations: 419.9 kB / 402.1 MB, free: 9.48 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.945e-05/0.6465, allocations: 8.031 kB / 402.1 MB, free: 9.473 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.114e-05/0.6466, allocations: 34.56 kB / 402.2 MB, free: 9.43 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.819e-05/0.6466, allocations: 7.906 kB / 402.2 MB, free: 9.422 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002988/0.6469, allocations: 194.9 kB / 402.4 MB, free: 9.191 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.367e-05/0.647, allocations: 0 / 402.4 MB, free: 9.191 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.12e-05/0.647, allocations: 7.906 kB / 402.4 MB, free: 9.184 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001297/0.6471, allocations: 45.67 kB / 402.4 MB, free: 9.133 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.463e-05/0.6472, allocations: 7.984 kB / 402.4 MB, free: 9.125 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.177e-05/0.6472, allocations: 0 / 402.4 MB, free: 9.125 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.686e-06/0.6472, allocations: 4 kB / 402.4 MB, free: 9.121 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.057e-05/0.6473, allocations: 23.83 kB / 402.5 MB, free: 9.098 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004747/0.6478, allocations: 284.9 kB / 402.7 MB, free: 8.77 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002506/0.6481, allocations: 47.03 kB / 402.8 MB, free: 8.715 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.331e-05/0.6481, allocations: 12.86 kB / 402.8 MB, free: 8.699 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.513e-05/0.6481, allocations: 0 / 402.8 MB, free: 8.699 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001521/0.6483, allocations: 67.42 kB / 402.9 MB, free: 8.621 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 2.003e-06/0.6483, allocations: 0 / 402.9 MB, free: 8.621 MB / 330.7 MB Notification: Performance of matching and sorting (n=5): time 0.0004946/0.6488, allocations: 109.3 kB / 403 MB, free: 8.508 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.188e-05/0.6489, allocations: 51.41 kB / 403 MB, free: 8.445 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002278/0.6491, allocations: 152.7 kB / 403.2 MB, free: 8.289 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.867e-05/0.6492, allocations: 33.7 kB / 403.2 MB, free: 8.25 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.712e-05/0.6493, allocations: 166.5 kB / 403.4 MB, free: 8.086 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.396e-05/0.6493, allocations: 15.81 kB / 403.4 MB, free: 8.07 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.005e-05/0.6493, allocations: 0 / 403.4 MB, free: 8.07 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.00014/0.6495, allocations: 326.8 kB / 403.7 MB, free: 7.742 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.525e-05/0.6496, allocations: 19.98 kB / 403.7 MB, free: 7.723 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.892e-05/0.6496, allocations: 20 kB / 403.7 MB, free: 7.703 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001058/0.6498, allocations: 57.62 kB / 403.8 MB, free: 7.641 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.6498, allocations: 0 / 403.8 MB, free: 7.641 MB / 330.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002791/0.6501, allocations: 127.2 kB / 403.9 MB, free: 7.504 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.418e-05/0.6501, allocations: 37.69 kB / 404 MB, free: 7.461 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/0.6501, allocations: 0 / 404 MB, free: 7.461 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.302e-05/0.6502, allocations: 7.953 kB / 404 MB, free: 7.453 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.554e-05/0.6503, allocations: 8 kB / 404 MB, free: 7.445 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.444e-06/0.6503, allocations: 0 / 404 MB, free: 7.445 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.067e-05/0.6504, allocations: 0 / 404 MB, free: 7.445 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.11e-05/0.6504, allocations: 8.094 kB / 404 MB, free: 7.438 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 8.898e-05/0.6505, allocations: 112.9 kB / 404.1 MB, free: 7.32 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.678e-05/0.6506, allocations: 7.906 kB / 404.1 MB, free: 7.312 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002773/0.6508, allocations: 97.84 kB / 404.2 MB, free: 7.215 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.773e-06/0.6509, allocations: 4 kB / 404.2 MB, free: 7.211 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.685e-06/0.6509, allocations: 4.078 kB / 404.2 MB, free: 7.207 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.161e-06/0.6509, allocations: 4 kB / 404.2 MB, free: 7.203 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004832/0.6514, allocations: 342.6 kB / 404.5 MB, free: 6.812 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.6514, allocations: 0 / 404.5 MB, free: 6.812 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.835e-05/0.6515, allocations: 11.98 kB / 404.6 MB, free: 6.801 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.948e-06/0.6515, allocations: 0 / 404.6 MB, free: 6.801 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.637e-05/0.6515, allocations: 11.95 kB / 404.6 MB, free: 6.789 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.6515, allocations: 0 / 404.6 MB, free: 6.789 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.6516, allocations: 0 / 404.6 MB, free: 6.789 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002341/0.6518, allocations: 171.4 kB / 404.7 MB, free: 6.605 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.598e-05/0.6519, allocations: 89 kB / 404.8 MB, free: 6.5 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.222e-05/0.6519, allocations: 4 kB / 404.8 MB, free: 6.496 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001/0.652, allocations: 7.953 kB / 404.8 MB, free: 6.488 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.2e-05/0.6521, allocations: 3.984 kB / 404.8 MB, free: 6.484 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.056e-05/0.6521, allocations: 8 kB / 404.8 MB, free: 6.477 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001627/0.6523, allocations: 127.8 kB / 405 MB, free: 6.352 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.6523, allocations: 0 / 405 MB, free: 6.352 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003885/0.6527, allocations: 39.92 kB / 405 MB, free: 6.312 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.001503/0.6542, allocations: 0.9467 MB / 406 MB, free: 5.398 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002801/0.6545, allocations: 107.4 kB / 406.1 MB, free: 5.281 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.6545, allocations: 0 / 406.1 MB, free: 5.281 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 7.873e-05/0.6546, allocations: 31.92 kB / 406.1 MB, free: 5.25 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003435/0.655, allocations: 19.95 kB / 406.1 MB, free: 5.23 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007009/0.6557, allocations: 217.2 kB / 406.3 MB, free: 4.977 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003225/0.656, allocations: 0.7004 MB / 407 MB, free: 4.25 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.495e-05/0.6561, allocations: 27.42 kB / 407 MB, free: 4.223 MB / 330.7 MB Notification: Performance of SimCode: time 1.092e-06/0.6562, allocations: 0 / 407 MB, free: 4.223 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_Test34CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test34CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test34CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test34FMU.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_Test34.so OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test34CalcHelperMain.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_Test34_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test34.fmu' failed make: *** [ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test34.fmu] Error 1