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.Test31.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.Test31,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test31",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.352/2.352, allocations: 235 MB / 248.1 MB, free: 14.59 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 5.155e-05/5.165e-05, allocations: 4 kB / 309.8 MB, free: 1.449 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3878/0.3879, allocations: 54.85 MB / 364.6 MB, free: 5.398 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1513/0.5393, allocations: 80.9 MB / 445.5 MB, free: 15.52 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002781/0.5396, allocations: 71.95 kB / 445.6 MB, free: 15.45 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01446/0.5541, allocations: 3.355 MB / 448.9 MB, free: 12.12 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.753e-06/0.5542, allocations: 0 / 448.9 MB, free: 12.12 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.86e-05/0.5542, allocations: 4.75 kB / 448.9 MB, free: 12.11 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.0005589/0.5548, allocations: 427.8 kB / 449.4 MB, free: 11.64 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.965e-05/0.5548, allocations: 8.031 kB / 449.4 MB, free: 11.64 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.908e-05/0.5549, allocations: 34.56 kB / 449.4 MB, free: 11.59 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.153e-05/0.5549, allocations: 15.8 kB / 449.4 MB, free: 11.58 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003253/0.5553, allocations: 204.2 kB / 449.6 MB, free: 11.34 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.737e-05/0.5553, allocations: 11.98 kB / 449.6 MB, free: 11.33 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.389e-05/0.5554, allocations: 0 / 449.6 MB, free: 11.33 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000143/0.5555, allocations: 43.19 kB / 449.7 MB, free: 11.28 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.183e-05/0.5555, allocations: 0 / 449.7 MB, free: 11.28 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.235e-05/0.5556, allocations: 11.95 kB / 449.7 MB, free: 11.27 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.16e-06/0.5556, allocations: 0 / 449.7 MB, free: 11.27 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.302e-05/0.5557, allocations: 15.98 kB / 449.7 MB, free: 11.25 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006174/0.5563, allocations: 310.7 kB / 450 MB, free: 10.9 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002333/0.5565, allocations: 34.58 kB / 450 MB, free: 10.86 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.735e-05/0.5566, allocations: 24.89 kB / 450.1 MB, free: 10.83 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.415e-05/0.5566, allocations: 0 / 450.1 MB, free: 10.83 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.194e-05/0.5567, allocations: 34.56 kB / 450.1 MB, free: 10.79 MB / 378.7 MB Notification: Performance of pre-optimization done (n=3): time 1.853e-06/0.5567, allocations: 0 / 450.1 MB, free: 10.79 MB / 378.7 MB Notification: Performance of matching and sorting (n=5): time 0.0005766/0.5573, allocations: 125.2 kB / 450.2 MB, free: 10.66 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.833e-05/0.5573, allocations: 51.41 kB / 450.3 MB, free: 10.6 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004095/0.5578, allocations: 234.6 kB / 450.5 MB, free: 10.35 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.269e-05/0.5578, allocations: 29.7 kB / 450.5 MB, free: 10.32 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.853e-05/0.5579, allocations: 166.5 kB / 450.7 MB, free: 10.15 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.406e-05/0.558, allocations: 20.41 kB / 450.7 MB, free: 10.13 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.061e-06/0.558, allocations: 0 / 450.7 MB, free: 10.13 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001385/0.5581, allocations: 314.8 kB / 451 MB, free: 9.816 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.834e-05/0.5582, allocations: 16 kB / 451 MB, free: 9.801 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.12e-05/0.5583, allocations: 15.94 kB / 451.1 MB, free: 9.785 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.19e-05/0.5584, allocations: 45.69 kB / 451.1 MB, free: 9.734 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.5584, allocations: 7.938 kB / 451.1 MB, free: 9.727 MB / 378.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002201/0.5586, allocations: 96.47 kB / 451.2 MB, free: 9.621 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.197e-05/0.5587, allocations: 33.7 kB / 451.2 MB, free: 9.582 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.092e-06/0.5587, allocations: 0 / 451.2 MB, free: 9.582 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.497e-05/0.5587, allocations: 0 / 451.2 MB, free: 9.582 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001502/0.5589, allocations: 15.98 kB / 451.2 MB, free: 9.566 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.604e-06/0.5589, allocations: 0 / 451.2 MB, free: 9.566 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.443e-05/0.559, allocations: 13.64 kB / 451.3 MB, free: 9.555 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.171e-05/0.559, allocations: 4 kB / 451.3 MB, free: 9.551 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 8.828e-05/0.5591, allocations: 108.9 kB / 451.4 MB, free: 9.438 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.296e-05/0.5592, allocations: 23.77 kB / 451.4 MB, free: 9.414 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002656/0.5595, allocations: 82.67 kB / 451.5 MB, free: 9.324 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.244e-06/0.5595, allocations: 4 kB / 451.5 MB, free: 9.32 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.5595, allocations: 0 / 451.5 MB, free: 9.32 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.496e-06/0.5595, allocations: 0 / 451.5 MB, free: 9.32 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006443/0.5602, allocations: 382.4 kB / 451.9 MB, free: 8.891 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.426e-06/0.5602, allocations: 4 kB / 451.9 MB, free: 8.887 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001273/0.5603, allocations: 12 kB / 451.9 MB, free: 8.875 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.581e-06/0.5603, allocations: 0 / 451.9 MB, free: 8.875 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.432e-05/0.5604, allocations: 4 kB / 451.9 MB, free: 8.871 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.186e-06/0.5604, allocations: 0 / 451.9 MB, free: 8.871 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.398e-06/0.5604, allocations: 3.984 kB / 451.9 MB, free: 8.867 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002345/0.5606, allocations: 168 kB / 452 MB, free: 8.688 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000101/0.5608, allocations: 101 kB / 452.1 MB, free: 8.57 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.131e-05/0.5608, allocations: 4 kB / 452.1 MB, free: 8.566 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001183/0.5609, allocations: 7.984 kB / 452.1 MB, free: 8.559 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.772e-05/0.561, allocations: 7.938 kB / 452.2 MB, free: 8.551 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.115e-06/0.561, allocations: 0 / 452.2 MB, free: 8.551 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003006/0.5613, allocations: 193.1 kB / 452.3 MB, free: 8.363 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.42e-07/0.5613, allocations: 7.938 kB / 452.4 MB, free: 8.355 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003329/0.5617, allocations: 24 kB / 452.4 MB, free: 8.332 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.001286/0.563, allocations: 0.8825 MB / 453.3 MB, free: 7.5 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002343/0.5632, allocations: 91.34 kB / 453.3 MB, free: 7.398 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.5633, allocations: 0 / 453.3 MB, free: 7.398 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 6.906e-05/0.5633, allocations: 23.98 kB / 453.4 MB, free: 7.375 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000285/0.5636, allocations: 11.61 kB / 453.4 MB, free: 7.363 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009053/0.5646, allocations: 297.2 kB / 453.7 MB, free: 7.035 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003909/0.565, allocations: 0.7199 MB / 454.4 MB, free: 6.289 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001205/0.5651, allocations: 39.42 kB / 454.4 MB, free: 6.25 MB / 378.7 MB Notification: Performance of SimCode: time 1.543e-06/0.5651, allocations: 3.938 kB / 454.4 MB, free: 6.246 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_Test31CalcHelperMain.o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test31CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test31CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test31FMU.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_Test31.so OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test31CalcHelperMain.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_Test31_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test31.fmu' failed make: *** [ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test31.fmu] Error 1