Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test30,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test30",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.08/2.08, allocations: 209.3 MB / 221.9 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.129e-05/4.145e-05, allocations: 4 kB / 273.2 MB, free: 0.6367 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1096/0.1097, allocations: 48.71 MB / 321.9 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5212/0.6309, allocations: 75.79 MB / 397.7 MB, free: 14.14 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00027/0.6312, allocations: 63.97 kB / 397.7 MB, free: 14.07 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01754/0.6488, allocations: 4.009 MB / 401.7 MB, free: 10.07 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.6489, allocations: 0 / 401.7 MB, free: 10.07 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.279e-05/0.6489, allocations: 4 kB / 401.7 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.0005526/0.6494, allocations: 415.9 kB / 402.1 MB, free: 9.609 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.335e-05/0.6495, allocations: 12.03 kB / 402.1 MB, free: 9.598 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.142e-05/0.6496, allocations: 30.56 kB / 402.2 MB, free: 9.559 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.703e-05/0.6496, allocations: 7.906 kB / 402.2 MB, free: 9.551 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000308/0.6499, allocations: 202.9 kB / 402.4 MB, free: 9.312 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.202e-05/0.65, allocations: 0 / 402.4 MB, free: 9.312 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.038e-05/0.65, allocations: 7.906 kB / 402.4 MB, free: 9.305 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001254/0.6501, allocations: 45.69 kB / 402.4 MB, free: 9.254 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.154e-05/0.6502, allocations: 0 / 402.4 MB, free: 9.254 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.761e-05/0.6502, allocations: 3.984 kB / 402.4 MB, free: 9.25 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.404e-06/0.6502, allocations: 0 / 402.4 MB, free: 9.25 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.235e-05/0.6503, allocations: 27.83 kB / 402.5 MB, free: 9.223 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004637/0.6508, allocations: 288.9 kB / 402.7 MB, free: 8.891 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002354/0.651, allocations: 39.03 kB / 402.8 MB, free: 8.844 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.534e-05/0.6511, allocations: 20.86 kB / 402.8 MB, free: 8.82 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.051e-05/0.6511, allocations: 0 / 402.8 MB, free: 8.82 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001372/0.6513, allocations: 55.44 kB / 402.9 MB, free: 8.754 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 2.104e-06/0.6513, allocations: 4 kB / 402.9 MB, free: 8.75 MB / 330.7 MB Notification: Performance of matching and sorting (n=5): time 0.0004633/0.6518, allocations: 109.3 kB / 403 MB, free: 8.637 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.55e-05/0.6518, allocations: 55.41 kB / 403 MB, free: 8.57 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002621/0.6521, allocations: 152.9 kB / 403.2 MB, free: 8.414 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.371e-05/0.6521, allocations: 29.7 kB / 403.2 MB, free: 8.379 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.611e-05/0.6522, allocations: 166.5 kB / 403.4 MB, free: 8.215 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.789e-05/0.6523, allocations: 19.8 kB / 403.4 MB, free: 8.195 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.845e-06/0.6523, allocations: 3.938 kB / 403.4 MB, free: 8.191 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001366/0.6524, allocations: 314.8 kB / 403.7 MB, free: 7.875 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.247e-05/0.6525, allocations: 24 kB / 403.7 MB, free: 7.852 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.14e-05/0.6526, allocations: 23.98 kB / 403.7 MB, free: 7.828 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001025/0.6527, allocations: 49.69 kB / 403.8 MB, free: 7.773 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.352e-06/0.6527, allocations: 7.938 kB / 403.8 MB, free: 7.766 MB / 330.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000285/0.653, allocations: 131.2 kB / 403.9 MB, free: 7.625 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.237e-05/0.6531, allocations: 33.7 kB / 404 MB, free: 7.586 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.481e-06/0.6531, allocations: 0 / 404 MB, free: 7.586 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.53e-05/0.6531, allocations: 3.953 kB / 404 MB, free: 7.582 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.992e-05/0.6532, allocations: 11.98 kB / 404 MB, free: 7.57 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.863e-06/0.6533, allocations: 0 / 404 MB, free: 7.57 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.673e-05/0.6533, allocations: 4 kB / 404 MB, free: 7.566 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.807e-05/0.6534, allocations: 4.094 kB / 404 MB, free: 7.562 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.995e-05/0.6535, allocations: 112.9 kB / 404.1 MB, free: 7.445 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.645e-05/0.6535, allocations: 11.91 kB / 404.1 MB, free: 7.434 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002678/0.6538, allocations: 89.69 kB / 404.2 MB, free: 7.344 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.576e-06/0.6538, allocations: 0 / 404.2 MB, free: 7.344 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.125e-06/0.6538, allocations: 3.953 kB / 404.2 MB, free: 7.34 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.102e-06/0.6538, allocations: 4.141 kB / 404.2 MB, free: 7.336 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004752/0.6543, allocations: 342.6 kB / 404.5 MB, free: 6.945 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.6543, allocations: 0 / 404.5 MB, free: 6.945 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.42e-05/0.6544, allocations: 11.98 kB / 404.5 MB, free: 6.934 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.376e-06/0.6544, allocations: 4 kB / 404.6 MB, free: 6.93 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.537e-05/0.6545, allocations: 7.953 kB / 404.6 MB, free: 6.922 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.32e-06/0.6545, allocations: 3.984 kB / 404.6 MB, free: 6.918 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.427e-06/0.6545, allocations: 4 kB / 404.6 MB, free: 6.914 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002364/0.6547, allocations: 175.6 kB / 404.7 MB, free: 6.727 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.681e-05/0.6548, allocations: 85.02 kB / 404.8 MB, free: 6.625 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.276e-05/0.6548, allocations: 3.984 kB / 404.8 MB, free: 6.621 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.655e-05/0.655, allocations: 7.953 kB / 404.8 MB, free: 6.613 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.951e-05/0.655, allocations: 8 kB / 404.8 MB, free: 6.605 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.269e-05/0.655, allocations: 4 kB / 404.8 MB, free: 6.602 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000158/0.6552, allocations: 130.8 kB / 405 MB, free: 6.477 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.1e-07/0.6552, allocations: 0 / 405 MB, free: 6.477 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003883/0.6556, allocations: 35.94 kB / 405 MB, free: 6.441 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.00146/0.6571, allocations: 0.9411 MB / 405.9 MB, free: 5.527 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.000257/0.6574, allocations: 107.4 kB / 406.1 MB, free: 5.41 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.6574, allocations: 0 / 406.1 MB, free: 5.41 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 6.989e-05/0.6575, allocations: 23.94 kB / 406.1 MB, free: 5.387 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003115/0.6578, allocations: 26.84 kB / 406.1 MB, free: 5.363 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000643/0.6584, allocations: 221.2 kB / 406.3 MB, free: 5.105 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003345/0.6588, allocations: 0.7043 MB / 407 MB, free: 4.375 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.983e-05/0.6589, allocations: 23.42 kB / 407 MB, free: 4.352 MB / 330.7 MB Notification: Performance of SimCode: time 8.01e-07/0.6589, allocations: 0 / 407 MB, free: 4.352 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_Test30CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test30CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test30CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test30FMU.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_Test30.so OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test30CalcHelperMain.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_Test30_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test30.fmu' failed make: *** [ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test30.fmu] Error 1