Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTable2Ds.Test3,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.635/2.635, allocations: 270 MB / 282.6 MB, free: 1.953 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.611e-05/3.625e-05, allocations: 4 kB / 347.1 MB, free: 3.211 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4234/0.4235, allocations: 61.85 MB / 408.9 MB, free: 10.73 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1621/0.5857, allocations: 88.54 MB / 497.5 MB, free: 2.07 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002802/0.586, allocations: 75.95 kB / 497.5 MB, free: 1.996 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0333/0.6194, allocations: 8.412 MB / 0.4941 GB, free: 9.562 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.094e-06/0.6194, allocations: 4 kB / 0.4941 GB, free: 9.559 MB / 426.7 MB Notification: Performance of Transformations before backend: time 3.439e-05/0.6195, allocations: 11.98 kB / 0.4941 GB, free: 9.547 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.0007977/0.6203, allocations: 0.5637 MB / 0.4947 GB, free: 8.938 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.888e-05/0.6203, allocations: 8.031 kB / 0.4947 GB, free: 8.93 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.435e-05/0.6204, allocations: 38.56 kB / 0.4947 GB, free: 8.883 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.969e-05/0.6205, allocations: 43.42 kB / 0.4947 GB, free: 8.84 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006492/0.6212, allocations: 335.2 kB / 0.4951 GB, free: 8.473 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.587e-05/0.6212, allocations: 12 kB / 0.4951 GB, free: 8.461 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.529e-05/0.6212, allocations: 0 / 0.4951 GB, free: 8.461 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001565/0.6214, allocations: 57.62 kB / 0.4951 GB, free: 8.398 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.534e-05/0.6214, allocations: 4 kB / 0.4951 GB, free: 8.395 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.226e-05/0.6215, allocations: 0 / 0.4951 GB, free: 8.395 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.395e-06/0.6215, allocations: 0 / 0.4951 GB, free: 8.395 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.021e-05/0.6216, allocations: 23.94 kB / 0.4952 GB, free: 8.371 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008525/0.6224, allocations: 456.6 kB / 0.4956 GB, free: 7.875 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002621/0.6227, allocations: 42.56 kB / 0.4956 GB, free: 7.824 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.603e-05/0.6228, allocations: 16.98 kB / 0.4956 GB, free: 7.805 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.898e-05/0.6228, allocations: 0 / 0.4956 GB, free: 7.805 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.278e-05/0.6229, allocations: 34.56 kB / 0.4957 GB, free: 7.762 MB / 426.7 MB Notification: Performance of pre-optimization done (n=5): time 1.823e-06/0.6229, allocations: 0 / 0.4957 GB, free: 7.762 MB / 426.7 MB Notification: Performance of matching and sorting (n=11): time 0.001074/0.624, allocations: 288 kB / 0.496 GB, free: 7.473 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.311e-05/0.624, allocations: 51.41 kB / 0.496 GB, free: 7.41 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00195/0.626, allocations: 0.7772 MB / 0.4968 GB, free: 6.621 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.97e-05/0.6261, allocations: 25.7 kB / 0.4968 GB, free: 6.59 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002008/0.6263, allocations: 238.4 kB / 0.497 GB, free: 6.355 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.266e-05/0.6263, allocations: 43.44 kB / 0.4971 GB, free: 6.312 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.757e-06/0.6264, allocations: 4 kB / 0.4971 GB, free: 6.309 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001355/0.6265, allocations: 318.8 kB / 0.4974 GB, free: 5.988 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.409e-05/0.6266, allocations: 20 kB / 0.4974 GB, free: 5.969 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.927e-05/0.6267, allocations: 24 kB / 0.4974 GB, free: 5.945 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.918e-05/0.6268, allocations: 31.92 kB / 0.4974 GB, free: 5.914 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.6268, allocations: 0 / 0.4974 GB, free: 5.914 MB / 426.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002706/0.6271, allocations: 97.95 kB / 0.4975 GB, free: 5.812 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.198e-05/0.6271, allocations: 4 kB / 0.4975 GB, free: 5.809 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.084e-06/0.6271, allocations: 0 / 0.4975 GB, free: 5.809 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.18e-05/0.6272, allocations: 7.953 kB / 0.4975 GB, free: 5.801 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002563/0.6275, allocations: 31.98 kB / 0.4976 GB, free: 5.77 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.027e-06/0.6275, allocations: 3.938 kB / 0.4976 GB, free: 5.766 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002088/0.6277, allocations: 15.98 kB / 0.4976 GB, free: 5.75 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.686e-05/0.6277, allocations: 4 kB / 0.4976 GB, free: 5.746 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.503e-05/0.6278, allocations: 109 kB / 0.4977 GB, free: 5.633 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001299/0.628, allocations: 47.42 kB / 0.4977 GB, free: 5.586 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004674/0.6285, allocations: 161.5 kB / 0.4979 GB, free: 5.418 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.895e-06/0.6285, allocations: 3.953 kB / 0.4979 GB, free: 5.414 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.103e-06/0.6285, allocations: 7.922 kB / 0.4979 GB, free: 5.406 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.572e-06/0.6285, allocations: 4 kB / 0.4979 GB, free: 5.402 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001352/0.6299, allocations: 0.6561 MB / 0.4986 GB, free: 4.684 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-05/0.6299, allocations: 7.953 kB / 0.4986 GB, free: 4.676 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002163/0.6301, allocations: 31.97 kB / 0.4986 GB, free: 4.645 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.382e-06/0.6301, allocations: 0 / 0.4986 GB, free: 4.645 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.331e-05/0.6302, allocations: 0 / 0.4986 GB, free: 4.645 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.388e-06/0.6302, allocations: 8.312 kB / 0.4986 GB, free: 4.637 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.6302, allocations: 0 / 0.4986 GB, free: 4.637 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004086/0.6306, allocations: 276.1 kB / 0.4989 GB, free: 4.332 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002851/0.6309, allocations: 160.5 kB / 0.499 GB, free: 4.156 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.723e-05/0.631, allocations: 8 kB / 0.499 GB, free: 4.148 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002526/0.6313, allocations: 23.98 kB / 0.499 GB, free: 4.125 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.982e-05/0.6313, allocations: 7.984 kB / 0.4991 GB, free: 4.117 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.608e-05/0.6314, allocations: 4 kB / 0.4991 GB, free: 4.113 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001176/0.6325, allocations: 0.6341 MB / 0.4997 GB, free: 3.48 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.6e-07/0.6326, allocations: 0 / 0.4997 GB, free: 3.48 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0004971/0.6331, allocations: 71.94 kB / 0.4997 GB, free: 3.41 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.002004/0.6351, allocations: 1.296 MB / 0.501 GB, free: 2.23 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0002641/0.6354, allocations: 79.94 kB / 0.5011 GB, free: 2.152 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.417e-06/0.6354, allocations: 0 / 0.5011 GB, free: 2.152 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001096/0.6355, allocations: 35.94 kB / 0.5011 GB, free: 2.117 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000413/0.6359, allocations: 36.86 kB / 0.5012 GB, free: 2.082 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002207/0.6382, allocations: 0.9193 MB / 0.5021 GB, free: 1.113 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005601/0.6387, allocations: 0.8379 MB / 0.5029 GB, free: 256 kB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002765/0.639, allocations: 127.6 kB / 0.503 GB, free: 128 kB / 426.7 MB Notification: Performance of SimCode: time 1.092e-06/0.639, allocations: 0 / 0.503 GB, free: 128 kB / 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_Test3CalcHelperMain.o OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test3CalcHelperMain.cpp In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test3CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test3FMU.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_Test3.so OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test3CalcHelperMain.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_Test3_FMU.makefile:93: recipe for target 'ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test3.fmu' failed make: *** [ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test3.fmu] Error 1