/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 130 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 = 7365
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2221.5-5225_daily_bin25
RA = 335.391, Dec = -52.4307
tmin = 245808001, tmax = 246067201
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='262919', job_status='RUN', time_executed='2021-09-28 09:22:54.957965', time_epoch_executed='1632846174.96' WHERE source_name='4FGL J2221.5-5225' and cadence='daily' and bin_id='25'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/262919

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/262919/ft1_4FGL_J2221.5-5225_daily_bin25.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/262919/ft2_4FGL_J2221.5-5225_daily_bin25.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/262919/ft1_4FGL_J2221.5-5225_daily_bin25.fits outfile=/scratch/kocevski/262919/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin25.fits ra=335.391 dec=-52.4307 rad=12.0 tmin=245808001.0 tmax=246067201.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 1.48
user 1.31
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/262919/ft1_filtered_4FGL_J2221.5-5225_daily_bin25.fits" evtable="EVENTS" scfile=/scratch/kocevski/262919/ft2_4FGL_J2221.5-5225_daily_bin25.fits sctable="SC_DATA" outfile=/scratch/kocevski/262919/ltcube_245808001_246067201_4FGL_J2221.5-5225_daily_bin25.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/262919/ft2_4FGL_J2221.5-5225_daily_bin25.fits
.....................!
real 12.88
user 12.52
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/262919/ft1_filtered_4FGL_J2221.5-5225_daily_bin25.fits evtable="EVENTS" scfile=/scratch/kocevski/262919/ft2_4FGL_J2221.5-5225_daily_bin25.fits sctable="SC_DATA" expcube=/scratch/kocevski/262919/ltcube_245808001_246067201_4FGL_J2221.5-5225_daily_bin25.fits outfile=/scratch/kocevski/262919/expmap_245808001_246067201_4FGL_J2221.5-5225_daily_bin25.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/262919/ltcube_245808001_246067201_4FGL_J2221.5-5225_daily_bin25.fits
.....................!
real 191.05
user 185.98
sys 4.76

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/262919/ft1_filtered_4FGL_J2221.5-5225_daily_bin25.fits scfile=/scratch/kocevski/262919/ft2_4FGL_J2221.5-5225_daily_bin25.fits outfile=/scratch/kocevski/262919/cmap_245808001_246067201_4FGL_J2221.5-5225_daily_bin25.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.52
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/262919/ft1_filtered_4FGL_J2221.5-5225_daily_bin25.fits scfile=/scratch/kocevski/262919/ft2_4FGL_J2221.5-5225_daily_bin25.fits outfile=/scratch/kocevski/262919/cmap_HighResolution_245808001_246067201_4FGL_J2221.5-5225_daily_bin25.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/262919/ft1_filtered_4FGL_J2221.5-5225_daily_bin25.fits evtable="EVENTS" scfile=/scratch/kocevski/262919/ft2_4FGL_J2221.5-5225_daily_bin25.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/262919/Model_4FGL_J2221.5-5225_daily_bin25.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/262919/ft1_filtered_4FGL_J2221.5-5225_daily_bin25.fits.....................!
real 48.20
user 46.83
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.0138       1.0000         .10000E-03   10000.    
     3 'Prefactor '    41.457       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.0264       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.7077       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.7080       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.5529       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10274E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    6.0664       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .14172E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.4421       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.0879       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .67346E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.1663       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.7726       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.8376       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .97198       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0287       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=   6294.937     FROM MIGRAD    STATUS=CONVERGED    578 CALLS     2883 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    64.188        .34384E-06** at limit **
   2  Prefactor     7.0132        8.6376        .18574E-06    .76990E-05
   3  Prefactor     41.457        29.825        .39432E-07   -.45477E-05
   4  Prefactor     2.0260        3.5970        .13624E-06    .24976E-04
   5  Prefactor     8.7050        32.539       -.15338E-05    .88096E-05
   6  Prefactor     3.7097        7.7458        .35562E-05    .25679E-03
   7  Prefactor     6.5525        3.5461       -.57562E-07   -.75633E-05
   8  Prefactor     .10000E-03    85.536        .14436E-05** at limit **
   9  norm          6.0660        6.2858        .33889E-06    .51057E-04
  10  Prefactor     .10003E-03    2.2611       -.12986E-05** at limit **
  11  Prefactor     .10000E-03    72.487       -.15672E-05** at limit **
  12  Prefactor     3.4398        5.7549        .18807E-06    .76669E-04
  13  Prefactor     4.0997        35.131       -.30400E-05   -.69404E-04
  14  Prefactor     .10000E-03    5.8411       -.77842E-07** at limit **
  15  Prefactor     .10001E-03    750.47        .32552E-04** at limit **
  16  Prefactor     1.1671        6.0033        .12085E-05    .93543E-04
  17  Prefactor     .10000E-03    13.978        .88525E-06** at limit **
  18  Prefactor     .10000E-03    12.394       -.14882E-05** at limit **
  19  norm          .10000E-03    6.7653        .84675E-07** at limit **
  20  norm          4.7726        4.7904       -.42346E-06   -.87943E-04
  21  Prefactor     .10000E-03    2.1040        .40080E-08** at limit **
  22  Prefactor     .10000E-03    8.2064       -.28126E-06** at limit **
  23  norm          1.8375        1.1671        .77218E-07    .19610E-03
  24  Normalizat    .97205        .18291       -.33757E-06    .66593E-04
  25  Prefactor     1.0287        .14893       -.48025E-06    .42096E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 7.01319
  Prefactor  = 41.4573
  Prefactor  = 2.02605
  Prefactor  = 8.705
  Prefactor  = 3.70974
  Prefactor  = 6.55249
  Prefactor  = 0.0001
  norm       = 6.066
  Prefactor  = 0.000100034
  Prefactor  = 0.0001
  Prefactor  = 3.43981
  Prefactor  = 4.09967
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 1.16706
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.77262
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.83752
  Normalizat = 0.97205
  Prefactor  = 1.02874
 **********
 **   18 **HESSE 
 **********

 FCN=   6294.937     FROM HESSE     STATUS=OK           431 CALLS     3314 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    64.459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.0132        8.6331        .15148E-03   -1.5178    
   3  Prefactor     41.457        29.798        .62258E-04   -1.4419    
   4  Prefactor     2.0260        3.5741        .19097E-03   -1.5423    
   5  Prefactor     8.7050        32.575        .13584E-03   -1.5118    
   6  Prefactor     3.7097        7.8307        .10486E-02   -1.5323    
   7  Prefactor     6.5525        3.5461        .10564E-03   -1.5196    
   8  Prefactor     .10000E-03    85.695        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          6.0660        6.2834        .81506E-03   -1.5215    
  10  Prefactor     .10003E-03    10.467        .20332E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    73.004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.4398        5.7135        .21800E-03   -1.5337    
  13  Prefactor     4.0997        35.269        .19940E-03   -1.5303    
  14  Prefactor     .10000E-03    5.8787        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10001E-03    758.47        .42003E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.1671        5.9893        .37655E-03   -1.5492    
  17  Prefactor     .10000E-03    13.995        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    12.477        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    6.8152        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.7726        4.7969        .84492E-03   -1.5271    
  21  Prefactor     .10000E-03    2.1084        .11237E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    8.2203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.8375        1.1673        .65446E-04   -1.5437    
  24  Normalizat    .97205        .20955        .25861E-03   -.93973    
  25  Prefactor     1.0287        .17231        .21468E-03   -.91777    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.40038e-09
Minuit parameter uncertainties:
  1  2.03194e-05
  2  8.63459
  3  29.8088
  4  3.57445
  5  32.6411
  6  7.83288
  7  3.54625
  8  5.4911e-05
  9  6.28411
  10  0.00118647
  11  2.55535e-05
  12  5.71442
  13  24.0681
  14  3.04235e-06
  15  0.00410565
  16  5.28827
  17  1.49743e-05
  18  8.53536e-06
  19  1.15644e-06
  20  4.79733
  21  5.08985e-07
  22  1.78254e-06
  23  1.1673
  24  0.209729
  25  0.1724
Done.

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

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  6.066e+00  6.284e+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:  1.029e+00  1.724e-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:  9.720e-01  2.097e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.85
Ra Dec: 335.391 -52.431
Photon Index (Fixed Index): 1.61 +/- 0.00
Photon Flux (Fixed Index): 1.01e-08 +/- 1.05e-08
Energy Flux (Fixed Index): 2.05e-05 +/- 2.12e-05

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

Saving results to:
/scratch/kocevski/262919/likelihoodResults_245808001_246067201_4FGL_J2221.5-5225_daily_bin25.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) = 6294.87503593
delta logL = 0.0620680799721

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6294.87042896
delta logL = 0.066675045643

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.4765       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8659       1.0000          .0000       5.0000    
     3 'Normalizat'    .96991       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0286       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=   6294.870     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      211 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.4733        207.94        .42924E-02    .13021E-03
   2  alpha         1.8666        2.5860        .31636        .43985E-04
   3  Normalizat    .97019        .94501E-01    .45789E-01    .47389E-04
   4  Prefactor     1.0285        .63551E-01    .41367E-01    .52005E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.47331
  alpha      = 1.86665
  Normalizat = 0.970193
  Prefactor  = 1.02848
 **********
 **   18 **HESSE 
 **********

 FCN=   6294.870     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.4733        6.2421        .17170E-03   -1.5240    
   2  alpha         1.8666        .72296        .16600E-01   -.25613    
   3  Normalizat    .97019        .19579        .25880E-03   -.94036    
   4  Prefactor     1.0285        .16764        .21467E-03   -.91786    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35303e-11
Minuit parameter uncertainties:
  1  6.24288
  2  0.734186
  3  0.195931
  4  0.167723
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/262919': 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) = 6294.87042707
delta logL = 0.0666769385434

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  5.473e+00  6.243e+00  1.000e-04  1.000e+04 ( 1.000e-13)
346        alpha:  1.867e+00  7.342e-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:  1.028e+00  1.677e-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:  9.702e-01  1.959e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.98
Ra Dec: 335.391 -52.431
Photon Index (Free Index): 1.87 +/- 0.73
Photon Flux (Free Index): 1.36e-08 +/- 1.64e-08
Energy Flux (Free Index): 1.48e-05 +/- 2.02e-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/262919/cmap_HighResolution_245808001_246067201_4FGL_J2221.5-5225_daily_bin25.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.05e-05', comment='SUCCESS', photon_flux='1.01e-08', energy_flux2='1.48e-05', photon_flux_error='1.05e-08', dlogl='6.67e-02', energy_flux='2.05e-05', photon_flux2='1.36e-08', job_status='DONE', time_completed='2021-09-28 09:34:38.898773', photon_index_error2='0.73', photon_index2='1.87', ts='1.85', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='3.98e-08', energy_flux_error2='2.02e-05', EG='0.97', time_epoch_completed='1632846878.9', return_code='0', job_id='262919', GAL2='1.03', EG2='0.97', return_code2='0', energy_flux_error='2.12e-05', photon_flux_error2='1.64e-08', ts2='1.98', photon_index='1.61' WHERE bin_id='25' AND source_name='4FGL J2221.5-5225' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:34:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 262919: <4FGL_J2221.5-5225_daily_bin25> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.5-5225_daily_bin25 335.391 -52.4307 245808001 246067201 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 :                                   705.01 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             286.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   842 sec.
    Turnaround time :                            845 sec.

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

