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.Test30.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.Test30,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test30",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.413/2.413, allocations: 235 MB / 248.1 MB, free: 14.56 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.233e-05/3.245e-05, allocations: 4 kB / 309.8 MB, free: 1.438 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3921/0.3922, allocations: 54.85 MB / 364.6 MB, free: 5.391 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1465/0.5387, allocations: 80.9 MB / 445.5 MB, free: 15.5 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002612/0.539, allocations: 71.95 kB / 445.6 MB, free: 15.43 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01268/0.5517, allocations: 3.122 MB / 448.7 MB, free: 12.33 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.522e-06/0.5518, allocations: 0 / 448.7 MB, free: 12.33 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.183e-05/0.5518, allocations: 4 kB / 448.7 MB, free: 12.32 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.0004978/0.5523, allocations: 412.5 kB / 449.1 MB, free: 11.87 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.896e-05/0.5524, allocations: 8.781 kB / 449.1 MB, free: 11.86 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.445e-05/0.5524, allocations: 34.56 kB / 449.2 MB, free: 11.82 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.711e-05/0.5525, allocations: 11.86 kB / 449.2 MB, free: 11.81 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003203/0.5528, allocations: 191.5 kB / 449.4 MB, free: 11.58 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.246e-05/0.5528, allocations: 7.938 kB / 449.4 MB, free: 11.57 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.588e-05/0.5529, allocations: 4 kB / 449.4 MB, free: 11.57 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001404/0.553, allocations: 45.69 kB / 449.4 MB, free: 11.52 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.1e-05/0.553, allocations: 0 / 449.4 MB, free: 11.52 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.429e-05/0.5531, allocations: 4.828 kB / 449.4 MB, free: 11.51 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.434e-06/0.5531, allocations: 3.953 kB / 449.4 MB, free: 11.51 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.695e-05/0.5532, allocations: 12 kB / 449.4 MB, free: 11.5 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005133/0.5537, allocations: 296.9 kB / 449.7 MB, free: 11.16 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002179/0.5539, allocations: 38.52 kB / 449.8 MB, free: 11.11 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.119e-05/0.554, allocations: 16.95 kB / 449.8 MB, free: 11.09 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.244e-05/0.554, allocations: 3.984 kB / 449.8 MB, free: 11.09 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.194e-05/0.554, allocations: 38.14 kB / 449.8 MB, free: 11.04 MB / 378.7 MB Notification: Performance of pre-optimization done (n=3): time 1.753e-06/0.5541, allocations: 0 / 449.8 MB, free: 11.04 MB / 378.7 MB Notification: Performance of matching and sorting (n=5): time 0.0005283/0.5546, allocations: 126.6 kB / 449.9 MB, free: 10.91 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.465e-05/0.5547, allocations: 51.41 kB / 450 MB, free: 10.85 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002667/0.5549, allocations: 174.9 kB / 450.2 MB, free: 10.67 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.225e-05/0.555, allocations: 29.7 kB / 450.2 MB, free: 10.64 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.657e-05/0.5551, allocations: 162.5 kB / 450.4 MB, free: 10.48 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.39e-05/0.5551, allocations: 15.75 kB / 450.4 MB, free: 10.46 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.961e-06/0.5551, allocations: 0 / 450.4 MB, free: 10.46 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001548/0.5553, allocations: 318.8 kB / 450.7 MB, free: 10.14 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.622e-05/0.5554, allocations: 16 kB / 450.7 MB, free: 10.12 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.792e-05/0.5554, allocations: 15.98 kB / 450.7 MB, free: 10.11 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.598e-05/0.5555, allocations: 37.7 kB / 450.8 MB, free: 10.07 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.5555, allocations: 0 / 450.8 MB, free: 10.07 MB / 378.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001986/0.5557, allocations: 107.2 kB / 450.9 MB, free: 9.949 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.956e-05/0.5558, allocations: 37.64 kB / 450.9 MB, free: 9.906 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.551e-06/0.5558, allocations: 0 / 450.9 MB, free: 9.906 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.313e-05/0.5558, allocations: 3.938 kB / 450.9 MB, free: 9.902 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001214/0.5559, allocations: 16 kB / 450.9 MB, free: 9.887 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.494e-06/0.556, allocations: 4 kB / 450.9 MB, free: 9.883 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.377e-05/0.5561, allocations: 11.98 kB / 450.9 MB, free: 9.871 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.067e-05/0.5561, allocations: 0 / 450.9 MB, free: 9.871 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.347e-05/0.5562, allocations: 105 kB / 451 MB, free: 9.762 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.525e-05/0.5562, allocations: 7.906 kB / 451 MB, free: 9.754 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002351/0.5565, allocations: 93.64 kB / 451.1 MB, free: 9.66 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.507e-06/0.5565, allocations: 0 / 451.1 MB, free: 9.66 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.5565, allocations: 4 kB / 451.1 MB, free: 9.656 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.5565, allocations: 0 / 451.1 MB, free: 9.656 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005172/0.557, allocations: 359.4 kB / 451.5 MB, free: 9.25 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.129e-06/0.5571, allocations: 0 / 451.5 MB, free: 9.25 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001085/0.5572, allocations: 19.89 kB / 451.5 MB, free: 9.23 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.865e-06/0.5572, allocations: 0 / 451.5 MB, free: 9.23 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.468e-06/0.5572, allocations: 0 / 451.5 MB, free: 9.23 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.545e-06/0.5572, allocations: 384 / 451.5 MB, free: 9.23 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.408e-06/0.5572, allocations: 3.984 kB / 451.5 MB, free: 9.227 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002097/0.5575, allocations: 171.5 kB / 451.7 MB, free: 9.043 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.641e-05/0.5576, allocations: 93.02 kB / 451.8 MB, free: 8.934 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.504e-05/0.5576, allocations: 3.953 kB / 451.8 MB, free: 8.93 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001114/0.5577, allocations: 7.984 kB / 451.8 MB, free: 8.922 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.319e-05/0.5578, allocations: 4 kB / 451.8 MB, free: 8.918 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.742e-06/0.5578, allocations: 0 / 451.8 MB, free: 8.918 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001812/0.558, allocations: 151.1 kB / 451.9 MB, free: 8.77 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.558, allocations: 0 / 451.9 MB, free: 8.77 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003331/0.5583, allocations: 20 kB / 451.9 MB, free: 8.75 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.001187/0.5595, allocations: 0.8838 MB / 452.8 MB, free: 7.918 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002143/0.5598, allocations: 95.34 kB / 452.9 MB, free: 7.812 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.5598, allocations: 0 / 452.9 MB, free: 7.812 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 6.021e-05/0.5599, allocations: 20 kB / 452.9 MB, free: 7.793 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002406/0.5601, allocations: 15.94 kB / 453 MB, free: 7.777 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007004/0.5608, allocations: 236.4 kB / 453.2 MB, free: 7.504 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003226/0.5612, allocations: 0.7004 MB / 453.9 MB, free: 6.777 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.926e-05/0.5613, allocations: 31.42 kB / 453.9 MB, free: 6.746 MB / 378.7 MB Notification: Performance of SimCode: time 7.91e-07/0.5613, allocations: 0 / 453.9 MB, free: 6.746 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_Test30CalcHelperMain.o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test30CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test30CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test30FMU.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_Test30.so OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test30CalcHelperMain.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_Test30_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test30.fmu' failed make: *** [ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test30.fmu] Error 1