Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTable2D.Test1.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTable2D.Test1,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.638/2.638, allocations: 235 MB / 248.1 MB, free: 14.39 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.664e-05/3.677e-05, allocations: 4 kB / 309.8 MB, free: 1.238 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3989/0.399, allocations: 54.84 MB / 364.6 MB, free: 5.547 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1497/0.5488, allocations: 80.95 MB / 445.6 MB, free: 15.55 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000283/0.5491, allocations: 82.53 kB / 445.7 MB, free: 15.47 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02084/0.57, allocations: 5.423 MB / 451.1 MB, free: 10.07 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.024e-06/0.57, allocations: 8 kB / 451.1 MB, free: 10.06 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.232e-05/0.5701, allocations: 7.984 kB / 451.1 MB, free: 10.05 MB / 378.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.0008246/0.5709, allocations: 0.5654 MB / 451.7 MB, free: 9.434 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.362e-05/0.571, allocations: 8.031 kB / 451.7 MB, free: 9.426 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.364e-05/0.571, allocations: 30.56 kB / 451.7 MB, free: 9.387 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001131/0.5712, allocations: 43.44 kB / 451.7 MB, free: 9.344 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006801/0.5718, allocations: 319.4 kB / 452 MB, free: 8.988 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.362e-05/0.5719, allocations: 0 / 452 MB, free: 8.988 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.016e-05/0.5719, allocations: 8 kB / 452.1 MB, free: 8.98 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000157/0.5721, allocations: 57.62 kB / 452.1 MB, free: 8.922 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.305e-05/0.5721, allocations: 4.656 kB / 452.1 MB, free: 8.918 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.122e-05/0.5721, allocations: 0 / 452.1 MB, free: 8.918 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.36e-06/0.5722, allocations: 0 / 452.1 MB, free: 8.918 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.737e-05/0.5722, allocations: 20 kB / 452.1 MB, free: 8.898 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008627/0.5731, allocations: 420.7 kB / 452.5 MB, free: 8.438 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000244/0.5734, allocations: 46.5 kB / 452.6 MB, free: 8.383 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.039e-05/0.5735, allocations: 12.86 kB / 452.6 MB, free: 8.367 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.392e-05/0.5735, allocations: 4.562 kB / 452.6 MB, free: 8.363 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.207e-05/0.5735, allocations: 30.56 kB / 452.6 MB, free: 8.324 MB / 378.7 MB Notification: Performance of pre-optimization done (n=3): time 2.364e-06/0.5735, allocations: 0 / 452.6 MB, free: 8.324 MB / 378.7 MB Notification: Performance of matching and sorting (n=5): time 0.0006876/0.5742, allocations: 192.1 kB / 452.8 MB, free: 8.133 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.378e-05/0.5743, allocations: 51.41 kB / 452.9 MB, free: 8.07 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001918/0.5762, allocations: 0.7615 MB / 453.6 MB, free: 7.305 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.054e-05/0.5763, allocations: 27.11 kB / 453.7 MB, free: 7.273 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002354/0.5766, allocations: 246.4 kB / 453.9 MB, free: 7.031 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.917e-05/0.5766, allocations: 11.81 kB / 453.9 MB, free: 7.02 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.562e-06/0.5766, allocations: 0 / 453.9 MB, free: 7.02 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001501/0.5768, allocations: 318.8 kB / 454.2 MB, free: 6.699 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.302e-05/0.5768, allocations: 16 kB / 454.2 MB, free: 6.684 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.498e-05/0.5769, allocations: 8 kB / 454.3 MB, free: 6.676 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.799e-05/0.577, allocations: 45.69 kB / 454.3 MB, free: 6.625 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.577, allocations: 4 kB / 454.3 MB, free: 6.621 MB / 378.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002359/0.5773, allocations: 95.33 kB / 454.4 MB, free: 6.516 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.937e-05/0.5773, allocations: 29.7 kB / 454.4 MB, free: 6.48 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.644e-06/0.5773, allocations: 0 / 454.4 MB, free: 6.48 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.949e-05/0.5774, allocations: 0 / 454.4 MB, free: 6.48 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001498/0.5775, allocations: 15.94 kB / 454.4 MB, free: 6.465 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.168e-05/0.5776, allocations: 3.984 kB / 454.4 MB, free: 6.461 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001681/0.5777, allocations: 12.66 kB / 454.5 MB, free: 6.449 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.244e-05/0.5778, allocations: 0 / 454.5 MB, free: 6.449 MB / 378.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 (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 1 * 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.391e-05/0.5779, allocations: 108.9 kB / 454.6 MB, free: 6.336 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001151/0.578, allocations: 39.44 kB / 454.6 MB, free: 6.297 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003741/0.5784, allocations: 120.9 kB / 454.7 MB, free: 6.168 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.943e-06/0.5784, allocations: 4 kB / 454.7 MB, free: 6.164 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.5784, allocations: 0 / 454.7 MB, free: 6.164 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.878e-06/0.5784, allocations: 5.219 kB / 454.7 MB, free: 6.16 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001187/0.5796, allocations: 0.557 MB / 455.3 MB, free: 5.547 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.958e-06/0.5797, allocations: 0 / 455.3 MB, free: 5.547 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001412/0.5798, allocations: 19.92 kB / 455.3 MB, free: 5.527 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.514e-06/0.5798, allocations: 144 / 455.3 MB, free: 5.527 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.206e-05/0.5799, allocations: 1.562 kB / 455.3 MB, free: 5.527 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.553e-06/0.5799, allocations: 4 kB / 455.3 MB, free: 5.523 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.34e-06/0.5799, allocations: 3.984 kB / 455.3 MB, free: 5.52 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003072/0.5802, allocations: 195 kB / 455.5 MB, free: 5.312 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002981/0.5805, allocations: 160.5 kB / 455.7 MB, free: 5.137 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.819e-05/0.5806, allocations: 0 / 455.7 MB, free: 5.137 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000171/0.5808, allocations: 8 kB / 455.7 MB, free: 5.129 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.428e-05/0.5808, allocations: 7.984 kB / 455.7 MB, free: 5.121 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.242e-05/0.5809, allocations: 8.688 kB / 455.7 MB, free: 5.113 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001265/0.5821, allocations: 0.6225 MB / 456.3 MB, free: 4.492 MB / 378.7 MB Notification: Performance of sort global known variables: time 7.92e-07/0.5822, allocations: 0 / 456.3 MB, free: 4.492 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004457/0.5826, allocations: 59.92 kB / 456.4 MB, free: 4.434 MB / 378.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.001378/0.584, allocations: 0.9018 MB / 457.3 MB, free: 3.578 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002357/0.5843, allocations: 91.33 kB / 457.4 MB, free: 3.477 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.117e-06/0.5843, allocations: 3.938 kB / 457.4 MB, free: 3.473 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 6.002e-05/0.5844, allocations: 16 kB / 457.4 MB, free: 3.457 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003687/0.5848, allocations: 29.47 kB / 457.4 MB, free: 3.434 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002247/0.587, allocations: 0.8354 MB / 458.2 MB, free: 2.555 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006145/0.5877, allocations: 0.8262 MB / 459.1 MB, free: 1.699 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002785/0.588, allocations: 111.6 kB / 459.2 MB, free: 1.59 MB / 378.7 MB Notification: Performance of SimCode: time 1.192e-06/0.588, allocations: 0 / 459.2 MB, free: 1.59 MB / 378.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"." -DUSE_LOGGER -c -o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test1CalcHelperMain.o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test1CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test1CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test1FMU.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_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test1.so OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test1CalcHelperMain.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 3.2.2/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 3.2.2/Resources/Library/x86_64-linux" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Resources/Library/x86_64-linux" "-L/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Resources/Library/linux64" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Resources/Library/linux64" "-L/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Resources/Library" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/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_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test1_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test1.fmu' failed make: *** [ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test1.fmu] Error 1