/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 54 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 = 7359
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2221.5-5225_daily_bin274
RA = 335.391, Dec = -52.4307
tmin = 310348801, tmax = 310608001
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='264330', job_status='RUN', time_executed='2021-09-28 09:26:26.717561', time_epoch_executed='1632846386.72' WHERE source_name='4FGL J2221.5-5225' and cadence='daily' and bin_id='274'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/264330

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/264330/ft1_4FGL_J2221.5-5225_daily_bin274.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/264330/ft2_4FGL_J2221.5-5225_daily_bin274.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/264330/ft1_4FGL_J2221.5-5225_daily_bin274.fits outfile=/scratch/kocevski/264330/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin274.fits ra=335.391 dec=-52.4307 rad=12.0 tmin=310348801.0 tmax=310608001.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.47
user 3.23
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/264330/ft2_4FGL_J2221.5-5225_daily_bin274.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/264330/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin274.fits evtable="EVENTS" outfile="/scratch/kocevski/264330/ft1_filtered_4FGL_J2221.5-5225_daily_bin274.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/264330/ft1_filtered_4FGL_J2221.5-5225_daily_bin274.fits" evtable="EVENTS" scfile=/scratch/kocevski/264330/ft2_4FGL_J2221.5-5225_daily_bin274.fits sctable="SC_DATA" outfile=/scratch/kocevski/264330/ltcube_310348801_310608001_4FGL_J2221.5-5225_daily_bin274.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/264330/ft2_4FGL_J2221.5-5225_daily_bin274.fits
.....................!
real 11.87
user 11.54
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/264330/ft1_filtered_4FGL_J2221.5-5225_daily_bin274.fits evtable="EVENTS" scfile=/scratch/kocevski/264330/ft2_4FGL_J2221.5-5225_daily_bin274.fits sctable="SC_DATA" expcube=/scratch/kocevski/264330/ltcube_310348801_310608001_4FGL_J2221.5-5225_daily_bin274.fits outfile=/scratch/kocevski/264330/expmap_310348801_310608001_4FGL_J2221.5-5225_daily_bin274.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/264330/ltcube_310348801_310608001_4FGL_J2221.5-5225_daily_bin274.fits
.....................!
real 191.49
user 185.85
sys 5.26

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/264330/ft1_filtered_4FGL_J2221.5-5225_daily_bin274.fits scfile=/scratch/kocevski/264330/ft2_4FGL_J2221.5-5225_daily_bin274.fits outfile=/scratch/kocevski/264330/cmap_310348801_310608001_4FGL_J2221.5-5225_daily_bin274.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.52
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/264330/ft1_filtered_4FGL_J2221.5-5225_daily_bin274.fits scfile=/scratch/kocevski/264330/ft2_4FGL_J2221.5-5225_daily_bin274.fits outfile=/scratch/kocevski/264330/cmap_HighResolution_310348801_310608001_4FGL_J2221.5-5225_daily_bin274.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/264330/ft1_filtered_4FGL_J2221.5-5225_daily_bin274.fits evtable="EVENTS" scfile=/scratch/kocevski/264330/ft2_4FGL_J2221.5-5225_daily_bin274.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/264330/Model_4FGL_J2221.5-5225_daily_bin274.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/264330/ft1_filtered_4FGL_J2221.5-5225_daily_bin274.fits.....................!
real 57.91
user 56.54
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/264330/ft1_filtered_4FGL_J2221.5-5225_daily_bin274.fits', '/scratch/kocevski/264330/ft2_4FGL_J2221.5-5225_daily_bin274.fits', expMap='/scratch/kocevski/264330/expmap_310348801_310608001_4FGL_J2221.5-5225_daily_bin274.fits', expCube='/scratch/kocevski/264330/ltcube_310348801_310608001_4FGL_J2221.5-5225_daily_bin274.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/264330/Model_4FGL_J2221.5-5225_daily_bin274.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/264330/ft1_filtered_4FGL_J2221.5-5225_daily_bin274.fits
Spacecraft file(s): /scratch/kocevski/264330/ft2_4FGL_J2221.5-5225_daily_bin274.fits
Exposure map: /scratch/kocevski/264330/expmap_310348801_310608001_4FGL_J2221.5-5225_daily_bin274.fits
Exposure cube: /scratch/kocevski/264330/ltcube_310348801_310608001_4FGL_J2221.5-5225_daily_bin274.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/264330/Model_4FGL_J2221.5-5225_daily_bin274.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) = 7929.15807967

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.9894       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.2142       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.0876       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.8739       1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.354       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.5563       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.9442       1.0000         .10000E-03   10000.    
     8 'Prefactor '    34.436       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10534E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.253       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.6970       1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.347       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    87.662       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12464E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .60966       1.0000         .10000E-03   10000.    
    20 'norm      '    .32180E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.429       1.0000         .10000E-03   10000.    
    22 'Prefactor '    22.012       1.0000         .10000E-03   10000.    
    23 'norm      '    31.463       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .97375       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .98574       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=   7929.152     FROM MIGRAD    STATUS=CONVERGED    563 CALLS     2907 TOTAL
                     EDM=   .86E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.9922        61.973        .20846E-05    .75215E-06
   2  Prefactor     6.2142        6.8634        .36199E-05    .54689E-04
   3  Prefactor     5.0876        16.534        .45186E-06   -.69334E-05
   4  Prefactor     2.8741        3.7662        .25042E-06   -.13614E-04
   5  Prefactor     19.353        34.513       -.20303E-05   -.25819E-04
   6  Prefactor     9.5490        10.547        .24306E-06    .15982E-04
   7  Prefactor     3.9439        4.0318        .59052E-07   -.40525E-04
   8  Prefactor     34.579        106.44        .18023E-04    .10656E-03
   9  norm          .10000E-03    2.4768        .16164E-06** at limit **
  10  Prefactor     .10000E-03    1.3704        .40716E-07** at limit **
  11  Prefactor     16.251        19.324       -.22816E-06   -.83455E-05
  12  Prefactor     9.6961        5.6324        .85352E-06    .37019E-04
  13  Prefactor     13.339        24.846       -.21732E-05   -.45448E-04
  14  Prefactor     .10000E-03    5.0496       -.20480E-06** at limit **
  15  Prefactor     87.664        73.676        .41774E-06    .11618E-05
  16  Prefactor     .10001E-03    3.3471       -.64044E-06** at limit **
  17  Prefactor     .10000E-03    8.3023        .32883E-07** at limit **
  18  Prefactor     .10000E-03    14.430        .56843E-06** at limit **
  19  norm          .62825        7.1226        .21756E-05   -.60978E-03
  20  norm          .10000E-03    5.1874       -.30859E-06** at limit **
  21  Prefactor     11.428        9.2864        .11449E-06   -.21858E-04
  22  Prefactor     22.009        28.325       -.53591E-06   -.38934E-04
  23  norm          31.462        3.3759        .49793E-07    .11976E-03
  24  Normalizat    .97390        .18216       -.17380E-06   -.47696E-04
  25  Prefactor     .98561        .14596       -.14444E-05    .27447E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.99222
  Prefactor  = 6.21424
  Prefactor  = 5.08764
  Prefactor  = 2.87413
  Prefactor  = 19.353
  Prefactor  = 9.54899
  Prefactor  = 3.9439
  Prefactor  = 34.579
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.2506
  Prefactor  = 9.69609
  Prefactor  = 13.339
  Prefactor  = 0.0001
  Prefactor  = 87.6641
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.628253
  norm       = 0.000100003
  Prefactor  = 11.4284
  Prefactor  = 22.0088
  norm       = 31.4624
  Normalizat = 0.973898
  Prefactor  = 0.985606
 **********
 **   18 **HESSE 
 **********

 FCN=   7929.152     FROM HESSE     STATUS=OK           441 CALLS     3348 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.9922        61.828        .13368E-03   -1.5108    
   2  Prefactor     6.2142        6.9652        .80518E-03   -1.5209    
   3  Prefactor     5.0876        16.489        .17826E-03   -1.5257    
   4  Prefactor     2.8741        3.7510        .18726E-03   -1.5369    
   5  Prefactor     19.353        34.503        .91042E-04   -1.4828    
   6  Prefactor     9.5490        10.913        .64817E-03   -1.5090    
   7  Prefactor     3.9439        4.0195        .16973E-03   -1.5311    
   8  Prefactor     34.579        112.37        .68288E-04   -1.4531    
   9  norm          .10000E-03    2.4814        .13685E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.8864        .20194E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     16.251        19.308        .99347E-04   -1.4902    
  12  Prefactor     9.6961        5.6433        .64343E-03   -1.5085    
  13  Prefactor     13.339        24.956        .10964E-03   -1.4977    
  14  Prefactor     .10000E-03    5.0651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     87.664        73.658        .42911E-04   -1.3833    
  16  Prefactor     .10001E-03    12.091        .31388E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.3028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    14.519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .62825        39.762        .45183E-02   -1.5549    
  20  norm          .10000E-03    25.045        .39036E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     11.428        9.2817        .11850E-03   -1.5032    
  22  Prefactor     22.009        28.368        .85374E-04   -1.4769    
  23  norm          31.462        3.3487        .49989E-04   -1.4586    
  24  Normalizat    .97390        .21153        .28539E-03   -.93910    
  25  Prefactor     .98561        .17017        .23578E-03   -.93211    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.21621e-09
Minuit parameter uncertainties:
  1  47.2279
  2  6.96614
  3  16.5035
  4  3.75126
  5  34.5384
  6  10.9155
  7  4.01979
  8  113.063
  9  9.42964e-07
  10  2.00312e-05
  11  19.315
  12  5.6436
  13  24.9752
  14  1.07888e-05
  15  73.7348
  16  0.000716813
  17  2.17808e-06
  18  3.67699e-05
  19  10.0023
  20  0.000541351
  21  9.28288
  22  28.3857
  23  3.34874
  24  0.211714
  25  0.170267
Done.

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

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  1.000e-04  9.430e-07  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:  9.856e-01  1.703e-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:  9.739e-01  2.117e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 335.391 -52.431
Photon Flux Upper Limit: 2.16e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.38e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/264330/likelihoodResults_310348801_310608001_4FGL_J2221.5-5225_daily_bin274.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) = 7929.15359078
delta logL = -0.00188863241692

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7929.15170216
delta logL = -1.75332388608e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6131       1.0000          .0000       5.0000    
     3 'Normalizat'    .97389       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98559       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7929.152     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      229 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.0850        .13695E-02** at limit **
   2  alpha         1.7988        4.0985        .18011       -.41281E-07
   3  Normalizat    .97390        .19649        .28539E-03   -.17687E-04
   4  Prefactor     .98561        .16410        .23578E-03   -.20348E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.79885
  Normalizat = 0.973899
  Prefactor  = 0.985605
 **********
 **   18 **HESSE 
 **********

 FCN=   7929.152     FROM HESSE     STATUS=OK            23 CALLS      252 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.5216        .27389E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7988        3.5114        .72043E-02   -.28427    
   3  Normalizat    .97390        .19669        .11415E-04   -.93910    
   4  Prefactor     .98561        .16427        .94312E-05   -.93211    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.98775e-11
Minuit parameter uncertainties:
  1  8.45632e-06
  2  249.434
  3  0.196833
  4  0.164355
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/264330': 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) = 7929.15170182
delta logL = 3.19740138366e-07

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  1.000e-04  8.456e-06  1.000e-04  1.000e+04 ( 1.000e-13)
346        alpha:  1.799e+00  2.494e+02  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:  9.856e-01  1.644e-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:  9.739e-01  1.968e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 335.391 -52.431

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/264330/cmap_HighResolution_310348801_310608001_4FGL_J2221.5-5225_daily_bin274.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.38e-05', job_status='DONE', photon_flux_upper_limit='2.16e-08', time_completed='2021-09-28 09:40:26.037804', job_id='264330', GAL2='0.99', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1632847226.04', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='3.20e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.61' WHERE bin_id='274' AND source_name='4FGL J2221.5-5225' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:40:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0116>
Subject: Job 264330: <4FGL_J2221.5-5225_daily_bin274> in cluster <slac> Done

Job <4FGL_J2221.5-5225_daily_bin274> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 09:25:22 2021
Job was executed on host(s) <bullet0116>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:25:25 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:25 2021
Terminated at Tue Sep 28 09:40:26 2021
Results reported at Tue Sep 28 09:40:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.5-5225_daily_bin274 335.391 -52.4307 310348801 310608001 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 :                                   838.29 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             321.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   901 sec.
    Turnaround time :                            904 sec.

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

