Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.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.PowerWorld.Test.WindFarmGridTest,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_WindFarmGridTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_WindFarmGridTest",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.001528/0.001528, allocations: 185.3 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.034/2.034, allocations: 205.2 MB / 218.9 MB, free: 9.141 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.00111/0.00111, allocations: 100.4 kB / 267.1 MB, free: 9.27 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.31/0.31, allocations: 37.96 MB / 353.1 MB, free: 3.066 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.94e-05/3.952e-05, allocations: 0 / 416.9 MB, free: 41.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1162/0.1163, allocations: 56.32 MB / 473.2 MB, free: 0.832 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4781/0.5945, allocations: 96.32 MB / 0.5562 GB, free: 7.254 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.002336/0.5969, allocations: 0.6869 MB / 0.5569 GB, free: 6.566 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06978/0.6667, allocations: 16.79 MB / 0.5733 GB, free: 5.621 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.383e-06/0.6668, allocations: 0 / 0.5733 GB, free: 5.621 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.206e-05/0.6668, allocations: 8 kB / 0.5733 GB, free: 5.613 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.001729/0.6686, allocations: 0.6817 MB / 0.5739 GB, free: 4.883 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.174e-05/0.6686, allocations: 8.031 kB / 0.5739 GB, free: 4.875 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001217/0.6688, allocations: 62.53 kB / 0.574 GB, free: 4.805 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0014/0.6702, allocations: 115.4 kB / 0.5741 GB, free: 4.691 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001003/0.6712, allocations: 394.4 kB / 0.5745 GB, free: 4.27 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.44e-05/0.6713, allocations: 16.44 kB / 0.5745 GB, free: 4.254 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.297e-05/0.6713, allocations: 23.98 kB / 0.5745 GB, free: 4.23 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001055/0.6724, allocations: 422.8 kB / 0.5749 GB, free: 3.781 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.513e-05/0.6724, allocations: 0 / 0.5749 GB, free: 3.781 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.413e-05/0.6725, allocations: 15.95 kB / 0.5749 GB, free: 3.766 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.321e-05/0.6726, allocations: 20.42 kB / 0.575 GB, free: 3.746 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001284/0.6739, allocations: 485.4 kB / 0.5754 GB, free: 3.273 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003677/0.6776, allocations: 1.741 MB / 0.5771 GB, free: 1.43 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001251/0.6789, allocations: 353.8 kB / 0.5775 GB, free: 1.066 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003464/0.6793, allocations: 122.2 kB / 0.5776 GB, free: 0.9414 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.872e-05/0.6793, allocations: 4.234 kB / 0.5776 GB, free: 0.9375 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005895/0.6799, allocations: 271.1 kB / 0.5778 GB, free: 0.6328 MB / 410.7 MB Notification: Performance of pre-optimization done (n=31): time 4.077e-06/0.6799, allocations: 0 / 0.5778 GB, free: 0.6328 MB / 410.7 MB Notification: Performance of matching and sorting (n=31): time 0.00111/0.681, allocations: 358.5 kB / 0.5782 GB, free: 284 kB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001825/0.6813, allocations: 295 kB / 0.5785 GB, free: 15.92 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006454/0.6819, allocations: 330.7 kB / 0.5788 GB, free: 15.59 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 6.777e-05/0.682, allocations: 41.64 kB / 0.5788 GB, free: 15.55 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001965/0.6822, allocations: 242.5 kB / 0.5791 GB, free: 15.31 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001615/0.6824, allocations: 102.6 kB / 0.5792 GB, free: 15.21 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.565e-05/0.6824, allocations: 8 kB / 0.5792 GB, free: 15.2 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001407/0.6826, allocations: 322.8 kB / 0.5795 GB, free: 14.88 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003619/0.683, allocations: 120 kB / 0.5796 GB, free: 14.76 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004734/0.6834, allocations: 261 kB / 0.5798 GB, free: 14.44 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004513/0.6839, allocations: 189.5 kB / 0.58 GB, free: 14.25 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.18e-06/0.6839, allocations: 0 / 0.58 GB, free: 14.25 MB / 426.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001187/0.6851, allocations: 466.6 kB / 0.5805 GB, free: 13.78 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.223e-05/0.6852, allocations: 33.7 kB / 0.5805 GB, free: 13.74 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.542e-05/0.6852, allocations: 7.984 kB / 0.5805 GB, free: 13.73 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.418e-05/0.6853, allocations: 7.938 kB / 0.5805 GB, free: 13.73 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006888/0.686, allocations: 96.45 kB / 0.5806 GB, free: 13.63 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.016e-05/0.686, allocations: 11.92 kB / 0.5806 GB, free: 13.62 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005772/0.6866, allocations: 51.67 kB / 0.5807 GB, free: 13.57 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.984e-05/0.6867, allocations: 23.98 kB / 0.5807 GB, free: 13.55 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition2,$PRE.windFarm.wind.nextTimeEvent,$whenCondition1,windFarm.wind.nextTimeEvent,$PRE.windFarm.wind.nextTimeEventScaled,windFarm.wind.nextTimeEventScaled,$PRE.windFarm.disturbance.T_start,windFarm.disturbance.T_start,$PRE.windFarm.disturbance.count,windFarm.disturbance.count,system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 42 * 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.0001843/0.6868, allocations: 132.8 kB / 0.5808 GB, free: 13.41 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001092/0.687, allocations: 39.62 kB / 0.5808 GB, free: 13.37 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001164/0.6881, allocations: 408.2 kB / 0.5812 GB, free: 12.96 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.334e-05/0.6882, allocations: 8 kB / 0.5812 GB, free: 12.96 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.027e-05/0.6882, allocations: 4 kB / 0.5812 GB, free: 12.95 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.426e-06/0.6882, allocations: 0 / 0.5812 GB, free: 12.95 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00152/0.6897, allocations: 1.085 MB / 0.5823 GB, free: 11.79 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.915e-06/0.6898, allocations: 4 kB / 0.5823 GB, free: 11.79 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006287/0.6904, allocations: 84.02 kB / 0.5824 GB, free: 11.7 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.413e-05/0.6905, allocations: 11.98 kB / 0.5824 GB, free: 11.69 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.328e-05/0.6905, allocations: 12 kB / 0.5824 GB, free: 11.68 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.268e-06/0.6905, allocations: 4 kB / 0.5824 GB, free: 11.68 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.781e-06/0.6905, allocations: 3.953 kB / 0.5824 GB, free: 11.67 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001165/0.6917, allocations: 0.5624 MB / 0.583 GB, free: 11.02 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001634/0.6919, allocations: 136.5 kB / 0.5831 GB, free: 10.86 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001068/0.692, allocations: 19.98 kB / 0.5831 GB, free: 10.84 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004318/0.6925, allocations: 27.98 kB / 0.5831 GB, free: 10.82 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000152/0.6926, allocations: 47.92 kB / 0.5832 GB, free: 10.77 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.718e-05/0.6927, allocations: 16 kB / 0.5832 GB, free: 10.75 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0004742/0.6932, allocations: 262.1 kB / 0.5835 GB, free: 10.5 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.946e-06/0.6932, allocations: 0 / 0.5835 GB, free: 10.5 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0006693/0.6939, allocations: 111.8 kB / 0.5836 GB, free: 10.39 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 7 (system.initime,$whenCondition2,$whenCondition1,windFarm.wind.nextTimeEvent,windFarm.wind.nextTimeEventScaled,windFarm.disturbance.T_start,windFarm.disturbance.count) * Number of discrete states: 3 (windFarm.disturbance.count,windFarm.wind.nextTimeEvent,windFarm.wind.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.002989/0.6969, allocations: 1.961 MB / 0.5855 GB, free: 8.375 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001057/0.698, allocations: 387.3 kB / 0.5858 GB, free: 7.984 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.62e-06/0.698, allocations: 1.125 kB / 0.5858 GB, free: 7.984 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005687/0.6986, allocations: 196.1 kB / 0.586 GB, free: 7.793 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006445/0.6992, allocations: 69.05 kB / 0.5861 GB, free: 7.727 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002127/0.7014, allocations: 0.7044 MB / 0.5868 GB, free: 6.957 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005173/0.7019, allocations: 0.8242 MB / 0.5876 GB, free: 6.109 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000398/0.7023, allocations: 127.4 kB / 0.5877 GB, free: 5.984 MB / 426.7 MB Notification: Performance of SimCode: time 1.112e-06/0.7024, allocations: 4 kB / 0.5877 GB, free: 5.98 MB / 426.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_PowerWorld_Test_WindFarmGridTestCalcHelperMain.o OMCppPowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_WindFarmGridTestCalcHelperMain.cpp In file included from OMCppPowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_WindFarmGridTestCalcHelperMain.cpp:29: ./OMCppPowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_WindFarmGridTestInitializeParameter.cpp:94:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp62; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_WindFarmGridTestInitializeParameter.cpp:95:16: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/Examples/PowerWorld/Resources/", tmp62); ~~~~~~~~~~ ^ In file included from OMCppPowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_WindFarmGridTestCalcHelperMain.cpp:31: ./OMCppPowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_WindFarmGridTestInitialize.cpp:95:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp25; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_WindFarmGridTestInitialize.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/Examples/PowerWorld/Resources/", tmp25); ~~~~~~~~~~ ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_WindFarmGridTestInitialize.cpp:738:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp42; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_WindFarmGridTestInitialize.cpp:739:15: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource(_functions->_OMC_LIT2, tmp42); ~~~~~~~~~~ ^ In file included from OMCppPowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_WindFarmGridTestCalcHelperMain.cpp:34: ./OMCppPowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_WindFarmGridTest.cpp:1260:35: error: use of undeclared identifier 'tmp15' _windFarm_P_wind_P_fileName_ = (tmp15 + "LoadData.txt"); ^ In file included from OMCppPowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_WindFarmGridTestCalcHelperMain.cpp:35: In file included from ./OMCppPowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_WindFarmGridTestFMU.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_PowerWorld_Test_WindFarmGridTestCalcHelperMain.o' failed make: *** [OMCppPowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_WindFarmGridTestCalcHelperMain.o] Error 1