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.Test27.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.Test27,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test27",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.462/2.462, allocations: 235 MB / 248.1 MB, free: 14.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.406e-05/3.41e-05, allocations: 4 kB / 309.8 MB, free: 1.223 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4319/0.432, allocations: 54.85 MB / 364.6 MB, free: 5.535 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1555/0.5875, allocations: 80.88 MB / 445.5 MB, free: 15.58 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000273/0.5878, allocations: 71.95 kB / 445.6 MB, free: 15.51 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01295/0.6008, allocations: 2.95 MB / 448.5 MB, free: 12.59 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.694e-06/0.6008, allocations: 0 / 448.5 MB, free: 12.59 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.671e-05/0.6009, allocations: 4 kB / 448.5 MB, free: 12.58 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.0006085/0.6015, allocations: 419.9 kB / 448.9 MB, free: 12.12 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.266e-05/0.6016, allocations: 8.031 kB / 449 MB, free: 12.11 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.013e-05/0.6016, allocations: 38.56 kB / 449 MB, free: 12.07 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.476e-05/0.6017, allocations: 7.906 kB / 449 MB, free: 12.06 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002925/0.602, allocations: 190.9 kB / 449.2 MB, free: 11.83 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.346e-05/0.602, allocations: 0 / 449.2 MB, free: 11.83 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.873e-05/0.602, allocations: 4 kB / 449.2 MB, free: 11.83 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001518/0.6022, allocations: 45.69 kB / 449.2 MB, free: 11.78 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.463e-05/0.6022, allocations: 3.938 kB / 449.2 MB, free: 11.77 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.773e-05/0.6023, allocations: 7.953 kB / 449.2 MB, free: 11.77 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.29e-06/0.6023, allocations: 7.172 kB / 449.3 MB, free: 11.76 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.029e-05/0.6024, allocations: 20 kB / 449.3 MB, free: 11.74 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004732/0.6029, allocations: 280.9 kB / 449.5 MB, free: 11.42 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001147/0.603, allocations: 39.36 kB / 449.6 MB, free: 11.37 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.845e-05/0.6031, allocations: 21.67 kB / 449.6 MB, free: 11.35 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.579e-05/0.6031, allocations: 4 kB / 449.6 MB, free: 11.34 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.659e-05/0.6031, allocations: 30.56 kB / 449.6 MB, free: 11.3 MB / 378.7 MB Notification: Performance of pre-optimization done (n=4): time 2.575e-06/0.6032, allocations: 0 / 449.6 MB, free: 11.3 MB / 378.7 MB Notification: Performance of matching and sorting (n=7): time 0.0007071/0.6039, allocations: 141.3 kB / 449.8 MB, free: 11.16 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.397e-05/0.6039, allocations: 55.41 kB / 449.8 MB, free: 11.09 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002326/0.6042, allocations: 156.3 kB / 450 MB, free: 10.93 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.602e-05/0.6042, allocations: 29.7 kB / 450 MB, free: 10.9 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.914e-05/0.6043, allocations: 159.3 kB / 450.2 MB, free: 10.74 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.612e-05/0.6044, allocations: 23.66 kB / 450.2 MB, free: 10.72 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.223e-06/0.6044, allocations: 0 / 450.2 MB, free: 10.72 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001495/0.6045, allocations: 318.8 kB / 450.5 MB, free: 10.4 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.42e-05/0.6046, allocations: 16 kB / 450.5 MB, free: 10.38 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.421e-05/0.6047, allocations: 23.98 kB / 450.5 MB, free: 10.36 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.392e-05/0.6048, allocations: 37.7 kB / 450.6 MB, free: 10.32 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.6048, allocations: 4 kB / 450.6 MB, free: 10.31 MB / 378.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002475/0.6051, allocations: 116.4 kB / 450.7 MB, free: 10.19 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.388e-05/0.6051, allocations: 29.7 kB / 450.7 MB, free: 10.15 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.385e-06/0.6052, allocations: 4 kB / 450.7 MB, free: 10.15 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.986e-05/0.6052, allocations: 0 / 450.7 MB, free: 10.15 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002554/0.6055, allocations: 19.98 kB / 450.7 MB, free: 10.13 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.729e-05/0.6055, allocations: 7.984 kB / 450.8 MB, free: 10.12 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001257/0.6056, allocations: 14.56 kB / 450.8 MB, free: 10.11 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.642e-05/0.6056, allocations: 7.938 kB / 450.8 MB, free: 10.1 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 (8): * Single equations (assignments): 7 * 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.316e-05/0.6058, allocations: 109.8 kB / 450.9 MB, free: 9.988 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.814e-05/0.6058, allocations: 11.89 kB / 450.9 MB, free: 9.977 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003013/0.6061, allocations: 98.14 kB / 451 MB, free: 9.871 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.669e-06/0.6061, allocations: 0 / 451 MB, free: 9.871 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.401e-06/0.6062, allocations: 0 / 451 MB, free: 9.871 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.549e-06/0.6062, allocations: 144 / 451 MB, free: 9.871 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006063/0.6068, allocations: 366.5 kB / 451.3 MB, free: 9.457 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.6068, allocations: 0 / 451.3 MB, free: 9.457 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000199/0.607, allocations: 27.92 kB / 451.4 MB, free: 9.43 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.963e-06/0.607, allocations: 1.406 kB / 451.4 MB, free: 9.43 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.251e-05/0.6071, allocations: 0 / 451.4 MB, free: 9.43 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.917e-06/0.6071, allocations: 0 / 451.4 MB, free: 9.43 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.6071, allocations: 0 / 451.4 MB, free: 9.43 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002546/0.6074, allocations: 183.4 kB / 451.6 MB, free: 9.234 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.723e-05/0.6075, allocations: 85.02 kB / 451.6 MB, free: 9.133 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.829e-05/0.6075, allocations: 4 kB / 451.6 MB, free: 9.129 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001523/0.6077, allocations: 15.98 kB / 451.7 MB, free: 9.113 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.553e-05/0.6077, allocations: 7.984 kB / 451.7 MB, free: 9.105 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.057e-05/0.6078, allocations: 0 / 451.7 MB, free: 9.105 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001566/0.6079, allocations: 127.3 kB / 451.8 MB, free: 8.98 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.6079, allocations: 0 / 451.8 MB, free: 8.98 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003357/0.6083, allocations: 24 kB / 451.8 MB, free: 8.957 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 (7): * Single equations (assignments): 7 * 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.001332/0.6096, allocations: 0.8914 MB / 452.7 MB, free: 8.129 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002952/0.61, allocations: 103.3 kB / 452.8 MB, free: 8.016 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.61, allocations: 0 / 452.8 MB, free: 8.016 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 8.641e-05/0.6101, allocations: 36.12 kB / 452.8 MB, free: 7.98 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002818/0.6104, allocations: 7.938 kB / 452.9 MB, free: 7.973 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007688/0.6112, allocations: 216.4 kB / 453.1 MB, free: 7.719 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003407/0.6115, allocations: 0.7043 MB / 453.8 MB, free: 6.988 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001013/0.6116, allocations: 23.42 kB / 453.8 MB, free: 6.965 MB / 378.7 MB Notification: Performance of SimCode: time 1.413e-06/0.6117, allocations: 3.938 kB / 453.8 MB, free: 6.961 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_Test27CalcHelperMain.o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test27CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test27CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test27FMU.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_Test27.so OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test27CalcHelperMain.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_Test27_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test27.fmu' failed make: *** [ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test27.fmu] Error 1