Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTable1D.Test23.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.CombiTable1D.Test23,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable1D_Test23",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.008/2.008, allocations: 209.2 MB / 224.8 MB, free: 292 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004523/0.0004524, allocations: 12 kB / 282.6 MB, free: 9.551 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3435/0.344, allocations: 48.71 MB / 331.3 MB, free: 6.5 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTable1D.Test23): time 0.002248/0.3463, allocations: 1.208 MB / 332.5 MB, free: 5.902 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00142/0.3478, allocations: 0.823 MB / 333.3 MB, free: 5.316 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.841e-05/0.3479, allocations: 3.938 kB / 333.3 MB, free: 5.312 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002177/0.3481, allocations: 13.91 kB / 333.3 MB, free: 5.309 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001657/0.3483, allocations: 28.19 kB / 333.4 MB, free: 5.293 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001463/0.3484, allocations: 34.47 kB / 333.4 MB, free: 5.273 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001391/0.3486, allocations: 36.31 kB / 333.4 MB, free: 5.258 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001069/0.3487, allocations: 15.05 kB / 333.4 MB, free: 5.25 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.827e-05/0.3488, allocations: 18.67 kB / 333.5 MB, free: 5.242 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001768/0.349, allocations: 19.84 kB / 333.5 MB, free: 5.234 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.754e-05/0.349, allocations: 1.125 kB / 333.5 MB, free: 5.234 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001244/0.3491, allocations: 44.38 kB / 333.5 MB, free: 5.215 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.528e-05/0.3492, allocations: 4.391 kB / 333.5 MB, free: 5.215 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 2.963e-05/0.3492, allocations: 32.42 kB / 333.6 MB, free: 5.18 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001746/0.3494, allocations: 58.52 kB / 333.6 MB, free: 5.168 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.105e-06/0.3494, allocations: 4 kB / 333.6 MB, free: 5.164 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.3494, allocations: 1.344 kB / 333.6 MB, free: 5.164 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.062e-06/0.3495, allocations: 0 / 333.6 MB, free: 5.164 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.0004721/0.3499, allocations: 388.9 kB / 334 MB, free: 4.758 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.466e-05/0.35, allocations: 9.906 kB / 334 MB, free: 4.758 MB / 266.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.284e-05/0.35, allocations: 31.88 kB / 334 MB, free: 4.719 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.446e-05/0.3501, allocations: 7.188 kB / 334 MB, free: 4.715 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001666/0.3503, allocations: 182.5 kB / 334.2 MB, free: 4.508 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.331e-05/0.3503, allocations: 5.188 kB / 334.2 MB, free: 4.504 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.45e-05/0.3503, allocations: 2.5 kB / 334.2 MB, free: 4.504 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001943/0.3505, allocations: 68.89 kB / 334.3 MB, free: 4.445 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.244e-05/0.3506, allocations: 0 / 334.3 MB, free: 4.445 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.196e-05/0.3506, allocations: 0.6562 kB / 334.3 MB, free: 4.445 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.02e-06/0.3506, allocations: 1.531 kB / 334.3 MB, free: 4.445 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001531/0.3507, allocations: 31.31 kB / 334.3 MB, free: 4.438 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004116/0.3512, allocations: 284.6 kB / 334.6 MB, free: 4.148 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002712/0.3515, allocations: 56.67 kB / 334.7 MB, free: 4.109 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.583e-05/0.3515, allocations: 2.234 kB / 334.7 MB, free: 4.109 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.719e-05/0.3515, allocations: 35.97 kB / 334.7 MB, free: 4.066 MB / 266.7 MB Notification: Performance of pre-optimization done (n=3): time 1.563e-06/0.3515, allocations: 0 / 334.7 MB, free: 4.066 MB / 266.7 MB Notification: Performance of matching and sorting (n=5): time 0.0008614/0.3524, allocations: 166.5 kB / 334.9 MB, free: 3.996 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.435e-05/0.3525, allocations: 78.91 kB / 334.9 MB, free: 3.902 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001349/0.3526, allocations: 129.7 kB / 335.1 MB, free: 3.789 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.624e-05/0.3526, allocations: 31.23 kB / 335.1 MB, free: 3.754 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.37e-05/0.3527, allocations: 151.4 kB / 335.2 MB, free: 3.605 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.486e-05/0.3527, allocations: 19.77 kB / 335.3 MB, free: 3.59 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.352e-06/0.3527, allocations: 0 / 335.3 MB, free: 3.59 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.895e-05/0.3528, allocations: 317.9 kB / 335.6 MB, free: 3.273 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001337/0.353, allocations: 29.31 kB / 335.6 MB, free: 3.266 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001443/0.3531, allocations: 39.09 kB / 335.6 MB, free: 3.246 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001584/0.3533, allocations: 69.81 kB / 335.7 MB, free: 3.195 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.3533, allocations: 0 / 335.7 MB, free: 3.195 MB / 266.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003529/0.3537, allocations: 127.7 kB / 335.8 MB, free: 3.113 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.31e-05/0.3537, allocations: 32.3 kB / 335.9 MB, free: 3.082 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.3537, allocations: 0 / 335.9 MB, free: 3.082 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.743e-05/0.3537, allocations: 1.938 kB / 335.9 MB, free: 3.082 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001166/0.3539, allocations: 17.52 kB / 335.9 MB, free: 3.078 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.356e-06/0.3539, allocations: 2.031 kB / 335.9 MB, free: 3.078 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.948e-05/0.354, allocations: 14.3 kB / 335.9 MB, free: 3.07 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.303e-05/0.354, allocations: 2 kB / 335.9 MB, free: 3.07 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.119e-05/0.3541, allocations: 115.7 kB / 336 MB, free: 2.953 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.776e-05/0.3541, allocations: 6.656 kB / 336 MB, free: 2.949 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003843/0.3545, allocations: 109.4 kB / 336.1 MB, free: 2.891 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.129e-06/0.3546, allocations: 1.938 kB / 336.1 MB, free: 2.891 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.3546, allocations: 0 / 336.1 MB, free: 2.891 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.3546, allocations: 0 / 336.1 MB, free: 2.891 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005789/0.3552, allocations: 361 kB / 336.5 MB, free: 2.562 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.3552, allocations: 0 / 336.5 MB, free: 2.562 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001031/0.3553, allocations: 13.88 kB / 336.5 MB, free: 2.562 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.935e-06/0.3553, allocations: 3.938 kB / 336.5 MB, free: 2.559 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.044e-05/0.3553, allocations: 1.875 kB / 336.5 MB, free: 2.559 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.604e-06/0.3553, allocations: 1.312 kB / 336.5 MB, free: 2.559 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.058e-06/0.3554, allocations: 4.516 kB / 336.5 MB, free: 2.555 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003353/0.3557, allocations: 193.2 kB / 336.7 MB, free: 2.402 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.397e-05/0.3557, allocations: 87.69 kB / 336.8 MB, free: 2.301 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.955e-05/0.3558, allocations: 1.859 kB / 336.8 MB, free: 2.301 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001088/0.3559, allocations: 7.375 kB / 336.8 MB, free: 2.301 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.84e-05/0.356, allocations: 11.52 kB / 336.8 MB, free: 2.293 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.826e-06/0.356, allocations: 9.531 kB / 336.8 MB, free: 2.285 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.686e-05/0.3561, allocations: 99.22 kB / 336.9 MB, free: 2.203 MB / 266.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.3561, allocations: 0 / 336.9 MB, free: 2.203 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003371/0.3564, allocations: 26.31 kB / 336.9 MB, free: 2.195 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.001285/0.3577, allocations: 0.9374 MB / 337.9 MB, free: 1.414 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003657/0.3581, allocations: 120.8 kB / 338 MB, free: 1.336 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.3581, allocations: 0 / 338 MB, free: 1.336 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001454/0.3583, allocations: 33.98 kB / 338 MB, free: 1.328 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002625/0.3586, allocations: 13.58 kB / 338 MB, free: 1.32 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000699/0.3593, allocations: 415.1 kB / 338.4 MB, free: 0.9258 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000152/0.3595, allocations: 0.69 MB / 339.1 MB, free: 236 kB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.317e-05/0.3595, allocations: 20.56 kB / 339.2 MB, free: 224 kB / 266.7 MB Notification: Performance of SimCode: time 7.71e-07/0.3596, allocations: 0 / 339.2 MB, free: 224 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_CombiTable1D_Test23CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable1D_Test23CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable1D_Test23CalcHelperMain.cpp:29: ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable1D_Test23InitializeParameter.cpp:35:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp21; ^ ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable1D_Test23InitializeParameter.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.txt", tmp21); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable1D_Test23CalcHelperMain.cpp:31: ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable1D_Test23Initialize.cpp:95:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp9; ^ ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable1D_Test23Initialize.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.txt", tmp9); ~~~~~~~~~~ ^ ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable1D_Test23Initialize.cpp:261:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp16; ^ ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable1D_Test23Initialize.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_CombiTable1D_Test23CalcHelperMain.cpp:34: ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable1D_Test23.cpp:714:24: error: use of undeclared identifier 'tmp4' _t_new_P_fileName_ = tmp4; ^ In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable1D_Test23CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable1D_Test23FMU.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_CombiTable1D_Test23CalcHelperMain.o' failed make: *** [OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable1D_Test23CalcHelperMain.o] Error 1