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


Performing analysis on: 4FGL_J2221.5-5225_daily_bin1268
RA = 335.391, Dec = -52.4307
tmin = 567993601, tmax = 568252801
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='268490', job_status='RUN', time_executed='2021-09-28 09:42:52.645027', time_epoch_executed='1632847372.65' WHERE source_name='4FGL J2221.5-5225' and cadence='daily' and bin_id='1268'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/268490

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/268490/ft1_4FGL_J2221.5-5225_daily_bin1268.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/268490/ft2_4FGL_J2221.5-5225_daily_bin1268.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/268490/ft1_4FGL_J2221.5-5225_daily_bin1268.fits outfile=/scratch/kocevski/268490/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin1268.fits ra=335.391 dec=-52.4307 rad=12.0 tmin=567993601.0 tmax=568252801.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 2.34
user 2.14
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/268490/ft1_filtered_4FGL_J2221.5-5225_daily_bin1268.fits" evtable="EVENTS" scfile=/scratch/kocevski/268490/ft2_4FGL_J2221.5-5225_daily_bin1268.fits sctable="SC_DATA" outfile=/scratch/kocevski/268490/ltcube_567993601_568252801_4FGL_J2221.5-5225_daily_bin1268.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/268490/ft2_4FGL_J2221.5-5225_daily_bin1268.fits
.....................!
real 12.65
user 12.27
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/268490/ft1_filtered_4FGL_J2221.5-5225_daily_bin1268.fits evtable="EVENTS" scfile=/scratch/kocevski/268490/ft2_4FGL_J2221.5-5225_daily_bin1268.fits sctable="SC_DATA" expcube=/scratch/kocevski/268490/ltcube_567993601_568252801_4FGL_J2221.5-5225_daily_bin1268.fits outfile=/scratch/kocevski/268490/expmap_567993601_568252801_4FGL_J2221.5-5225_daily_bin1268.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/268490/ltcube_567993601_568252801_4FGL_J2221.5-5225_daily_bin1268.fits
.....................!
real 191.26
user 185.40
sys 5.55

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/268490/ft1_filtered_4FGL_J2221.5-5225_daily_bin1268.fits scfile=/scratch/kocevski/268490/ft2_4FGL_J2221.5-5225_daily_bin1268.fits outfile=/scratch/kocevski/268490/cmap_567993601_568252801_4FGL_J2221.5-5225_daily_bin1268.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.54
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/268490/ft1_filtered_4FGL_J2221.5-5225_daily_bin1268.fits scfile=/scratch/kocevski/268490/ft2_4FGL_J2221.5-5225_daily_bin1268.fits outfile=/scratch/kocevski/268490/cmap_HighResolution_567993601_568252801_4FGL_J2221.5-5225_daily_bin1268.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/268490/ft1_filtered_4FGL_J2221.5-5225_daily_bin1268.fits evtable="EVENTS" scfile=/scratch/kocevski/268490/ft2_4FGL_J2221.5-5225_daily_bin1268.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/268490/Model_4FGL_J2221.5-5225_daily_bin1268.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/268490/ft1_filtered_4FGL_J2221.5-5225_daily_bin1268.fits.....................!
real 41.65
user 40.34
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .21871E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.9371       1.0000         .10000E-03   10000.    
     3 'Prefactor '    25.667       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.5708       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12801E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10177E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.6400       1.0000         .10000E-03   10000.    
     8 'Prefactor '    42.149       1.0000         .10000E-03   10000.    
     9 'norm      '    5.3175       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.6144       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    41.996       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10218E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10309E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .99579       1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.477       1.0000         .10000E-03   10000.    
    19 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .20695       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.7684       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .81605       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=   5121.823     FROM MIGRAD    STATUS=CONVERGED    575 CALLS     2891 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    138.30        .32523E-05** at limit **
   2  Prefactor     2.9350        21.943        .70155E-06   -.64205E-05
   3  Prefactor     25.704        50.355        .15596E-05    .46773E-04
   4  Prefactor     3.5714        8.2141        .92071E-06   -.35001E-04
   5  Prefactor     .10000E-03    35.376       -.23252E-06** at limit **
   6  Prefactor     .10000E-03    5.4859       -.15020E-06** at limit **
   7  Prefactor     6.6383        6.2028        .84769E-07   -.54224E-04
   8  Prefactor     42.121        86.281       -.60699E-06   -.32261E-04
   9  norm          5.3162        8.2140        .26942E-05   -.76765E-04
  10  Prefactor     1.6140        3.0634        .31359E-06   -.56567E-05
  11  Prefactor     .10000E-03    14.189       -.67466E-08** at limit **
  12  Prefactor     .10000E-03    3.5374        .13673E-06** at limit **
  13  Prefactor     42.022        39.269        .78098E-07    .13106E-04
  14  Prefactor     .10000E-03    10.704        .75798E-06** at limit **
  15  Prefactor     .10001E-03    172.95       -.13355E-05** at limit **
  16  Prefactor     .10000E-03    5.8368       -.14615E-06** at limit **
  17  Prefactor     .95347        27.116        .12082E-05   -.83080E-04
  18  Prefactor     17.477        23.040       -.85758E-06   -.14690E-03
  19  norm          .10000E-03    4.4665       -.10748E-07** at limit **
  20  norm          .10000E-03    6.5038       -.53496E-07** at limit **
  21  Prefactor     .10000E-03    3.5633       -.61621E-07** at limit **
  22  Prefactor     .10000E-03    7.1650       -.54707E-07** at limit **
  23  norm          .20665        1.3724        .13008E-05   -.75655E-05
  24  Normalizat    1.7684        .25703       -.24872E-05   -.35602E-04
  25  Prefactor     .81605        .19846        .15997E-05   -.18067E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  Prefactor  = 2.93504
  Prefactor  = 25.7045
  Prefactor  = 3.57139
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.63828
  Prefactor  = 42.1214
  norm       = 5.31621
  Prefactor  = 1.61398
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 42.0223
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 0.953467
  Prefactor  = 17.4772
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.206651
  Normalizat = 1.76843
  Prefactor  = 0.816054
 **********
 **   18 **HESSE 
 **********

 FCN=   5121.823     FROM HESSE     STATUS=OK           425 CALLS     3316 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    139.18        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.9350        21.721        .23701E-03   -1.5365    
   3  Prefactor     25.704        50.345        .79070E-04   -1.4694    
   4  Prefactor     3.5714        8.1485        .21387E-03   -1.5330    
   5  Prefactor     .10000E-03    35.453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.4962        .16365E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.6383        6.1983        .15573E-03   -1.5193    
   8  Prefactor     42.121        86.358        .61747E-04   -1.4409    
   9  norm          5.3162        8.2137        .87145E-03   -1.5247    
  10  Prefactor     1.6140        3.0296        .16694E-03   -1.5454    
  11  Prefactor     .10000E-03    14.192        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.5543        .13142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     42.022        39.649        .61859E-04   -1.4411    
  14  Prefactor     .10000E-03    10.760        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10001E-03    174.48        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.9100        .16883E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .95347        304.70        .71449E-02   -1.5513    
  18  Prefactor     17.477        22.681        .95804E-04   -1.4872    
  19  norm          .10000E-03    4.4674        .14772E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    6.5527        .17802E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.5821        .13190E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    7.1689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .20665        1.3606        .15318E-03   -1.5617    
  24  Normalizat    1.7684        .30173        .25148E-03   -.70491    
  25  Prefactor     .81605        .23365        .28505E-03   -.99139    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.58499e-10
Minuit parameter uncertainties:
  1  0.00159698
  2  15.9767
  3  50.4285
  4  8.15106
  5  1.72223e-06
  6  6.20459e-06
  7  6.19886
  8  86.6156
  9  8.21539
  10  3.02986
  11  4.71359e-06
  12  2.82184e-06
  13  39.6739
  14  3.75115e-06
  15  0.00246684
  16  4.88346e-06
  17  34.2646
  18  22.6926
  19  4.38399e-08
  20  9.48958e-06
  21  3.08692e-06
  22  6.69537e-06
  23  1.06028
  24  0.302051
  25  0.233934
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
587    Prefactor:  8.161e-01  2.339e-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.768e+00  3.021e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.68
Ra Dec: 335.391 -52.431
Photon Flux Upper Limit: 5.09e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.03e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/268490/likelihoodResults_567993601_568252801_4FGL_J2221.5-5225_daily_bin1268.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) = 5120.12626895
delta logL = 1.69685912841

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5120.11018152
delta logL = 1.71294656048

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .27723       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.0489       1.0000          .0000       5.0000    
     3 'Normalizat'    1.6355       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87868       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.

 FCN=   5120.110     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      317 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .27447        2.5733        .48020E-02    .11270E-02
   2  alpha         4.0532        3.8539        .18356        .71683E-04
   3  Normalizat    1.6352        .76045E-01    .58413E-01    .29806E-05
   4  Prefactor     .87889        .60681E-01    .44733E-01    .12380E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.274475
  alpha      = 4.05325
  Normalizat = 1.63516
  Prefactor  = 0.878887
 **********
 **   18 **HESSE 
 **********

 FCN=   5120.110     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      350 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .27447        4.7912        .21604E-04   -1.5603    
   2  alpha         4.0532        4.3493        .77384E-02    .67040    
   3  Normalizat    1.6352        .28711        .25830E-03   -.74048    
   4  Prefactor     .87889        .22266        .27506E-03   -.96883    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.89242e-10
Minuit parameter uncertainties:
  1  2.29333
  2  3.33427
  3  0.2874
  4  0.222891
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/268490': 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) = 5120.11017595
delta logL = 1.712952125

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
587    Prefactor:  8.789e-01  2.229e-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.635e+00  2.874e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.21
Ra Dec: 335.391 -52.431
Photon Index (Free Index): 4.05 +/- 3.33
Photon Flux (Free Index): 1.35e-07 +/- 1.38e-07
Energy Flux (Free Index): 2.19e-05 +/- 1.31e-05

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/268490/cmap_HighResolution_567993601_568252801_4FGL_J2221.5-5225_daily_bin1268.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.03e-04', comment='SUCCESS', energy_flux2='2.19e-05', dlogl='1.71e+00', photon_flux2='1.35e-07', job_status='DONE', time_completed='2021-09-28 09:53:27.800818', photon_index_error2='3.33', photon_index2='4.05', ts='0.68', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='5.09e-08', energy_flux_error2='1.31e-05', EG='1.77', time_epoch_completed='1632848007.8', return_code='0', job_id='268490', GAL2='0.88', EG2='1.64', return_code2='102', photon_flux_error2='1.38e-07', ts2='4.21', photon_index='1.61' WHERE bin_id='1268' AND source_name='4FGL J2221.5-5225' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:53:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 268490: <4FGL_J2221.5-5225_daily_bin1268> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.5-5225_daily_bin1268 335.391 -52.4307 567993601 568252801 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 :                                   635.02 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             320.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   794 sec.
    Turnaround time :                            795 sec.

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

