Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test40,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test40",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.165/2.165, allocations: 209.3 MB / 221.9 MB, free: 1.934 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.067e-05/4.073e-05, allocations: 8 kB / 273.2 MB, free: 0.6367 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.12/0.12, allocations: 48.71 MB / 321.9 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4084/0.5285, allocations: 75.78 MB / 397.6 MB, free: 14.15 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002588/0.5288, allocations: 63.97 kB / 397.7 MB, free: 14.09 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01823/0.547, allocations: 4.129 MB / 401.8 MB, free: 9.969 MB / 330.7 MB Notification: Performance of FrontEnd: time 5.5e-06/0.5471, allocations: 4 kB / 401.8 MB, free: 9.965 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.702e-05/0.5471, allocations: 7.938 kB / 401.8 MB, free: 9.957 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.0005776/0.5477, allocations: 416 kB / 402.2 MB, free: 9.5 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.726e-05/0.5478, allocations: 8.031 kB / 402.3 MB, free: 9.492 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.991e-05/0.5478, allocations: 38.55 kB / 402.3 MB, free: 9.445 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.182e-05/0.5479, allocations: 7.906 kB / 402.3 MB, free: 9.438 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003202/0.5482, allocations: 204.5 kB / 402.5 MB, free: 9.199 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.931e-05/0.5482, allocations: 8 kB / 402.5 MB, free: 9.191 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.004e-05/0.5483, allocations: 7.938 kB / 402.5 MB, free: 9.184 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001362/0.5484, allocations: 45.67 kB / 402.6 MB, free: 9.133 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.337e-05/0.5485, allocations: 0 / 402.6 MB, free: 9.133 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.447e-05/0.5485, allocations: 4 kB / 402.6 MB, free: 9.129 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.53e-06/0.5485, allocations: 0 / 402.6 MB, free: 9.129 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.931e-05/0.5486, allocations: 11.98 kB / 402.6 MB, free: 9.117 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005022/0.5491, allocations: 296.9 kB / 402.9 MB, free: 8.777 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002541/0.5494, allocations: 46.98 kB / 402.9 MB, free: 8.723 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.881e-05/0.5494, allocations: 16.94 kB / 402.9 MB, free: 8.703 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.556e-05/0.5495, allocations: 0 / 402.9 MB, free: 8.703 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001496/0.5496, allocations: 55.41 kB / 403 MB, free: 8.637 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 2.014e-06/0.5496, allocations: 0 / 403 MB, free: 8.637 MB / 330.7 MB Notification: Performance of matching and sorting (n=5): time 0.000509/0.5502, allocations: 117.2 kB / 403.1 MB, free: 8.516 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.114e-05/0.5502, allocations: 55.41 kB / 403.2 MB, free: 8.449 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002737/0.5505, allocations: 181.3 kB / 403.3 MB, free: 8.266 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.879e-05/0.5505, allocations: 29.7 kB / 403.4 MB, free: 8.23 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.575e-05/0.5506, allocations: 162.6 kB / 403.5 MB, free: 8.07 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.947e-05/0.5507, allocations: 11.81 kB / 403.5 MB, free: 8.059 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.115e-06/0.5507, allocations: 0 / 403.5 MB, free: 8.059 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001377/0.5508, allocations: 322.8 kB / 403.8 MB, free: 7.734 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.055e-05/0.5509, allocations: 27.92 kB / 403.9 MB, free: 7.707 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.255e-05/0.551, allocations: 24 kB / 403.9 MB, free: 7.684 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001239/0.5512, allocations: 57.72 kB / 403.9 MB, free: 7.621 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.5512, allocations: 0 / 403.9 MB, free: 7.621 MB / 330.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003028/0.5515, allocations: 119.3 kB / 404.1 MB, free: 7.492 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.76e-05/0.5515, allocations: 33.69 kB / 404.1 MB, free: 7.453 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.261e-06/0.5516, allocations: 0 / 404.1 MB, free: 7.453 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.051e-05/0.5516, allocations: 4 kB / 404.1 MB, free: 7.449 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.534e-05/0.5517, allocations: 12 kB / 404.1 MB, free: 7.438 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.062e-05/0.5517, allocations: 3.953 kB / 404.1 MB, free: 7.434 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.958e-05/0.5518, allocations: 0 / 404.1 MB, free: 7.434 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.473e-05/0.5518, allocations: 11.98 kB / 404.1 MB, free: 7.422 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.725e-05/0.552, allocations: 105 kB / 404.2 MB, free: 7.312 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.07e-05/0.552, allocations: 11.81 kB / 404.2 MB, free: 7.301 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002972/0.5523, allocations: 97.77 kB / 404.3 MB, free: 7.199 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.589e-06/0.5523, allocations: 0 / 404.3 MB, free: 7.199 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.5523, allocations: 0 / 404.3 MB, free: 7.199 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.143e-06/0.5524, allocations: 3.953 kB / 404.3 MB, free: 7.195 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005689/0.5529, allocations: 362.5 kB / 404.7 MB, free: 6.785 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.931e-06/0.553, allocations: 0 / 404.7 MB, free: 6.785 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.2e-05/0.553, allocations: 11.94 kB / 404.7 MB, free: 6.773 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.5e-06/0.5531, allocations: 0 / 404.7 MB, free: 6.773 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.437e-05/0.5531, allocations: 4 kB / 404.7 MB, free: 6.77 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.134e-06/0.5531, allocations: 7.938 kB / 404.7 MB, free: 6.762 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.5531, allocations: 0 / 404.7 MB, free: 6.762 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00026/0.5534, allocations: 171.5 kB / 404.9 MB, free: 6.578 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.439e-05/0.5535, allocations: 96.91 kB / 405 MB, free: 6.465 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.054e-05/0.5535, allocations: 0 / 405 MB, free: 6.465 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001058/0.5536, allocations: 8 kB / 405 MB, free: 6.457 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.536e-05/0.5537, allocations: 8.094 kB / 405 MB, free: 6.449 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.166e-05/0.5537, allocations: 0 / 405 MB, free: 6.449 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002057/0.5539, allocations: 148.9 kB / 405.1 MB, free: 6.305 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.1e-07/0.554, allocations: 3.938 kB / 405.1 MB, free: 6.301 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004545/0.5544, allocations: 43.92 kB / 405.2 MB, free: 6.258 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.001446/0.5559, allocations: 0.9476 MB / 406.1 MB, free: 5.34 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002682/0.5562, allocations: 119.3 kB / 406.3 MB, free: 5.211 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/0.5562, allocations: 4 kB / 406.3 MB, free: 5.207 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 6.684e-05/0.5563, allocations: 16 kB / 406.3 MB, free: 5.191 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003307/0.5566, allocations: 23.88 kB / 406.3 MB, free: 5.168 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007429/0.5574, allocations: 245 kB / 406.5 MB, free: 4.887 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003319/0.5577, allocations: 0.7082 MB / 407.2 MB, free: 4.152 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.22e-05/0.5578, allocations: 31.42 kB / 407.3 MB, free: 4.121 MB / 330.7 MB Notification: Performance of SimCode: time 3.717e-06/0.5579, allocations: 4 kB / 407.3 MB, free: 4.117 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_Test40CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test40CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test40CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test40FMU.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_Test40.so OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test40CalcHelperMain.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_Test40_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test40.fmu' failed make: *** [ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test40.fmu] Error 1