Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTable2Dv.Test22,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Dv_Test22",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.779/2.779, allocations: 270 MB / 282.6 MB, free: 1.844 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.707e-05/3.711e-05, allocations: 8 kB / 347.1 MB, free: 3.109 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4049/0.4049, allocations: 61.87 MB / 408.9 MB, free: 10.66 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1934/0.5984, allocations: 90 MB / 498.9 MB, free: 0.543 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000281/0.5987, allocations: 71.97 kB / 499 MB, free: 484 kB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0398/0.6386, allocations: 9.093 MB / 0.4962 GB, free: 7.352 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.6386, allocations: 0 / 0.4962 GB, free: 7.352 MB / 426.7 MB Notification: Performance of Transformations before backend: time 4.865e-05/0.6387, allocations: 11.98 kB / 0.4962 GB, free: 7.34 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.0009733/0.6397, allocations: 0.6219 MB / 0.4968 GB, free: 6.672 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.917e-05/0.6397, allocations: 12.03 kB / 0.4968 GB, free: 6.66 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.25e-05/0.6398, allocations: 46.55 kB / 0.4969 GB, free: 6.605 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001351/0.64, allocations: 59.28 kB / 0.4969 GB, free: 6.547 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001119/0.6411, allocations: 475 kB / 0.4974 GB, free: 6.043 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.88e-05/0.6411, allocations: 12 kB / 0.4974 GB, free: 6.031 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.187e-05/0.6412, allocations: 8 kB / 0.4974 GB, free: 6.023 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003487/0.6415, allocations: 139.2 kB / 0.4975 GB, free: 5.875 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.054e-05/0.6416, allocations: 3.906 kB / 0.4975 GB, free: 5.871 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.2e-05/0.6416, allocations: 8 kB / 0.4975 GB, free: 5.863 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.646e-06/0.6416, allocations: 4 kB / 0.4975 GB, free: 5.859 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002381/0.6419, allocations: 71.97 kB / 0.4976 GB, free: 5.789 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001528/0.6434, allocations: 0.7268 MB / 0.4983 GB, free: 5.008 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002556/0.6437, allocations: 109.5 kB / 0.4984 GB, free: 4.883 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001028/0.6438, allocations: 37.84 kB / 0.4984 GB, free: 4.84 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.484e-05/0.6439, allocations: 7.875 kB / 0.4985 GB, free: 4.832 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.088e-05/0.6439, allocations: 38.56 kB / 0.4985 GB, free: 4.785 MB / 426.7 MB Notification: Performance of pre-optimization done (n=10): time 2.936e-06/0.6439, allocations: 0 / 0.4985 GB, free: 4.785 MB / 426.7 MB Notification: Performance of matching and sorting (n=16): time 0.001719/0.6456, allocations: 470.3 kB / 0.4989 GB, free: 4.316 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.255e-05/0.6457, allocations: 77.11 kB / 0.499 GB, free: 4.223 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001654/0.6474, allocations: 0.7939 MB / 0.4998 GB, free: 3.418 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.693e-05/0.6474, allocations: 29.7 kB / 0.4998 GB, free: 3.383 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002229/0.6477, allocations: 270.7 kB / 0.5001 GB, free: 3.113 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.381e-05/0.6478, allocations: 51.2 kB / 0.5001 GB, free: 3.062 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.521e-05/0.6478, allocations: 0 / 0.5001 GB, free: 3.062 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001258/0.6479, allocations: 326.8 kB / 0.5004 GB, free: 2.734 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001798/0.6481, allocations: 43.98 kB / 0.5005 GB, free: 2.691 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001649/0.6483, allocations: 61.7 kB / 0.5005 GB, free: 2.625 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001958/0.6485, allocations: 56.03 kB / 0.5006 GB, free: 2.57 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.6485, allocations: 4 kB / 0.5006 GB, free: 2.566 MB / 426.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004579/0.649, allocations: 153.5 kB / 0.5007 GB, free: 2.41 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.435e-05/0.649, allocations: 7.984 kB / 0.5007 GB, free: 2.402 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.067e-06/0.649, allocations: 7.938 kB / 0.5008 GB, free: 2.395 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.622e-05/0.6491, allocations: 0 / 0.5008 GB, free: 2.395 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003847/0.6495, allocations: 43.91 kB / 0.5008 GB, free: 2.352 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.087e-06/0.6495, allocations: 0 / 0.5008 GB, free: 2.352 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003311/0.6498, allocations: 23.98 kB / 0.5008 GB, free: 2.328 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.551e-05/0.6499, allocations: 4 kB / 0.5008 GB, free: 2.324 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.0001096/0.65, allocations: 116.9 kB / 0.5009 GB, free: 2.203 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001643/0.6502, allocations: 51.34 kB / 0.501 GB, free: 2.152 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007815/0.651, allocations: 262.3 kB / 0.5012 GB, free: 1.891 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.42e-06/0.651, allocations: 4 kB / 0.5012 GB, free: 1.887 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.152e-06/0.651, allocations: 0 / 0.5012 GB, free: 1.887 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.975e-06/0.651, allocations: 4 kB / 0.5012 GB, free: 1.883 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001782/0.6528, allocations: 0.841 MB / 0.5021 GB, free: 0.9844 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.308e-06/0.6528, allocations: 0 / 0.5021 GB, free: 0.9844 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000355/0.6532, allocations: 47.95 kB / 0.5021 GB, free: 0.9375 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.444e-06/0.6532, allocations: 0 / 0.5021 GB, free: 0.9375 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.596e-05/0.6533, allocations: 4 kB / 0.5021 GB, free: 0.9336 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.168e-06/0.6533, allocations: 3.938 kB / 0.5021 GB, free: 0.9297 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.6533, allocations: 0 / 0.5021 GB, free: 0.9297 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006493/0.6539, allocations: 396 kB / 0.5025 GB, free: 0.5195 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000333/0.6543, allocations: 184.4 kB / 0.5027 GB, free: 328 kB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.311e-05/0.6544, allocations: 8 kB / 0.5027 GB, free: 320 kB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003621/0.6548, allocations: 15.98 kB / 0.5027 GB, free: 304 kB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.283e-05/0.6549, allocations: 15.94 kB / 0.5027 GB, free: 288 kB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.301e-05/0.6549, allocations: 4 kB / 0.5027 GB, free: 284 kB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001322/0.6562, allocations: 0.6264 MB / 0.5033 GB, free: 15.65 MB / 442.7 MB Notification: Performance of sort global known variables: time 8.92e-07/0.6563, allocations: 0 / 0.5033 GB, free: 15.65 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0006153/0.6569, allocations: 79.94 kB / 0.5034 GB, free: 15.57 MB / 442.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.002066/0.659, allocations: 1.294 MB / 0.5047 GB, free: 14.38 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.000444/0.6594, allocations: 127.9 kB / 0.5048 GB, free: 14.26 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.6595, allocations: 0 / 0.5048 GB, free: 14.26 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002027/0.6597, allocations: 67.92 kB / 0.5049 GB, free: 14.19 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007821/0.6605, allocations: 74.42 kB / 0.5049 GB, free: 14.12 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002479/0.663, allocations: 0.9073 MB / 0.5058 GB, free: 13.16 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006042/0.6636, allocations: 0.8733 MB / 0.5067 GB, free: 12.26 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004829/0.6641, allocations: 175.3 kB / 0.5068 GB, free: 12.09 MB / 442.7 MB Notification: Performance of SimCode: time 1.272e-06/0.6641, allocations: 4 kB / 0.5068 GB, free: 12.09 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_CombiTable2Dv_Test22CalcHelperMain.o OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Dv_Test22CalcHelperMain.cpp In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Dv_Test22CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Dv_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_CombiTable2Dv_Test22.so OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Dv_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_CombiTable2Dv_Test22_FMU.makefile:93: recipe for target 'ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Dv_Test22.fmu' failed make: *** [ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Dv_Test22.fmu] Error 1