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.Test8.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.Test8,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test8",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.383/2.383, allocations: 235 MB / 248.1 MB, free: 14.37 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.691e-05/3.71e-05, allocations: 4 kB / 309.8 MB, free: 1.242 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3893/0.3894, allocations: 54.85 MB / 364.6 MB, free: 5.547 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1523/0.5417, allocations: 80.86 MB / 445.5 MB, free: 15.64 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002692/0.542, allocations: 67.97 kB / 445.5 MB, free: 15.57 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01201/0.5541, allocations: 2.763 MB / 448.3 MB, free: 12.83 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.5541, allocations: 0 / 448.3 MB, free: 12.83 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.241e-05/0.5541, allocations: 0 / 448.3 MB, free: 12.83 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.0005015/0.5547, allocations: 404.5 kB / 448.7 MB, free: 12.38 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.481e-05/0.5547, allocations: 12.03 kB / 448.7 MB, free: 12.37 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.318e-05/0.5548, allocations: 34.56 kB / 448.8 MB, free: 12.33 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.52e-05/0.5549, allocations: 7.953 kB / 448.8 MB, free: 12.32 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002746/0.5551, allocations: 187.8 kB / 448.9 MB, free: 12.1 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.027e-06/0.5552, allocations: 0.8438 kB / 448.9 MB, free: 12.1 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.454e-05/0.5552, allocations: 4 kB / 448.9 MB, free: 12.09 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001467/0.5554, allocations: 46.56 kB / 449 MB, free: 12.04 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.374e-05/0.5554, allocations: 0 / 449 MB, free: 12.04 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.093e-05/0.5554, allocations: 0 / 449 MB, free: 12.04 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.757e-05/0.5554, allocations: 11.95 kB / 449 MB, free: 12.03 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.486e-05/0.5555, allocations: 12 kB / 449 MB, free: 12.02 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005247/0.5561, allocations: 280.8 kB / 449.3 MB, free: 11.7 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002399/0.5563, allocations: 46.55 kB / 449.3 MB, free: 11.64 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.283e-05/0.5564, allocations: 17.61 kB / 449.4 MB, free: 11.62 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.157e-05/0.5564, allocations: 0 / 449.4 MB, free: 11.62 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.744e-05/0.5565, allocations: 38.45 kB / 449.4 MB, free: 11.58 MB / 378.7 MB Notification: Performance of pre-optimization done (n=3): time 1.542e-06/0.5565, allocations: 0 / 449.4 MB, free: 11.58 MB / 378.7 MB Notification: Performance of matching and sorting (n=5): time 0.0005448/0.557, allocations: 117.4 kB / 449.5 MB, free: 11.46 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.89e-05/0.5571, allocations: 51.41 kB / 449.6 MB, free: 11.39 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001677/0.5573, allocations: 133.8 kB / 449.7 MB, free: 11.26 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.261e-05/0.5573, allocations: 29.7 kB / 449.7 MB, free: 11.22 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.208e-05/0.5574, allocations: 155.6 kB / 449.9 MB, free: 11.07 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.965e-05/0.5574, allocations: 23.66 kB / 449.9 MB, free: 11.05 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.231e-06/0.5574, allocations: 0 / 449.9 MB, free: 11.05 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001277/0.5576, allocations: 314.8 kB / 450.2 MB, free: 10.73 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.375e-05/0.5576, allocations: 12 kB / 450.2 MB, free: 10.72 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.282e-05/0.5577, allocations: 16 kB / 450.2 MB, free: 10.7 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.832e-05/0.5578, allocations: 49.62 kB / 450.3 MB, free: 10.65 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/0.5578, allocations: 0 / 450.3 MB, free: 10.65 MB / 378.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002089/0.558, allocations: 103.3 kB / 450.4 MB, free: 10.54 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.621e-05/0.5581, allocations: 33.66 kB / 450.4 MB, free: 10.5 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.274e-06/0.5581, allocations: 0 / 450.4 MB, free: 10.5 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.603e-05/0.5581, allocations: 1.406 kB / 450.4 MB, free: 10.5 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001439/0.5583, allocations: 15.98 kB / 450.4 MB, free: 10.48 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.646e-06/0.5583, allocations: 0 / 450.4 MB, free: 10.48 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.367e-05/0.5584, allocations: 8 kB / 450.4 MB, free: 10.47 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.146e-05/0.5584, allocations: 0 / 450.4 MB, free: 10.47 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.301e-05/0.5585, allocations: 117 kB / 450.5 MB, free: 10.35 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.134e-05/0.5586, allocations: 3.906 kB / 450.6 MB, free: 10.35 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002662/0.5589, allocations: 93.64 kB / 450.6 MB, free: 10.25 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.479e-06/0.5589, allocations: 0 / 450.6 MB, free: 10.25 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.5589, allocations: 0 / 450.6 MB, free: 10.25 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.467e-06/0.5589, allocations: 0 / 450.6 MB, free: 10.25 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005025/0.5594, allocations: 338.5 kB / 451 MB, free: 9.859 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.723e-06/0.5594, allocations: 5.391 kB / 451 MB, free: 9.855 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001586/0.5596, allocations: 15.98 kB / 451 MB, free: 9.84 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.39e-06/0.5596, allocations: 4 kB / 451 MB, free: 9.836 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.139e-05/0.5597, allocations: 3.938 kB / 451 MB, free: 9.832 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.746e-06/0.5597, allocations: 0 / 451 MB, free: 9.832 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.5597, allocations: 0 / 451 MB, free: 9.832 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002138/0.5599, allocations: 163.5 kB / 451.2 MB, free: 9.656 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.053e-05/0.56, allocations: 88.97 kB / 451.2 MB, free: 9.551 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.808e-05/0.56, allocations: 12.8 kB / 451.3 MB, free: 9.539 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000109/0.5602, allocations: 4 kB / 451.3 MB, free: 9.535 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.143e-05/0.5602, allocations: 7.922 kB / 451.3 MB, free: 9.527 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.078e-05/0.5602, allocations: 4 kB / 451.3 MB, free: 9.523 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001204/0.5604, allocations: 113.1 kB / 451.4 MB, free: 9.414 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.5604, allocations: 0 / 451.4 MB, free: 9.414 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003175/0.5607, allocations: 16 kB / 451.4 MB, free: 9.398 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.001226/0.5619, allocations: 0.8815 MB / 452.3 MB, free: 8.566 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002244/0.5622, allocations: 91.34 kB / 452.4 MB, free: 8.465 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.5622, allocations: 3.938 kB / 452.4 MB, free: 8.461 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 6.681e-05/0.5623, allocations: 19.98 kB / 452.4 MB, free: 8.441 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002507/0.5626, allocations: 11.44 kB / 452.4 MB, free: 8.434 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006395/0.5632, allocations: 192.7 kB / 452.6 MB, free: 8.203 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003417/0.5636, allocations: 0.7043 MB / 453.3 MB, free: 7.473 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.123e-05/0.5637, allocations: 23.42 kB / 453.3 MB, free: 7.449 MB / 378.7 MB Notification: Performance of SimCode: time 9.62e-07/0.5637, allocations: 0 / 453.3 MB, free: 7.449 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_Test8CalcHelperMain.o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test8CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test8CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test8FMU.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_Test8.so OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test8CalcHelperMain.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_Test8_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test8.fmu' failed make: *** [ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test8.fmu] Error 1