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.Test10.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.Test10,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable2D_Test10",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.139/2.139, allocations: 209.3 MB / 224.8 MB, free: 0.5234 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004315/0.0004318, allocations: 8 kB / 282.6 MB, free: 9.59 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4087/0.4092, allocations: 48.71 MB / 331.3 MB, free: 6.512 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTable2D.Test10): time 0.002526/0.4118, allocations: 1.231 MB / 332.5 MB, free: 5.906 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001485/0.4133, allocations: 0.8339 MB / 333.3 MB, free: 5.309 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.713e-05/0.4134, allocations: 1.25 kB / 333.3 MB, free: 5.309 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002173/0.4137, allocations: 14.58 kB / 333.4 MB, free: 5.301 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001801/0.4139, allocations: 28.89 kB / 333.4 MB, free: 5.285 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001384/0.414, allocations: 30.92 kB / 333.4 MB, free: 5.27 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001275/0.4142, allocations: 37.45 kB / 333.5 MB, free: 5.25 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001019/0.4143, allocations: 21.44 kB / 333.5 MB, free: 5.238 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.144e-05/0.4143, allocations: 18.66 kB / 333.5 MB, free: 5.23 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001754/0.4145, allocations: 21.52 kB / 333.5 MB, free: 5.223 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.596e-05/0.4146, allocations: 1.812 kB / 333.5 MB, free: 5.223 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001241/0.4147, allocations: 37.3 kB / 333.6 MB, free: 5.211 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 2.603e-05/0.4147, allocations: 10.64 kB / 333.6 MB, free: 5.203 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 2.63e-05/0.4148, allocations: 32.8 kB / 333.6 MB, free: 5.168 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000185/0.415, allocations: 59.88 kB / 333.7 MB, free: 5.156 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.454e-06/0.415, allocations: 0 / 333.7 MB, free: 5.156 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.354e-06/0.415, allocations: 1.75 kB / 333.7 MB, free: 5.156 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.218e-06/0.415, allocations: 0 / 333.7 MB, free: 5.156 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.000518/0.4155, allocations: 401.2 kB / 334 MB, free: 4.746 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.537e-05/0.4156, allocations: 8.844 kB / 334.1 MB, free: 4.746 MB / 266.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.234e-05/0.4156, allocations: 40.56 kB / 334.1 MB, free: 4.699 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.57e-05/0.4157, allocations: 8.812 kB / 334.1 MB, free: 4.695 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000173/0.4159, allocations: 181.6 kB / 334.3 MB, free: 4.488 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.32e-05/0.4159, allocations: 4.938 kB / 334.3 MB, free: 4.484 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.895e-05/0.4159, allocations: 3.156 kB / 334.3 MB, free: 4.484 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002485/0.4162, allocations: 81.27 kB / 334.4 MB, free: 4.422 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.236e-05/0.4162, allocations: 0 / 334.4 MB, free: 4.422 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.411e-05/0.4162, allocations: 5.312 kB / 334.4 MB, free: 4.418 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.161e-06/0.4162, allocations: 0 / 334.4 MB, free: 4.418 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002347/0.4165, allocations: 49.39 kB / 334.4 MB, free: 4.406 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003875/0.4169, allocations: 282.2 kB / 334.7 MB, free: 4.117 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001808/0.4171, allocations: 44.94 kB / 334.7 MB, free: 4.09 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.034e-05/0.4171, allocations: 5.984 kB / 334.7 MB, free: 4.086 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.526e-05/0.4172, allocations: 39.28 kB / 334.8 MB, free: 4.039 MB / 266.7 MB Notification: Performance of pre-optimization done (n=4): time 1.573e-06/0.4172, allocations: 0 / 334.8 MB, free: 4.039 MB / 266.7 MB Notification: Performance of matching and sorting (n=7): time 0.001232/0.4184, allocations: 235.8 kB / 335 MB, free: 3.961 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.419e-05/0.4185, allocations: 82.64 kB / 335.1 MB, free: 3.863 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001214/0.4186, allocations: 127.3 kB / 335.2 MB, free: 3.75 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.471e-05/0.4186, allocations: 25.7 kB / 335.2 MB, free: 3.719 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.863e-05/0.4187, allocations: 160.8 kB / 335.4 MB, free: 3.562 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.736e-05/0.4187, allocations: 24.3 kB / 335.4 MB, free: 3.543 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.556e-06/0.4187, allocations: 5.438 kB / 335.4 MB, free: 3.539 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.866e-05/0.4188, allocations: 313.9 kB / 335.7 MB, free: 3.227 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002157/0.419, allocations: 45.92 kB / 335.8 MB, free: 3.215 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002258/0.4193, allocations: 60.67 kB / 335.8 MB, free: 3.188 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002374/0.4195, allocations: 69.64 kB / 335.9 MB, free: 3.148 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.4195, allocations: 3.938 kB / 335.9 MB, free: 3.145 MB / 266.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0005356/0.4201, allocations: 162.8 kB / 336.1 MB, free: 3.055 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.676e-05/0.4201, allocations: 30.91 kB / 336.1 MB, free: 3.023 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.692e-06/0.4202, allocations: 1.25 kB / 336.1 MB, free: 3.023 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.725e-05/0.4202, allocations: 0.6094 kB / 336.1 MB, free: 3.023 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002048/0.4204, allocations: 26.75 kB / 336.1 MB, free: 3.02 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.993e-06/0.4204, allocations: 0.9375 kB / 336.1 MB, free: 3.02 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000135/0.4206, allocations: 21.31 kB / 336.2 MB, free: 3.012 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.612e-05/0.4206, allocations: 3.359 kB / 336.2 MB, free: 3.012 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 8.868e-05/0.4207, allocations: 114.4 kB / 336.3 MB, free: 2.895 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.192e-05/0.4207, allocations: 11.66 kB / 336.3 MB, free: 2.887 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000561/0.4213, allocations: 141.1 kB / 336.4 MB, free: 2.824 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.491e-06/0.4213, allocations: 1.922 kB / 336.4 MB, free: 2.824 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.4213, allocations: 4 kB / 336.4 MB, free: 2.82 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.121e-06/0.4214, allocations: 5.859 kB / 336.4 MB, free: 2.816 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007921/0.4222, allocations: 396.8 kB / 336.8 MB, free: 2.48 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.308e-06/0.4222, allocations: 1.812 kB / 336.8 MB, free: 2.48 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001715/0.4224, allocations: 26.3 kB / 336.8 MB, free: 2.477 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.543e-06/0.4224, allocations: 0.5625 kB / 336.8 MB, free: 2.477 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.266e-05/0.4224, allocations: 5.062 kB / 336.9 MB, free: 2.473 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.019e-06/0.4224, allocations: 1.828 kB / 336.9 MB, free: 2.473 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.307e-06/0.4224, allocations: 3.953 kB / 336.9 MB, free: 2.469 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005235/0.423, allocations: 228.9 kB / 337.1 MB, free: 2.309 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.325e-05/0.423, allocations: 89.19 kB / 337.2 MB, free: 2.207 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.789e-05/0.4231, allocations: 0 / 337.2 MB, free: 2.207 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001534/0.4232, allocations: 14.45 kB / 337.2 MB, free: 2.207 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.319e-05/0.4233, allocations: 14.38 kB / 337.2 MB, free: 2.199 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.003e-05/0.4233, allocations: 1.062 kB / 337.2 MB, free: 2.199 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.698e-05/0.4234, allocations: 97.31 kB / 337.3 MB, free: 2.117 MB / 266.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.4234, allocations: 0 / 337.3 MB, free: 2.117 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003611/0.4238, allocations: 27.19 kB / 337.3 MB, free: 2.109 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.001499/0.4253, allocations: 0.9826 MB / 338.3 MB, free: 1.312 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005793/0.4259, allocations: 156.8 kB / 338.5 MB, free: 1.227 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/0.4259, allocations: 1.125 kB / 338.5 MB, free: 1.227 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002316/0.4262, allocations: 44.47 kB / 338.5 MB, free: 1.223 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003056/0.4265, allocations: 12.86 kB / 338.5 MB, free: 1.219 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007853/0.4273, allocations: 431.9 kB / 338.9 MB, free: 0.8047 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001483/0.4275, allocations: 0.6907 MB / 339.6 MB, free: 112 kB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.9e-05/0.4276, allocations: 28.31 kB / 339.7 MB, free: 92 kB / 266.7 MB Notification: Performance of SimCode: time 1.422e-06/0.4276, allocations: 0 / 339.7 MB, free: 92 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_Test10CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable2D_Test10CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable2D_Test10CalcHelperMain.cpp:29: ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable2D_Test10InitializeParameter.cpp:35:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp26; ^ ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable2D_Test10InitializeParameter.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", tmp26); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable2D_Test10CalcHelperMain.cpp:31: ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable2D_Test10Initialize.cpp:95:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp12; ^ ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable2D_Test10Initialize.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", tmp12); ~~~~~~~~~~ ^ ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable2D_Test10Initialize.cpp:292:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp21; ^ ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable2D_Test10Initialize.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_Test10CalcHelperMain.cpp:34: ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable2D_Test10.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_Test10CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable2D_Test10FMU.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_Test10CalcHelperMain.o' failed make: *** [OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable2D_Test10CalcHelperMain.o] Error 1