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.001542/0.001542, allocations: 189 kB / 8.013 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.089/2.089, allocations: 205.3 MB / 213.7 MB, free: 1.742 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.001111/0.001111, allocations: 94.64 kB / 261.8 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.2887/0.2887, allocations: 37.99 MB / 347.7 MB, free: 5.781 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.143e-05/2.154e-05, allocations: 4 kB / 409.9 MB, free: 35.05 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.1079, allocations: 56.33 MB / 466.3 MB, free: 10.74 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4982/0.6062, allocations: 95.66 MB / 0.5488 GB, free: 10.23 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.001982/0.6082, allocations: 0.5746 MB / 0.5493 GB, free: 10.13 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06439/0.6727, allocations: 16.69 MB / 0.5656 GB, free: 0.6992 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.843e-06/0.6727, allocations: 0 / 0.5656 GB, free: 0.6992 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.652e-05/0.6728, allocations: 8 kB / 0.5656 GB, free: 0.6914 MB / 362.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.001671/0.6745, allocations: 0.6845 MB / 0.5663 GB, free: 15.98 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.394e-05/0.6745, allocations: 8.031 kB / 0.5663 GB, free: 15.98 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001546/0.6761, allocations: 123.4 kB / 0.5664 GB, free: 15.86 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001151/0.6773, allocations: 387.1 kB / 0.5668 GB, free: 15.5 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.46e-05/0.6774, allocations: 8 kB / 0.5668 GB, free: 15.49 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.332e-05/0.6775, allocations: 15.94 kB / 0.5668 GB, free: 15.48 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00108/0.6786, allocations: 402.5 kB / 0.5672 GB, free: 15.2 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009156/0.6795, allocations: 397 kB / 0.5676 GB, free: 14.88 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.617e-05/0.6795, allocations: 4 kB / 0.5676 GB, free: 14.88 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.927e-05/0.6796, allocations: 3.953 kB / 0.5676 GB, free: 14.87 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.756e-05/0.6797, allocations: 12.44 kB / 0.5676 GB, free: 14.86 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003599/0.6833, allocations: 1.677 MB / 0.5692 GB, free: 13.43 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001134/0.6845, allocations: 339.8 kB / 0.5696 GB, free: 13.18 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003252/0.6848, allocations: 120.3 kB / 0.5697 GB, free: 13.1 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.227e-05/0.6849, allocations: 7.594 kB / 0.5697 GB, free: 13.09 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005406/0.6854, allocations: 260.5 kB / 0.5699 GB, free: 12.85 MB / 378.7 MB Notification: Performance of pre-optimization done (n=31): time 3.226e-06/0.6855, allocations: 0 / 0.5699 GB, free: 12.85 MB / 378.7 MB Notification: Performance of matching and sorting (n=31): time 0.001013/0.6865, allocations: 344 kB / 0.5703 GB, free: 12.59 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001596/0.6867, allocations: 294.7 kB / 0.5705 GB, free: 12.23 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005551/0.6872, allocations: 309.7 kB / 0.5708 GB, free: 11.99 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.006e-05/0.6873, allocations: 40.25 kB / 0.5709 GB, free: 11.95 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001857/0.6875, allocations: 237.2 kB / 0.5711 GB, free: 11.75 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001449/0.6877, allocations: 101 kB / 0.5712 GB, free: 11.66 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.841e-05/0.6877, allocations: 4 kB / 0.5712 GB, free: 11.66 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001395/0.6879, allocations: 325.7 kB / 0.5715 GB, free: 11.34 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003074/0.6882, allocations: 112.4 kB / 0.5716 GB, free: 11.28 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003966/0.6886, allocations: 240.1 kB / 0.5718 GB, free: 11.04 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000405/0.689, allocations: 149.3 kB / 0.572 GB, free: 10.94 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.949e-06/0.6891, allocations: 7.891 kB / 0.572 GB, free: 10.93 MB / 378.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001037/0.6901, allocations: 396.6 kB / 0.5724 GB, free: 10.63 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.831e-05/0.6902, allocations: 33.7 kB / 0.5724 GB, free: 10.59 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.619e-05/0.6902, allocations: 4 kB / 0.5724 GB, free: 10.59 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.958e-05/0.6903, allocations: 11.94 kB / 0.5724 GB, free: 10.57 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006967/0.691, allocations: 91 kB / 0.5725 GB, free: 10.49 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.746e-05/0.691, allocations: 11.98 kB / 0.5725 GB, free: 10.48 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005781/0.6916, allocations: 51.8 kB / 0.5726 GB, free: 10.43 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.926e-05/0.6917, allocations: 27.42 kB / 0.5726 GB, free: 10.4 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 (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.0001941/0.6919, allocations: 124.3 kB / 0.5727 GB, free: 10.28 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0009726/0.6929, allocations: 350.6 kB / 0.5731 GB, free: 10 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.601e-05/0.693, allocations: 35.62 kB / 0.5731 GB, free: 9.965 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001114/0.6941, allocations: 377.3 kB / 0.5734 GB, free: 9.68 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.679e-05/0.6942, allocations: 4 kB / 0.5734 GB, free: 9.676 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.126e-05/0.6942, allocations: 7.938 kB / 0.5735 GB, free: 9.668 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.404e-05/0.6942, allocations: 3.984 kB / 0.5735 GB, free: 9.664 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001619/0.6958, allocations: 1.029 MB / 0.5745 GB, free: 8.707 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.778e-06/0.6959, allocations: 4 kB / 0.5745 GB, free: 8.703 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006378/0.6965, allocations: 82.95 kB / 0.5745 GB, free: 8.625 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.437e-05/0.6966, allocations: 4 kB / 0.5746 GB, free: 8.621 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.352e-05/0.6966, allocations: 7.984 kB / 0.5746 GB, free: 8.613 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.011e-06/0.6966, allocations: 4 kB / 0.5746 GB, free: 8.609 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.066e-06/0.6967, allocations: 4 kB / 0.5746 GB, free: 8.605 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001111/0.6978, allocations: 0.5374 MB / 0.5751 GB, free: 8.07 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001691/0.698, allocations: 131.8 kB / 0.5752 GB, free: 7.93 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001045/0.6981, allocations: 11.95 kB / 0.5752 GB, free: 7.918 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004581/0.6986, allocations: 27.72 kB / 0.5753 GB, free: 7.895 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001407/0.6988, allocations: 47.02 kB / 0.5753 GB, free: 7.855 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.165e-05/0.6988, allocations: 15.98 kB / 0.5753 GB, free: 7.84 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003966/0.6992, allocations: 238.3 kB / 0.5755 GB, free: 7.664 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.6992, allocations: 0 / 0.5755 GB, free: 7.664 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007692/0.7, allocations: 99.3 kB / 0.5756 GB, free: 7.57 MB / 378.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.002824/0.7029, allocations: 1.919 MB / 0.5775 GB, free: 5.738 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001089/0.704, allocations: 363.2 kB / 0.5779 GB, free: 5.469 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 9.768e-06/0.7041, allocations: 4.125 kB / 0.5779 GB, free: 5.465 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005265/0.7046, allocations: 179.9 kB / 0.578 GB, free: 5.344 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008204/0.7055, allocations: 72.64 kB / 0.5781 GB, free: 5.285 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002462/0.708, allocations: 0.6622 MB / 0.5787 GB, free: 4.656 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005533/0.7086, allocations: 0.8273 MB / 0.5796 GB, free: 3.816 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004895/0.7091, allocations: 128.6 kB / 0.5797 GB, free: 3.766 MB / 378.7 MB Notification: Performance of SimCode: time 1.222e-06/0.7091, allocations: 0 / 0.5797 GB, free: 3.766 MB / 378.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_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:91:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp62; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_WindFarmGridTestInitializeParameter.cpp:92: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:735:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp42; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_WindFarmGridTestInitialize.cpp:736: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/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_WindFarmGridTestCalcHelperMain.o' failed make: *** [OMCppPowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_WindFarmGridTestCalcHelperMain.o] Error 1