Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTable2Ds.Test1,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.701/2.701, allocations: 270 MB / 282.6 MB, free: 1.82 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 4.706e-05/4.709e-05, allocations: 7.984 kB / 347 MB, free: 3.102 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4666/0.4667, allocations: 61.88 MB / 408.9 MB, free: 10.64 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1664/0.6332, allocations: 88.59 MB / 497.5 MB, free: 1.926 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002683/0.6335, allocations: 71.95 kB / 497.6 MB, free: 1.855 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03177/0.6653, allocations: 8.365 MB / 0.4941 GB, free: 9.469 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.764e-06/0.6653, allocations: 0 / 0.4941 GB, free: 9.469 MB / 426.7 MB Notification: Performance of Transformations before backend: time 3.091e-05/0.6654, allocations: 4 kB / 0.4941 GB, free: 9.465 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.0007688/0.6661, allocations: 0.5598 MB / 0.4947 GB, free: 8.859 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.206e-05/0.6662, allocations: 12.03 kB / 0.4947 GB, free: 8.848 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.771e-05/0.6663, allocations: 34.56 kB / 0.4947 GB, free: 8.805 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001055/0.6664, allocations: 51.31 kB / 0.4947 GB, free: 8.754 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006639/0.6671, allocations: 323.3 kB / 0.4951 GB, free: 8.398 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.495e-05/0.6671, allocations: 4 kB / 0.4951 GB, free: 8.395 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.351e-05/0.6671, allocations: 4 kB / 0.4951 GB, free: 8.391 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001834/0.6673, allocations: 57.62 kB / 0.4951 GB, free: 8.328 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.749e-05/0.6674, allocations: 0 / 0.4951 GB, free: 8.328 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.664e-05/0.6674, allocations: 0 / 0.4951 GB, free: 8.328 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.152e-06/0.6674, allocations: 0 / 0.4951 GB, free: 8.328 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.253e-05/0.6675, allocations: 23.92 kB / 0.4951 GB, free: 8.305 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009051/0.6684, allocations: 452.6 kB / 0.4956 GB, free: 7.812 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001133/0.6686, allocations: 50.58 kB / 0.4956 GB, free: 7.754 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.85e-05/0.6686, allocations: 8.859 kB / 0.4956 GB, free: 7.742 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.834e-05/0.6687, allocations: 4 kB / 0.4956 GB, free: 7.738 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.842e-05/0.6687, allocations: 30.56 kB / 0.4957 GB, free: 7.699 MB / 426.7 MB Notification: Performance of pre-optimization done (n=4): time 2.354e-06/0.6687, allocations: 0 / 0.4957 GB, free: 7.699 MB / 426.7 MB Notification: Performance of matching and sorting (n=8): time 0.0008244/0.6696, allocations: 240 kB / 0.4959 GB, free: 7.457 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.552e-05/0.6696, allocations: 51.41 kB / 0.4959 GB, free: 7.395 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002032/0.6717, allocations: 0.7772 MB / 0.4967 GB, free: 6.605 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.744e-05/0.6717, allocations: 25.7 kB / 0.4967 GB, free: 6.574 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002226/0.672, allocations: 250.4 kB / 0.497 GB, free: 6.328 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.593e-05/0.672, allocations: 27.64 kB / 0.497 GB, free: 6.301 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.003e-06/0.672, allocations: 0 / 0.497 GB, free: 6.301 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001412/0.6722, allocations: 314.8 kB / 0.4973 GB, free: 5.984 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.243e-05/0.6723, allocations: 16 kB / 0.4973 GB, free: 5.969 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.795e-05/0.6723, allocations: 19.98 kB / 0.4973 GB, free: 5.949 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.028e-05/0.6724, allocations: 19.98 kB / 0.4973 GB, free: 5.93 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.6724, allocations: 0 / 0.4973 GB, free: 5.93 MB / 426.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002111/0.6727, allocations: 77.62 kB / 0.4974 GB, free: 5.848 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.057e-05/0.6727, allocations: 4 kB / 0.4974 GB, free: 5.844 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.6727, allocations: 0 / 0.4974 GB, free: 5.844 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.701e-05/0.6727, allocations: 3.953 kB / 0.4974 GB, free: 5.84 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001947/0.6729, allocations: 23.98 kB / 0.4974 GB, free: 5.816 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.904e-06/0.673, allocations: 0 / 0.4974 GB, free: 5.816 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001636/0.6731, allocations: 8 kB / 0.4975 GB, free: 5.809 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.607e-05/0.6732, allocations: 8 kB / 0.4975 GB, free: 5.801 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 (8): * Single equations (assignments): 8 * 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 8.734e-05/0.6733, allocations: 105 kB / 0.4976 GB, free: 5.691 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001174/0.6734, allocations: 51.36 kB / 0.4976 GB, free: 5.641 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003743/0.6738, allocations: 145.5 kB / 0.4977 GB, free: 5.488 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.883e-06/0.6738, allocations: 3.953 kB / 0.4978 GB, free: 5.484 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.6738, allocations: 0 / 0.4978 GB, free: 5.484 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.398e-06/0.6738, allocations: 0 / 0.4978 GB, free: 5.484 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001235/0.6751, allocations: 0.6089 MB / 0.4983 GB, free: 4.816 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.917e-06/0.6751, allocations: 3.938 kB / 0.4983 GB, free: 4.812 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002084/0.6753, allocations: 27.97 kB / 0.4984 GB, free: 4.785 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.123e-06/0.6753, allocations: 0 / 0.4984 GB, free: 4.785 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.646e-05/0.6754, allocations: 8 kB / 0.4984 GB, free: 4.777 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.358e-06/0.6754, allocations: 0 / 0.4984 GB, free: 4.777 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.6754, allocations: 0 / 0.4984 GB, free: 4.777 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003488/0.6757, allocations: 241.5 kB / 0.4986 GB, free: 4.516 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002808/0.676, allocations: 168.5 kB / 0.4988 GB, free: 4.332 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.232e-05/0.6761, allocations: 0 / 0.4988 GB, free: 4.332 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001806/0.6763, allocations: 12 kB / 0.4988 GB, free: 4.32 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.346e-05/0.6764, allocations: 3.984 kB / 0.4988 GB, free: 4.316 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.153e-05/0.6764, allocations: 4 kB / 0.4988 GB, free: 4.312 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001222/0.6776, allocations: 0.6342 MB / 0.4994 GB, free: 3.68 MB / 426.7 MB Notification: Performance of sort global known variables: time 5.91e-07/0.6776, allocations: 0 / 0.4994 GB, free: 3.68 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0004885/0.6781, allocations: 63.94 kB / 0.4995 GB, free: 3.617 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * 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.002005/0.6801, allocations: 1.194 MB / 0.5006 GB, free: 2.547 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0002037/0.6804, allocations: 48 kB / 0.5007 GB, free: 2.5 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.6804, allocations: 0 / 0.5007 GB, free: 2.5 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 8.295e-05/0.6805, allocations: 23.94 kB / 0.5007 GB, free: 2.477 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004369/0.6809, allocations: 26.08 kB / 0.5007 GB, free: 2.449 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002192/0.6832, allocations: 0.8795 MB / 0.5016 GB, free: 1.523 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000594/0.6838, allocations: 0.834 MB / 0.5024 GB, free: 0.6641 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002801/0.6841, allocations: 119.6 kB / 0.5025 GB, free: 0.5469 MB / 426.7 MB Notification: Performance of SimCode: time 1.423e-06/0.6841, allocations: 0 / 0.5025 GB, free: 0.5469 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_CombiTable2Ds_Test1CalcHelperMain.o OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test1CalcHelperMain.cpp In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test1CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test1FMU.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_CombiTable2Ds_Test1.so OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test1CalcHelperMain.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_CombiTable2Ds_Test1_FMU.makefile:93: recipe for target 'ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test1.fmu' failed make: *** [ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test1.fmu] Error 1