Running command: "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.WindFarmHVDCTest,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_WindFarmHVDCTest",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(PowerSystems): time 2.283/2.283, allocations: 233 MB / 245.6 MB, free: 14.83 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.394e-05/3.412e-05, allocations: 4 kB / 301.4 MB, free: 7.875 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1098/0.1099, allocations: 53.23 MB / 354.6 MB, free: 2.535 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4511/0.561, allocations: 93.85 MB / 448.4 MB, free: 8.047 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00246/0.5635, allocations: 0.6812 MB / 449.1 MB, free: 7.367 MB / 378.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Blocks/Sources.mo:2346:7-2347:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$windFarm$wind.getDerTableValue. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Blocks/Sources.mo:2312:7-2313:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$windFarm$wind.getTableValue. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Blocks/Sources.mo:2358:7-2359:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$windFarm$wind.getTableTimeTmin. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Blocks/Sources.mo:2369:7-2370:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$windFarm$wind.getTableTimeTmax. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/PowerSystems 1.0.0/Generic.mo:465:11-465:52:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.potentialRoot(terminal.theta);. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/PowerSystems 1.0.0/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.08244/0.646, allocations: 20.17 MB / 469.3 MB, free: 3.004 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.797e-06/0.646, allocations: 0 / 469.3 MB, free: 3.004 MB / 394.7 MB Notification: Performance of Transformations before backend: time 3.934e-05/0.6461, allocations: 15.94 kB / 469.3 MB, free: 2.988 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.001802/0.6479, allocations: 0.7593 MB / 470.1 MB, free: 2.164 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.908e-05/0.6479, allocations: 8.031 kB / 470.1 MB, free: 2.156 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000115/0.6481, allocations: 54.55 kB / 470.1 MB, free: 2.094 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001489/0.6496, allocations: 123.9 kB / 470.2 MB, free: 1.973 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009227/0.6505, allocations: 394.6 kB / 470.6 MB, free: 1.547 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.059e-05/0.6506, allocations: 24.55 kB / 470.7 MB, free: 1.523 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.705e-05/0.6507, allocations: 23.98 kB / 470.7 MB, free: 1.5 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001027/0.6517, allocations: 424.2 kB / 471.1 MB, free: 1.047 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.504e-05/0.6517, allocations: 0 / 471.1 MB, free: 1.047 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.374e-05/0.6518, allocations: 15.98 kB / 471.1 MB, free: 1.031 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.113e-05/0.6519, allocations: 20.42 kB / 471.1 MB, free: 1.012 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001239/0.6531, allocations: 476.4 kB / 471.6 MB, free: 0.5469 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003418/0.6566, allocations: 1.867 MB / 473.5 MB, free: 14.57 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001325/0.6579, allocations: 369.6 kB / 473.8 MB, free: 14.19 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003485/0.6583, allocations: 126.2 kB / 473.9 MB, free: 14.06 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.367e-05/0.6584, allocations: 4.234 kB / 473.9 MB, free: 14.05 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005689/0.6589, allocations: 257.5 kB / 474.2 MB, free: 13.77 MB / 410.7 MB Notification: Performance of pre-optimization done (n=30): time 2.956e-06/0.659, allocations: 4 kB / 474.2 MB, free: 13.77 MB / 410.7 MB Notification: Performance of matching and sorting (n=30): time 0.001086/0.6601, allocations: 361.3 kB / 474.6 MB, free: 13.41 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001407/0.6602, allocations: 243.3 kB / 474.8 MB, free: 13.11 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006194/0.6608, allocations: 339.5 kB / 475.1 MB, free: 12.78 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 6.757e-05/0.6609, allocations: 45.89 kB / 475.2 MB, free: 12.73 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001952/0.6611, allocations: 250.5 kB / 475.4 MB, free: 12.48 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001301/0.6613, allocations: 94.73 kB / 475.5 MB, free: 12.39 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.159e-05/0.6613, allocations: 8 kB / 475.5 MB, free: 12.38 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001355/0.6615, allocations: 326.8 kB / 475.8 MB, free: 12.05 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004042/0.6619, allocations: 140.8 kB / 476 MB, free: 11.91 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000526/0.6624, allocations: 276 kB / 476.2 MB, free: 11.58 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005011/0.663, allocations: 231.3 kB / 476.5 MB, free: 11.34 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.009e-06/0.663, allocations: 4 kB / 476.5 MB, free: 11.34 MB / 410.7 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.001307/0.6643, allocations: 0.528 MB / 477 MB, free: 10.79 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.897e-05/0.6644, allocations: 63.39 kB / 477.1 MB, free: 10.72 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.359e-05/0.6644, allocations: 7.984 kB / 477.1 MB, free: 10.71 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.742e-05/0.6644, allocations: 8 kB / 477.1 MB, free: 10.7 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007422/0.6652, allocations: 103.8 kB / 477.2 MB, free: 10.6 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.613e-05/0.6652, allocations: 8.312 kB / 477.2 MB, free: 10.59 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005818/0.6658, allocations: 63.5 kB / 477.2 MB, free: 10.53 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.357e-05/0.6659, allocations: 27.98 kB / 477.3 MB, free: 10.5 MB / 410.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): 43 * Array equations: 0 * Algorithm blocks: 2 * 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.0001826/0.6661, allocations: 132.8 kB / 477.4 MB, free: 10.37 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001007/0.6662, allocations: 39.53 kB / 477.4 MB, free: 10.33 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001262/0.6675, allocations: 444.1 kB / 477.9 MB, free: 9.883 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.156e-05/0.6675, allocations: 8 kB / 477.9 MB, free: 9.875 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.188e-06/0.6675, allocations: 4 kB / 477.9 MB, free: 9.871 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.275e-06/0.6675, allocations: 0 / 477.9 MB, free: 9.871 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001506/0.6691, allocations: 0.9092 MB / 478.8 MB, free: 8.891 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.95e-06/0.6691, allocations: 4 kB / 478.8 MB, free: 8.887 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006267/0.6697, allocations: 75.89 kB / 478.9 MB, free: 8.812 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.262e-05/0.6697, allocations: 4 kB / 478.9 MB, free: 8.809 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.488e-05/0.6698, allocations: 19.98 kB / 478.9 MB, free: 8.789 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.077e-06/0.6698, allocations: 4 kB / 478.9 MB, free: 8.785 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.536e-06/0.6698, allocations: 128 / 478.9 MB, free: 8.785 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001179/0.671, allocations: 0.5271 MB / 479.4 MB, free: 8.184 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002784/0.6713, allocations: 164.5 kB / 479.6 MB, free: 8.004 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001081/0.6714, allocations: 19.98 kB / 479.6 MB, free: 7.984 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004367/0.6719, allocations: 31.98 kB / 479.6 MB, free: 7.953 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000139/0.672, allocations: 43.89 kB / 479.7 MB, free: 7.91 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.038e-05/0.6721, allocations: 12 kB / 479.7 MB, free: 7.898 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0004478/0.6726, allocations: 270.1 kB / 480 MB, free: 7.637 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.6726, allocations: 0 / 480 MB, free: 7.637 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0007174/0.6733, allocations: 123.9 kB / 480.1 MB, free: 7.516 MB / 410.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 (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.002778/0.6761, allocations: 1.829 MB / 481.9 MB, free: 5.699 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001118/0.6772, allocations: 486.4 kB / 482.4 MB, free: 5.199 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.157e-06/0.6773, allocations: 1.125 kB / 482.4 MB, free: 5.199 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00049/0.6778, allocations: 176.1 kB / 482.6 MB, free: 5.027 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005995/0.6784, allocations: 69.14 kB / 482.6 MB, free: 4.957 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00204/0.6804, allocations: 0.712 MB / 483.3 MB, free: 4.18 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004999/0.681, allocations: 0.8276 MB / 484.2 MB, free: 3.32 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003809/0.6814, allocations: 135.4 kB / 484.3 MB, free: 3.191 MB / 410.7 MB Notification: Performance of SimCode: time 1.082e-06/0.6814, allocations: 4 kB / 484.3 MB, free: 3.188 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp" -I"." -I"/var/lib/jenkins/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:97:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp62; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_WindFarmHVDCTestInitializeParameter.cpp:98:16: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/PowerSystems 1.0.0/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("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/PowerSystems 1.0.0/Examples/PowerWorld/Resources/", tmp25); ~~~~~~~~~~ ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_WindFarmHVDCTestInitialize.cpp:494:49: warning: magnitude of floating-point constant too large for type 'double'; maximum is 1.7976931348623157E+308 [-Wliteral-range] if (_windFarm_P_wind_P_nextTimeEventScaled_ < 1.797693134862316e+308) { ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_WindFarmHVDCTestInitialize.cpp:497:13: warning: magnitude of floating-point constant too large for type 'double'; maximum is 1.7976931348623157E+308 [-Wliteral-range] tmp35 = 1.797693134862316e+308; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_WindFarmHVDCTestInitialize.cpp:816:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp45; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_WindFarmHVDCTestInitialize.cpp:817:15: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource(_functions->_OMC_LIT2, tmp45); ~~~~~~~~~~ ^ In file included from OMCppPowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_WindFarmHVDCTestCalcHelperMain.cpp:34: ./OMCppPowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_WindFarmHVDCTest.cpp:332:51: warning: magnitude of floating-point constant too large for type 'double'; maximum is 1.7976931348623157E+308 [-Wliteral-range] if (_windFarm_P_wind_P_nextTimeEventScaled_ < 1.797693134862316e+308) { ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_WindFarmHVDCTest.cpp:335:14: warning: magnitude of floating-point constant too large for type 'double'; maximum is 1.7976931348623157E+308 [-Wliteral-range] tmp5 = 1.797693134862316e+308; ^ ./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/jenkins/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) { ^ 5 warnings 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