Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTable2Dv.Test24,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Dv_Test24",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.47/2.47, allocations: 270 MB / 282.6 MB, free: 1.816 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 5e-05/5.012e-05, allocations: 4 kB / 347.1 MB, free: 3.102 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4325/0.4326, allocations: 61.87 MB / 408.9 MB, free: 10.73 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1643/0.597, allocations: 88.99 MB / 497.9 MB, free: 1.621 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003147/0.5973, allocations: 79.94 kB / 498 MB, free: 1.543 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02064/0.618, allocations: 4.569 MB / 0.4908 GB, free: 12.96 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.264e-06/0.618, allocations: 0 / 0.4908 GB, free: 12.96 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.907e-05/0.6181, allocations: 8 kB / 0.4908 GB, free: 12.95 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0005822/0.6187, allocations: 402.1 kB / 0.4912 GB, free: 12.51 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.033e-05/0.6187, allocations: 15.97 kB / 0.4912 GB, free: 12.5 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.223e-05/0.6188, allocations: 34.56 kB / 0.4912 GB, free: 12.45 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.356e-05/0.6189, allocations: 11.91 kB / 0.4912 GB, free: 12.44 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003226/0.6192, allocations: 207.3 kB / 0.4914 GB, free: 12.2 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.476e-05/0.6192, allocations: 4 kB / 0.4914 GB, free: 12.19 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.627e-05/0.6193, allocations: 7.938 kB / 0.4914 GB, free: 12.18 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001745/0.6195, allocations: 53.67 kB / 0.4915 GB, free: 12.12 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.939e-05/0.6195, allocations: 4 kB / 0.4915 GB, free: 12.12 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.317e-05/0.6195, allocations: 0 / 0.4915 GB, free: 12.12 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.191e-06/0.6195, allocations: 4 kB / 0.4915 GB, free: 12.12 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001033/0.6197, allocations: 31.94 kB / 0.4915 GB, free: 12.09 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000674/0.6203, allocations: 320.7 kB / 0.4918 GB, free: 11.72 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000263/0.6206, allocations: 46.66 kB / 0.4919 GB, free: 11.67 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.251e-05/0.6207, allocations: 28.91 kB / 0.4919 GB, free: 11.64 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.034e-05/0.6208, allocations: 0 / 0.4919 GB, free: 11.64 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.593e-05/0.6208, allocations: 38.56 kB / 0.492 GB, free: 11.59 MB / 426.7 MB Notification: Performance of pre-optimization done (n=5): time 1.743e-06/0.6208, allocations: 0 / 0.492 GB, free: 11.59 MB / 426.7 MB Notification: Performance of matching and sorting (n=11): time 0.001052/0.6219, allocations: 245 kB / 0.4922 GB, free: 11.34 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.429e-05/0.6219, allocations: 51.41 kB / 0.4922 GB, free: 11.28 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002495/0.6222, allocations: 156.5 kB / 0.4924 GB, free: 11.12 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.669e-05/0.6222, allocations: 29.7 kB / 0.4924 GB, free: 11.09 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.285e-05/0.6223, allocations: 170.4 kB / 0.4926 GB, free: 10.92 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.75e-05/0.6224, allocations: 35.45 kB / 0.4926 GB, free: 10.88 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.358e-06/0.6224, allocations: 0 / 0.4926 GB, free: 10.88 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001288/0.6226, allocations: 314.8 kB / 0.4929 GB, free: 10.57 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001081/0.6227, allocations: 39.98 kB / 0.4929 GB, free: 10.53 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001018/0.6228, allocations: 39.98 kB / 0.493 GB, free: 10.49 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001176/0.6229, allocations: 35.98 kB / 0.493 GB, free: 10.45 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.6229, allocations: 0 / 0.493 GB, free: 10.45 MB / 426.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003151/0.6233, allocations: 129.8 kB / 0.4931 GB, free: 10.32 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.022e-05/0.6233, allocations: 4 kB / 0.4931 GB, free: 10.32 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.614e-06/0.6233, allocations: 0 / 0.4931 GB, free: 10.32 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.736e-05/0.6233, allocations: 0 / 0.4931 GB, free: 10.32 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002497/0.6236, allocations: 32.36 kB / 0.4932 GB, free: 10.29 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.118e-05/0.6236, allocations: 11.95 kB / 0.4932 GB, free: 10.27 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001372/0.6238, allocations: 11.98 kB / 0.4932 GB, free: 10.26 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.096e-05/0.6238, allocations: 8 kB / 0.4932 GB, free: 10.25 MB / 426.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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * 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.569e-05/0.6239, allocations: 108.9 kB / 0.4933 GB, free: 10.14 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.474e-05/0.624, allocations: 15.81 kB / 0.4933 GB, free: 10.12 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000421/0.6244, allocations: 146.2 kB / 0.4935 GB, free: 9.977 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.053e-06/0.6244, allocations: 8 kB / 0.4935 GB, free: 9.969 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.6245, allocations: 0 / 0.4935 GB, free: 9.969 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.286e-06/0.6245, allocations: 7.938 kB / 0.4935 GB, free: 9.961 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008923/0.6254, allocations: 472 kB / 0.4939 GB, free: 9.438 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.917e-06/0.6254, allocations: 3.938 kB / 0.4939 GB, free: 9.434 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002314/0.6256, allocations: 36.03 kB / 0.494 GB, free: 9.398 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.937e-06/0.6257, allocations: 3.953 kB / 0.494 GB, free: 9.395 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.949e-05/0.6257, allocations: 4 kB / 0.494 GB, free: 9.391 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.877e-06/0.6257, allocations: 0 / 0.494 GB, free: 9.391 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.08e-06/0.6257, allocations: 3.984 kB / 0.494 GB, free: 9.387 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003873/0.6261, allocations: 264.4 kB / 0.4942 GB, free: 9.094 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.005e-05/0.6262, allocations: 93.02 kB / 0.4943 GB, free: 8.984 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.899e-05/0.6263, allocations: 0 / 0.4943 GB, free: 8.984 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001706/0.6264, allocations: 15.98 kB / 0.4943 GB, free: 8.969 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.987e-05/0.6265, allocations: 11.98 kB / 0.4943 GB, free: 8.957 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.698e-05/0.6265, allocations: 4 kB / 0.4944 GB, free: 8.953 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0001753/0.6267, allocations: 137.3 kB / 0.4945 GB, free: 8.82 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.6267, allocations: 0 / 0.4945 GB, free: 8.82 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.000381/0.6271, allocations: 31.94 kB / 0.4945 GB, free: 8.789 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.002001/0.6291, allocations: 1.273 MB / 0.4958 GB, free: 7.629 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.000349/0.6295, allocations: 95.86 kB / 0.4958 GB, free: 7.535 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.6296, allocations: 0 / 0.4958 GB, free: 7.535 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00014/0.6297, allocations: 59.86 kB / 0.4959 GB, free: 7.477 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003469/0.6301, allocations: 27.95 kB / 0.4959 GB, free: 7.449 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009251/0.631, allocations: 306.3 kB / 0.4962 GB, free: 7.102 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003561/0.6314, allocations: 0.7237 MB / 0.4969 GB, free: 6.352 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001235/0.6315, allocations: 35.42 kB / 0.497 GB, free: 6.316 MB / 426.7 MB Notification: Performance of SimCode: time 1.102e-06/0.6315, allocations: 0 / 0.497 GB, free: 6.316 MB / 426.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"." "-I/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/C-Sources" -DUSE_LOGGER -c -o OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Dv_Test24CalcHelperMain.o OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Dv_Test24CalcHelperMain.cpp In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Dv_Test24CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Dv_Test24FMU.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_trunk_cpp_ModelicaTest_Tables_CombiTable2Dv_Test24.so OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Dv_Test24CalcHelperMain.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 trunk/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 trunk/Resources/Library/x86_64-linux" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/Library/x86_64-linux" "-L/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/Library/linux64" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/Library/linux64" "-L/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/Library" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/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_trunk_cpp_ModelicaTest_Tables_CombiTable2Dv_Test24_FMU.makefile:93: recipe for target 'ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Dv_Test24.fmu' failed make: *** [ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Dv_Test24.fmu] Error 1