Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTable1D.Test21.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTable1D.Test21,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test21",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.436/2.436, allocations: 235.1 MB / 243 MB, free: 9.578 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.748e-05/2.766e-05, allocations: 1.375 kB / 303.3 MB, free: 9.512 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1175/0.1176, allocations: 54.85 MB / 358.1 MB, free: 10.35 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.145/0.2626, allocations: 80.48 MB / 438.6 MB, free: 9.762 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002675/0.263, allocations: 75.95 kB / 438.7 MB, free: 9.688 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0133/0.2763, allocations: 3.215 MB / 441.9 MB, free: 6.465 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.824e-06/0.2763, allocations: 0 / 441.9 MB, free: 6.465 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.072e-05/0.2764, allocations: 0 / 441.9 MB, free: 6.465 MB / 378.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.0005238/0.2769, allocations: 396 kB / 442.3 MB, free: 6.027 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.115e-05/0.277, allocations: 8.031 kB / 442.3 MB, free: 6.02 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.741e-05/0.277, allocations: 11.86 kB / 442.3 MB, free: 6.008 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002695/0.2773, allocations: 175.1 kB / 442.5 MB, free: 5.797 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.428e-05/0.2774, allocations: 0 / 442.5 MB, free: 5.797 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.817e-05/0.2774, allocations: 15.92 kB / 442.5 MB, free: 5.781 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.673e-05/0.2775, allocations: 12 kB / 442.5 MB, free: 5.77 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001259/0.2776, allocations: 59.34 kB / 442.5 MB, free: 5.699 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.47e-05/0.2777, allocations: 7.906 kB / 442.6 MB, free: 5.691 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.266e-05/0.2777, allocations: 0 / 442.6 MB, free: 5.691 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.715e-06/0.2777, allocations: 3.953 kB / 442.6 MB, free: 5.688 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004706/0.2782, allocations: 253.5 kB / 442.8 MB, free: 5.402 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002136/0.2784, allocations: 38.56 kB / 442.8 MB, free: 5.355 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.603e-05/0.2785, allocations: 12.86 kB / 442.9 MB, free: 5.34 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.898e-05/0.2785, allocations: 4 kB / 442.9 MB, free: 5.336 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.109e-05/0.2786, allocations: 34.5 kB / 442.9 MB, free: 5.293 MB / 378.7 MB Notification: Performance of pre-optimization done (n=3): time 1.633e-06/0.2786, allocations: 0 / 442.9 MB, free: 5.293 MB / 378.7 MB Notification: Performance of matching and sorting (n=5): time 0.0005102/0.2791, allocations: 109.7 kB / 443 MB, free: 5.18 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.635e-05/0.2791, allocations: 77.11 kB / 443.1 MB, free: 5.086 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001356/0.2793, allocations: 120.9 kB / 443.2 MB, free: 4.961 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.683e-05/0.2793, allocations: 25.7 kB / 443.2 MB, free: 4.93 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.922e-05/0.2794, allocations: 150.6 kB / 443.4 MB, free: 4.781 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.317e-05/0.2795, allocations: 19.75 kB / 443.4 MB, free: 4.762 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.332e-06/0.2795, allocations: 0 / 443.4 MB, free: 4.762 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001521/0.2796, allocations: 318.8 kB / 443.7 MB, free: 4.441 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.544e-05/0.2797, allocations: 12 kB / 443.7 MB, free: 4.43 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.202e-05/0.2798, allocations: 29.72 kB / 443.7 MB, free: 4.395 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.08e-05/0.2798, allocations: 24.11 kB / 443.8 MB, free: 4.371 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.442e-06/0.2799, allocations: 0 / 443.8 MB, free: 4.371 MB / 378.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001787/0.28, allocations: 69.59 kB / 443.8 MB, free: 4.297 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.327e-05/0.2801, allocations: 34.8 kB / 443.9 MB, free: 4.258 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.694e-06/0.2801, allocations: 3.984 kB / 443.9 MB, free: 4.254 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.42e-05/0.2801, allocations: 0 / 443.9 MB, free: 4.254 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001197/0.2803, allocations: 23.97 kB / 443.9 MB, free: 4.23 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.057e-06/0.2803, allocations: 0 / 443.9 MB, free: 4.23 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.309e-05/0.2804, allocations: 7.984 kB / 443.9 MB, free: 4.223 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.354e-05/0.2804, allocations: 11.88 kB / 443.9 MB, free: 4.211 MB / 378.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 () * 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.837e-05/0.2805, allocations: 107 kB / 444 MB, free: 4.102 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001553/0.2807, allocations: 61.69 kB / 444.1 MB, free: 4.035 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.771e-05/0.2807, allocations: 7.906 kB / 444.1 MB, free: 4.027 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002348/0.281, allocations: 78.03 kB / 444.2 MB, free: 3.949 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.292e-06/0.281, allocations: 7.938 kB / 444.2 MB, free: 3.941 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.281, allocations: 0 / 444.2 MB, free: 3.941 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.281, allocations: 0 / 444.2 MB, free: 3.941 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004536/0.2815, allocations: 299.2 kB / 444.5 MB, free: 3.605 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/0.2815, allocations: 0 / 444.5 MB, free: 3.605 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001111/0.2816, allocations: 15.98 kB / 444.5 MB, free: 3.59 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.901e-06/0.2817, allocations: 3.953 kB / 444.5 MB, free: 3.586 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.319e-05/0.2817, allocations: 8 kB / 444.5 MB, free: 3.578 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.2817, allocations: 256 / 444.5 MB, free: 3.578 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.796e-06/0.2817, allocations: 0 / 444.5 MB, free: 3.578 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002108/0.2819, allocations: 167.4 kB / 444.6 MB, free: 3.398 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.101e-05/0.282, allocations: 85 kB / 444.7 MB, free: 3.297 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.731e-05/0.282, allocations: 3.953 kB / 444.7 MB, free: 3.293 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001124/0.2822, allocations: 8 kB / 444.7 MB, free: 3.285 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.547e-05/0.2822, allocations: 7.984 kB / 444.7 MB, free: 3.277 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.478e-06/0.2822, allocations: 4 kB / 444.8 MB, free: 3.273 MB / 378.7 MB Notification: Performance of sorting global known variables: time 8.507e-05/0.2823, allocations: 91.28 kB / 444.8 MB, free: 3.184 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.2823, allocations: 0 / 444.8 MB, free: 3.184 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003816/0.2827, allocations: 27.92 kB / 444.9 MB, free: 3.156 MB / 378.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 () * 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.001384/0.2841, allocations: 0.9209 MB / 445.8 MB, free: 2.25 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002049/0.2844, allocations: 87.39 kB / 445.9 MB, free: 2.152 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.266e-05/0.2844, allocations: 4 kB / 445.9 MB, free: 2.148 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 5.902e-05/0.2844, allocations: 19.94 kB / 445.9 MB, free: 2.129 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002515/0.2847, allocations: 14.44 kB / 445.9 MB, free: 2.117 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006329/0.2854, allocations: 175.3 kB / 446.1 MB, free: 1.898 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000346/0.2857, allocations: 0.6885 MB / 446.8 MB, free: 1.184 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.948e-05/0.2858, allocations: 27.42 kB / 446.8 MB, free: 1.156 MB / 378.7 MB Notification: Performance of SimCode: time 9.82e-07/0.2858, allocations: 0 / 446.8 MB, free: 1.156 MB / 378.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=2 -DSUNDIALS_MINOR_VERSION=7 -DPMC_USE_SUNDIALS -DFMU_BUILD -DRUNTIME_STATIC_LINKING -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/include/omc/cpp" -I"." -I"." -I"." -DUSE_LOGGER -c -o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test21CalcHelperMain.o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test21CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test21CalcHelperMain.cpp:29: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test21InitializeParameter.cpp:35:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp22; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test21InitializeParameter.cpp:36:16: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Resources/Data/Tables/test_v7.mat", tmp22); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test21CalcHelperMain.cpp:31: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test21Initialize.cpp:95:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp9; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test21Initialize.cpp:96:16: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Resources/Data/Tables/test_v7.mat", tmp9); ~~~~~~~~~~ ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test21Initialize.cpp:261:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp16; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test21Initialize.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_2_cpp_ModelicaTest_Tables_CombiTable1D_Test21CalcHelperMain.cpp:34: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test21.cpp:714:24: error: use of undeclared identifier 'tmp4' _t_new_P_fileName_ = tmp4; ^ In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test21CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test21FMU.cpp:11: /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/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_2_cpp_ModelicaTest_Tables_CombiTable1D_Test21CalcHelperMain.o' failed make: *** [OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test21CalcHelperMain.o] Error 1