Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTable1Ds.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.CombiTable1Ds.Test23,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1Ds_Test23",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.445/2.445, allocations: 234.9 MB / 250.5 MB, free: 9.543 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004628/0.0004628, allocations: 20 kB / 314.5 MB, free: 9.465 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3502/0.3508, allocations: 54.86 MB / 369.4 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1611/0.5119, allocations: 81.23 MB / 450.6 MB, free: 9.273 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002839/0.5122, allocations: 71.91 kB / 450.7 MB, free: 9.203 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0146/0.5268, allocations: 3.509 MB / 454.2 MB, free: 5.688 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.923e-06/0.5269, allocations: 0 / 454.2 MB, free: 5.688 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.335e-05/0.5269, allocations: 0 / 454.2 MB, free: 5.688 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.0006498/0.5276, allocations: 395 kB / 454.5 MB, free: 5.25 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.144e-05/0.5277, allocations: 15.91 kB / 454.6 MB, free: 5.234 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.419e-05/0.5277, allocations: 42.55 kB / 454.6 MB, free: 5.184 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.497e-05/0.5278, allocations: 7.859 kB / 454.6 MB, free: 5.176 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002692/0.528, allocations: 179 kB / 454.8 MB, free: 4.961 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.739e-05/0.5281, allocations: 8 kB / 454.8 MB, free: 4.953 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.556e-05/0.5281, allocations: 0 / 454.8 MB, free: 4.953 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002326/0.5284, allocations: 67.39 kB / 454.9 MB, free: 4.875 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.297e-05/0.5284, allocations: 0 / 454.9 MB, free: 4.875 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.321e-05/0.5284, allocations: 0 / 454.9 MB, free: 4.875 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.058e-05/0.5284, allocations: 3.953 kB / 454.9 MB, free: 4.871 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001511/0.5286, allocations: 31.92 kB / 454.9 MB, free: 4.84 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004775/0.5291, allocations: 276.8 kB / 455.2 MB, free: 4.52 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002695/0.5294, allocations: 38.56 kB / 455.2 MB, free: 4.473 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.5e-05/0.5294, allocations: 4 kB / 455.2 MB, free: 4.469 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.407e-05/0.5295, allocations: 38.5 kB / 455.2 MB, free: 4.422 MB / 378.7 MB Notification: Performance of pre-optimization done (n=3): time 1.964e-06/0.5295, allocations: 0 / 455.2 MB, free: 4.422 MB / 378.7 MB Notification: Performance of matching and sorting (n=5): time 0.0008891/0.5304, allocations: 161.7 kB / 455.4 MB, free: 4.258 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.827e-05/0.5305, allocations: 81.09 kB / 455.5 MB, free: 4.16 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001703/0.5306, allocations: 109 kB / 455.6 MB, free: 4.047 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.027e-05/0.5307, allocations: 29.7 kB / 455.6 MB, free: 4.012 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.81e-05/0.5308, allocations: 154.6 kB / 455.8 MB, free: 3.859 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.277e-05/0.5308, allocations: 19.75 kB / 455.8 MB, free: 3.84 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.871e-06/0.5308, allocations: 0 / 455.8 MB, free: 3.84 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001469/0.531, allocations: 314.8 kB / 456.1 MB, free: 3.523 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001446/0.5312, allocations: 27.98 kB / 456.1 MB, free: 3.496 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001434/0.5313, allocations: 37.7 kB / 456.2 MB, free: 3.453 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002085/0.5315, allocations: 57.62 kB / 456.2 MB, free: 3.391 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.699e-06/0.5316, allocations: 4.031 kB / 456.2 MB, free: 3.387 MB / 378.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003935/0.532, allocations: 119.4 kB / 456.3 MB, free: 3.258 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.546e-05/0.532, allocations: 37.69 kB / 456.4 MB, free: 3.215 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.395e-05/0.5321, allocations: 12.02 kB / 456.4 MB, free: 3.203 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.097e-05/0.5321, allocations: 0 / 456.4 MB, free: 3.203 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001239/0.5322, allocations: 12 kB / 456.4 MB, free: 3.191 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.783e-06/0.5322, allocations: 4 kB / 456.4 MB, free: 3.188 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.741e-05/0.5323, allocations: 11.97 kB / 456.4 MB, free: 3.176 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.473e-05/0.5324, allocations: 4 kB / 456.4 MB, free: 3.172 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.0001338/0.5325, allocations: 113.8 kB / 456.5 MB, free: 3.051 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.073e-05/0.5326, allocations: 3.906 kB / 456.5 MB, free: 3.047 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004034/0.533, allocations: 101.6 kB / 456.6 MB, free: 2.934 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.125e-05/0.533, allocations: 3.953 kB / 456.6 MB, free: 2.93 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.533, allocations: 0 / 456.6 MB, free: 2.93 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.937e-06/0.533, allocations: 0 / 456.6 MB, free: 2.93 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006677/0.5337, allocations: 354.6 kB / 457 MB, free: 2.527 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/0.5337, allocations: 0 / 457 MB, free: 2.527 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001088/0.5338, allocations: 12 kB / 457 MB, free: 2.516 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.427e-06/0.5339, allocations: 3.953 kB / 457 MB, free: 2.512 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.033e-05/0.5339, allocations: 0 / 457 MB, free: 2.512 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.447e-06/0.5339, allocations: 0 / 457 MB, free: 2.512 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.349e-06/0.5339, allocations: 3.938 kB / 457 MB, free: 2.508 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003714/0.5343, allocations: 187.4 kB / 457.2 MB, free: 2.309 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.516e-05/0.5344, allocations: 85.02 kB / 457.3 MB, free: 2.207 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.618e-05/0.5344, allocations: 3.953 kB / 457.3 MB, free: 2.203 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001144/0.5345, allocations: 11.98 kB / 457.3 MB, free: 2.191 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.88e-05/0.5346, allocations: 4.188 kB / 457.3 MB, free: 2.188 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.057e-06/0.5346, allocations: 8 kB / 457.3 MB, free: 2.18 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001086/0.5347, allocations: 95.7 kB / 457.4 MB, free: 2.086 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.5348, allocations: 0 / 457.4 MB, free: 2.086 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004067/0.5352, allocations: 35.91 kB / 457.4 MB, free: 2.051 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.001754/0.5369, allocations: 1 MB / 458.4 MB, free: 1.102 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003964/0.5374, allocations: 107.4 kB / 458.5 MB, free: 0.9844 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.534e-06/0.5374, allocations: 4 kB / 458.5 MB, free: 0.9805 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001336/0.5375, allocations: 27.92 kB / 458.6 MB, free: 0.9531 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002764/0.5378, allocations: 19.89 kB / 458.6 MB, free: 0.9336 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008911/0.5387, allocations: 416.3 kB / 459 MB, free: 480 kB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003628/0.5391, allocations: 0.6848 MB / 459.7 MB, free: 15.76 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001069/0.5393, allocations: 31.38 kB / 459.7 MB, free: 15.73 MB / 394.7 MB Notification: Performance of SimCode: time 1.002e-06/0.5393, allocations: 0 / 459.7 MB, free: 15.73 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_CombiTable1Ds_Test23CalcHelperMain.o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1Ds_Test23CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1Ds_Test23CalcHelperMain.cpp:29: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1Ds_Test23InitializeParameter.cpp:35:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp22; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1Ds_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_CombiTable1Ds_Test23CalcHelperMain.cpp:31: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1Ds_Test23Initialize.cpp:95:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp9; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1Ds_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_CombiTable1Ds_Test23Initialize.cpp:261:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp16; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1Ds_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_CombiTable1Ds_Test23CalcHelperMain.cpp:34: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1Ds_Test23.cpp:712:24: error: use of undeclared identifier 'tmp4' _t_new_P_fileName_ = tmp4; ^ In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1Ds_Test23CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1Ds_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_CombiTable1Ds_Test23CalcHelperMain.o' failed make: *** [OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1Ds_Test23CalcHelperMain.o] Error 1