Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTable2D.Test14.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.CombiTable2D.Test14,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test14",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.408/2.408, allocations: 235.1 MB / 243 MB, free: 9.586 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.923e-05/2.937e-05, allocations: 4 kB / 303.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3445/0.3446, allocations: 54.86 MB / 358.1 MB, free: 14.86 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1478/0.4925, allocations: 80.45 MB / 438.6 MB, free: 14.29 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002646/0.4928, allocations: 71.95 kB / 438.7 MB, free: 14.22 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01434/0.5072, allocations: 3.168 MB / 441.8 MB, free: 11.05 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.684e-06/0.5072, allocations: 0 / 441.8 MB, free: 11.05 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.302e-05/0.5073, allocations: 0 / 441.8 MB, free: 11.05 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0006242/0.5079, allocations: 408 kB / 442.2 MB, free: 10.6 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.587e-05/0.508, allocations: 12.03 kB / 442.2 MB, free: 10.59 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.185e-05/0.5081, allocations: 11.86 kB / 442.2 MB, free: 10.58 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002839/0.5084, allocations: 182.9 kB / 442.4 MB, free: 10.36 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.257e-06/0.5084, allocations: 0 / 442.4 MB, free: 10.36 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.297e-05/0.5084, allocations: 4 kB / 442.4 MB, free: 10.36 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001262/0.5086, allocations: 23.92 kB / 442.4 MB, free: 10.33 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001639/0.5088, allocations: 57.47 kB / 442.5 MB, free: 10.27 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.348e-05/0.5088, allocations: 0 / 442.5 MB, free: 10.27 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.791e-05/0.5088, allocations: 3.953 kB / 442.5 MB, free: 10.26 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.382e-06/0.5088, allocations: 4 kB / 442.5 MB, free: 10.26 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004913/0.5093, allocations: 261.4 kB / 442.8 MB, free: 9.965 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001169/0.5095, allocations: 38.52 kB / 442.8 MB, free: 9.918 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.091e-05/0.5095, allocations: 12.86 kB / 442.8 MB, free: 9.902 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.832e-05/0.5096, allocations: 0 / 442.8 MB, free: 9.902 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.133e-05/0.5096, allocations: 46.59 kB / 442.9 MB, free: 9.848 MB / 378.7 MB Notification: Performance of pre-optimization done (n=4): time 1.914e-06/0.5097, allocations: 0 / 442.9 MB, free: 9.848 MB / 378.7 MB Notification: Performance of matching and sorting (n=7): time 0.0007918/0.5105, allocations: 133.4 kB / 443 MB, free: 9.711 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.588e-05/0.5105, allocations: 81.11 kB / 443.1 MB, free: 9.613 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001565/0.5107, allocations: 105 kB / 443.2 MB, free: 9.504 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.407e-05/0.5108, allocations: 29.7 kB / 443.2 MB, free: 9.469 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.729e-05/0.5109, allocations: 162.4 kB / 443.4 MB, free: 9.309 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.842e-05/0.5109, allocations: 23.66 kB / 443.4 MB, free: 9.285 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.147e-06/0.5109, allocations: 0 / 443.4 MB, free: 9.285 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001438/0.5111, allocations: 318.8 kB / 443.7 MB, free: 8.965 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.363e-05/0.5112, allocations: 16 kB / 443.7 MB, free: 8.949 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.402e-05/0.5113, allocations: 29.72 kB / 443.7 MB, free: 8.914 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.513e-05/0.5114, allocations: 15.98 kB / 443.8 MB, free: 8.898 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.5114, allocations: 4.031 kB / 443.8 MB, free: 8.895 MB / 378.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002607/0.5117, allocations: 73.69 kB / 443.8 MB, free: 8.816 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.119e-05/0.5118, allocations: 41.59 kB / 443.9 MB, free: 8.77 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.382e-06/0.5118, allocations: 0 / 443.9 MB, free: 8.77 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.644e-05/0.5118, allocations: 0 / 443.9 MB, free: 8.77 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002568/0.5121, allocations: 23.98 kB / 443.9 MB, free: 8.746 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.102e-06/0.5121, allocations: 3.938 kB / 443.9 MB, free: 8.742 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001515/0.5123, allocations: 15.98 kB / 443.9 MB, free: 8.727 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.921e-05/0.5123, allocations: 4 kB / 443.9 MB, free: 8.723 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 (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 9.874e-05/0.5124, allocations: 101 kB / 444 MB, free: 8.617 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002332/0.5127, allocations: 77.58 kB / 444.1 MB, free: 8.535 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.871e-05/0.5127, allocations: 11.86 kB / 444.1 MB, free: 8.523 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002898/0.513, allocations: 82.23 kB / 444.2 MB, free: 8.434 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.244e-06/0.5131, allocations: 4 kB / 444.2 MB, free: 8.43 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.391e-06/0.5131, allocations: 0 / 444.2 MB, free: 8.43 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.419e-06/0.5131, allocations: 4 kB / 444.2 MB, free: 8.426 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005968/0.5137, allocations: 311.6 kB / 444.5 MB, free: 8.078 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.143e-06/0.5137, allocations: 7.922 kB / 444.5 MB, free: 8.07 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000206/0.514, allocations: 23.98 kB / 444.5 MB, free: 8.047 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.17e-06/0.514, allocations: 0 / 444.5 MB, free: 8.047 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.567e-05/0.514, allocations: 4 kB / 444.5 MB, free: 8.043 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.735e-06/0.514, allocations: 4 kB / 444.5 MB, free: 8.039 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.514, allocations: 4 kB / 444.5 MB, free: 8.035 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002637/0.5143, allocations: 171.5 kB / 444.7 MB, free: 7.852 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.96e-05/0.5144, allocations: 77.11 kB / 444.8 MB, free: 7.758 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.966e-05/0.5144, allocations: 0 / 444.8 MB, free: 7.758 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002289/0.5147, allocations: 15.98 kB / 444.8 MB, free: 7.742 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.647e-05/0.5148, allocations: 7.984 kB / 444.8 MB, free: 7.734 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.132e-05/0.5148, allocations: 4 kB / 444.8 MB, free: 7.73 MB / 378.7 MB Notification: Performance of sorting global known variables: time 9.195e-05/0.5149, allocations: 95.27 kB / 444.9 MB, free: 7.637 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.41e-07/0.5149, allocations: 0 / 444.9 MB, free: 7.637 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005588/0.5155, allocations: 27.98 kB / 444.9 MB, free: 7.609 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 (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.001754/0.5172, allocations: 0.9381 MB / 445.9 MB, free: 6.695 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002977/0.5176, allocations: 103.3 kB / 446 MB, free: 6.582 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.5176, allocations: 0 / 446 MB, free: 6.582 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 9.569e-05/0.5177, allocations: 23.98 kB / 446 MB, free: 6.559 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003677/0.5181, allocations: 12 kB / 446 MB, free: 6.547 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000866/0.519, allocations: 179 kB / 446.2 MB, free: 6.328 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003462/0.5193, allocations: 0.6971 MB / 446.9 MB, free: 5.605 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001295/0.5195, allocations: 23.42 kB / 446.9 MB, free: 5.582 MB / 378.7 MB Notification: Performance of SimCode: time 1.383e-06/0.5195, allocations: 4 kB / 446.9 MB, free: 5.578 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_CombiTable2D_Test14CalcHelperMain.o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test14CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test14CalcHelperMain.cpp:29: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test14InitializeParameter.cpp:35:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp26; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test14InitializeParameter.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.txt", tmp26); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test14CalcHelperMain.cpp:31: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test14Initialize.cpp:95:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp12; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test14Initialize.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.txt", tmp12); ~~~~~~~~~~ ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test14Initialize.cpp:292:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp21; ^ ./OMCppModelicaTest_3_2_2_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_2_cpp_ModelicaTest_Tables_CombiTable2D_Test14CalcHelperMain.cpp:34: ./OMCppModelicaTest_3_2_2_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_2_cpp_ModelicaTest_Tables_CombiTable2D_Test14CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test14FMU.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_CombiTable2D_Test14CalcHelperMain.o' failed make: *** [OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test14CalcHelperMain.o] Error 1