Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTable2Ds.Test28,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test28",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.794/2.794, allocations: 270 MB / 282.6 MB, free: 1.871 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.749e-05/3.757e-05, allocations: 4 kB / 347 MB, free: 3.145 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.418/0.4181, allocations: 61.88 MB / 408.9 MB, free: 10.66 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1773/0.5955, allocations: 88.54 MB / 497.5 MB, free: 1.996 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002677/0.5958, allocations: 67.97 kB / 497.5 MB, free: 1.93 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02045/0.6163, allocations: 4.628 MB / 0.4904 GB, free: 13.29 MB / 426.7 MB Notification: Performance of FrontEnd: time 6.312e-06/0.6163, allocations: 0 / 0.4904 GB, free: 13.29 MB / 426.7 MB Notification: Performance of Transformations before backend: time 2.401e-05/0.6164, allocations: 7.938 kB / 0.4904 GB, free: 13.28 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.0006001/0.617, allocations: 406.1 kB / 0.4908 GB, free: 12.84 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.267e-05/0.617, allocations: 8.031 kB / 0.4908 GB, free: 12.83 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.422e-05/0.6171, allocations: 38.55 kB / 0.4908 GB, free: 12.79 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.65e-05/0.6172, allocations: 11.84 kB / 0.4908 GB, free: 12.77 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003287/0.6175, allocations: 202.8 kB / 0.491 GB, free: 12.54 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.582e-05/0.6175, allocations: 8 kB / 0.491 GB, free: 12.53 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.509e-05/0.6176, allocations: 3.938 kB / 0.491 GB, free: 12.52 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001563/0.6177, allocations: 53.69 kB / 0.4911 GB, free: 12.46 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.31e-05/0.6178, allocations: 0 / 0.4911 GB, free: 12.46 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.399e-05/0.6178, allocations: 8 kB / 0.4911 GB, free: 12.46 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.671e-06/0.6178, allocations: 0 / 0.4911 GB, free: 12.46 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.086e-05/0.6179, allocations: 20 kB / 0.4911 GB, free: 12.44 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005748/0.6185, allocations: 308.7 kB / 0.4914 GB, free: 12.09 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002467/0.6188, allocations: 42.56 kB / 0.4915 GB, free: 12.04 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.342e-05/0.6188, allocations: 20.98 kB / 0.4915 GB, free: 12.01 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.687e-05/0.6189, allocations: 4 kB / 0.4915 GB, free: 12.01 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.869e-05/0.6189, allocations: 34.66 kB / 0.4915 GB, free: 11.96 MB / 426.7 MB Notification: Performance of pre-optimization done (n=5): time 2.344e-06/0.6189, allocations: 3.938 kB / 0.4915 GB, free: 11.96 MB / 426.7 MB Notification: Performance of matching and sorting (n=11): time 0.0009335/0.6199, allocations: 221 kB / 0.4917 GB, free: 11.74 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.445e-05/0.6199, allocations: 51.41 kB / 0.4918 GB, free: 11.68 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002851/0.6202, allocations: 176 kB / 0.4919 GB, free: 11.5 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.478e-05/0.6203, allocations: 29.7 kB / 0.492 GB, free: 11.46 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.096e-05/0.6204, allocations: 158.6 kB / 0.4921 GB, free: 11.31 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.236e-05/0.6204, allocations: 39.39 kB / 0.4922 GB, free: 11.27 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.01e-05/0.6205, allocations: 4 kB / 0.4922 GB, free: 11.27 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001441/0.6206, allocations: 314.8 kB / 0.4925 GB, free: 10.95 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.186e-05/0.6207, allocations: 24 kB / 0.4925 GB, free: 10.93 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.517e-05/0.6208, allocations: 31.94 kB / 0.4925 GB, free: 10.89 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.68e-05/0.6209, allocations: 27.98 kB / 0.4925 GB, free: 10.87 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.6209, allocations: 0 / 0.4925 GB, free: 10.87 MB / 426.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002571/0.6212, allocations: 94.02 kB / 0.4926 GB, free: 10.77 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.969e-05/0.6212, allocations: 4 kB / 0.4926 GB, free: 10.77 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.083e-06/0.6212, allocations: 0 / 0.4926 GB, free: 10.77 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.733e-05/0.6212, allocations: 0 / 0.4926 GB, free: 10.77 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002485/0.6215, allocations: 35.91 kB / 0.4927 GB, free: 10.73 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.199e-05/0.6215, allocations: 7.953 kB / 0.4927 GB, free: 10.72 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001454/0.6217, allocations: 23.89 kB / 0.4927 GB, free: 10.7 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.669e-05/0.6217, allocations: 7.938 kB / 0.4927 GB, free: 10.69 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 (11): * Single equations (assignments): 11 * 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 9.422e-05/0.6218, allocations: 105 kB / 0.4928 GB, free: 10.58 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.227e-05/0.6219, allocations: 11.91 kB / 0.4928 GB, free: 10.57 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003935/0.6223, allocations: 126.2 kB / 0.4929 GB, free: 10.44 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.305e-06/0.6223, allocations: 11.94 kB / 0.493 GB, free: 10.43 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.232e-06/0.6223, allocations: 0 / 0.493 GB, free: 10.43 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.463e-06/0.6224, allocations: 3.953 kB / 0.493 GB, free: 10.43 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008068/0.6232, allocations: 444 kB / 0.4934 GB, free: 9.93 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.386e-06/0.6232, allocations: 0 / 0.4934 GB, free: 9.93 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002263/0.6234, allocations: 39.98 kB / 0.4934 GB, free: 9.891 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.098e-05/0.6235, allocations: 7.953 kB / 0.4934 GB, free: 9.883 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.317e-05/0.6235, allocations: 0 / 0.4934 GB, free: 9.883 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.725e-06/0.6235, allocations: 7.984 kB / 0.4934 GB, free: 9.875 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.6235, allocations: 0 / 0.4934 GB, free: 9.875 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000337/0.6238, allocations: 232.5 kB / 0.4937 GB, free: 9.613 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.507e-05/0.624, allocations: 100.9 kB / 0.4938 GB, free: 9.496 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.072e-05/0.624, allocations: 0 / 0.4938 GB, free: 9.496 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001749/0.6242, allocations: 23.92 kB / 0.4938 GB, free: 9.473 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.561e-05/0.6243, allocations: 7.984 kB / 0.4938 GB, free: 9.465 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.489e-05/0.6243, allocations: 4 kB / 0.4938 GB, free: 9.461 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0002097/0.6245, allocations: 150.3 kB / 0.4939 GB, free: 9.316 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.6245, allocations: 0 / 0.4939 GB, free: 9.316 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0004078/0.6249, allocations: 35.94 kB / 0.494 GB, free: 9.281 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 11 * 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.002002/0.627, allocations: 1.262 MB / 0.4952 GB, free: 8.133 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0002829/0.6273, allocations: 71.94 kB / 0.4953 GB, free: 8.062 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.6273, allocations: 0 / 0.4953 GB, free: 8.062 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001112/0.6274, allocations: 39.94 kB / 0.4953 GB, free: 8.023 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003458/0.6278, allocations: 20.05 kB / 0.4953 GB, free: 8.004 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009023/0.6287, allocations: 306.1 kB / 0.4956 GB, free: 7.652 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003641/0.6291, allocations: 0.716 MB / 0.4963 GB, free: 6.91 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001274/0.6292, allocations: 35.42 kB / 0.4963 GB, free: 6.875 MB / 426.7 MB Notification: Performance of SimCode: time 1.463e-06/0.6292, allocations: 0 / 0.4963 GB, free: 6.875 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_Test28CalcHelperMain.o OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test28CalcHelperMain.cpp In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test28CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test28FMU.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_Test28.so OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test28CalcHelperMain.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_Test28_FMU.makefile:93: recipe for target 'ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test28.fmu' failed make: *** [ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test28.fmu] Error 1