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


Performing analysis on: 4FGL_J2221.5-5225_daily_bin778
RA = 335.391, Dec = -52.4307
tmin = 440985601, tmax = 441244801
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='265818', job_status='RUN', time_executed='2021-09-28 09:31:21.696935', time_epoch_executed='1632846681.7' WHERE source_name='4FGL J2221.5-5225' and cadence='daily' and bin_id='778'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/265818

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/265818/ft1_4FGL_J2221.5-5225_daily_bin778.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/265818/ft2_4FGL_J2221.5-5225_daily_bin778.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/265818/ft1_4FGL_J2221.5-5225_daily_bin778.fits outfile=/scratch/kocevski/265818/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin778.fits ra=335.391 dec=-52.4307 rad=12.0 tmin=440985601.0 tmax=441244801.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.43
user 3.21
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/265818/ft2_4FGL_J2221.5-5225_daily_bin778.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/265818/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin778.fits evtable="EVENTS" outfile="/scratch/kocevski/265818/ft1_filtered_4FGL_J2221.5-5225_daily_bin778.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/265818/ft1_filtered_4FGL_J2221.5-5225_daily_bin778.fits" evtable="EVENTS" scfile=/scratch/kocevski/265818/ft2_4FGL_J2221.5-5225_daily_bin778.fits sctable="SC_DATA" outfile=/scratch/kocevski/265818/ltcube_440985601_441244801_4FGL_J2221.5-5225_daily_bin778.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/265818/ft2_4FGL_J2221.5-5225_daily_bin778.fits
.....................!
real 11.91
user 11.55
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/265818/ft1_filtered_4FGL_J2221.5-5225_daily_bin778.fits evtable="EVENTS" scfile=/scratch/kocevski/265818/ft2_4FGL_J2221.5-5225_daily_bin778.fits sctable="SC_DATA" expcube=/scratch/kocevski/265818/ltcube_440985601_441244801_4FGL_J2221.5-5225_daily_bin778.fits outfile=/scratch/kocevski/265818/expmap_440985601_441244801_4FGL_J2221.5-5225_daily_bin778.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/265818/ltcube_440985601_441244801_4FGL_J2221.5-5225_daily_bin778.fits
.....................!
real 190.10
user 184.78
sys 4.94

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/265818/ft1_filtered_4FGL_J2221.5-5225_daily_bin778.fits scfile=/scratch/kocevski/265818/ft2_4FGL_J2221.5-5225_daily_bin778.fits outfile=/scratch/kocevski/265818/cmap_440985601_441244801_4FGL_J2221.5-5225_daily_bin778.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.56
user 0.37
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/265818/ft1_filtered_4FGL_J2221.5-5225_daily_bin778.fits scfile=/scratch/kocevski/265818/ft2_4FGL_J2221.5-5225_daily_bin778.fits outfile=/scratch/kocevski/265818/cmap_HighResolution_440985601_441244801_4FGL_J2221.5-5225_daily_bin778.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=335.391 yref=-52.4307 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    47.284       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11471E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10696E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    67.784       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .16290E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .13424E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.5064       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10190E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    34.582       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.2134       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.5866       1.0000         .10000E-03   10000.    
    17 'Prefactor '    63.901       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.2334       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10416E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    15.630       1.0000         .10000E-03   10000.    
    23 'norm      '    3.0686       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3717       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .95409       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=   5639.439     FROM MIGRAD    STATUS=CONVERGED    604 CALLS     2939 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     47.164        53.065       -.66343E-06    .13788E-04
   2  Prefactor     .10000E-03    4.0544        .20820E-06** at limit **
   3  Prefactor     .10002E-03    114.71        .10119E-04** at limit **
   4  Prefactor     .10000E-03    4.5385        .96990E-06** at limit **
   5  Prefactor     67.946        57.052        .39472E-05    .35182E-03
   6  Prefactor     .10001E-03    62.577        .18926E-04** at limit **
   7  Prefactor     .10000E-03    1.4594        .21069E-06** at limit **
   8  Prefactor     .10000E-03    77.820       -.21620E-05** at limit **
   9  norm          .10000E-03    2.3898       -.28649E-07** at limit **
  10  Prefactor     .10001E-03    2.7386        .84773E-06** at limit **
  11  Prefactor     2.4861        102.99       -.85387E-06   -.16095E-04
  12  Prefactor     .10000E-03    4.5435        .22412E-06** at limit **
  13  Prefactor     34.496        42.121       -.75911E-05   -.37908E-03
  14  Prefactor     1.2656        61.760        .60359E-05   -.22126E-04
  15  Prefactor     .10001E-03    102.84        .17694E-06** at limit **
  16  Prefactor     6.5852        9.3242       -.37298E-06   -.62266E-04
  17  Prefactor     63.897        49.793       -.18299E-06   -.66172E-04
  18  Prefactor     .10000E-03    6.0296        .11255E-06** at limit **
  19  norm          2.2333        31.367       -.87591E-06   -.31265E-04
  20  norm          .10000E-03    2.5415        .80811E-08** at limit **
  21  Prefactor     .10000E-03    4.1867       -.54039E-07** at limit **
  22  Prefactor     15.626        28.209       -.53720E-06   -.23416E-05
  23  norm          3.0688        1.7752       -.88268E-07   -.16713E-03
  24  Normalizat    1.3714        .25084        .49738E-05   -.27156E-03
  25  Prefactor     .95441        .19790       -.56237E-05    .32409E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 47.1644
  Prefactor  = 0.0001
  Prefactor  = 0.000100016
  Prefactor  = 0.0001
  Prefactor  = 67.9463
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 2.48615
  Prefactor  = 0.0001
  Prefactor  = 34.4965
  Prefactor  = 1.26558
  Prefactor  = 0.000100007
  Prefactor  = 6.5852
  Prefactor  = 63.8971
  Prefactor  = 0.0001
  norm       = 2.23327
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.6258
  norm       = 3.0688
  Normalizat = 1.37144
  Prefactor  = 0.954409
 **********
 **   18 **HESSE 
 **********

 FCN=   5639.439     FROM HESSE     STATUS=OK           419 CALLS     3358 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     47.164        53.079        .58312E-04   -1.4333    
   2  Prefactor     .10000E-03    4.0689        .14769E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10002E-03    120.19        .41339E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.6318        .15621E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     67.946        57.595        .48751E-04   -1.4058    
   6  Prefactor     .10001E-03    62.145        .35525E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.4754        .88594E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    77.594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.3907        .11338E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    34.330        .23389E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.4861        102.26        .25811E-03   -1.5393    
  12  Prefactor     .10000E-03    4.6004        .15639E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     34.496        41.473        .68145E-04   -1.4533    
  14  Prefactor     1.2656        58.931        .41038E-03   -1.5483    
  15  Prefactor     .10001E-03    102.30        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.5852        9.3031        .15636E-03   -1.5195    
  17  Prefactor     63.897        49.781        .50201E-04   -1.4108    
  18  Prefactor     .10000E-03    6.0353        .18009E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.2333        31.421        .27507E-03   -1.5409    
  20  norm          .10000E-03    2.5424        .11691E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.1889        .14976E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     15.626        28.124        .10131E-03   -1.4917    
  23  norm          3.0688        1.7707        .70276E-04   -1.5358    
  24  Normalizat    1.3714        .26552        .25731E-03   -.81458    
  25  Prefactor     .95441        .20774        .24685E-03   -.94265    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.47447e-09
Minuit parameter uncertainties:
  1  53.1318
  2  1.98753e-06
  3  0.00276659
  4  2.85322e-05
  5  57.6428
  6  0.00154655
  7  4.54378e-06
  8  0.000879874
  9  5.88918e-07
  10  0.00109728
  11  31.9477
  12  1.78846e-05
  13  41.5081
  14  17.2897
  15  0.001689
  16  9.30511
  17  49.8139
  18  5.65833e-06
  19  16.7639
  20  2.33581e-06
  21  2.82882e-06
  22  28.1482
  23  1.77078
  24  0.265786
  25  0.207909
Done.

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

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  1.000e-04  5.889e-07  1.000e-04  1.000e+04 ( 1.000e-13)
346        alpha:  1.609e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
347         beta:  1.036e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
348           Eb:  2.313e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
587    Prefactor:  9.544e-01  2.079e-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.371e+00  2.658e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/265818/likelihoodResults_440985601_441244801_4FGL_J2221.5-5225_daily_bin778.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5639.44087997
delta logL = -0.00166105966127

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5639.43921892
delta logL = -9.16134013096e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6039       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3714       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95441       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=   5639.439     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      230 TOTAL
                     EDM=   .84E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    30.575        .11351E-02** at limit **
   2  alpha         1.4325        4.1976        .18050       -.15066E-07
   3  Normalizat    1.3715        .24708        .25732E-03    .23593E-04
   4  Prefactor     .95440        .20325        .24684E-03    .26068E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.43249
  Normalizat = 1.37145
  Prefactor  = 0.954401
 **********
 **   18 **HESSE 
 **********

 FCN=   5639.439     FROM HESSE     STATUS=OK            25 CALLS      255 TOTAL
                     EDM=   .27E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.4442        .22702E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.4325        3.1998        .36100E-01   -.44117    
   3  Normalizat    1.3715        .24733        .10293E-04   -.81458    
   4  Prefactor     .95440        .20344        .98737E-05   -.94265    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.70456e-12
Minuit parameter uncertainties:
  1  6.77177e-06
  2  186.837
  3  0.24754
  4  0.203607
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/265818': 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) = 5639.43921848
delta logL = 4.28257408203e-07

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  1.000e-04  6.772e-06  1.000e-04  1.000e+04 ( 1.000e-13)
346        alpha:  1.432e+00  1.868e+02  0.000e+00  5.000e+00 ( 1.000e+00)
347         beta:  1.036e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
348           Eb:  2.313e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
587    Prefactor:  9.544e-01  2.036e-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.371e+00  2.475e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/265818/cmap_HighResolution_440985601_441244801_4FGL_J2221.5-5225_daily_bin778.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.67e-05', job_status='DONE', photon_flux_upper_limit='2.30e-08', time_completed='2021-09-28 09:42:34.589733', job_id='265818', GAL2='0.95', fit_tolerance='1e-08', EG2='1.37', EG='1.37', time_epoch_completed='1632847354.59', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='4.28e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.61' WHERE bin_id='778' AND source_name='4FGL J2221.5-5225' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:42:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0112>
Subject: Job 265818: <4FGL_J2221.5-5225_daily_bin778> in cluster <slac> Done

Job <4FGL_J2221.5-5225_daily_bin778> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 09:30:53 2021
Job was executed on host(s) <bullet0112>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:30:55 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:30:55 2021
Terminated at Tue Sep 28 09:42:35 2021
Results reported at Tue Sep 28 09:42:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.5-5225_daily_bin778 335.391 -52.4307 440985601 441244801 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 :                                   672.41 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             298.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   699 sec.
    Turnaround time :                            702 sec.

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

