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.Test20.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTable1D.Test20,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test20",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.765/2.765, allocations: 234.9 MB / 250.5 MB, free: 9.539 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004516/0.0004517, allocations: 11.98 kB / 314.5 MB, free: 9.469 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3805/0.381, allocations: 54.86 MB / 369.3 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1833/0.5644, allocations: 81.23 MB / 450.6 MB, free: 9.27 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003306/0.5648, allocations: 75.89 kB / 450.7 MB, free: 9.195 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01758/0.5824, allocations: 3.527 MB / 454.2 MB, free: 5.66 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.184e-06/0.5824, allocations: 0 / 454.2 MB, free: 5.66 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.552e-05/0.5825, allocations: 4 kB / 454.2 MB, free: 5.656 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.0006564/0.5831, allocations: 401.9 kB / 454.6 MB, free: 5.215 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.515e-05/0.5832, allocations: 11.97 kB / 454.6 MB, free: 5.203 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.06e-05/0.5833, allocations: 38.5 kB / 454.6 MB, free: 5.156 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.876e-05/0.5833, allocations: 7.859 kB / 454.6 MB, free: 5.148 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002999/0.5837, allocations: 183 kB / 454.8 MB, free: 4.93 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.643e-05/0.5837, allocations: 4 kB / 454.8 MB, free: 4.926 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.525e-05/0.5837, allocations: 4 kB / 454.8 MB, free: 4.922 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002526/0.584, allocations: 67.39 kB / 454.9 MB, free: 4.844 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.278e-05/0.584, allocations: 0 / 454.9 MB, free: 4.844 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.348e-05/0.5841, allocations: 4 kB / 454.9 MB, free: 4.84 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.225e-06/0.5841, allocations: 3.953 kB / 454.9 MB, free: 4.836 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002017/0.5843, allocations: 31.92 kB / 454.9 MB, free: 4.805 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005948/0.5849, allocations: 284.8 kB / 455.2 MB, free: 4.477 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003278/0.5853, allocations: 46.55 kB / 455.2 MB, free: 4.422 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.326e-05/0.5853, allocations: 0 / 455.2 MB, free: 4.422 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.394e-05/0.5854, allocations: 34.5 kB / 455.3 MB, free: 4.379 MB / 378.7 MB Notification: Performance of pre-optimization done (n=3): time 1.743e-06/0.5854, allocations: 0 / 455.3 MB, free: 4.379 MB / 378.7 MB Notification: Performance of matching and sorting (n=5): time 0.001056/0.5864, allocations: 165.7 kB / 455.4 MB, free: 4.211 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.777e-05/0.5865, allocations: 81.05 kB / 455.5 MB, free: 4.113 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001735/0.5867, allocations: 117 kB / 455.6 MB, free: 3.992 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.973e-05/0.5868, allocations: 29.7 kB / 455.7 MB, free: 3.957 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.711e-05/0.5869, allocations: 154.6 kB / 455.8 MB, free: 3.805 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.716e-05/0.5869, allocations: 15.75 kB / 455.8 MB, free: 3.789 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.416e-06/0.587, allocations: 0 / 455.8 MB, free: 3.789 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002027/0.5872, allocations: 318.8 kB / 456.1 MB, free: 3.469 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001907/0.5874, allocations: 27.98 kB / 456.2 MB, free: 3.441 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002002/0.5876, allocations: 41.7 kB / 456.2 MB, free: 3.395 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002249/0.5878, allocations: 57.67 kB / 456.3 MB, free: 3.332 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.394e-06/0.5879, allocations: 3.938 kB / 456.3 MB, free: 3.328 MB / 378.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0005081/0.5884, allocations: 123.3 kB / 456.4 MB, free: 3.195 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.88e-05/0.5885, allocations: 41.69 kB / 456.4 MB, free: 3.148 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.618e-06/0.5885, allocations: 3.953 kB / 456.4 MB, free: 3.145 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.034e-05/0.5885, allocations: 4.031 kB / 456.4 MB, free: 3.141 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001434/0.5887, allocations: 15.94 kB / 456.5 MB, free: 3.125 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.973e-06/0.5887, allocations: 0 / 456.5 MB, free: 3.125 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001162/0.5888, allocations: 16.23 kB / 456.5 MB, free: 3.109 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.268e-05/0.5889, allocations: 0 / 456.5 MB, free: 3.109 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 () * 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 0.0001586/0.589, allocations: 113.8 kB / 456.6 MB, free: 2.988 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.871e-05/0.5891, allocations: 7.906 kB / 456.6 MB, free: 2.98 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005216/0.5897, allocations: 105.6 kB / 456.7 MB, free: 2.863 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.199e-05/0.5897, allocations: 11.95 kB / 456.7 MB, free: 2.852 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.484e-06/0.5897, allocations: 0 / 456.7 MB, free: 2.852 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.5897, allocations: 3.938 kB / 456.7 MB, free: 2.848 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008734/0.5906, allocations: 354.5 kB / 457.1 MB, free: 2.445 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.945e-06/0.5906, allocations: 0 / 457.1 MB, free: 2.445 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001447/0.5908, allocations: 16 kB / 457.1 MB, free: 2.43 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.027e-05/0.5908, allocations: 7.953 kB / 457.1 MB, free: 2.422 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.152e-05/0.5908, allocations: 0 / 457.1 MB, free: 2.422 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.494e-06/0.5909, allocations: 0 / 457.1 MB, free: 2.422 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.051e-06/0.5909, allocations: 3.984 kB / 457.1 MB, free: 2.418 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004913/0.5914, allocations: 195.4 kB / 457.3 MB, free: 2.211 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.246e-05/0.5915, allocations: 85 kB / 457.4 MB, free: 2.109 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.368e-05/0.5915, allocations: 3.953 kB / 457.4 MB, free: 2.105 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001703/0.5917, allocations: 8 kB / 457.4 MB, free: 2.098 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.782e-05/0.5918, allocations: 3.984 kB / 457.4 MB, free: 2.094 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.158e-05/0.5918, allocations: 4 kB / 457.4 MB, free: 2.09 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000127/0.5919, allocations: 95.7 kB / 457.5 MB, free: 1.996 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.31e-07/0.592, allocations: 4 kB / 457.5 MB, free: 1.992 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006084/0.5926, allocations: 31.94 kB / 457.5 MB, free: 1.961 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 () * 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.002336/0.5949, allocations: 1.005 MB / 458.5 MB, free: 1.008 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005307/0.5955, allocations: 119.4 kB / 458.6 MB, free: 0.8789 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.389e-06/0.5955, allocations: 0 / 458.6 MB, free: 0.8789 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001973/0.5957, allocations: 35.92 kB / 458.7 MB, free: 0.8438 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000369/0.5961, allocations: 19.88 kB / 458.7 MB, free: 0.8242 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001164/0.5973, allocations: 416.4 kB / 459.1 MB, free: 368 kB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004366/0.5978, allocations: 0.6926 MB / 459.8 MB, free: 15.64 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000121/0.5979, allocations: 19.44 kB / 459.8 MB, free: 15.62 MB / 394.7 MB Notification: Performance of SimCode: time 1.082e-06/0.5979, allocations: 3.938 kB / 459.8 MB, free: 15.62 MB / 394.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=6 -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_2_cpp_ModelicaTest_Tables_CombiTable1D_Test20CalcHelperMain.o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test20CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test20CalcHelperMain.cpp:29: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test20InitializeParameter.cpp:35:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp22; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test20InitializeParameter.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.2/Resources/Data/Tables/test_v6.mat", tmp22); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test20CalcHelperMain.cpp:31: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test20Initialize.cpp:95:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp9; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test20Initialize.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.2/Resources/Data/Tables/test_v6.mat", tmp9); ~~~~~~~~~~ ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test20Initialize.cpp:261:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp16; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test20Initialize.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_Test20CalcHelperMain.cpp:34: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test20.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_Test20CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test20FMU.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_2_cpp_ModelicaTest_Tables_CombiTable1D_Test20CalcHelperMain.o' failed make: *** [OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test20CalcHelperMain.o] Error 1