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.Test1.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.Test1,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.358/2.358, allocations: 235 MB / 248.1 MB, free: 14.57 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.305e-05/3.314e-05, allocations: 4 kB / 309.8 MB, free: 1.449 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3898/0.3899, allocations: 54.85 MB / 364.6 MB, free: 5.535 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.195/0.5849, allocations: 80.86 MB / 445.5 MB, free: 15.66 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002688/0.5852, allocations: 67.97 kB / 445.6 MB, free: 15.59 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01202/0.5973, allocations: 2.729 MB / 448.3 MB, free: 12.88 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.5973, allocations: 3.938 kB / 448.3 MB, free: 12.88 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.21e-05/0.5973, allocations: 0 / 448.3 MB, free: 12.88 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.0005126/0.5979, allocations: 392.8 kB / 448.7 MB, free: 12.45 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.826e-05/0.5979, allocations: 12.03 kB / 448.7 MB, free: 12.43 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.504e-05/0.598, allocations: 30.56 kB / 448.7 MB, free: 12.39 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.288e-05/0.598, allocations: 11.86 kB / 448.7 MB, free: 12.38 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002725/0.5983, allocations: 184.4 kB / 448.9 MB, free: 12.16 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.154e-05/0.5984, allocations: 0 / 448.9 MB, free: 12.16 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.331e-05/0.5984, allocations: 4 kB / 448.9 MB, free: 12.16 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001371/0.5985, allocations: 53.25 kB / 449 MB, free: 12.11 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.605e-05/0.5986, allocations: 0 / 449 MB, free: 12.11 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.091e-05/0.5986, allocations: 0 / 449 MB, free: 12.11 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.138e-05/0.5986, allocations: 3.953 kB / 449 MB, free: 12.1 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.251e-05/0.5987, allocations: 19.98 kB / 449 MB, free: 12.08 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004904/0.5992, allocations: 284.9 kB / 449.3 MB, free: 11.75 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002211/0.5994, allocations: 38.52 kB / 449.3 MB, free: 11.71 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.18e-05/0.5995, allocations: 16.94 kB / 449.3 MB, free: 11.69 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.74e-05/0.5995, allocations: 4 kB / 449.3 MB, free: 11.68 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.475e-05/0.5996, allocations: 34.52 kB / 449.4 MB, free: 11.64 MB / 378.7 MB Notification: Performance of pre-optimization done (n=3): time 1.813e-06/0.5996, allocations: 4 kB / 449.4 MB, free: 11.64 MB / 378.7 MB Notification: Performance of matching and sorting (n=5): time 0.0005336/0.6001, allocations: 109.4 kB / 449.5 MB, free: 11.52 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.49e-05/0.6002, allocations: 52.16 kB / 449.5 MB, free: 11.46 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001579/0.6004, allocations: 126.5 kB / 449.6 MB, free: 11.33 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.296e-05/0.6004, allocations: 25.7 kB / 449.7 MB, free: 11.3 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.256e-05/0.6005, allocations: 154.6 kB / 449.8 MB, free: 11.14 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.042e-05/0.6005, allocations: 19.75 kB / 449.8 MB, free: 11.12 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.167e-06/0.6006, allocations: 4 kB / 449.8 MB, free: 11.12 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001413/0.6007, allocations: 318.8 kB / 450.1 MB, free: 10.8 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.379e-05/0.6008, allocations: 16 kB / 450.2 MB, free: 10.79 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.853e-05/0.6008, allocations: 13.22 kB / 450.2 MB, free: 10.77 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.717e-05/0.6009, allocations: 45.69 kB / 450.2 MB, free: 10.72 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.313e-06/0.6009, allocations: 0 / 450.2 MB, free: 10.72 MB / 378.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002115/0.6012, allocations: 95.33 kB / 450.3 MB, free: 10.62 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.762e-05/0.6012, allocations: 37.66 kB / 450.4 MB, free: 10.57 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.651e-06/0.6012, allocations: 0 / 450.4 MB, free: 10.57 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.485e-05/0.6013, allocations: 0 / 450.4 MB, free: 10.57 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001355/0.6014, allocations: 19.98 kB / 450.4 MB, free: 10.55 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.734e-06/0.6014, allocations: 0 / 450.4 MB, free: 10.55 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.221e-05/0.6015, allocations: 4 kB / 450.4 MB, free: 10.55 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.716e-05/0.6015, allocations: 8 kB / 450.4 MB, free: 10.54 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.291e-05/0.6016, allocations: 105 kB / 450.5 MB, free: 10.43 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.113e-05/0.6017, allocations: 7.906 kB / 450.5 MB, free: 10.43 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002516/0.6019, allocations: 97.58 kB / 450.6 MB, free: 10.32 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.935e-06/0.602, allocations: 4.875 kB / 450.6 MB, free: 10.32 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.03e-06/0.602, allocations: 0 / 450.6 MB, free: 10.32 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/0.602, allocations: 0 / 450.6 MB, free: 10.32 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005183/0.6025, allocations: 322.6 kB / 450.9 MB, free: 9.945 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.6025, allocations: 4.375 kB / 450.9 MB, free: 9.941 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001139/0.6027, allocations: 11.95 kB / 450.9 MB, free: 9.93 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.628e-06/0.6027, allocations: 12.08 kB / 450.9 MB, free: 9.918 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.29e-05/0.6027, allocations: 3.984 kB / 450.9 MB, free: 9.914 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.926e-06/0.6027, allocations: 4 kB / 450.9 MB, free: 9.91 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.947e-06/0.6027, allocations: 3.984 kB / 450.9 MB, free: 9.906 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002242/0.603, allocations: 163.5 kB / 451.1 MB, free: 9.73 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.24e-05/0.603, allocations: 85.02 kB / 451.2 MB, free: 9.629 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.246e-05/0.6031, allocations: 3.953 kB / 451.2 MB, free: 9.625 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001077/0.6032, allocations: 7.984 kB / 451.2 MB, free: 9.617 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.843e-05/0.6033, allocations: 8 kB / 451.2 MB, free: 9.609 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.183e-06/0.6033, allocations: 0 / 451.2 MB, free: 9.609 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001071/0.6034, allocations: 108.6 kB / 451.3 MB, free: 9.504 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.6034, allocations: 0 / 451.3 MB, free: 9.504 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003129/0.6037, allocations: 19.94 kB / 451.3 MB, free: 9.484 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.001201/0.6049, allocations: 0.8693 MB / 452.2 MB, free: 8.664 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002282/0.6052, allocations: 95.39 kB / 452.3 MB, free: 8.559 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.6052, allocations: 0 / 452.3 MB, free: 8.559 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 6.324e-05/0.6053, allocations: 23.94 kB / 452.3 MB, free: 8.535 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002532/0.6055, allocations: 15.94 kB / 452.3 MB, free: 8.52 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000631/0.6062, allocations: 184.2 kB / 452.5 MB, free: 8.293 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000327/0.6065, allocations: 0.6926 MB / 453.2 MB, free: 7.574 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.656e-05/0.6066, allocations: 23.44 kB / 453.2 MB, free: 7.551 MB / 378.7 MB Notification: Performance of SimCode: time 9.12e-07/0.6066, allocations: 4 kB / 453.2 MB, free: 7.547 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_Test1CalcHelperMain.o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test1CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test1CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test1FMU.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_Test1.so OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test1CalcHelperMain.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_Test1_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test1.fmu' failed make: *** [ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test1.fmu] Error 1