Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTable1Ds.Test16.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.CombiTable1Ds.Test16,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1Ds_Test16",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.294/2.294, allocations: 235 MB / 248.1 MB, free: 14.57 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.148e-05/3.15e-05, allocations: 4 kB / 309.8 MB, free: 1.445 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4291/0.4292, allocations: 54.85 MB / 364.6 MB, free: 5.527 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1499/0.5791, allocations: 80.89 MB / 445.5 MB, free: 15.61 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002896/0.5794, allocations: 71.95 kB / 445.6 MB, free: 15.54 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01257/0.592, allocations: 3.106 MB / 448.7 MB, free: 12.45 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.5921, allocations: 0 / 448.7 MB, free: 12.45 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.529e-05/0.5921, allocations: 4 kB / 448.7 MB, free: 12.45 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.0004743/0.5926, allocations: 413.2 kB / 449.1 MB, free: 11.99 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.637e-05/0.5927, allocations: 8.031 kB / 449.1 MB, free: 11.98 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.95e-05/0.5927, allocations: 30.56 kB / 449.1 MB, free: 11.95 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.47e-05/0.5928, allocations: 15.86 kB / 449.2 MB, free: 11.93 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002768/0.5931, allocations: 191.5 kB / 449.3 MB, free: 11.7 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.419e-05/0.5931, allocations: 4 kB / 449.3 MB, free: 11.7 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.573e-05/0.5931, allocations: 3.938 kB / 449.3 MB, free: 11.69 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001274/0.5933, allocations: 49.31 kB / 449.4 MB, free: 11.64 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.184e-05/0.5933, allocations: 0.8438 kB / 449.4 MB, free: 11.64 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.297e-06/0.5933, allocations: 0 / 449.4 MB, free: 11.64 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.142e-05/0.5933, allocations: 11.95 kB / 449.4 MB, free: 11.63 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.307e-05/0.5934, allocations: 12 kB / 449.4 MB, free: 11.62 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004177/0.5938, allocations: 276.9 kB / 449.7 MB, free: 11.3 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002266/0.5941, allocations: 42.5 kB / 449.7 MB, free: 11.25 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.939e-05/0.5941, allocations: 12.86 kB / 449.7 MB, free: 11.23 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.747e-05/0.5942, allocations: 4 kB / 449.7 MB, free: 11.23 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.424e-05/0.5942, allocations: 34.52 kB / 449.8 MB, free: 11.18 MB / 378.7 MB Notification: Performance of pre-optimization done (n=3): time 1.713e-06/0.5942, allocations: 1.406 kB / 449.8 MB, free: 11.18 MB / 378.7 MB Notification: Performance of matching and sorting (n=5): time 0.0004879/0.5947, allocations: 113.3 kB / 449.9 MB, free: 11.07 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.731e-05/0.5948, allocations: 51.41 kB / 449.9 MB, free: 11 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002599/0.595, allocations: 178.9 kB / 450.1 MB, free: 10.82 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.707e-05/0.5951, allocations: 25.7 kB / 450.1 MB, free: 10.79 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.363e-05/0.5952, allocations: 170.6 kB / 450.3 MB, free: 10.62 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.699e-05/0.5952, allocations: 15.73 kB / 450.3 MB, free: 10.61 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.091e-06/0.5952, allocations: 0 / 450.3 MB, free: 10.61 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001195/0.5953, allocations: 318.8 kB / 450.6 MB, free: 10.29 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.335e-05/0.5954, allocations: 8 kB / 450.6 MB, free: 10.28 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.115e-05/0.5955, allocations: 12 kB / 450.7 MB, free: 10.27 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.878e-05/0.5956, allocations: 37.7 kB / 450.7 MB, free: 10.22 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.363e-06/0.5956, allocations: 3.938 kB / 450.7 MB, free: 10.22 MB / 378.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001736/0.5957, allocations: 99.23 kB / 450.8 MB, free: 10.11 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.732e-05/0.5958, allocations: 37.66 kB / 450.8 MB, free: 10.07 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.136e-06/0.5958, allocations: 7.938 kB / 450.8 MB, free: 10.06 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.59e-05/0.5958, allocations: 0 / 450.8 MB, free: 10.06 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001128/0.596, allocations: 15.98 kB / 450.9 MB, free: 10.04 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.542e-06/0.596, allocations: 0 / 450.9 MB, free: 10.04 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.455e-05/0.5961, allocations: 7.984 kB / 450.9 MB, free: 10.04 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.394e-05/0.5961, allocations: 4 kB / 450.9 MB, free: 10.03 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.689e-05/0.5962, allocations: 105 kB / 451 MB, free: 9.922 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.469e-05/0.5962, allocations: 7.906 kB / 451 MB, free: 9.914 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002132/0.5965, allocations: 90.66 kB / 451.1 MB, free: 9.824 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.073e-06/0.5965, allocations: 3.984 kB / 451.1 MB, free: 9.82 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.037e-06/0.5965, allocations: 0 / 451.1 MB, free: 9.82 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.347e-06/0.5965, allocations: 4 kB / 451.1 MB, free: 9.816 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004682/0.597, allocations: 339 kB / 451.4 MB, free: 9.43 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.597, allocations: 0 / 451.4 MB, free: 9.43 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001137/0.5971, allocations: 31.88 kB / 451.4 MB, free: 9.398 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.876e-06/0.5972, allocations: 0 / 451.4 MB, free: 9.398 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.876e-06/0.5972, allocations: 0 / 451.4 MB, free: 9.398 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.823e-06/0.5972, allocations: 0 / 451.4 MB, free: 9.398 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.5972, allocations: 0 / 451.4 MB, free: 9.398 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001839/0.5974, allocations: 159.5 kB / 451.6 MB, free: 9.227 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.694e-05/0.5975, allocations: 93 kB / 451.7 MB, free: 9.117 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.519e-05/0.5975, allocations: 3.953 kB / 451.7 MB, free: 9.113 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00011/0.5976, allocations: 16 kB / 451.7 MB, free: 9.098 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.274e-05/0.5977, allocations: 3.984 kB / 451.7 MB, free: 9.094 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.856e-06/0.5977, allocations: 4 kB / 451.7 MB, free: 9.09 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001812/0.5979, allocations: 147.1 kB / 451.9 MB, free: 8.945 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.5979, allocations: 0 / 451.9 MB, free: 8.945 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003074/0.5982, allocations: 16 kB / 451.9 MB, free: 8.93 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.001186/0.5994, allocations: 0.8806 MB / 452.7 MB, free: 8.102 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001866/0.5996, allocations: 91.34 kB / 452.8 MB, free: 8 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.5996, allocations: 0 / 452.8 MB, free: 8 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 5.134e-05/0.5997, allocations: 12 kB / 452.8 MB, free: 7.988 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002292/0.5999, allocations: 11.95 kB / 452.9 MB, free: 7.977 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006471/0.6006, allocations: 228.4 kB / 453.1 MB, free: 7.711 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003295/0.601, allocations: 0.7083 MB / 453.8 MB, free: 6.977 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.878e-05/0.6011, allocations: 27.42 kB / 453.8 MB, free: 6.949 MB / 378.7 MB Notification: Performance of SimCode: time 7.01e-07/0.6011, allocations: 0 / 453.8 MB, free: 6.949 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_CombiTable1Ds_Test16CalcHelperMain.o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1Ds_Test16CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1Ds_Test16CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1Ds_Test16FMU.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_CombiTable1Ds_Test16.so OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1Ds_Test16CalcHelperMain.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_CombiTable1Ds_Test16_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1Ds_Test16.fmu' failed make: *** [ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1Ds_Test16.fmu] Error 1