Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test8,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test8",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.048/2.048, allocations: 209.3 MB / 221.9 MB, free: 1.941 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.971e-05/3.982e-05, allocations: 4 kB / 273.1 MB, free: 0.6445 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1056/0.1057, allocations: 48.71 MB / 321.8 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4386/0.5443, allocations: 75.77 MB / 397.6 MB, free: 14.15 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002713/0.5446, allocations: 71.95 kB / 397.7 MB, free: 14.08 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01954/0.5642, allocations: 4.529 MB / 402.2 MB, free: 9.559 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.5642, allocations: 4 kB / 402.2 MB, free: 9.555 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.523e-05/0.5643, allocations: 0 / 402.2 MB, free: 9.555 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0005834/0.5648, allocations: 436.4 kB / 402.6 MB, free: 9.078 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.164e-05/0.5649, allocations: 12.03 kB / 402.7 MB, free: 9.066 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.334e-05/0.565, allocations: 34.56 kB / 402.7 MB, free: 9.023 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.829e-05/0.565, allocations: 23.75 kB / 402.7 MB, free: 9 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003316/0.5654, allocations: 202.9 kB / 402.9 MB, free: 8.762 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.484e-05/0.5654, allocations: 4 kB / 402.9 MB, free: 8.758 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.592e-05/0.5654, allocations: 0 / 402.9 MB, free: 8.758 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001518/0.5656, allocations: 57.61 kB / 403 MB, free: 8.695 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.251e-05/0.5656, allocations: 7.938 kB / 403 MB, free: 8.688 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.589e-05/0.5657, allocations: 3.984 kB / 403 MB, free: 8.684 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.3e-06/0.5657, allocations: 0 / 403 MB, free: 8.684 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001038/0.5658, allocations: 27.98 kB / 403 MB, free: 8.656 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000547/0.5664, allocations: 316.8 kB / 403.3 MB, free: 8.297 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001491/0.5665, allocations: 46.56 kB / 403.4 MB, free: 8.242 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.59e-05/0.5666, allocations: 24.88 kB / 403.4 MB, free: 8.215 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.91e-05/0.5666, allocations: 3.984 kB / 403.4 MB, free: 8.211 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001562/0.5668, allocations: 71.39 kB / 403.5 MB, free: 8.129 MB / 330.7 MB Notification: Performance of pre-optimization done (n=5): time 2.104e-06/0.5668, allocations: 0 / 403.5 MB, free: 8.129 MB / 330.7 MB Notification: Performance of matching and sorting (n=6): time 0.0005435/0.5674, allocations: 141.1 kB / 403.6 MB, free: 7.984 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.128e-05/0.5674, allocations: 59.39 kB / 403.7 MB, free: 7.914 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003405/0.5678, allocations: 209.8 kB / 403.9 MB, free: 7.699 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.418e-05/0.5678, allocations: 25.7 kB / 403.9 MB, free: 7.668 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.609e-05/0.5679, allocations: 166.6 kB / 404 MB, free: 7.504 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.852e-05/0.568, allocations: 23.73 kB / 404.1 MB, free: 7.48 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.017e-06/0.568, allocations: 4 kB / 404.1 MB, free: 7.477 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001189/0.5681, allocations: 314.8 kB / 404.4 MB, free: 7.16 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.966e-05/0.5682, allocations: 27.98 kB / 404.4 MB, free: 7.133 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.251e-05/0.5683, allocations: 28 kB / 404.4 MB, free: 7.105 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001189/0.5684, allocations: 57.69 kB / 404.5 MB, free: 7.043 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.5685, allocations: 0 / 404.5 MB, free: 7.043 MB / 330.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003292/0.5688, allocations: 143.2 kB / 404.6 MB, free: 6.891 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.44e-05/0.5689, allocations: 37.69 kB / 404.7 MB, free: 6.848 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.692e-06/0.5689, allocations: 0 / 404.7 MB, free: 6.848 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.753e-05/0.5689, allocations: 0 / 404.7 MB, free: 6.848 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001255/0.569, allocations: 19.95 kB / 404.7 MB, free: 6.828 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.234e-06/0.5691, allocations: 0 / 404.7 MB, free: 6.828 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.858e-05/0.5692, allocations: 4.25 kB / 404.7 MB, free: 6.824 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.126e-05/0.5692, allocations: 8 kB / 404.7 MB, free: 6.816 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 (8): * Single equations (assignments): 7 * 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 9.525e-05/0.5693, allocations: 116.9 kB / 404.8 MB, free: 6.695 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.554e-05/0.5693, allocations: 11.91 kB / 404.8 MB, free: 6.684 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000345/0.5697, allocations: 115.1 kB / 404.9 MB, free: 6.562 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.379e-06/0.5697, allocations: 4 kB / 404.9 MB, free: 6.559 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.773e-06/0.5697, allocations: 3.953 kB / 404.9 MB, free: 6.555 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.065e-06/0.5698, allocations: 0 / 404.9 MB, free: 6.555 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006249/0.5704, allocations: 402.4 kB / 405.3 MB, free: 6.105 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.5e-06/0.5704, allocations: 4 kB / 405.3 MB, free: 6.102 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.497e-05/0.5705, allocations: 8 kB / 405.4 MB, free: 6.094 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.667e-06/0.5705, allocations: 0 / 405.4 MB, free: 6.094 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.179e-05/0.5705, allocations: 7.938 kB / 405.4 MB, free: 6.086 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.839e-06/0.5706, allocations: 4 kB / 405.4 MB, free: 6.082 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.5706, allocations: 320 / 405.4 MB, free: 6.082 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002908/0.5709, allocations: 207.2 kB / 405.6 MB, free: 5.863 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.736e-05/0.571, allocations: 89.02 kB / 405.7 MB, free: 5.758 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.938e-05/0.571, allocations: 4 kB / 405.7 MB, free: 5.754 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001114/0.5711, allocations: 11.94 kB / 405.7 MB, free: 5.742 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.545e-05/0.5712, allocations: 4 kB / 405.7 MB, free: 5.738 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.296e-05/0.5712, allocations: 0 / 405.7 MB, free: 5.738 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002518/0.5715, allocations: 179.2 kB / 405.8 MB, free: 5.562 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.5715, allocations: 4 kB / 405.9 MB, free: 5.559 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003799/0.5719, allocations: 39.92 kB / 405.9 MB, free: 5.52 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 (8): * Single equations (assignments): 7 * 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.001467/0.5734, allocations: 0.9671 MB / 406.9 MB, free: 4.586 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003284/0.5737, allocations: 123.4 kB / 407 MB, free: 4.453 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.377e-06/0.5738, allocations: 0 / 407 MB, free: 4.453 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 9.056e-05/0.5738, allocations: 31.94 kB / 407 MB, free: 4.422 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003925/0.5743, allocations: 20.12 kB / 407 MB, free: 4.398 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000857/0.5751, allocations: 304.9 kB / 407.3 MB, free: 4.059 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000327/0.5755, allocations: 0.7121 MB / 408 MB, free: 3.32 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001142/0.5756, allocations: 35.42 kB / 408.1 MB, free: 3.285 MB / 330.7 MB Notification: Performance of SimCode: time 1.343e-06/0.5756, allocations: 0 / 408.1 MB, free: 3.285 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_Test8CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test8CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test8CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test8FMU.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_Test8.so OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test8CalcHelperMain.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_Test8_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test8.fmu' failed make: *** [ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test8.fmu] Error 1