Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTable2Ds.Test4,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test4",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.634/2.634, allocations: 270 MB / 282.6 MB, free: 1.945 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.499e-05/3.514e-05, allocations: 4 kB / 347.1 MB, free: 3.215 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4516/0.4517, allocations: 61.87 MB / 408.9 MB, free: 10.7 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1604/0.6121, allocations: 88.48 MB / 497.4 MB, free: 2.098 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002684/0.6124, allocations: 75.95 kB / 497.5 MB, free: 2.023 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02991/0.6424, allocations: 7.838 MB / 0.4935 GB, free: 10.17 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.6424, allocations: 0 / 0.4935 GB, free: 10.17 MB / 426.7 MB Notification: Performance of Transformations before backend: time 3.292e-05/0.6425, allocations: 8 kB / 0.4935 GB, free: 10.16 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0007228/0.6432, allocations: 0.5558 MB / 0.494 GB, free: 9.559 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.918e-05/0.6433, allocations: 12.03 kB / 0.494 GB, free: 9.547 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.453e-05/0.6433, allocations: 34.56 kB / 0.4941 GB, free: 9.504 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.768e-05/0.6434, allocations: 39.44 kB / 0.4941 GB, free: 9.465 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006652/0.6441, allocations: 327.4 kB / 0.4944 GB, free: 9.105 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.204e-05/0.6441, allocations: 0 / 0.4944 GB, free: 9.105 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.302e-05/0.6442, allocations: 4 kB / 0.4944 GB, free: 9.102 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001297/0.6443, allocations: 49.67 kB / 0.4945 GB, free: 9.047 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.461e-05/0.6443, allocations: 0 / 0.4945 GB, free: 9.047 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.358e-05/0.6443, allocations: 7.938 kB / 0.4945 GB, free: 9.039 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.37e-06/0.6444, allocations: 0 / 0.4945 GB, free: 9.039 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.806e-05/0.6445, allocations: 19.94 kB / 0.4945 GB, free: 9.02 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008247/0.6453, allocations: 440.5 kB / 0.4949 GB, free: 8.539 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000249/0.6456, allocations: 38.56 kB / 0.495 GB, free: 8.492 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.941e-05/0.6456, allocations: 16.8 kB / 0.495 GB, free: 8.473 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.865e-05/0.6457, allocations: 4.062 kB / 0.495 GB, free: 8.469 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.758e-05/0.6457, allocations: 38.56 kB / 0.495 GB, free: 8.422 MB / 426.7 MB Notification: Performance of pre-optimization done (n=3): time 2.254e-06/0.6457, allocations: 0 / 0.495 GB, free: 8.422 MB / 426.7 MB Notification: Performance of matching and sorting (n=5): time 0.0006302/0.6464, allocations: 188.1 kB / 0.4952 GB, free: 8.23 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.476e-05/0.6464, allocations: 55.34 kB / 0.4952 GB, free: 8.164 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001893/0.6483, allocations: 0.7772 MB / 0.496 GB, free: 7.379 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.257e-05/0.6484, allocations: 25.7 kB / 0.496 GB, free: 7.348 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002084/0.6486, allocations: 246.5 kB / 0.4963 GB, free: 7.105 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.667e-05/0.6486, allocations: 19.75 kB / 0.4963 GB, free: 7.086 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.891e-06/0.6487, allocations: 0 / 0.4963 GB, free: 7.086 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001169/0.6488, allocations: 314.8 kB / 0.4966 GB, free: 6.77 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.373e-05/0.6488, allocations: 12 kB / 0.4966 GB, free: 6.758 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.646e-05/0.6489, allocations: 8 kB / 0.4966 GB, free: 6.75 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.016e-05/0.6489, allocations: 12 kB / 0.4966 GB, free: 6.738 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.649, allocations: 0 / 0.4966 GB, free: 6.738 MB / 426.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001627/0.6491, allocations: 53.94 kB / 0.4967 GB, free: 6.68 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.932e-05/0.6492, allocations: 8 kB / 0.4967 GB, free: 6.672 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.255e-06/0.6492, allocations: 8 kB / 0.4967 GB, free: 6.664 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.586e-05/0.6492, allocations: 0 / 0.4967 GB, free: 6.664 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001789/0.6494, allocations: 15.98 kB / 0.4967 GB, free: 6.648 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.336e-05/0.6494, allocations: 7.891 kB / 0.4967 GB, free: 6.641 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001448/0.6496, allocations: 4 kB / 0.4967 GB, free: 6.637 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.022e-05/0.6496, allocations: 4 kB / 0.4967 GB, free: 6.633 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 (5): * Single equations (assignments): 5 * 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.027e-05/0.6497, allocations: 108.2 kB / 0.4968 GB, free: 6.523 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001261/0.6498, allocations: 47.44 kB / 0.4969 GB, free: 6.477 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002957/0.6501, allocations: 113.1 kB / 0.497 GB, free: 6.352 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.027e-06/0.6502, allocations: 0 / 0.497 GB, free: 6.352 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.6502, allocations: 0 / 0.497 GB, free: 6.352 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.625e-06/0.6502, allocations: 7.938 kB / 0.497 GB, free: 6.344 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001045/0.6512, allocations: 0.5608 MB / 0.4975 GB, free: 5.727 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.6513, allocations: 0 / 0.4975 GB, free: 5.727 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001304/0.6514, allocations: 19.98 kB / 0.4975 GB, free: 5.707 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.49e-06/0.6514, allocations: 3.938 kB / 0.4975 GB, free: 5.703 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.076e-05/0.6514, allocations: 0 / 0.4975 GB, free: 5.703 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.098e-06/0.6515, allocations: 3.953 kB / 0.4975 GB, free: 5.699 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.017e-06/0.6515, allocations: 4 kB / 0.4976 GB, free: 5.695 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002634/0.6517, allocations: 191 kB / 0.4977 GB, free: 5.492 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002761/0.652, allocations: 156.8 kB / 0.4979 GB, free: 5.32 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.188e-05/0.6521, allocations: 7.922 kB / 0.4979 GB, free: 5.312 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001683/0.6523, allocations: 16.17 kB / 0.4979 GB, free: 5.297 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.844e-05/0.6523, allocations: 7.891 kB / 0.4979 GB, free: 5.289 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.354e-05/0.6524, allocations: 12 kB / 0.4979 GB, free: 5.277 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001208/0.6536, allocations: 0.6342 MB / 0.4985 GB, free: 4.645 MB / 426.7 MB Notification: Performance of sort global known variables: time 7.31e-07/0.6536, allocations: 0 / 0.4985 GB, free: 4.645 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0004669/0.6541, allocations: 55.94 kB / 0.4986 GB, free: 4.59 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (5): * Single equations (assignments): 5 * 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.001644/0.6557, allocations: 1.016 MB / 0.4996 GB, free: 3.684 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0001583/0.6559, allocations: 31.94 kB / 0.4996 GB, free: 3.652 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.656, allocations: 0 / 0.4996 GB, free: 3.652 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 5.317e-05/0.656, allocations: 16 kB / 0.4996 GB, free: 3.637 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004191/0.6564, allocations: 33.02 kB / 0.4997 GB, free: 3.602 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00211/0.6586, allocations: 0.8627 MB / 0.5005 GB, free: 2.695 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005552/0.6592, allocations: 0.834 MB / 0.5013 GB, free: 1.836 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002672/0.6594, allocations: 111.7 kB / 0.5014 GB, free: 1.727 MB / 426.7 MB Notification: Performance of SimCode: time 1.243e-06/0.6595, allocations: 0 / 0.5014 GB, free: 1.727 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_Test4CalcHelperMain.o OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test4CalcHelperMain.cpp In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test4CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test4FMU.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_Test4.so OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test4CalcHelperMain.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_Test4_FMU.makefile:93: recipe for target 'ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test4.fmu' failed make: *** [ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test4.fmu] Error 1