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


Performing analysis on: 4FGL_J2221.5-5225_daily_bin1303
RA = 335.391, Dec = -52.4307
tmin = 577065601, tmax = 577324801
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='268540', job_status='RUN', time_executed='2021-09-28 09:40:55.092595', time_epoch_executed='1632847255.09' WHERE source_name='4FGL J2221.5-5225' and cadence='daily' and bin_id='1303'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/268540

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/268540/ft1_4FGL_J2221.5-5225_daily_bin1303.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/268540/ft2_4FGL_J2221.5-5225_daily_bin1303.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/268540/ft1_4FGL_J2221.5-5225_daily_bin1303.fits outfile=/scratch/kocevski/268540/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin1303.fits ra=335.391 dec=-52.4307 rad=12.0 tmin=577065601.0 tmax=577324801.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.09
user 2.88
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/268540/ft2_4FGL_J2221.5-5225_daily_bin1303.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/268540/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin1303.fits evtable="EVENTS" outfile="/scratch/kocevski/268540/ft1_filtered_4FGL_J2221.5-5225_daily_bin1303.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/268540/ft1_filtered_4FGL_J2221.5-5225_daily_bin1303.fits" evtable="EVENTS" scfile=/scratch/kocevski/268540/ft2_4FGL_J2221.5-5225_daily_bin1303.fits sctable="SC_DATA" outfile=/scratch/kocevski/268540/ltcube_577065601_577324801_4FGL_J2221.5-5225_daily_bin1303.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/268540/ft2_4FGL_J2221.5-5225_daily_bin1303.fits
.....................!
real 12.95
user 12.58
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/268540/ft1_filtered_4FGL_J2221.5-5225_daily_bin1303.fits evtable="EVENTS" scfile=/scratch/kocevski/268540/ft2_4FGL_J2221.5-5225_daily_bin1303.fits sctable="SC_DATA" expcube=/scratch/kocevski/268540/ltcube_577065601_577324801_4FGL_J2221.5-5225_daily_bin1303.fits outfile=/scratch/kocevski/268540/expmap_577065601_577324801_4FGL_J2221.5-5225_daily_bin1303.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/268540/ltcube_577065601_577324801_4FGL_J2221.5-5225_daily_bin1303.fits
.....................!
real 190.07
user 185.30
sys 4.40

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/268540/ft1_filtered_4FGL_J2221.5-5225_daily_bin1303.fits scfile=/scratch/kocevski/268540/ft2_4FGL_J2221.5-5225_daily_bin1303.fits outfile=/scratch/kocevski/268540/cmap_577065601_577324801_4FGL_J2221.5-5225_daily_bin1303.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.54
user 0.39
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/268540/ft1_filtered_4FGL_J2221.5-5225_daily_bin1303.fits scfile=/scratch/kocevski/268540/ft2_4FGL_J2221.5-5225_daily_bin1303.fits outfile=/scratch/kocevski/268540/cmap_HighResolution_577065601_577324801_4FGL_J2221.5-5225_daily_bin1303.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.35
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/268540/ft1_filtered_4FGL_J2221.5-5225_daily_bin1303.fits evtable="EVENTS" scfile=/scratch/kocevski/268540/ft2_4FGL_J2221.5-5225_daily_bin1303.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/268540/Model_4FGL_J2221.5-5225_daily_bin1303.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/268540/ft1_filtered_4FGL_J2221.5-5225_daily_bin1303.fits.....................!
real 67.96
user 66.63
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.8500       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.2534       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.0222       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11798E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    94.618       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.6618       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .15859E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    27.224       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .58901E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .37984E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    53.691       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11351E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.7006       1.0000         .10000E-03   10000.    
    20 'norm      '    4.4219       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10868E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    3.0475       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0736       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0918       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=   9884.421     FROM MIGRAD    STATUS=CONVERGED    590 CALLS     2977 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.502        .41424E-06** at limit **
   2  Prefactor     5.8534        6.6980        .27494E-06   -.83937E-04
   3  Prefactor     5.2470        15.543        .43863E-06   -.22579E-04
   4  Prefactor     1.0192        3.1938        .11139E-05   -.14379E-03
   5  Prefactor     .10000E-03    16.544       -.71286E-08** at limit **
   6  Prefactor     .10058E-03    3.4230        .85315E-06** at limit **
   7  Prefactor     .10000E-03    1.1065        .16317E-06** at limit **
   8  Prefactor     94.676        78.227        .19692E-05   -.23044E-04
   9  norm          .10000E-03    2.5614        .11379E-06** at limit **
  10  Prefactor     1.6627        2.4500        .43629E-06   -.18577E-03
  11  Prefactor     .10000E-03    12.667       -.39424E-06** at limit **
  12  Prefactor     .10010E-03    3.2959        .11425E-05** at limit **
  13  Prefactor     27.253        24.845       -.68724E-06   -.37815E-03
  14  Prefactor     .10000E-03    5.5170        .10218E-05** at limit **
  15  Prefactor     .10000E-03    39.897       -.35445E-06** at limit **
  16  Prefactor     .10000E-03    3.1275        .74197E-07** at limit **
  17  Prefactor     53.688        40.120       -.45916E-06   -.12248E-03
  18  Prefactor     .10000E-03    24.453        .11942E-05** at limit **
  19  norm          3.6961        8.9738        .52143E-06   -.11396E-04
  20  norm          4.4220        4.2954        .79968E-08    .54399E-05
  21  Prefactor     .10000E-03    5.3968       -.20253E-07** at limit **
  22  Prefactor     .10000E-03    33.695       -.23023E-05** at limit **
  23  norm          3.0475        1.3061        .13178E-06   -.15286E-03
  24  Normalizat    1.0736        .16597       -.35924E-05   -.37191E-03
  25  Prefactor     1.0920        .12920        .54805E-06   -.70327E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 5.85343
  Prefactor  = 5.24704
  Prefactor  = 1.01921
  Prefactor  = 0.0001
  Prefactor  = 0.000100576
  Prefactor  = 0.0001
  Prefactor  = 94.6765
  norm       = 0.0001
  Prefactor  = 1.66268
  Prefactor  = 0.0001
  Prefactor  = 0.000100102
  Prefactor  = 27.2531
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 53.688
  Prefactor  = 0.0001
  norm       = 3.69614
  norm       = 4.42198
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.04752
  Normalizat = 1.07362
  Prefactor  = 1.09199
 **********
 **   18 **HESSE 
 **********

 FCN=   9884.421     FROM HESSE     STATUS=OK           439 CALLS     3416 TOTAL
                     EDM=   .95E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.8534        6.6789        .16604E-03   -1.5224    
   3  Prefactor     5.2470        15.540        .17537E-03   -1.5250    
   4  Prefactor     1.0192        3.1958        .29530E-03   -1.5506    
   5  Prefactor     .10000E-03    16.585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10058E-03    62.987        .32310E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.1193        .10219E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     94.676        78.617        .20659E-03   -1.3759    
   9  norm          .10000E-03    2.5719        .15540E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.6627        2.4258        .18094E-03   -1.5450    
  11  Prefactor     .10000E-03    12.671        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10010E-03    3.6361        .49242E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     27.253        24.026        .76781E-04   -1.4663    
  14  Prefactor     .10000E-03    72.369        .42106E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    39.905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    21.213        .34270E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     53.688        40.176        .54739E-04   -1.4241    
  18  Prefactor     .10000E-03    25.025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.6961        8.9611        .20994E-03   -1.5323    
  20  norm          4.4220        4.2958        .19151E-03   -1.5287    
  21  Prefactor     .10000E-03    5.4930        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    33.934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.0475        1.3014        .70521E-04   -1.5359    
  24  Normalizat    1.0736        .18686        .26501E-03   -.90603    
  25  Prefactor     1.0920        .15247        .22215E-03   -.89723    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.52575e-09
Minuit parameter uncertainties:
  1  1.45926e-05
  2  6.67973
  3  15.552
  4  3.19638
  5  1.32595e-06
  6  0.0120572
  7  2.47407e-06
  8  78.7033
  9  6.68255e-07
  10  2.42599
  11  5.00698e-06
  12  0.00121942
  13  24.0345
  14  0.000908036
  15  5.04883e-06
  16  0.000645798
  17  40.1967
  18  0.000156561
  19  8.96433
  20  4.29606
  21  2.42917e-05
  22  9.6655e-05
  23  1.30143
  24  0.186977
  25  0.152527
Done.

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

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  1.000e-04  6.683e-07  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.092e+00  1.525e-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.074e+00  1.870e-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: 2.01e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.07e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/268540/likelihoodResults_577065601_577324801_4FGL_J2221.5-5225_daily_bin1303.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): 102
logL (Free Index) = 9884.42250652
delta logL = -0.00183635160101

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9884.42065434
delta logL = 1.58281600307e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10306E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7229       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0736       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0920       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=   9884.421     FROM MIGRAD    STATUS=CONVERGED     70 CALLS      283 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10270E-03    1.6700        .56362E-01** at limit **
   2  alpha         2.8495        3.8942        .41360       -.54746E-04
   3  Normalizat    1.0736        .72925E-02    .59921E-01    .17406E-03
   4  Prefactor     1.0920        .61871E-02    .37898E-01    .20353E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000102697
  alpha      = 2.84952
  Normalizat = 1.07362
  Prefactor  = 1.092
 **********
 **   18 **HESSE 
 **********

 FCN=   9884.421     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      322 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10270E-03    9.6475        .22820E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.8495        3.6364        .50000        .14027    
   3  Normalizat    1.0736        .90896E-02    .26501E-03   -.90603    
   4  Prefactor     1.0920        .77158E-02    .22215E-03   -.89723    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.84544e-09
Minuit parameter uncertainties:
  1  0.0102029
  2  5.95132
  3  0.00908966
  4  0.00771583
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/268540': 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): 102
logL (Free Index) = 9884.42065161
delta logL = 1.85533681361e-05

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  1.027e-04  1.020e-02  1.000e-04  1.000e+04 ( 1.000e-13)
346        alpha:  2.850e+00  5.951e+00  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.092e+00  7.716e-03  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.074e+00  9.090e-03  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/268540/cmap_HighResolution_577065601_577324801_4FGL_J2221.5-5225_daily_bin1303.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.07e-05', job_status='DONE', photon_flux_upper_limit='2.01e-08', time_completed='2021-09-28 09:56:50.411803', job_id='268540', GAL2='1.09', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1632848210.41', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='1.86e-05', ts2='-0.00', photon_index_error='0.00', photon_index='1.61' WHERE bin_id='1303' AND source_name='4FGL J2221.5-5225' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:56:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0042>
Subject: Job 268540: <4FGL_J2221.5-5225_daily_bin1303> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.5-5225_daily_bin1303 335.391 -52.4307 577065601 577324801 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 :                                   954.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             325.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   992 sec.
    Turnaround time :                            995 sec.

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

