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.002084/0.002084, allocations: 186 kB / 13.19 MB, free: 2.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.022/2.022, allocations: 205.2 MB / 218.9 MB, free: 9.203 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001087/0.001087, allocations: 96.5 kB / 267.1 MB, free: 9.277 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2667/0.2667, allocations: 37.96 MB / 353.1 MB, free: 3.07 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.227e-05/3.233e-05, allocations: 4 kB / 416.9 MB, free: 41.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1048/0.1049, allocations: 56.31 MB / 473.2 MB, free: 0.8359 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4925/0.5974, allocations: 87.08 MB / 0.5472 GB, free: 0.6133 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.002436/0.5999, allocations: 0.6636 MB / 0.5478 GB, free: 15.95 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01061/0.6106, allocations: 2.412 MB / 0.5502 GB, free: 13.55 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.813e-06/0.6107, allocations: 0 / 0.5502 GB, free: 13.55 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.539e-05/0.6107, allocations: 4 kB / 0.5502 GB, free: 13.55 MB / 394.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.0004688/0.6112, allocations: 367.1 kB / 0.5505 GB, free: 13.14 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5e-05/0.6112, allocations: 12.03 kB / 0.5505 GB, free: 13.13 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.653e-05/0.6113, allocations: 34.55 kB / 0.5506 GB, free: 13.09 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.524e-05/0.6113, allocations: 7.906 kB / 0.5506 GB, free: 13.08 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000331/0.6117, allocations: 202.8 kB / 0.5508 GB, free: 12.84 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.114e-05/0.6117, allocations: 0 / 0.5508 GB, free: 12.84 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.363e-05/0.6117, allocations: 8 kB / 0.5508 GB, free: 12.84 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001515/0.6119, allocations: 59.41 kB / 0.5508 GB, free: 12.77 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.024e-05/0.6119, allocations: 0 / 0.5508 GB, free: 12.77 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.567e-05/0.612, allocations: 4 kB / 0.5508 GB, free: 12.76 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.561e-06/0.612, allocations: 0 / 0.5508 GB, free: 12.76 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.847e-05/0.6121, allocations: 19.94 kB / 0.5508 GB, free: 12.74 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004714/0.6125, allocations: 276.9 kB / 0.5511 GB, free: 12.42 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001216/0.6127, allocations: 38.58 kB / 0.5511 GB, free: 12.38 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.397e-05/0.6127, allocations: 8.922 kB / 0.5512 GB, free: 12.36 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.142e-05/0.6128, allocations: 4.078 kB / 0.5512 GB, free: 12.36 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.101e-05/0.6128, allocations: 46.44 kB / 0.5512 GB, free: 12.3 MB / 394.7 MB Notification: Performance of pre-optimization done (n=3): time 3.887e-06/0.6128, allocations: 0 / 0.5512 GB, free: 12.3 MB / 394.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001948/0.613, allocations: 45.59 kB / 0.5512 GB, free: 12.25 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.182e-05/0.6131, allocations: 85.06 kB / 0.5513 GB, free: 12.15 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002013/0.6133, allocations: 138.3 kB / 0.5515 GB, free: 12.01 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.962e-05/0.6134, allocations: 25.7 kB / 0.5515 GB, free: 11.98 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.391e-05/0.6135, allocations: 158.5 kB / 0.5516 GB, free: 11.82 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.231e-05/0.6135, allocations: 7.812 kB / 0.5516 GB, free: 11.82 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.702e-06/0.6135, allocations: 8 kB / 0.5516 GB, free: 11.81 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001398/0.6137, allocations: 314.8 kB / 0.5519 GB, free: 11.49 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.383e-05/0.6137, allocations: 4 kB / 0.552 GB, free: 11.49 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.235e-05/0.6137, allocations: 17.72 kB / 0.552 GB, free: 11.46 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.036e-05/0.6138, allocations: 16.09 kB / 0.552 GB, free: 11.45 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.6138, allocations: 0 / 0.552 GB, free: 11.45 MB / 394.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001286/0.6139, allocations: 45.69 kB / 0.552 GB, free: 11.4 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.313e-05/0.614, allocations: 8 kB / 0.552 GB, free: 11.39 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.827e-06/0.614, allocations: 3.984 kB / 0.552 GB, free: 11.39 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.917e-05/0.614, allocations: 0 / 0.552 GB, free: 11.39 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.551e-05/0.6141, allocations: 7.984 kB / 0.552 GB, free: 11.38 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.534e-06/0.6142, allocations: 0 / 0.552 GB, free: 11.38 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.8e-05/0.6142, allocations: 3.953 kB / 0.552 GB, free: 11.38 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.988e-06/0.6142, allocations: 4 kB / 0.5521 GB, free: 11.37 MB / 394.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 8.687e-05/0.6143, allocations: 106.9 kB / 0.5522 GB, free: 11.26 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.44e-05/0.6144, allocations: 7.906 kB / 0.5522 GB, free: 11.25 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001978/0.6146, allocations: 65.64 kB / 0.5522 GB, free: 11.18 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.957e-06/0.6146, allocations: 0 / 0.5522 GB, free: 11.18 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.6146, allocations: 0 / 0.5522 GB, free: 11.18 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.6146, allocations: 0 / 0.5522 GB, free: 11.18 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002867/0.6149, allocations: 173.6 kB / 0.5524 GB, free: 10.96 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/0.615, allocations: 0 / 0.5524 GB, free: 10.96 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.036e-05/0.615, allocations: 4 kB / 0.5524 GB, free: 10.96 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.741e-06/0.6151, allocations: 4 kB / 0.5524 GB, free: 10.95 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.116e-05/0.6151, allocations: 3.984 kB / 0.5524 GB, free: 10.95 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.916e-06/0.6151, allocations: 0 / 0.5524 GB, free: 10.95 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.6151, allocations: 0 / 0.5524 GB, free: 10.95 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001866/0.6153, allocations: 155.3 kB / 0.5526 GB, free: 10.78 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.276e-05/0.6154, allocations: 81.11 kB / 0.5526 GB, free: 10.68 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.655e-05/0.6154, allocations: 4 kB / 0.5526 GB, free: 10.68 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.321e-05/0.6155, allocations: 7.984 kB / 0.5526 GB, free: 10.67 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.719e-05/0.6155, allocations: 4 kB / 0.5526 GB, free: 10.67 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.482e-06/0.6156, allocations: 3.938 kB / 0.5526 GB, free: 10.66 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001394/0.6157, allocations: 114.5 kB / 0.5528 GB, free: 10.55 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.6157, allocations: 3.938 kB / 0.5528 GB, free: 10.55 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0003425/0.6161, allocations: 27.84 kB / 0.5528 GB, free: 10.52 MB / 394.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.001469/0.6176, allocations: 0.9359 MB / 0.5537 GB, free: 9.594 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001428/0.6177, allocations: 19.98 kB / 0.5537 GB, free: 9.574 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.359e-06/0.6178, allocations: 0 / 0.5537 GB, free: 9.574 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 4.072e-05/0.6178, allocations: 12 kB / 0.5537 GB, free: 9.562 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00029/0.6181, allocations: 7.984 kB / 0.5537 GB, free: 9.555 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005934/0.6187, allocations: 184.1 kB / 0.5539 GB, free: 9.328 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000341/0.6191, allocations: 0.6965 MB / 0.5546 GB, free: 8.605 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.268e-05/0.6192, allocations: 23.42 kB / 0.5546 GB, free: 8.582 MB / 394.7 MB Notification: Performance of SimCode: time 8.22e-07/0.6192, allocations: 8 kB / 0.5546 GB, free: 8.574 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp" -I"." -I"/var/lib/jenkins1/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: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/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