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


Performing analysis on: 4FGL_J2221.5-5225_daily_bin525
RA = 335.391, Dec = -52.4307
tmin = 375408001, tmax = 375667201
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='264704', job_status='RUN', time_executed='2021-09-28 09:29:13.718064', time_epoch_executed='1632846553.72' WHERE source_name='4FGL J2221.5-5225' and cadence='daily' and bin_id='525'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/264704

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/264704/ft1_4FGL_J2221.5-5225_daily_bin525.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/264704/ft2_4FGL_J2221.5-5225_daily_bin525.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/264704/ft1_4FGL_J2221.5-5225_daily_bin525.fits outfile=/scratch/kocevski/264704/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin525.fits ra=335.391 dec=-52.4307 rad=12.0 tmin=375408001.0 tmax=375667201.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.49
user 3.26
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/264704/ft2_4FGL_J2221.5-5225_daily_bin525.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/264704/ft2_4FGL_J2221.5-5225_daily_bin525.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/264704/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin525.fits evtable="EVENTS" outfile="/scratch/kocevski/264704/ft1_filtered_4FGL_J2221.5-5225_daily_bin525.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/264704/ft1_filtered_4FGL_J2221.5-5225_daily_bin525.fits" evtable="EVENTS" scfile=/scratch/kocevski/264704/ft2_4FGL_J2221.5-5225_daily_bin525.fits sctable="SC_DATA" outfile=/scratch/kocevski/264704/ltcube_375408001_375667201_4FGL_J2221.5-5225_daily_bin525.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/264704/ft2_4FGL_J2221.5-5225_daily_bin525.fits
.....................!
real 11.85
user 11.48
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/264704/ft1_filtered_4FGL_J2221.5-5225_daily_bin525.fits evtable="EVENTS" scfile=/scratch/kocevski/264704/ft2_4FGL_J2221.5-5225_daily_bin525.fits sctable="SC_DATA" expcube=/scratch/kocevski/264704/ltcube_375408001_375667201_4FGL_J2221.5-5225_daily_bin525.fits outfile=/scratch/kocevski/264704/expmap_375408001_375667201_4FGL_J2221.5-5225_daily_bin525.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/264704/ltcube_375408001_375667201_4FGL_J2221.5-5225_daily_bin525.fits
.....................!
real 191.76
user 186.27
sys 5.14

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 182 point sources and 0 extended sources

Setting source of interest to:
4FGL J2221.5-5225 @ 335.391 -52.4307

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/264704/ft1_filtered_4FGL_J2221.5-5225_daily_bin525.fits scfile=/scratch/kocevski/264704/ft2_4FGL_J2221.5-5225_daily_bin525.fits outfile=/scratch/kocevski/264704/cmap_375408001_375667201_4FGL_J2221.5-5225_daily_bin525.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=335.391 yref=-52.4307 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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/264704/ft1_filtered_4FGL_J2221.5-5225_daily_bin525.fits scfile=/scratch/kocevski/264704/ft2_4FGL_J2221.5-5225_daily_bin525.fits outfile=/scratch/kocevski/264704/cmap_HighResolution_375408001_375667201_4FGL_J2221.5-5225_daily_bin525.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=335.391 yref=-52.4307 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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/264704/ft1_filtered_4FGL_J2221.5-5225_daily_bin525.fits evtable="EVENTS" scfile=/scratch/kocevski/264704/ft2_4FGL_J2221.5-5225_daily_bin525.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/264704/Model_4FGL_J2221.5-5225_daily_bin525.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/264704/ft1_filtered_4FGL_J2221.5-5225_daily_bin525.fits.....................!
real 46.56
user 45.23
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/264704/ft1_filtered_4FGL_J2221.5-5225_daily_bin525.fits', '/scratch/kocevski/264704/ft2_4FGL_J2221.5-5225_daily_bin525.fits', expMap='/scratch/kocevski/264704/expmap_375408001_375667201_4FGL_J2221.5-5225_daily_bin525.fits', expCube='/scratch/kocevski/264704/ltcube_375408001_375667201_4FGL_J2221.5-5225_daily_bin525.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/264704/Model_4FGL_J2221.5-5225_daily_bin525.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2221.5-5225'

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  1.615e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
346        alpha:  1.609e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
347         beta:  1.036e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
348           Eb:  2.313e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/264704/ft1_filtered_4FGL_J2221.5-5225_daily_bin525.fits
Spacecraft file(s): /scratch/kocevski/264704/ft2_4FGL_J2221.5-5225_daily_bin525.fits
Exposure map: /scratch/kocevski/264704/expmap_375408001_375667201_4FGL_J2221.5-5225_daily_bin525.fits
Exposure cube: /scratch/kocevski/264704/ltcube_375408001_375667201_4FGL_J2221.5-5225_daily_bin525.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/264704/Model_4FGL_J2221.5-5225_daily_bin525.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) = 5959.91978117

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .30779E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.5230       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.1066       1.0000         .10000E-03   10000.    
     5 'Prefactor '    53.359       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.2000       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.4980       1.0000         .10000E-03   10000.    
     8 'Prefactor '    148.98       1.0000         .10000E-03   10000.    
     9 'norm      '    6.2449       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .41006       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10160E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10242E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    146.13       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    55.000       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    13.671       1.0000         .10000E-03   10000.    
    23 'norm      '    5.6343       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .80721       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0308       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5900E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5959.553     FROM MIGRAD    STATUS=CONVERGED    561 CALLS     2975 TOTAL
                     EDM=   .98E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    31.137       -.92834E-07** at limit **
   2  Prefactor     .10020E-03    5.6794        .13342E-05** at limit **
   3  Prefactor     6.5222        14.702       -.17650E-07    .29131E-05
   4  Prefactor     3.1070        4.3667        .14352E-05    .80395E-04
   5  Prefactor     53.295        46.680       -.17468E-05   -.91459E-05
   6  Prefactor     1.2218        21.264       -.13844E-04   -.47958E-04
   7  Prefactor     2.4972        3.2399        .73062E-06    .25124E-03
   8  Prefactor     148.84        126.39        .50771E-05    .50956E-04
   9  norm          6.2450        5.5771       -.68693E-08    .58947E-04
  10  Prefactor     .40991        2.6671       -.14715E-06   -.12987E-03
  11  Prefactor     .10000E-03    21.218        .72517E-06** at limit **
  12  Prefactor     .10000E-03    1.7889       -.91021E-07** at limit **
  13  Prefactor     .10000E-03    5.5573       -.27491E-06** at limit **
  14  Prefactor     .10001E-03    5.4081       -.16935E-05** at limit **
  15  Prefactor     146.18        102.90        .43351E-05    .14132E-03
  16  Prefactor     .10000E-03    2.8421       -.21178E-08** at limit **
  17  Prefactor     54.991        39.083       -.18554E-05    .49417E-05
  18  Prefactor     .10000E-03    6.0451        .34678E-06** at limit **
  19  norm          .10000E-03    3.8468        .54157E-07** at limit **
  20  norm          .10000E-03    2.5280       -.21979E-07** at limit **
  21  Prefactor     .10000E-03    2.4759       -.32290E-07** at limit **
  22  Prefactor     13.670        13.327       -.14831E-06    .72331E-05
  23  norm          5.6342        1.8398       -.10277E-06    .10875E-03
  24  Normalizat    .80728        .18903        .44990E-05    .11275E-03
  25  Prefactor     1.0308        .14996       -.99636E-06    .35123E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100196
  Prefactor  = 6.52223
  Prefactor  = 3.10698
  Prefactor  = 53.2954
  Prefactor  = 1.22183
  Prefactor  = 2.49723
  Prefactor  = 148.837
  norm       = 6.24499
  Prefactor  = 0.409913
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100014
  Prefactor  = 146.18
  Prefactor  = 0.0001
  Prefactor  = 54.9905
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.6702
  norm       = 5.63421
  Normalizat = 0.807284
  Prefactor  = 1.03077
 **********
 **   18 **HESSE 
 **********

 FCN=   5959.553     FROM HESSE     STATUS=OK           429 CALLS     3404 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    31.193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10020E-03    28.554        .35005E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.5222        14.691        .15713E-03   -1.5197    
   4  Prefactor     3.1070        4.3444        .17908E-03   -1.5355    
   5  Prefactor     53.295        46.530        .54908E-04   -1.4247    
   6  Prefactor     1.2218        21.361        .41445E-03   -1.5487    
   7  Prefactor     2.4972        3.2240        .15041E-03   -1.5392    
   8  Prefactor     148.84        126.45        .16509E-03   -1.3262    
   9  norm          6.2450        5.5786        .16064E-03   -1.5208    
  10  Prefactor     .40991        5.2541        .23673E-02   -1.5580    
  11  Prefactor     .10000E-03    21.234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.7987        .10081E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.5614        .17775E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    19.780        .34046E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     146.18        102.20        .16667E-03   -1.3284    
  16  Prefactor     .10000E-03    2.8460        .12710E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     54.991        39.063        .27044E-03   -1.4223    
  18  Prefactor     .10000E-03    6.0576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    3.8471        .14788E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.5304        .11987E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.4830        .11860E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     13.670        13.332        .10833E-03   -1.4968    
  23  norm          5.6342        1.8418        .57209E-04   -1.5233    
  24  Normalizat    .80728        .21504        .27143E-03   -.99799    
  25  Prefactor     1.0308        .17381        .20465E-03   -.91711    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.77088e-08
Minuit parameter uncertainties:
  1  6.4284e-05
  2  0.00472793
  3  14.6988
  4  4.34485
  5  46.562
  6  10.2214
  7  3.22426
  8  126.679
  9  5.57904
  10  2.93509
  11  2.50678e-06
  12  8.42683e-07
  13  8.00475e-06
  14  0.00105084
  15  102.325
  16  4.39755e-06
  17  39.0816
  18  3.32839e-06
  19  2.63009e-07
  20  5.63928e-07
  21  2.40567e-06
  22  13.3345
  23  1.84179
  24  0.215269
  25  0.17391
Done.

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

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  6.245e+00  5.579e+00  1.000e-04  1.000e+04 ( 1.000e-13)
346        alpha:  1.609e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
347         beta:  1.036e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
348           Eb:  2.313e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
587    Prefactor:  1.031e+00  1.739e-01  0.000e+00  1.000e+01 ( 1.000e+00)
588        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
589        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
586   Normalization:  8.073e-01  2.153e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.10
Ra Dec: 335.391 -52.431
Photon Index (Fixed Index): 1.61 +/- 0.00
Photon Flux (Fixed Index): 1.04e-08 +/- 9.31e-09
Energy Flux (Fixed Index): 2.11e-05 +/- 1.89e-05

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) = 5959.49784725
delta logL = 0.0552725067992

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5959.49766123
delta logL = 0.0554585204645

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.2111       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.3853       1.0000          .0000       5.0000    
     3 'Normalizat'    .80805       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0314       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5900E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5959.498     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      218 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.1806        270.52        .40269E-02   -.91296E-04
   2  alpha         1.3809        3.9708        .48116       -.36125E-06
   3  Normalizat    .80808        .14975        .43715E-01    .18818E-04
   4  Prefactor     1.0315        .93986E-01    .41147E-01    .34893E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 6.18064
  alpha      = 1.38088
  Normalizat = 0.808081
  Prefactor  = 1.03149
 **********
 **   18 **HESSE 
 **********

 FCN=   5959.498     FROM HESSE     STATUS=OK            33 CALLS      251 TOTAL
                     EDM=   .96E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.1806        5.7405        .16108E-03   -1.5211    
   2  alpha         1.3809        .67283        .18014E-01   -.46413    
   3  Normalizat    .80808        .20265        .27133E-03   -.99770    
   4  Prefactor     1.0315        .17181        .20461E-03   -.91687    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.60914e-15
Minuit parameter uncertainties:
  1  5.74105
  2  0.683431
  3  0.202837
  4  0.171901
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/264704': 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) = 5959.4976322
delta logL = 0.0554875543949

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  6.181e+00  5.741e+00  1.000e-04  1.000e+04 ( 1.000e-13)
346        alpha:  1.381e+00  6.834e-01  0.000e+00  5.000e+00 ( 1.000e+00)
347         beta:  1.036e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
348           Eb:  2.313e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
587    Prefactor:  1.031e+00  1.719e-01  0.000e+00  1.000e+01 ( 1.000e+00)
588        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
589        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
586   Normalization:  8.081e-01  2.028e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.22
Ra Dec: 335.391 -52.431
Photon Index (Free Index): 1.38 +/- 0.68
Photon Flux (Free Index): 8.02e-09 +/- 9.50e-09
Energy Flux (Free Index): 2.92e-05 +/- 3.99e-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/264704/cmap_HighResolution_375408001_375667201_4FGL_J2221.5-5225_daily_bin525.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.04e-08', energy_flux2='2.92e-05', photon_flux_error='9.31e-09', dlogl='5.55e-02', energy_flux='2.11e-05', photon_flux2='8.02e-09', job_status='DONE', time_completed='2021-09-28 09:39:44.491993', photon_index_error2='0.68', photon_index2='1.38', ts='7.10', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='3.99e-05', EG='0.81', time_epoch_completed='1632847184.49', return_code='0', job_id='264704', GAL2='1.03', EG2='0.81', return_code2='0', energy_flux_error='1.89e-05', photon_flux_error2='9.50e-09', ts2='7.22', photon_index='1.61' WHERE bin_id='525' AND source_name='4FGL J2221.5-5225' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:39:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 264704: <4FGL_J2221.5-5225_daily_bin525> in cluster <slac> Done

Job <4FGL_J2221.5-5225_daily_bin525> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 09:25:52 2021
Job was executed on host(s) <bullet0117>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:25:54 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 09:25:54 2021
Terminated at Tue Sep 28 09:39:45 2021
Results reported at Tue Sep 28 09:39:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.5-5225_daily_bin525 335.391 -52.4307 375408001 375667201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2221.5-5225 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   631.00 sec.
    Max Memory :                                 1051 MB
    Average Memory :                             262.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   830 sec.
    Turnaround time :                            833 sec.

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

