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


Performing analysis on: 4FGL_J2221.5-5225_daily_bin905
RA = 335.391, Dec = -52.4307
tmin = 473904001, tmax = 474163201
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='266007', job_status='RUN', time_executed='2021-09-28 09:32:26.062182', time_epoch_executed='1632846746.06' WHERE source_name='4FGL J2221.5-5225' and cadence='daily' and bin_id='905'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/266007

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/266007/ft1_4FGL_J2221.5-5225_daily_bin905.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/266007/ft2_4FGL_J2221.5-5225_daily_bin905.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/266007/ft1_4FGL_J2221.5-5225_daily_bin905.fits outfile=/scratch/kocevski/266007/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin905.fits ra=335.391 dec=-52.4307 rad=12.0 tmin=473904001.0 tmax=474163201.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 5.09
user 4.85
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/266007/ft1_filtered_4FGL_J2221.5-5225_daily_bin905.fits" evtable="EVENTS" scfile=/scratch/kocevski/266007/ft2_4FGL_J2221.5-5225_daily_bin905.fits sctable="SC_DATA" outfile=/scratch/kocevski/266007/ltcube_473904001_474163201_4FGL_J2221.5-5225_daily_bin905.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/266007/ft2_4FGL_J2221.5-5225_daily_bin905.fits
.....................!
real 12.22
user 11.80
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/266007/ft1_filtered_4FGL_J2221.5-5225_daily_bin905.fits evtable="EVENTS" scfile=/scratch/kocevski/266007/ft2_4FGL_J2221.5-5225_daily_bin905.fits sctable="SC_DATA" expcube=/scratch/kocevski/266007/ltcube_473904001_474163201_4FGL_J2221.5-5225_daily_bin905.fits outfile=/scratch/kocevski/266007/expmap_473904001_474163201_4FGL_J2221.5-5225_daily_bin905.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/266007/ltcube_473904001_474163201_4FGL_J2221.5-5225_daily_bin905.fits
.....................!
real 190.55
user 185.77
sys 4.37

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/266007/ft1_filtered_4FGL_J2221.5-5225_daily_bin905.fits scfile=/scratch/kocevski/266007/ft2_4FGL_J2221.5-5225_daily_bin905.fits outfile=/scratch/kocevski/266007/cmap_473904001_474163201_4FGL_J2221.5-5225_daily_bin905.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/266007/ft1_filtered_4FGL_J2221.5-5225_daily_bin905.fits scfile=/scratch/kocevski/266007/ft2_4FGL_J2221.5-5225_daily_bin905.fits outfile=/scratch/kocevski/266007/cmap_HighResolution_473904001_474163201_4FGL_J2221.5-5225_daily_bin905.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/266007/ft1_filtered_4FGL_J2221.5-5225_daily_bin905.fits evtable="EVENTS" scfile=/scratch/kocevski/266007/ft2_4FGL_J2221.5-5225_daily_bin905.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/266007/Model_4FGL_J2221.5-5225_daily_bin905.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/266007/ft1_filtered_4FGL_J2221.5-5225_daily_bin905.fits.....................!
real 47.85
user 46.52
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.473       1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.370       1.0000         .10000E-03   10000.    
     3 'Prefactor '    50.939       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.913       1.0000         .10000E-03   10000.    
     5 'Prefactor '    52.401       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10862E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    25.113       1.0000         .10000E-03   10000.    
     9 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.3829       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.3249       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    49.862       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.8928       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0195       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .97508       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=   6063.910     FROM MIGRAD    STATUS=CONVERGED    599 CALLS     2910 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.320        58.306       -.20583E-05   -.11389E-04
   2  Prefactor     16.369        10.787       -.96320E-07   -.23322E-04
   3  Prefactor     50.943        29.941        .29592E-05    .42828E-03
   4  Prefactor     11.912        6.3028        .90622E-06   -.40266E-03
   5  Prefactor     52.390        43.765        .67976E-06    .60159E-04
   6  Prefactor     .10000E-03    5.3229       -.13776E-06** at limit **
   7  Prefactor     .10000E-03    1.1525        .11797E-07** at limit **
   8  Prefactor     25.043        62.660       -.33398E-05   -.52142E-04
   9  norm          .10000E-03    3.0150       -.25044E-07** at limit **
  10  Prefactor     .10000E-03    1.1223       -.28499E-07** at limit **
  11  Prefactor     .10000E-03    18.142       -.67319E-06** at limit **
  12  Prefactor     6.3837        5.6498        .22057E-05   -.55493E-03
  13  Prefactor     .10000E-03    8.4215       -.11750E-06** at limit **
  14  Prefactor     5.3209        10.550        .10905E-06   -.21176E-04
  15  Prefactor     .10000E-03    77.759       -.58267E-06** at limit **
  16  Prefactor     .10000E-03    2.1571       -.31304E-08** at limit **
  17  Prefactor     .10000E-03    19.484        .34899E-06** at limit **
  18  Prefactor     49.875        21.017       -.47487E-06   -.22071E-03
  19  norm          .10000E-03    3.4062       -.58676E-08** at limit **
  20  norm          3.8932        4.2461        .19628E-07    .30042E-04
  21  Prefactor     .10000E-03    4.4567       -.16046E-06** at limit **
  22  Prefactor     .10000E-03    16.073        .13910E-06** at limit **
  23  norm          .10000E-03    .38662       -.78348E-07** at limit **
  24  Normalizat    1.0191        .19174       -.39505E-06   -.20663E-04
  25  Prefactor     .97548        .15981       -.79297E-06    .15003E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.3196
  Prefactor  = 16.3692
  Prefactor  = 50.9435
  Prefactor  = 11.9116
  Prefactor  = 52.3902
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.0435
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.38368
  Prefactor  = 0.0001
  Prefactor  = 5.32089
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 49.8747
  norm       = 0.0001
  norm       = 3.89315
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.01906
  Prefactor  = 0.975478
 **********
 **   18 **HESSE 
 **********

 FCN=   6063.910     FROM HESSE     STATUS=OK           419 CALLS     3329 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.320        58.668        .86437E-04   -1.4784    
   2  Prefactor     16.369        10.784        .98991E-04   -1.4899    
   3  Prefactor     50.943        31.498        .56191E-04   -1.4279    
   4  Prefactor     11.912        6.3754        .58032E-03   -1.5018    
   5  Prefactor     52.390        43.929        .55405E-04   -1.4259    
   6  Prefactor     .10000E-03    5.3622        .17521E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.1581        .81617E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     25.043        62.967        .79937E-04   -1.4707    
   9  norm          .10000E-03    3.0274        .13205E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.1319        .80548E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    18.199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.3837        5.7942        .79434E-03   -1.5203    
  13  Prefactor     .10000E-03    8.4306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.3209        10.543        .17417E-03   -1.5247    
  15  Prefactor     .10000E-03    77.818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.1593        .11169E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    19.509        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     49.875        21.090        .56792E-04   -1.4294    
  19  norm          .10000E-03    3.4063        .14036E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.8932        4.2421        .16319E-03   -1.5313    
  21  Prefactor     .10000E-03    11.797        .31571E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    16.144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    .39268        .47157E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0191        .22330        .26071E-03   -.92395    
  25  Prefactor     .97548        .18603        .22648E-03   -.93551    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.85773e-10
Minuit parameter uncertainties:
  1  58.827
  2  10.7849
  3  31.5081
  4  6.37574
  5  43.9558
  6  3.435e-06
  7  6.04778e-07
  8  63.1346
  9  1.43756e-06
  10  9.82335e-07
  11  7.43527e-05
  12  5.79475
  13  1.1368e-05
  14  10.5469
  15  0.000128315
  16  4.57828e-07
  17  4.67293e-05
  18  21.0935
  19  3.1162e-07
  20  4.24244
  21  0.000313649
  22  5.4547e-05
  23  1.94841e-06
  24  0.223506
  25  0.186155
Done.

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

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  1.000e-04  1.438e-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:  9.755e-01  1.862e-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.019e+00  2.235e-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.38e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.82e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/266007/likelihoodResults_473904001_474163201_4FGL_J2221.5-5225_daily_bin905.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) = 6063.91122524
delta logL = -0.00155640403955

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6063.90966882
delta logL = 1.58079274115e-08

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.6036       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0191       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97548       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=   6063.910     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      226 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10014E-03    157.34        .13218E-02** at limit **
   2  alpha         1.5722        3.2648        .50000        .43662E-05
   3  Normalizat    1.0191        .35263E-01    .26071E-03    .26600E-05
   4  Prefactor     .97548        .30192E-01    .22648E-03   -.29616E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100141
  alpha      = 1.57222
  Normalizat = 1.01906
  Prefactor  = 0.975478
 **********
 **   18 **HESSE 
 **********

 FCN=   6063.910     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      255 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10014E-03    533.83        .26436E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.5722        3.0754        .50000       -.38021    
   3  Normalizat    1.0191        .87626E-01    .10429E-04   -.92395    
   4  Prefactor     .97548        .75025E-01    .90592E-05   -.93551    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.30604e-08
Minuit parameter uncertainties:
  1  0.0175393
  2  1574.22
  3  0.0876387
  4  0.0750327
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/266007': 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) = 6063.90966876
delta logL = 7.16499926057e-08

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  1.001e-04  1.754e-02  1.000e-04  1.000e+04 ( 1.000e-13)
346        alpha:  1.572e+00  1.574e+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:  9.755e-01  7.503e-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.019e+00  8.764e-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/266007/cmap_HighResolution_473904001_474163201_4FGL_J2221.5-5225_daily_bin905.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.82e-05', job_status='DONE', photon_flux_upper_limit='2.38e-08', time_completed='2021-09-28 09:44:05.201650', job_id='266007', GAL2='0.98', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1632847445.2', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='7.16e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.61' WHERE bin_id='905' AND source_name='4FGL J2221.5-5225' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:44:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 266007: <4FGL_J2221.5-5225_daily_bin905> in cluster <slac> Done

Job <4FGL_J2221.5-5225_daily_bin905> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 09:31:12 2021
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:31:14 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:14 2021
Terminated at Tue Sep 28 09:44:05 2021
Results reported at Tue Sep 28 09:44:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.5-5225_daily_bin905 335.391 -52.4307 473904001 474163201 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 :                                   698.29 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             315.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   771 sec.
    Turnaround time :                            773 sec.

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

