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.Test23.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.Test23,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test23",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.732/2.732, allocations: 234.9 MB / 250.5 MB, free: 9.555 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004362/0.0004362, allocations: 16 kB / 314.5 MB, free: 9.469 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3514/0.3518, allocations: 54.86 MB / 369.4 MB, free: 10.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1499/0.5018, allocations: 81.23 MB / 450.6 MB, free: 9.297 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003065/0.5022, allocations: 83.89 kB / 450.7 MB, free: 9.215 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01466/0.5169, allocations: 3.515 MB / 454.2 MB, free: 5.691 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.873e-06/0.5169, allocations: 0 / 454.2 MB, free: 5.691 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.165e-05/0.517, allocations: 0 / 454.2 MB, free: 5.691 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.0005334/0.5175, allocations: 403 kB / 454.6 MB, free: 5.246 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.889e-05/0.5176, allocations: 11.97 kB / 454.6 MB, free: 5.234 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.184e-05/0.5176, allocations: 34.56 kB / 454.6 MB, free: 5.191 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.53e-05/0.5177, allocations: 15.86 kB / 454.6 MB, free: 5.176 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002406/0.5179, allocations: 187 kB / 454.8 MB, free: 4.953 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.192e-05/0.5179, allocations: 0 / 454.8 MB, free: 4.953 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.772e-05/0.518, allocations: 4 kB / 454.8 MB, free: 4.949 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002098/0.5182, allocations: 59.41 kB / 454.9 MB, free: 4.879 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.589e-05/0.5182, allocations: 3.984 kB / 454.9 MB, free: 4.875 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.339e-05/0.5183, allocations: 4 kB / 454.9 MB, free: 4.871 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.004e-05/0.5183, allocations: 3.953 kB / 454.9 MB, free: 4.867 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001526/0.5184, allocations: 31.92 kB / 454.9 MB, free: 4.836 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005251/0.519, allocations: 284.8 kB / 455.2 MB, free: 4.508 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002891/0.5193, allocations: 54.55 kB / 455.3 MB, free: 4.445 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.719e-05/0.5193, allocations: 4 kB / 455.3 MB, free: 4.441 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.929e-05/0.5194, allocations: 30.56 kB / 455.3 MB, free: 4.402 MB / 378.7 MB Notification: Performance of pre-optimization done (n=3): time 4.198e-06/0.5194, allocations: 0 / 455.3 MB, free: 4.402 MB / 378.7 MB Notification: Performance of matching and sorting (n=5): time 0.0008868/0.5203, allocations: 165.4 kB / 455.4 MB, free: 4.234 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.901e-05/0.5204, allocations: 81.09 kB / 455.5 MB, free: 4.137 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001486/0.5205, allocations: 116.9 kB / 455.6 MB, free: 4.016 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.118e-05/0.5205, allocations: 25.7 kB / 455.7 MB, free: 3.984 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.638e-05/0.5206, allocations: 154.6 kB / 455.8 MB, free: 3.832 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.803e-05/0.5207, allocations: 15.75 kB / 455.8 MB, free: 3.816 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.686e-06/0.5207, allocations: 8 kB / 455.8 MB, free: 3.809 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001272/0.5208, allocations: 314.8 kB / 456.1 MB, free: 3.492 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001386/0.521, allocations: 23.98 kB / 456.2 MB, free: 3.469 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000151/0.5211, allocations: 41.7 kB / 456.2 MB, free: 3.422 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001676/0.5213, allocations: 61.7 kB / 456.3 MB, free: 3.355 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.27e-06/0.5213, allocations: 0 / 456.3 MB, free: 3.355 MB / 378.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003862/0.5217, allocations: 127.2 kB / 456.4 MB, free: 3.219 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.385e-05/0.5218, allocations: 29.7 kB / 456.4 MB, free: 3.184 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.215e-05/0.5218, allocations: 15.94 kB / 456.4 MB, free: 3.168 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.636e-05/0.5219, allocations: 0 / 456.4 MB, free: 3.168 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001256/0.522, allocations: 15.94 kB / 456.5 MB, free: 3.152 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.968e-06/0.522, allocations: 3.984 kB / 456.5 MB, free: 3.148 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.702e-05/0.5221, allocations: 7.984 kB / 456.5 MB, free: 3.141 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.705e-05/0.5221, allocations: 4 kB / 456.5 MB, free: 3.137 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.0001159/0.5223, allocations: 113.8 kB / 456.6 MB, free: 3.016 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.902e-05/0.5223, allocations: 7.906 kB / 456.6 MB, free: 3.008 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004208/0.5227, allocations: 105.9 kB / 456.7 MB, free: 2.891 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.133e-06/0.5228, allocations: 3.953 kB / 456.7 MB, free: 2.887 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.216e-06/0.5228, allocations: 4.062 kB / 456.7 MB, free: 2.883 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.447e-06/0.5228, allocations: 0 / 456.7 MB, free: 2.883 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006908/0.5235, allocations: 362.5 kB / 457.1 MB, free: 2.473 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.5235, allocations: 0 / 457.1 MB, free: 2.473 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001138/0.5236, allocations: 12 kB / 457.1 MB, free: 2.461 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.188e-06/0.5237, allocations: 4.234 kB / 457.1 MB, free: 2.457 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.06e-05/0.5237, allocations: 0 / 457.1 MB, free: 2.457 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.777e-06/0.5237, allocations: 0 / 457.1 MB, free: 2.457 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.5237, allocations: 8 kB / 457.1 MB, free: 2.449 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003994/0.5241, allocations: 191.4 kB / 457.3 MB, free: 2.246 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.165e-05/0.5242, allocations: 92.98 kB / 457.4 MB, free: 2.137 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.787e-05/0.5242, allocations: 3.953 kB / 457.4 MB, free: 2.133 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001159/0.5244, allocations: 12 kB / 457.4 MB, free: 2.121 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.274e-05/0.5244, allocations: 7.984 kB / 457.4 MB, free: 2.113 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.975e-06/0.5245, allocations: 0 / 457.4 MB, free: 2.113 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001088/0.5246, allocations: 95.27 kB / 457.5 MB, free: 2.02 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.5246, allocations: 0 / 457.5 MB, free: 2.02 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003778/0.525, allocations: 27.94 kB / 457.5 MB, free: 1.992 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.00169/0.5267, allocations: 1.014 MB / 458.5 MB, free: 1.027 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004358/0.5271, allocations: 119.4 kB / 458.6 MB, free: 0.8984 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.5272, allocations: 0 / 458.6 MB, free: 0.8984 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001492/0.5273, allocations: 31.98 kB / 458.7 MB, free: 0.8672 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002706/0.5276, allocations: 15.89 kB / 458.7 MB, free: 0.8516 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009012/0.5285, allocations: 420.4 kB / 459.1 MB, free: 392 kB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003155/0.5289, allocations: 0.6887 MB / 459.8 MB, free: 15.67 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.542e-05/0.529, allocations: 23.42 kB / 459.8 MB, free: 15.64 MB / 394.7 MB Notification: Performance of SimCode: time 9.12e-07/0.529, allocations: 0 / 459.8 MB, free: 15.64 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_Test23CalcHelperMain.o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test23CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test23CalcHelperMain.cpp:29: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test23InitializeParameter.cpp:35:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp22; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test23InitializeParameter.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.txt", tmp22); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test23CalcHelperMain.cpp:31: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test23Initialize.cpp:95:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp9; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test23Initialize.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.txt", tmp9); ~~~~~~~~~~ ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test23Initialize.cpp:261:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp16; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test23Initialize.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_Test23CalcHelperMain.cpp:34: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test23.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_Test23CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test23FMU.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_Test23CalcHelperMain.o' failed make: *** [OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test23CalcHelperMain.o] Error 1