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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin1057
RA = 332.474, Dec = -50.4702
tmin = 513302401, tmax = 513561601
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='210667', job_status='RUN', time_executed='2021-09-28 06:26:08.675602', time_epoch_executed='1632835568.68' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='1057'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/210667

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/210667/ft1_4FGL_J2209.8-5028_daily_bin1057.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/210667/ft2_4FGL_J2209.8-5028_daily_bin1057.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/210667/ft1_4FGL_J2209.8-5028_daily_bin1057.fits outfile=/scratch/kocevski/210667/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1057.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=513302401.0 tmax=513561601.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 5.75
user 5.31
sys 0.32

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/210667/ft2_4FGL_J2209.8-5028_daily_bin1057.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/210667/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1057.fits evtable="EVENTS" outfile="/scratch/kocevski/210667/ft1_filtered_4FGL_J2209.8-5028_daily_bin1057.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.52
user 0.36
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/210667/ft1_filtered_4FGL_J2209.8-5028_daily_bin1057.fits" evtable="EVENTS" scfile=/scratch/kocevski/210667/ft2_4FGL_J2209.8-5028_daily_bin1057.fits sctable="SC_DATA" outfile=/scratch/kocevski/210667/ltcube_513302401_513561601_4FGL_J2209.8-5028_daily_bin1057.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/210667/ft2_4FGL_J2209.8-5028_daily_bin1057.fits
.....................!
real 16.76
user 16.28
sys 0.41

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/210667/ft1_filtered_4FGL_J2209.8-5028_daily_bin1057.fits evtable="EVENTS" scfile=/scratch/kocevski/210667/ft2_4FGL_J2209.8-5028_daily_bin1057.fits sctable="SC_DATA" expcube=/scratch/kocevski/210667/ltcube_513302401_513561601_4FGL_J2209.8-5028_daily_bin1057.fits outfile=/scratch/kocevski/210667/expmap_513302401_513561601_4FGL_J2209.8-5028_daily_bin1057.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/210667/ltcube_513302401_513561601_4FGL_J2209.8-5028_daily_bin1057.fits
.....................!
real 191.87
user 187.15
sys 4.36

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/210667/ft1_filtered_4FGL_J2209.8-5028_daily_bin1057.fits scfile=/scratch/kocevski/210667/ft2_4FGL_J2209.8-5028_daily_bin1057.fits outfile=/scratch/kocevski/210667/cmap_513302401_513561601_4FGL_J2209.8-5028_daily_bin1057.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.56
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/210667/ft1_filtered_4FGL_J2209.8-5028_daily_bin1057.fits scfile=/scratch/kocevski/210667/ft2_4FGL_J2209.8-5028_daily_bin1057.fits outfile=/scratch/kocevski/210667/cmap_HighResolution_513302401_513561601_4FGL_J2209.8-5028_daily_bin1057.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.56
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/210667/ft1_filtered_4FGL_J2209.8-5028_daily_bin1057.fits evtable="EVENTS" scfile=/scratch/kocevski/210667/ft2_4FGL_J2209.8-5028_daily_bin1057.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/210667/Model_4FGL_J2209.8-5028_daily_bin1057.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/210667/ft1_filtered_4FGL_J2209.8-5028_daily_bin1057.fits.....................!
real 41.62
user 40.18
sys 1.33

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.881       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.3054       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.6498       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12707E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.8539       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10178E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    11.326       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    111.34       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10592E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    20.678       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12257E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.8664       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .19167E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.1219       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12585E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12317E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    4.3705       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .67613       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1365       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=   4900.549     FROM MIGRAD    STATUS=CONVERGED   1073 CALLS     4433 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.889        25.841        .97480E-04    .10135E-03
   2  Prefactor     2.2624        181.04        .27025E-03    .95492E-05
   3  Prefactor     6.6567        9.1985        .15561E-03    .47648E-03
   4  Prefactor     .10298E-03    51.106        .10828    ** at limit **
   5  Prefactor     4.8567        18.318        .18259E-03    .14240E-03
   6  Prefactor     .10000E-03    6.8357        .34986E-03** at limit **
   7  norm          11.331        7.4565        .11904E-03    .16584E-02
   8  Prefactor     .10000E-03    6.3957        .17279E-02** at limit **
   9  Prefactor     111.38        52.942        .19061E-03   -.63700E-04
  10  Prefactor     .10000E-03    19.150        .36285E-03** at limit **
  11  Prefactor     20.681        6.5765        .88082E-04   -.31441E-03
  12  Prefactor     .10000E-03    44.353        .18142E-02** at limit **
  13  norm          .10000E-03    2.6724        .11172E-02** at limit **
  14  Prefactor     1.8654        3.9755        .19156E-03    .23597E-03
  15  Prefactor     .10000E-03    61.062        .18142E-02** at limit **
  16  Prefactor     .10000E-03    2.2279        .10187E-02** at limit **
  17  Prefactor     .10201E-03    44.118        .10032    ** at limit **
  18  Prefactor     4.1085        11.604        .19855E-03   -.15087E-03
  19  Prefactor     .10000E-03    37.361        .18142E-02** at limit **
  20  Prefactor     .10000E-03    39.856        .36817E-02** at limit **
  21  Prefactor     .10000E-03    58.526        .18142E-02** at limit **
  22  Prefactor     .10000E-03    3.9659        .13613E-02** at limit **
  23  norm          4.3703        6.2796        .19266E-03    .15224E-04
  24  Normalizat    .67608        .26539        .30981E-03    .21720E-03
  25  Prefactor     1.1366        .20519        .19833E-03    .61855E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.8885
  Prefactor  = 2.26245
  Prefactor  = 6.65674
  Prefactor  = 0.000102985
  Prefactor  = 4.85674
  Prefactor  = 0.000100001
  norm       = 11.3315
  Prefactor  = 0.0001
  Prefactor  = 111.381
  Prefactor  = 0.000100002
  Prefactor  = 20.6809
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.86535
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.00010201
  Prefactor  = 4.10847
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.37034
  Normalizat = 0.676084
  Prefactor  = 1.13663
 **********
 **   18 **HESSE 
 **********

 FCN=   4900.549     FROM HESSE     STATUS=OK           421 CALLS     4854 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.889        25.843        .38992E-05   -1.4886    
   2  Prefactor     2.2624        180.89        .10810E-04   -1.5407    
   3  Prefactor     6.6567        9.1982        .62245E-05   -1.5192    
   4  Prefactor     .10298E-03    47.135        .11375       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.8567        18.319        .73034E-05   -1.5267    
   6  Prefactor     .10000E-03    6.8361        .69972E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          11.331        7.4452        .23808E-04   -1.5035    
   8  Prefactor     .10000E-03    6.3960        .34559E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     111.38        52.941        .76243E-05   -1.3593    
  10  Prefactor     .10000E-03    19.150        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     20.681        6.5765        .35233E-05   -1.4798    
  12  Prefactor     .10000E-03    44.353        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.6724        .22345E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.8654        3.9750        .76623E-05   -1.5435    
  15  Prefactor     .10000E-03    61.070        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.2280        .20374E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10201E-03    41.088        .10456       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.1085        11.582        .79421E-05   -1.5303    
  19  Prefactor     .10000E-03    37.361        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    40.642        .73633E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    58.540        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.9660        .27227E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          4.3703        6.2795        .77064E-05   -1.5290    
  24  Normalizat    .67608        .26554        .12393E-04   -1.0484    
  25  Prefactor     1.1366        .20535        .39667E-04   -.88304    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.20278e-09
Minuit parameter uncertainties:
  1  25.8602
  2  40.5863
  3  9.20014
  4  0.0237405
  5  18.3401
  6  0.000142824
  7  7.44584
  8  1.66985e-05
  9  52.964
  10  0.000345087
  11  6.57669
  12  6.04786e-05
  13  1.83226e-06
  14  3.9756
  15  0.000392445
  16  1.72972e-06
  17  0.018186
  18  11.588
  19  4.92413e-05
  20  0.000111976
  21  6.77999e-05
  22  9.6188e-07
  23  6.28048
  24  0.266044
  25  0.205495
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  6.048e-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:  1.137e+00  2.055e-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:  6.761e-01  2.660e-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.32e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.64e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/210667/likelihoodResults_513302401_513561601_4FGL_J2209.8-5028_daily_bin1057.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) = 4900.54959827
delta logL = -0.000107334312816

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4900.54949096
delta logL = -2.27546479437e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10354E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3081       1.0000          .0000       10.000    
     3 'Normalizat'    .67609       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1366       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=   4900.549     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      230 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    6172.4        .90712E-02** at limit **
   2  Index         2.3018        6.0352        .50000        .11865E-05
   3  Normalizat    .67609        .40916E-01    .70004E-01    .16178E-03
   4  Prefactor     1.1366        .33381E-01    .36336E-01    .39691E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100007
  Index      = 2.30183
  Normalizat = 0.676086
  Prefactor  = 1.13663
 **********
 **   18 **HESSE 
 **********

 FCN=   4900.549     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      261 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    8084.0        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3018        6.1509        .50000       -.57000    
   3  Normalizat    .67609        .99809E-01    .30981E-03   -1.0484    
   4  Prefactor     1.1366        .81594E-01    .19833E-03   -.88304    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.2496e-08
Minuit parameter uncertainties:
  1  0.0148194
  2  57.0851
  3  0.0998354
  4  0.0816027
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/210667': 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) = 4900.54949092
delta logL = 1.87619662029e-08

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  1.482e-02  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.302e+00  5.709e+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.137e+00  8.160e-02  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:  6.761e-01  9.984e-02  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/210667/cmap_HighResolution_513302401_513561601_4FGL_J2209.8-5028_daily_bin1057.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.64e-03', job_status='DONE', photon_flux_upper_limit='7.32e-08', time_completed='2021-09-28 06:39:19.699670', job_id='210667', GAL2='1.14', fit_tolerance='1e-08', EG2='0.68', EG='0.68', time_epoch_completed='1632836359.7', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='1.88e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1057' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:39:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 210667: <4FGL_J2209.8-5028_daily_bin1057> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin1057> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 06:25:32 2021
Job was executed on host(s) <bullet0270>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:25:35 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:35 2021
Terminated at Tue Sep 28 06:39:20 2021
Results reported at Tue Sep 28 06:39:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin1057 332.474 -50.4702 513302401 513561601 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 :                                   766.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             321.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   825 sec.
    Turnaround time :                            828 sec.

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

