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.Test12.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.Test12,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable2D_Test12",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.176/2.176, allocations: 209.2 MB / 224.8 MB, free: 0.5391 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006891/0.0006893, allocations: 12 kB / 282.6 MB, free: 9.578 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5311/0.5319, allocations: 48.7 MB / 331.3 MB, free: 6.512 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTable2D.Test12): time 0.003062/0.535, allocations: 1.232 MB / 332.5 MB, free: 5.902 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002127/0.5372, allocations: 0.8335 MB / 333.3 MB, free: 5.305 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.289e-05/0.5373, allocations: 1.219 kB / 333.3 MB, free: 5.305 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002202/0.5376, allocations: 15.38 kB / 333.4 MB, free: 5.297 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002419/0.5378, allocations: 27.62 kB / 333.4 MB, free: 5.281 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000204/0.538, allocations: 31.47 kB / 333.4 MB, free: 5.266 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001564/0.5382, allocations: 38.08 kB / 333.5 MB, free: 5.246 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001318/0.5384, allocations: 16.83 kB / 333.5 MB, free: 5.238 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.566e-05/0.5385, allocations: 21.52 kB / 333.5 MB, free: 5.227 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002303/0.5387, allocations: 26.61 kB / 333.5 MB, free: 5.215 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.244e-05/0.5388, allocations: 2.281 kB / 333.5 MB, free: 5.215 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002016/0.539, allocations: 30.94 kB / 333.5 MB, free: 5.207 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.33e-05/0.539, allocations: 16.28 kB / 333.6 MB, free: 5.195 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 3.77e-05/0.5391, allocations: 32.33 kB / 333.6 MB, free: 5.16 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002531/0.5393, allocations: 61.66 kB / 333.7 MB, free: 5.148 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.5394, allocations: 0 / 333.7 MB, free: 5.148 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.853e-06/0.5394, allocations: 0 / 333.7 MB, free: 5.148 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.2e-06/0.5394, allocations: 1.312 kB / 333.7 MB, free: 5.148 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.0007302/0.5401, allocations: 406.8 kB / 334.1 MB, free: 4.734 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.019e-05/0.5402, allocations: 10.5 kB / 334.1 MB, free: 4.734 MB / 266.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.815e-05/0.5403, allocations: 32.8 kB / 334.1 MB, free: 4.695 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.322e-05/0.5403, allocations: 14.59 kB / 334.1 MB, free: 4.684 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002347/0.5406, allocations: 178.7 kB / 334.3 MB, free: 4.48 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.379e-05/0.5406, allocations: 4.75 kB / 334.3 MB, free: 4.477 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.554e-05/0.5407, allocations: 2.781 kB / 334.3 MB, free: 4.477 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003328/0.541, allocations: 77 kB / 334.4 MB, free: 4.418 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.519e-05/0.541, allocations: 1.219 kB / 334.4 MB, free: 4.418 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.703e-05/0.5411, allocations: 0 / 334.4 MB, free: 4.418 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.085e-06/0.5411, allocations: 1.625 kB / 334.4 MB, free: 4.418 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00033/0.5414, allocations: 51.34 kB / 334.4 MB, free: 4.402 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005444/0.542, allocations: 284.4 kB / 334.7 MB, free: 4.113 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002425/0.5423, allocations: 47.47 kB / 334.7 MB, free: 4.082 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.786e-05/0.5423, allocations: 1.734 kB / 334.7 MB, free: 4.082 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.516e-05/0.5424, allocations: 40.55 kB / 334.8 MB, free: 4.035 MB / 266.7 MB Notification: Performance of pre-optimization done (n=4): time 2.725e-06/0.5424, allocations: 0 / 334.8 MB, free: 4.035 MB / 266.7 MB Notification: Performance of matching and sorting (n=7): time 0.001755/0.5441, allocations: 235.3 kB / 335 MB, free: 3.957 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.745e-05/0.5442, allocations: 82.39 kB / 335.1 MB, free: 3.859 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001723/0.5444, allocations: 126.9 kB / 335.2 MB, free: 3.746 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.307e-05/0.5445, allocations: 26.27 kB / 335.2 MB, free: 3.715 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.907e-05/0.5445, allocations: 161 kB / 335.4 MB, free: 3.559 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.031e-05/0.5446, allocations: 24.12 kB / 335.4 MB, free: 3.539 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.08e-05/0.5446, allocations: 1.469 kB / 335.4 MB, free: 3.539 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.401e-05/0.5447, allocations: 317.8 kB / 335.7 MB, free: 3.223 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003027/0.545, allocations: 42.17 kB / 335.8 MB, free: 3.215 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003202/0.5454, allocations: 60.55 kB / 335.8 MB, free: 3.188 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003246/0.5457, allocations: 72.55 kB / 335.9 MB, free: 3.145 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.5457, allocations: 5.156 kB / 335.9 MB, free: 3.141 MB / 266.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0007828/0.5465, allocations: 162.1 kB / 336.1 MB, free: 3.051 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.011e-05/0.5466, allocations: 32.41 kB / 336.1 MB, free: 3.02 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.077e-06/0.5466, allocations: 3.938 kB / 336.1 MB, free: 3.016 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.346e-05/0.5467, allocations: 1.438 kB / 336.1 MB, free: 3.016 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002717/0.5469, allocations: 24.11 kB / 336.1 MB, free: 3.016 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.357e-06/0.547, allocations: 4 kB / 336.1 MB, free: 3.012 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001874/0.5472, allocations: 16.8 kB / 336.2 MB, free: 3.008 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.202e-05/0.5472, allocations: 3.484 kB / 336.2 MB, free: 3.008 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.0001196/0.5473, allocations: 113.7 kB / 336.3 MB, free: 2.891 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.113e-05/0.5474, allocations: 11.23 kB / 336.3 MB, free: 2.883 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000803/0.5482, allocations: 142.1 kB / 336.4 MB, free: 2.82 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.915e-06/0.5483, allocations: 1.25 kB / 336.4 MB, free: 2.82 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.534e-06/0.5483, allocations: 4 kB / 336.4 MB, free: 2.816 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.644e-06/0.5483, allocations: 0.9375 kB / 336.4 MB, free: 2.816 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001154/0.5495, allocations: 402.7 kB / 336.8 MB, free: 2.477 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.28e-06/0.5495, allocations: 4 kB / 336.8 MB, free: 2.473 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002367/0.5498, allocations: 23.58 kB / 336.8 MB, free: 2.473 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.805e-06/0.5498, allocations: 4.219 kB / 336.8 MB, free: 2.469 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.699e-05/0.5498, allocations: 1.219 kB / 336.9 MB, free: 2.469 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.482e-06/0.5499, allocations: 1.734 kB / 336.9 MB, free: 2.469 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/0.5499, allocations: 3.953 kB / 336.9 MB, free: 2.465 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007463/0.5506, allocations: 226.1 kB / 337.1 MB, free: 2.309 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.182e-05/0.5507, allocations: 87.78 kB / 337.2 MB, free: 2.207 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.169e-05/0.5508, allocations: 5.562 kB / 337.2 MB, free: 2.203 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002552/0.551, allocations: 16.33 kB / 337.2 MB, free: 2.199 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.959e-05/0.5511, allocations: 11.12 kB / 337.2 MB, free: 2.195 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.534e-05/0.5512, allocations: 1.844 kB / 337.2 MB, free: 2.195 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001092/0.5513, allocations: 101 kB / 337.3 MB, free: 2.109 MB / 266.7 MB Notification: Performance of sort global known variables: time 6.02e-07/0.5513, allocations: 0 / 337.3 MB, free: 2.109 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000773/0.5521, allocations: 28.64 kB / 337.3 MB, free: 2.102 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.00222/0.5543, allocations: 0.9764 MB / 338.3 MB, free: 1.309 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0008208/0.5552, allocations: 152.1 kB / 338.4 MB, free: 1.227 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.03e-06/0.5552, allocations: 0 / 338.4 MB, free: 1.227 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003586/0.5556, allocations: 54.05 kB / 338.5 MB, free: 1.215 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000468/0.5561, allocations: 9.188 kB / 338.5 MB, free: 1.211 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001186/0.5573, allocations: 424.7 kB / 338.9 MB, free: 0.8047 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001871/0.5575, allocations: 0.6929 MB / 339.6 MB, free: 108 kB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001418/0.5577, allocations: 26.47 kB / 339.6 MB, free: 92 kB / 266.7 MB Notification: Performance of SimCode: time 1.232e-06/0.5577, allocations: 4 kB / 339.6 MB, free: 88 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_Test12CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable2D_Test12CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable2D_Test12CalcHelperMain.cpp:29: ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable2D_Test12InitializeParameter.cpp:35:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp26; ^ ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable2D_Test12InitializeParameter.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", tmp26); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable2D_Test12CalcHelperMain.cpp:31: ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable2D_Test12Initialize.cpp:95:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp12; ^ ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable2D_Test12Initialize.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", tmp12); ~~~~~~~~~~ ^ ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable2D_Test12Initialize.cpp:292:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp21; ^ ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable2D_Test12Initialize.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_Test12CalcHelperMain.cpp:34: ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable2D_Test12.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_Test12CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable2D_Test12FMU.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_Test12CalcHelperMain.o' failed make: *** [OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable2D_Test12CalcHelperMain.o] Error 1