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.001516/0.001515, allocations: 181.8 kB / 15.76 MB, free: 6.344 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.966/1.966, allocations: 205.4 MB / 221.9 MB, free: 13.69 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.001152/0.001152, allocations: 90.86 kB / 270.2 MB, free: 13.23 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2686/0.2686, allocations: 38.05 MB / 356.5 MB, free: 0.7695 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006099/0.0006096, allocations: 16 kB / 422.8 MB, free: 26.31 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1214/0.122, allocations: 56.32 MB / 479.1 MB, free: 1.934 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4916/0.6137, allocations: 99.79 MB / 0.5653 GB, free: 472 kB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.002375/0.6161, allocations: 0.8593 MB / 0.5662 GB, free: 15.99 MB / 378.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.08515/0.7013, allocations: 20.92 MB / 0.5866 GB, free: 14.57 MB / 394.7 MB Notification: Performance of FrontEnd: time 4.719e-06/0.7013, allocations: 0 / 0.5866 GB, free: 14.57 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.261e-05/0.7014, allocations: 11.94 kB / 0.5866 GB, free: 14.56 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: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.002064/0.7034, allocations: 0.7665 MB / 0.5874 GB, free: 13.78 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.143e-05/0.7035, allocations: 8.031 kB / 0.5874 GB, free: 13.77 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001178/0.7036, allocations: 54.17 kB / 0.5874 GB, free: 13.72 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001577/0.7052, allocations: 127.4 kB / 0.5876 GB, free: 13.59 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009545/0.7062, allocations: 389.9 kB / 0.5879 GB, free: 13.22 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.937e-05/0.7063, allocations: 18.31 kB / 0.588 GB, free: 13.21 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.578e-05/0.7063, allocations: 26.48 kB / 0.588 GB, free: 13.19 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001382/0.7077, allocations: 467.8 kB / 0.5884 GB, free: 12.81 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.971e-05/0.7078, allocations: 11.89 kB / 0.5884 GB, free: 12.8 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.716e-05/0.7078, allocations: 10.19 kB / 0.5884 GB, free: 12.79 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.469e-05/0.7079, allocations: 23.3 kB / 0.5885 GB, free: 12.77 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001873/0.7098, allocations: 0.5435 MB / 0.589 GB, free: 12.36 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003415/0.7133, allocations: 1.837 MB / 0.5908 GB, free: 10.71 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001974/0.7153, allocations: 455.2 kB / 0.5912 GB, free: 10.35 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.435e-05/0.7153, allocations: 8.109 kB / 0.5912 GB, free: 10.34 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009395/0.7163, allocations: 300.5 kB / 0.5915 GB, free: 10.07 MB / 394.7 MB Notification: Performance of pre-optimization done (n=30): time 2.725e-06/0.7163, allocations: 0 / 0.5915 GB, free: 10.07 MB / 394.7 MB Notification: Performance of matching and sorting (n=30): time 0.002384/0.7187, allocations: 0.5811 MB / 0.5921 GB, free: 9.605 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001487/0.7189, allocations: 239.1 kB / 0.5923 GB, free: 9.32 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006703/0.7196, allocations: 359.7 kB / 0.5927 GB, free: 9.039 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.904e-05/0.7196, allocations: 40.05 kB / 0.5927 GB, free: 9 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00019/0.7198, allocations: 240 kB / 0.5929 GB, free: 8.805 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001492/0.72, allocations: 107.3 kB / 0.593 GB, free: 8.715 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.88e-05/0.72, allocations: 7.375 kB / 0.593 GB, free: 8.711 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001539/0.7202, allocations: 329.5 kB / 0.5933 GB, free: 8.387 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006901/0.7209, allocations: 164.3 kB / 0.5935 GB, free: 8.27 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008047/0.7217, allocations: 304.3 kB / 0.5938 GB, free: 7.965 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007682/0.7225, allocations: 227.9 kB / 0.594 GB, free: 7.797 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.741e-06/0.7225, allocations: 0 / 0.594 GB, free: 7.797 MB / 394.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001855/0.7244, allocations: 0.5383 MB / 0.5945 GB, free: 7.363 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.749e-05/0.7245, allocations: 33.7 kB / 0.5946 GB, free: 7.324 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.2e-05/0.7245, allocations: 4 kB / 0.5946 GB, free: 7.32 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.741e-05/0.7245, allocations: 8 kB / 0.5946 GB, free: 7.312 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006978/0.7252, allocations: 107.9 kB / 0.5947 GB, free: 7.211 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.886e-05/0.7253, allocations: 11.98 kB / 0.5947 GB, free: 7.199 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005661/0.7259, allocations: 54.3 kB / 0.5947 GB, free: 7.152 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.556e-05/0.7259, allocations: 23.31 kB / 0.5948 GB, free: 7.133 MB / 394.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (44): * Single equations (assignments): 43 * 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.0003977/0.7263, allocations: 202.6 kB / 0.595 GB, free: 6.957 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001034/0.7264, allocations: 35.53 kB / 0.595 GB, free: 6.922 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001819/0.7283, allocations: 0.4886 MB / 0.5955 GB, free: 6.543 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.057e-05/0.7283, allocations: 4 kB / 0.5955 GB, free: 6.539 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.979e-06/0.7283, allocations: 4 kB / 0.5955 GB, free: 6.535 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.095e-06/0.7283, allocations: 0 / 0.5955 GB, free: 6.535 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001364/0.7297, allocations: 0.9088 MB / 0.5964 GB, free: 5.691 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.274e-06/0.7297, allocations: 4 kB / 0.5964 GB, free: 5.688 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006024/0.7304, allocations: 82.77 kB / 0.5965 GB, free: 5.609 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.23e-05/0.7304, allocations: 7.984 kB / 0.5965 GB, free: 5.602 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.104e-05/0.7304, allocations: 14.86 kB / 0.5965 GB, free: 5.594 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.051e-05/0.7305, allocations: 11.89 kB / 0.5965 GB, free: 5.582 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.39e-06/0.7305, allocations: 4 kB / 0.5965 GB, free: 5.578 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001769/0.7322, allocations: 0.5994 MB / 0.5971 GB, free: 5.016 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000162/0.7324, allocations: 124.4 kB / 0.5972 GB, free: 4.879 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001067/0.7325, allocations: 15.17 kB / 0.5972 GB, free: 4.871 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004339/0.733, allocations: 34.53 kB / 0.5972 GB, free: 4.844 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001413/0.7331, allocations: 46.41 kB / 0.5973 GB, free: 4.805 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.731e-05/0.7332, allocations: 19.23 kB / 0.5973 GB, free: 4.789 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0004868/0.7337, allocations: 280.9 kB / 0.5976 GB, free: 4.574 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.536e-06/0.7337, allocations: 0 / 0.5976 GB, free: 4.574 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0006771/0.7344, allocations: 117 kB / 0.5977 GB, free: 4.473 MB / 394.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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 34 * 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.003579/0.738, allocations: 1.923 MB / 0.5996 GB, free: 2.66 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001705/0.7397, allocations: 470.3 kB / 0.6 GB, free: 2.285 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.93e-06/0.7398, allocations: 0 / 0.6 GB, free: 2.285 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008389/0.7406, allocations: 225.6 kB / 0.6002 GB, free: 2.121 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000625/0.7413, allocations: 62.53 kB / 0.6003 GB, free: 2.078 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007609/0.7489, allocations: 5.201 MB / 0.6054 GB, free: 13.17 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005592/0.7495, allocations: 0.8271 MB / 0.6062 GB, free: 12.33 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003865/0.7499, allocations: 131.4 kB / 0.6063 GB, free: 12.27 MB / 410.7 MB Notification: Performance of SimCode: time 1.193e-06/0.7499, allocations: 0 / 0.6063 GB, free: 12.27 MB / 410.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_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:99:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp62; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_WindFarmHVDCTestInitializeParameter.cpp:100: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:754:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp42; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_WindFarmHVDCTestInitialize.cpp:755: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:1253: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/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_WindFarmHVDCTestCalcHelperMain.o' failed make: *** [OMCppPowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_WindFarmHVDCTestCalcHelperMain.o] Error 1