Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.WindFarmHVDCTest.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.WindFarmHVDCTest,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_WindFarmHVDCTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.WindFarmHVDCTest,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_WindFarmHVDCTest",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.002259/0.002258, allocations: 185.7 kB / 8.01 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.139/2.139, allocations: 205.3 MB / 213.7 MB, free: 1.73 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.00109/0.00109, allocations: 83.95 kB / 261.7 MB, free: 1.688 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.3043/0.3043, allocations: 37.99 MB / 347.7 MB, free: 5.777 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.024e-05/2.033e-05, allocations: 4 kB / 409.9 MB, free: 35.06 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.1079, allocations: 56.32 MB / 466.3 MB, free: 10.75 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4904/0.5984, allocations: 99.03 MB / 0.552 GB, free: 9.605 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.001954/0.6004, allocations: 0.5777 MB / 0.5526 GB, free: 9.5 MB / 362.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/Generic.mo:465:11-465:52:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.potentialRoot(terminal.theta);. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/Generic.mo:468:7-475:13:writable] Warning: Returning false from overconstrained operator applied to array components having size zero: Connections.isRoot({}). Notification: Performance of FrontEnd - DAE generated: time 0.07682/0.6773, allocations: 20.71 MB / 0.5728 GB, free: 11.3 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.114e-06/0.6773, allocations: 4 kB / 0.5728 GB, free: 11.3 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.098e-05/0.6774, allocations: 8 kB / 0.5728 GB, free: 11.29 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.001923/0.6793, allocations: 0.7027 MB / 0.5735 GB, free: 10.57 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.271e-05/0.6794, allocations: 8.031 kB / 0.5735 GB, free: 10.56 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001623/0.681, allocations: 115.4 kB / 0.5736 GB, free: 10.45 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001081/0.6821, allocations: 391.6 kB / 0.574 GB, free: 10.09 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.246e-05/0.6822, allocations: 11.94 kB / 0.574 GB, free: 10.07 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.723e-05/0.6823, allocations: 15.98 kB / 0.574 GB, free: 10.06 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001093/0.6834, allocations: 391.1 kB / 0.5744 GB, free: 9.781 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009028/0.6843, allocations: 401.6 kB / 0.5748 GB, free: 9.449 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.71e-05/0.6844, allocations: 0 / 0.5748 GB, free: 9.449 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.714e-05/0.6844, allocations: 3.984 kB / 0.5748 GB, free: 9.445 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.804e-05/0.6845, allocations: 20.31 kB / 0.5748 GB, free: 9.43 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003604/0.6881, allocations: 1.832 MB / 0.5766 GB, free: 7.816 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001128/0.6893, allocations: 337.4 kB / 0.5769 GB, free: 7.566 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002974/0.6896, allocations: 122.1 kB / 0.5771 GB, free: 7.484 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.915e-05/0.6897, allocations: 240 / 0.5771 GB, free: 7.484 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005322/0.6902, allocations: 261 kB / 0.5773 GB, free: 7.254 MB / 378.7 MB Notification: Performance of pre-optimization done (n=31): time 2.464e-06/0.6902, allocations: 0 / 0.5773 GB, free: 7.254 MB / 378.7 MB Notification: Performance of matching and sorting (n=31): time 0.001082/0.6913, allocations: 345.4 kB / 0.5776 GB, free: 6.984 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001947/0.6916, allocations: 239.3 kB / 0.5779 GB, free: 6.695 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006031/0.6922, allocations: 318 kB / 0.5782 GB, free: 6.445 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.137e-05/0.6923, allocations: 33.52 kB / 0.5782 GB, free: 6.41 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002133/0.6925, allocations: 255.1 kB / 0.5784 GB, free: 6.199 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001525/0.6927, allocations: 100.3 kB / 0.5785 GB, free: 6.113 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.84e-05/0.6927, allocations: 0 / 0.5785 GB, free: 6.113 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001567/0.6929, allocations: 329.7 kB / 0.5789 GB, free: 5.789 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003089/0.6932, allocations: 105.9 kB / 0.579 GB, free: 5.727 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004264/0.6936, allocations: 256 kB / 0.5792 GB, free: 5.473 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004063/0.6941, allocations: 147.6 kB / 0.5793 GB, free: 5.379 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.356e-06/0.6941, allocations: 4 kB / 0.5793 GB, free: 5.375 MB / 378.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001101/0.6952, allocations: 410.7 kB / 0.5797 GB, free: 5.062 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.537e-05/0.6953, allocations: 33.7 kB / 0.5798 GB, free: 5.023 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.413e-05/0.6953, allocations: 4 kB / 0.5798 GB, free: 5.02 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.902e-05/0.6953, allocations: 8 kB / 0.5798 GB, free: 5.012 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007299/0.6961, allocations: 104.2 kB / 0.5799 GB, free: 4.914 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.666e-05/0.6961, allocations: 8 kB / 0.5799 GB, free: 4.906 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005818/0.6967, allocations: 47.66 kB / 0.5799 GB, free: 4.859 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.441e-05/0.6968, allocations: 18.75 kB / 0.5799 GB, free: 4.844 MB / 378.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 (45): * Single equations (assignments): 44 * 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.0001899/0.697, allocations: 132.7 kB / 0.5801 GB, free: 4.711 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0009184/0.6979, allocations: 334.1 kB / 0.5804 GB, free: 4.449 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.767e-05/0.698, allocations: 35.62 kB / 0.5804 GB, free: 4.414 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001048/0.6991, allocations: 387.3 kB / 0.5808 GB, free: 4.125 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.585e-05/0.6991, allocations: 7.984 kB / 0.5808 GB, free: 4.117 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.453e-05/0.6991, allocations: 12.11 kB / 0.5808 GB, free: 4.105 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.809e-06/0.6992, allocations: 7.938 kB / 0.5808 GB, free: 4.098 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001351/0.7005, allocations: 0.852 MB / 0.5817 GB, free: 3.32 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.871e-06/0.7006, allocations: 0 / 0.5817 GB, free: 3.32 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006476/0.7012, allocations: 84.02 kB / 0.5817 GB, free: 3.238 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.256e-05/0.7013, allocations: 4 kB / 0.5817 GB, free: 3.234 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.188e-05/0.7013, allocations: 11.3 kB / 0.5817 GB, free: 3.227 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.877e-06/0.7013, allocations: 4 kB / 0.5818 GB, free: 3.223 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.406e-06/0.7013, allocations: 7.891 kB / 0.5818 GB, free: 3.215 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001054/0.7024, allocations: 0.4903 MB / 0.5822 GB, free: 2.742 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001668/0.7026, allocations: 127.1 kB / 0.5824 GB, free: 2.605 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001087/0.7027, allocations: 15.48 kB / 0.5824 GB, free: 2.594 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000476/0.7032, allocations: 27.97 kB / 0.5824 GB, free: 2.566 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001426/0.7034, allocations: 42.91 kB / 0.5824 GB, free: 2.531 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.805e-05/0.7034, allocations: 19.44 kB / 0.5825 GB, free: 2.516 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004047/0.7038, allocations: 245 kB / 0.5827 GB, free: 2.332 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.4e-07/0.7039, allocations: 0 / 0.5827 GB, free: 2.332 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007233/0.7046, allocations: 94.23 kB / 0.5828 GB, free: 2.242 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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.002606/0.7072, allocations: 1.752 MB / 0.5845 GB, free: 0.5859 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009624/0.7082, allocations: 364.3 kB / 0.5848 GB, free: 324 kB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.809e-06/0.7083, allocations: 3.938 kB / 0.5848 GB, free: 320 kB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004456/0.7087, allocations: 178.2 kB / 0.585 GB, free: 196 kB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000635/0.7094, allocations: 57 kB / 0.5851 GB, free: 152 kB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002092/0.7115, allocations: 0.6726 MB / 0.5857 GB, free: 15.51 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000503/0.712, allocations: 0.8263 MB / 0.5865 GB, free: 14.67 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003975/0.7124, allocations: 134.9 kB / 0.5867 GB, free: 14.62 MB / 394.7 MB Notification: Performance of SimCode: time 1.223e-06/0.7124, allocations: 0 / 0.5867 GB, free: 14.62 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/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_PowerWorld_Test_WindFarmHVDCTestCalcHelperMain.o OMCppPowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_WindFarmHVDCTestCalcHelperMain.cpp In file included from OMCppPowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_WindFarmHVDCTestCalcHelperMain.cpp:29: ./OMCppPowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_WindFarmHVDCTestInitializeParameter.cpp:94:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp62; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_WindFarmHVDCTestInitializeParameter.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_WindFarmHVDCTestCalcHelperMain.cpp:31: ./OMCppPowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_WindFarmHVDCTestInitialize.cpp:95:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp25; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_WindFarmHVDCTestInitialize.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_WindFarmHVDCTestInitialize.cpp:759:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp42; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_WindFarmHVDCTestInitialize.cpp:760: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_WindFarmHVDCTestCalcHelperMain.cpp:34: ./OMCppPowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_WindFarmHVDCTest.cpp:1262: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_WindFarmHVDCTestCalcHelperMain.cpp:35: In file included from ./OMCppPowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_WindFarmHVDCTestFMU.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_PowerWorld_Test_WindFarmHVDCTestCalcHelperMain.o' failed make: *** [OMCppPowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_WindFarmHVDCTestCalcHelperMain.o] Error 1