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.Test19.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.Test19,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable1Ds_Test19",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.082/2.082, allocations: 209.2 MB / 224.8 MB, free: 0.6211 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004355/0.0004357, allocations: 12 kB / 282.6 MB, free: 9.598 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3732/0.3737, allocations: 48.7 MB / 331.3 MB, free: 6.516 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTable1Ds.Test19): time 0.002257/0.376, allocations: 1.202 MB / 332.5 MB, free: 5.918 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00141/0.3775, allocations: 0.8212 MB / 333.3 MB, free: 5.332 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.878e-05/0.3776, allocations: 5.344 kB / 333.3 MB, free: 5.328 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000222/0.3778, allocations: 16.02 kB / 333.3 MB, free: 5.32 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001823/0.378, allocations: 25.31 kB / 333.3 MB, free: 5.309 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001494/0.3782, allocations: 30.83 kB / 333.4 MB, free: 5.293 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000142/0.3783, allocations: 38.02 kB / 333.4 MB, free: 5.273 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001126/0.3785, allocations: 19.86 kB / 333.4 MB, free: 5.262 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.712e-05/0.3785, allocations: 13.28 kB / 333.4 MB, free: 5.258 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001906/0.3787, allocations: 28.11 kB / 333.5 MB, free: 5.242 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.717e-05/0.3788, allocations: 1.188 kB / 333.5 MB, free: 5.242 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001313/0.3789, allocations: 36.09 kB / 333.5 MB, free: 5.23 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.569e-05/0.3789, allocations: 4.5 kB / 333.5 MB, free: 5.23 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 3.185e-05/0.379, allocations: 36.08 kB / 333.6 MB, free: 5.191 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001786/0.3792, allocations: 62.02 kB / 333.6 MB, free: 5.176 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.575e-06/0.3792, allocations: 4 kB / 333.6 MB, free: 5.172 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.144e-06/0.3792, allocations: 1.219 kB / 333.6 MB, free: 5.172 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.11e-06/0.3792, allocations: 0 / 333.6 MB, free: 5.172 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.000522/0.3797, allocations: 385.8 kB / 334 MB, free: 4.77 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.018e-05/0.3798, allocations: 9.312 kB / 334 MB, free: 4.77 MB / 266.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.318e-05/0.3799, allocations: 36.55 kB / 334 MB, free: 4.727 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.719e-05/0.3799, allocations: 6.188 kB / 334 MB, free: 4.723 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001745/0.3801, allocations: 183.5 kB / 334.2 MB, free: 4.516 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.348e-05/0.3801, allocations: 1.25 kB / 334.2 MB, free: 4.516 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.368e-05/0.3801, allocations: 9.312 kB / 334.2 MB, free: 4.508 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001952/0.3803, allocations: 63.78 kB / 334.3 MB, free: 4.453 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.293e-05/0.3804, allocations: 1.594 kB / 334.3 MB, free: 4.453 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.103e-05/0.3804, allocations: 0 / 334.3 MB, free: 4.453 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.5e-06/0.3804, allocations: 0 / 334.3 MB, free: 4.453 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001487/0.3806, allocations: 25.83 kB / 334.3 MB, free: 4.449 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003761/0.381, allocations: 277 kB / 334.6 MB, free: 4.16 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002696/0.3812, allocations: 50.8 kB / 334.6 MB, free: 4.125 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.714e-05/0.3813, allocations: 1.438 kB / 334.6 MB, free: 4.125 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.214e-05/0.3813, allocations: 36.62 kB / 334.7 MB, free: 4.082 MB / 266.7 MB Notification: Performance of pre-optimization done (n=3): time 1.452e-06/0.3813, allocations: 0 / 334.7 MB, free: 4.082 MB / 266.7 MB Notification: Performance of matching and sorting (n=5): time 0.0008184/0.3822, allocations: 150.9 kB / 334.8 MB, free: 4.02 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.506e-05/0.3822, allocations: 78.55 kB / 334.9 MB, free: 3.926 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001435/0.3824, allocations: 133.8 kB / 335 MB, free: 3.809 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.404e-05/0.3824, allocations: 26.89 kB / 335.1 MB, free: 3.777 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.058e-05/0.3825, allocations: 157 kB / 335.2 MB, free: 3.625 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.256e-05/0.3825, allocations: 15.92 kB / 335.2 MB, free: 3.613 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.791e-06/0.3825, allocations: 0 / 335.2 MB, free: 3.613 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.424e-05/0.3826, allocations: 315.8 kB / 335.5 MB, free: 3.297 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001319/0.3827, allocations: 28.41 kB / 335.6 MB, free: 3.289 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001377/0.3829, allocations: 37.22 kB / 335.6 MB, free: 3.27 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001459/0.383, allocations: 62.33 kB / 335.7 MB, free: 3.223 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.383, allocations: 5.344 kB / 335.7 MB, free: 3.219 MB / 266.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003419/0.3834, allocations: 119.2 kB / 335.8 MB, free: 3.141 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.499e-05/0.3834, allocations: 30.5 kB / 335.8 MB, free: 3.109 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.202e-06/0.3835, allocations: 1.562 kB / 335.8 MB, free: 3.109 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.04e-05/0.3835, allocations: 1.031 kB / 335.8 MB, free: 3.109 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001235/0.3837, allocations: 14.97 kB / 335.8 MB, free: 3.109 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.013e-06/0.3837, allocations: 11.92 kB / 335.8 MB, free: 3.098 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.915e-05/0.3838, allocations: 16.41 kB / 335.9 MB, free: 3.09 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.322e-05/0.3838, allocations: 1.562 kB / 335.9 MB, free: 3.09 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 8.81e-05/0.3839, allocations: 113.6 kB / 336 MB, free: 2.973 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.968e-05/0.3839, allocations: 11.42 kB / 336 MB, free: 2.965 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003671/0.3843, allocations: 100.1 kB / 336.1 MB, free: 2.91 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/0.3843, allocations: 5.688 kB / 336.1 MB, free: 2.906 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.09e-06/0.3844, allocations: 0 / 336.1 MB, free: 2.906 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.3844, allocations: 1.703 kB / 336.1 MB, free: 2.906 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005665/0.3849, allocations: 355.3 kB / 336.4 MB, free: 2.574 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.499e-06/0.385, allocations: 1.344 kB / 336.4 MB, free: 2.574 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001059/0.3851, allocations: 14.03 kB / 336.4 MB, free: 2.574 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.188e-06/0.3851, allocations: 0 / 336.4 MB, free: 2.574 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.205e-05/0.3851, allocations: 6.016 kB / 336.5 MB, free: 2.57 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.865e-06/0.3851, allocations: 0 / 336.5 MB, free: 2.57 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.3851, allocations: 5.234 kB / 336.5 MB, free: 2.566 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003274/0.3855, allocations: 184.2 kB / 336.6 MB, free: 2.418 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.814e-05/0.3855, allocations: 84.69 kB / 336.7 MB, free: 2.32 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.495e-05/0.3856, allocations: 5.656 kB / 336.7 MB, free: 2.316 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001127/0.3857, allocations: 7.125 kB / 336.7 MB, free: 2.316 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.7e-05/0.3858, allocations: 8.438 kB / 336.7 MB, free: 2.312 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.878e-06/0.3858, allocations: 9.359 kB / 336.8 MB, free: 2.305 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.553e-05/0.3859, allocations: 98.42 kB / 336.8 MB, free: 2.223 MB / 266.7 MB Notification: Performance of sort global known variables: time 3.8e-07/0.3859, allocations: 3.938 kB / 336.9 MB, free: 2.219 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003502/0.3862, allocations: 26.09 kB / 336.9 MB, free: 2.211 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.001303/0.3876, allocations: 0.9299 MB / 337.8 MB, free: 1.434 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003882/0.388, allocations: 111.6 kB / 337.9 MB, free: 1.359 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.388, allocations: 4 kB / 337.9 MB, free: 1.355 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000137/0.3881, allocations: 28.22 kB / 337.9 MB, free: 1.352 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002848/0.3884, allocations: 13.28 kB / 338 MB, free: 1.348 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007387/0.3892, allocations: 404.2 kB / 338.4 MB, free: 0.957 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001604/0.3894, allocations: 0.6884 MB / 339 MB, free: 268 kB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.34e-05/0.3895, allocations: 29.31 kB / 339.1 MB, free: 248 kB / 266.7 MB Notification: Performance of SimCode: time 8.91e-07/0.3895, allocations: 0 / 339.1 MB, free: 248 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_Test19CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable1Ds_Test19CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable1Ds_Test19CalcHelperMain.cpp:29: ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable1Ds_Test19InitializeParameter.cpp:35:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp21; ^ ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable1Ds_Test19InitializeParameter.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_v4.mat", tmp21); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable1Ds_Test19CalcHelperMain.cpp:31: ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable1Ds_Test19Initialize.cpp:95:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp9; ^ ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable1Ds_Test19Initialize.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_v4.mat", tmp9); ~~~~~~~~~~ ^ ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable1Ds_Test19Initialize.cpp:261:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp16; ^ ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable1Ds_Test19Initialize.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_Test19CalcHelperMain.cpp:34: ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable1Ds_Test19.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_Test19CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable1Ds_Test19FMU.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_Test19CalcHelperMain.o' failed make: *** [OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable1Ds_Test19CalcHelperMain.o] Error 1