Running command: "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_WindFarmGridTest",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(PowerSystems): time 2.261/2.261, allocations: 233 MB / 245.6 MB, free: 14.81 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.337e-05/3.33e-05, allocations: 7.938 kB / 301.4 MB, free: 7.875 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1102/0.1103, allocations: 53.24 MB / 354.6 MB, free: 2.523 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4329/0.5432, allocations: 90.47 MB / 445.1 MB, free: 11.41 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00353/0.5468, allocations: 0.6852 MB / 445.7 MB, free: 10.72 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. Notification: Performance of FrontEnd - DAE generated: time 0.06869/0.6155, allocations: 16.15 MB / 461.9 MB, free: 10.45 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.6155, allocations: 0 / 461.9 MB, free: 10.45 MB / 394.7 MB Notification: Performance of Transformations before backend: time 3.899e-05/0.6156, allocations: 12 kB / 461.9 MB, free: 10.43 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: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.001697/0.6173, allocations: 0.7319 MB / 462.6 MB, free: 9.641 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.022e-05/0.6174, allocations: 12.03 kB / 462.7 MB, free: 9.629 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001109/0.6175, allocations: 62.52 kB / 462.7 MB, free: 9.559 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00145/0.6189, allocations: 119.9 kB / 462.8 MB, free: 9.441 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000904/0.6199, allocations: 382.5 kB / 463.2 MB, free: 9.027 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.993e-05/0.6199, allocations: 24.42 kB / 463.2 MB, free: 9.004 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.055e-05/0.62, allocations: 23.98 kB / 463.3 MB, free: 8.98 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001031/0.6211, allocations: 425.9 kB / 463.7 MB, free: 8.535 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.471e-05/0.6211, allocations: 3.938 kB / 463.7 MB, free: 8.531 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.968e-05/0.6212, allocations: 4 kB / 463.7 MB, free: 8.527 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.198e-05/0.6212, allocations: 24.42 kB / 463.7 MB, free: 8.504 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001253/0.6225, allocations: 492.5 kB / 464.2 MB, free: 8.023 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003626/0.6261, allocations: 1.773 MB / 466 MB, free: 6.148 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001257/0.6274, allocations: 349.7 kB / 466.3 MB, free: 5.789 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003463/0.6278, allocations: 130.2 kB / 466.4 MB, free: 5.656 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.635e-05/0.6279, allocations: 8.172 kB / 466.4 MB, free: 5.648 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000583/0.6284, allocations: 279.2 kB / 466.7 MB, free: 5.336 MB / 394.7 MB Notification: Performance of pre-optimization done (n=31): time 2.895e-06/0.6285, allocations: 3.938 kB / 466.7 MB, free: 5.332 MB / 394.7 MB Notification: Performance of matching and sorting (n=31): time 0.001092/0.6296, allocations: 361.5 kB / 467.1 MB, free: 4.973 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001499/0.6297, allocations: 298.7 kB / 467.4 MB, free: 4.613 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005736/0.6303, allocations: 330.8 kB / 467.7 MB, free: 4.285 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 6.882e-05/0.6304, allocations: 37.7 kB / 467.7 MB, free: 4.242 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002131/0.6306, allocations: 238.6 kB / 467.9 MB, free: 4.004 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000134/0.6308, allocations: 102.6 kB / 468 MB, free: 3.902 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.028e-05/0.6308, allocations: 8 kB / 468.1 MB, free: 3.895 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001286/0.631, allocations: 326.8 kB / 468.4 MB, free: 3.566 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000409/0.6314, allocations: 140.4 kB / 468.5 MB, free: 3.43 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005063/0.6319, allocations: 267.8 kB / 468.8 MB, free: 3.109 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005126/0.6324, allocations: 231.3 kB / 469 MB, free: 2.871 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.709e-06/0.6324, allocations: 0 / 469 MB, free: 2.871 MB / 394.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001286/0.6337, allocations: 0.5366 MB / 469.5 MB, free: 2.316 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.877e-05/0.6338, allocations: 63.41 kB / 469.6 MB, free: 2.242 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.206e-05/0.6339, allocations: 8 kB / 469.6 MB, free: 2.234 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.371e-05/0.6339, allocations: 4 kB / 469.6 MB, free: 2.23 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007237/0.6346, allocations: 100.3 kB / 469.7 MB, free: 2.133 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.501e-05/0.6347, allocations: 8 kB / 469.7 MB, free: 2.125 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005647/0.6352, allocations: 55.66 kB / 469.8 MB, free: 2.07 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.897e-05/0.6353, allocations: 31.92 kB / 469.8 MB, free: 2.039 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (44): * Single equations (assignments): 42 * 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.0001788/0.6355, allocations: 132.8 kB / 469.9 MB, free: 1.902 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001073/0.6356, allocations: 43.48 kB / 470 MB, free: 1.859 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001139/0.6368, allocations: 412.4 kB / 470.4 MB, free: 1.453 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.179e-05/0.6368, allocations: 8 kB / 470.4 MB, free: 1.445 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.492e-06/0.6368, allocations: 3.938 kB / 470.4 MB, free: 1.441 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.097e-05/0.6368, allocations: 4 kB / 470.4 MB, free: 1.438 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0014/0.6382, allocations: 1.093 MB / 471.5 MB, free: 272 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.025e-06/0.6383, allocations: 4 kB / 471.5 MB, free: 268 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006179/0.6389, allocations: 79.88 kB / 471.6 MB, free: 188 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.117e-05/0.6389, allocations: 4.188 kB / 471.6 MB, free: 184 kB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.23e-05/0.639, allocations: 20 kB / 471.6 MB, free: 164 kB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.358e-06/0.639, allocations: 4 kB / 471.6 MB, free: 160 kB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/0.639, allocations: 0 / 471.6 MB, free: 160 kB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001153/0.6402, allocations: 0.5717 MB / 472.2 MB, free: 15.49 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002635/0.6404, allocations: 168.4 kB / 472.3 MB, free: 15.3 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001015/0.6406, allocations: 16 kB / 472.3 MB, free: 15.29 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004392/0.641, allocations: 31.97 kB / 472.4 MB, free: 15.26 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001533/0.6412, allocations: 55.83 kB / 472.4 MB, free: 15.2 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.802e-05/0.6412, allocations: 16 kB / 472.4 MB, free: 15.19 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0004427/0.6417, allocations: 254.1 kB / 472.7 MB, free: 14.94 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.6417, allocations: 0 / 472.7 MB, free: 14.94 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.000729/0.6424, allocations: 111.8 kB / 472.8 MB, free: 14.83 MB / 410.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.002971/0.6454, allocations: 2.026 MB / 474.8 MB, free: 12.8 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001136/0.6466, allocations: 479.4 kB / 475.3 MB, free: 12.31 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.378e-06/0.6466, allocations: 320 / 475.3 MB, free: 12.31 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004987/0.6471, allocations: 187.8 kB / 475.5 MB, free: 12.13 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005833/0.6477, allocations: 65.09 kB / 475.5 MB, free: 12.06 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001983/0.6497, allocations: 0.7119 MB / 476.3 MB, free: 11.28 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004774/0.6502, allocations: 0.8242 MB / 477.1 MB, free: 10.43 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003908/0.6506, allocations: 131.4 kB / 477.2 MB, free: 10.3 MB / 410.7 MB Notification: Performance of SimCode: time 8.92e-07/0.6506, allocations: 0 / 477.2 MB, free: 10.3 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_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:92:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp62; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_WindFarmGridTestInitializeParameter.cpp:93: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_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("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/PowerSystems 1.0.0/Examples/PowerWorld/Resources/", tmp25); ~~~~~~~~~~ ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_WindFarmGridTestInitialize.cpp:475: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_WindFarmGridTestInitialize.cpp:478: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_WindFarmGridTestInitialize.cpp:800:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp45; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_WindFarmGridTestInitialize.cpp:801: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_WindFarmGridTestCalcHelperMain.cpp:34: ./OMCppPowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_WindFarmGridTest.cpp:350: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_WindFarmGridTest.cpp:353: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_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/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_WindFarmGridTestCalcHelperMain.o' failed make: *** [OMCppPowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_WindFarmGridTestCalcHelperMain.o] Error 1