/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 3 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 = 7385
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2221.5-5225_daily_bin433
RA = 335.391, Dec = -52.4307
tmin = 351561601, tmax = 351820801
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='264568', job_status='RUN', time_executed='2021-09-28 09:25:54.513604', time_epoch_executed='1632846354.51' WHERE source_name='4FGL J2221.5-5225' and cadence='daily' and bin_id='433'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/264568

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

Retrieving the FT1 file...

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

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

Retrieving 52 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/264568/ft1_4FGL_J2221.5-5225_daily_bin433.fits


Retrieving the FT1 file...

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

Retrieving 52 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/264568/ft2_4FGL_J2221.5-5225_daily_bin433.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/264568/ft1_4FGL_J2221.5-5225_daily_bin433.fits outfile=/scratch/kocevski/264568/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin433.fits ra=335.391 dec=-52.4307 rad=12.0 tmin=351561601.0 tmax=351820801.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 6.96
user 6.69
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/264568/ft1_filtered_4FGL_J2221.5-5225_daily_bin433.fits" evtable="EVENTS" scfile=/scratch/kocevski/264568/ft2_4FGL_J2221.5-5225_daily_bin433.fits sctable="SC_DATA" outfile=/scratch/kocevski/264568/ltcube_351561601_351820801_4FGL_J2221.5-5225_daily_bin433.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/264568/ft2_4FGL_J2221.5-5225_daily_bin433.fits
.....................!
real 11.64
user 11.21
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/264568/ft1_filtered_4FGL_J2221.5-5225_daily_bin433.fits evtable="EVENTS" scfile=/scratch/kocevski/264568/ft2_4FGL_J2221.5-5225_daily_bin433.fits sctable="SC_DATA" expcube=/scratch/kocevski/264568/ltcube_351561601_351820801_4FGL_J2221.5-5225_daily_bin433.fits outfile=/scratch/kocevski/264568/expmap_351561601_351820801_4FGL_J2221.5-5225_daily_bin433.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/264568/ltcube_351561601_351820801_4FGL_J2221.5-5225_daily_bin433.fits
.....................!
real 190.70
user 185.18
sys 5.08

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/264568/ft1_filtered_4FGL_J2221.5-5225_daily_bin433.fits scfile=/scratch/kocevski/264568/ft2_4FGL_J2221.5-5225_daily_bin433.fits outfile=/scratch/kocevski/264568/cmap_351561601_351820801_4FGL_J2221.5-5225_daily_bin433.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/264568/ft1_filtered_4FGL_J2221.5-5225_daily_bin433.fits scfile=/scratch/kocevski/264568/ft2_4FGL_J2221.5-5225_daily_bin433.fits outfile=/scratch/kocevski/264568/cmap_HighResolution_351561601_351820801_4FGL_J2221.5-5225_daily_bin433.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/264568/ft1_filtered_4FGL_J2221.5-5225_daily_bin433.fits evtable="EVENTS" scfile=/scratch/kocevski/264568/ft2_4FGL_J2221.5-5225_daily_bin433.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/264568/Model_4FGL_J2221.5-5225_daily_bin433.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/264568/ft1_filtered_4FGL_J2221.5-5225_daily_bin433.fits.....................!
real 57.19
user 55.81
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    67.924       1.0000         .10000E-03   10000.    
     2 'Prefactor '    52.126       1.0000         .10000E-03   10000.    
     3 'Prefactor '    47.032       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.8146       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.7246       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .21795E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10148E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .27783E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.2441       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-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 '    14.669       1.0000         .10000E-03   10000.    
    19 'norm      '    10.952       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10379E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.6284       1.0000         .10000E-03   10000.    
    23 'norm      '    4.5458       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2264       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .85495       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=   8012.178     FROM MIGRAD    STATUS=CONVERGED    586 CALLS     2935 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     67.924        41.493       -.24196E-06   -.21012E-06
   2  Prefactor     52.126        10.766       -.26249E-07   -.36230E-06
   3  Prefactor     47.034        27.360        .11183E-05   -.60895E-06
   4  Prefactor     3.8146        3.5706       -.12781E-06   -.42493E-03
   5  Prefactor     .10000E-03    5.2251        .32334E-07** at limit **
   6  Prefactor     5.7236        6.7880       -.86305E-07   -.16344E-03
   7  Prefactor     .10000E-03    1.5975       -.50252E-07** at limit **
   8  Prefactor     .10000E-03    61.916       -.26980E-04** at limit **
   9  norm          .10000E-03    2.7176        .38803E-07** at limit **
  10  Prefactor     .10001E-03    1.5369       -.13123E-06** at limit **
  11  Prefactor     .10000E-03    21.093       -.86855E-07** at limit **
  12  Prefactor     .10006E-03    2.4376        .47582E-06** at limit **
  13  Prefactor     .10000E-03    20.013        .11073E-04** at limit **
  14  Prefactor     2.2440        7.8278       -.12984E-05   -.49456E-03
  15  Prefactor     .10000E-03    23.667       -.16995E-04** at limit **
  16  Prefactor     .10000E-03    4.3202        .10588E-06** at limit **
  17  Prefactor     .10000E-03    45.529        .30014E-04** at limit **
  18  Prefactor     14.668        11.483       -.24041E-06   -.24351E-03
  19  norm          10.952        9.1841       -.14430E-06    .11383E-04
  20  norm          .10000E-03    2.8849        .30031E-07** at limit **
  21  Prefactor     .10000E-03    7.1644       -.61222E-07** at limit **
  22  Prefactor     6.6540        18.020        .23574E-05   -.47622E-04
  23  norm          4.5458        1.4986       -.25091E-07   -.20987E-03
  24  Normalizat    1.2263        .17051       -.11379E-06   -.22571E-03
  25  Prefactor     .85502        .13683       -.60260E-07   -.16726E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 67.9241
  Prefactor  = 52.1261
  Prefactor  = 47.0342
  Prefactor  = 3.81463
  Prefactor  = 0.0001
  Prefactor  = 5.72357
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.000100062
  Prefactor  = 0.0001
  Prefactor  = 2.24399
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.6683
  norm       = 10.9522
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.654
  norm       = 4.54575
  Normalizat = 1.22628
  Prefactor  = 0.855019
 **********
 **   18 **HESSE 
 **********

 FCN=   8012.178     FROM HESSE     STATUS=OK           425 CALLS     3360 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     67.924        41.479        .48701E-04   -1.4058    
   2  Prefactor     52.126        10.756        .55551E-04   -1.4263    
   3  Prefactor     47.034        27.318        .58467E-04   -1.4335    
   4  Prefactor     3.8146        3.5620        .15617E-03   -1.5317    
   5  Prefactor     .10000E-03    5.2256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.7236        6.7615        .16788E-03   -1.5229    
   7  Prefactor     .10000E-03    10.328        .21495E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    61.760        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.7368        .14410E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    21.026        .21041E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    21.131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10006E-03    24.930        .26355E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    20.140        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.2440        7.8746        .27433E-03   -1.5408    
  15  Prefactor     .10000E-03    23.606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.3674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    45.447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     14.668        11.497        .52289E-03   -1.4942    
  19  norm          10.952        9.1843        .12106E-03   -1.5046    
  20  norm          .10000E-03    2.9056        .14844E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.1958        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     6.6540        17.740        .15587E-03   -1.5192    
  23  norm          4.5458        1.4984        .58753E-04   -1.5282    
  24  Normalizat    1.2263        .19491        .24812E-03   -.85795    
  25  Prefactor     .85502        .16066        .24432E-03   -.97731    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.46745e-09
Minuit parameter uncertainties:
  1  41.4969
  2  10.7562
  3  27.3254
  4  3.56219
  5  5.30004e-07
  6  6.7624
  7  0.000126388
  8  2.75761e-05
  9  6.53529e-07
  10  0.000658158
  11  2.37695e-06
  12  0.00249174
  13  8.54574e-06
  14  7.87825
  15  2.02461e-06
  16  2.16853e-07
  17  9.32769e-05
  18  11.4992
  19  9.18548
  20  1.18147e-06
  21  8.58504e-05
  22  17.7536
  23  1.49843
  24  0.195023
  25  0.160749
Done.

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

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  1.000e-04  6.535e-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:  8.550e-01  1.607e-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.226e+00  1.950e-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.04e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.13e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/264568/likelihoodResults_351561601_351820801_4FGL_J2221.5-5225_daily_bin433.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) = 8012.17941335
delta logL = -0.00172069549626

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8012.17769257
delta logL = 8.45047907205e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6199       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2263       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85502       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=   8011.997     FROM MIGRAD    STATUS=CONVERGED    135 CALLS      278 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .11850E-01    .69595        .35462E-02    .10694E-01
   2  alpha         4.6013        4.5916        .17983       -.64878E-04
   3  Normalizat    1.1908        .53152E-01    .24812E-03    .12183E-03
   4  Prefactor     .87148        .40708E-01    .24432E-03    .83014E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0118501
  alpha      = 4.60127
  Normalizat = 1.19081
  Prefactor  = 0.871483
 **********
 **   18 **HESSE 
 **********

 FCN=   8011.997     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      307 TOTAL
                     EDM=   .17E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .11850E-01    1.6257        .14909E-03   -1.5686    
   2  alpha         4.6013        2.6391        .38540E-02    8.4266    
   3  Normalizat    1.1908        .14502        .99247E-05   -.86887    
   4  Prefactor     .87148        .11928        .97726E-05   -.97145    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.69388e-06
Minuit parameter uncertainties:
  1  0.276429
  2  8.26539
  3  0.145073
  4  0.119314
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/264568': 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) = 8011.99655556
delta logL = 0.181137094672

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  1.185e-02  2.764e-01  1.000e-04  1.000e+04 ( 1.000e-13)
346        alpha:  4.601e+00  8.265e+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.715e-01  1.193e-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.191e+00  1.451e-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/264568/cmap_HighResolution_351561601_351820801_4FGL_J2221.5-5225_daily_bin433.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.13e-05', job_status='DONE', photon_flux_upper_limit='2.04e-08', time_completed='2021-09-28 09:40:27.489487', job_id='264568', GAL2='0.87', fit_tolerance='1e-08', EG2='1.19', EG='1.23', time_epoch_completed='1632847227.49', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='1.81e-01', ts2='0.38', photon_index_error='0.00', photon_index='1.61' WHERE bin_id='433' AND source_name='4FGL J2221.5-5225' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:40:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0143>
Subject: Job 264568: <4FGL_J2221.5-5225_daily_bin433> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.5-5225_daily_bin433 335.391 -52.4307 351561601 351820801 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 :                                   867.34 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             356.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   886 sec.
    Turnaround time :                            888 sec.

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

