Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTable1Ds.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.CombiTable1Ds.Test21,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1Ds_Test21",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.7/2.7, allocations: 234.9 MB / 250.5 MB, free: 9.543 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004306/0.0004308, allocations: 12 kB / 314.5 MB, free: 9.465 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3457/0.3462, allocations: 54.87 MB / 369.4 MB, free: 10.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1787/0.5249, allocations: 81.22 MB / 450.6 MB, free: 9.375 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003251/0.5253, allocations: 75.97 kB / 450.7 MB, free: 9.301 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03468/0.56, allocations: 3.498 MB / 454.2 MB, free: 5.797 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.454e-06/0.56, allocations: 0 / 454.2 MB, free: 5.797 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.788e-05/0.5601, allocations: 4 kB / 454.2 MB, free: 5.793 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.01672/0.5768, allocations: 406.9 kB / 454.6 MB, free: 5.344 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.833e-05/0.5769, allocations: 8.031 kB / 454.6 MB, free: 5.336 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.565e-05/0.577, allocations: 34.56 kB / 454.6 MB, free: 5.293 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.666e-05/0.577, allocations: 11.86 kB / 454.6 MB, free: 5.281 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002988/0.5774, allocations: 175 kB / 454.8 MB, free: 5.07 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.138e-05/0.5774, allocations: 4 kB / 454.8 MB, free: 5.066 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.94e-05/0.5774, allocations: 4 kB / 454.8 MB, free: 5.062 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000258/0.5777, allocations: 67.34 kB / 454.9 MB, free: 4.984 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.325e-05/0.5777, allocations: 0 / 454.9 MB, free: 4.984 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.352e-05/0.5778, allocations: 4 kB / 454.9 MB, free: 4.98 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.626e-06/0.5778, allocations: 3.953 kB / 454.9 MB, free: 4.977 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001796/0.578, allocations: 23.98 kB / 454.9 MB, free: 4.953 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004963/0.5785, allocations: 276.8 kB / 455.2 MB, free: 4.633 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003049/0.5788, allocations: 50.5 kB / 455.2 MB, free: 4.574 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.479e-05/0.5789, allocations: 0 / 455.2 MB, free: 4.574 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.678e-05/0.5789, allocations: 38.64 kB / 455.2 MB, free: 4.527 MB / 378.7 MB Notification: Performance of pre-optimization done (n=3): time 4.017e-06/0.5789, allocations: 3.984 kB / 455.3 MB, free: 4.523 MB / 378.7 MB Notification: Performance of matching and sorting (n=5): time 0.0009507/0.5799, allocations: 157.3 kB / 455.4 MB, free: 4.363 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.261e-05/0.58, allocations: 81.11 kB / 455.5 MB, free: 4.266 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001603/0.5801, allocations: 112.9 kB / 455.6 MB, free: 4.148 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.199e-05/0.5802, allocations: 29.7 kB / 455.6 MB, free: 4.113 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.999e-05/0.5803, allocations: 158.6 kB / 455.8 MB, free: 3.957 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.949e-05/0.5803, allocations: 15.73 kB / 455.8 MB, free: 3.941 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.953e-06/0.5804, allocations: 0 / 455.8 MB, free: 3.941 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001621/0.5805, allocations: 318.8 kB / 456.1 MB, free: 3.621 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008531/0.5891, allocations: 23.98 kB / 456.1 MB, free: 3.598 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002017/0.5893, allocations: 41.64 kB / 456.2 MB, free: 3.551 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002061/0.5896, allocations: 53.69 kB / 456.2 MB, free: 3.492 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.5896, allocations: 3.938 kB / 456.2 MB, free: 3.488 MB / 378.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0004931/0.5901, allocations: 127.6 kB / 456.3 MB, free: 3.352 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.613e-05/0.5902, allocations: 29.7 kB / 456.4 MB, free: 3.316 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.144e-05/0.5902, allocations: 3.953 kB / 456.4 MB, free: 3.312 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.907e-05/0.5902, allocations: 0 / 456.4 MB, free: 3.312 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001476/0.5904, allocations: 12 kB / 456.4 MB, free: 3.301 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.123e-05/0.5904, allocations: 3.984 kB / 456.4 MB, free: 3.297 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001142/0.5905, allocations: 8 kB / 456.4 MB, free: 3.289 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.69e-05/0.5906, allocations: 4 kB / 456.4 MB, free: 3.285 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 () * Number of clocked 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.0001453/0.5907, allocations: 113.8 kB / 456.5 MB, free: 3.164 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.167e-05/0.5908, allocations: 11.91 kB / 456.5 MB, free: 3.152 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004825/0.5913, allocations: 97.56 kB / 456.6 MB, free: 3.043 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.706e-06/0.5913, allocations: 3.953 kB / 456.6 MB, free: 3.039 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.5913, allocations: 4 kB / 456.6 MB, free: 3.035 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.554e-06/0.5914, allocations: 3.984 kB / 456.6 MB, free: 3.031 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008351/0.5922, allocations: 342.5 kB / 457 MB, free: 2.641 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.957e-06/0.5922, allocations: 4 kB / 457 MB, free: 2.637 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001352/0.5924, allocations: 12 kB / 457 MB, free: 2.625 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.738e-06/0.5924, allocations: 7.953 kB / 457 MB, free: 2.617 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.75e-05/0.5925, allocations: 7.984 kB / 457 MB, free: 2.609 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.819e-06/0.5925, allocations: 0 / 457 MB, free: 2.609 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.5925, allocations: 0 / 457 MB, free: 2.609 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003888/0.5964, allocations: 183.4 kB / 457.2 MB, free: 2.414 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.851e-05/0.5965, allocations: 81.02 kB / 457.3 MB, free: 2.316 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.9e-05/0.5965, allocations: 11.94 kB / 457.3 MB, free: 2.305 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001691/0.5967, allocations: 4.25 kB / 457.3 MB, free: 2.301 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.834e-05/0.5968, allocations: 7.984 kB / 457.3 MB, free: 2.293 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.428e-05/0.5968, allocations: 8 kB / 457.3 MB, free: 2.285 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001368/0.597, allocations: 103.6 kB / 457.4 MB, free: 2.184 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.61e-07/0.597, allocations: 0 / 457.4 MB, free: 2.184 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00057/0.5976, allocations: 31.94 kB / 457.4 MB, free: 2.152 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 () * Number of clocked 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.002188/0.5998, allocations: 0.9904 MB / 458.4 MB, free: 1.211 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004534/0.6003, allocations: 119.3 kB / 458.5 MB, free: 1.082 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.813e-06/0.6003, allocations: 0 / 458.5 MB, free: 1.082 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001708/0.6005, allocations: 35.86 kB / 458.6 MB, free: 1.047 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003353/0.6008, allocations: 11.95 kB / 458.6 MB, free: 1.035 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001067/0.6019, allocations: 408.4 kB / 459 MB, free: 0.5781 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003997/0.6023, allocations: 0.6926 MB / 459.7 MB, free: 15.86 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001064/0.6024, allocations: 23.42 kB / 459.7 MB, free: 15.84 MB / 394.7 MB Notification: Performance of SimCode: time 1.082e-06/0.6025, allocations: 0 / 459.7 MB, free: 15.84 MB / 394.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_CombiTable1Ds_Test21CalcHelperMain.o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1Ds_Test21CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1Ds_Test21CalcHelperMain.cpp:29: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1Ds_Test21InitializeParameter.cpp:35:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp22; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1Ds_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_CombiTable1Ds_Test21CalcHelperMain.cpp:31: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1Ds_Test21Initialize.cpp:95:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp9; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1Ds_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_CombiTable1Ds_Test21Initialize.cpp:261:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp16; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1Ds_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_CombiTable1Ds_Test21CalcHelperMain.cpp:34: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1Ds_Test21.cpp:712:24: error: use of undeclared identifier 'tmp4' _t_new_P_fileName_ = tmp4; ^ In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1Ds_Test21CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1Ds_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_CombiTable1Ds_Test21CalcHelperMain.o' failed make: *** [OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1Ds_Test21CalcHelperMain.o] Error 1