/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 33 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7465
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2209.8-5028_daily_bin236
RA = 332.474, Dec = -50.4702
tmin = 300499201, tmax = 300758401
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository Job = True

LAT data Source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='206034', job_status='RUN', time_executed='2021-09-28 06:11:37.618413', time_epoch_executed='1632834697.62' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='236'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/206034

Creating custom pfile directory:
/scratch/kocevski/206034/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=300499201.0 && nMetStart<300758401.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=300499201.0 && nMetStart<300758401.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/206034/ft1_4FGL_J2209.8-5028_daily_bin236.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=300499201.0 && nMetStart<300758401.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/206034/ft2_4FGL_J2209.8-5028_daily_bin236.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/206034/ft1_4FGL_J2209.8-5028_daily_bin236.fits outfile=/scratch/kocevski/206034/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin236.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=300499201.0 tmax=300758401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.49
user 3.29
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/206034/ft2_4FGL_J2209.8-5028_daily_bin236.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/206034/ft2_4FGL_J2209.8-5028_daily_bin236.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/206034/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin236.fits evtable="EVENTS" outfile="/scratch/kocevski/206034/ft1_filtered_4FGL_J2209.8-5028_daily_bin236.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/206034/ft1_filtered_4FGL_J2209.8-5028_daily_bin236.fits" evtable="EVENTS" scfile=/scratch/kocevski/206034/ft2_4FGL_J2209.8-5028_daily_bin236.fits sctable="SC_DATA" outfile=/scratch/kocevski/206034/ltcube_300499201_300758401_4FGL_J2209.8-5028_daily_bin236.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /scratch/kocevski/206034/ft2_4FGL_J2209.8-5028_daily_bin236.fits
.....................!
real 12.22
user 11.79
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/206034/ft1_filtered_4FGL_J2209.8-5028_daily_bin236.fits evtable="EVENTS" scfile=/scratch/kocevski/206034/ft2_4FGL_J2209.8-5028_daily_bin236.fits sctable="SC_DATA" expcube=/scratch/kocevski/206034/ltcube_300499201_300758401_4FGL_J2209.8-5028_daily_bin236.fits outfile=/scratch/kocevski/206034/expmap_300499201_300758401_4FGL_J2209.8-5028_daily_bin236.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /scratch/kocevski/206034/ltcube_300499201_300758401_4FGL_J2209.8-5028_daily_bin236.fits
.....................!
real 191.10
user 186.57
sys 3.88

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 185 point sources and 0 extended sources

Setting source of interest to:
4FGL J2209.8-5028 @ 332.474 -50.4702

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/206034/ft1_filtered_4FGL_J2209.8-5028_daily_bin236.fits scfile=/scratch/kocevski/206034/ft2_4FGL_J2209.8-5028_daily_bin236.fits outfile=/scratch/kocevski/206034/cmap_300499201_300758401_4FGL_J2209.8-5028_daily_bin236.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=332.474 yref=-50.4702 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/206034/ft1_filtered_4FGL_J2209.8-5028_daily_bin236.fits scfile=/scratch/kocevski/206034/ft2_4FGL_J2209.8-5028_daily_bin236.fits outfile=/scratch/kocevski/206034/cmap_HighResolution_300499201_300758401_4FGL_J2209.8-5028_daily_bin236.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=332.474 yref=-50.4702 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/206034/ft1_filtered_4FGL_J2209.8-5028_daily_bin236.fits evtable="EVENTS" scfile=/scratch/kocevski/206034/ft2_4FGL_J2209.8-5028_daily_bin236.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/206034/Model_4FGL_J2209.8-5028_daily_bin236.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/206034/ft1_filtered_4FGL_J2209.8-5028_daily_bin236.fits.....................!
real 59.02
user 57.66
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/206034/ft1_filtered_4FGL_J2209.8-5028_daily_bin236.fits', '/scratch/kocevski/206034/ft2_4FGL_J2209.8-5028_daily_bin236.fits', expMap='/scratch/kocevski/206034/expmap_300499201_300758401_4FGL_J2209.8-5028_daily_bin236.fits', expCube='/scratch/kocevski/206034/ltcube_300499201_300758401_4FGL_J2209.8-5028_daily_bin236.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/206034/Model_4FGL_J2209.8-5028_daily_bin236.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2209.8-5028'

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  7.258e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.372e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
349        Scale:  1.353e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/206034/ft1_filtered_4FGL_J2209.8-5028_daily_bin236.fits
Spacecraft file(s): /scratch/kocevski/206034/ft2_4FGL_J2209.8-5028_daily_bin236.fits
Exposure map: /scratch/kocevski/206034/expmap_300499201_300758401_4FGL_J2209.8-5028_daily_bin236.fits
Exposure cube: /scratch/kocevski/206034/ltcube_300499201_300758401_4FGL_J2209.8-5028_daily_bin236.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/206034/Model_4FGL_J2209.8-5028_daily_bin236.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 8211.20757632

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 8210.69468512

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10333E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.000       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.0054       1.0000         .10000E-03   10000.    
     5 'Prefactor '    33.140       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.4101       1.0000         .10000E-03   10000.    
     7 'norm      '    2.1082       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.4363       1.0000         .10000E-03   10000.    
     9 'Prefactor '    32.917       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10278E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.7995       1.0000         .10000E-03   10000.    
    12 'Prefactor '    43.564       1.0000         .10000E-03   10000.    
    13 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.0418       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .19307E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.410       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    34.810       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .71238E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    31.649       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.2267       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0188       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .84998       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6080E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8210.695     FROM MIGRAD    STATUS=CONVERGED    592 CALLS     3034 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.531        .98710E-07** at limit **
   2  Prefactor     .10000E-03    9.3007       -.28534E-08** at limit **
   3  Prefactor     21.001        7.4405       -.15215E-06    .36400E-04
   4  Prefactor     2.0107        11.534       -.95343E-06    .19489E-04
   5  Prefactor     33.157        23.206       -.57751E-06    .29131E-04
   6  Prefactor     4.4116        3.4672       -.14219E-05    .35228E-03
   7  norm          2.1090        2.4886       -.91612E-07    .40084E-04
   8  Prefactor     1.4372        5.2711       -.79290E-06    .64334E-04
   9  Prefactor     32.919        30.141       -.30707E-06    .66065E-04
  10  Prefactor     .10000E-03    3.6658       -.13754E-05** at limit **
  11  Prefactor     1.7996        2.0733       -.24621E-06   -.10516E-03
  12  Prefactor     43.587        69.852        .29313E-05    .31451E-04
  13  norm          .10000E-03    4.6041       -.41144E-06** at limit **
  14  Prefactor     .10000E-03    1.0215        .92241E-06** at limit **
  15  Prefactor     2.9521        86.669       -.11952E-04    .37702E-04
  16  Prefactor     .10001E-03    3.0706       -.52121E-05** at limit **
  17  Prefactor     18.375        22.267        .11835E-05    .17907E-03
  18  Prefactor     .10000E-03    5.8950       -.66878E-06** at limit **
  19  Prefactor     34.791        58.761       -.22171E-05    .31961E-04
  20  Prefactor     .88085E-01    86.487       -.43130E-04    .17813E-04
  21  Prefactor     31.644        24.187        .15300E-06    .45384E-04
  22  Prefactor     2.2279        7.3191       -.81822E-06    .16265E-04
  23  norm          .10000E-03    2.1505       -.40509E-08** at limit **
  24  Normalizat    1.0190        .15669        .21084E-05    .77339E-04
  25  Prefactor     .84961        .11928       -.39603E-06    .11457E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.0008
  Prefactor  = 2.01072
  Prefactor  = 33.1569
  Prefactor  = 4.4116
  norm       = 2.10901
  Prefactor  = 1.43717
  Prefactor  = 32.9191
  Prefactor  = 0.000100001
  Prefactor  = 1.79959
  Prefactor  = 43.5872
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.95215
  Prefactor  = 0.000100013
  Prefactor  = 18.3753
  Prefactor  = 0.0001
  Prefactor  = 34.7915
  Prefactor  = 0.0880847
  Prefactor  = 31.6442
  Prefactor  = 2.22786
  norm       = 0.0001
  Normalizat = 1.01905
  Prefactor  = 0.849612
 **********
 **   18 **HESSE 
 **********

 FCN=   8210.695     FROM HESSE     STATUS=OK           441 CALLS     3475 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.3047        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     21.001        7.4360        .87405E-04   -1.4791    
   4  Prefactor     2.0107        11.443        .29241E-03   -1.5424    
   5  Prefactor     33.157        23.190        .69607E-04   -1.4556    
   6  Prefactor     4.4116        3.4702        .71323E-03   -1.5288    
   7  norm          2.1090        2.4728        .14939E-03   -1.5418    
   8  Prefactor     1.4372        5.2316        .36017E-03   -1.5468    
   9  Prefactor     32.919        30.137        .69842E-04   -1.4560    
  10  Prefactor     .10000E-03    3.7086        .16957E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.7996        2.0639        .13494E-03   -1.5440    
  12  Prefactor     43.587        69.859        .60740E-04   -1.4387    
  13  norm          .10000E-03    4.6902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.0434        .89838E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.9521        87.074        .23264E-03   -1.5364    
  16  Prefactor     .10001E-03    44.694        .24112E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     18.375        22.150        .93346E-04   -1.4850    
  18  Prefactor     .10000E-03    5.9399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     34.791        58.720        .67922E-04   -1.4528    
  20  Prefactor     .88085E-01    5.4506        .56010E-01   -1.5649    
  21  Prefactor     31.644        24.177        .71223E-04   -1.4582    
  22  Prefactor     2.2279        7.2992        .27553E-03   -1.5409    
  23  norm          .10000E-03    2.1524        .12977E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0190        .17846        .24816E-03   -.92395    
  25  Prefactor     .84961        .13726        .21727E-03   -.97925    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47522e-09
Minuit parameter uncertainties:
  1  2.1427e-05
  2  1.01906e-05
  3  7.43635
  4  9.59623
  5  23.1966
  6  3.47032
  7  2.47292
  8  5.23325
  9  30.1508
  10  0.000108908
  11  2.06403
  12  69.9902
  13  3.93076e-05
  14  4.06096e-05
  15  32.1168
  16  0.00151561
  17  22.1599
  18  8.23329e-05
  19  58.8175
  20  1.38515
  21  24.1847
  22  7.30211
  23  9.89368e-07
  24  0.178564
  25  0.137319
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 8210.69464992

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  4.359e+01  6.999e+01  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.372e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
349        Scale:  1.353e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
605    Prefactor:  8.496e-01  1.373e-01  0.000e+00  1.000e+01 ( 1.000e+00)
606        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
607        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
604   Normalization:  1.019e+00  1.786e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.54
Ra Dec: 332.474 -50.470
Photon Flux Upper Limit: 7.49e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.78e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/206034/likelihoodResults_300499201_300758401_4FGL_J2209.8-5028_daily_bin236.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8210.67476645
delta logL = 0.0198834739422

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8210.65948326
delta logL = 0.0351666591541

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.595       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7911       1.0000          .0000       10.000    
     3 'Normalizat'    1.0089       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85446       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6080E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8210.659     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      305 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.719        1067.3        .74921E-04    .12139E-05
   2  Index         2.7905        5.9345        .10042E-01    .20096E-04
   3  Normalizat    1.0088        .23710        .24928E-03    .45606E-05
   4  Prefactor     .85453        .16811        .21671E-03    .94430E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.7188
  Index      = 2.79046
  Normalizat = 1.00878
  Prefactor  = 0.85453
 **********
 **   18 **HESSE 
 **********

 FCN=   8210.659     FROM HESSE     STATUS=OK            25 CALLS      330 TOTAL
                     EDM=   .50E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.719        84.067        .29968E-05   -1.4636    
   2  Index         2.7905        1.7789        .40170E-03   -.45772    
   3  Normalizat    1.0088        .17346        .99712E-05   -.92737    
   4  Prefactor     .85453        .13683        .86683E-05   -.97749    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.0298e-14
Minuit parameter uncertainties:
  1  84.417
  2  1.8292
  3  0.173558
  4  0.13688
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/206034': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8210.65948028
delta logL = 0.0351696421294

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  2.872e+01  8.442e+01  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.790e+00  1.829e+00  0.000e+00  1.000e+01 (-1.000e+00)
349        Scale:  1.353e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
605    Prefactor:  8.545e-01  1.369e-01  0.000e+00  1.000e+01 ( 1.000e+00)
606        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
607        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
604   Normalization:  1.009e+00  1.736e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.54
Ra Dec: 332.474 -50.470

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/206034/cmap_HighResolution_300499201_300758401_4FGL_J2209.8-5028_daily_bin236.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/206034

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.78e-03', job_status='DONE', photon_flux_upper_limit='7.49e-08', time_completed='2021-09-28 06:26:18.459350', job_id='206034', GAL2='0.85', fit_tolerance='1e-08', EG2='1.01', EG='1.02', time_epoch_completed='1632835578.46', return_code2='0', ts='0.54', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='3.52e-02', ts2='0.61', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='236' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:26:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0169>
Subject: Job 206034: <4FGL_J2209.8-5028_daily_bin236> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin236> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep 28 06:10:47 2021
Job was executed on host(s) <bullet0169>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:10:48 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 06:10:48 2021
Terminated at Tue Sep 28 06:26:19 2021
Results reported at Tue Sep 28 06:26:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin236 332.474 -50.4702 300499201 300758401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2209.8-5028 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   875.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             305.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   930 sec.
    Turnaround time :                            932 sec.

The output (if any) is above this job summary.

