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.001587/0.001586, allocations: 183.1 kB / 15.76 MB, free: 6.34 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.021/2.021, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.001117/0.001116, allocations: 98.86 kB / 270.2 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2648/0.2648, allocations: 38.06 MB / 356.6 MB, free: 0.7969 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004575/0.0004575, allocations: 8 kB / 422.8 MB, free: 26.32 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1111/0.1116, allocations: 56.34 MB / 479.1 MB, free: 1.93 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.489/0.6007, allocations: 96.41 MB / 0.5621 GB, free: 3.559 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.002419/0.6032, allocations: 0.86 MB / 0.5629 GB, free: 3.094 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07084/0.674, allocations: 16.87 MB / 0.5794 GB, free: 4.949 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.743e-06/0.6741, allocations: 4 kB / 0.5794 GB, free: 4.945 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.723e-05/0.6741, allocations: 4 kB / 0.5794 GB, free: 4.941 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: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.002033/0.6762, allocations: 0.7411 MB / 0.5801 GB, free: 4.172 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.101e-05/0.6762, allocations: 11.97 kB / 0.5801 GB, free: 4.16 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001288/0.6764, allocations: 60.03 kB / 0.5802 GB, free: 4.105 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001442/0.6778, allocations: 115.4 kB / 0.5803 GB, free: 3.992 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009937/0.6788, allocations: 391.4 kB / 0.5807 GB, free: 3.625 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.675e-05/0.6789, allocations: 27.09 kB / 0.5807 GB, free: 3.605 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.538e-05/0.679, allocations: 19.06 kB / 0.5807 GB, free: 3.59 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001436/0.6804, allocations: 461.2 kB / 0.5811 GB, free: 3.223 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.736e-05/0.6805, allocations: 0 / 0.5811 GB, free: 3.223 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.26e-05/0.6806, allocations: 15.25 kB / 0.5812 GB, free: 3.215 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.886e-05/0.6806, allocations: 20.42 kB / 0.5812 GB, free: 3.195 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001911/0.6826, allocations: 0.5597 MB / 0.5817 GB, free: 2.77 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004115/0.6867, allocations: 1.741 MB / 0.5834 GB, free: 1.27 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0021/0.6889, allocations: 437.5 kB / 0.5838 GB, free: 0.9258 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.805e-05/0.6889, allocations: 7.297 kB / 0.5838 GB, free: 0.9219 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009976/0.69, allocations: 308.4 kB / 0.5841 GB, free: 0.6367 MB / 378.7 MB Notification: Performance of pre-optimization done (n=31): time 5.26e-06/0.69, allocations: 7.938 kB / 0.5841 GB, free: 0.6289 MB / 378.7 MB Notification: Performance of matching and sorting (n=31): time 0.002576/0.6926, allocations: 0.5894 MB / 0.5847 GB, free: 164 kB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000229/0.6928, allocations: 298.7 kB / 0.585 GB, free: 15.8 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007186/0.6936, allocations: 329.4 kB / 0.5853 GB, free: 15.54 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001257/0.6937, allocations: 40.7 kB / 0.5854 GB, free: 15.5 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001982/0.6939, allocations: 249 kB / 0.5856 GB, free: 15.3 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001666/0.6941, allocations: 100.4 kB / 0.5857 GB, free: 15.21 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.915e-05/0.6942, allocations: 11 kB / 0.5857 GB, free: 15.21 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.00015/0.6943, allocations: 329.8 kB / 0.586 GB, free: 14.88 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007373/0.6951, allocations: 156.8 kB / 0.5862 GB, free: 14.77 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008494/0.696, allocations: 307.3 kB / 0.5865 GB, free: 14.47 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008616/0.6969, allocations: 221.9 kB / 0.5867 GB, free: 14.3 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.402e-06/0.6969, allocations: 0 / 0.5867 GB, free: 14.3 MB / 394.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001969/0.6989, allocations: 0.5442 MB / 0.5872 GB, free: 13.87 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.721e-05/0.699, allocations: 33.7 kB / 0.5872 GB, free: 13.83 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.442e-05/0.699, allocations: 4 kB / 0.5872 GB, free: 13.82 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.785e-05/0.6991, allocations: 4 kB / 0.5872 GB, free: 13.82 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006969/0.6998, allocations: 98.69 kB / 0.5873 GB, free: 13.73 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.608e-05/0.6998, allocations: 4.281 kB / 0.5873 GB, free: 13.72 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006106/0.7004, allocations: 61.34 kB / 0.5874 GB, free: 13.67 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.057e-05/0.7005, allocations: 19.06 kB / 0.5874 GB, free: 13.65 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 (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.0004205/0.7009, allocations: 200.3 kB / 0.5876 GB, free: 13.48 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001396/0.7011, allocations: 42.09 kB / 0.5876 GB, free: 13.44 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001875/0.703, allocations: 492.4 kB / 0.5881 GB, free: 13.07 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.782e-05/0.703, allocations: 4 kB / 0.5881 GB, free: 13.06 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.137e-05/0.7031, allocations: 4 kB / 0.5881 GB, free: 13.06 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.566e-05/0.7031, allocations: 7.984 kB / 0.5881 GB, free: 13.05 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001734/0.7048, allocations: 1.097 MB / 0.5892 GB, free: 12.02 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.922e-06/0.7049, allocations: 0 / 0.5892 GB, free: 12.02 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006234/0.7055, allocations: 75.89 kB / 0.5893 GB, free: 11.95 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.313e-05/0.7055, allocations: 4 kB / 0.5893 GB, free: 11.94 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.249e-05/0.7056, allocations: 19.36 kB / 0.5893 GB, free: 11.93 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.037e-06/0.7056, allocations: 8 kB / 0.5893 GB, free: 11.92 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.32e-06/0.7056, allocations: 3.938 kB / 0.5893 GB, free: 11.92 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001938/0.7076, allocations: 0.6416 MB / 0.5899 GB, free: 11.29 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002073/0.7078, allocations: 132.6 kB / 0.5901 GB, free: 11.15 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001199/0.708, allocations: 18.77 kB / 0.5901 GB, free: 11.14 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004636/0.7084, allocations: 37.47 kB / 0.5901 GB, free: 11.11 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001624/0.7086, allocations: 42.94 kB / 0.5902 GB, free: 11.07 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.924e-05/0.7087, allocations: 15.56 kB / 0.5902 GB, free: 11.06 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0004935/0.7092, allocations: 262.3 kB / 0.5904 GB, free: 10.87 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.7092, allocations: 0 / 0.5904 GB, free: 10.87 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0007165/0.7099, allocations: 111.2 kB / 0.5905 GB, free: 10.77 MB / 394.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) * Number of clocked states: 0 () * 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.003773/0.7137, allocations: 2.11 MB / 0.5926 GB, free: 8.762 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001757/0.7155, allocations: 473.7 kB / 0.593 GB, free: 8.387 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.312e-06/0.7155, allocations: 0.75 kB / 0.593 GB, free: 8.387 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008871/0.7164, allocations: 230 kB / 0.5933 GB, free: 8.219 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006417/0.7171, allocations: 65.02 kB / 0.5933 GB, free: 8.168 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007805/0.7249, allocations: 5.16 MB / 0.5984 GB, free: 3.281 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005821/0.7256, allocations: 0.8232 MB / 0.5992 GB, free: 2.449 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000411/0.726, allocations: 132.2 kB / 0.5993 GB, free: 2.395 MB / 394.7 MB Notification: Performance of SimCode: time 9.02e-07/0.726, allocations: 3.938 kB / 0.5993 GB, free: 2.391 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/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