Running command: "" <> buildModelFMU(PowerSystems.Examples.Introductory.Tables,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_Introductory_Tables",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(PowerSystems): time 2.349/2.349, allocations: 233 MB / 245.6 MB, free: 14.8 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.38e-05/3.388e-05, allocations: 4 kB / 301.4 MB, free: 7.879 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1154/0.1154, allocations: 53.23 MB / 354.6 MB, free: 2.531 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4333/0.5488, allocations: 81.57 MB / 436.2 MB, free: 4.348 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00232/0.5512, allocations: 0.6651 MB / 436.8 MB, free: 3.684 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007524/0.5587, allocations: 1.867 MB / 438.7 MB, free: 1.828 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.353e-06/0.5588, allocations: 0 / 438.7 MB, free: 1.828 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.421e-05/0.5588, allocations: 4 kB / 438.7 MB, free: 1.824 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.000469/0.5593, allocations: 388 kB / 439.1 MB, free: 1.395 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.794e-05/0.5594, allocations: 8.031 kB / 439.1 MB, free: 1.387 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.967e-05/0.5594, allocations: 34.56 kB / 439.1 MB, free: 1.344 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.442e-05/0.5595, allocations: 11.89 kB / 439.1 MB, free: 1.332 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002771/0.5598, allocations: 183 kB / 439.3 MB, free: 1.113 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.165e-05/0.5598, allocations: 3.938 kB / 439.3 MB, free: 1.109 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.623e-05/0.5598, allocations: 8 kB / 439.3 MB, free: 1.102 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001484/0.56, allocations: 55.92 kB / 439.4 MB, free: 1.035 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.727e-06/0.56, allocations: 0 / 439.4 MB, free: 1.035 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.667e-05/0.56, allocations: 7.953 kB / 439.4 MB, free: 1.027 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.039e-06/0.56, allocations: 0 / 439.4 MB, free: 1.027 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.625e-05/0.5601, allocations: 23.98 kB / 439.4 MB, free: 1.004 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004372/0.5606, allocations: 280.8 kB / 439.7 MB, free: 0.6797 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001186/0.5607, allocations: 34.56 kB / 439.7 MB, free: 0.6367 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.386e-05/0.5608, allocations: 16.88 kB / 439.7 MB, free: 0.6172 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.764e-05/0.5608, allocations: 7.984 kB / 439.7 MB, free: 0.6094 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.942e-05/0.5608, allocations: 34.56 kB / 439.8 MB, free: 0.5664 MB / 362.7 MB Notification: Performance of pre-optimization done (n=3): time 1.593e-06/0.5609, allocations: 0 / 439.8 MB, free: 0.5664 MB / 362.7 MB Notification: Performance of matching and sorting (n=3): time 0.0002013/0.5611, allocations: 53.69 kB / 439.8 MB, free: 0.5078 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.471e-05/0.5611, allocations: 81.05 kB / 439.9 MB, free: 420 kB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001509/0.5613, allocations: 121 kB / 440 MB, free: 292 kB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.359e-05/0.5613, allocations: 25.7 kB / 440 MB, free: 260 kB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.789e-05/0.5614, allocations: 156.3 kB / 440.2 MB, free: 104 kB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.831e-05/0.5615, allocations: 19.78 kB / 440.2 MB, free: 84 kB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.264e-06/0.5615, allocations: 4 kB / 440.2 MB, free: 80 kB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001513/0.5616, allocations: 310.8 kB / 440.5 MB, free: 15.77 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.453e-05/0.5617, allocations: 8 kB / 440.5 MB, free: 15.76 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.773e-05/0.5617, allocations: 21.7 kB / 440.5 MB, free: 15.73 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.5e-05/0.5618, allocations: 37.7 kB / 440.6 MB, free: 15.69 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.5618, allocations: 0 / 440.6 MB, free: 15.69 MB / 378.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001604/0.562, allocations: 83.3 kB / 440.7 MB, free: 15.59 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.492e-05/0.5621, allocations: 37.67 kB / 440.7 MB, free: 15.55 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.059e-06/0.5621, allocations: 4 kB / 440.7 MB, free: 15.55 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.35e-05/0.5621, allocations: 0 / 440.7 MB, free: 15.55 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.734e-05/0.5622, allocations: 12.75 kB / 440.7 MB, free: 15.54 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.153e-06/0.5622, allocations: 0 / 440.7 MB, free: 15.54 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.536e-05/0.5623, allocations: 0 / 440.7 MB, free: 15.54 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.696e-06/0.5623, allocations: 0 / 440.7 MB, free: 15.54 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 (4): * Single equations (assignments): 3 * 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 8.036e-05/0.5624, allocations: 109 kB / 440.8 MB, free: 15.42 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.882e-05/0.5624, allocations: 4 kB / 440.8 MB, free: 15.42 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001875/0.5626, allocations: 73.56 kB / 440.9 MB, free: 15.34 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/0.5626, allocations: 0.9375 kB / 440.9 MB, free: 15.34 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-06/0.5627, allocations: 0 / 440.9 MB, free: 15.34 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.449e-06/0.5627, allocations: 1.438 kB / 440.9 MB, free: 15.34 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002248/0.5629, allocations: 165.7 kB / 441.1 MB, free: 15.13 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.5629, allocations: 0 / 441.1 MB, free: 15.13 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.521e-05/0.563, allocations: 4 kB / 441.1 MB, free: 15.12 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.915e-06/0.563, allocations: 0 / 441.1 MB, free: 15.12 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.403e-05/0.563, allocations: 4 kB / 441.1 MB, free: 15.12 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.076e-05/0.563, allocations: 13.67 kB / 441.1 MB, free: 15.11 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.003e-06/0.563, allocations: 0 / 441.1 MB, free: 15.11 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001789/0.5632, allocations: 144.8 kB / 441.2 MB, free: 14.95 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.291e-05/0.5633, allocations: 85.02 kB / 441.3 MB, free: 14.85 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.199e-05/0.5633, allocations: 1.125 kB / 441.3 MB, free: 14.85 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.601e-05/0.5634, allocations: 4 kB / 441.3 MB, free: 14.85 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.916e-05/0.5635, allocations: 11.94 kB / 441.3 MB, free: 14.84 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.899e-06/0.5635, allocations: 0 / 441.3 MB, free: 14.84 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001123/0.5636, allocations: 105.3 kB / 441.4 MB, free: 14.73 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.4e-07/0.5636, allocations: 0 / 441.4 MB, free: 14.73 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003676/0.564, allocations: 31.92 kB / 441.5 MB, free: 14.7 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 (3): * Single equations (assignments): 3 * 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.001265/0.5653, allocations: 0.9037 MB / 442.4 MB, free: 13.85 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001717/0.5655, allocations: 67.41 kB / 442.4 MB, free: 13.77 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.5655, allocations: 0 / 442.4 MB, free: 13.77 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 3.626e-05/0.5655, allocations: 15.98 kB / 442.4 MB, free: 13.75 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002532/0.5658, allocations: 11.89 kB / 442.5 MB, free: 13.74 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005668/0.5664, allocations: 173.6 kB / 442.6 MB, free: 13.53 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000312/0.5667, allocations: 0.6887 MB / 443.3 MB, free: 12.81 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.522e-05/0.5668, allocations: 23.42 kB / 443.3 MB, free: 12.79 MB / 378.7 MB Notification: Performance of SimCode: time 8.61e-07/0.5668, allocations: 0 / 443.3 MB, free: 12.79 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 OMCppPowerSystems_cpp_PowerSystems_Examples_Introductory_TablesCalcHelperMain.o OMCppPowerSystems_cpp_PowerSystems_Examples_Introductory_TablesCalcHelperMain.cpp In file included from OMCppPowerSystems_cpp_PowerSystems_Examples_Introductory_TablesCalcHelperMain.cpp:29: ./OMCppPowerSystems_cpp_PowerSystems_Examples_Introductory_TablesInitializeParameter.cpp:36:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp17; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_Introductory_TablesInitializeParameter.cpp:37:16: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/PowerSystems 1.0.0/Resources/Tables/", tmp17); ~~~~~~~~~~ ^ In file included from OMCppPowerSystems_cpp_PowerSystems_Examples_Introductory_TablesCalcHelperMain.cpp:31: ./OMCppPowerSystems_cpp_PowerSystems_Examples_Introductory_TablesInitialize.cpp:95:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp6; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_Introductory_TablesInitialize.cpp:96:16: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/PowerSystems 1.0.0/Resources/Tables/", tmp6); ~~~~~~~~~~ ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_Introductory_TablesInitialize.cpp:228:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp11; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_Introductory_TablesInitialize.cpp:229:15: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource(_functions->_OMC_LIT0, tmp11); ~~~~~~~~~~ ^ In file included from OMCppPowerSystems_cpp_PowerSystems_Examples_Introductory_TablesCalcHelperMain.cpp:34: ./OMCppPowerSystems_cpp_PowerSystems_Examples_Introductory_Tables.cpp:661:25: error: use of undeclared identifier 'tmp2' _table_P_fileName_ = (tmp2 + "TableExample.tab"); ^ In file included from OMCppPowerSystems_cpp_PowerSystems_Examples_Introductory_TablesCalcHelperMain.cpp:35: In file included from ./OMCppPowerSystems_cpp_PowerSystems_Examples_Introductory_TablesFMU.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 'OMCppPowerSystems_cpp_PowerSystems_Examples_Introductory_TablesCalcHelperMain.o' failed make: *** [OMCppPowerSystems_cpp_PowerSystems_Examples_Introductory_TablesCalcHelperMain.o] Error 1