Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTable2Ds.Test6,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test6",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.524/2.525, allocations: 270 MB / 282.6 MB, free: 1.809 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.239e-05/3.254e-05, allocations: 4 kB / 347.1 MB, free: 3.102 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3956/0.3956, allocations: 61.86 MB / 408.9 MB, free: 10.63 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1615/0.5572, allocations: 88.42 MB / 497.3 MB, free: 2.086 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002654/0.5575, allocations: 75.94 kB / 497.4 MB, free: 2.012 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02963/0.5872, allocations: 7.905 MB / 0.4935 GB, free: 10.09 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.5872, allocations: 4 kB / 0.4935 GB, free: 10.08 MB / 426.7 MB Notification: Performance of Transformations before backend: time 2.915e-05/0.5873, allocations: 4 kB / 0.4935 GB, free: 10.08 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.0007786/0.588, allocations: 0.5598 MB / 0.494 GB, free: 9.473 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.742e-05/0.5881, allocations: 8.031 kB / 0.494 GB, free: 9.465 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.926e-05/0.5882, allocations: 30.56 kB / 0.4941 GB, free: 9.426 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001044/0.5883, allocations: 47.44 kB / 0.4941 GB, free: 9.379 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006705/0.589, allocations: 335.2 kB / 0.4944 GB, free: 9.012 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.447e-05/0.589, allocations: 4 kB / 0.4944 GB, free: 9.008 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.168e-05/0.589, allocations: 0 / 0.4944 GB, free: 9.008 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001359/0.5892, allocations: 49.69 kB / 0.4945 GB, free: 8.953 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.293e-05/0.5892, allocations: 3.938 kB / 0.4945 GB, free: 8.949 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.093e-05/0.5892, allocations: 0 / 0.4945 GB, free: 8.949 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.2e-06/0.5892, allocations: 0 / 0.4945 GB, free: 8.949 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.059e-05/0.5893, allocations: 19.94 kB / 0.4945 GB, free: 8.93 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007808/0.5901, allocations: 436.7 kB / 0.4949 GB, free: 8.453 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001018/0.5902, allocations: 34.58 kB / 0.495 GB, free: 8.41 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.253e-05/0.5903, allocations: 16.86 kB / 0.495 GB, free: 8.391 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.799e-05/0.5903, allocations: 80 / 0.495 GB, free: 8.391 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.714e-05/0.5904, allocations: 30.56 kB / 0.495 GB, free: 8.352 MB / 426.7 MB Notification: Performance of pre-optimization done (n=4): time 1.373e-06/0.5904, allocations: 4 kB / 0.495 GB, free: 8.348 MB / 426.7 MB Notification: Performance of matching and sorting (n=7): time 0.0007664/0.5912, allocations: 228 kB / 0.4952 GB, free: 8.117 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.848e-05/0.5912, allocations: 51.41 kB / 0.4953 GB, free: 8.055 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001923/0.5932, allocations: 0.7733 MB / 0.496 GB, free: 7.273 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.464e-05/0.5932, allocations: 29.7 kB / 0.4961 GB, free: 7.238 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002139/0.5934, allocations: 242.4 kB / 0.4963 GB, free: 7 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.679e-05/0.5935, allocations: 19.72 kB / 0.4963 GB, free: 6.98 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.698e-06/0.5935, allocations: 4 kB / 0.4963 GB, free: 6.977 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001393/0.5937, allocations: 310.8 kB / 0.4966 GB, free: 6.664 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.087e-05/0.5937, allocations: 16 kB / 0.4966 GB, free: 6.648 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.074e-05/0.5938, allocations: 15.94 kB / 0.4966 GB, free: 6.633 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.074e-05/0.5939, allocations: 16.22 kB / 0.4967 GB, free: 6.617 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.282e-06/0.5939, allocations: 0 / 0.4967 GB, free: 6.617 MB / 426.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002003/0.5941, allocations: 77.66 kB / 0.4967 GB, free: 6.535 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.918e-05/0.5941, allocations: 4 kB / 0.4967 GB, free: 6.531 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.1e-06/0.5941, allocations: 0 / 0.4967 GB, free: 6.531 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.39e-05/0.5942, allocations: 4 kB / 0.4967 GB, free: 6.527 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002217/0.5944, allocations: 23.98 kB / 0.4968 GB, free: 6.504 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.017e-05/0.5944, allocations: 3.953 kB / 0.4968 GB, free: 6.5 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001702/0.5946, allocations: 15.98 kB / 0.4968 GB, free: 6.484 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.363e-05/0.5946, allocations: 4 kB / 0.4968 GB, free: 6.48 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 (7): * Single equations (assignments): 7 * 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.872e-05/0.5947, allocations: 112.9 kB / 0.4969 GB, free: 6.363 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001193/0.5948, allocations: 39.44 kB / 0.4969 GB, free: 6.324 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003249/0.5952, allocations: 129.5 kB / 0.4971 GB, free: 6.188 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.442e-06/0.5952, allocations: 3.984 kB / 0.4971 GB, free: 6.184 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.5952, allocations: 0 / 0.4971 GB, free: 6.184 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.288e-06/0.5952, allocations: 7.953 kB / 0.4971 GB, free: 6.176 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001159/0.5964, allocations: 0.5842 MB / 0.4976 GB, free: 5.535 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.275e-06/0.5964, allocations: 0 / 0.4976 GB, free: 5.535 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001748/0.5966, allocations: 23.98 kB / 0.4977 GB, free: 5.512 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.117e-06/0.5966, allocations: 3.938 kB / 0.4977 GB, free: 5.508 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.537e-05/0.5966, allocations: 4 kB / 0.4977 GB, free: 5.504 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.499e-06/0.5967, allocations: 3.953 kB / 0.4977 GB, free: 5.5 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.275e-06/0.5967, allocations: 3.938 kB / 0.4977 GB, free: 5.496 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003212/0.597, allocations: 207.1 kB / 0.4979 GB, free: 5.277 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002949/0.5973, allocations: 172.5 kB / 0.498 GB, free: 5.09 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.294e-05/0.5974, allocations: 4 kB / 0.498 GB, free: 5.086 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002165/0.5976, allocations: 15.98 kB / 0.4981 GB, free: 5.07 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.464e-05/0.5977, allocations: 7.953 kB / 0.4981 GB, free: 5.062 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.036e-06/0.5977, allocations: 0 / 0.4981 GB, free: 5.062 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001161/0.5989, allocations: 0.638 MB / 0.4987 GB, free: 4.426 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.5989, allocations: 0 / 0.4987 GB, free: 4.426 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0004496/0.5993, allocations: 63.98 kB / 0.4987 GB, free: 4.363 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 (7): * Single equations (assignments): 7 * 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.001696/0.6011, allocations: 1.04 MB / 0.4998 GB, free: 3.43 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0001841/0.6013, allocations: 43.94 kB / 0.4998 GB, free: 3.387 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.6013, allocations: 0 / 0.4998 GB, free: 3.387 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 7.274e-05/0.6014, allocations: 20 kB / 0.4998 GB, free: 3.367 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000389/0.6018, allocations: 26.03 kB / 0.4998 GB, free: 3.344 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002127/0.6039, allocations: 0.8785 MB / 0.5007 GB, free: 2.422 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006147/0.6045, allocations: 0.8379 MB / 0.5015 GB, free: 1.559 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002726/0.6048, allocations: 107.7 kB / 0.5016 GB, free: 1.453 MB / 426.7 MB Notification: Performance of SimCode: time 1.493e-06/0.6048, allocations: 0 / 0.5016 GB, free: 1.453 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_Test6CalcHelperMain.o OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test6CalcHelperMain.cpp In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test6CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test6FMU.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_Test6.so OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test6CalcHelperMain.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_Test6_FMU.makefile:93: recipe for target 'ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test6.fmu' failed make: *** [ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test6.fmu] Error 1