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


Performing analysis on: 4FGL_J2221.5-5225_daily_bin377
RA = 335.391, Dec = -52.4307
tmin = 337046401, tmax = 337305601
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='264487', job_status='RUN', time_executed='2021-09-28 09:25:48.674149', time_epoch_executed='1632846348.67' WHERE source_name='4FGL J2221.5-5225' and cadence='daily' and bin_id='377'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/264487

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/264487/ft1_4FGL_J2221.5-5225_daily_bin377.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/264487/ft2_4FGL_J2221.5-5225_daily_bin377.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/264487/ft1_4FGL_J2221.5-5225_daily_bin377.fits outfile=/scratch/kocevski/264487/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin377.fits ra=335.391 dec=-52.4307 rad=12.0 tmin=337046401.0 tmax=337305601.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 11.02
user 10.66
sys 0.28

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/264487/ft2_4FGL_J2221.5-5225_daily_bin377.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/264487/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin377.fits evtable="EVENTS" outfile="/scratch/kocevski/264487/ft1_filtered_4FGL_J2221.5-5225_daily_bin377.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.54
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/264487/ft1_filtered_4FGL_J2221.5-5225_daily_bin377.fits" evtable="EVENTS" scfile=/scratch/kocevski/264487/ft2_4FGL_J2221.5-5225_daily_bin377.fits sctable="SC_DATA" outfile=/scratch/kocevski/264487/ltcube_337046401_337305601_4FGL_J2221.5-5225_daily_bin377.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/264487/ft2_4FGL_J2221.5-5225_daily_bin377.fits
.....................!
real 11.39
user 10.65
sys 0.70

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/264487/ft1_filtered_4FGL_J2221.5-5225_daily_bin377.fits evtable="EVENTS" scfile=/scratch/kocevski/264487/ft2_4FGL_J2221.5-5225_daily_bin377.fits sctable="SC_DATA" expcube=/scratch/kocevski/264487/ltcube_337046401_337305601_4FGL_J2221.5-5225_daily_bin377.fits outfile=/scratch/kocevski/264487/expmap_337046401_337305601_4FGL_J2221.5-5225_daily_bin377.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/264487/ltcube_337046401_337305601_4FGL_J2221.5-5225_daily_bin377.fits
.....................!
real 190.41
user 185.08
sys 4.97

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/264487/ft1_filtered_4FGL_J2221.5-5225_daily_bin377.fits scfile=/scratch/kocevski/264487/ft2_4FGL_J2221.5-5225_daily_bin377.fits outfile=/scratch/kocevski/264487/cmap_337046401_337305601_4FGL_J2221.5-5225_daily_bin377.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/264487/ft1_filtered_4FGL_J2221.5-5225_daily_bin377.fits scfile=/scratch/kocevski/264487/ft2_4FGL_J2221.5-5225_daily_bin377.fits outfile=/scratch/kocevski/264487/cmap_HighResolution_337046401_337305601_4FGL_J2221.5-5225_daily_bin377.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.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/264487/ft1_filtered_4FGL_J2221.5-5225_daily_bin377.fits evtable="EVENTS" scfile=/scratch/kocevski/264487/ft2_4FGL_J2221.5-5225_daily_bin377.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/264487/Model_4FGL_J2221.5-5225_daily_bin377.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/264487/ft1_filtered_4FGL_J2221.5-5225_daily_bin377.fits.....................!
real 30.08
user 28.76
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15421E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.265       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.4933       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .31306E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10234E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.7840       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.9515       1.0000         .10000E-03   10000.    
     8 'Prefactor '    46.696       1.0000         .10000E-03   10000.    
     9 'norm      '    .10145E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.5684       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.6196       1.0000         .10000E-03   10000.    
    13 'Prefactor '    17.621       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .30098E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .42757E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.7411       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.741       1.0000         .10000E-03   10000.    
    19 'norm      '    5.1131       1.0000         .10000E-03   10000.    
    20 'norm      '    6.8663       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    20.937       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .67980       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0566       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=   2953.626     FROM MIGRAD    STATUS=CONVERGED    599 CALLS     2962 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    340.82       -.26446E-04** at limit **
   2  Prefactor     14.269        12.801       -.50598E-07   -.19423E-04
   3  Prefactor     2.4424        139.61        .39964E-05    .21003E-04
   4  Prefactor     .10001E-03    4.2691        .22841E-06** at limit **
   5  Prefactor     .10000E-03    27.083        .36798E-07** at limit **
   6  Prefactor     5.7773        14.009       -.24293E-05   -.79343E-04
   7  Prefactor     3.9517        4.5406        .47841E-06   -.56402E-03
   8  Prefactor     46.771        156.21        .14557E-04    .99306E-05
   9  norm          .10000E-03    7.5674       -.21264E-07** at limit **
  10  Prefactor     1.5682        2.6117       -.24055E-08   -.54901E-04
  11  Prefactor     .10000E-03    16.865       -.91718E-07** at limit **
  12  Prefactor     7.6213        6.6896       -.42711E-07    .54373E-04
  13  Prefactor     17.839        34.473        .92407E-05    .19174E-03
  14  Prefactor     .10028E-03    18.780       -.72551E-05** at limit **
  15  Prefactor     .10000E-03    278.17        .47826E-05** at limit **
  16  Prefactor     1.7402        5.8472        .30949E-06   -.10715E-03
  17  Prefactor     .10000E-03    18.015       -.10561E-06** at limit **
  18  Prefactor     13.739        24.591        .74331E-07    .10156E-04
  19  norm          5.1157        14.246        .64501E-06   -.16462E-04
  20  norm          6.8656        6.9174       -.10105E-06    .28327E-04
  21  Prefactor     .10000E-03    3.2912       -.39593E-08** at limit **
  22  Prefactor     .10000E-03    13.740        .28517E-07** at limit **
  23  norm          20.938        4.0718       -.15739E-07    .74009E-04
  24  Normalizat    .67952        .26469        .25891E-05    .74852E-04
  25  Prefactor     1.0568        .22018       -.15107E-05    .25710E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 14.2687
  Prefactor  = 2.44243
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  Prefactor  = 5.77726
  Prefactor  = 3.95174
  Prefactor  = 46.7712
  norm       = 0.0001
  Prefactor  = 1.5682
  Prefactor  = 0.0001
  Prefactor  = 7.6213
  Prefactor  = 17.8387
  Prefactor  = 0.000100279
  Prefactor  = 0.0001
  Prefactor  = 1.74017
  Prefactor  = 0.0001
  Prefactor  = 13.7394
  norm       = 5.1157
  norm       = 6.86561
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 20.9384
  Normalizat = 0.679522
  Prefactor  = 1.05681
 **********
 **   18 **HESSE 
 **********

 FCN=   2953.626     FROM HESSE     STATUS=OK           429 CALLS     3391 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    343.46        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     14.269        12.766        .10605E-03   -1.4952    
   3  Prefactor     2.4424        138.90        .25885E-03   -1.5395    
   4  Prefactor     .10001E-03    20.491        .21330E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    27.147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.7773        13.956        .16700E-03   -1.5227    
   7  Prefactor     3.9517        4.5285        .59429E-03   -1.5310    
   8  Prefactor     46.771        156.03        .58676E-04   -1.4339    
   9  norm          .10000E-03    7.5859        .14602E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.5682        2.5765        .11011E-03   -1.5458    
  11  Prefactor     .10000E-03    16.866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.6213        6.6937        .12636E-03   -1.5156    
  13  Prefactor     17.839        35.433        .95413E-04   -1.4863    
  14  Prefactor     .10028E-03    116.43        .38625E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    278.84        .21233E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.7402        5.8031        .23442E-03   -1.5444    
  17  Prefactor     .10000E-03    18.017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     13.739        24.599        .10805E-03   -1.4966    
  19  norm          5.1157        14.223        .17780E-03   -1.5256    
  20  norm          6.8656        6.9208        .14000E-03   -1.5184    
  21  Prefactor     .10000E-03    3.2930        .96291E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    13.750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          20.938        4.0777        .44954E-04   -1.4792    
  24  Normalizat    .67952        .30686        .29623E-03   -1.0471    
  25  Prefactor     1.0568        .25638        .20794E-03   -.90859    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.47463e-09
Minuit parameter uncertainties:
  1  4.64841e-05
  2  12.7681
  3  36.9277
  4  0.000948487
  5  4.12065e-06
  6  13.9637
  7  4.52885
  8  157.427
  9  1.28659e-05
  10  2.57672
  11  1.50896e-06
  12  6.69437
  13  35.4748
  14  0.0114267
  15  0.000191871
  16  5.80501
  17  2.43714e-06
  18  24.6169
  19  14.2321
  20  6.92157
  21  1.38903e-06
  22  6.34954e-06
  23  4.07774
  24  0.307638
  25  0.256683
Done.

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

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  1.000e-04  1.287e-05  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.057e+00  2.567e-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:  6.795e-01  3.076e-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: 5.38e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.09e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/264487/likelihoodResults_337046401_337305601_4FGL_J2221.5-5225_daily_bin377.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) = 2953.62690961
delta logL = -0.000624406359293

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2953.62628518
delta logL = 1.74113665707e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6191       1.0000          .0000       5.0000    
     3 'Normalizat'    .67952       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0568       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=   2953.626     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      238 TOTAL
                     EDM=   .76E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    29.634        .14659E-01** at limit **
   2  alpha         1.9062        2.9143        .50000       -.91632E-08
   3  Normalizat    .67953        .12069E-01    .29622E-03   -.20916E-04
   4  Prefactor     1.0568        .10444E-01    .20795E-03   -.43814E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.90624
  Normalizat = 0.679525
  Prefactor  = 1.05681
 **********
 **   18 **HESSE 
 **********

 FCN=   2953.626     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      267 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    465.63        .14948E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9062        3.1308        .50000       -.23979    
   3  Normalizat    .67953        .50992E-01    .11849E-04   -1.0471    
   4  Prefactor     1.0568        .44129E-01    .41589E-04   -.90859    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.20338e-10
Minuit parameter uncertainties:
  1  6.29249e-05
  2  1869.24
  3  0.0509959
  4  0.0441309
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/264487': 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) = 2953.6262848
delta logL = 3.95634742745e-07

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  1.000e-04  6.292e-05  1.000e-04  1.000e+04 ( 1.000e-13)
346        alpha:  1.906e+00  1.869e+03  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.057e+00  4.413e-02  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:  6.795e-01  5.100e-02  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/264487/cmap_HighResolution_337046401_337305601_4FGL_J2221.5-5225_daily_bin377.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.09e-04', job_status='DONE', photon_flux_upper_limit='5.38e-08', time_completed='2021-09-28 09:34:56.301806', job_id='264487', GAL2='1.06', fit_tolerance='1e-08', EG2='0.68', EG='0.68', time_epoch_completed='1632846896.3', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='3.96e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.61' WHERE bin_id='377' AND source_name='4FGL J2221.5-5225' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:34:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0300>
Subject: Job 264487: <4FGL_J2221.5-5225_daily_bin377> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.5-5225_daily_bin377 335.391 -52.4307 337046401 337305601 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 :                                   543.07 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             288.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   562 sec.
    Turnaround time :                            564 sec.

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

