Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test54,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test54",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.022/2.022, allocations: 209.3 MB / 221.9 MB, free: 1.945 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 5.65e-05/5.664e-05, allocations: 8 kB / 273.1 MB, free: 0.6484 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1358/0.1359, allocations: 48.7 MB / 321.8 MB, free: 15.85 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4964/0.6324, allocations: 75.78 MB / 397.6 MB, free: 14.16 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002883/0.6327, allocations: 67.97 kB / 397.7 MB, free: 14.09 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01878/0.6515, allocations: 4.192 MB / 401.9 MB, free: 9.91 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.873e-06/0.6516, allocations: 0 / 401.9 MB, free: 9.91 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.681e-05/0.6516, allocations: 0 / 401.9 MB, free: 9.91 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.0006105/0.6523, allocations: 431.8 kB / 402.3 MB, free: 9.438 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.63e-05/0.6523, allocations: 16.03 kB / 402.3 MB, free: 9.422 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.517e-05/0.6524, allocations: 30.56 kB / 402.3 MB, free: 9.383 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.308e-05/0.6525, allocations: 7.906 kB / 402.3 MB, free: 9.375 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003757/0.6528, allocations: 202.9 kB / 402.5 MB, free: 9.137 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.969e-06/0.6529, allocations: 0 / 402.5 MB, free: 9.137 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.319e-05/0.6529, allocations: 4 kB / 402.6 MB, free: 9.133 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001369/0.6531, allocations: 45.67 kB / 402.6 MB, free: 9.082 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.277e-05/0.6531, allocations: 3.938 kB / 402.6 MB, free: 9.078 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.13e-05/0.6531, allocations: 0 / 402.6 MB, free: 9.078 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.169e-06/0.6531, allocations: 0 / 402.6 MB, free: 9.078 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.619e-05/0.6532, allocations: 20 kB / 402.6 MB, free: 9.059 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005107/0.6537, allocations: 304.7 kB / 402.9 MB, free: 8.711 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002959/0.654, allocations: 43.03 kB / 403 MB, free: 8.66 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.57e-05/0.6541, allocations: 16.89 kB / 403 MB, free: 8.641 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.755e-05/0.6541, allocations: 7.969 kB / 403 MB, free: 8.633 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000152/0.6543, allocations: 59.41 kB / 403 MB, free: 8.562 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 2.244e-06/0.6543, allocations: 0 / 403 MB, free: 8.562 MB / 330.7 MB Notification: Performance of matching and sorting (n=5): time 0.0004967/0.6548, allocations: 113.3 kB / 403.2 MB, free: 8.445 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.32e-05/0.6549, allocations: 55.34 kB / 403.2 MB, free: 8.379 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003064/0.6552, allocations: 190.5 kB / 403.4 MB, free: 8.18 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.006e-05/0.6553, allocations: 29.64 kB / 403.4 MB, free: 8.145 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001036/0.6554, allocations: 170.5 kB / 403.6 MB, free: 7.977 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.978e-05/0.6554, allocations: 15.75 kB / 403.6 MB, free: 7.961 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.724e-06/0.6554, allocations: 4 kB / 403.6 MB, free: 7.957 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001535/0.6556, allocations: 322.8 kB / 403.9 MB, free: 7.633 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.762e-05/0.6557, allocations: 20 kB / 403.9 MB, free: 7.613 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.179e-05/0.6558, allocations: 24 kB / 404 MB, free: 7.59 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001092/0.6559, allocations: 49.69 kB / 404 MB, free: 7.535 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.402e-06/0.6559, allocations: 0 / 404 MB, free: 7.535 MB / 330.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000291/0.6562, allocations: 123.3 kB / 404.1 MB, free: 7.402 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.928e-05/0.6563, allocations: 37.7 kB / 404.2 MB, free: 7.359 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.282e-06/0.6563, allocations: 0 / 404.2 MB, free: 7.359 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.486e-05/0.6563, allocations: 4.141 kB / 404.2 MB, free: 7.355 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.876e-05/0.6564, allocations: 8 kB / 404.2 MB, free: 7.348 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.879e-06/0.6564, allocations: 3.953 kB / 404.2 MB, free: 7.344 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.8e-05/0.6565, allocations: 7.984 kB / 404.2 MB, free: 7.336 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.99e-05/0.6566, allocations: 7.984 kB / 404.2 MB, free: 7.328 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 9.969e-05/0.6567, allocations: 112.9 kB / 404.3 MB, free: 7.211 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.381e-05/0.6567, allocations: 7.906 kB / 404.3 MB, free: 7.203 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002837/0.657, allocations: 86.8 kB / 404.4 MB, free: 7.109 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.133e-06/0.657, allocations: 8 kB / 404.4 MB, free: 7.102 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.049e-06/0.657, allocations: 0 / 404.4 MB, free: 7.102 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.533e-06/0.6571, allocations: 3.953 kB / 404.4 MB, free: 7.098 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005472/0.6576, allocations: 366.5 kB / 404.8 MB, free: 6.684 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.6576, allocations: 7.938 kB / 404.8 MB, free: 6.676 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.061e-05/0.6577, allocations: 7.984 kB / 404.8 MB, free: 6.668 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.248e-06/0.6577, allocations: 0 / 404.8 MB, free: 6.668 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.431e-05/0.6578, allocations: 4 kB / 404.8 MB, free: 6.664 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.809e-06/0.6578, allocations: 3.953 kB / 404.8 MB, free: 6.66 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/0.6578, allocations: 4 kB / 404.8 MB, free: 6.656 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002893/0.6581, allocations: 171.4 kB / 405 MB, free: 6.473 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.016e-05/0.6582, allocations: 96.95 kB / 405.1 MB, free: 6.359 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.078e-05/0.6582, allocations: 0 / 405.1 MB, free: 6.359 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.818e-05/0.6583, allocations: 4 kB / 405.1 MB, free: 6.355 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.512e-05/0.6584, allocations: 7.938 kB / 405.1 MB, free: 6.348 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.726e-05/0.6584, allocations: 4 kB / 405.1 MB, free: 6.344 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002258/0.6587, allocations: 168.8 kB / 405.2 MB, free: 6.18 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.6587, allocations: 0 / 405.2 MB, free: 6.18 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003801/0.6591, allocations: 39.92 kB / 405.3 MB, free: 6.141 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.001531/0.6606, allocations: 0.9557 MB / 406.2 MB, free: 5.219 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002844/0.6609, allocations: 107.4 kB / 406.3 MB, free: 5.102 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.6609, allocations: 0 / 406.3 MB, free: 5.102 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 6.875e-05/0.661, allocations: 16 kB / 406.4 MB, free: 5.086 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003229/0.6613, allocations: 23.88 kB / 406.4 MB, free: 5.062 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007883/0.6621, allocations: 252.9 kB / 406.6 MB, free: 4.777 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003896/0.6626, allocations: 0.7121 MB / 407.3 MB, free: 4.039 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.595e-05/0.6627, allocations: 27.42 kB / 407.4 MB, free: 4.012 MB / 330.7 MB Notification: Performance of SimCode: time 1.012e-06/0.6627, allocations: 0 / 407.4 MB, free: 4.012 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_Test54CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test54CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test54CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test54FMU.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_Test54.so OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test54CalcHelperMain.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_Test54_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test54.fmu' failed make: *** [ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test54.fmu] Error 1