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.Test21.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.Test21,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test21",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.52 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.139e-05/3.148e-05, allocations: 4 kB / 309.8 MB, free: 1.453 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3972/0.3972, allocations: 54.85 MB / 364.6 MB, free: 5.543 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1592/0.5565, allocations: 81.14 MB / 445.8 MB, free: 15.36 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003166/0.5568, allocations: 67.97 kB / 445.8 MB, free: 15.3 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01764/0.5745, allocations: 3.339 MB / 449.2 MB, free: 11.98 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.863e-06/0.5746, allocations: 0 / 449.2 MB, free: 11.98 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.54e-05/0.5746, allocations: 4 kB / 449.2 MB, free: 11.97 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.000568/0.5752, allocations: 388.6 kB / 449.6 MB, free: 11.54 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.684e-05/0.5752, allocations: 8.031 kB / 449.6 MB, free: 11.54 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.273e-05/0.5753, allocations: 38.5 kB / 449.6 MB, free: 11.49 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.61e-05/0.5754, allocations: 12.61 kB / 449.6 MB, free: 11.48 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002988/0.5757, allocations: 190.4 kB / 449.8 MB, free: 11.25 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.325e-05/0.5757, allocations: 4 kB / 449.8 MB, free: 11.25 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.484e-05/0.5758, allocations: 4 kB / 449.8 MB, free: 11.25 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001887/0.576, allocations: 60.25 kB / 449.9 MB, free: 11.18 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.301e-05/0.576, allocations: 0 / 449.9 MB, free: 11.18 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.328e-05/0.576, allocations: 0 / 449.9 MB, free: 11.18 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.688e-06/0.5761, allocations: 3.953 kB / 449.9 MB, free: 11.17 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.542e-05/0.5762, allocations: 15.94 kB / 449.9 MB, free: 11.16 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000579/0.5768, allocations: 281 kB / 450.2 MB, free: 10.83 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002881/0.5771, allocations: 42.56 kB / 450.2 MB, free: 10.78 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.281e-05/0.5772, allocations: 16.94 kB / 450.2 MB, free: 10.76 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.574e-05/0.5772, allocations: 0 / 450.2 MB, free: 10.76 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.862e-05/0.5773, allocations: 39.86 kB / 450.3 MB, free: 10.71 MB / 378.7 MB Notification: Performance of pre-optimization done (n=3): time 2.084e-06/0.5773, allocations: 4 kB / 450.3 MB, free: 10.71 MB / 378.7 MB Notification: Performance of matching and sorting (n=5): time 0.0006394/0.5779, allocations: 113.4 kB / 450.4 MB, free: 10.59 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.068e-05/0.578, allocations: 81.05 kB / 450.4 MB, free: 10.5 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001696/0.5782, allocations: 114.2 kB / 450.6 MB, free: 10.38 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.426e-05/0.5782, allocations: 25.7 kB / 450.6 MB, free: 10.35 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.57e-05/0.5783, allocations: 154.6 kB / 450.7 MB, free: 10.2 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.019e-05/0.5784, allocations: 23.66 kB / 450.8 MB, free: 10.17 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.686e-06/0.5784, allocations: 4 kB / 450.8 MB, free: 10.17 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001444/0.5786, allocations: 310.8 kB / 451.1 MB, free: 9.855 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.552e-05/0.5787, allocations: 15.98 kB / 451.1 MB, free: 9.84 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.699e-05/0.5788, allocations: 29.72 kB / 451.1 MB, free: 9.805 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001034/0.5789, allocations: 49.62 kB / 451.2 MB, free: 9.75 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.5789, allocations: 0 / 451.2 MB, free: 9.75 MB / 378.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002719/0.5792, allocations: 99.39 kB / 451.3 MB, free: 9.641 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.635e-05/0.5793, allocations: 37.59 kB / 451.3 MB, free: 9.598 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.5793, allocations: 32 / 451.3 MB, free: 9.598 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.605e-05/0.5793, allocations: 4 kB / 451.3 MB, free: 9.594 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001652/0.5795, allocations: 19.92 kB / 451.3 MB, free: 9.574 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.089e-05/0.5795, allocations: 3.984 kB / 451.3 MB, free: 9.57 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001061/0.5797, allocations: 8.875 kB / 451.3 MB, free: 9.562 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.808e-05/0.5797, allocations: 3.984 kB / 451.3 MB, free: 9.559 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 0.0001047/0.5798, allocations: 109 kB / 451.4 MB, free: 9.445 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.631e-05/0.5799, allocations: 4 kB / 451.4 MB, free: 9.441 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002867/0.5802, allocations: 85.62 kB / 451.5 MB, free: 9.352 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.5802, allocations: 0 / 451.5 MB, free: 9.352 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/0.5802, allocations: 320 / 451.5 MB, free: 9.352 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.414e-06/0.5802, allocations: 0 / 451.5 MB, free: 9.352 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006318/0.5809, allocations: 338.5 kB / 451.9 MB, free: 8.965 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.805e-06/0.5809, allocations: 0 / 451.9 MB, free: 8.965 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000143/0.5811, allocations: 15.94 kB / 451.9 MB, free: 8.949 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.868e-06/0.5811, allocations: 8 kB / 451.9 MB, free: 8.941 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.206e-05/0.5811, allocations: 0 / 451.9 MB, free: 8.941 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.735e-06/0.5812, allocations: 0 / 451.9 MB, free: 8.941 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.5812, allocations: 0 / 451.9 MB, free: 8.941 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002711/0.5814, allocations: 159.5 kB / 452 MB, free: 8.77 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.322e-05/0.5815, allocations: 93 kB / 452.1 MB, free: 8.66 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.636e-05/0.5816, allocations: 3.953 kB / 452.1 MB, free: 8.656 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001673/0.5818, allocations: 4 kB / 452.1 MB, free: 8.652 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.428e-05/0.5819, allocations: 11.98 kB / 452.1 MB, free: 8.641 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.237e-06/0.5819, allocations: 0 / 452.1 MB, free: 8.641 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00011/0.582, allocations: 96.16 kB / 452.2 MB, free: 8.547 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.81e-07/0.582, allocations: 0 / 452.2 MB, free: 8.547 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005815/0.5826, allocations: 35.91 kB / 452.3 MB, free: 8.512 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.001941/0.5846, allocations: 0.9524 MB / 453.2 MB, free: 7.625 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002836/0.5849, allocations: 95.39 kB / 453.3 MB, free: 7.52 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.397e-06/0.5849, allocations: 4 kB / 453.3 MB, free: 7.516 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001022/0.585, allocations: 19.94 kB / 453.3 MB, free: 7.496 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003515/0.5854, allocations: 11.95 kB / 453.4 MB, free: 7.484 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008564/0.5863, allocations: 192.2 kB / 453.5 MB, free: 7.25 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003762/0.5867, allocations: 0.6926 MB / 454.2 MB, free: 6.531 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001098/0.5868, allocations: 19.42 kB / 454.3 MB, free: 6.512 MB / 378.7 MB Notification: Performance of SimCode: time 1.212e-06/0.5868, allocations: 0 / 454.3 MB, free: 6.512 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_Test21CalcHelperMain.o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test21CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test21CalcHelperMain.cpp:29: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test21InitializeParameter.cpp:35:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp22; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test21InitializeParameter.cpp:36: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_v7.mat", tmp22); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test21CalcHelperMain.cpp:31: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test21Initialize.cpp:95:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp9; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test21Initialize.cpp:96: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_v7.mat", tmp9); ~~~~~~~~~~ ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test21Initialize.cpp:261:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp16; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test21Initialize.cpp:262:15: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource(_functions->_OMC_LIT0, tmp16); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test21CalcHelperMain.cpp:34: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test21.cpp:714:24: error: use of undeclared identifier 'tmp4' _t_new_P_fileName_ = tmp4; ^ In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test21CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test21FMU.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_CombiTable1D_Test21CalcHelperMain.o' failed make: *** [OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test21CalcHelperMain.o] Error 1