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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin1606
RA = 332.474, Dec = -50.4702
tmin = 655603201, tmax = 655862401
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='482804', job_status='RUN', time_executed='2021-12-08 08:27:24.623171', time_epoch_executed='1638980844.62' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='1606'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/482804

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/482804/ft1_4FGL_J2209.8-5028_daily_bin1606.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/482804/ft2_4FGL_J2209.8-5028_daily_bin1606.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/482804/ft1_4FGL_J2209.8-5028_daily_bin1606.fits outfile=/scratch/kocevski/482804/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1606.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=655603201.0 tmax=655862401.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 4.33
user 4.09
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/482804/ft1_filtered_4FGL_J2209.8-5028_daily_bin1606.fits" evtable="EVENTS" scfile=/scratch/kocevski/482804/ft2_4FGL_J2209.8-5028_daily_bin1606.fits sctable="SC_DATA" outfile=/scratch/kocevski/482804/ltcube_655603201_655862401_4FGL_J2209.8-5028_daily_bin1606.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/482804/ft2_4FGL_J2209.8-5028_daily_bin1606.fits
.....................!
real 13.69
user 13.33
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/482804/ft1_filtered_4FGL_J2209.8-5028_daily_bin1606.fits evtable="EVENTS" scfile=/scratch/kocevski/482804/ft2_4FGL_J2209.8-5028_daily_bin1606.fits sctable="SC_DATA" expcube=/scratch/kocevski/482804/ltcube_655603201_655862401_4FGL_J2209.8-5028_daily_bin1606.fits outfile=/scratch/kocevski/482804/expmap_655603201_655862401_4FGL_J2209.8-5028_daily_bin1606.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/482804/ltcube_655603201_655862401_4FGL_J2209.8-5028_daily_bin1606.fits
.....................!
real 190.61
user 186.02
sys 3.92

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/482804/ft1_filtered_4FGL_J2209.8-5028_daily_bin1606.fits scfile=/scratch/kocevski/482804/ft2_4FGL_J2209.8-5028_daily_bin1606.fits outfile=/scratch/kocevski/482804/cmap_655603201_655862401_4FGL_J2209.8-5028_daily_bin1606.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.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/482804/ft1_filtered_4FGL_J2209.8-5028_daily_bin1606.fits scfile=/scratch/kocevski/482804/ft2_4FGL_J2209.8-5028_daily_bin1606.fits outfile=/scratch/kocevski/482804/cmap_HighResolution_655603201_655862401_4FGL_J2209.8-5028_daily_bin1606.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/482804/ft1_filtered_4FGL_J2209.8-5028_daily_bin1606.fits evtable="EVENTS" scfile=/scratch/kocevski/482804/ft2_4FGL_J2209.8-5028_daily_bin1606.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/482804/Model_4FGL_J2209.8-5028_daily_bin1606.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/482804/ft1_filtered_4FGL_J2209.8-5028_daily_bin1606.fits.....................!
real 44.73
user 43.34
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/482804/ft1_filtered_4FGL_J2209.8-5028_daily_bin1606.fits', '/scratch/kocevski/482804/ft2_4FGL_J2209.8-5028_daily_bin1606.fits', expMap='/scratch/kocevski/482804/expmap_655603201_655862401_4FGL_J2209.8-5028_daily_bin1606.fits', expCube='/scratch/kocevski/482804/ltcube_655603201_655862401_4FGL_J2209.8-5028_daily_bin1606.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/482804/Model_4FGL_J2209.8-5028_daily_bin1606.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/482804/ft1_filtered_4FGL_J2209.8-5028_daily_bin1606.fits
Spacecraft file(s): /scratch/kocevski/482804/ft2_4FGL_J2209.8-5028_daily_bin1606.fits
Exposure map: /scratch/kocevski/482804/expmap_655603201_655862401_4FGL_J2209.8-5028_daily_bin1606.fits
Exposure cube: /scratch/kocevski/482804/ltcube_655603201_655862401_4FGL_J2209.8-5028_daily_bin1606.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/482804/Model_4FGL_J2209.8-5028_daily_bin1606.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 5548.5574169

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.535       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.733       1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.967       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13168E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.1191       1.0000         .10000E-03   10000.    
     7 'norm      '    .34667E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.415       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.9625       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.5784       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10348E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.4158       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12131E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.4062       1.0000         .10000E-03   10000.    
    17 'Prefactor '    25.419       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10237E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.0317       1.0000         .10000E-03   10000.    
    23 'norm      '    5.0845       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .78804       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0433       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=   5548.509     FROM MIGRAD    STATUS=CONVERGED    611 CALLS     3022 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.532        25.018       -.27492E-06    .12786E-05
   2  Prefactor     .10000E-03    15.107        .60393E-07** at limit **
   3  Prefactor     15.734        10.133       -.33486E-07    .71404E-04
   4  Prefactor     21.981        33.242        .52132E-06    .72440E-04
   5  Prefactor     .10000E-03    130.14       -.17939E-05** at limit **
   6  Prefactor     6.1216        4.7479        .18390E-06    .72233E-04
   7  norm          .10000E-03    3.4978       -.52123E-06** at limit **
   8  Prefactor     .10000E-03    5.1484       -.28171E-07** at limit **
   9  Prefactor     13.207        94.524        .24369E-05   -.90788E-05
  10  Prefactor     1.9651        17.513       -.68165E-05   -.55047E-04
  11  Prefactor     3.5785        3.5126        .39904E-06    .67106E-04
  12  Prefactor     .10001E-03    204.67        .17383E-04** at limit **
  13  norm          .10000E-03    2.9007        .92269E-07** at limit **
  14  Prefactor     9.4134        6.1934        .10536E-05   -.20894E-04
  15  Prefactor     .10000E-03    294.76        .39174E-05** at limit **
  16  Prefactor     5.4045        5.4253       -.42204E-07    .29963E-04
  17  Prefactor     25.399        35.810       -.16085E-07    .23165E-04
  18  Prefactor     .10000E-03    11.378       -.15891E-07** at limit **
  19  Prefactor     .10000E-03    41.145        .43597E-06** at limit **
  20  Prefactor     .10000E-03    3.4749        .62926E-07** at limit **
  21  Prefactor     .10000E-03    33.028       -.20087E-06** at limit **
  22  Prefactor     7.0221        20.066       -.11458E-05   -.34124E-05
  23  norm          5.0842        5.2481       -.28579E-06   -.22098E-04
  24  Normalizat    .78817        .21203        .35510E-05    .24484E-04
  25  Prefactor     1.0435        .15146       -.15900E-05    .28603E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.5315
  Prefactor  = 0.0001
  Prefactor  = 15.7336
  Prefactor  = 21.9809
  Prefactor  = 0.0001
  Prefactor  = 6.12156
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 13.2073
  Prefactor  = 1.96513
  Prefactor  = 3.57852
  Prefactor  = 0.000100007
  norm       = 0.0001
  Prefactor  = 9.41338
  Prefactor  = 0.000100003
  Prefactor  = 5.40455
  Prefactor  = 25.3992
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.02209
  norm       = 5.0842
  Normalizat = 0.788173
  Prefactor  = 1.04346
 **********
 **   18 **HESSE 
 **********

 FCN=   5548.509     FROM HESSE     STATUS=OK           429 CALLS     3451 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.532        25.025        .93030E-04   -1.4847    
   2  Prefactor     .10000E-03    15.110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     15.734        10.124        .10098E-03   -1.4914    
   4  Prefactor     21.981        31.775        .85460E-04   -1.4770    
   5  Prefactor     .10000E-03    134.92        .36355E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.1216        4.7424        .13597E-03   -1.5213    
   7  norm          .10000E-03    13.195        .25467E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.1516        .16507E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     13.207        94.699        .10936E-03   -1.4981    
  10  Prefactor     1.9651        17.426        .29609E-03   -1.5428    
  11  Prefactor     3.5785        3.5057        .13198E-03   -1.5330    
  12  Prefactor     .10001E-03    209.60        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.9050        .12390E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.4134        6.2387        .65302E-03   -1.5094    
  15  Prefactor     .10000E-03    298.93        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.4045        5.4155        .16311E-03   -1.5243    
  17  Prefactor     25.399        36.166        .79454E-04   -1.4700    
  18  Prefactor     .10000E-03    11.515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    41.149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.4795        .13559E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    33.163        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     7.0221        20.131        .15128E-03   -1.5178    
  23  norm          5.0842        5.2510        .16890E-03   -1.5257    
  24  Normalizat    .78817        .24114        .29080E-03   -1.0051    
  25  Prefactor     1.0435        .17266        .20452E-03   -.91295    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.90859e-10
Minuit parameter uncertainties:
  1  25.039
  2  1.87263e-06
  3  10.1251
  4  31.7998
  5  0.000470418
  6  4.74267
  7  0.000262981
  8  2.30614e-06
  9  70.89
  10  11.708
  11  3.50593
  12  0.0025047
  13  4.30533e-07
  14  6.23917
  15  0.00176848
  16  5.41604
  17  36.1975
  18  2.09011e-05
  19  1.35958e-05
  20  8.09568e-06
  21  3.5231e-05
  22  20.15
  23  5.25149
  24  0.241471
  25  0.172751
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  2.505e-03  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.043e+00  1.728e-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.882e-01  2.415e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/482804/likelihoodResults_655603201_655862401_4FGL_J2209.8-5028_daily_bin1606.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) = 5548.50944817
delta logL = -2.25919357035e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5548.50944817
delta logL = -2.2591434572e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96363E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3719       1.0000          .0000       10.000    
     3 'Normalizat'    .78817       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0435       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.

 FCN=   5548.509     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      206 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    226.66        .90712E-02** at limit **
   2  Index         2.4310        6.2149        .50000       -.25686E-05
   3  Normalizat    .78818        .18069        .65728E-01    .58409E-04
   4  Prefactor     1.0435        .14522        .40309E-01   -.17725E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.43096
  Normalizat = 0.788178
  Prefactor  = 1.04345
 **********
 **   18 **HESSE 
 **********

 FCN=   5548.509     FROM HESSE     STATUS=OK            31 CALLS      237 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    274.18        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4310        6.2078        .50000       -.53962    
   3  Normalizat    .78818        .20542        .29079E-03   -1.0051    
   4  Prefactor     1.0435        .16536        .20452E-03   -.91295    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65458e-10
Minuit parameter uncertainties:
  1  0.000581891
  2  4.75976
  3  0.205623
  4  0.165439
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/482804': 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) = 5548.50942554
delta logL = 3.44680302078e-08

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  5.819e-04  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.431e+00  4.760e+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:  1.043e+00  1.654e-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.882e-01  2.056e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/482804/cmap_HighResolution_655603201_655862401_4FGL_J2209.8-5028_daily_bin1606.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.98e-03', job_status='DONE', photon_flux_upper_limit='9.06e-08', time_completed='2021-12-08 08:38:45.400241', job_id='482804', GAL2='1.04', fit_tolerance='1e-08', EG2='0.79', EG='0.79', time_epoch_completed='1638981525.4', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='3.45e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1606' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 08:38:45 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 482804: <4FGL_J2209.8-5028_daily_bin1606> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin1606> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Dec  8 08:25:18 2021
Job was executed on host(s) <bullet0238>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 08:25:50 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 08:25:50 2021
Terminated at Wed Dec  8 08:38:46 2021
Results reported at Wed Dec  8 08:38:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin1606 332.474 -50.4702 655603201 655862401 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 :                                   679.27 sec.
    Max Memory :                                 1033 MB
    Average Memory :                             297.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   775 sec.
    Turnaround time :                            808 sec.

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

