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


Performing analysis on: 4FGL_J2221.5-5225_daily_bin153
RA = 335.391, Dec = -52.4307
tmin = 278985601, tmax = 279244801
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='263114', job_status='RUN', time_executed='2021-09-28 09:24:40.850342', time_epoch_executed='1632846280.85' WHERE source_name='4FGL J2221.5-5225' and cadence='daily' and bin_id='153'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/263114

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/263114/ft1_4FGL_J2221.5-5225_daily_bin153.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/263114/ft2_4FGL_J2221.5-5225_daily_bin153.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/263114/ft1_4FGL_J2221.5-5225_daily_bin153.fits outfile=/scratch/kocevski/263114/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin153.fits ra=335.391 dec=-52.4307 rad=12.0 tmin=278985601.0 tmax=279244801.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.79
user 3.56
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/263114/ft1_filtered_4FGL_J2221.5-5225_daily_bin153.fits" evtable="EVENTS" scfile=/scratch/kocevski/263114/ft2_4FGL_J2221.5-5225_daily_bin153.fits sctable="SC_DATA" outfile=/scratch/kocevski/263114/ltcube_278985601_279244801_4FGL_J2221.5-5225_daily_bin153.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/263114/ft2_4FGL_J2221.5-5225_daily_bin153.fits
.....................!
real 11.63
user 11.27
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/263114/ft1_filtered_4FGL_J2221.5-5225_daily_bin153.fits evtable="EVENTS" scfile=/scratch/kocevski/263114/ft2_4FGL_J2221.5-5225_daily_bin153.fits sctable="SC_DATA" expcube=/scratch/kocevski/263114/ltcube_278985601_279244801_4FGL_J2221.5-5225_daily_bin153.fits outfile=/scratch/kocevski/263114/expmap_278985601_279244801_4FGL_J2221.5-5225_daily_bin153.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/263114/ltcube_278985601_279244801_4FGL_J2221.5-5225_daily_bin153.fits
.....................!
real 191.68
user 185.92
sys 5.39

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/263114/ft1_filtered_4FGL_J2221.5-5225_daily_bin153.fits scfile=/scratch/kocevski/263114/ft2_4FGL_J2221.5-5225_daily_bin153.fits outfile=/scratch/kocevski/263114/cmap_278985601_279244801_4FGL_J2221.5-5225_daily_bin153.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/263114/ft1_filtered_4FGL_J2221.5-5225_daily_bin153.fits scfile=/scratch/kocevski/263114/ft2_4FGL_J2221.5-5225_daily_bin153.fits outfile=/scratch/kocevski/263114/cmap_HighResolution_278985601_279244801_4FGL_J2221.5-5225_daily_bin153.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.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.604       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.6963       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10186E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .15853E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .42589       1.0000         .10000E-03   10000.    
     8 'Prefactor '    114.08       1.0000         .10000E-03   10000.    
     9 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.6419       1.0000         .10000E-03   10000.    
    13 'Prefactor '    33.200       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10223E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    5.9829       1.0000         .10000E-03   10000.    
    20 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    4.4918       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.5922       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .69852       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=   5839.983     FROM MIGRAD    STATUS=CONVERGED    585 CALLS     2872 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.572        31.661        .34747E-06    .36645E-04
   2  Prefactor     .10000E-03    3.5706        .50485E-06** at limit **
   3  Prefactor     .10000E-03    51.050        .28142E-05** at limit **
   4  Prefactor     1.6977        3.8142        .35456E-06    .86104E-04
   5  Prefactor     .10000E-03    17.487        .15121E-06** at limit **
   6  Prefactor     .10000E-03    22.761        .27214E-05** at limit **
   7  Prefactor     .43009        3.3187        .83510E-06   -.60330E-03
   8  Prefactor     114.37        115.93        .12690E-05   -.14236E-04
   9  norm          .10000E-03    3.3630        .12031E-07** at limit **
  10  Prefactor     .10000E-03    1.8358        .52091E-06** at limit **
  11  Prefactor     .10000E-03    16.405        .25244E-06** at limit **
  12  Prefactor     5.6410        8.8246       -.69177E-07    .29166E-04
  13  Prefactor     33.232        37.124       -.10033E-05   -.66423E-04
  14  Prefactor     .10000E-03    15.676        .68566E-06** at limit **
  15  Prefactor     .10000E-03    34.780        .46810E-06** at limit **
  16  Prefactor     .10000E-03    7.1922        .72860E-06** at limit **
  17  Prefactor     .10000E-03    23.447        .57145E-06** at limit **
  18  Prefactor     .10000E-03    7.9726        .36549E-06** at limit **
  19  norm          5.9825        14.046       -.11708E-05   -.14890E-03
  20  norm          .10000E-03    2.1424        .22695E-07** at limit **
  21  Prefactor     .10000E-03    2.5878        .11083E-06** at limit **
  22  Prefactor     .10000E-03    20.216        .27924E-06** at limit **
  23  norm          4.4914        1.7530       -.80344E-07   -.23793E-03
  24  Normalizat    1.5924        .23646        .33091E-05   -.16776E-03
  25  Prefactor     .69845        .18192       -.41910E-05   -.14486E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.5717
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 1.69766
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.430086
  Prefactor  = 114.375
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.64097
  Prefactor  = 33.2319
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.9825
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.49142
  Normalizat = 1.5924
  Prefactor  = 0.698447
 **********
 **   18 **HESSE 
 **********

 FCN=   5839.983     FROM HESSE     STATUS=OK           421 CALLS     3293 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.572        31.682        .76251E-04   -1.4657    
   2  Prefactor     .10000E-03    3.6184        .14158E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    52.629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.6977        3.7996        .21317E-03   -1.5447    
   5  Prefactor     .10000E-03    17.508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    23.305        .37349E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .43009        7.4471        .22324E-02   -1.5577    
   8  Prefactor     114.37        115.94        .18833E-03   -1.3565    
   9  norm          .10000E-03    3.3798        .13688E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.8780        .10176E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    16.414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.6410        8.8015        .16912E-03   -1.5233    
  13  Prefactor     33.232        37.010        .69544E-04   -1.4554    
  14  Prefactor     .10000E-03    16.026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    34.816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.2895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    23.492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.0030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.9825        14.197        .82081E-03   -1.5219    
  20  norm          .10000E-03    2.1426        .10924E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.5932        .12008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    20.316        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          4.4914        1.7538        .61098E-04   -1.5284    
  24  Normalizat    1.5924        .24668        .23277E-03   -.75214    
  25  Prefactor     .69845        .18858        .26419E-03   -1.0359    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04181e-09
Minuit parameter uncertainties:
  1  31.7014
  2  3.39939e-05
  3  0.000580798
  4  3.80016
  5  6.5944e-06
  6  0.00042017
  7  3.57943
  8  116.172
  9  9.92734e-07
  10  2.29443e-05
  11  3.73821e-05
  12  8.80349
  13  37.0359
  14  0.000101322
  15  0.000147304
  16  6.62348e-05
  17  0.000111558
  18  3.27704e-05
  19  14.205
  20  1.312e-06
  21  5.84029e-06
  22  1.64338e-05
  23  1.7538
  24  0.246873
  25  0.188755
Done.

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

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  1.000e-04  9.927e-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:  6.984e-01  1.888e-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.592e+00  2.469e-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.60e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.27e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/263114/likelihoodResults_278985601_279244801_4FGL_J2221.5-5225_daily_bin153.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) = 5839.98416922
delta logL = -0.00136030722479

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5839.98280889
delta logL = 2.93339326163e-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.6160       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5924       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69845       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=   5839.983     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      227 TOTAL
                     EDM=   .88E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    235.93        .13715E-02** at limit **
   2  alpha         1.8904        4.0509        .50000        .25557E-07
   3  Normalizat    1.5924        .45286E-01    .23277E-03   -.62212E-04
   4  Prefactor     .69845        .35906E-01    .26419E-03   -.55900E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.89039
  Normalizat = 1.5924
  Prefactor  = 0.698447
 **********
 **   18 **HESSE 
 **********

 FCN=   5839.983     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      256 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          .10000E-03    756.34        .27430E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8904        2.9451        .50000       -.24633    
   3  Normalizat    1.5924        .13792        .46555E-04   -.75214    
   4  Prefactor     .69845        .10931        .10567E-04   -1.0359    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.90139e-10
Minuit parameter uncertainties:
  1  7.49745e-05
  2  2605.94
  3  0.137951
  4  0.109346
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/263114': 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) = 5839.98280831
delta logL = 6.07904439676e-07

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  1.000e-04  7.497e-05  1.000e-04  1.000e+04 ( 1.000e-13)
346        alpha:  1.890e+00  2.606e+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:  6.984e-01  1.093e-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.592e+00  1.380e-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/263114/cmap_HighResolution_278985601_279244801_4FGL_J2221.5-5225_daily_bin153.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.27e-05', job_status='DONE', photon_flux_upper_limit='2.60e-08', time_completed='2021-09-28 09:36:07.206045', job_id='263114', GAL2='0.70', fit_tolerance='1e-08', EG2='1.59', EG='1.59', time_epoch_completed='1632846967.21', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.70', dlogl='6.08e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.61' WHERE bin_id='153' AND source_name='4FGL J2221.5-5225' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:36:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 263114: <4FGL_J2221.5-5225_daily_bin153> in cluster <slac> Done

Job <4FGL_J2221.5-5225_daily_bin153> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 09:20:54 2021
Job was executed on host(s) <bullet0213>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:20:57 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:20:57 2021
Terminated at Tue Sep 28 09:36:07 2021
Results reported at Tue Sep 28 09:36:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.5-5225_daily_bin153 335.391 -52.4307 278985601 279244801 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 :                                   686.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             240.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   910 sec.
    Turnaround time :                            913 sec.

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

