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.001606/0.001612, allocations: 183.4 kB / 15.76 MB, free: 6.363 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.971/1.971, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.001127/0.001126, allocations: 94.83 kB / 270.2 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2817/0.2817, allocations: 38.05 MB / 356.6 MB, free: 0.7969 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004781/0.0004781, allocations: 12 kB / 422.8 MB, free: 26.34 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.11/0.1105, allocations: 56.33 MB / 479.1 MB, free: 1.949 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4876/0.5982, allocations: 87.16 MB / 0.553 GB, free: 11.35 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.002329/0.6006, allocations: 0.8397 MB / 0.5538 GB, free: 10.91 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009118/0.6098, allocations: 2.425 MB / 0.5562 GB, free: 8.988 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.6098, allocations: 0 / 0.5562 GB, free: 8.988 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.272e-05/0.6098, allocations: 0 / 0.5562 GB, free: 8.988 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.0003947/0.6102, allocations: 382.5 kB / 0.5566 GB, free: 8.578 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.616e-05/0.6103, allocations: 12.03 kB / 0.5566 GB, free: 8.566 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.361e-05/0.6103, allocations: 34.5 kB / 0.5566 GB, free: 8.523 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.5e-05/0.6104, allocations: 7.906 kB / 0.5566 GB, free: 8.516 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00022/0.6106, allocations: 198 kB / 0.5568 GB, free: 8.289 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.129e-05/0.6106, allocations: 0 / 0.5568 GB, free: 8.289 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.519e-05/0.6107, allocations: 4 kB / 0.5568 GB, free: 8.285 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001281/0.6108, allocations: 58.28 kB / 0.5569 GB, free: 8.223 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.708e-06/0.6108, allocations: 0 / 0.5569 GB, free: 8.223 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.066e-05/0.6108, allocations: 0 / 0.5569 GB, free: 8.223 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.049e-06/0.6109, allocations: 4 kB / 0.5569 GB, free: 8.219 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.518e-05/0.6109, allocations: 26.48 kB / 0.5569 GB, free: 8.199 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003534/0.6113, allocations: 278.8 kB / 0.5572 GB, free: 7.895 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001003/0.6114, allocations: 38.5 kB / 0.5572 GB, free: 7.852 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.676e-05/0.6115, allocations: 3.828 kB / 0.5572 GB, free: 7.852 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.269e-05/0.6115, allocations: 41.88 kB / 0.5572 GB, free: 7.805 MB / 362.7 MB Notification: Performance of pre-optimization done (n=3): time 1.533e-06/0.6115, allocations: 0 / 0.5572 GB, free: 7.805 MB / 362.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001924/0.6117, allocations: 57.05 kB / 0.5573 GB, free: 7.746 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.458e-05/0.6117, allocations: 89.05 kB / 0.5574 GB, free: 7.641 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001547/0.6119, allocations: 132 kB / 0.5575 GB, free: 7.52 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.189e-05/0.6119, allocations: 29.64 kB / 0.5575 GB, free: 7.484 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.47e-05/0.612, allocations: 162.4 kB / 0.5577 GB, free: 7.332 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.826e-05/0.612, allocations: 15.75 kB / 0.5577 GB, free: 7.316 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.597e-06/0.612, allocations: 4 kB / 0.5577 GB, free: 7.312 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 5.634e-05/0.6121, allocations: 310.8 kB / 0.558 GB, free: 7 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.277e-05/0.6121, allocations: 7.812 kB / 0.558 GB, free: 6.996 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.1e-05/0.6122, allocations: 21.64 kB / 0.558 GB, free: 6.969 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.071e-05/0.6122, allocations: 6.938 kB / 0.558 GB, free: 6.965 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.6122, allocations: 0 / 0.558 GB, free: 6.965 MB / 362.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 8.769e-05/0.6123, allocations: 44.88 kB / 0.5581 GB, free: 6.918 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.459e-05/0.6123, allocations: 4 kB / 0.5581 GB, free: 6.914 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.049e-06/0.6124, allocations: 8.031 kB / 0.5581 GB, free: 6.906 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.469e-05/0.6124, allocations: 0 / 0.5581 GB, free: 6.906 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.198e-05/0.6125, allocations: 4 kB / 0.5581 GB, free: 6.902 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.793e-06/0.6125, allocations: 3.984 kB / 0.5581 GB, free: 6.898 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.13e-05/0.6125, allocations: 3.953 kB / 0.5581 GB, free: 6.895 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.723e-06/0.6125, allocations: 0 / 0.5581 GB, free: 6.895 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 () * Number of clocked 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 7.429e-05/0.6126, allocations: 117.8 kB / 0.5582 GB, free: 6.773 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.748e-05/0.6127, allocations: 3.906 kB / 0.5582 GB, free: 6.77 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001458/0.6128, allocations: 64.45 kB / 0.5583 GB, free: 6.699 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.6128, allocations: 4 kB / 0.5583 GB, free: 6.695 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.6129, allocations: 0 / 0.5583 GB, free: 6.695 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.6129, allocations: 0 / 0.5583 GB, free: 6.695 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001764/0.6131, allocations: 173.3 kB / 0.5585 GB, free: 6.484 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.6131, allocations: 0 / 0.5585 GB, free: 6.484 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.16e-05/0.6131, allocations: 7.984 kB / 0.5585 GB, free: 6.477 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.567e-06/0.6131, allocations: 4 kB / 0.5585 GB, free: 6.473 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.494e-06/0.6131, allocations: 0 / 0.5585 GB, free: 6.473 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.694e-06/0.6132, allocations: 0 / 0.5585 GB, free: 6.473 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.6132, allocations: 0 / 0.5585 GB, free: 6.473 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000119/0.6133, allocations: 158 kB / 0.5586 GB, free: 6.309 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.955e-05/0.6133, allocations: 81.05 kB / 0.5587 GB, free: 6.215 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.152e-05/0.6134, allocations: 7.984 kB / 0.5587 GB, free: 6.207 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.016e-05/0.6135, allocations: 0 / 0.5587 GB, free: 6.207 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.346e-05/0.6135, allocations: 0 / 0.5587 GB, free: 6.207 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.002e-06/0.6135, allocations: 4 kB / 0.5587 GB, free: 6.203 MB / 362.7 MB Notification: Performance of sorting global known variables: time 9.731e-05/0.6136, allocations: 114.1 kB / 0.5588 GB, free: 6.102 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.6136, allocations: 0 / 0.5588 GB, free: 6.102 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003252/0.6139, allocations: 31.78 kB / 0.5588 GB, free: 6.074 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 () * Number of clocked 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.001257/0.6152, allocations: 0.9778 MB / 0.5598 GB, free: 5.145 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001144/0.6153, allocations: 19.05 kB / 0.5598 GB, free: 5.129 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.025e-06/0.6154, allocations: 3.938 kB / 0.5598 GB, free: 5.125 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 2.657e-05/0.6154, allocations: 11.69 kB / 0.5598 GB, free: 5.117 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000279/0.6157, allocations: 11.05 kB / 0.5598 GB, free: 5.109 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008846/0.6166, allocations: 0.5021 MB / 0.5603 GB, free: 4.578 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001501/0.6167, allocations: 0.6965 MB / 0.561 GB, free: 3.855 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.935e-05/0.6168, allocations: 30.73 kB / 0.561 GB, free: 3.832 MB / 362.7 MB Notification: Performance of SimCode: time 7.91e-07/0.6169, allocations: 0 / 0.561 GB, free: 3.832 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/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