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.Test17.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.Test17,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test17",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.419/2.419, allocations: 235 MB / 248.1 MB, free: 14.37 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.365e-05/3.379e-05, allocations: 7.984 kB / 309.8 MB, free: 1.23 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4238/0.4239, allocations: 54.85 MB / 364.6 MB, free: 5.414 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1499/0.5738, allocations: 81.44 MB / 446.1 MB, free: 14.94 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002633/0.5741, allocations: 67.97 kB / 446.1 MB, free: 14.87 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009934/0.5841, allocations: 2.67 MB / 448.8 MB, free: 12.21 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.113e-06/0.5841, allocations: 4 kB / 448.8 MB, free: 12.2 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.005e-06/0.5842, allocations: 0 / 448.8 MB, free: 12.2 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: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0004092/0.5846, allocations: 354.3 kB / 449.1 MB, free: 11.81 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.372e-05/0.5846, allocations: 12.03 kB / 449.2 MB, free: 11.8 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.286e-05/0.5847, allocations: 42.56 kB / 449.2 MB, free: 11.75 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.533e-05/0.5848, allocations: 3.906 kB / 449.2 MB, free: 11.75 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001803/0.585, allocations: 171 kB / 449.4 MB, free: 11.54 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.754e-05/0.585, allocations: 4 kB / 449.4 MB, free: 11.54 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.021e-05/0.585, allocations: 8 kB / 449.4 MB, free: 11.53 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003286/0.5854, allocations: 191.8 kB / 449.6 MB, free: 11.29 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.39e-05/0.5854, allocations: 7.891 kB / 449.6 MB, free: 11.28 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.528e-05/0.5854, allocations: 0 / 449.6 MB, free: 11.28 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.911e-05/0.5855, allocations: 11.98 kB / 449.6 MB, free: 11.27 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001233/0.5856, allocations: 55.8 kB / 449.6 MB, free: 11.21 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001342/0.587, allocations: 1.698 MB / 451.3 MB, free: 9.406 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001147/0.5871, allocations: 169.8 kB / 451.5 MB, free: 9.23 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.933e-05/0.5872, allocations: 83.31 kB / 451.6 MB, free: 9.148 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.507e-05/0.5872, allocations: 78.56 kB / 451.7 MB, free: 9.074 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.769e-05/0.5873, allocations: 113.8 kB / 451.8 MB, free: 8.953 MB / 378.7 MB Notification: Performance of pre-optimization done (n=0): time 5.19e-06/0.5873, allocations: 0 / 451.8 MB, free: 8.953 MB / 378.7 MB Notification: Performance of matching and sorting (n=0): time 0.0001143/0.5874, allocations: 41.5 kB / 451.8 MB, free: 8.906 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.866e-05/0.5875, allocations: 134.7 kB / 452 MB, free: 8.762 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002684/0.5878, allocations: 170.6 kB / 452.1 MB, free: 8.59 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.384e-05/0.5879, allocations: 25.7 kB / 452.1 MB, free: 8.559 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000168/0.588, allocations: 221.5 kB / 452.4 MB, free: 8.34 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.749e-06/0.5881, allocations: 0 / 452.4 MB, free: 8.34 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.281e-05/0.5881, allocations: 4 kB / 452.4 MB, free: 8.336 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001453/0.5882, allocations: 314.8 kB / 452.7 MB, free: 8.02 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.896e-05/0.5883, allocations: 31.98 kB / 452.7 MB, free: 7.988 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001955/0.5885, allocations: 157.1 kB / 452.9 MB, free: 7.773 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001764/0.5887, allocations: 75.84 kB / 452.9 MB, free: 7.699 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.32e-06/0.5887, allocations: 0 / 452.9 MB, free: 7.699 MB / 378.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004637/0.5892, allocations: 185.2 kB / 453.1 MB, free: 7.512 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.767e-05/0.5893, allocations: 8 kB / 453.1 MB, free: 7.504 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.181e-05/0.5893, allocations: 8.562 kB / 453.1 MB, free: 7.496 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.732e-05/0.5893, allocations: 8 kB / 453.1 MB, free: 7.488 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002363/0.5896, allocations: 51.22 kB / 453.2 MB, free: 7.441 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.843e-05/0.5896, allocations: 9.875 kB / 453.2 MB, free: 7.434 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001433/0.5898, allocations: 19.75 kB / 453.2 MB, free: 7.414 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.257e-05/0.5898, allocations: 12 kB / 453.2 MB, free: 7.402 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * 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 prepare postOptimizeDAE: time 0.0001327/0.5899, allocations: 199.2 kB / 453.4 MB, free: 7.203 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.6e-05/0.59, allocations: 108.9 kB / 453.5 MB, free: 7.09 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00011/0.5902, allocations: 116.6 kB / 453.6 MB, free: 6.965 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.4e-05/0.5903, allocations: 188.3 kB / 453.8 MB, free: 6.773 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.588e-05/0.5904, allocations: 180.2 kB / 454 MB, free: 6.59 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.651e-05/0.5904, allocations: 180.2 kB / 454.2 MB, free: 6.406 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000358/0.5908, allocations: 421.2 kB / 454.6 MB, free: 5.938 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.702e-05/0.5909, allocations: 112.8 kB / 454.7 MB, free: 5.82 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.086e-05/0.591, allocations: 105 kB / 454.8 MB, free: 5.711 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.634e-05/0.591, allocations: 188.2 kB / 455 MB, free: 5.52 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.308e-05/0.5911, allocations: 176.3 kB / 455.2 MB, free: 5.34 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.492e-05/0.5912, allocations: 180.3 kB / 455.3 MB, free: 5.156 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.857e-05/0.5913, allocations: 184.2 kB / 455.5 MB, free: 4.969 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002014/0.5915, allocations: 315.7 kB / 455.8 MB, free: 4.637 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001391/0.5917, allocations: 194 kB / 456 MB, free: 4.422 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.222e-05/0.5918, allocations: 180.2 kB / 456.2 MB, free: 4.238 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000124/0.5919, allocations: 101 kB / 456.3 MB, free: 4.133 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.404e-05/0.592, allocations: 188.2 kB / 456.5 MB, free: 3.941 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.623e-05/0.5921, allocations: 108.9 kB / 456.6 MB, free: 3.828 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001876/0.5923, allocations: 128.1 kB / 456.7 MB, free: 3.703 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.5923, allocations: 0 / 456.7 MB, free: 3.703 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004072/0.5927, allocations: 15.98 kB / 456.7 MB, free: 3.688 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 (0): * Single equations (assignments): 0 * 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.0009566/0.5937, allocations: 0.8967 MB / 457.6 MB, free: 2.805 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002418/0.594, allocations: 67.8 kB / 457.7 MB, free: 2.738 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.701e-06/0.594, allocations: 4 kB / 457.7 MB, free: 2.734 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 4.92e-06/0.594, allocations: 5.188 kB / 457.7 MB, free: 2.73 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003872/0.5944, allocations: 0.5224 MB / 458.2 MB, free: 2.203 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000701/0.5951, allocations: 268.7 kB / 458.5 MB, free: 1.895 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003568/0.5955, allocations: 0.7009 MB / 459.2 MB, free: 1.168 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.514e-05/0.5956, allocations: 35.36 kB / 459.2 MB, free: 1.133 MB / 378.7 MB Notification: Performance of SimCode: time 1.112e-06/0.5956, allocations: 0 / 459.2 MB, free: 1.133 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_Test17CalcHelperMain.o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test17CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test17CalcHelperMain.cpp:29: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test17InitializeParameter.cpp:27:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp8; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test17InitializeParameter.cpp:28:16: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Resources/Data/Tables/test_v4.mat", tmp8); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test17CalcHelperMain.cpp:31: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test17Initialize.cpp:96:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp4; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test17Initialize.cpp:97:16: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Resources/Data/Tables/test_v4.mat", tmp4); ~~~~~~~~~~ ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test17Initialize.cpp:377:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp6; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test17Initialize.cpp:378:15: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource(_functions->_OMC_LIT0, tmp6); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test17CalcHelperMain.cpp:34: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test17.cpp:606:16: error: use of undeclared identifier 'tmp0' _fileName_ = tmp0; ^ In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test17CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test17FMU.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 and 7 errors generated. : recipe for target 'OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test17CalcHelperMain.o' failed make: *** [OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test17CalcHelperMain.o] Error 1