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.Test16.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.CombiTable2D.Test16,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test16",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.401/2.401, allocations: 235 MB / 248.1 MB, free: 14.58 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.33e-05/3.367e-05, allocations: 4 kB / 309.8 MB, free: 1.445 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.395/0.3951, allocations: 54.85 MB / 364.6 MB, free: 5.539 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1673/0.5624, allocations: 81.23 MB / 445.9 MB, free: 15.28 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003332/0.5628, allocations: 71.97 kB / 445.9 MB, free: 15.21 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01273/0.5756, allocations: 2.656 MB / 448.6 MB, free: 12.56 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.753e-06/0.5756, allocations: 0 / 448.6 MB, free: 12.56 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.268e-05/0.5757, allocations: 4 kB / 448.6 MB, free: 12.56 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: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0004876/0.5762, allocations: 354.9 kB / 448.9 MB, free: 12.17 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.787e-05/0.5762, allocations: 11.97 kB / 448.9 MB, free: 12.16 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.521e-05/0.5763, allocations: 38.56 kB / 449 MB, free: 12.11 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.934e-05/0.5764, allocations: 11.86 kB / 449 MB, free: 12.1 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002059/0.5766, allocations: 175 kB / 449.2 MB, free: 11.89 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.52e-05/0.5766, allocations: 9.031 kB / 449.2 MB, free: 11.88 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.707e-05/0.5767, allocations: 7.984 kB / 449.2 MB, free: 11.87 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003749/0.5771, allocations: 179.3 kB / 449.4 MB, free: 11.64 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.345e-05/0.5771, allocations: 4 kB / 449.4 MB, free: 11.64 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.638e-05/0.5772, allocations: 11.95 kB / 449.4 MB, free: 11.62 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.34e-05/0.5772, allocations: 16.8 kB / 449.4 MB, free: 11.61 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001591/0.5774, allocations: 51.8 kB / 449.4 MB, free: 11.56 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001576/0.579, allocations: 1.698 MB / 451.1 MB, free: 9.754 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001278/0.5792, allocations: 173.1 kB / 451.3 MB, free: 9.574 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.04e-05/0.5792, allocations: 90.59 kB / 451.4 MB, free: 9.488 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.305e-05/0.5793, allocations: 75.28 kB / 451.5 MB, free: 9.414 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.389e-05/0.5794, allocations: 109.8 kB / 451.6 MB, free: 9.297 MB / 378.7 MB Notification: Performance of pre-optimization done (n=0): time 3.717e-06/0.5794, allocations: 0 / 451.6 MB, free: 9.297 MB / 378.7 MB Notification: Performance of matching and sorting (n=0): time 0.0001345/0.5796, allocations: 41.5 kB / 451.6 MB, free: 9.25 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.187e-05/0.5797, allocations: 126.7 kB / 451.7 MB, free: 9.113 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003657/0.58, allocations: 177.2 kB / 451.9 MB, free: 8.934 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.94e-05/0.5801, allocations: 29.7 kB / 451.9 MB, free: 8.898 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002099/0.5803, allocations: 209.6 kB / 452.1 MB, free: 8.691 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.998e-06/0.5804, allocations: 7.984 kB / 452.2 MB, free: 8.684 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.618e-05/0.5804, allocations: 4 kB / 452.2 MB, free: 8.68 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002771/0.5807, allocations: 318.8 kB / 452.5 MB, free: 8.359 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001183/0.5808, allocations: 31.98 kB / 452.5 MB, free: 8.328 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003193/0.5811, allocations: 156.2 kB / 452.6 MB, free: 8.117 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002282/0.5814, allocations: 71.89 kB / 452.7 MB, free: 8.047 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.208e-06/0.5814, allocations: 3.953 kB / 452.7 MB, free: 8.043 MB / 378.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0006814/0.5821, allocations: 189.2 kB / 452.9 MB, free: 7.852 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.513e-05/0.5822, allocations: 8 kB / 452.9 MB, free: 7.844 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.569e-05/0.5822, allocations: 4 kB / 452.9 MB, free: 7.84 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.961e-05/0.5822, allocations: 4.625 kB / 452.9 MB, free: 7.836 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003185/0.5826, allocations: 43.92 kB / 453 MB, free: 7.793 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.138e-05/0.5826, allocations: 15.92 kB / 453 MB, free: 7.777 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002211/0.5829, allocations: 19.84 kB / 453 MB, free: 7.758 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.308e-05/0.5829, allocations: 12 kB / 453 MB, free: 7.746 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * 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 prepare postOptimizeDAE: time 0.0001815/0.5831, allocations: 192.1 kB / 453.2 MB, free: 7.551 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001539/0.5833, allocations: 112.8 kB / 453.3 MB, free: 7.434 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001153/0.5834, allocations: 120.6 kB / 453.4 MB, free: 7.305 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001136/0.5835, allocations: 180.3 kB / 453.6 MB, free: 7.121 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.000114/0.5837, allocations: 176.3 kB / 453.8 MB, free: 6.941 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.739e-05/0.5838, allocations: 184.2 kB / 454 MB, free: 6.754 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004377/0.5842, allocations: 425.1 kB / 454.4 MB, free: 6.281 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.529e-05/0.5843, allocations: 104.9 kB / 454.5 MB, free: 6.172 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.719e-05/0.5844, allocations: 108.9 kB / 454.6 MB, free: 6.059 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.128e-05/0.5845, allocations: 180.3 kB / 454.8 MB, free: 5.875 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.22e-05/0.5846, allocations: 188.2 kB / 454.9 MB, free: 5.684 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.403e-05/0.5847, allocations: 176.3 kB / 455.1 MB, free: 5.504 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.526e-05/0.5848, allocations: 180.2 kB / 455.3 MB, free: 5.32 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000222/0.585, allocations: 323.6 kB / 455.6 MB, free: 4.98 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001096/0.5851, allocations: 186 kB / 455.8 MB, free: 4.773 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.102e-05/0.5852, allocations: 184.2 kB / 456 MB, free: 4.586 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001168/0.5854, allocations: 104.9 kB / 456.1 MB, free: 4.477 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.381e-05/0.5855, allocations: 180.3 kB / 456.2 MB, free: 4.293 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.749e-05/0.5855, allocations: 112.9 kB / 456.4 MB, free: 4.176 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001769/0.5857, allocations: 124.1 kB / 456.5 MB, free: 4.055 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.5857, allocations: 3.938 kB / 456.5 MB, free: 4.051 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003899/0.5861, allocations: 16 kB / 456.5 MB, free: 4.035 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 (0): * Single equations (assignments): 0 * 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.000894/0.587, allocations: 0.9021 MB / 457.4 MB, free: 3.152 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002393/0.5873, allocations: 75.78 kB / 457.5 MB, free: 3.078 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.5873, allocations: 0 / 457.5 MB, free: 3.078 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 3.507e-06/0.5873, allocations: 0 / 457.5 MB, free: 3.078 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003591/0.5877, allocations: 0.5353 MB / 458 MB, free: 2.539 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007182/0.5884, allocations: 268.7 kB / 458.3 MB, free: 2.23 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003121/0.5888, allocations: 0.7047 MB / 459 MB, free: 1.5 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.711e-05/0.5889, allocations: 27.42 kB / 459 MB, free: 1.473 MB / 378.7 MB Notification: Performance of SimCode: time 9.82e-07/0.5889, allocations: 0 / 459 MB, free: 1.473 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=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_CombiTable2D_Test16CalcHelperMain.o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test16CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test16CalcHelperMain.cpp:29: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test16InitializeParameter.cpp:27:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp8; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test16InitializeParameter.cpp:28: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_v4.mat", tmp8); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test16CalcHelperMain.cpp:31: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test16Initialize.cpp:96:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp4; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test16Initialize.cpp:97: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_v4.mat", tmp4); ~~~~~~~~~~ ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test16Initialize.cpp:377:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp6; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test16Initialize.cpp:378:15: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource(_functions->_OMC_LIT0, tmp6); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test16CalcHelperMain.cpp:34: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test16.cpp:606:16: error: use of undeclared identifier 'tmp0' _fileName_ = tmp0; ^ In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test16CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test16FMU.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_CombiTable2D_Test16CalcHelperMain.o' failed make: *** [OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test16CalcHelperMain.o] Error 1