Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTable2Ds.Test22,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test22",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.472/2.472, allocations: 270 MB / 282.6 MB, free: 1.848 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.705e-05/3.709e-05, allocations: 8 kB / 347.1 MB, free: 3.141 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4158/0.4159, allocations: 61.87 MB / 408.9 MB, free: 10.68 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1631/0.579, allocations: 89.54 MB / 498.5 MB, free: 1.008 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002775/0.5794, allocations: 75.95 kB / 498.5 MB, free: 0.9336 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03826/0.6176, allocations: 8.875 MB / 0.4955 GB, free: 8.031 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.6177, allocations: 0 / 0.4955 GB, free: 8.031 MB / 426.7 MB Notification: Performance of Transformations before backend: time 4.549e-05/0.6177, allocations: 12 kB / 0.4955 GB, free: 8.02 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0009525/0.6187, allocations: 0.6258 MB / 0.4961 GB, free: 7.348 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.744e-05/0.6188, allocations: 12.03 kB / 0.4962 GB, free: 7.336 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.679e-05/0.6188, allocations: 34.56 kB / 0.4962 GB, free: 7.293 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001225/0.619, allocations: 55.33 kB / 0.4962 GB, free: 7.238 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00103/0.62, allocations: 475 kB / 0.4967 GB, free: 6.734 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.061e-05/0.6201, allocations: 15.94 kB / 0.4967 GB, free: 6.719 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.485e-05/0.6201, allocations: 11.94 kB / 0.4967 GB, free: 6.707 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002815/0.6204, allocations: 112 kB / 0.4968 GB, free: 6.586 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.576e-05/0.6204, allocations: 0 / 0.4968 GB, free: 6.586 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.908e-05/0.6205, allocations: 4 kB / 0.4968 GB, free: 6.582 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.288e-06/0.6205, allocations: 4 kB / 0.4968 GB, free: 6.578 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001898/0.6207, allocations: 59.92 kB / 0.4969 GB, free: 6.52 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00144/0.6221, allocations: 0.7034 MB / 0.4976 GB, free: 5.762 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002243/0.6224, allocations: 105.2 kB / 0.4977 GB, free: 5.641 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.293e-05/0.6225, allocations: 33.84 kB / 0.4977 GB, free: 5.602 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.862e-05/0.6225, allocations: 11.97 kB / 0.4977 GB, free: 5.59 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.793e-05/0.6226, allocations: 34.56 kB / 0.4978 GB, free: 5.547 MB / 426.7 MB Notification: Performance of pre-optimization done (n=10): time 2.705e-06/0.6226, allocations: 0 / 0.4978 GB, free: 5.547 MB / 426.7 MB Notification: Performance of matching and sorting (n=16): time 0.001587/0.6242, allocations: 434.4 kB / 0.4982 GB, free: 5.113 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.029e-05/0.6243, allocations: 93.02 kB / 0.4983 GB, free: 5.004 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001574/0.6258, allocations: 0.7783 MB / 0.499 GB, free: 4.215 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.877e-05/0.6259, allocations: 25.7 kB / 0.499 GB, free: 4.184 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002411/0.6261, allocations: 262.7 kB / 0.4993 GB, free: 3.922 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.468e-05/0.6262, allocations: 55.2 kB / 0.4994 GB, free: 3.867 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.651e-05/0.6262, allocations: 4.219 kB / 0.4994 GB, free: 3.863 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001246/0.6264, allocations: 318.8 kB / 0.4997 GB, free: 3.543 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001351/0.6265, allocations: 47.92 kB / 0.4997 GB, free: 3.496 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001429/0.6267, allocations: 47.83 kB / 0.4998 GB, free: 3.445 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001538/0.6269, allocations: 43.98 kB / 0.4998 GB, free: 3.402 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.6269, allocations: 0 / 0.4998 GB, free: 3.402 MB / 426.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.00041/0.6273, allocations: 141.5 kB / 0.4999 GB, free: 3.258 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.001e-05/0.6273, allocations: 4 kB / 0.4999 GB, free: 3.254 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.753e-06/0.6273, allocations: 0 / 0.4999 GB, free: 3.254 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.557e-05/0.6274, allocations: 4 kB / 0.4999 GB, free: 3.25 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003776/0.6277, allocations: 43.97 kB / 0.5 GB, free: 3.207 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.492e-05/0.6278, allocations: 4 kB / 0.5 GB, free: 3.203 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002939/0.6281, allocations: 15.98 kB / 0.5 GB, free: 3.188 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.477e-05/0.6281, allocations: 4 kB / 0.5 GB, free: 3.184 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (16): * Single equations (assignments): 16 * 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 0.0001023/0.6282, allocations: 120.9 kB / 0.5001 GB, free: 3.059 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001584/0.6284, allocations: 59.25 kB / 0.5002 GB, free: 3 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006792/0.6291, allocations: 230.4 kB / 0.5004 GB, free: 2.77 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.164e-06/0.6291, allocations: 4 kB / 0.5004 GB, free: 2.766 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.6291, allocations: 0 / 0.5004 GB, free: 2.766 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.6291, allocations: 0 / 0.5004 GB, free: 2.766 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001613/0.6308, allocations: 0.8097 MB / 0.5012 GB, free: 1.898 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.252e-06/0.6308, allocations: 4 kB / 0.5012 GB, free: 1.895 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003284/0.6311, allocations: 35.97 kB / 0.5012 GB, free: 1.859 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.486e-06/0.6312, allocations: 7.938 kB / 0.5012 GB, free: 1.852 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.901e-05/0.6312, allocations: 0 / 0.5012 GB, free: 1.852 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.705e-06/0.6312, allocations: 4 kB / 0.5012 GB, free: 1.848 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.6312, allocations: 7.938 kB / 0.5012 GB, free: 1.84 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005722/0.6318, allocations: 368.1 kB / 0.5016 GB, free: 1.457 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000319/0.6321, allocations: 180.4 kB / 0.5018 GB, free: 1.262 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.672e-05/0.6322, allocations: 4 kB / 0.5018 GB, free: 1.258 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003482/0.6326, allocations: 23.98 kB / 0.5018 GB, free: 1.234 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.348e-05/0.6327, allocations: 11.94 kB / 0.5018 GB, free: 1.223 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.435e-05/0.6327, allocations: 12 kB / 0.5018 GB, free: 1.211 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001251/0.634, allocations: 0.6147 MB / 0.5024 GB, free: 0.5977 MB / 426.7 MB Notification: Performance of sort global known variables: time 6.81e-07/0.634, allocations: 0 / 0.5024 GB, free: 0.5977 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.000593/0.6346, allocations: 75.94 kB / 0.5025 GB, free: 0.5234 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 (16): * Single equations (assignments): 16 * 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.002013/0.6366, allocations: 1.286 MB / 0.5037 GB, free: 15.34 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0003878/0.637, allocations: 107.9 kB / 0.5038 GB, free: 15.23 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.637, allocations: 0 / 0.5038 GB, free: 15.23 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001836/0.6372, allocations: 63.92 kB / 0.5039 GB, free: 15.17 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007078/0.638, allocations: 70.8 kB / 0.504 GB, free: 15.1 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002301/0.6403, allocations: 0.8565 MB / 0.5048 GB, free: 14.2 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005703/0.6409, allocations: 0.8654 MB / 0.5057 GB, free: 13.3 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004188/0.6413, allocations: 171.3 kB / 0.5058 GB, free: 13.14 MB / 442.7 MB Notification: Performance of SimCode: time 1.082e-06/0.6413, allocations: 0 / 0.5058 GB, free: 13.14 MB / 442.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_Test22CalcHelperMain.o OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test22CalcHelperMain.cpp In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test22CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test22FMU.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_Test22.so OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test22CalcHelperMain.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_Test22_FMU.makefile:93: recipe for target 'ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test22.fmu' failed make: *** [ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test22.fmu] Error 1