/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 81 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 = 7378
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2209.8-5028_daily_bin1512
RA = 332.474, Dec = -50.4702
tmin = 631238401, tmax = 631497601
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='211908', job_status='RUN', time_executed='2021-09-28 06:32:11.914996', time_epoch_executed='1632835931.92' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='1512'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/211908

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/211908/ft1_4FGL_J2209.8-5028_daily_bin1512.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/211908/ft2_4FGL_J2209.8-5028_daily_bin1512.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/211908/ft1_4FGL_J2209.8-5028_daily_bin1512.fits outfile=/scratch/kocevski/211908/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1512.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=631238401.0 tmax=631497601.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 2.73
user 2.54
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/211908/ft2_4FGL_J2209.8-5028_daily_bin1512.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/211908/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1512.fits evtable="EVENTS" outfile="/scratch/kocevski/211908/ft1_filtered_4FGL_J2209.8-5028_daily_bin1512.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.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/211908/ft1_filtered_4FGL_J2209.8-5028_daily_bin1512.fits" evtable="EVENTS" scfile=/scratch/kocevski/211908/ft2_4FGL_J2209.8-5028_daily_bin1512.fits sctable="SC_DATA" outfile=/scratch/kocevski/211908/ltcube_631238401_631497601_4FGL_J2209.8-5028_daily_bin1512.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/211908/ft2_4FGL_J2209.8-5028_daily_bin1512.fits
.....................!
real 12.33
user 11.97
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/211908/ft1_filtered_4FGL_J2209.8-5028_daily_bin1512.fits evtable="EVENTS" scfile=/scratch/kocevski/211908/ft2_4FGL_J2209.8-5028_daily_bin1512.fits sctable="SC_DATA" expcube=/scratch/kocevski/211908/ltcube_631238401_631497601_4FGL_J2209.8-5028_daily_bin1512.fits outfile=/scratch/kocevski/211908/expmap_631238401_631497601_4FGL_J2209.8-5028_daily_bin1512.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/211908/ltcube_631238401_631497601_4FGL_J2209.8-5028_daily_bin1512.fits
.....................!
real 190.96
user 186.24
sys 4.41

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/211908/ft1_filtered_4FGL_J2209.8-5028_daily_bin1512.fits scfile=/scratch/kocevski/211908/ft2_4FGL_J2209.8-5028_daily_bin1512.fits outfile=/scratch/kocevski/211908/cmap_631238401_631497601_4FGL_J2209.8-5028_daily_bin1512.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/211908/ft1_filtered_4FGL_J2209.8-5028_daily_bin1512.fits scfile=/scratch/kocevski/211908/ft2_4FGL_J2209.8-5028_daily_bin1512.fits outfile=/scratch/kocevski/211908/cmap_HighResolution_631238401_631497601_4FGL_J2209.8-5028_daily_bin1512.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/211908/ft1_filtered_4FGL_J2209.8-5028_daily_bin1512.fits evtable="EVENTS" scfile=/scratch/kocevski/211908/ft2_4FGL_J2209.8-5028_daily_bin1512.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/211908/Model_4FGL_J2209.8-5028_daily_bin1512.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/211908/ft1_filtered_4FGL_J2209.8-5028_daily_bin1512.fits.....................!
real 43.27
user 41.96
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/211908/ft1_filtered_4FGL_J2209.8-5028_daily_bin1512.fits', '/scratch/kocevski/211908/ft2_4FGL_J2209.8-5028_daily_bin1512.fits', expMap='/scratch/kocevski/211908/expmap_631238401_631497601_4FGL_J2209.8-5028_daily_bin1512.fits', expCube='/scratch/kocevski/211908/ltcube_631238401_631497601_4FGL_J2209.8-5028_daily_bin1512.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/211908/Model_4FGL_J2209.8-5028_daily_bin1512.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/211908/ft1_filtered_4FGL_J2209.8-5028_daily_bin1512.fits
Spacecraft file(s): /scratch/kocevski/211908/ft2_4FGL_J2209.8-5028_daily_bin1512.fits
Exposure map: /scratch/kocevski/211908/expmap_631238401_631497601_4FGL_J2209.8-5028_daily_bin1512.fits
Exposure cube: /scratch/kocevski/211908/ltcube_631238401_631497601_4FGL_J2209.8-5028_daily_bin1512.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/211908/Model_4FGL_J2209.8-5028_daily_bin1512.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) = 5459.18787477

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.376       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.9454       1.0000         .10000E-03   10000.    
     4 'Prefactor '    25.967       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.7290       1.0000         .10000E-03   10000.    
     7 'norm      '    3.3440       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.4238       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.0397       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.836       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .17750E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.0118       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.5208       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1990       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .96747       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=   5459.184     FROM MIGRAD    STATUS=CONVERGED    555 CALLS     2856 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.387        31.874        .17215E-05    .39811E-04
   2  Prefactor     .10000E-03    27.376        .10351E-06** at limit **
   3  Prefactor     6.9431        12.529        .16245E-06   -.75857E-05
   4  Prefactor     25.971        39.403        .69643E-06    .10660E-04
   5  Prefactor     .10000E-03    31.195        .10700E-05** at limit **
   6  Prefactor     3.7284        5.2564        .37721E-06    .21998E-04
   7  norm          3.3439        3.4118       -.10290E-07   -.52227E-05
   8  Prefactor     6.4234        10.828        .16822E-06   -.43550E-05
   9  Prefactor     .10000E-03    40.894       -.20156E-05** at limit **
  10  Prefactor     6.0361        9.4309        .35595E-05   -.12372E-03
  11  Prefactor     .10000E-03    1.4598       -.93871E-09** at limit **
  12  Prefactor     12.914        143.24        .51616E-05    .47965E-04
  13  norm          .10000E-03    2.3177        .29631E-07** at limit **
  14  Prefactor     .10000E-03    3.5111       -.24193E-06** at limit **
  15  Prefactor     .10000E-03    22.282       -.11586E-05** at limit **
  16  Prefactor     3.0135        7.2434        .47943E-06   -.26329E-04
  17  Prefactor     .10000E-03    29.039        .48201E-06** at limit **
  18  Prefactor     6.5190        12.077        .18678E-06   -.21711E-04
  19  Prefactor     .10000E-03    31.116        .94976E-06** at limit **
  20  Prefactor     .10000E-03    7.8175       -.12808E-07** at limit **
  21  Prefactor     .10000E-03    24.686       -.87383E-06** at limit **
  22  Prefactor     .10000E-03    18.701        .59556E-06** at limit **
  23  norm          .10000E-03    4.1894       -.31434E-08** at limit **
  24  Normalizat    1.1991        .20718       -.41485E-06    .99549E-05
  25  Prefactor     .96743        .16244       -.70546E-06    .84429E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.3866
  Prefactor  = 0.0001
  Prefactor  = 6.94313
  Prefactor  = 25.9711
  Prefactor  = 0.0001
  Prefactor  = 3.72837
  norm       = 3.34386
  Prefactor  = 6.42344
  Prefactor  = 0.0001
  Prefactor  = 6.03607
  Prefactor  = 0.0001
  Prefactor  = 12.914
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.01347
  Prefactor  = 0.0001
  Prefactor  = 6.51896
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.19911
  Prefactor  = 0.967432
 **********
 **   18 **HESSE 
 **********

 FCN=   5459.184     FROM HESSE     STATUS=OK           425 CALLS     3281 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.387        31.928        .88732E-04   -1.4805    
   2  Prefactor     .10000E-03    27.393        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.9431        12.485        .15223E-03   -1.5181    
   4  Prefactor     25.971        39.312        .78613E-04   -1.4688    
   5  Prefactor     .10000E-03    31.451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.7284        5.2370        .19035E-03   -1.5322    
   7  norm          3.3439        3.4103        .13293E-03   -1.5342    
   8  Prefactor     6.4234        10.824        .15836E-03   -1.5201    
   9  Prefactor     .10000E-03    41.337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.0361        9.6836        .81689E-03   -1.5217    
  11  Prefactor     .10000E-03    1.4694        .87159E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     12.914        157.39        .11180E-03   -1.4989    
  13  norm          .10000E-03    2.3186        .10985E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.3197        .26352E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    22.316        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.0135        7.2301        .23387E-03   -1.5361    
  17  Prefactor     .10000E-03    29.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.5190        12.098        .15716E-03   -1.5197    
  19  Prefactor     .10000E-03    31.138        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.9252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    24.745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    18.918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    4.2039        .14770E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1991        .24334        .25462E-03   -.86630    
  25  Prefactor     .96743        .19207        .22959E-03   -.93823    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.97374e-10
Minuit parameter uncertainties:
  1  31.9544
  2  3.50437e-06
  3  12.4899
  4  39.3516
  5  6.8808e-05
  6  5.23763
  7  3.41048
  8  10.8269
  9  0.000280989
  10  9.68609
  11  3.86731e-06
  12  90.4651
  13  1.38926e-06
  14  9.42649e-05
  15  6.8078e-05
  16  7.23219
  17  1.09376e-05
  18  12.1022
  19  7.4438e-05
  20  1.24248e-05
  21  5.24411e-05
  22  5.2308e-05
  23  1.16768e-06
  24  0.243571
  25  0.192203
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.291e+01  9.047e+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:  9.674e-01  1.922e-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.199e+00  2.436e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/211908/likelihoodResults_631238401_631497601_4FGL_J2209.8-5028_daily_bin1512.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) = 5459.18124497
delta logL = 0.00323179460793

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5459.17958366
delta logL = 0.00489310678222

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.056       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1342       1.0000          .0000       10.000    
     3 'Normalizat'    1.2001       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96659       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5459.180     FROM MIGRAD    STATUS=FAILED        91 CALLS      317 TOTAL
                     EDM=   .59E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.810        153.92        .45876E-03   -.20878E-03
   2  Index         2.1342        2.1173        .73687E-02   -.46870E-03
   3  Normalizat    1.2001        .23037        .25453E-03    .17102E-03
   4  Prefactor     .96656        .18985        .22968E-03   -.26136E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5459.180     FROM SIMPLEX   STATUS=UNCHANGED     73 CALLS      390 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.810        153.92        .92874E-03   -1.4840    
   2  Index         2.1342        2.1173        .27190E-02   -.61037    
   3  Normalizat    1.2001        .23037        .23230E-03   -.86600    
   4  Prefactor     .96656        .18985        .22116E-03   -.93852    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5459.180     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      418 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.806        147.70        .18350E-04   -.62945E-04
   2  Index         2.1347        2.0785        .29475E-03    .48985E-05
   3  Normalizat    1.2001        .23054        .50905E-04   -.17777E-04
   4  Prefactor     .96657        .18997        .45936E-04   -.14948E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.8057
  Index      = 2.13469
  Normalizat = 1.20008
  Prefactor  = 0.96657
 **********
 **   18 **HESSE 
 **********

 FCN=   5459.180     FROM HESSE     STATUS=OK            23 CALLS      441 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.806        146.81        .36700E-05   -1.4840    
   2  Index         2.1347        2.0756        .11790E-04   -.61024    
   3  Normalizat    1.2001        .23056        .10181E-04   -.86600    
   4  Prefactor     .96657        .19000        .91872E-05   -.93852    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.62199e-10
Minuit parameter uncertainties:
  1  105.448
  2  2.17657
  3  0.230757
  4  0.190128
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/211908': 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) = 5459.17958053
delta logL = 0.00489623751128

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.881e+01  1.054e+02  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.135e+00  2.177e+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:  9.666e-01  1.901e-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.200e+00  2.308e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/211908/cmap_HighResolution_631238401_631497601_4FGL_J2209.8-5028_daily_bin1512.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.65e-03', job_status='DONE', photon_flux_upper_limit='8.62e-08', time_completed='2021-09-28 06:45:19.923369', job_id='211908', GAL2='0.97', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1632836719.92', return_code2='0', ts='0.03', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='4.90e-03', ts2='0.04', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1512' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:45:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0024>
Subject: Job 211908: <4FGL_J2209.8-5028_daily_bin1512> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin1512> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 28 06:30:37 2021
Job was executed on host(s) <bullet0024>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:30:39 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:30:39 2021
Terminated at Tue Sep 28 06:45:20 2021
Results reported at Tue Sep 28 06:45:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin1512 332.474 -50.4702 631238401 631497601 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 :                                   672.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   881 sec.
    Turnaround time :                            883 sec.

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

