Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTable1Ds.Test21.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTable1Ds.Test21,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable1Ds_Test21",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.97/1.97, allocations: 209.2 MB / 224.8 MB, free: 0.6172 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004432/0.0004433, allocations: 16 kB / 282.6 MB, free: 9.59 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3521/0.3526, allocations: 48.7 MB / 331.3 MB, free: 6.523 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTable1Ds.Test21): time 0.002277/0.3549, allocations: 1.197 MB / 332.5 MB, free: 5.926 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001441/0.3564, allocations: 0.8217 MB / 333.3 MB, free: 5.34 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.328e-05/0.3565, allocations: 5.188 kB / 333.3 MB, free: 5.336 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002797/0.3568, allocations: 12.11 kB / 333.3 MB, free: 5.332 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001961/0.357, allocations: 24.25 kB / 333.3 MB, free: 5.32 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001673/0.3572, allocations: 35.05 kB / 333.4 MB, free: 5.301 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001393/0.3573, allocations: 36.11 kB / 333.4 MB, free: 5.285 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001109/0.3575, allocations: 26.7 kB / 333.4 MB, free: 5.266 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.429e-05/0.3576, allocations: 13.48 kB / 333.4 MB, free: 5.262 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001832/0.3577, allocations: 19.53 kB / 333.5 MB, free: 5.254 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.921e-05/0.3578, allocations: 6.391 kB / 333.5 MB, free: 5.25 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001385/0.3579, allocations: 35.03 kB / 333.5 MB, free: 5.238 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.741e-05/0.358, allocations: 4.188 kB / 333.5 MB, free: 5.238 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 3.07e-05/0.358, allocations: 32.17 kB / 333.5 MB, free: 5.203 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001812/0.3582, allocations: 62.25 kB / 333.6 MB, free: 5.188 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.705e-06/0.3582, allocations: 5.406 kB / 333.6 MB, free: 5.184 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.114e-06/0.3582, allocations: 0 / 333.6 MB, free: 5.184 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.498e-06/0.3583, allocations: 3.938 kB / 333.6 MB, free: 5.18 MB / 266.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.0004833/0.3587, allocations: 386.6 kB / 334 MB, free: 4.777 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.784e-05/0.3588, allocations: 8.984 kB / 334 MB, free: 4.777 MB / 266.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.033e-05/0.3588, allocations: 31.5 kB / 334 MB, free: 4.738 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.451e-05/0.3589, allocations: 7.469 kB / 334 MB, free: 4.734 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001766/0.3591, allocations: 186.6 kB / 334.2 MB, free: 4.523 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.376e-05/0.3591, allocations: 5.312 kB / 334.2 MB, free: 4.52 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.006e-05/0.3591, allocations: 6.828 kB / 334.2 MB, free: 4.516 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002008/0.3594, allocations: 63.31 kB / 334.3 MB, free: 4.461 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.363e-05/0.3594, allocations: 0 / 334.3 MB, free: 4.461 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.229e-05/0.3594, allocations: 1.125 kB / 334.3 MB, free: 4.461 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.132e-06/0.3594, allocations: 0.5156 kB / 334.3 MB, free: 4.461 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000153/0.3596, allocations: 34.2 kB / 334.3 MB, free: 4.449 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003852/0.36, allocations: 272.4 kB / 334.6 MB, free: 4.164 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00026/0.3603, allocations: 47.14 kB / 334.6 MB, free: 4.133 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.89e-05/0.3603, allocations: 4.516 kB / 334.6 MB, free: 4.129 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.061e-05/0.3603, allocations: 36.58 kB / 334.7 MB, free: 4.086 MB / 266.7 MB Notification: Performance of pre-optimization done (n=3): time 1.843e-06/0.3603, allocations: 1.25 kB / 334.7 MB, free: 4.086 MB / 266.7 MB Notification: Performance of matching and sorting (n=5): time 0.0008285/0.3612, allocations: 150.8 kB / 334.8 MB, free: 4.023 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.258e-05/0.3612, allocations: 78.45 kB / 334.9 MB, free: 3.93 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001424/0.3614, allocations: 134 kB / 335 MB, free: 3.812 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.428e-05/0.3614, allocations: 26.83 kB / 335.1 MB, free: 3.781 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.089e-05/0.3615, allocations: 156.5 kB / 335.2 MB, free: 3.629 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.327e-05/0.3615, allocations: 15.66 kB / 335.2 MB, free: 3.617 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.77e-06/0.3615, allocations: 0 / 335.2 MB, free: 3.617 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.547e-05/0.3616, allocations: 317.4 kB / 335.5 MB, free: 3.301 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001338/0.3617, allocations: 27.03 kB / 335.6 MB, free: 3.293 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001434/0.3619, allocations: 37.14 kB / 335.6 MB, free: 3.273 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001579/0.3621, allocations: 62.64 kB / 335.7 MB, free: 3.227 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.3621, allocations: 4.031 kB / 335.7 MB, free: 3.223 MB / 266.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003759/0.3625, allocations: 114.8 kB / 335.8 MB, free: 3.148 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.01e-05/0.3625, allocations: 33.02 kB / 335.8 MB, free: 3.117 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.035e-06/0.3625, allocations: 0.75 kB / 335.8 MB, free: 3.117 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.461e-05/0.3626, allocations: 0 / 335.8 MB, free: 3.117 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001277/0.3627, allocations: 18.69 kB / 335.8 MB, free: 3.113 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.784e-06/0.3627, allocations: 3.938 kB / 335.8 MB, free: 3.109 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.408e-05/0.3628, allocations: 11.03 kB / 335.8 MB, free: 3.105 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.542e-05/0.3629, allocations: 7.5 kB / 335.9 MB, free: 3.102 MB / 266.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 9.448e-05/0.363, allocations: 117.7 kB / 336 MB, free: 2.98 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.982e-05/0.363, allocations: 7.578 kB / 336 MB, free: 2.977 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003748/0.3634, allocations: 104.8 kB / 336.1 MB, free: 2.918 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.947e-06/0.3634, allocations: 0 / 336.1 MB, free: 2.918 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.161e-06/0.3634, allocations: 1.438 kB / 336.1 MB, free: 2.918 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.3634, allocations: 0.7031 kB / 336.1 MB, free: 2.918 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005663/0.364, allocations: 352.3 kB / 336.4 MB, free: 2.59 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/0.364, allocations: 1.75 kB / 336.4 MB, free: 2.59 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001061/0.3642, allocations: 17.36 kB / 336.4 MB, free: 2.586 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.831e-06/0.3642, allocations: 0.7031 kB / 336.4 MB, free: 2.586 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.063e-05/0.3642, allocations: 1.312 kB / 336.4 MB, free: 2.586 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.065e-06/0.3642, allocations: 0 / 336.4 MB, free: 2.586 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.891e-06/0.3642, allocations: 9.312 kB / 336.5 MB, free: 2.578 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003304/0.3646, allocations: 188.2 kB / 336.6 MB, free: 2.426 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.593e-05/0.3646, allocations: 84.72 kB / 336.7 MB, free: 2.328 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.581e-05/0.3646, allocations: 2.25 kB / 336.7 MB, free: 2.328 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001551/0.3648, allocations: 6.109 kB / 336.7 MB, free: 2.328 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.874e-05/0.3649, allocations: 12.38 kB / 336.7 MB, free: 2.32 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.658e-06/0.3649, allocations: 5.109 kB / 336.7 MB, free: 2.316 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.977e-05/0.365, allocations: 103 kB / 336.8 MB, free: 2.23 MB / 266.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.365, allocations: 0 / 336.8 MB, free: 2.23 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003556/0.3654, allocations: 25.62 kB / 336.9 MB, free: 2.223 MB / 266.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.001295/0.3667, allocations: 0.9347 MB / 337.8 MB, free: 1.441 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003971/0.3671, allocations: 111 kB / 337.9 MB, free: 1.367 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.3671, allocations: 5.156 kB / 337.9 MB, free: 1.363 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001402/0.3673, allocations: 27.8 kB / 337.9 MB, free: 1.359 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002987/0.3676, allocations: 9.75 kB / 338 MB, free: 1.355 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007514/0.3684, allocations: 413.3 kB / 338.4 MB, free: 0.957 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001528/0.3685, allocations: 0.6879 MB / 339 MB, free: 268 kB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.731e-05/0.3686, allocations: 24.53 kB / 339.1 MB, free: 252 kB / 266.7 MB Notification: Performance of SimCode: time 9.52e-07/0.3686, allocations: 1.25 kB / 339.1 MB, free: 252 kB / 266.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=5 -DSUNDIALS_MINOR_VERSION=4 -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_1_cpp_ModelicaTest_Tables_CombiTable1Ds_Test21CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable1Ds_Test21CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable1Ds_Test21CalcHelperMain.cpp:29: ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable1Ds_Test21InitializeParameter.cpp:35:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp21; ^ ./OMCppModelicaTest_3_2_1_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.1/Resources/Data/Tables/test_v7.mat", tmp21); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable1Ds_Test21CalcHelperMain.cpp:31: ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable1Ds_Test21Initialize.cpp:95:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp9; ^ ./OMCppModelicaTest_3_2_1_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.1/Resources/Data/Tables/test_v7.mat", tmp9); ~~~~~~~~~~ ^ ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable1Ds_Test21Initialize.cpp:261:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp16; ^ ./OMCppModelicaTest_3_2_1_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_1_cpp_ModelicaTest_Tables_CombiTable1Ds_Test21CalcHelperMain.cpp:34: ./OMCppModelicaTest_3_2_1_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_1_cpp_ModelicaTest_Tables_CombiTable1Ds_Test21CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_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_1_cpp_ModelicaTest_Tables_CombiTable1Ds_Test21CalcHelperMain.o' failed make: *** [OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable1Ds_Test21CalcHelperMain.o] Error 1