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.Test19.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.Test19,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test19",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.378/2.378, allocations: 235 MB / 248.1 MB, free: 14.58 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.51e-05/3.518e-05, allocations: 4 kB / 309.8 MB, free: 1.449 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3855/0.3856, allocations: 54.85 MB / 364.6 MB, free: 5.531 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1597/0.5454, allocations: 81.14 MB / 445.8 MB, free: 15.39 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003436/0.5458, allocations: 71.95 kB / 445.8 MB, free: 15.32 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01843/0.5642, allocations: 3.338 MB / 449.2 MB, free: 12 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.5643, allocations: 0 / 449.2 MB, free: 12 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.33e-05/0.5643, allocations: 0 / 449.2 MB, free: 12 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.0006049/0.5649, allocations: 396.6 kB / 449.6 MB, free: 11.56 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.749e-05/0.565, allocations: 11.97 kB / 449.6 MB, free: 11.55 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.399e-05/0.5651, allocations: 34.56 kB / 449.6 MB, free: 11.51 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.36e-05/0.5651, allocations: 7.859 kB / 449.6 MB, free: 11.5 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003184/0.5655, allocations: 184.4 kB / 449.8 MB, free: 11.28 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.621e-05/0.5655, allocations: 8 kB / 449.8 MB, free: 11.27 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.658e-05/0.5656, allocations: 4 kB / 449.8 MB, free: 11.27 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001964/0.5658, allocations: 55.41 kB / 449.9 MB, free: 11.2 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.389e-05/0.5658, allocations: 0 / 449.9 MB, free: 11.2 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.59e-05/0.5658, allocations: 0 / 449.9 MB, free: 11.2 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.307e-06/0.5659, allocations: 3.953 kB / 449.9 MB, free: 11.2 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001035/0.566, allocations: 23.94 kB / 449.9 MB, free: 11.18 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006286/0.5666, allocations: 273 kB / 450.2 MB, free: 10.86 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002742/0.5669, allocations: 42.56 kB / 450.2 MB, free: 10.81 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.216e-05/0.567, allocations: 8.859 kB / 450.2 MB, free: 10.8 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.729e-05/0.567, allocations: 4.688 kB / 450.2 MB, free: 10.79 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.646e-05/0.5671, allocations: 46.59 kB / 450.3 MB, free: 10.74 MB / 378.7 MB Notification: Performance of pre-optimization done (n=3): time 2.564e-06/0.5671, allocations: 4 kB / 450.3 MB, free: 10.73 MB / 378.7 MB Notification: Performance of matching and sorting (n=5): time 0.000679/0.5678, allocations: 109.4 kB / 450.4 MB, free: 10.62 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.018e-05/0.5679, allocations: 85.03 kB / 450.4 MB, free: 10.52 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001979/0.5681, allocations: 110.2 kB / 450.6 MB, free: 10.41 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.299e-05/0.5682, allocations: 25.7 kB / 450.6 MB, free: 10.38 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.927e-05/0.5683, allocations: 162.5 kB / 450.7 MB, free: 10.21 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.86e-05/0.5683, allocations: 20.86 kB / 450.8 MB, free: 10.2 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.093e-05/0.5684, allocations: 4 kB / 450.8 MB, free: 10.19 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001723/0.5685, allocations: 322.8 kB / 451.1 MB, free: 9.867 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.669e-05/0.5686, allocations: 12 kB / 451.1 MB, free: 9.855 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.54e-05/0.5687, allocations: 29.7 kB / 451.1 MB, free: 9.82 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001195/0.5689, allocations: 45.69 kB / 451.2 MB, free: 9.77 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.5689, allocations: 0 / 451.2 MB, free: 9.77 MB / 378.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002931/0.5692, allocations: 95.39 kB / 451.3 MB, free: 9.664 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.769e-05/0.5693, allocations: 33.66 kB / 451.3 MB, free: 9.625 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.5693, allocations: 3.969 kB / 451.3 MB, free: 9.621 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.901e-05/0.5693, allocations: 8.875 kB / 451.3 MB, free: 9.613 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001634/0.5695, allocations: 15.98 kB / 451.3 MB, free: 9.598 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.127e-06/0.5695, allocations: 0 / 451.3 MB, free: 9.598 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001073/0.5697, allocations: 7.938 kB / 451.3 MB, free: 9.59 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.474e-05/0.5697, allocations: 8 kB / 451.3 MB, free: 9.582 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 9.85e-05/0.5698, allocations: 101 kB / 451.4 MB, free: 9.477 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.351e-05/0.5699, allocations: 4 kB / 451.4 MB, free: 9.473 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003069/0.5702, allocations: 93.86 kB / 451.5 MB, free: 9.375 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.07e-06/0.5703, allocations: 4 kB / 451.5 MB, free: 9.371 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.275e-06/0.5703, allocations: 4 kB / 451.5 MB, free: 9.367 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.174e-06/0.5703, allocations: 3.984 kB / 451.5 MB, free: 9.363 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006926/0.571, allocations: 326.6 kB / 451.9 MB, free: 8.988 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.571, allocations: 0 / 451.9 MB, free: 8.988 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001482/0.5712, allocations: 15.95 kB / 451.9 MB, free: 8.973 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.474e-06/0.5712, allocations: 7.984 kB / 451.9 MB, free: 8.965 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.241e-05/0.5712, allocations: 0 / 451.9 MB, free: 8.965 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.196e-06/0.5712, allocations: 0 / 451.9 MB, free: 8.965 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.305e-06/0.5713, allocations: 0 / 451.9 MB, free: 8.965 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002861/0.5716, allocations: 167.5 kB / 452 MB, free: 8.785 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.329e-05/0.5716, allocations: 81.02 kB / 452.1 MB, free: 8.688 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.327e-05/0.5717, allocations: 3.953 kB / 452.1 MB, free: 8.684 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001864/0.5719, allocations: 15.98 kB / 452.1 MB, free: 8.668 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.621e-05/0.572, allocations: 4 kB / 452.1 MB, free: 8.664 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.561e-05/0.572, allocations: 4 kB / 452.2 MB, free: 8.66 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000132/0.5722, allocations: 96.47 kB / 452.2 MB, free: 8.566 MB / 378.7 MB Notification: Performance of sort global known variables: time 6.51e-07/0.5722, allocations: 3.938 kB / 452.3 MB, free: 8.562 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00067/0.5729, allocations: 24 kB / 452.3 MB, free: 8.539 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.00207/0.5749, allocations: 0.965 MB / 453.2 MB, free: 7.637 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000314/0.5753, allocations: 87.41 kB / 453.3 MB, free: 7.539 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.538e-06/0.5753, allocations: 4 kB / 453.3 MB, free: 7.535 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 9.313e-05/0.5754, allocations: 23.92 kB / 453.4 MB, free: 7.512 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003938/0.5759, allocations: 7.953 kB / 453.4 MB, free: 7.504 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009667/0.5768, allocations: 188.2 kB / 453.5 MB, free: 7.273 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004184/0.5773, allocations: 0.6887 MB / 454.2 MB, free: 6.559 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001361/0.5774, allocations: 27.42 kB / 454.3 MB, free: 6.531 MB / 378.7 MB Notification: Performance of SimCode: time 1.222e-06/0.5775, allocations: 0 / 454.3 MB, free: 6.531 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_CombiTable1D_Test19CalcHelperMain.o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test19CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test19CalcHelperMain.cpp:29: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test19InitializeParameter.cpp:35:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp22; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test19InitializeParameter.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_v4.mat", tmp22); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test19CalcHelperMain.cpp:31: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test19Initialize.cpp:95:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp9; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test19Initialize.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_v4.mat", tmp9); ~~~~~~~~~~ ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test19Initialize.cpp:261:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp16; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test19Initialize.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_Test19CalcHelperMain.cpp:34: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test19.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_Test19CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test19FMU.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_Test19CalcHelperMain.o' failed make: *** [OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test19CalcHelperMain.o] Error 1