Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTable2Dv.Test4,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Dv_Test4",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.6/2.6, allocations: 270 MB / 282.6 MB, free: 1.824 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.84e-05/3.88e-05, allocations: 3.984 kB / 347.1 MB, free: 3.121 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3929/0.3929, allocations: 61.87 MB / 408.9 MB, free: 10.67 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1637/0.5567, allocations: 88.93 MB / 497.9 MB, free: 1.613 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002828/0.5571, allocations: 67.97 kB / 497.9 MB, free: 1.547 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03108/0.5882, allocations: 7.936 MB / 0.494 GB, free: 9.594 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.824e-06/0.5882, allocations: 0 / 0.494 GB, free: 9.594 MB / 426.7 MB Notification: Performance of Transformations before backend: time 3.905e-05/0.5883, allocations: 8 kB / 0.494 GB, free: 9.586 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.0007314/0.589, allocations: 0.5626 MB / 0.4946 GB, free: 8.98 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.02e-05/0.5891, allocations: 12.03 kB / 0.4946 GB, free: 8.969 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.22e-05/0.5891, allocations: 34.56 kB / 0.4946 GB, free: 8.926 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001377/0.5893, allocations: 43.44 kB / 0.4946 GB, free: 8.883 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000669/0.59, allocations: 335.2 kB / 0.495 GB, free: 8.516 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.229e-05/0.59, allocations: 0 / 0.495 GB, free: 8.516 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.456e-05/0.59, allocations: 8 kB / 0.495 GB, free: 8.508 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001464/0.5902, allocations: 41.69 kB / 0.495 GB, free: 8.461 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.628e-05/0.5902, allocations: 11.94 kB / 0.495 GB, free: 8.449 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.391e-05/0.5903, allocations: 4 kB / 0.495 GB, free: 8.445 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.23e-06/0.5903, allocations: 3.938 kB / 0.495 GB, free: 8.441 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.454e-05/0.5904, allocations: 16 kB / 0.4951 GB, free: 8.426 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009082/0.5913, allocations: 444.7 kB / 0.4955 GB, free: 7.941 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002362/0.5915, allocations: 46.52 kB / 0.4955 GB, free: 7.887 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.847e-05/0.5916, allocations: 8.953 kB / 0.4955 GB, free: 7.875 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.833e-05/0.5916, allocations: 7.984 kB / 0.4955 GB, free: 7.867 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.237e-05/0.5917, allocations: 30.56 kB / 0.4956 GB, free: 7.828 MB / 426.7 MB Notification: Performance of pre-optimization done (n=3): time 2.665e-06/0.5917, allocations: 0 / 0.4956 GB, free: 7.828 MB / 426.7 MB Notification: Performance of matching and sorting (n=5): time 0.0006731/0.5924, allocations: 207.9 kB / 0.4958 GB, free: 7.617 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.521e-05/0.5924, allocations: 59.34 kB / 0.4958 GB, free: 7.547 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001957/0.5944, allocations: 0.7811 MB / 0.4966 GB, free: 6.758 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.429e-05/0.5945, allocations: 25.7 kB / 0.4966 GB, free: 6.727 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002103/0.5947, allocations: 238.6 kB / 0.4968 GB, free: 6.492 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.91e-05/0.5947, allocations: 23.73 kB / 0.4969 GB, free: 6.469 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.182e-06/0.5947, allocations: 0 / 0.4969 GB, free: 6.469 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001193/0.5949, allocations: 310.8 kB / 0.4972 GB, free: 6.156 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.812e-05/0.5949, allocations: 12 kB / 0.4972 GB, free: 6.145 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.91e-05/0.595, allocations: 20 kB / 0.4972 GB, free: 6.125 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.861e-05/0.5951, allocations: 19.92 kB / 0.4972 GB, free: 6.105 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.265e-06/0.5951, allocations: 0 / 0.4972 GB, free: 6.105 MB / 426.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001798/0.5953, allocations: 57.69 kB / 0.4973 GB, free: 6.043 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.974e-05/0.5953, allocations: 4 kB / 0.4973 GB, free: 6.039 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.091e-06/0.5953, allocations: 4 kB / 0.4973 GB, free: 6.035 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.671e-05/0.5953, allocations: 0 / 0.4973 GB, free: 6.035 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001532/0.5955, allocations: 15.98 kB / 0.4973 GB, free: 6.02 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.001e-05/0.5955, allocations: 7.891 kB / 0.4973 GB, free: 6.012 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001759/0.5957, allocations: 12 kB / 0.4973 GB, free: 6 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.385e-05/0.5957, allocations: 4 kB / 0.4973 GB, free: 5.996 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.887e-05/0.5958, allocations: 105 kB / 0.4974 GB, free: 5.887 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001221/0.596, allocations: 43.44 kB / 0.4974 GB, free: 5.844 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003848/0.5964, allocations: 121.1 kB / 0.4976 GB, free: 5.711 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.008e-06/0.5964, allocations: 0 / 0.4976 GB, free: 5.711 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.5964, allocations: 0 / 0.4976 GB, free: 5.711 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.033e-06/0.5964, allocations: 3.953 kB / 0.4976 GB, free: 5.707 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001171/0.5976, allocations: 0.5725 MB / 0.4981 GB, free: 5.078 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/0.5976, allocations: 0 / 0.4981 GB, free: 5.078 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000145/0.5978, allocations: 15.98 kB / 0.4981 GB, free: 5.062 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.134e-06/0.5978, allocations: 0 / 0.4981 GB, free: 5.062 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.174e-05/0.5978, allocations: 384 / 0.4981 GB, free: 5.062 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.903e-06/0.5978, allocations: 3.953 kB / 0.4981 GB, free: 5.059 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.446e-06/0.5979, allocations: 8 kB / 0.4982 GB, free: 5.051 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003126/0.5982, allocations: 203 kB / 0.4983 GB, free: 4.836 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002896/0.5985, allocations: 168.5 kB / 0.4985 GB, free: 4.652 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.407e-05/0.5986, allocations: 0 / 0.4985 GB, free: 4.652 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001692/0.5987, allocations: 11.94 kB / 0.4985 GB, free: 4.641 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.412e-05/0.5988, allocations: 7.938 kB / 0.4985 GB, free: 4.633 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.879e-06/0.5988, allocations: 4 kB / 0.4985 GB, free: 4.629 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001232/0.6001, allocations: 0.6381 MB / 0.4992 GB, free: 3.992 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.6001, allocations: 0 / 0.4992 GB, free: 3.992 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0004928/0.6006, allocations: 59.94 kB / 0.4992 GB, free: 3.934 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.001762/0.6024, allocations: 1.034 MB / 0.5002 GB, free: 3.008 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0001863/0.6026, allocations: 35.92 kB / 0.5003 GB, free: 2.973 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.6026, allocations: 0 / 0.5003 GB, free: 2.973 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 6.207e-05/0.6027, allocations: 20 kB / 0.5003 GB, free: 2.953 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004181/0.6031, allocations: 26.03 kB / 0.5003 GB, free: 2.922 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002199/0.6053, allocations: 0.8705 MB / 0.5011 GB, free: 2.008 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000543/0.6059, allocations: 0.8418 MB / 0.502 GB, free: 1.141 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002848/0.6062, allocations: 119.6 kB / 0.5021 GB, free: 1.023 MB / 426.7 MB Notification: Performance of SimCode: time 1.223e-06/0.6062, allocations: 0 / 0.5021 GB, free: 1.023 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_Test4CalcHelperMain.o OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Dv_Test4CalcHelperMain.cpp In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Dv_Test4CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Dv_Test4FMU.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_Test4.so OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Dv_Test4CalcHelperMain.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_Test4_FMU.makefile:93: recipe for target 'ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Dv_Test4.fmu' failed make: *** [ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Dv_Test4.fmu] Error 1