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


Performing analysis on: 4FGL_J2221.5-5225_daily_bin323
RA = 335.391, Dec = -52.4307
tmin = 323049601, tmax = 323308801
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='264401', job_status='RUN', time_executed='2021-09-28 09:28:09.167963', time_epoch_executed='1632846489.17' WHERE source_name='4FGL J2221.5-5225' and cadence='daily' and bin_id='323'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/264401

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/264401/ft1_4FGL_J2221.5-5225_daily_bin323.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/264401/ft2_4FGL_J2221.5-5225_daily_bin323.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/264401/ft1_4FGL_J2221.5-5225_daily_bin323.fits outfile=/scratch/kocevski/264401/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin323.fits ra=335.391 dec=-52.4307 rad=12.0 tmin=323049601.0 tmax=323308801.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.41
user 3.14
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/264401/ft1_filtered_4FGL_J2221.5-5225_daily_bin323.fits" evtable="EVENTS" scfile=/scratch/kocevski/264401/ft2_4FGL_J2221.5-5225_daily_bin323.fits sctable="SC_DATA" outfile=/scratch/kocevski/264401/ltcube_323049601_323308801_4FGL_J2221.5-5225_daily_bin323.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/264401/ft2_4FGL_J2221.5-5225_daily_bin323.fits
.....................!
real 14.04
user 13.71
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/264401/ft1_filtered_4FGL_J2221.5-5225_daily_bin323.fits evtable="EVENTS" scfile=/scratch/kocevski/264401/ft2_4FGL_J2221.5-5225_daily_bin323.fits sctable="SC_DATA" expcube=/scratch/kocevski/264401/ltcube_323049601_323308801_4FGL_J2221.5-5225_daily_bin323.fits outfile=/scratch/kocevski/264401/expmap_323049601_323308801_4FGL_J2221.5-5225_daily_bin323.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/264401/ltcube_323049601_323308801_4FGL_J2221.5-5225_daily_bin323.fits
.....................!
real 192.54
user 186.69
sys 5.49

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/264401/ft1_filtered_4FGL_J2221.5-5225_daily_bin323.fits scfile=/scratch/kocevski/264401/ft2_4FGL_J2221.5-5225_daily_bin323.fits outfile=/scratch/kocevski/264401/cmap_323049601_323308801_4FGL_J2221.5-5225_daily_bin323.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.58
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/264401/ft1_filtered_4FGL_J2221.5-5225_daily_bin323.fits scfile=/scratch/kocevski/264401/ft2_4FGL_J2221.5-5225_daily_bin323.fits outfile=/scratch/kocevski/264401/cmap_HighResolution_323049601_323308801_4FGL_J2221.5-5225_daily_bin323.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.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/264401/ft1_filtered_4FGL_J2221.5-5225_daily_bin323.fits evtable="EVENTS" scfile=/scratch/kocevski/264401/ft2_4FGL_J2221.5-5225_daily_bin323.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/264401/Model_4FGL_J2221.5-5225_daily_bin323.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/264401/ft1_filtered_4FGL_J2221.5-5225_daily_bin323.fits.....................!
real 55.58
user 54.17
sys 1.30

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    37.987       1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.313       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.2034       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.2277       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.832       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.1372       1.0000         .10000E-03   10000.    
     8 'Prefactor '    54.480       1.0000         .10000E-03   10000.    
     9 'norm      '    14.426       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.6357       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.7354       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .51071E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .27226E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.723       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    14.827       1.0000         .10000E-03   10000.    
    23 'norm      '    10.483       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .90360       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .89620       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=   7505.132     FROM MIGRAD    STATUS=CONVERGED    587 CALLS     2920 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     37.968        35.301        .11084E-06   -.48991E-05
   2  Prefactor     11.312        7.9970        .17327E-05    .23476E-03
   3  Prefactor     7.2047        19.558        .30559E-06   -.28174E-05
   4  Prefactor     5.2281        3.7624       -.74333E-07   -.33310E-04
   5  Prefactor     .10000E-03    15.295       -.54879E-06** at limit **
   6  Prefactor     13.808        11.788       -.14456E-06   -.76610E-04
   7  Prefactor     3.1369        3.3301        .39617E-06    .12438E-04
   8  Prefactor     54.805        131.55        .62009E-07   -.16132E-06
   9  norm          14.426        7.7604       -.19705E-07   -.63298E-04
  10  Prefactor     3.6343        3.5748        .31683E-06    .10402E-03
  11  Prefactor     .10000E-03    12.384       -.30561E-07** at limit **
  12  Prefactor     5.7355        4.7134        .22157E-06   -.62048E-04
  13  Prefactor     .10000E-03    13.894        .45229E-06** at limit **
  14  Prefactor     .10104E-03    6.6244        .10658E-05** at limit **
  15  Prefactor     .10000E-03    49.122       -.22617E-07** at limit **
  16  Prefactor     .10000E-03    4.4801       -.68611E-06** at limit **
  17  Prefactor     .10000E-03    8.4711        .52147E-08** at limit **
  18  Prefactor     12.723        12.149        .93125E-07   -.28758E-04
  19  norm          .10000E-03    3.0904       -.56655E-08** at limit **
  20  norm          .10000E-03    4.4488       -.15980E-07** at limit **
  21  Prefactor     .10000E-03    2.9760        .33139E-07** at limit **
  22  Prefactor     14.823        19.483        .18364E-06   -.55099E-05
  23  norm          10.483        1.9437        .12973E-07   -.11713E-03
  24  Normalizat    .90362        .16840       -.10068E-05   -.94255E-04
  25  Prefactor     .89621        .13212       -.34563E-07   -.12840E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 37.9681
  Prefactor  = 11.312
  Prefactor  = 7.20467
  Prefactor  = 5.22812
  Prefactor  = 0.0001
  Prefactor  = 13.8076
  Prefactor  = 3.13695
  Prefactor  = 54.8046
  norm       = 14.4263
  Prefactor  = 3.63434
  Prefactor  = 0.0001
  Prefactor  = 5.73555
  Prefactor  = 0.0001
  Prefactor  = 0.000101045
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 12.7228
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.8226
  norm       = 10.4833
  Normalizat = 0.903616
  Prefactor  = 0.896213
 **********
 **   18 **HESSE 
 **********

 FCN=   7505.132     FROM HESSE     STATUS=OK           443 CALLS     3363 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     37.968        35.309        .65029E-04   -1.4475    
   2  Prefactor     11.312        8.0527        .59555E-03   -1.5035    
   3  Prefactor     7.2047        19.541        .14945E-03   -1.5171    
   4  Prefactor     5.2281        3.7563        .13519E-03   -1.5251    
   5  Prefactor     .10000E-03    15.324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     13.808        11.808        .10770E-03   -1.4965    
   7  Prefactor     3.1369        3.3183        .15414E-03   -1.5354    
   8  Prefactor     54.805        131.28        .27172E-03   -1.4226    
   9  norm          14.426        7.7602        .10545E-03   -1.4948    
  10  Prefactor     3.6343        3.5812        .15163E-03   -1.5327    
  11  Prefactor     .10000E-03    12.388        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.7355        4.7105        .16157E-03   -1.5229    
  13  Prefactor     .10000E-03    13.940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10104E-03    11.817        .61229E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    49.143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.221        .34282E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.4721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     12.723        12.158        .11230E-03   -1.4994    
  19  norm          .10000E-03    3.0915        .14874E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    4.6076        .35682E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.9808        .14566E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     14.823        19.475        .10402E-03   -1.4938    
  23  norm          10.483        1.9479        .48031E-04   -1.5060    
  24  Normalizat    .90362        .19384        .26302E-03   -.96333    
  25  Prefactor     .89621        .15309        .22186E-03   -.96274    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.64171e-10
Minuit parameter uncertainties:
  1  35.328
  2  8.05348
  3  19.5585
  4  3.75644
  5  1.6026e-05
  6  11.8105
  7  3.31846
  8  131.985
  9  7.7607
  10  3.58138
  11  1.47281e-06
  12  4.71085
  13  6.13261e-06
  14  0.00702855
  15  1.8345e-05
  16  0.000348603
  17  3.87743e-07
  18  12.1601
  19  2.79942e-07
  20  5.07932e-07
  21  6.69043e-07
  22  19.4836
  23  1.94787
  24  0.193989
  25  0.153163
Done.

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

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  1.443e+01  7.761e+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:  8.962e-01  1.532e-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.036e-01  1.940e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 16.18
Ra Dec: 335.391 -52.431
Photon Index (Fixed Index): 1.61 +/- 0.00
Photon Flux (Fixed Index): 2.41e-08 +/- 1.29e-08
Energy Flux (Fixed Index): 4.87e-05 +/- 2.62e-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) = 7505.129226
delta logL = 0.00305271877187

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7505.12918371
delta logL = 0.00309500953335

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.460       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5748       1.0000          .0000       5.0000    
     3 'Normalizat'    .90413       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89646       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=   7505.129     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      219 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.478        209.21        .26332E-02   -.36158E-04
   2  alpha         1.5759        2.8497        .34075        .21619E-04
   3  Normalizat    .90405        .13912        .44954E-01    .13765E-05
   4  Prefactor     .89639        .79829E-01    .44960E-01   -.24820E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 14.4784
  alpha      = 1.57591
  Normalizat = 0.904046
  Prefactor  = 0.896395
 **********
 **   18 **HESSE 
 **********

 FCN=   7505.129     FROM HESSE     STATUS=OK            33 CALLS      252 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.478        7.8303        .10533E-03   -1.4947    
   2  alpha         1.5759        .41606        .12153E-01   -.37862    
   3  Normalizat    .90405        .17639        .26298E-03   -.96318    
   4  Prefactor     .89639        .14917        .22186E-03   -.96267    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.78304e-10
Minuit parameter uncertainties:
  1  7.83086
  2  0.418314
  3  0.176503
  4  0.149237
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/264401': 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) = 7505.12917601
delta logL = 0.00310270464252

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  1.448e+01  7.831e+00  1.000e-04  1.000e+04 ( 1.000e-13)
346        alpha:  1.576e+00  4.183e-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:  8.964e-01  1.492e-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.040e-01  1.765e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.18
Ra Dec: 335.391 -52.431
Photon Index (Free Index): 1.58 +/- 0.42
Photon Flux (Free Index): 2.32e-08 +/- 1.68e-08
Energy Flux (Free Index): 5.10e-05 +/- 4.04e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/264401/cmap_HighResolution_323049601_323308801_4FGL_J2221.5-5225_daily_bin323.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.41e-08', energy_flux2='5.10e-05', photon_flux_error='1.29e-08', dlogl='3.10e-03', energy_flux='4.87e-05', photon_flux2='2.32e-08', job_status='DONE', time_completed='2021-09-28 09:40:13.043863', photon_index_error2='0.42', photon_index2='1.58', ts='16.18', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', energy_flux_error2='4.04e-05', EG='0.90', time_epoch_completed='1632847213.04', return_code='0', job_id='264401', GAL2='0.90', EG2='0.90', return_code2='0', energy_flux_error='2.62e-05', photon_flux_error2='1.68e-08', ts2='16.18', photon_index='1.61' WHERE bin_id='323' AND source_name='4FGL J2221.5-5225' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:40:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0299>
Subject: Job 264401: <4FGL_J2221.5-5225_daily_bin323> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.5-5225_daily_bin323 335.391 -52.4307 323049601 323308801 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 :                                   724.15 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             259.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   884 sec.
    Turnaround time :                            885 sec.

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

