Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTable1D.Test5.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.CombiTable1D.Test5,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test5",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.268/2.268, allocations: 235 MB / 248.1 MB, free: 14.57 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.966e-05/3.982e-05, allocations: 4 kB / 309.8 MB, free: 1.453 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3843/0.3844, allocations: 54.85 MB / 364.6 MB, free: 5.543 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1464/0.5309, allocations: 80.91 MB / 445.5 MB, free: 15.61 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002711/0.5313, allocations: 75.95 kB / 445.6 MB, free: 15.53 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01319/0.5445, allocations: 3.17 MB / 448.8 MB, free: 12.37 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.5445, allocations: 0 / 448.8 MB, free: 12.37 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.28e-05/0.5445, allocations: 4 kB / 448.8 MB, free: 12.37 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0005122/0.5451, allocations: 421.2 kB / 449.2 MB, free: 11.91 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.661e-05/0.5451, allocations: 8.031 kB / 449.2 MB, free: 11.9 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.09e-05/0.5452, allocations: 30.56 kB / 449.2 MB, free: 11.86 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.894e-05/0.5452, allocations: 15.86 kB / 449.2 MB, free: 11.84 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002821/0.5455, allocations: 198.8 kB / 449.4 MB, free: 11.61 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.162e-05/0.5456, allocations: 0 / 449.4 MB, free: 11.61 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.626e-05/0.5456, allocations: 11.98 kB / 449.4 MB, free: 11.6 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001295/0.5457, allocations: 42.58 kB / 449.5 MB, free: 11.55 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.216e-05/0.5458, allocations: 0 / 449.5 MB, free: 11.55 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.238e-06/0.5458, allocations: 1.031 kB / 449.5 MB, free: 11.55 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.536e-06/0.5458, allocations: 3.953 kB / 449.5 MB, free: 11.55 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.959e-05/0.5459, allocations: 23.92 kB / 449.5 MB, free: 11.52 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005004/0.5464, allocations: 292.9 kB / 449.8 MB, free: 11.19 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002227/0.5466, allocations: 38.58 kB / 449.8 MB, free: 11.14 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.394e-05/0.5467, allocations: 12.86 kB / 449.9 MB, free: 11.12 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.499e-05/0.5467, allocations: 4 kB / 449.9 MB, free: 11.12 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.076e-05/0.5468, allocations: 42.53 kB / 449.9 MB, free: 11.07 MB / 378.7 MB Notification: Performance of pre-optimization done (n=3): time 1.944e-06/0.5468, allocations: 0 / 449.9 MB, free: 11.07 MB / 378.7 MB Notification: Performance of matching and sorting (n=5): time 0.000535/0.5474, allocations: 129.2 kB / 450 MB, free: 10.94 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.195e-05/0.5474, allocations: 51.41 kB / 450.1 MB, free: 10.88 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002919/0.5477, allocations: 191.4 kB / 450.3 MB, free: 10.68 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.569e-05/0.5478, allocations: 29.7 kB / 450.3 MB, free: 10.65 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.557e-05/0.5479, allocations: 162.6 kB / 450.5 MB, free: 10.49 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.759e-05/0.5479, allocations: 15.75 kB / 450.5 MB, free: 10.47 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.806e-06/0.5479, allocations: 4 kB / 450.5 MB, free: 10.47 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001378/0.5481, allocations: 314.8 kB / 450.8 MB, free: 10.15 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.26e-05/0.5481, allocations: 12 kB / 450.8 MB, free: 10.14 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.245e-05/0.5482, allocations: 20 kB / 450.8 MB, free: 10.12 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.553e-05/0.5483, allocations: 45.62 kB / 450.9 MB, free: 10.07 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.5483, allocations: 4 kB / 450.9 MB, free: 10.07 MB / 378.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001934/0.5485, allocations: 91.39 kB / 450.9 MB, free: 9.965 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.396e-05/0.5486, allocations: 33.66 kB / 451 MB, free: 9.926 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.59e-06/0.5486, allocations: 4 kB / 451 MB, free: 9.922 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.32e-05/0.5486, allocations: 0 / 451 MB, free: 9.922 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001243/0.5487, allocations: 19.92 kB / 451 MB, free: 9.902 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.558e-06/0.5488, allocations: 3.984 kB / 451 MB, free: 9.898 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.634e-05/0.5488, allocations: 8 kB / 451 MB, free: 9.891 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.418e-05/0.5489, allocations: 4 kB / 451 MB, free: 9.887 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 7.834e-05/0.549, allocations: 105 kB / 451.1 MB, free: 9.777 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.001e-05/0.549, allocations: 15.8 kB / 451.1 MB, free: 9.762 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002407/0.5493, allocations: 85.72 kB / 451.2 MB, free: 9.676 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.878e-06/0.5493, allocations: 0 / 451.2 MB, free: 9.676 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.5493, allocations: 7.938 kB / 451.2 MB, free: 9.668 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.556e-06/0.5493, allocations: 4 kB / 451.2 MB, free: 9.664 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005673/0.5499, allocations: 358.5 kB / 451.6 MB, free: 9.258 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.996e-06/0.5499, allocations: 0 / 451.6 MB, free: 9.258 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001278/0.5501, allocations: 19.94 kB / 451.6 MB, free: 9.238 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.119e-06/0.5501, allocations: 384 / 451.6 MB, free: 9.238 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.608e-06/0.5501, allocations: 0 / 451.6 MB, free: 9.238 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.103e-06/0.5501, allocations: 8 kB / 451.6 MB, free: 9.23 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.5501, allocations: 0 / 451.6 MB, free: 9.23 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000227/0.5503, allocations: 171.5 kB / 451.8 MB, free: 9.047 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.078e-05/0.5505, allocations: 100.9 kB / 451.9 MB, free: 8.93 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.089e-05/0.5505, allocations: 7.953 kB / 451.9 MB, free: 8.922 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001112/0.5506, allocations: 7.984 kB / 451.9 MB, free: 8.914 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.474e-05/0.5507, allocations: 0 / 451.9 MB, free: 8.914 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.187e-05/0.5507, allocations: 4 kB / 451.9 MB, free: 8.91 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002588/0.551, allocations: 160.1 kB / 452.1 MB, free: 8.754 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.11e-07/0.551, allocations: 4 kB / 452.1 MB, free: 8.75 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003241/0.5513, allocations: 19.98 kB / 452.1 MB, free: 8.73 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.001207/0.5525, allocations: 0.8778 MB / 453 MB, free: 7.902 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002222/0.5528, allocations: 91.41 kB / 453 MB, free: 7.801 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.5528, allocations: 0 / 453 MB, free: 7.801 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 6.645e-05/0.5529, allocations: 23.92 kB / 453.1 MB, free: 7.777 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002524/0.5531, allocations: 19.39 kB / 453.1 MB, free: 7.762 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007378/0.5539, allocations: 256.5 kB / 453.3 MB, free: 7.469 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003414/0.5542, allocations: 0.7043 MB / 454 MB, free: 6.738 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.299e-05/0.5544, allocations: 35.42 kB / 454.1 MB, free: 6.703 MB / 378.7 MB Notification: Performance of SimCode: time 9.02e-07/0.5544, allocations: 0 / 454.1 MB, free: 6.703 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_CombiTable1D_Test5CalcHelperMain.o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test5CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test5CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test5FMU.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_CombiTable1D_Test5.so OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test5CalcHelperMain.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_CombiTable1D_Test5_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test5.fmu' failed make: *** [ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test5.fmu] Error 1