Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTable2Ds.Test23,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test23",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.414/2.414, allocations: 270 MB / 282.6 MB, free: 1.934 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 4.197e-05/4.206e-05, allocations: 4 kB / 347.1 MB, free: 3.219 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4138/0.4138, allocations: 61.87 MB / 408.9 MB, free: 10.84 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1605/0.5744, allocations: 89.5 MB / 498.4 MB, free: 1.211 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002706/0.5747, allocations: 67.97 kB / 498.5 MB, free: 1.145 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03991/0.6146, allocations: 9.297 MB / 0.4959 GB, free: 7.816 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.403e-06/0.6147, allocations: 0 / 0.4959 GB, free: 7.816 MB / 426.7 MB Notification: Performance of Transformations before backend: time 4.729e-05/0.6147, allocations: 19.94 kB / 0.4959 GB, free: 7.797 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.001089/0.6158, allocations: 0.6454 MB / 0.4965 GB, free: 7.105 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.68e-05/0.6159, allocations: 8.031 kB / 0.4965 GB, free: 7.098 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.504e-05/0.616, allocations: 42.55 kB / 0.4966 GB, free: 7.047 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001344/0.6161, allocations: 59.19 kB / 0.4966 GB, free: 6.988 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00105/0.6172, allocations: 467 kB / 0.4971 GB, free: 6.492 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.034e-05/0.6172, allocations: 12 kB / 0.4971 GB, free: 6.48 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.008e-05/0.6173, allocations: 15.94 kB / 0.4971 GB, free: 6.465 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003078/0.6176, allocations: 126.2 kB / 0.4972 GB, free: 6.332 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.61e-05/0.6176, allocations: 0 / 0.4972 GB, free: 6.332 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.078e-05/0.6176, allocations: 4 kB / 0.4972 GB, free: 6.328 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.376e-06/0.6177, allocations: 4 kB / 0.4972 GB, free: 6.324 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002278/0.6179, allocations: 63.98 kB / 0.4973 GB, free: 6.262 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00163/0.6195, allocations: 0.7307 MB / 0.498 GB, free: 5.477 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002816/0.6199, allocations: 109.2 kB / 0.4981 GB, free: 5.352 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001184/0.62, allocations: 45.83 kB / 0.4982 GB, free: 5.301 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.041e-05/0.62, allocations: 7.984 kB / 0.4982 GB, free: 5.293 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.262e-05/0.6201, allocations: 34.56 kB / 0.4982 GB, free: 5.25 MB / 426.7 MB Notification: Performance of pre-optimization done (n=12): time 2.174e-06/0.6201, allocations: 0 / 0.4982 GB, free: 5.25 MB / 426.7 MB Notification: Performance of matching and sorting (n=20): time 0.002251/0.6223, allocations: 0.5333 MB / 0.4987 GB, free: 4.707 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.982e-05/0.6224, allocations: 89.31 kB / 0.4988 GB, free: 4.602 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001663/0.6241, allocations: 0.7782 MB / 0.4996 GB, free: 3.812 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.284e-05/0.6242, allocations: 33.64 kB / 0.4996 GB, free: 3.773 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000228/0.6244, allocations: 270.7 kB / 0.4999 GB, free: 3.508 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.645e-05/0.6245, allocations: 67 kB / 0.4999 GB, free: 3.441 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.319e-05/0.6246, allocations: 4 kB / 0.4999 GB, free: 3.438 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001357/0.6247, allocations: 323 kB / 0.5002 GB, free: 3.113 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001917/0.6249, allocations: 56 kB / 0.5003 GB, free: 3.059 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002197/0.6251, allocations: 80.91 kB / 0.5004 GB, free: 2.977 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002123/0.6254, allocations: 63.91 kB / 0.5004 GB, free: 2.914 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.6254, allocations: 4 kB / 0.5004 GB, free: 2.91 MB / 426.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0005587/0.6259, allocations: 173.6 kB / 0.5006 GB, free: 2.734 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.499e-05/0.626, allocations: 11.98 kB / 0.5006 GB, free: 2.723 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/0.626, allocations: 0 / 0.5006 GB, free: 2.723 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.691e-05/0.626, allocations: 0 / 0.5006 GB, free: 2.723 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005617/0.6266, allocations: 71.89 kB / 0.5007 GB, free: 2.652 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.297e-06/0.6266, allocations: 0 / 0.5007 GB, free: 2.652 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004461/0.6271, allocations: 35.83 kB / 0.5007 GB, free: 2.617 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.472e-05/0.6271, allocations: 12 kB / 0.5007 GB, free: 2.605 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 (20): * Single equations (assignments): 20 * 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.0001093/0.6272, allocations: 105 kB / 0.5008 GB, free: 2.496 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001642/0.6274, allocations: 59.34 kB / 0.5009 GB, free: 2.438 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000883/0.6283, allocations: 290.2 kB / 0.5012 GB, free: 2.145 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.49e-06/0.6283, allocations: 0 / 0.5012 GB, free: 2.145 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.381e-06/0.6284, allocations: 0 / 0.5012 GB, free: 2.145 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/0.6284, allocations: 4 kB / 0.5012 GB, free: 2.141 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001876/0.6303, allocations: 0.8879 MB / 0.502 GB, free: 1.195 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.328e-06/0.6303, allocations: 0 / 0.502 GB, free: 1.195 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005129/0.6308, allocations: 63.89 kB / 0.5021 GB, free: 1.133 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.594e-06/0.6308, allocations: 0 / 0.5021 GB, free: 1.133 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.304e-05/0.6309, allocations: 11.98 kB / 0.5021 GB, free: 1.121 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.242e-06/0.6309, allocations: 3.953 kB / 0.5021 GB, free: 1.117 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.6309, allocations: 0 / 0.5021 GB, free: 1.117 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007379/0.6316, allocations: 423.6 kB / 0.5025 GB, free: 0.6797 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003298/0.632, allocations: 184.4 kB / 0.5027 GB, free: 492 kB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.288e-05/0.6321, allocations: 3.938 kB / 0.5027 GB, free: 488 kB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004676/0.6326, allocations: 31.98 kB / 0.5027 GB, free: 456 kB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.771e-05/0.6327, allocations: 27.92 kB / 0.5027 GB, free: 428 kB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.005e-05/0.6327, allocations: 7.984 kB / 0.5027 GB, free: 420 kB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001295/0.634, allocations: 0.6111 MB / 0.5033 GB, free: 15.8 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.634, allocations: 0 / 0.5033 GB, free: 15.8 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0006252/0.6347, allocations: 87.92 kB / 0.5034 GB, free: 15.71 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 (20): * Single equations (assignments): 20 * 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.002125/0.6368, allocations: 1.33 MB / 0.5047 GB, free: 14.49 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.000548/0.6374, allocations: 155.9 kB / 0.5049 GB, free: 14.34 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.6374, allocations: 0 / 0.5049 GB, free: 14.34 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002591/0.6377, allocations: 95.84 kB / 0.505 GB, free: 14.24 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007411/0.6384, allocations: 63.83 kB / 0.505 GB, free: 14.18 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00254/0.641, allocations: 0.9035 MB / 0.5059 GB, free: 13.22 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005851/0.6416, allocations: 0.8694 MB / 0.5068 GB, free: 12.33 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004949/0.6421, allocations: 187.3 kB / 0.5069 GB, free: 12.14 MB / 442.7 MB Notification: Performance of SimCode: time 1.162e-06/0.6421, allocations: 0 / 0.5069 GB, free: 12.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_Test23CalcHelperMain.o OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test23CalcHelperMain.cpp In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test23CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test23FMU.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_Test23.so OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test23CalcHelperMain.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_Test23_FMU.makefile:93: recipe for target 'ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test23.fmu' failed make: *** [ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test23.fmu] Error 1