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


Performing analysis on: 4FGL_J2221.5-5225_daily_bin894
RA = 335.391, Dec = -52.4307
tmin = 471052801, tmax = 471312001
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='265990', job_status='RUN', time_executed='2021-09-28 09:33:22.684562', time_epoch_executed='1632846802.68' WHERE source_name='4FGL J2221.5-5225' and cadence='daily' and bin_id='894'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/265990

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/265990/ft1_4FGL_J2221.5-5225_daily_bin894.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/265990/ft2_4FGL_J2221.5-5225_daily_bin894.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/265990/ft1_4FGL_J2221.5-5225_daily_bin894.fits outfile=/scratch/kocevski/265990/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin894.fits ra=335.391 dec=-52.4307 rad=12.0 tmin=471052801.0 tmax=471312001.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 4.01
user 3.78
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/265990/ft2_4FGL_J2221.5-5225_daily_bin894.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/265990/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin894.fits evtable="EVENTS" outfile="/scratch/kocevski/265990/ft1_filtered_4FGL_J2221.5-5225_daily_bin894.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/265990/ft1_filtered_4FGL_J2221.5-5225_daily_bin894.fits" evtable="EVENTS" scfile=/scratch/kocevski/265990/ft2_4FGL_J2221.5-5225_daily_bin894.fits sctable="SC_DATA" outfile=/scratch/kocevski/265990/ltcube_471052801_471312001_4FGL_J2221.5-5225_daily_bin894.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/265990/ft2_4FGL_J2221.5-5225_daily_bin894.fits
.....................!
real 11.86
user 11.49
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/265990/ft1_filtered_4FGL_J2221.5-5225_daily_bin894.fits evtable="EVENTS" scfile=/scratch/kocevski/265990/ft2_4FGL_J2221.5-5225_daily_bin894.fits sctable="SC_DATA" expcube=/scratch/kocevski/265990/ltcube_471052801_471312001_4FGL_J2221.5-5225_daily_bin894.fits outfile=/scratch/kocevski/265990/expmap_471052801_471312001_4FGL_J2221.5-5225_daily_bin894.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/265990/ltcube_471052801_471312001_4FGL_J2221.5-5225_daily_bin894.fits
.....................!
real 190.21
user 185.29
sys 4.61

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/265990/ft1_filtered_4FGL_J2221.5-5225_daily_bin894.fits scfile=/scratch/kocevski/265990/ft2_4FGL_J2221.5-5225_daily_bin894.fits outfile=/scratch/kocevski/265990/cmap_471052801_471312001_4FGL_J2221.5-5225_daily_bin894.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/265990/ft1_filtered_4FGL_J2221.5-5225_daily_bin894.fits scfile=/scratch/kocevski/265990/ft2_4FGL_J2221.5-5225_daily_bin894.fits outfile=/scratch/kocevski/265990/cmap_HighResolution_471052801_471312001_4FGL_J2221.5-5225_daily_bin894.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.55
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/265990/ft1_filtered_4FGL_J2221.5-5225_daily_bin894.fits evtable="EVENTS" scfile=/scratch/kocevski/265990/ft2_4FGL_J2221.5-5225_daily_bin894.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/265990/Model_4FGL_J2221.5-5225_daily_bin894.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/265990/ft1_filtered_4FGL_J2221.5-5225_daily_bin894.fits.....................!
real 54.71
user 53.42
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    64.423       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.6006       1.0000         .10000E-03   10000.    
     3 'Prefactor '    29.716       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.2141       1.0000         .10000E-03   10000.    
     5 'Prefactor '    28.293       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.2910       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11230E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    36.283       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.2790       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.2021       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10372E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    8.8371       1.0000         .10000E-03   10000.    
    20 'norm      '    3.2953       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10337E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .84520       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0368       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=   7528.257     FROM MIGRAD    STATUS=CONVERGED    577 CALLS     2916 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     64.418        49.222       -.45565E-05    .29481E-05
   2  Prefactor     5.6005        4.9202       -.30339E-05   -.13052E-03
   3  Prefactor     29.714        23.001       -.19905E-06    .10733E-06
   4  Prefactor     7.2138        3.9004       -.10601E-06   -.20479E-03
   5  Prefactor     28.291        24.159       -.10137E-05    .95256E-05
   6  Prefactor     3.2924        5.7550        .22700E-05   -.38717E-03
   7  Prefactor     .10000E-03    .92172       -.17612E-07** at limit **
   8  Prefactor     .10000E-03    63.063       -.19940E-04** at limit **
   9  norm          .10000E-03    1.4982       -.60327E-08** at limit **
  10  Prefactor     .10000E-03    1.1224       -.75379E-08** at limit **
  11  Prefactor     36.282        31.894       -.11019E-05    .43364E-05
  12  Prefactor     3.2797        5.2235       -.25003E-05   -.65083E-03
  13  Prefactor     .10000E-03    14.702        .38144E-06** at limit **
  14  Prefactor     .10000E-03    2.7945       -.46636E-06** at limit **
  15  Prefactor     .10000E-03    47.082        .25095E-04** at limit **
  16  Prefactor     3.2019        3.1296        .24225E-06    .25088E-03
  17  Prefactor     .10000E-03    34.574       -.88753E-05** at limit **
  18  Prefactor     .10000E-03    21.105        .15041E-06** at limit **
  19  norm          8.8364        9.4241       -.93953E-06   -.88378E-03
  20  norm          3.2947        3.8863        .97708E-06    .72857E-04
  21  Prefactor     .10000E-03    3.1259        .78421E-07** at limit **
  22  Prefactor     .10000E-03    4.7378        .14091E-07** at limit **
  23  norm          .10000E-03    .39745       -.41171E-07** at limit **
  24  Normalizat    .84528        .15905        .11587E-05    .55967E-04
  25  Prefactor     1.0367        .13572        .32653E-06    .10637E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 64.4181
  Prefactor  = 5.60048
  Prefactor  = 29.7142
  Prefactor  = 7.21383
  Prefactor  = 28.2909
  Prefactor  = 3.29245
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 36.2821
  Prefactor  = 3.27973
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.20193
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.83645
  norm       = 3.29474
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Normalizat = 0.845283
  Prefactor  = 1.03675
 **********
 **   18 **HESSE 
 **********

 FCN=   7528.257     FROM HESSE     STATUS=OK           425 CALLS     3341 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     64.418        49.278        .49998E-04   -1.4101    
   2  Prefactor     5.6005        4.9244        .16975E-03   -1.5235    
   3  Prefactor     29.714        22.990        .73498E-04   -1.4617    
   4  Prefactor     7.2138        3.8968        .11999E-03   -1.5171    
   5  Prefactor     28.291        24.128        .75319E-04   -1.4644    
   6  Prefactor     3.2924        5.6834        .22319E-03   -1.5345    
   7  Prefactor     .10000E-03    .93115        .81325E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    63.008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.4985        .10372E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.8610        .17798E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     36.282        31.844        .66533E-04   -1.4503    
  12  Prefactor     3.2797        5.3200        .22361E-03   -1.5346    
  13  Prefactor     .10000E-03    14.782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.8022        .14163E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    46.522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.2019        3.1396        .14807E-03   -1.5350    
  17  Prefactor     .10000E-03    34.530        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    21.590        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          8.8364        9.5360        .67417E-03   -1.5113    
  20  norm          3.2947        3.8757        .18085E-03   -1.5345    
  21  Prefactor     .10000E-03    3.1767        .14973E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.7407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    2.8476        .10560E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .84528        .18491        .25925E-03   -.98410    
  25  Prefactor     1.0367        .15933        .20585E-03   -.91514    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6084e-09
Minuit parameter uncertainties:
  1  49.3092
  2  4.92479
  3  22.9965
  4  3.89693
  5  24.1358
  6  5.68437
  7  2.27387e-06
  8  0.000195044
  9  2.09325e-07
  10  1.11466e-05
  11  31.859
  12  5.32077
  13  4.05436e-05
  14  1.48624e-09
  15  6.37423e-06
  16  3.13981
  17  6.88593e-05
  18  6.96897e-05
  19  9.53765
  20  3.87601
  21  8.27381e-06
  22  2.6315e-06
  23  7.5648e-05
  24  0.185043
  25  0.159404
Done.

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

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  1.000e-04  2.093e-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:  1.037e+00  1.594e-01  0.000e+00  1.000e+01 ( 1.000e+00)
588        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
589        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
586   Normalization:  8.453e-01  1.850e-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.48e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.99e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/265990/likelihoodResults_471052801_471312001_4FGL_J2221.5-5225_daily_bin894.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) = 7528.25667662
delta logL = -4.18831405113e-08

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7528.25667646
delta logL = 1.16639967018e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5860       1.0000          .0000       5.0000    
     3 'Normalizat'    .84522       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0368       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=   7528.257     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      233 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    378.63        .10445E-02** at limit **
   2  alpha         1.3497        2.5168        .18127       -.12543E-08
   3  Normalizat    .84528        .14111        .25925E-03    .10367E-03
   4  Prefactor     1.0367        .12358        .20585E-03    .15545E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.34969
  Normalizat = 0.845283
  Prefactor  = 1.03675
 **********
 **   18 **HESSE 
 **********

 FCN=   7528.257     FROM HESSE     STATUS=OK            27 CALLS      260 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.6013        .20890E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.3497        2.8100        .72510E-01   -.47814    
   3  Normalizat    .84528        .17824        .10370E-04   -.98410    
   4  Prefactor     1.0367        .15611        .41169E-04   -.91514    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46668e-11
Minuit parameter uncertainties:
  1  1.81585e-06
  2  130.955
  3  0.178367
  4  0.156177
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/265990': 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) = 7528.25667465
delta logL = 1.92904280993e-06

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  1.000e-04  1.816e-06  1.000e-04  1.000e+04 ( 1.000e-13)
346        alpha:  1.350e+00  1.310e+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:  1.037e+00  1.562e-01  0.000e+00  1.000e+01 ( 1.000e+00)
588        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
589        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
586   Normalization:  8.453e-01  1.784e-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/265990/cmap_HighResolution_471052801_471312001_4FGL_J2221.5-5225_daily_bin894.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.99e-05', job_status='DONE', photon_flux_upper_limit='1.48e-08', time_completed='2021-09-28 09:46:39.495616', job_id='265990', GAL2='1.04', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1632847599.5', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='1.93e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.61' WHERE bin_id='894' AND source_name='4FGL J2221.5-5225' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:46:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 265990: <4FGL_J2221.5-5225_daily_bin894> in cluster <slac> Done

Job <4FGL_J2221.5-5225_daily_bin894> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 09:31:10 2021
Job was executed on host(s) <bullet0259>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:31:13 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:31:13 2021
Terminated at Tue Sep 28 09:46:40 2021
Results reported at Tue Sep 28 09:46:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.5-5225_daily_bin894 335.391 -52.4307 471052801 471312001 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 :                                   797.28 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             288.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   926 sec.
    Turnaround time :                            930 sec.

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

