Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTable2Dv.Test5,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Dv_Test5",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.515/2.515, allocations: 270 MB / 282.6 MB, free: 1.867 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 4.436e-05/4.445e-05, allocations: 4 kB / 347 MB, free: 3.172 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4291/0.4292, allocations: 61.88 MB / 408.9 MB, free: 10.66 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1869/0.6161, allocations: 88.93 MB / 497.9 MB, free: 1.605 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002816/0.6165, allocations: 67.97 kB / 497.9 MB, free: 1.539 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03102/0.6475, allocations: 7.94 MB / 0.494 GB, free: 9.578 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.004e-06/0.6476, allocations: 0 / 0.494 GB, free: 9.578 MB / 426.7 MB Notification: Performance of Transformations before backend: time 3.66e-05/0.6476, allocations: 4 kB / 0.494 GB, free: 9.574 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0007401/0.6484, allocations: 0.5559 MB / 0.4946 GB, free: 8.973 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.141e-05/0.6484, allocations: 8.031 kB / 0.4946 GB, free: 8.965 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.01e-05/0.6485, allocations: 46.48 kB / 0.4946 GB, free: 8.91 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001008/0.6486, allocations: 43.44 kB / 0.4947 GB, free: 8.867 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006669/0.6493, allocations: 327.3 kB / 0.495 GB, free: 8.508 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.258e-05/0.6493, allocations: 0 / 0.495 GB, free: 8.508 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.397e-05/0.6493, allocations: 12 kB / 0.495 GB, free: 8.496 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001459/0.6495, allocations: 45.69 kB / 0.495 GB, free: 8.445 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.268e-05/0.6495, allocations: 3.938 kB / 0.495 GB, free: 8.441 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.341e-05/0.6495, allocations: 4 kB / 0.495 GB, free: 8.438 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.097e-06/0.6496, allocations: 0 / 0.495 GB, free: 8.438 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.859e-05/0.6497, allocations: 23.92 kB / 0.4951 GB, free: 8.414 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008931/0.6506, allocations: 448.7 kB / 0.4955 GB, free: 7.926 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002429/0.6508, allocations: 42.56 kB / 0.4955 GB, free: 7.875 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.141e-05/0.6509, allocations: 12.84 kB / 0.4955 GB, free: 7.859 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.166e-05/0.6509, allocations: 0 / 0.4955 GB, free: 7.859 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.222e-05/0.651, allocations: 38.5 kB / 0.4956 GB, free: 7.812 MB / 426.7 MB Notification: Performance of pre-optimization done (n=3): time 2.094e-06/0.651, allocations: 0 / 0.4956 GB, free: 7.812 MB / 426.7 MB Notification: Performance of matching and sorting (n=5): time 0.0006448/0.6516, allocations: 200 kB / 0.4958 GB, free: 7.609 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.451e-05/0.6517, allocations: 55.41 kB / 0.4958 GB, free: 7.543 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001892/0.6536, allocations: 0.7811 MB / 0.4966 GB, free: 6.754 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.03e-05/0.6536, allocations: 25.7 kB / 0.4966 GB, free: 6.723 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002145/0.6539, allocations: 246.6 kB / 0.4968 GB, free: 6.48 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.418e-05/0.6539, allocations: 15.75 kB / 0.4968 GB, free: 6.465 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.921e-06/0.6539, allocations: 3.938 kB / 0.4969 GB, free: 6.461 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001199/0.6541, allocations: 314.8 kB / 0.4972 GB, free: 6.145 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.747e-05/0.6541, allocations: 12 kB / 0.4972 GB, free: 6.133 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.003e-05/0.6542, allocations: 16 kB / 0.4972 GB, free: 6.117 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.536e-05/0.6542, allocations: 15.98 kB / 0.4972 GB, free: 6.102 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.6543, allocations: 0 / 0.4972 GB, free: 6.102 MB / 426.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.000173/0.6544, allocations: 61.69 kB / 0.4973 GB, free: 6.035 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.97e-05/0.6545, allocations: 8 kB / 0.4973 GB, free: 6.027 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.031e-06/0.6545, allocations: 0 / 0.4973 GB, free: 6.027 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.577e-05/0.6545, allocations: 0 / 0.4973 GB, free: 6.027 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001764/0.6547, allocations: 15.98 kB / 0.4973 GB, free: 6.012 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.11e-05/0.6547, allocations: 7.891 kB / 0.4973 GB, free: 6.004 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001476/0.6549, allocations: 12 kB / 0.4973 GB, free: 5.992 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.828e-06/0.6549, allocations: 0 / 0.4973 GB, free: 5.992 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 (5): * Single equations (assignments): 5 * 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 7.813e-05/0.655, allocations: 104.9 kB / 0.4974 GB, free: 5.883 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000118/0.6551, allocations: 47.44 kB / 0.4974 GB, free: 5.836 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003217/0.6555, allocations: 125.1 kB / 0.4976 GB, free: 5.699 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.088e-06/0.6555, allocations: 0 / 0.4976 GB, free: 5.699 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.6555, allocations: 0 / 0.4976 GB, free: 5.699 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.454e-06/0.6555, allocations: 7.953 kB / 0.4976 GB, free: 5.691 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001074/0.6566, allocations: 0.569 MB / 0.4981 GB, free: 5.066 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.649e-06/0.6566, allocations: 4 kB / 0.4981 GB, free: 5.062 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000123/0.6567, allocations: 15.98 kB / 0.4981 GB, free: 5.047 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.651e-06/0.6568, allocations: 4 kB / 0.4981 GB, free: 5.043 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.048e-05/0.6568, allocations: 0 / 0.4981 GB, free: 5.043 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.173e-06/0.6568, allocations: 3.953 kB / 0.4982 GB, free: 5.039 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.6568, allocations: 3.938 kB / 0.4982 GB, free: 5.035 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002844/0.6571, allocations: 195 kB / 0.4983 GB, free: 4.828 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002728/0.6574, allocations: 164.5 kB / 0.4985 GB, free: 4.648 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.329e-05/0.6575, allocations: 4 kB / 0.4985 GB, free: 4.645 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001655/0.6576, allocations: 11.98 kB / 0.4985 GB, free: 4.633 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.582e-05/0.6577, allocations: 7.953 kB / 0.4985 GB, free: 4.625 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.985e-06/0.6577, allocations: 0 / 0.4985 GB, free: 4.625 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001202/0.6589, allocations: 0.6381 MB / 0.4991 GB, free: 3.988 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.307e-06/0.659, allocations: 0 / 0.4991 GB, free: 3.988 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0005006/0.6595, allocations: 67.86 kB / 0.4992 GB, free: 3.922 MB / 426.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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 5 * 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.001769/0.6613, allocations: 1.028 MB / 0.5002 GB, free: 3 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0001994/0.6615, allocations: 35.94 kB / 0.5002 GB, free: 2.965 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.6615, allocations: 0 / 0.5002 GB, free: 2.965 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 6.488e-05/0.6616, allocations: 23.98 kB / 0.5003 GB, free: 2.941 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004489/0.6621, allocations: 24.89 kB / 0.5003 GB, free: 2.914 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002249/0.6643, allocations: 0.8821 MB / 0.5012 GB, free: 1.988 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005416/0.6649, allocations: 0.8301 MB / 0.502 GB, free: 1.133 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002918/0.6652, allocations: 119.6 kB / 0.5021 GB, free: 1.016 MB / 426.7 MB Notification: Performance of SimCode: time 1.332e-06/0.6653, allocations: 0 / 0.5021 GB, free: 1.016 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_Test5CalcHelperMain.o OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Dv_Test5CalcHelperMain.cpp In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Dv_Test5CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Dv_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_trunk_cpp_ModelicaTest_Tables_CombiTable2Dv_Test5.so OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Dv_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 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_Test5_FMU.makefile:93: recipe for target 'ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Dv_Test5.fmu' failed make: *** [ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Dv_Test5.fmu] Error 1