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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin1537
RA = 332.474, Dec = -50.4702
tmin = 637718401, tmax = 637977601
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='211945', job_status='RUN', time_executed='2021-09-28 06:31:19.604431', time_epoch_executed='1632835879.6' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='1537'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/211945

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/211945/ft1_4FGL_J2209.8-5028_daily_bin1537.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/211945/ft2_4FGL_J2209.8-5028_daily_bin1537.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/211945/ft1_4FGL_J2209.8-5028_daily_bin1537.fits outfile=/scratch/kocevski/211945/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1537.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=637718401.0 tmax=637977601.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.91
user 3.68
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/211945/ft2_4FGL_J2209.8-5028_daily_bin1537.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/211945/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1537.fits evtable="EVENTS" outfile="/scratch/kocevski/211945/ft1_filtered_4FGL_J2209.8-5028_daily_bin1537.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/211945/ft1_filtered_4FGL_J2209.8-5028_daily_bin1537.fits" evtable="EVENTS" scfile=/scratch/kocevski/211945/ft2_4FGL_J2209.8-5028_daily_bin1537.fits sctable="SC_DATA" outfile=/scratch/kocevski/211945/ltcube_637718401_637977601_4FGL_J2209.8-5028_daily_bin1537.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/211945/ft2_4FGL_J2209.8-5028_daily_bin1537.fits
.....................!
real 11.80
user 11.38
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/211945/ft1_filtered_4FGL_J2209.8-5028_daily_bin1537.fits evtable="EVENTS" scfile=/scratch/kocevski/211945/ft2_4FGL_J2209.8-5028_daily_bin1537.fits sctable="SC_DATA" expcube=/scratch/kocevski/211945/ltcube_637718401_637977601_4FGL_J2209.8-5028_daily_bin1537.fits outfile=/scratch/kocevski/211945/expmap_637718401_637977601_4FGL_J2209.8-5028_daily_bin1537.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/211945/ltcube_637718401_637977601_4FGL_J2209.8-5028_daily_bin1537.fits
.....................!
real 191.82
user 185.90
sys 5.55

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/211945/ft1_filtered_4FGL_J2209.8-5028_daily_bin1537.fits scfile=/scratch/kocevski/211945/ft2_4FGL_J2209.8-5028_daily_bin1537.fits outfile=/scratch/kocevski/211945/cmap_637718401_637977601_4FGL_J2209.8-5028_daily_bin1537.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.55
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/211945/ft1_filtered_4FGL_J2209.8-5028_daily_bin1537.fits scfile=/scratch/kocevski/211945/ft2_4FGL_J2209.8-5028_daily_bin1537.fits outfile=/scratch/kocevski/211945/cmap_HighResolution_637718401_637977601_4FGL_J2209.8-5028_daily_bin1537.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.53
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/211945/ft1_filtered_4FGL_J2209.8-5028_daily_bin1537.fits evtable="EVENTS" scfile=/scratch/kocevski/211945/ft2_4FGL_J2209.8-5028_daily_bin1537.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/211945/Model_4FGL_J2209.8-5028_daily_bin1537.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/211945/ft1_filtered_4FGL_J2209.8-5028_daily_bin1537.fits....................!
real 43.85
user 42.42
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.396       1.0000         .10000E-03   10000.    
     3 'Prefactor '    23.832       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .36780       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    7.2172       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.3869       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.7655       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12861E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.5864       1.0000         .10000E-03   10000.    
    12 'Prefactor '    229.18       1.0000         .10000E-03   10000.    
    13 'norm      '    .39264E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.6802       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10219E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    16.067       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .80519       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2485       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=   5496.602     FROM MIGRAD    STATUS=CONVERGED   1041 CALLS     3452 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.573        .18142E-02** at limit **
   2  Prefactor     19.450        62.787        .90944E-04    .59004E-04
   3  Prefactor     23.839        13.021        .82054E-04    .38102E-03
   4  Prefactor     .30960        38.982        .11518        .31545E-03
   5  Prefactor     .10000E-03    8.2625        .18142E-02** at limit **
   6  Prefactor     .10000E-03    3.2230        .12871E-02** at limit **
   7  norm          7.2279        6.7602        .14931E-03    .45655E-03
   8  Prefactor     8.4001        19.522        .13843E-03    .10898E-03
   9  Prefactor     7.7650        51.147        .14390E-03    .12917E-03
  10  Prefactor     .10000E-03    10.115        .18142E-02** at limit **
  11  Prefactor     4.5851        4.1192        .13488E-03    .56928E-03
  12  Prefactor     229.01        161.48        .13365E-03    .23317E-03
  13  norm          .10167E-03    6.3460        .64231E-01** at limit **
  14  Prefactor     .10000E-03    1.6826        .93490E-03** at limit **
  15  Prefactor     2.7032        242.66        .24890E-03    .43849E-05
  16  Prefactor     .10000E-03    10.852        .36285E-03** at limit **
  17  Prefactor     .10000E-03    28.040        .18142E-02** at limit **
  18  Prefactor     .10000E-03    4.5546        .15433E-02** at limit **
  19  Prefactor     .10000E-03    41.690        .18142E-02** at limit **
  20  Prefactor     .10000E-03    6.1150        .17735E-02** at limit **
  21  Prefactor     16.081        38.602        .99921E-04    .42439E-04
  22  Prefactor     .10000E-03    6.1917        .18005E-02** at limit **
  23  norm          .10000E-03    2.6452        .11776E-02** at limit **
  24  Normalizat    .80534        .24918        .31007E-03    .62133E-03
  25  Prefactor     1.2485        .20204        .20816E-03    .75175E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 19.45
  Prefactor  = 23.8394
  Prefactor  = 0.309598
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.22794
  Prefactor  = 8.40014
  Prefactor  = 7.76505
  Prefactor  = 0.000100001
  Prefactor  = 4.58512
  Prefactor  = 229.015
  norm       = 0.00010167
  Prefactor  = 0.0001
  Prefactor  = 2.70317
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 16.0806
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.805344
  Prefactor  = 1.24851
 **********
 **   18 **HESSE 
 **********

 FCN=   5496.602     FROM HESSE     STATUS=OK           421 CALLS     3873 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.575        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     19.450        62.787        .18189E-04   -1.4826    
   3  Prefactor     23.839        13.021        .32821E-05   -1.4731    
   4  Prefactor     .30960        36.775        .11986       -1.5597    
   5  Prefactor     .10000E-03    8.2626        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.2242        .25742E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          7.2279        6.7576        .59724E-05   -1.5170    
   8  Prefactor     8.4001        19.520        .55371E-05   -1.5128    
   9  Prefactor     7.7650        51.125        .57559E-05   -1.5151    
  10  Prefactor     .10000E-03    10.118        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.5851        4.1190        .53952E-05   -1.5280    
  12  Prefactor     229.01        161.45        .26731E-04   -1.2670    
  13  norm          .10167E-03    6.3050        .64651E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.6827        .18698E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.7032        242.80        .99560E-05   -1.5379    
  16  Prefactor     .10000E-03    10.853        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    28.045        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.5549        .30866E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    41.691        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.1195        .35471E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     16.081        38.596        .39969E-05   -1.4906    
  22  Prefactor     .10000E-03    6.1921        .36011E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    2.6452        .23552E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .80534        .24936        .62014E-04   -.99871    
  25  Prefactor     1.2485        .20218        .41632E-04   -.84851    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.49194e-09
Minuit parameter uncertainties:
  1  0.00015383
  2  63.0011
  3  13.0221
  4  6.75164
  5  4.05254e-05
  6  4.04151e-05
  7  6.7583
  8  19.5347
  9  39.8984
  10  0.00016722
  11  4.11921
  12  161.766
  13  0.00649077
  14  1.77749e-05
  15  51.4539
  16  5.33534e-05
  17  8.58963e-05
  18  9.21512e-06
  19  0.000292106
  20  4.97535e-05
  21  38.6562
  22  1.85488e-05
  23  9.48904e-07
  24  0.249719
  25  0.202307
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  2.290e+02  1.618e+02  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:  1.249e+00  2.023e-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:  8.053e-01  2.497e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.85
Ra Dec: 332.474 -50.470
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 8.05e-08 +/- 5.68e-08
Energy Flux (Fixed Index): 2.74e-05 +/- 1.94e-05

TS (Fixed Index): 2.85
Ra Dec: 332.474 -50.470
Photon Flux Upper Limit: 1.87e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.44e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/211945/likelihoodResults_637718401_637977601_4FGL_J2209.8-5028_daily_bin1537.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) = 5496.06663195
delta logL = 0.535479531933

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5496.04976774
delta logL = 0.552343748688

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    72.863       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1262       1.0000          .0000       10.000    
     3 'Normalizat'    .74849       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2822       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=   5496.050     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      310 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     72.806        926.29        .47033E-04   -.56030E-04
   2  Index         3.1268        3.1819        .35771E-02   -.92047E-04
   3  Normalizat    .74644        .28303        .32079E-03    .59104E-03
   4  Prefactor     1.2840        .23394        .20566E-03    .44712E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 72.8057
  Index      = 3.12681
  Normalizat = 0.746435
  Prefactor  = 1.28397
 **********
 **   18 **HESSE 
 **********

 FCN=   5496.050     FROM HESSE     STATUS=OK            25 CALLS      335 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     72.806        138.87        .94066E-05   -1.3999    
   2  Index         3.1268        .91627        .14308E-03   -.38401    
   3  Normalizat    .74644        .25117        .64159E-04   -1.0209    
   4  Prefactor     1.2840        .20219        .41132E-04   -.83785    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69582e-09
Minuit parameter uncertainties:
  1  139.5
  2  0.922344
  3  0.251562
  4  0.202317
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/211945': 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) = 5496.04972861
delta logL = 0.552382870448

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  7.281e+01  1.395e+02  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  3.127e+00  9.223e-01  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:  1.284e+00  2.023e-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:  7.464e-01  2.516e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.11
Ra Dec: 332.474 -50.470
Photon Index (Free Index): 3.13 +/- 0.92
Photon Flux (Free Index): 1.18e-07 +/- 7.04e-08
Energy Flux (Free Index): 2.23e-05 +/- 1.40e-05

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/211945/cmap_HighResolution_637718401_637977601_4FGL_J2209.8-5028_daily_bin1537.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.44e-02', comment='SUCCESS', photon_flux='8.05e-08', energy_flux2='2.23e-05', photon_flux_error='5.68e-08', dlogl='5.52e-01', energy_flux='2.74e-05', photon_flux2='1.18e-07', job_status='DONE', time_completed='2021-09-28 06:43:36.450841', photon_index_error2='0.92', photon_index2='3.13', ts='2.85', fit_tolerance='1e-08', GAL='1.25', photon_index_error='0.00', photon_flux_upper_limit='1.87e-07', energy_flux_error2='1.40e-05', EG='0.81', time_epoch_completed='1632836616.45', return_code='0', job_id='211945', GAL2='1.28', EG2='0.75', return_code2='0', energy_flux_error='1.94e-05', photon_flux_error2='7.04e-08', ts2='4.11', photon_index='2.37' WHERE bin_id='1537' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:43:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 211945: <4FGL_J2209.8-5028_daily_bin1537> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin1537 332.474 -50.4702 637718401 637977601 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 :                                   711.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             344.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   775 sec.
    Turnaround time :                            778 sec.

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

