Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.Introductory.Tables.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.Introductory.Tables,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_Introductory_Tables",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.Tables,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_Introductory_Tables",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00147/0.00147, allocations: 181.6 kB / 8.011 MB, free: 1.062 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.039/2.039, allocations: 205.3 MB / 213.7 MB, free: 1.727 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001081/0.001081, allocations: 90.22 kB / 261.8 MB, free: 1.668 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2644/0.2644, allocations: 38 MB / 347.7 MB, free: 5.762 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.968e-05/1.966e-05, allocations: 0 / 409.9 MB, free: 35.04 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.1079, allocations: 56.33 MB / 466.3 MB, free: 10.72 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4579/0.5659, allocations: 86.41 MB / 0.5397 GB, free: 11.47 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.001883/0.5678, allocations: 0.556 MB / 0.5403 GB, free: 11.46 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008566/0.5764, allocations: 2.4 MB / 0.5426 GB, free: 11.05 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.5765, allocations: 0 / 0.5426 GB, free: 11.05 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.476e-05/0.5765, allocations: 11.75 kB / 0.5426 GB, free: 11.04 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.0003166/0.5768, allocations: 362.5 kB / 0.543 GB, free: 10.67 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.476e-05/0.5769, allocations: 11.12 kB / 0.543 GB, free: 10.67 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.134e-05/0.5769, allocations: 6.203 kB / 0.543 GB, free: 10.66 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002367/0.5772, allocations: 195.9 kB / 0.5432 GB, free: 10.46 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.424e-06/0.5772, allocations: 0 / 0.5432 GB, free: 10.46 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.415e-05/0.5772, allocations: 0 / 0.5432 GB, free: 10.46 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.252e-05/0.5773, allocations: 21.09 kB / 0.5432 GB, free: 10.46 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000102/0.5774, allocations: 59.73 kB / 0.5432 GB, free: 10.41 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.858e-06/0.5775, allocations: 0 / 0.5432 GB, free: 10.41 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.178e-05/0.5775, allocations: 0 / 0.5432 GB, free: 10.41 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.55e-06/0.5775, allocations: 0 / 0.5432 GB, free: 10.41 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003353/0.5778, allocations: 261.1 kB / 0.5435 GB, free: 10.17 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.256e-05/0.578, allocations: 36.28 kB / 0.5435 GB, free: 10.14 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.632e-05/0.578, allocations: 12.7 kB / 0.5435 GB, free: 10.13 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.489e-05/0.578, allocations: 3.812 kB / 0.5435 GB, free: 10.13 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.863e-05/0.5781, allocations: 30.56 kB / 0.5436 GB, free: 10.09 MB / 362.7 MB Notification: Performance of pre-optimization done (n=3): time 1.653e-06/0.5781, allocations: 0 / 0.5436 GB, free: 10.09 MB / 362.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001665/0.5782, allocations: 48.19 kB / 0.5436 GB, free: 10.06 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.165e-05/0.5783, allocations: 80.36 kB / 0.5437 GB, free: 9.965 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00013/0.5784, allocations: 131.3 kB / 0.5438 GB, free: 9.871 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.056e-05/0.5785, allocations: 29.7 kB / 0.5439 GB, free: 9.836 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.271e-05/0.5785, allocations: 162.8 kB / 0.544 GB, free: 9.684 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.732e-05/0.5785, allocations: 18.23 kB / 0.544 GB, free: 9.672 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.877e-06/0.5785, allocations: 0 / 0.544 GB, free: 9.672 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 5.455e-05/0.5786, allocations: 314.8 kB / 0.5443 GB, free: 9.355 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.856e-05/0.5786, allocations: 3.875 kB / 0.5443 GB, free: 9.355 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.57e-05/0.5787, allocations: 16.62 kB / 0.5443 GB, free: 9.34 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.961e-05/0.5787, allocations: 6.672 kB / 0.5444 GB, free: 9.34 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.5787, allocations: 4.031 kB / 0.5444 GB, free: 9.336 MB / 362.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 8.382e-05/0.5788, allocations: 47.69 kB / 0.5444 GB, free: 9.301 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.713e-05/0.5789, allocations: 7.688 kB / 0.5444 GB, free: 9.301 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.192e-06/0.5789, allocations: 0 / 0.5444 GB, free: 9.301 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.36e-05/0.5789, allocations: 0 / 0.5444 GB, free: 9.301 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.571e-05/0.579, allocations: 7.203 kB / 0.5444 GB, free: 9.301 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.308e-06/0.579, allocations: 0 / 0.5444 GB, free: 9.301 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.094e-05/0.579, allocations: 0 / 0.5444 GB, free: 9.301 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.755e-06/0.5791, allocations: 3.406 kB / 0.5444 GB, free: 9.301 MB / 362.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 (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 prepare postOptimizeDAE: time 5.442e-05/0.5791, allocations: 116.1 kB / 0.5445 GB, free: 9.184 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 9.704e-05/0.5792, allocations: 55.97 kB / 0.5446 GB, free: 9.141 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.357e-05/0.5793, allocations: 3.75 kB / 0.5446 GB, free: 9.141 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001365/0.5794, allocations: 57.86 kB / 0.5446 GB, free: 9.098 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.816e-06/0.5794, allocations: 0 / 0.5446 GB, free: 9.098 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.5795, allocations: 0 / 0.5446 GB, free: 9.098 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.641e-06/0.5795, allocations: 10.84 kB / 0.5447 GB, free: 9.094 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001538/0.5796, allocations: 144.8 kB / 0.5448 GB, free: 8.938 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.885e-06/0.5796, allocations: 0 / 0.5448 GB, free: 8.938 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.096e-05/0.5797, allocations: 7.75 kB / 0.5448 GB, free: 8.934 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.727e-06/0.5797, allocations: 3.594 kB / 0.5448 GB, free: 8.934 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.753e-06/0.5797, allocations: 4 kB / 0.5448 GB, free: 8.93 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.794e-06/0.5797, allocations: 0 / 0.5448 GB, free: 8.93 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/0.5797, allocations: 0 / 0.5448 GB, free: 8.93 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001117/0.5799, allocations: 147.1 kB / 0.5449 GB, free: 8.797 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.309e-05/0.5799, allocations: 87.94 kB / 0.545 GB, free: 8.699 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.069e-05/0.58, allocations: 0 / 0.545 GB, free: 8.699 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.009e-05/0.58, allocations: 0 / 0.545 GB, free: 8.699 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.044e-05/0.5801, allocations: 3.938 kB / 0.545 GB, free: 8.695 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.127e-06/0.5801, allocations: 7.719 kB / 0.545 GB, free: 8.691 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.892e-05/0.5802, allocations: 103.9 kB / 0.5451 GB, free: 8.617 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.5802, allocations: 0 / 0.5451 GB, free: 8.617 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003604/0.5806, allocations: 29.95 kB / 0.5452 GB, free: 8.609 MB / 362.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.001064/0.5816, allocations: 0.9239 MB / 0.5461 GB, free: 7.801 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 9.859e-05/0.5818, allocations: 14.91 kB / 0.5461 GB, free: 7.801 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.5818, allocations: 0 / 0.5461 GB, free: 7.801 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 2.137e-05/0.5818, allocations: 7.781 kB / 0.5461 GB, free: 7.797 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002679/0.5821, allocations: 14.25 kB / 0.5461 GB, free: 7.797 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004891/0.5826, allocations: 167.9 kB / 0.5463 GB, free: 7.641 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001436/0.5827, allocations: 0.696 MB / 0.5469 GB, free: 6.941 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.151e-05/0.5828, allocations: 21.11 kB / 0.547 GB, free: 6.934 MB / 362.7 MB Notification: Performance of SimCode: time 7.21e-07/0.5828, allocations: 0 / 0.547 GB, free: 6.934 MB / 362.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/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/include/omc/cpp" -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/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:39:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp19; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_Introductory_TablesInitializeParameter.cpp:40:16: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/Resources/Tables/", tmp19); ~~~~~~~~~~ ^ 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("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/Resources/Tables/", tmp6); ~~~~~~~~~~ ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_Introductory_TablesInitialize.cpp:211:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp10; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_Introductory_TablesInitialize.cpp:212:15: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource(_functions->_OMC_LIT0, tmp10); ~~~~~~~~~~ ^ 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/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