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


Performing analysis on: 4FGL_J2221.5-5225_daily_bin1054
RA = 335.391, Dec = -52.4307
tmin = 512524801, tmax = 512784001
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='267153', job_status='RUN', time_executed='2021-09-28 09:38:57.321825', time_epoch_executed='1632847137.32' WHERE source_name='4FGL J2221.5-5225' and cadence='daily' and bin_id='1054'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/267153

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/267153/ft1_4FGL_J2221.5-5225_daily_bin1054.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/267153/ft2_4FGL_J2221.5-5225_daily_bin1054.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/267153/ft1_4FGL_J2221.5-5225_daily_bin1054.fits outfile=/scratch/kocevski/267153/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin1054.fits ra=335.391 dec=-52.4307 rad=12.0 tmin=512524801.0 tmax=512784001.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.70
user 3.48
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/267153/ft2_4FGL_J2221.5-5225_daily_bin1054.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/267153/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin1054.fits evtable="EVENTS" outfile="/scratch/kocevski/267153/ft1_filtered_4FGL_J2221.5-5225_daily_bin1054.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.58
user 0.38
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/267153/ft1_filtered_4FGL_J2221.5-5225_daily_bin1054.fits" evtable="EVENTS" scfile=/scratch/kocevski/267153/ft2_4FGL_J2221.5-5225_daily_bin1054.fits sctable="SC_DATA" outfile=/scratch/kocevski/267153/ltcube_512524801_512784001_4FGL_J2221.5-5225_daily_bin1054.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/267153/ft2_4FGL_J2221.5-5225_daily_bin1054.fits
.....................!
real 15.86
user 15.52
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/267153/ft1_filtered_4FGL_J2221.5-5225_daily_bin1054.fits evtable="EVENTS" scfile=/scratch/kocevski/267153/ft2_4FGL_J2221.5-5225_daily_bin1054.fits sctable="SC_DATA" expcube=/scratch/kocevski/267153/ltcube_512524801_512784001_4FGL_J2221.5-5225_daily_bin1054.fits outfile=/scratch/kocevski/267153/expmap_512524801_512784001_4FGL_J2221.5-5225_daily_bin1054.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/267153/ltcube_512524801_512784001_4FGL_J2221.5-5225_daily_bin1054.fits
.....................!
real 193.53
user 188.05
sys 5.09

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/267153/ft1_filtered_4FGL_J2221.5-5225_daily_bin1054.fits scfile=/scratch/kocevski/267153/ft2_4FGL_J2221.5-5225_daily_bin1054.fits outfile=/scratch/kocevski/267153/cmap_512524801_512784001_4FGL_J2221.5-5225_daily_bin1054.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.57
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/267153/ft1_filtered_4FGL_J2221.5-5225_daily_bin1054.fits scfile=/scratch/kocevski/267153/ft2_4FGL_J2221.5-5225_daily_bin1054.fits outfile=/scratch/kocevski/267153/cmap_HighResolution_512524801_512784001_4FGL_J2221.5-5225_daily_bin1054.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.60
user 0.42
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/267153/ft1_filtered_4FGL_J2221.5-5225_daily_bin1054.fits evtable="EVENTS" scfile=/scratch/kocevski/267153/ft2_4FGL_J2221.5-5225_daily_bin1054.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/267153/Model_4FGL_J2221.5-5225_daily_bin1054.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/267153/ft1_filtered_4FGL_J2221.5-5225_daily_bin1054.fits.....................!
real 47.71
user 46.33
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    35.284       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.2818       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.4206       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.0571       1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.495       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.1862       1.0000         .10000E-03   10000.    
     8 'Prefactor '    57.364       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.8460       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .52983       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.2745       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .55671E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.4195       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.036       1.0000         .10000E-03   10000.    
    19 'norm      '    3.1879       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    41.531       1.0000         .10000E-03   10000.    
    23 'norm      '    1.2001       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0985       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .70418       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=   6071.625     FROM MIGRAD    STATUS=CONVERGED    591 CALLS     2961 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     35.272        34.788        .11181E-05   -.61258E-04
   2  Prefactor     3.2825        7.2079       -.73615E-06    .55036E-04
   3  Prefactor     .10000E-03    4.5323        .18618E-07** at limit **
   4  Prefactor     1.4199        3.2138       -.10277E-06   -.33456E-04
   5  Prefactor     8.9959        29.498        .27140E-05   -.45467E-04
   6  Prefactor     12.501        9.5740       -.45950E-06   -.23179E-04
   7  Prefactor     5.1859        3.7677        .73517E-07    .31582E-05
   8  Prefactor     57.352        71.949        .25400E-05   -.47572E-04
   9  norm          .10000E-03    2.7229       -.27959E-07** at limit **
  10  Prefactor     1.8461        2.1917       -.33573E-07   -.27478E-04
  11  Prefactor     .10000E-03    19.955       -.13048E-06** at limit **
  12  Prefactor     .52946        .35974        .15781E-06   -.11127E-02
  13  Prefactor     6.2617        18.974        .40463E-05    .15147E-03
  14  Prefactor     .10000E-03    52.892       -.14828E-04** at limit **
  15  Prefactor     .10000E-03    51.731       -.65221E-05** at limit **
  16  Prefactor     3.4197        3.4761       -.29006E-07    .16604E-04
  17  Prefactor     .10000E-03    12.783       -.13227E-06** at limit **
  18  Prefactor     12.037        15.754        .37069E-07    .13587E-04
  19  norm          3.1878        7.8836        .91764E-08   -.10742E-04
  20  norm          .10000E-03    2.8482       -.12352E-07** at limit **
  21  Prefactor     .10000E-03    5.7130        .44765E-06** at limit **
  22  Prefactor     41.536        24.494        .33723E-07   -.65290E-04
  23  norm          1.1999        1.1650       -.62805E-09   -.16073E-03
  24  Normalizat    1.0984        .17325        .43474E-06    .11349E-03
  25  Prefactor     .70430        .13827       -.50199E-07    .17392E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 35.2721
  Prefactor  = 3.28254
  Prefactor  = 0.0001
  Prefactor  = 1.41987
  Prefactor  = 8.99592
  Prefactor  = 12.501
  Prefactor  = 5.18588
  Prefactor  = 57.3524
  norm       = 0.0001
  Prefactor  = 1.84611
  Prefactor  = 0.0001
  Prefactor  = 0.529461
  Prefactor  = 6.26173
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 3.41968
  Prefactor  = 0.0001
  Prefactor  = 12.0367
  norm       = 3.18785
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 41.5363
  norm       = 1.19989
  Normalizat = 1.09836
  Prefactor  = 0.704301
 **********
 **   18 **HESSE 
 **********

 FCN=   6071.625     FROM HESSE     STATUS=OK           437 CALLS     3398 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     35.272        34.752        .67466E-04   -1.4519    
   2  Prefactor     3.2825        7.1995        .22351E-03   -1.5346    
   3  Prefactor     .10000E-03    4.5340        .16201E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.4199        3.1937        .19977E-03   -1.5470    
   5  Prefactor     8.9959        29.415        .13318E-03   -1.5108    
   6  Prefactor     12.501        9.5597        .11332E-03   -1.5001    
   7  Prefactor     5.1859        3.7637        .12222E-03   -1.5252    
   8  Prefactor     57.352        71.812        .52967E-04   -1.4192    
   9  norm          .10000E-03    2.7486        .12557E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.8461        2.1828        .12170E-03   -1.5436    
  11  Prefactor     .10000E-03    19.976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .52946        2.7076        .44922E-01   -1.5562    
  13  Prefactor     6.2617        18.983        .16025E-03   -1.5207    
  14  Prefactor     .10000E-03    52.233        .33810E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    51.260        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.4197        3.4834        .14295E-03   -1.5338    
  17  Prefactor     .10000E-03    12.789        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     12.037        15.757        .11547E-03   -1.5014    
  19  norm          3.1878        7.8624        .22695E-03   -1.5351    
  20  norm          .10000E-03    2.8547        .12837E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.7189        .18078E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     41.536        24.345        .62202E-04   -1.4418    
  23  norm          1.1999        1.1305        .76181E-04   -1.5489    
  24  Normalizat    1.0984        .20179        .22497E-03   -.89805    
  25  Prefactor     .70430        .15968        .22784E-03   -1.0336    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.70823e-10
Minuit parameter uncertainties:
  1  34.7724
  2  7.20144
  3  5.09471e-06
  4  3.19411
  5  29.4628
  6  9.5609
  7  3.76392
  8  71.9208
  9  3.37422e-06
  10  2.18294
  11  2.44932e-06
  12  2.39459
  13  19.0008
  14  0.000243091
  15  0.000750442
  16  3.48365
  17  4.19193e-06
  18  15.7624
  19  7.86493
  20  1.16687e-06
  21  4.96163e-05
  22  24.3503
  23  1.13052
  24  0.201934
  25  0.159782
Done.

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

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  1.000e-04  3.374e-06  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:  7.043e-01  1.598e-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:  1.098e+00  2.019e-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: 1.98e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.01e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/267153/likelihoodResults_512524801_512784001_4FGL_J2221.5-5225_daily_bin1054.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) = 6071.62662659
delta logL = -0.00170848178186

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6071.62491811
delta logL = -1.54614099301e-11

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.6078       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0984       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70430       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=   6071.625     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      226 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    156.02        .12558E-02** at limit **
   2  alpha         1.6017        4.1023        .50000        .81941E-06
   3  Normalizat    1.0984        .33185E-01    .22497E-03    .29816E-05
   4  Prefactor     .70430        .27619E-01    .22784E-03    .99794E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100005
  alpha      = 1.60171
  Normalizat = 1.09836
  Prefactor  = 0.704301
 **********
 **   18 **HESSE 
 **********

 FCN=   6071.625     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      255 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    526.60        .25115E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6017        3.1628        .50000       -.36753    
   3  Normalizat    1.0984        .88346E-01    .89986E-05   -.89805    
   4  Prefactor     .70430        .73526E-01    .91137E-05   -1.0336    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.23213e-09
Minuit parameter uncertainties:
  1  0.00331133
  2  1619.35
  3  0.0883575
  4  0.0735365
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/267153': 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) = 6071.6249181
delta logL = 2.39288056036e-09

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  1.000e-04  3.311e-03  1.000e-04  1.000e+04 ( 1.000e-13)
346        alpha:  1.602e+00  1.619e+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:  7.043e-01  7.354e-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:  1.098e+00  8.836e-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/267153/cmap_HighResolution_512524801_512784001_4FGL_J2221.5-5225_daily_bin1054.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.01e-05', job_status='DONE', photon_flux_upper_limit='1.98e-08', time_completed='2021-09-28 09:51:04.686169', job_id='267153', GAL2='0.70', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1632847864.69', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.70', dlogl='2.39e-09', ts2='-0.00', photon_index_error='0.00', photon_index='1.61' WHERE bin_id='1054' AND source_name='4FGL J2221.5-5225' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:51:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 267153: <4FGL_J2221.5-5225_daily_bin1054> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.5-5225_daily_bin1054 335.391 -52.4307 512524801 512784001 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 :                                   727.37 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             253.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   935 sec.
    Turnaround time :                            939 sec.

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

