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


Performing analysis on: 4FGL_J2221.5-5225_daily_bin1075
RA = 335.391, Dec = -52.4307
tmin = 517968001, tmax = 518227201
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='267186', job_status='RUN', time_executed='2021-09-28 09:36:42.759784', time_epoch_executed='1632847002.76' WHERE source_name='4FGL J2221.5-5225' and cadence='daily' and bin_id='1075'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/267186

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/267186/ft1_4FGL_J2221.5-5225_daily_bin1075.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/267186/ft2_4FGL_J2221.5-5225_daily_bin1075.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/267186/ft1_4FGL_J2221.5-5225_daily_bin1075.fits outfile=/scratch/kocevski/267186/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin1075.fits ra=335.391 dec=-52.4307 rad=12.0 tmin=517968001.0 tmax=518227201.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.72
user 3.49
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/267186/ft2_4FGL_J2221.5-5225_daily_bin1075.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/267186/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin1075.fits evtable="EVENTS" outfile="/scratch/kocevski/267186/ft1_filtered_4FGL_J2221.5-5225_daily_bin1075.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/267186/ft1_filtered_4FGL_J2221.5-5225_daily_bin1075.fits" evtable="EVENTS" scfile=/scratch/kocevski/267186/ft2_4FGL_J2221.5-5225_daily_bin1075.fits sctable="SC_DATA" outfile=/scratch/kocevski/267186/ltcube_517968001_518227201_4FGL_J2221.5-5225_daily_bin1075.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/267186/ft2_4FGL_J2221.5-5225_daily_bin1075.fits
.....................!
real 11.95
user 11.58
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/267186/ft1_filtered_4FGL_J2221.5-5225_daily_bin1075.fits evtable="EVENTS" scfile=/scratch/kocevski/267186/ft2_4FGL_J2221.5-5225_daily_bin1075.fits sctable="SC_DATA" expcube=/scratch/kocevski/267186/ltcube_517968001_518227201_4FGL_J2221.5-5225_daily_bin1075.fits outfile=/scratch/kocevski/267186/expmap_517968001_518227201_4FGL_J2221.5-5225_daily_bin1075.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/267186/ltcube_517968001_518227201_4FGL_J2221.5-5225_daily_bin1075.fits
.....................!
real 190.18
user 185.17
sys 4.67

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/267186/ft1_filtered_4FGL_J2221.5-5225_daily_bin1075.fits scfile=/scratch/kocevski/267186/ft2_4FGL_J2221.5-5225_daily_bin1075.fits outfile=/scratch/kocevski/267186/cmap_517968001_518227201_4FGL_J2221.5-5225_daily_bin1075.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/267186/ft1_filtered_4FGL_J2221.5-5225_daily_bin1075.fits scfile=/scratch/kocevski/267186/ft2_4FGL_J2221.5-5225_daily_bin1075.fits outfile=/scratch/kocevski/267186/cmap_HighResolution_517968001_518227201_4FGL_J2221.5-5225_daily_bin1075.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.57
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/267186/ft1_filtered_4FGL_J2221.5-5225_daily_bin1075.fits evtable="EVENTS" scfile=/scratch/kocevski/267186/ft2_4FGL_J2221.5-5225_daily_bin1075.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/267186/Model_4FGL_J2221.5-5225_daily_bin1075.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/267186/ft1_filtered_4FGL_J2221.5-5225_daily_bin1075.fits....................!
real 46.24
user 44.86
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.740       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.4892       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.3442       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    7.0228       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .87023       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .23342E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   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 '    16.688       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.5277       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1928       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0805       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=   6094.516     FROM MIGRAD    STATUS=CONVERGED    574 CALLS     2874 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.736        48.521       -.30331E-06   -.27308E-04
   2  Prefactor     1.4893        8.6857        .25930E-05    .78551E-04
   3  Prefactor     .10000E-03    24.807       -.55233E-06** at limit **
   4  Prefactor     .10000E-03    1.9231       -.40828E-07** at limit **
   5  Prefactor     .10000E-03    20.285        .34221E-06** at limit **
   6  Prefactor     .10000E-03    6.0191        .64329E-07** at limit **
   7  Prefactor     4.3454        4.7681        .43869E-06    .53554E-04
   8  Prefactor     .10000E-03    73.862       -.48013E-06** at limit **
   9  norm          7.0227        6.6084       -.10505E-05   -.20006E-03
  10  Prefactor     .86615        4.6411        .17955E-05   -.37869E-03
  11  Prefactor     .10000E-03    27.124       -.36627E-06** at limit **
  12  Prefactor     .10000E-03    5.9219       -.22228E-06** at limit **
  13  Prefactor     .10000E-03    35.343        .11035E-05** at limit **
  14  Prefactor     .10000E-03    8.8011        .12697E-06** at limit **
  15  Prefactor     .10000E-03    28.459       -.21705E-06** at limit **
  16  Prefactor     .10000E-03    3.0541       -.34598E-08** at limit **
  17  Prefactor     16.679        41.768        .39178E-06   -.32979E-04
  18  Prefactor     .10000E-03    4.9155        .91161E-07** at limit **
  19  norm          .10000E-03    5.1367       -.12847E-06** at limit **
  20  norm          .10000E-03    3.8381       -.27666E-07** at limit **
  21  Prefactor     .10000E-03    2.5238       -.50511E-08** at limit **
  22  Prefactor     .10000E-03    8.5116       -.67097E-07** at limit **
  23  norm          1.5274        1.2862        .69680E-07    .50650E-04
  24  Normalizat    1.1929        .19944       -.38600E-06   -.13042E-03
  25  Prefactor     1.0805        .15962       -.12758E-06   -.14199E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.7356
  Prefactor  = 1.48929
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.34543
  Prefactor  = 0.000100001
  norm       = 7.02268
  Prefactor  = 0.866152
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.679
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.52738
  Normalizat = 1.19286
  Prefactor  = 1.08048
 **********
 **   18 **HESSE 
 **********

 FCN=   6094.516     FROM HESSE     STATUS=OK           421 CALLS     3295 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.736        48.632        .72266E-04   -1.4599    
   2  Prefactor     1.4893        8.9837        .35136E-03   -1.5464    
   3  Prefactor     .10000E-03    24.922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.9380        .10570E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    20.344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.1037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.3454        4.7827        .16840E-03   -1.5291    
   8  Prefactor     .10000E-03    73.972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          7.0227        6.7191        .75690E-03   -1.5178    
  10  Prefactor     .86615        6.1991        .26931E-02   -1.5522    
  11  Prefactor     .10000E-03    27.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    21.219        .35214E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    35.812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.9073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    28.469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.0579        .13324E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     16.679        41.548        .98042E-04   -1.4891    
  18  Prefactor     .10000E-03    4.9219        .16907E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    5.1425        .17286E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    3.8749        .14923E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.5318        .12111E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    8.5201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.5274        1.2730        .78408E-04   -1.5461    
  24  Normalizat    1.1929        .22978        .25754E-03   -.86824    
  25  Prefactor     1.0805        .18741        .22421E-03   -.90093    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.17177e-10
Minuit parameter uncertainties:
  1  48.6952
  2  7.31695
  3  0.000210335
  4  2.5126e-06
  5  0.00013803
  6  1.05745e-05
  7  4.78312
  8  0.000432419
  9  6.71978
  10  4.6348
  11  0.000208385
  12  0.000346173
  13  0.000591352
  14  1.74498e-05
  15  0.000115185
  16  2.2703e-06
  17  41.62
  18  2.12682e-05
  19  2.87716e-05
  20  2.91313e-06
  21  2.877e-07
  22  1.86668e-05
  23  1.27303
  24  0.22998
  25  0.187527
Done.

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

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  7.023e+00  6.720e+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.080e+00  1.875e-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.193e+00  2.300e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.20
Ra Dec: 335.391 -52.431
Photon Index (Fixed Index): 1.61 +/- 0.00
Photon Flux (Fixed Index): 1.17e-08 +/- 1.12e-08
Energy Flux (Fixed Index): 2.37e-05 +/- 2.27e-05

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) = 6094.51611738
delta logL = 0.000292218581308

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6094.51611316
delta logL = 0.000296431004244

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.0096       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5904       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1929       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0806       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=   6094.516     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      253 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.9989        6.7597        .15152E-03    .59243E-03
   2  alpha         1.5888        .79563        .18729E-01    .48726E-04
   3  Normalizat    1.1930        .21928        .25753E-03   -.23844E-03
   4  Prefactor     1.0806        .18383        .22420E-03   -.39055E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.99886
  alpha      = 1.5888
  Normalizat = 1.19301
  Prefactor  = 1.08058
 **********
 **   18 **HESSE 
 **********

 FCN=   6094.516     FROM HESSE     STATUS=OK            23 CALLS      276 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.9989        6.7919        .60609E-05   -1.5179    
   2  alpha         1.5888        .79944        .74916E-03   -.37308    
   3  Normalizat    1.1930        .21945        .51506E-04   -.86819    
   4  Prefactor     1.0806        .18399        .44841E-04   -.90090    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.0409e-10
Minuit parameter uncertainties:
  1  6.79267
  2  0.816045
  3  0.219619
  4  0.184094
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/267186': 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) = 6094.51611019
delta logL = 0.000299404092402

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  6.999e+00  6.793e+00  1.000e-04  1.000e+04 ( 1.000e-13)
346        alpha:  1.589e+00  8.160e-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.081e+00  1.841e-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.193e+00  2.196e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.20
Ra Dec: 335.391 -52.431
Photon Index (Free Index): 1.59 +/- 0.82
Photon Flux (Free Index): 1.14e-08 +/- 1.75e-08
Energy Flux (Free Index): 2.42e-05 +/- 3.13e-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/267186/cmap_HighResolution_517968001_518227201_4FGL_J2221.5-5225_daily_bin1075.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.17e-08', energy_flux2='2.42e-05', photon_flux_error='1.12e-08', dlogl='2.99e-04', energy_flux='2.37e-05', photon_flux2='1.14e-08', job_status='DONE', time_completed='2021-09-28 09:47:09.631994', photon_index_error2='0.82', photon_index2='1.59', ts='6.20', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='3.13e-05', EG='1.19', time_epoch_completed='1632847629.63', return_code='0', job_id='267186', GAL2='1.08', EG2='1.19', return_code2='0', energy_flux_error='2.27e-05', photon_flux_error2='1.75e-08', ts2='6.20', photon_index='1.61' WHERE bin_id='1075' AND source_name='4FGL J2221.5-5225' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:47:09 PDT 2021


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

Job <4FGL_J2221.5-5225_daily_bin1075> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 09:35:30 2021
Job was executed on host(s) <bullet0213>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:35:31 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:35:31 2021
Terminated at Tue Sep 28 09:47:12 2021
Results reported at Tue Sep 28 09:47:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.5-5225_daily_bin1075 335.391 -52.4307 517968001 518227201 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 :                                   626.20 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             334.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   698 sec.
    Turnaround time :                            702 sec.

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

