Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test5,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test5",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.991/1.991, allocations: 209.3 MB / 221.9 MB, free: 1.926 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 5.298e-05/5.313e-05, allocations: 8 kB / 273.1 MB, free: 0.6211 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1223/0.1224, allocations: 48.7 MB / 321.8 MB, free: 15.83 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4002/0.5227, allocations: 75.82 MB / 397.6 MB, free: 14 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002562/0.523, allocations: 75.02 kB / 397.7 MB, free: 13.93 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01912/0.5421, allocations: 4.602 MB / 402.3 MB, free: 9.336 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.5422, allocations: 0 / 402.3 MB, free: 9.336 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.766e-05/0.5422, allocations: 8 kB / 402.3 MB, free: 9.328 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005821/0.5428, allocations: 435.9 kB / 402.8 MB, free: 8.852 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.669e-05/0.5429, allocations: 8.031 kB / 402.8 MB, free: 8.844 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.621e-05/0.5429, allocations: 34.5 kB / 402.8 MB, free: 8.801 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.982e-05/0.543, allocations: 19.77 kB / 402.8 MB, free: 8.781 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003411/0.5433, allocations: 210.9 kB / 403 MB, free: 8.535 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.548e-05/0.5434, allocations: 4 kB / 403 MB, free: 8.531 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.953e-05/0.5434, allocations: 4 kB / 403 MB, free: 8.527 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001562/0.5436, allocations: 57.67 kB / 403.1 MB, free: 8.465 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.318e-05/0.5436, allocations: 0 / 403.1 MB, free: 8.465 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.485e-05/0.5436, allocations: 4 kB / 403.1 MB, free: 8.461 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.2e-06/0.5437, allocations: 0 / 403.1 MB, free: 8.461 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001226/0.5438, allocations: 31.97 kB / 403.1 MB, free: 8.43 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005628/0.5444, allocations: 348.5 kB / 403.5 MB, free: 8.039 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001478/0.5445, allocations: 54.56 kB / 403.5 MB, free: 7.977 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.817e-05/0.5446, allocations: 16.98 kB / 403.5 MB, free: 7.957 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.99e-05/0.5446, allocations: 3.984 kB / 403.5 MB, free: 7.953 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001526/0.5448, allocations: 71.34 kB / 403.6 MB, free: 7.871 MB / 330.7 MB Notification: Performance of pre-optimization done (n=6): time 1.883e-06/0.5448, allocations: 4 kB / 403.6 MB, free: 7.867 MB / 330.7 MB Notification: Performance of matching and sorting (n=8): time 0.0005945/0.5454, allocations: 161.2 kB / 403.8 MB, free: 7.703 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.627e-05/0.5455, allocations: 51.41 kB / 403.8 MB, free: 7.641 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003517/0.5458, allocations: 217.7 kB / 404 MB, free: 7.418 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.04e-05/0.5459, allocations: 29.7 kB / 404.1 MB, free: 7.383 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.89e-05/0.546, allocations: 166.8 kB / 404.2 MB, free: 7.215 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.202e-05/0.546, allocations: 31.7 kB / 404.3 MB, free: 7.184 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.21e-05/0.546, allocations: 4 kB / 404.3 MB, free: 7.18 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001145/0.5462, allocations: 310.8 kB / 404.6 MB, free: 6.867 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000101/0.5463, allocations: 36 kB / 404.6 MB, free: 6.832 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001023/0.5464, allocations: 35.98 kB / 404.6 MB, free: 6.797 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001271/0.5465, allocations: 61.69 kB / 404.7 MB, free: 6.73 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.292e-06/0.5465, allocations: 0 / 404.7 MB, free: 6.73 MB / 330.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003398/0.5469, allocations: 155.7 kB / 404.8 MB, free: 6.566 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.191e-05/0.547, allocations: 37.7 kB / 404.9 MB, free: 6.523 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.94e-06/0.547, allocations: 0 / 404.9 MB, free: 6.523 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.85e-05/0.547, allocations: 3.953 kB / 404.9 MB, free: 6.52 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001304/0.5471, allocations: 15.98 kB / 404.9 MB, free: 6.504 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.112e-06/0.5472, allocations: 0 / 404.9 MB, free: 6.504 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.999e-05/0.5472, allocations: 8 kB / 404.9 MB, free: 6.496 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.987e-05/0.5473, allocations: 4 kB / 404.9 MB, free: 6.492 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 (10): * Single equations (assignments): 9 * 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.105e-05/0.5474, allocations: 113 kB / 405 MB, free: 6.375 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.42e-05/0.5474, allocations: 11.91 kB / 405 MB, free: 6.363 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003817/0.5478, allocations: 135.1 kB / 405.2 MB, free: 6.223 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.041e-06/0.5478, allocations: 3.953 kB / 405.2 MB, free: 6.219 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.5478, allocations: 0 / 405.2 MB, free: 6.219 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.5479, allocations: 4 kB / 405.2 MB, free: 6.215 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006385/0.5485, allocations: 434.6 kB / 405.6 MB, free: 5.734 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.5485, allocations: 0 / 405.6 MB, free: 5.734 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.751e-05/0.5486, allocations: 12 kB / 405.6 MB, free: 5.723 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.731e-06/0.5486, allocations: 3.953 kB / 405.6 MB, free: 5.719 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.282e-05/0.5487, allocations: 0 / 405.6 MB, free: 5.719 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.5487, allocations: 4 kB / 405.6 MB, free: 5.715 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.5487, allocations: 0 / 405.6 MB, free: 5.715 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003306/0.549, allocations: 215.3 kB / 405.8 MB, free: 5.488 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.024e-05/0.5491, allocations: 92.95 kB / 405.9 MB, free: 5.379 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.436e-05/0.5492, allocations: 4.328 kB / 405.9 MB, free: 5.375 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001606/0.5494, allocations: 11.98 kB / 405.9 MB, free: 5.363 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.96e-05/0.5494, allocations: 11.98 kB / 405.9 MB, free: 5.352 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.606e-05/0.5495, allocations: 4 kB / 405.9 MB, free: 5.348 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002609/0.5497, allocations: 171.2 kB / 406.1 MB, free: 5.18 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.5497, allocations: 0 / 406.1 MB, free: 5.18 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006394/0.5504, allocations: 51.98 kB / 406.2 MB, free: 5.129 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 (10): * Single equations (assignments): 9 * 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.001576/0.552, allocations: 0.9779 MB / 407.1 MB, free: 4.184 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003061/0.5523, allocations: 135.4 kB / 407.3 MB, free: 4.039 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.5523, allocations: 3.938 kB / 407.3 MB, free: 4.035 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 9.478e-05/0.5524, allocations: 27.98 kB / 407.3 MB, free: 4.008 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002956/0.5527, allocations: 24.12 kB / 407.3 MB, free: 3.984 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008023/0.5535, allocations: 301.7 kB / 407.6 MB, free: 3.648 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003408/0.5539, allocations: 0.7238 MB / 408.4 MB, free: 2.898 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001143/0.554, allocations: 39.42 kB / 408.4 MB, free: 2.859 MB / 330.7 MB Notification: Performance of SimCode: time 7.92e-07/0.554, allocations: 0 / 408.4 MB, free: 2.859 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_Test5CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test5CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test5CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test5FMU.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_Test5.so OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test5CalcHelperMain.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_Test5_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test5.fmu' failed make: *** [ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test5.fmu] Error 1