Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTable2Ds.Test2,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.649/2.649, allocations: 270 MB / 282.6 MB, free: 1.836 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.407e-05/3.418e-05, allocations: 4 kB / 347.1 MB, free: 3.125 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4231/0.4231, allocations: 61.88 MB / 408.9 MB, free: 10.65 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1632/0.5864, allocations: 88.59 MB / 497.5 MB, free: 1.938 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002781/0.5868, allocations: 75.95 kB / 497.6 MB, free: 1.863 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03228/0.619, allocations: 8.365 MB / 0.4941 GB, free: 9.477 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.6191, allocations: 0 / 0.4941 GB, free: 9.477 MB / 426.7 MB Notification: Performance of Transformations before backend: time 2.862e-05/0.6191, allocations: 4 kB / 0.4941 GB, free: 9.473 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.0007482/0.6199, allocations: 0.5598 MB / 0.4947 GB, free: 8.867 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.789e-05/0.62, allocations: 8.031 kB / 0.4947 GB, free: 8.859 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.791e-05/0.62, allocations: 34.56 kB / 0.4947 GB, free: 8.816 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.962e-05/0.6201, allocations: 43.42 kB / 0.4947 GB, free: 8.773 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006354/0.6208, allocations: 339.2 kB / 0.4951 GB, free: 8.402 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.464e-05/0.6208, allocations: 4 kB / 0.4951 GB, free: 8.398 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.867e-05/0.6208, allocations: 0 / 0.4951 GB, free: 8.398 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001346/0.621, allocations: 53.62 kB / 0.4951 GB, free: 8.34 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.525e-05/0.621, allocations: 4 kB / 0.4951 GB, free: 8.336 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.234e-05/0.621, allocations: 4 kB / 0.4951 GB, free: 8.332 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.751e-06/0.621, allocations: 4 kB / 0.4951 GB, free: 8.328 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.104e-05/0.6211, allocations: 19.94 kB / 0.4951 GB, free: 8.309 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007873/0.6219, allocations: 444.6 kB / 0.4956 GB, free: 7.824 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001016/0.622, allocations: 42.59 kB / 0.4956 GB, free: 7.773 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.926e-05/0.6221, allocations: 16.8 kB / 0.4956 GB, free: 7.754 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.086e-05/0.6221, allocations: 4 kB / 0.4956 GB, free: 7.75 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.425e-05/0.6222, allocations: 34.56 kB / 0.4957 GB, free: 7.707 MB / 426.7 MB Notification: Performance of pre-optimization done (n=4): time 2.004e-06/0.6222, allocations: 0 / 0.4957 GB, free: 7.707 MB / 426.7 MB Notification: Performance of matching and sorting (n=8): time 0.0007745/0.623, allocations: 240 kB / 0.4959 GB, free: 7.465 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.166e-05/0.623, allocations: 51.41 kB / 0.4959 GB, free: 7.402 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00187/0.6249, allocations: 0.7733 MB / 0.4967 GB, free: 6.617 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 1.857e-05/0.6249, allocations: 29.7 kB / 0.4967 GB, free: 6.582 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002112/0.6252, allocations: 258.4 kB / 0.497 GB, free: 6.328 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.665e-05/0.6252, allocations: 15.66 kB / 0.497 GB, free: 6.312 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.076e-05/0.6252, allocations: 8 kB / 0.497 GB, free: 6.305 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001176/0.6254, allocations: 310.8 kB / 0.4973 GB, free: 5.992 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.588e-05/0.6254, allocations: 15.98 kB / 0.4973 GB, free: 5.977 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.486e-05/0.6255, allocations: 20 kB / 0.4973 GB, free: 5.957 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.761e-05/0.6256, allocations: 12 kB / 0.4973 GB, free: 5.945 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.412e-06/0.6256, allocations: 0 / 0.4973 GB, free: 5.945 MB / 426.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.000195/0.6258, allocations: 85.62 kB / 0.4974 GB, free: 5.855 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.945e-05/0.6258, allocations: 4 kB / 0.4974 GB, free: 5.852 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-06/0.6258, allocations: 0 / 0.4974 GB, free: 5.852 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.995e-05/0.6259, allocations: 3.953 kB / 0.4974 GB, free: 5.848 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001831/0.626, allocations: 19.98 kB / 0.4974 GB, free: 5.828 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.754e-06/0.6261, allocations: 0 / 0.4974 GB, free: 5.828 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001356/0.6262, allocations: 11.98 kB / 0.4975 GB, free: 5.816 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.148e-05/0.6262, allocations: 0 / 0.4975 GB, free: 5.816 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 (8): * Single equations (assignments): 8 * 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.418e-05/0.6263, allocations: 113 kB / 0.4976 GB, free: 5.699 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001198/0.6265, allocations: 43.44 kB / 0.4976 GB, free: 5.656 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003486/0.6268, allocations: 141.4 kB / 0.4977 GB, free: 5.508 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.982e-06/0.6268, allocations: 3.953 kB / 0.4977 GB, free: 5.504 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.169e-06/0.6268, allocations: 0 / 0.4977 GB, free: 5.504 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.622e-06/0.6269, allocations: 3.984 kB / 0.4977 GB, free: 5.5 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001208/0.6281, allocations: 0.6167 MB / 0.4983 GB, free: 4.824 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.996e-06/0.6281, allocations: 3.938 kB / 0.4984 GB, free: 4.82 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001442/0.6283, allocations: 23.94 kB / 0.4984 GB, free: 4.797 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.398e-06/0.6283, allocations: 0 / 0.4984 GB, free: 4.797 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.662e-05/0.6283, allocations: 4.281 kB / 0.4984 GB, free: 4.793 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.045e-06/0.6283, allocations: 3.938 kB / 0.4984 GB, free: 4.789 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.6283, allocations: 0 / 0.4984 GB, free: 4.789 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003263/0.6287, allocations: 237.6 kB / 0.4986 GB, free: 4.531 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002771/0.6289, allocations: 172.4 kB / 0.4988 GB, free: 4.344 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.152e-05/0.629, allocations: 4 kB / 0.4988 GB, free: 4.34 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000169/0.6292, allocations: 4 kB / 0.4988 GB, free: 4.336 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.011e-05/0.6293, allocations: 11.98 kB / 0.4988 GB, free: 4.324 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.045e-05/0.6293, allocations: 4 kB / 0.4988 GB, free: 4.32 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001128/0.6304, allocations: 0.6381 MB / 0.4994 GB, free: 3.684 MB / 426.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.6304, allocations: 0 / 0.4994 GB, free: 3.684 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0004712/0.6309, allocations: 63.94 kB / 0.4995 GB, free: 3.621 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 (8): * Single equations (assignments): 8 * 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.001907/0.6328, allocations: 1.18 MB / 0.5006 GB, free: 2.562 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0001823/0.633, allocations: 47.98 kB / 0.5007 GB, free: 2.516 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.975e-06/0.6331, allocations: 0 / 0.5007 GB, free: 2.516 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 7.858e-05/0.6331, allocations: 27.94 kB / 0.5007 GB, free: 2.488 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003792/0.6335, allocations: 26.08 kB / 0.5007 GB, free: 2.461 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00212/0.6357, allocations: 0.8912 MB / 0.5016 GB, free: 1.523 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005403/0.6362, allocations: 0.8301 MB / 0.5024 GB, free: 0.668 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002646/0.6365, allocations: 115.6 kB / 0.5025 GB, free: 0.5547 MB / 426.7 MB Notification: Performance of SimCode: time 1.223e-06/0.6365, allocations: 0 / 0.5025 GB, free: 0.5547 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_Test2CalcHelperMain.o OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test2CalcHelperMain.cpp In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test2CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test2FMU.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_Test2.so OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test2CalcHelperMain.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_Test2_FMU.makefile:93: recipe for target 'ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test2.fmu' failed make: *** [ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test2.fmu] Error 1