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


Performing analysis on: 4FGL_J2221.5-5225_daily_bin245
RA = 335.391, Dec = -52.4307
tmin = 302832001, tmax = 303091201
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='264287', job_status='RUN', time_executed='2021-09-28 09:28:18.650614', time_epoch_executed='1632846498.65' WHERE source_name='4FGL J2221.5-5225' and cadence='daily' and bin_id='245'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/264287

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/264287/ft1_4FGL_J2221.5-5225_daily_bin245.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/264287/ft2_4FGL_J2221.5-5225_daily_bin245.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/264287/ft1_4FGL_J2221.5-5225_daily_bin245.fits outfile=/scratch/kocevski/264287/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin245.fits ra=335.391 dec=-52.4307 rad=12.0 tmin=302832001.0 tmax=303091201.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.50
user 3.29
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/264287/ft1_filtered_4FGL_J2221.5-5225_daily_bin245.fits" evtable="EVENTS" scfile=/scratch/kocevski/264287/ft2_4FGL_J2221.5-5225_daily_bin245.fits sctable="SC_DATA" outfile=/scratch/kocevski/264287/ltcube_302832001_303091201_4FGL_J2221.5-5225_daily_bin245.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/264287/ft2_4FGL_J2221.5-5225_daily_bin245.fits
.....................!
real 15.71
user 15.31
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/264287/ft1_filtered_4FGL_J2221.5-5225_daily_bin245.fits evtable="EVENTS" scfile=/scratch/kocevski/264287/ft2_4FGL_J2221.5-5225_daily_bin245.fits sctable="SC_DATA" expcube=/scratch/kocevski/264287/ltcube_302832001_303091201_4FGL_J2221.5-5225_daily_bin245.fits outfile=/scratch/kocevski/264287/expmap_302832001_303091201_4FGL_J2221.5-5225_daily_bin245.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/264287/ltcube_302832001_303091201_4FGL_J2221.5-5225_daily_bin245.fits
.....................!
real 190.50
user 185.29
sys 4.72

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/264287/ft1_filtered_4FGL_J2221.5-5225_daily_bin245.fits scfile=/scratch/kocevski/264287/ft2_4FGL_J2221.5-5225_daily_bin245.fits outfile=/scratch/kocevski/264287/cmap_302832001_303091201_4FGL_J2221.5-5225_daily_bin245.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/264287/ft1_filtered_4FGL_J2221.5-5225_daily_bin245.fits scfile=/scratch/kocevski/264287/ft2_4FGL_J2221.5-5225_daily_bin245.fits outfile=/scratch/kocevski/264287/cmap_HighResolution_302832001_303091201_4FGL_J2221.5-5225_daily_bin245.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/264287/ft1_filtered_4FGL_J2221.5-5225_daily_bin245.fits evtable="EVENTS" scfile=/scratch/kocevski/264287/ft2_4FGL_J2221.5-5225_daily_bin245.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/264287/Model_4FGL_J2221.5-5225_daily_bin245.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/264287/ft1_filtered_4FGL_J2221.5-5225_daily_bin245.fits.....................!
real 44.44
user 43.06
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.091       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.4209       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.0195       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.9624       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.8027       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    5.7913       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.021       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.197       1.0000         .10000E-03   10000.    
    17 'Prefactor '    50.702       1.0000         .10000E-03   10000.    
    18 'Prefactor '    18.098       1.0000         .10000E-03   10000.    
    19 'norm      '    12.652       1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.9233       1.0000         .10000E-03   10000.    
    22 'Prefactor '    38.732       1.0000         .10000E-03   10000.    
    23 'norm      '    25.234       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2889       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .69627       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=   5409.478     FROM MIGRAD    STATUS=CONVERGED    569 CALLS     2871 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.371        .14140E-04** at limit **
   2  Prefactor     16.091        10.726        .46073E-06    .18006E-03
   3  Prefactor     .10000E-03    10.293       -.43565E-06** at limit **
   4  Prefactor     6.4208        5.2116       -.30555E-06    .29984E-03
   5  Prefactor     3.9644        163.04       -.18827E-03    .50326E-05
   6  Prefactor     2.9594        7.6869        .64357E-05    .37724E-03
   7  Prefactor     5.8027        4.5806       -.13785E-06    .76308E-04
   8  Prefactor     .10000E-03    82.494       -.47986E-05** at limit **
   9  norm          5.7911        6.5832        .50364E-06    .14622E-04
  10  Prefactor     .10000E-03    3.1975       -.14226E-06** at limit **
  11  Prefactor     .10000E-03    32.853       -.29751E-04** at limit **
  12  Prefactor     .10000E-03    2.2972       -.14745E-08** at limit **
  13  Prefactor     .10000E-03    16.967       -.40821E-05** at limit **
  14  Prefactor     12.022        12.005       -.87524E-06    .11888E-04
  15  Prefactor     .10000E-03    48.702        .32613E-04** at limit **
  16  Prefactor     14.198        11.282       -.49729E-06    .11314E-03
  17  Prefactor     50.703        42.609        .35216E-06    .24410E-04
  18  Prefactor     18.099        22.686        .72251E-06    .15436E-04
  19  norm          12.652        13.886        .17811E-05    .22390E-04
  20  norm          .10000E-03    3.1908       -.31567E-06** at limit **
  21  Prefactor     4.9345        11.444        .20033E-04    .19631E-03
  22  Prefactor     38.670        47.492       -.65074E-04   -.57340E-04
  23  norm          25.233        3.8925        .11250E-05   -.33492E-03
  24  Normalizat    1.2888        .21286        .12207E-04   -.12350E-03
  25  Prefactor     .69636        .15939       -.21565E-05    .68702E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 16.0913
  Prefactor  = 0.0001
  Prefactor  = 6.4208
  Prefactor  = 3.96438
  Prefactor  = 2.95943
  Prefactor  = 5.80266
  Prefactor  = 0.0001
  norm       = 5.79112
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.0217
  Prefactor  = 0.0001
  Prefactor  = 14.1981
  Prefactor  = 50.7029
  Prefactor  = 18.0988
  norm       = 12.6523
  norm       = 0.0001
  Prefactor  = 4.9345
  Prefactor  = 38.6697
  norm       = 25.2335
  Normalizat = 1.28876
  Prefactor  = 0.696359
 **********
 **   18 **HESSE 
 **********

 FCN=   5409.478     FROM HESSE     STATUS=OK           425 CALLS     3296 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     16.091        10.724        .99845E-04   -1.4905    
   3  Prefactor     .10000E-03    10.306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.4208        5.2085        .14432E-03   -1.5201    
   5  Prefactor     3.9644        162.98        .20114E-03   -1.5310    
   6  Prefactor     2.9594        7.6100        .23593E-03   -1.5364    
   7  Prefactor     5.8027        4.5833        .13326E-03   -1.5226    
   8  Prefactor     .10000E-03    82.535        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.7911        6.5807        .16689E-03   -1.5227    
  10  Prefactor     .10000E-03    3.2396        .12835E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    32.877        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.3024        .10885E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    17.009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     12.022        12.016        .11554E-03   -1.5014    
  15  Prefactor     .10000E-03    48.690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     14.198        11.307        .10630E-03   -1.4954    
  17  Prefactor     50.703        42.628        .56321E-04   -1.4283    
  18  Prefactor     18.099        22.703        .94148E-04   -1.4857    
  19  norm          12.652        13.886        .11262E-03   -1.4996    
  20  norm          .10000E-03    3.1921        .12830E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.9345        11.366        .18127E-03   -1.5264    
  22  Prefactor     38.670        47.375        .64403E-04   -1.4463    
  23  norm          25.233        3.8985        .51236E-04   -1.4703    
  24  Normalizat    1.2888        .24709        .25750E-03   -.83902    
  25  Prefactor     .69636        .18450        .26593E-03   -1.0367    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.81046e-09
Minuit parameter uncertainties:
  1  4.89858e-05
  2  10.725
  3  3.39345e-05
  4  5.20891
  5  50.987
  6  7.61247
  7  4.58361
  8  0.000178095
  9  6.58154
  10  7.89585e-06
  11  3.62602e-05
  12  1.24397e-06
  13  2.40072e-05
  14  12.0185
  15  3.27526e-05
  16  11.3084
  17  42.6538
  18  22.7137
  19  13.8898
  20  9.80541e-06
  21  11.371
  22  47.4208
  23  3.89854
  24  0.24732
  25  0.184658
Done.

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

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  5.791e+00  6.582e+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:  6.964e-01  1.847e-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.289e+00  2.473e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.81
Ra Dec: 335.391 -52.431
Photon Index (Fixed Index): 1.61 +/- 0.00
Photon Flux (Fixed Index): 9.66e-09 +/- 1.10e-08
Energy Flux (Fixed Index): 1.96e-05 +/- 2.22e-05

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

Saving results to:
/scratch/kocevski/264287/likelihoodResults_302832001_303091201_4FGL_J2221.5-5225_daily_bin245.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) = 5409.45413173
delta logL = 0.0233924733138

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5409.45314322
delta logL = 0.0243809854855

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.5161       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8010       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2870       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69630       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=   5409.453     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      231 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.5170        6.5832        .17107E-03   -.10764E-02
   2  alpha         1.8013        .86291        .16172E-01   -.12917E-03
   3  Normalizat    1.2870        .23120        .25762E-03    .24398E-03
   4  Prefactor     .69631        .18202        .26591E-03    .28581E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.51701
  alpha      = 1.80126
  Normalizat = 1.28702
  Prefactor  = 0.696312
 **********
 **   18 **HESSE 
 **********

 FCN=   5409.453     FROM HESSE     STATUS=OK            23 CALLS      254 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.5170        6.4622        .34214E-04   -1.5238    
   2  alpha         1.8013        .84802        .64688E-03   -.28327    
   3  Normalizat    1.2870        .23135        .51524E-04   -.83955    
   4  Prefactor     .69631        .18215        .10636E-04   -1.0367    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.37055e-09
Minuit parameter uncertainties:
  1  6.463
  2  0.866729
  3  0.231536
  4  0.182307
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/264287': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5409.4531431
delta logL = 0.0243811087148

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  5.517e+00  6.463e+00  1.000e-04  1.000e+04 ( 1.000e-13)
346        alpha:  1.801e+00  8.667e-01  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.963e-01  1.823e-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.287e+00  2.315e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.86
Ra Dec: 335.391 -52.431
Photon Index (Free Index): 1.80 +/- 0.87
Photon Flux (Free Index): 1.22e-08 +/- 1.82e-08
Energy Flux (Free Index): 1.55e-05 +/- 2.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/264287/cmap_HighResolution_302832001_303091201_4FGL_J2221.5-5225_daily_bin245.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.01e-05', comment='SUCCESS', photon_flux='9.66e-09', energy_flux2='1.55e-05', photon_flux_error='1.10e-08', dlogl='2.44e-02', energy_flux='1.96e-05', photon_flux2='1.22e-08', job_status='DONE', time_completed='2021-09-28 09:39:29.194788', photon_index_error2='0.87', photon_index2='1.80', ts='1.81', fit_tolerance='1e-08', GAL='0.70', photon_index_error='0.00', photon_flux_upper_limit='4.45e-08', energy_flux_error2='2.31e-05', EG='1.29', time_epoch_completed='1632847169.19', return_code='0', job_id='264287', GAL2='0.70', EG2='1.29', return_code2='0', energy_flux_error='2.22e-05', photon_flux_error2='1.82e-08', ts2='1.86', photon_index='1.61' WHERE bin_id='245' AND source_name='4FGL J2221.5-5225' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:39:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 264287: <4FGL_J2221.5-5225_daily_bin245> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.5-5225_daily_bin245 335.391 -52.4307 302832001 303091201 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 :                                   669.31 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             254.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   848 sec.
    Turnaround time :                            850 sec.

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

