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


Performing analysis on: 4FGL_J2221.5-5225_daily_bin1101
RA = 335.391, Dec = -52.4307
tmin = 524707201, tmax = 524966401
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='267224', job_status='RUN', time_executed='2021-09-28 09:35:43.143380', time_epoch_executed='1632846943.14' WHERE source_name='4FGL J2221.5-5225' and cadence='daily' and bin_id='1101'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/267224

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/267224/ft1_4FGL_J2221.5-5225_daily_bin1101.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/267224/ft2_4FGL_J2221.5-5225_daily_bin1101.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/267224/ft1_4FGL_J2221.5-5225_daily_bin1101.fits outfile=/scratch/kocevski/267224/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin1101.fits ra=335.391 dec=-52.4307 rad=12.0 tmin=524707201.0 tmax=524966401.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.40
user 3.16
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/267224/ft2_4FGL_J2221.5-5225_daily_bin1101.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/267224/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin1101.fits evtable="EVENTS" outfile="/scratch/kocevski/267224/ft1_filtered_4FGL_J2221.5-5225_daily_bin1101.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.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/267224/ft1_filtered_4FGL_J2221.5-5225_daily_bin1101.fits" evtable="EVENTS" scfile=/scratch/kocevski/267224/ft2_4FGL_J2221.5-5225_daily_bin1101.fits sctable="SC_DATA" outfile=/scratch/kocevski/267224/ltcube_524707201_524966401_4FGL_J2221.5-5225_daily_bin1101.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/267224/ft2_4FGL_J2221.5-5225_daily_bin1101.fits
.....................!
real 12.00
user 11.68
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/267224/ft1_filtered_4FGL_J2221.5-5225_daily_bin1101.fits evtable="EVENTS" scfile=/scratch/kocevski/267224/ft2_4FGL_J2221.5-5225_daily_bin1101.fits sctable="SC_DATA" expcube=/scratch/kocevski/267224/ltcube_524707201_524966401_4FGL_J2221.5-5225_daily_bin1101.fits outfile=/scratch/kocevski/267224/expmap_524707201_524966401_4FGL_J2221.5-5225_daily_bin1101.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/267224/ltcube_524707201_524966401_4FGL_J2221.5-5225_daily_bin1101.fits
.....................!
real 190.72
user 185.75
sys 4.65

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/267224/ft1_filtered_4FGL_J2221.5-5225_daily_bin1101.fits scfile=/scratch/kocevski/267224/ft2_4FGL_J2221.5-5225_daily_bin1101.fits outfile=/scratch/kocevski/267224/cmap_524707201_524966401_4FGL_J2221.5-5225_daily_bin1101.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.53
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/267224/ft1_filtered_4FGL_J2221.5-5225_daily_bin1101.fits scfile=/scratch/kocevski/267224/ft2_4FGL_J2221.5-5225_daily_bin1101.fits outfile=/scratch/kocevski/267224/cmap_HighResolution_524707201_524966401_4FGL_J2221.5-5225_daily_bin1101.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/267224/ft1_filtered_4FGL_J2221.5-5225_daily_bin1101.fits evtable="EVENTS" scfile=/scratch/kocevski/267224/ft2_4FGL_J2221.5-5225_daily_bin1101.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/267224/Model_4FGL_J2221.5-5225_daily_bin1101.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/267224/ft1_filtered_4FGL_J2221.5-5225_daily_bin1101.fits.....................!
real 50.46
user 49.02
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10935E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.290       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .18369E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.8510       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .81939       1.0000         .10000E-03   10000.    
     8 'Prefactor '    101.17       1.0000         .10000E-03   10000.    
     9 'norm      '    8.5600       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .94255       1.0000         .10000E-03   10000.    
    11 'Prefactor '    26.425       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.0544       1.0000         .10000E-03   10000.    
    13 'Prefactor '    20.971       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10508E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    56.119       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.9817       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12249E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.0981       1.0000         .10000E-03   10000.    
    19 'norm      '    8.7378       1.0000         .10000E-03   10000.    
    20 'norm      '    2.2555       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .62527       1.0000         .10000E-03   10000.    
    23 'norm      '    .88101       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .95421       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .80134       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6791.029     FROM MIGRAD    STATUS=FAILED      1054 CALLS     3459 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    116.72        .18142E-02** at limit **
   2  Prefactor     .10000E-03    2.9069        .13627E-02** at limit **
   3  Prefactor     15.279        18.865        .10243E-03    .77694E-06
   4  Prefactor     .10000E-03    6.1318        .20722E-02** at limit **
   5  Prefactor     .10000E-03    29.506        .18142E-02** at limit **
   6  Prefactor     6.8483        7.4551        .15329E-03   -.12905E-04
   7  Prefactor     .81865        2.1889        .19565E-03   -.75887E-04
   8  Prefactor     101.15        94.810        .39972E-04    .12457E-04
   9  norm          8.5600        6.4474        .13701E-03    .23897E-04
  10  Prefactor     .94032        2.0211        .17450E-02    .36556E-03
  11  Prefactor     26.425        24.701        .77930E-04   -.13713E-04
  12  Prefactor     2.0522        3.1678        .17434E-03   -.20933E-04
  13  Prefactor     20.953        23.544        .87465E-04    .51992E-05
  14  Prefactor     .10000E-03    4.7435        .17462E-02** at limit **
  15  Prefactor     56.127        55.675        .53548E-04   -.81951E-05
  16  Prefactor     2.9813        3.4606        .16099E-03   -.13276E-04
  17  Prefactor     .10000E-03    61.616        .36285E-03** at limit **
  18  Prefactor     4.1038        8.6284        .19914E-03   -.25290E-04
  19  norm          8.7401        7.0245        .13560E-03   -.18445E-05
  20  norm          2.2564        3.3371        .17877E-03   -.28427E-04
  21  Prefactor     .10000E-03    3.9247        .15760E-02** at limit **
  22  Prefactor     .36019        163.24        .50011E-02    .69319E-03
  23  norm          .88248        .79124        .66694E-03   -.73537E-04
  24  Normalizat    .95496        .17823        .22821E-03   -.29242E-04
  25  Prefactor     .80087        .14280        .20960E-03   -.10148E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6791.029     FROM SIMPLEX   STATUS=UNCHANGED   1374 CALLS     4833 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    116.72        .81998E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.9069        .22778E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     15.279        18.865        .83635E-06   -1.4926    
   4  Prefactor     .10000E-03    6.1318        .28940E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    29.506        .45638E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.8483        7.4551        .84910E-06   -1.5185    
   7  Prefactor     .81865        2.1889        .86890E-06   -1.5527    
   8  Prefactor     101.15        94.810        .77242E-06   -1.3693    
   9  norm          8.5600        6.4474        .84617E-06   -1.5123    
  10  Prefactor     .94032        2.0211        .86832E-06   -1.5514    
  11  Prefactor     26.425        24.701        .82207E-06   -1.4679    
  12  Prefactor     2.0522        3.1678        .86305E-06   -1.5421    
  13  Prefactor     20.953        23.544        .82753E-06   -1.4792    
  14  Prefactor     .10000E-03    4.7435        .28705E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     56.127        55.675        .79513E-06   -1.4208    
  16  Prefactor     2.9813        3.4606        .85920E-06   -1.5363    
  17  Prefactor     .10000E-03    61.616        .10190E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.1038        8.6284        .85613E-06   -1.5303    
  19  norm          8.7401        7.0245        .84531E-06   -1.5117    
  20  norm          2.2564        3.3371        .86128E-06   -1.5408    
  21  Prefactor     .10000E-03    3.9247        .34119E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .36019        163.24        .87540E-06   -1.5588    
  23  norm          .88248        .79124        .86747E-06   -1.5520    
  24  Normalizat    .95496        .17823        .52888E-06   -.94555    
  25  Prefactor     .80087        .14280        .55732E-06   -.99696    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6791.029     FROM MIGRAD    STATUS=CONVERGED    410 CALLS     5243 TOTAL
                     EDM=   .51E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    116.80        .36285E-03** at limit **
   2  Prefactor     .10000E-03    2.9078        .27253E-03** at limit **
   3  Prefactor     15.279        18.861        .40971E-05    .11099E-06
   4  Prefactor     .10000E-03    6.1608        .41443E-03** at limit **
   5  Prefactor     .10000E-03    29.511        .36285E-03** at limit **
   6  Prefactor     6.8483        7.4536        .61314E-05    .37083E-06
   7  Prefactor     .81866        2.1884        .78261E-05    .29053E-06
   8  Prefactor     101.15        94.791        .79944E-05    .56883E-07
   9  norm          8.5600        6.4472        .54804E-05     .0000    
  10  Prefactor     .94032        2.0182        .69799E-04    .71340E-05
  11  Prefactor     26.425        24.696        .31172E-05    .72942E-06
  12  Prefactor     2.0522        3.1672        .69734E-05    .32606E-06
  13  Prefactor     20.953        23.536        .34986E-05    .25996E-06
  14  Prefactor     .10000E-03    4.7445        .34923E-03** at limit **
  15  Prefactor     56.127        55.675        .10710E-04     .0000    
  16  Prefactor     2.9813        3.4605        .64395E-05    .70619E-07
  17  Prefactor     .10000E-03    61.619        .72569E-04** at limit **
  18  Prefactor     4.1038        8.6167        .79658E-05   -.57088E-06
  19  norm          8.7401        7.0236        .54241E-05   -.41919E-06
  20  norm          2.2564        3.3368        .71507E-05   -.31797E-06
  21  Prefactor     .10000E-03    3.9253        .31520E-03** at limit **
  22  Prefactor     .36021        163.61        .10002E-02    .27840E-04
  23  norm          .88248        .78660        .26677E-04   -.42615E-05
  24  Normalizat    .95496        .17716        .91284E-05   -.24908E-06
  25  Prefactor     .80087        .14254        .83841E-05    .16272E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.2792
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.84831
  Prefactor  = 0.818657
  Prefactor  = 101.148
  norm       = 8.55997
  Prefactor  = 0.940316
  Prefactor  = 26.4246
  Prefactor  = 2.05223
  Prefactor  = 20.9532
  Prefactor  = 0.0001
  Prefactor  = 56.1273
  Prefactor  = 2.98134
  Prefactor  = 0.0001
  Prefactor  = 4.10381
  norm       = 8.74014
  norm       = 2.25637
  Prefactor  = 0.0001
  Prefactor  = 0.360206
  norm       = 0.882477
  Normalizat = 0.954962
  Prefactor  = 0.800867
 **********
 **   18 **HESSE 
 **********

 FCN=   6791.029     FROM HESSE     STATUS=OK           405 CALLS     5648 TOTAL
                     EDM=   .99E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    116.81        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.9078        .54506E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     15.279        18.861        .40971E-05   -1.4926    
   4  Prefactor     .10000E-03    6.1620        .82887E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    29.511        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.8483        7.4565        .12263E-05   -1.5185    
   7  Prefactor     .81866        2.1881        .15652E-05   -1.5527    
   8  Prefactor     101.15        94.798        .79944E-05   -1.3693    
   9  norm          8.5600        6.4472        .54804E-05   -1.5123    
  10  Prefactor     .94032        2.0181        .13960E-04   -1.5514    
  11  Prefactor     26.425        24.615        .62344E-06   -1.4679    
  12  Prefactor     2.0522        3.1665        .13947E-05   -1.5421    
  13  Prefactor     20.953        23.536        .34986E-05   -1.4792    
  14  Prefactor     .10000E-03    4.7445        .69847E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     56.127        55.675        .10710E-04   -1.4208    
  16  Prefactor     2.9813        3.4605        .64395E-05   -1.5363    
  17  Prefactor     .10000E-03    61.619        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.1038        8.6141        .15932E-05   -1.5303    
  19  norm          8.7401        7.0252        .10848E-05   -1.5117    
  20  norm          2.2564        3.3364        .14301E-05   -1.5408    
  21  Prefactor     .10000E-03    3.9253        .63040E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .36021        162.71        .20005E-03   -1.5588    
  23  norm          .88248        .78577        .10671E-05   -1.5520    
  24  Normalizat    .95496        .17706        .18257E-05   -.94555    
  25  Prefactor     .80087        .14252        .83841E-05   -.99696    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.85896e-14
Minuit parameter uncertainties:
  1  3.25469e-06
  2  4.92153e-08
  3  18.8685
  4  4.73453e-07
  5  2.97303e-08
  6  7.4575
  7  2.18836
  8  94.9403
  9  6.44772
  10  2.01821
  11  24.6248
  12  3.1668
  13  23.5467
  14  6.92542e-09
  15  55.7268
  16  3.46071
  17  1.13058e-07
  18  8.61668
  19  7.02582
  20  3.33667
  21  1.93954e-07
  22  15.3514
  23  0.785775
  24  0.177165
  25  0.142585
Done.

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

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  8.560e+00  6.448e+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:  8.009e-01  1.426e-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.550e-01  1.772e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.90
Ra Dec: 335.391 -52.431
Photon Index (Fixed Index): 1.61 +/- 0.00
Photon Flux (Fixed Index): 1.43e-08 +/- 1.08e-08
Energy Flux (Fixed Index): 2.89e-05 +/- 2.18e-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) = 6791.0288784
delta logL = 1.76789353645e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6791.0288782
delta logL = 1.7885960915e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.5600       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6044       1.0000          .0000       5.0000    
     3 'Normalizat'    .95504       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80086       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=   6791.029     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      229 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.5598        6.4366        .13701E-03    .52229E-03
   2  alpha         1.6044        .71578        .18567E-01    .42788E-04
   3  Normalizat    .95501        .16291        .22821E-03   -.48024E-04
   4  Prefactor     .80087        .13880        .20960E-03   -.63026E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.55985
  alpha      = 1.60438
  Normalizat = 0.955012
  Prefactor  = 0.800874
 **********
 **   18 **HESSE 
 **********

 FCN=   6791.029     FROM HESSE     STATUS=OK            23 CALLS      252 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.5598        6.4325        .27402E-04   -1.5123    
   2  alpha         1.6044        .71554        .74267E-03   -.36639    
   3  Normalizat    .95501        .16303        .91282E-05   -.94553    
   4  Prefactor     .80087        .13893        .83841E-05   -.99696    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.11326e-10
Minuit parameter uncertainties:
  1  6.43306
  2  0.727249
  3  0.163117
  4  0.138991
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/267224': 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) = 6791.02887818
delta logL = 1.79078788278e-05

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  8.560e+00  6.433e+00  1.000e-04  1.000e+04 ( 1.000e-13)
346        alpha:  1.604e+00  7.272e-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:  8.009e-01  1.390e-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.550e-01  1.631e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.90
Ra Dec: 335.391 -52.431
Photon Index (Free Index): 1.60 +/- 0.73
Photon Flux (Free Index): 1.42e-08 +/- 1.73e-08
Energy Flux (Free Index): 2.91e-05 +/- 3.36e-05

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/267224/cmap_HighResolution_524707201_524966401_4FGL_J2221.5-5225_daily_bin1101.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.43e-08', energy_flux2='2.91e-05', photon_flux_error='1.08e-08', dlogl='1.79e-05', energy_flux='2.89e-05', photon_flux2='1.42e-08', job_status='DONE', time_completed='2021-09-28 09:50:06.714543', photon_index_error2='0.73', photon_index2='1.60', ts='8.90', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', energy_flux_error2='3.36e-05', EG='0.95', time_epoch_completed='1632847806.71', return_code='0', job_id='267224', GAL2='0.80', EG2='0.96', return_code2='0', energy_flux_error='2.18e-05', photon_flux_error2='1.73e-08', ts2='8.90', photon_index='1.61' WHERE bin_id='1101' AND source_name='4FGL J2221.5-5225' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:50:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 267224: <4FGL_J2221.5-5225_daily_bin1101> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.5-5225_daily_bin1101 335.391 -52.4307 524707201 524966401 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 :                                   863.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             330.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   873 sec.
    Turnaround time :                            875 sec.

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

