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


Performing analysis on: 4FGL_J2221.5-5225_daily_bin549
RA = 335.391, Dec = -52.4307
tmin = 381628801, tmax = 381888001
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='265448', job_status='RUN', time_executed='2021-09-28 09:32:57.033572', time_epoch_executed='1632846777.03' WHERE source_name='4FGL J2221.5-5225' and cadence='daily' and bin_id='549'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/265448

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/265448/ft1_4FGL_J2221.5-5225_daily_bin549.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/265448/ft2_4FGL_J2221.5-5225_daily_bin549.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/265448/ft1_4FGL_J2221.5-5225_daily_bin549.fits outfile=/scratch/kocevski/265448/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin549.fits ra=335.391 dec=-52.4307 rad=12.0 tmin=381628801.0 tmax=381888001.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 4.07
user 3.79
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/265448/ft2_4FGL_J2221.5-5225_daily_bin549.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/265448/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin549.fits evtable="EVENTS" outfile="/scratch/kocevski/265448/ft1_filtered_4FGL_J2221.5-5225_daily_bin549.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.53
user 0.33
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/265448/ft1_filtered_4FGL_J2221.5-5225_daily_bin549.fits" evtable="EVENTS" scfile=/scratch/kocevski/265448/ft2_4FGL_J2221.5-5225_daily_bin549.fits sctable="SC_DATA" outfile=/scratch/kocevski/265448/ltcube_381628801_381888001_4FGL_J2221.5-5225_daily_bin549.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/265448/ft2_4FGL_J2221.5-5225_daily_bin549.fits
.....................!
real 15.81
user 15.42
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/265448/ft1_filtered_4FGL_J2221.5-5225_daily_bin549.fits evtable="EVENTS" scfile=/scratch/kocevski/265448/ft2_4FGL_J2221.5-5225_daily_bin549.fits sctable="SC_DATA" expcube=/scratch/kocevski/265448/ltcube_381628801_381888001_4FGL_J2221.5-5225_daily_bin549.fits outfile=/scratch/kocevski/265448/expmap_381628801_381888001_4FGL_J2221.5-5225_daily_bin549.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/265448/ltcube_381628801_381888001_4FGL_J2221.5-5225_daily_bin549.fits
.....................!
real 193.87
user 188.47
sys 4.63

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/265448/ft1_filtered_4FGL_J2221.5-5225_daily_bin549.fits scfile=/scratch/kocevski/265448/ft2_4FGL_J2221.5-5225_daily_bin549.fits outfile=/scratch/kocevski/265448/cmap_381628801_381888001_4FGL_J2221.5-5225_daily_bin549.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.57
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/265448/ft1_filtered_4FGL_J2221.5-5225_daily_bin549.fits scfile=/scratch/kocevski/265448/ft2_4FGL_J2221.5-5225_daily_bin549.fits outfile=/scratch/kocevski/265448/cmap_HighResolution_381628801_381888001_4FGL_J2221.5-5225_daily_bin549.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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/265448/ft1_filtered_4FGL_J2221.5-5225_daily_bin549.fits evtable="EVENTS" scfile=/scratch/kocevski/265448/ft2_4FGL_J2221.5-5225_daily_bin549.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/265448/Model_4FGL_J2221.5-5225_daily_bin549.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/265448/ft1_filtered_4FGL_J2221.5-5225_daily_bin549.fits.....................!
real 44.91
user 43.32
sys 1.37

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.7469       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.572       1.0000         .10000E-03   10000.    
     5 'Prefactor '    22.205       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .88552       1.0000         .10000E-03   10000.    
     8 'Prefactor '    40.147       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.5714       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.3164       1.0000         .10000E-03   10000.    
    13 'Prefactor '    21.433       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    160.98       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    13.957       1.0000         .10000E-03   10000.    
    23 'norm      '    3.3677       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .44259       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.6243       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=   5608.474     FROM MIGRAD    STATUS=CONVERGED    572 CALLS     2869 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    92.737        .10215E-06** at limit **
   2  Prefactor     8.7471        12.918        .25172E-06   -.15482E-04
   3  Prefactor     .10000E-03    20.361        .38502E-08** at limit **
   4  Prefactor     11.572        6.5747        .37487E-07   -.30772E-04
   5  Prefactor     22.200        36.054       -.17337E-05   -.69982E-04
   6  Prefactor     .10000E-03    7.5205       -.46271E-06** at limit **
   7  Prefactor     .88562        3.4642        .69321E-06   -.33820E-03
   8  Prefactor     40.170        97.756        .10552E-04    .12403E-03
   9  norm          .10000E-03    3.6638        .53080E-08** at limit **
  10  Prefactor     1.5709        4.3656        .36300E-06   -.24322E-03
  11  Prefactor     .10000E-03    44.530        .10217E-07** at limit **
  12  Prefactor     5.3164        4.7581        .12534E-05   -.12659E-02
  13  Prefactor     21.429        26.962       -.14874E-05   -.41544E-04
  14  Prefactor     .10000E-03    4.8813        .17928E-07** at limit **
  15  Prefactor     160.99        108.78        .31340E-05    .11362E-03
  16  Prefactor     .10000E-03    4.3713       -.13389E-07** at limit **
  17  Prefactor     .10000E-03    12.137        .39725E-07** at limit **
  18  Prefactor     .10000E-03    7.7202        .64908E-06** at limit **
  19  norm          .10000E-03    9.7423       -.68234E-07** at limit **
  20  norm          .10000E-03    3.4469       -.74385E-09** at limit **
  21  Prefactor     .10000E-03    2.9442       -.10481E-07** at limit **
  22  Prefactor     13.956        24.980        .97293E-07   -.13652E-04
  23  norm          3.3676        1.7152        .37367E-07   -.10364E-03
  24  Normalizat    .44267        .23122       -.10528E-05   -.39171E-04
  25  Prefactor     1.6242        .19233       -.25520E-06    .39602E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 8.7471
  Prefactor  = 0.0001
  Prefactor  = 11.5719
  Prefactor  = 22.2003
  Prefactor  = 0.000100001
  Prefactor  = 0.885617
  Prefactor  = 40.1698
  norm       = 0.0001
  Prefactor  = 1.57093
  Prefactor  = 0.0001
  Prefactor  = 5.31641
  Prefactor  = 21.4294
  Prefactor  = 0.0001
  Prefactor  = 160.989
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.9563
  norm       = 3.36764
  Normalizat = 0.442671
  Prefactor  = 1.62422
 **********
 **   18 **HESSE 
 **********

 FCN=   5608.474     FROM HESSE     STATUS=OK           423 CALLS     3292 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    93.457        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.7471        12.899        .13553E-03   -1.5116    
   3  Prefactor     .10000E-03    20.431        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.572        6.5675        .11777E-03   -1.5027    
   5  Prefactor     22.200        36.205        .85002E-04   -1.4765    
   6  Prefactor     .10000E-03    7.7123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .88562        3.5284        .26691E-03   -1.5520    
   8  Prefactor     40.170        104.71        .63262E-04   -1.4440    
   9  norm          .10000E-03    3.6706        .13999E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.5709        4.3447        .24461E-03   -1.5457    
  11  Prefactor     .10000E-03    44.583        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.3164        5.3663        .82476E-03   -1.5247    
  13  Prefactor     21.429        26.914        .86517E-04   -1.4782    
  14  Prefactor     .10000E-03    4.8880        .16146E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     160.99        110.08        .15892E-03   -1.3163    
  16  Prefactor     .10000E-03    4.4073        .15291E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    12.139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.7715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    9.8361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    3.4577        .13574E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.9447        .12534E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     13.956        24.997        .10721E-03   -1.4961    
  23  norm          3.3676        1.7121        .63003E-04   -1.5341    
  24  Normalizat    .44267        .24700        .39935E-03   -1.1515    
  25  Prefactor     1.6242        .21027        .98792E-03   -.74118    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.79225e-09
Minuit parameter uncertainties:
  1  6.02772e-05
  2  12.9034
  3  6.32171e-06
  4  6.5679
  5  36.2405
  6  0.000136788
  7  3.5292
  8  105.194
  9  3.44148e-06
  10  4.3456
  11  1.12855e-05
  12  5.36675
  13  26.9296
  14  1.67364e-06
  15  110.222
  16  4.73241e-07
  17  4.29873e-06
  18  5.53885e-05
  19  4.24994e-06
  20  1.4138e-07
  21  1.55448e-08
  22  25.0154
  23  1.71208
  24  0.247614
  25  0.210385
Done.

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

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  1.000e-04  3.441e-06  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.624e+00  2.104e-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:  4.427e-01  2.476e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/265448/likelihoodResults_381628801_381888001_4FGL_J2221.5-5225_daily_bin549.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) = 5608.47508912
delta logL = -0.00123432698547

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5608.47385478
delta logL = 1.59943738254e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6157       1.0000          .0000       5.0000    
     3 'Normalizat'    .44267       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.6242       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5608.337     FROM MIGRAD    STATUS=FAILED       123 CALLS      264 TOTAL
                     EDM=   .50E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .38555E-02    .44939        .14027E-02    .16645E-01
   2  alpha         5.0000        4.8838        .50000    ** at limit **
   3  Normalizat    .40960        .75503E-01    .39935E-02    .10889E-04
   4  Prefactor     1.6406        .63562E-01    .98792E-03    .65478E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5608.337     FROM SIMPLEX   STATUS=UNCHANGED    218 CALLS      482 TOTAL
                     EDM=   .43E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .38555E-02    .44939        .15610E-09    .16645E-01
   2  alpha         5.0000        4.8838        .94021E-02** at limit **
   3  Normalizat    .40960        .75503E-01    .18542E-09    .10889E-04
   4  Prefactor     1.6406        .63562E-01    .14517E-10    .65478E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5608.337     FROM MIGRAD    STATUS=CONVERGED     39 CALLS      521 TOTAL
                     EDM=   .29E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .38555E-02    .81073E-02    .87087E-05   -.32114E-03
   2  alpha         5.0000        3.7450        .50000    ** at limit **
   3  Normalizat    .40960        .23960        .15974E-03    .40567E-05
   4  Prefactor     1.6406        .20917        .39517E-04    .68470E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.00385551
  alpha      = 5
  Normalizat = 0.409603
  Prefactor  = 1.64062
 **********
 **   18 **HESSE 
 **********

 FCN=   5608.337     FROM HESSE     STATUS=OK            29 CALLS      550 TOTAL
                     EDM=   .29E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .38555E-02    .80808E-02    .34835E-06   -1.5696    
   2  alpha         5.0000        3.7390        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .40960        .23965        .63896E-05   -1.1681    
   4  Prefactor     1.6406        .20919        .79034E-05   -.73674    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.91788e-13
Minuit parameter uncertainties:
  1  0.00808082
  2  9.21001e-09
  3  0.240257
  4  0.2093
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/265448': 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) = 5608.33697774
delta logL = 0.13687704812

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  3.856e-03  8.081e-03  1.000e-04  1.000e+04 ( 1.000e-13)
346        alpha:  5.000e+00  9.210e-09  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.641e+00  2.093e-01  0.000e+00  1.000e+01 ( 1.000e+00)
588        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
589        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
586   Normalization:  4.096e-01  2.403e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 335.391 -52.431

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/265448/cmap_HighResolution_381628801_381888001_4FGL_J2221.5-5225_daily_bin549.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.18e-05', job_status='DONE', photon_flux_upper_limit='3.05e-08', time_completed='2021-09-28 09:44:44.463319', job_id='265448', GAL2='1.64', fit_tolerance='1e-08', EG2='0.41', EG='0.44', time_epoch_completed='1632847484.46', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.62', dlogl='1.37e-01', ts2='0.30', photon_index_error='0.00', photon_index='1.61' WHERE bin_id='549' AND source_name='4FGL J2221.5-5225' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:44:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 265448: <4FGL_J2221.5-5225_daily_bin549> in cluster <slac> Done

Job <4FGL_J2221.5-5225_daily_bin549> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 09:30:19 2021
Job was executed on host(s) <bullet0236>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:30:20 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:30:20 2021
Terminated at Tue Sep 28 09:44:45 2021
Results reported at Tue Sep 28 09:44:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.5-5225_daily_bin549 335.391 -52.4307 381628801 381888001 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 :                                   706.32 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             283.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   864 sec.
    Turnaround time :                            866 sec.

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

