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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin1132
RA = 332.474, Dec = -50.4702
tmin = 532742401, tmax = 533001601
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='210780', job_status='RUN', time_executed='2021-09-28 06:26:39.564575', time_epoch_executed='1632835599.56' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='1132'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/210780

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/210780/ft1_4FGL_J2209.8-5028_daily_bin1132.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/210780/ft2_4FGL_J2209.8-5028_daily_bin1132.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/210780/ft1_4FGL_J2209.8-5028_daily_bin1132.fits outfile=/scratch/kocevski/210780/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1132.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=532742401.0 tmax=533001601.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.68
user 3.43
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/210780/ft2_4FGL_J2209.8-5028_daily_bin1132.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/210780/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1132.fits evtable="EVENTS" outfile="/scratch/kocevski/210780/ft1_filtered_4FGL_J2209.8-5028_daily_bin1132.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.48
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/210780/ft1_filtered_4FGL_J2209.8-5028_daily_bin1132.fits" evtable="EVENTS" scfile=/scratch/kocevski/210780/ft2_4FGL_J2209.8-5028_daily_bin1132.fits sctable="SC_DATA" outfile=/scratch/kocevski/210780/ltcube_532742401_533001601_4FGL_J2209.8-5028_daily_bin1132.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/210780/ft2_4FGL_J2209.8-5028_daily_bin1132.fits
.....................!
real 12.09
user 11.74
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/210780/ft1_filtered_4FGL_J2209.8-5028_daily_bin1132.fits evtable="EVENTS" scfile=/scratch/kocevski/210780/ft2_4FGL_J2209.8-5028_daily_bin1132.fits sctable="SC_DATA" expcube=/scratch/kocevski/210780/ltcube_532742401_533001601_4FGL_J2209.8-5028_daily_bin1132.fits outfile=/scratch/kocevski/210780/expmap_532742401_533001601_4FGL_J2209.8-5028_daily_bin1132.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/210780/ltcube_532742401_533001601_4FGL_J2209.8-5028_daily_bin1132.fits
.....................!
real 190.22
user 184.97
sys 4.93

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/210780/ft1_filtered_4FGL_J2209.8-5028_daily_bin1132.fits scfile=/scratch/kocevski/210780/ft2_4FGL_J2209.8-5028_daily_bin1132.fits outfile=/scratch/kocevski/210780/cmap_532742401_533001601_4FGL_J2209.8-5028_daily_bin1132.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.52
user 0.36
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/210780/ft1_filtered_4FGL_J2209.8-5028_daily_bin1132.fits evtable="EVENTS" scfile=/scratch/kocevski/210780/ft2_4FGL_J2209.8-5028_daily_bin1132.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/210780/Model_4FGL_J2209.8-5028_daily_bin1132.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/210780/ft1_filtered_4FGL_J2209.8-5028_daily_bin1132.fits....................!
real 41.76
user 40.50
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10171E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10356E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.3693       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.3556       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.8430       1.0000         .10000E-03   10000.    
     7 'norm      '    52.314       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.142       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10373E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.1730       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10306E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.6577       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.8066       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.5042       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.6290       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .12427E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10422E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2766       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .61067       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=   4763.948     FROM MIGRAD    STATUS=CONVERGED    585 CALLS     2465 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.862        .32719E-05** at limit **
   2  Prefactor     .10000E-03    26.977        .18994E-04** at limit **
   3  Prefactor     3.3724        8.8313        .58076E-06   -.12401E-03
   4  Prefactor     .10000E-03    23.827       -.24654E-04** at limit **
   5  Prefactor     1.1288        220.09       -.87615E-04   -.15405E-04
   6  Prefactor     5.8425        4.7876       -.65587E-06   -.23418E-02
   7  norm          52.307        11.326       -.79839E-07    .37442E-03
   8  Prefactor     11.157        17.855       -.14926E-05    .16905E-04
   9  Prefactor     .10000E-03    11.759       -.18206E-05** at limit **
  10  Prefactor     .10000E-03    2.8563       -.22578E-06** at limit **
  11  Prefactor     1.1708        3.3566       -.60796E-06   -.57389E-03
  12  Prefactor     .10000E-03    73.652        .60039E-04** at limit **
  13  norm          3.6580        6.2510       -.12276E-05   -.16790E-03
  14  Prefactor     8.8019        5.4502       -.71925E-06   -.10254E-03
  15  Prefactor     .10000E-03    26.017        .10263E-04** at limit **
  16  Prefactor     .10000E-03    1.5329        .72956E-07** at limit **
  17  Prefactor     5.5043        19.739       -.52395E-05   -.32020E-05
  18  Prefactor     .10000E-03    8.2449        .27633E-06** at limit **
  19  Prefactor     .10000E-03    31.870        .16852E-04** at limit **
  20  Prefactor     5.6300        10.229       -.21498E-06   -.10952E-03
  21  Prefactor     .10000E-03    44.020       -.52013E-04** at limit **
  22  Prefactor     .10000E-03    4.1522       -.97456E-07** at limit **
  23  norm          .10000E-03    2.5749       -.22244E-06** at limit **
  24  Normalizat    1.2770        .20843        .36698E-05    .49036E-03
  25  Prefactor     .61039        .15358        .16532E-05    .59542E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.37238
  Prefactor  = 0.0001
  Prefactor  = 1.12881
  Prefactor  = 5.84246
  norm       = 52.3066
  Prefactor  = 11.1574
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.17078
  Prefactor  = 0.0001
  norm       = 3.65797
  Prefactor  = 8.8019
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.50429
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.63004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.27696
  Prefactor  = 0.610392
 **********
 **   18 **HESSE 
 **********

 FCN=   4763.948     FROM HESSE     STATUS=OK           421 CALLS     2886 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    27.008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.3724        8.7996        .22046E-03   -1.5341    
   4  Prefactor     .10000E-03    23.800        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.1288        227.99        .37543E-02   -1.5495    
   6  Prefactor     5.8425        4.8078        .65547E-03   -1.5224    
   7  norm          52.307        11.314        .55451E-04   -1.4260    
   8  Prefactor     11.157        17.847        .12002E-03   -1.5040    
   9  Prefactor     .10000E-03    11.765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.8618        .11391E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.1708        3.3307        .20365E-03   -1.5492    
  12  Prefactor     .10000E-03    73.315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.6580        6.2403        .21121E-03   -1.5325    
  14  Prefactor     8.8019        5.4845        .11996E-03   -1.5115    
  15  Prefactor     .10000E-03    26.019        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.5354        .83445E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.5043        19.833        .17126E-03   -1.5239    
  18  Prefactor     .10000E-03    8.2948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    31.843        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.6300        10.243        .16932E-03   -1.5233    
  21  Prefactor     .10000E-03    43.911        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.1542        .13736E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    2.5751        .10817E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2770        .24416        .23150E-03   -.84257    
  25  Prefactor     .61039        .17839        .24879E-03   -1.0715    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.81249e-09
Minuit parameter uncertainties:
  1  8.69895e-06
  2  0.000151726
  3  8.80296
  4  2.22247e-05
  5  32.2086
  6  4.80811
  7  11.3149
  8  17.8554
  9  5.7554e-06
  10  1.69635e-06
  11  3.33118
  12  8.18229e-05
  13  6.24137
  14  5.48484
  15  1.47731e-05
  16  1.53248e-07
  17  19.8569
  18  8.90142e-06
  19  8.68835e-07
  20  10.2463
  21  3.70554e-05
  22  4.33552e-06
  23  7.12246e-07
  24  0.244377
  25  0.17856
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  8.182e-05  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:  6.104e-01  1.786e-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.277e+00  2.444e-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: 7.28e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.62e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/210780/likelihoodResults_532742401_533001601_4FGL_J2209.8-5028_daily_bin1132.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): 102
logL (Free Index) = 4763.94837945
delta logL = -6.48771438136e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4763.94831553
delta logL = -9.55403265834e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14760E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6275       1.0000          .0000       10.000    
     3 'Normalizat'    1.2770       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .61039       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=   4763.948     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      282 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10732E-03    26.842        .18142E-01** at limit **
   2  Index         2.5060        6.1757        .50000        .78515E-05
   3  Normalizat    1.2770        .35097E-02    .23150E-03   -.11000E-04
   4  Prefactor     .61039        .27158E-02    .24879E-03   -.14622E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010732
  Index      = 2.50603
  Normalizat = 1.27697
  Prefactor  = 0.610389
 **********
 **   18 **HESSE 
 **********

 FCN=   4763.948     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      311 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10732E-03    190.01        .36285E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5060        6.0299        .50000       -.52221    
   3  Normalizat    1.2770        .93686E-02    .92601E-05   -.84257    
   4  Prefactor     .61039        .72497E-02    .99517E-05   -1.0715    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.49751e-10
Minuit parameter uncertainties:
  1  0.0748239
  2  356.674
  3  0.00936864
  4  0.00724968
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/210780': 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): 102
logL (Free Index) = 4763.94831483
delta logL = -2.60430169874e-07

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.073e-04  7.482e-02  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.506e+00  3.567e+02  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:  6.104e-01  7.250e-03  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.277e+00  9.369e-03  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/210780/cmap_HighResolution_532742401_533001601_4FGL_J2209.8-5028_daily_bin1132.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.62e-03', job_status='DONE', photon_flux_upper_limit='7.28e-08', time_completed='2021-09-28 06:37:37.809102', job_id='210780', GAL2='0.61', fit_tolerance='1e-08', EG2='1.28', EG='1.28', time_epoch_completed='1632836257.81', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.61', dlogl='-2.60e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1132' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:37:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 210780: <4FGL_J2209.8-5028_daily_bin1132> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin1132 332.474 -50.4702 532742401 533001601 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 :                                   598.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             304.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   715 sec.
    Turnaround time :                            717 sec.

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

