Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTable2D.Test14.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.CombiTable2D.Test14,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable2D_Test14",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.07/2.07, allocations: 209.2 MB / 224.8 MB, free: 0.5352 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006012/0.0006015, allocations: 12 kB / 282.6 MB, free: 9.582 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3601/0.3608, allocations: 48.71 MB / 331.3 MB, free: 6.512 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTable2D.Test14): time 0.00287/0.3637, allocations: 1.231 MB / 332.5 MB, free: 5.891 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001965/0.3657, allocations: 0.8295 MB / 333.3 MB, free: 5.297 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.101e-05/0.3659, allocations: 1.312 kB / 333.3 MB, free: 5.297 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002114/0.3661, allocations: 15.27 kB / 333.4 MB, free: 5.289 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002227/0.3663, allocations: 28.3 kB / 333.4 MB, free: 5.273 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000178/0.3665, allocations: 34.95 kB / 333.4 MB, free: 5.254 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000152/0.3667, allocations: 34.38 kB / 333.5 MB, free: 5.238 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001223/0.3668, allocations: 19.31 kB / 333.5 MB, free: 5.227 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.578e-05/0.3669, allocations: 18.91 kB / 333.5 MB, free: 5.219 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002123/0.3672, allocations: 26.27 kB / 333.5 MB, free: 5.207 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.162e-05/0.3672, allocations: 2.25 kB / 333.5 MB, free: 5.207 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001602/0.3674, allocations: 36.22 kB / 333.6 MB, free: 5.195 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 2.91e-05/0.3674, allocations: 7.219 kB / 333.6 MB, free: 5.191 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 3.423e-05/0.3675, allocations: 36.48 kB / 333.6 MB, free: 5.152 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002365/0.3677, allocations: 64.58 kB / 333.7 MB, free: 5.137 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.3677, allocations: 0 / 333.7 MB, free: 5.137 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.756e-06/0.3678, allocations: 0.8906 kB / 333.7 MB, free: 5.137 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.19e-06/0.3678, allocations: 0 / 333.7 MB, free: 5.137 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.00063/0.3684, allocations: 400.1 kB / 334 MB, free: 4.73 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.384e-05/0.3685, allocations: 10.02 kB / 334.1 MB, free: 4.73 MB / 266.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.303e-05/0.3685, allocations: 36.62 kB / 334.1 MB, free: 4.688 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.555e-05/0.3686, allocations: 11.66 kB / 334.1 MB, free: 4.68 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002151/0.3689, allocations: 190 kB / 334.3 MB, free: 4.465 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.153e-05/0.3689, allocations: 5.094 kB / 334.3 MB, free: 4.461 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.549e-05/0.3689, allocations: 3.016 kB / 334.3 MB, free: 4.461 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003073/0.3693, allocations: 73.23 kB / 334.4 MB, free: 4.406 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.405e-05/0.3693, allocations: 0 / 334.4 MB, free: 4.406 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.478e-05/0.3693, allocations: 1.5 kB / 334.4 MB, free: 4.406 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.883e-06/0.3693, allocations: 5.469 kB / 334.4 MB, free: 4.402 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003106/0.3697, allocations: 47.56 kB / 334.4 MB, free: 4.391 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004734/0.3701, allocations: 283 kB / 334.7 MB, free: 4.102 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002335/0.3704, allocations: 52.42 kB / 334.8 MB, free: 4.066 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.572e-05/0.3704, allocations: 1.375 kB / 334.8 MB, free: 4.066 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.793e-05/0.3705, allocations: 32.53 kB / 334.8 MB, free: 4.027 MB / 266.7 MB Notification: Performance of pre-optimization done (n=4): time 1.964e-06/0.3705, allocations: 0 / 334.8 MB, free: 4.027 MB / 266.7 MB Notification: Performance of matching and sorting (n=7): time 0.001546/0.3721, allocations: 242.5 kB / 335 MB, free: 3.941 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.697e-05/0.3721, allocations: 78.17 kB / 335.1 MB, free: 3.848 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000151/0.3723, allocations: 127.3 kB / 335.2 MB, free: 3.734 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.884e-05/0.3723, allocations: 26.7 kB / 335.2 MB, free: 3.703 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.808e-05/0.3724, allocations: 161 kB / 335.4 MB, free: 3.547 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.805e-05/0.3725, allocations: 29.06 kB / 335.4 MB, free: 3.523 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.094e-05/0.3725, allocations: 0 / 335.4 MB, free: 3.523 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.105e-05/0.3726, allocations: 321.3 kB / 335.7 MB, free: 3.203 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002974/0.3729, allocations: 39.05 kB / 335.8 MB, free: 3.199 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000301/0.3732, allocations: 60.55 kB / 335.8 MB, free: 3.172 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002955/0.3735, allocations: 69.02 kB / 335.9 MB, free: 3.133 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.716e-06/0.3735, allocations: 4.031 kB / 335.9 MB, free: 3.129 MB / 266.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0006857/0.3742, allocations: 159 kB / 336.1 MB, free: 3.043 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.092e-05/0.3743, allocations: 31.84 kB / 336.1 MB, free: 3.012 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.3743, allocations: 4 kB / 336.1 MB, free: 3.008 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.74e-05/0.3743, allocations: 1.734 kB / 336.1 MB, free: 3.008 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002584/0.3746, allocations: 31 kB / 336.1 MB, free: 3 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.165e-06/0.3746, allocations: 0.5156 kB / 336.1 MB, free: 3 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001692/0.3748, allocations: 18.16 kB / 336.2 MB, free: 2.996 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.805e-05/0.3748, allocations: 2.234 kB / 336.2 MB, free: 2.996 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 (8): * Single equations (assignments): 7 * 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.0001084/0.375, allocations: 118.8 kB / 336.3 MB, free: 2.875 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.693e-05/0.375, allocations: 6.125 kB / 336.3 MB, free: 2.871 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007013/0.3758, allocations: 142.5 kB / 336.4 MB, free: 2.809 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.06e-06/0.3758, allocations: 0 / 336.4 MB, free: 2.809 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.612e-06/0.3758, allocations: 6.359 kB / 336.4 MB, free: 2.805 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.368e-06/0.3758, allocations: 0 / 336.4 MB, free: 2.805 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001041/0.3769, allocations: 406.7 kB / 336.8 MB, free: 2.461 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.14e-06/0.3769, allocations: 288 / 336.8 MB, free: 2.461 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000215/0.3771, allocations: 22.36 kB / 336.8 MB, free: 2.461 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.973e-06/0.3771, allocations: 2.281 kB / 336.8 MB, free: 2.461 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.461e-05/0.3772, allocations: 1.094 kB / 336.8 MB, free: 2.461 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.356e-06/0.3772, allocations: 4 kB / 336.9 MB, free: 2.457 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.589e-06/0.3772, allocations: 4.422 kB / 336.9 MB, free: 2.453 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006668/0.3779, allocations: 234.1 kB / 337.1 MB, free: 2.289 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.899e-05/0.378, allocations: 84.34 kB / 337.2 MB, free: 2.191 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.629e-05/0.378, allocations: 5.078 kB / 337.2 MB, free: 2.188 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002199/0.3782, allocations: 13.33 kB / 337.2 MB, free: 2.188 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.291e-05/0.3783, allocations: 9.828 kB / 337.2 MB, free: 2.184 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.399e-05/0.3783, allocations: 2.438 kB / 337.2 MB, free: 2.184 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.457e-05/0.3784, allocations: 104.8 kB / 337.3 MB, free: 2.094 MB / 266.7 MB Notification: Performance of sort global known variables: time 6.12e-07/0.3785, allocations: 0 / 337.3 MB, free: 2.094 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005896/0.3791, allocations: 27.84 kB / 337.3 MB, free: 2.086 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 (7): * Single equations (assignments): 7 * 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.001993/0.3811, allocations: 0.9683 MB / 338.3 MB, free: 1.301 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007268/0.3818, allocations: 153.8 kB / 338.4 MB, free: 1.219 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.998e-06/0.3819, allocations: 0 / 338.4 MB, free: 1.219 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000311/0.3822, allocations: 57.34 kB / 338.5 MB, free: 1.203 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000383/0.3826, allocations: 9.766 kB / 338.5 MB, free: 1.199 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001036/0.3836, allocations: 427.9 kB / 338.9 MB, free: 0.7891 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001821/0.3838, allocations: 0.6931 MB / 339.6 MB, free: 92 kB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001257/0.384, allocations: 22.58 kB / 339.6 MB, free: 80 kB / 266.7 MB Notification: Performance of SimCode: time 1.153e-06/0.384, allocations: 0 / 339.6 MB, free: 80 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_CombiTable2D_Test14CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable2D_Test14CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable2D_Test14CalcHelperMain.cpp:29: ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable2D_Test14InitializeParameter.cpp:35:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp26; ^ ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable2D_Test14InitializeParameter.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", tmp26); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable2D_Test14CalcHelperMain.cpp:31: ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable2D_Test14Initialize.cpp:95:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp12; ^ ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable2D_Test14Initialize.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", tmp12); ~~~~~~~~~~ ^ ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable2D_Test14Initialize.cpp:292:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp21; ^ ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable2D_Test14Initialize.cpp:293:15: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource(_functions->_OMC_LIT0, tmp21); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable2D_Test14CalcHelperMain.cpp:34: ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable2D_Test14.cpp:756:24: error: use of undeclared identifier 'tmp6' _t_new_P_fileName_ = tmp6; ^ In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable2D_Test14CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable2D_Test14FMU.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_CombiTable2D_Test14CalcHelperMain.o' failed make: *** [OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable2D_Test14CalcHelperMain.o] Error 1