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


Performing analysis on: 4FGL_J2221.5-5225_daily_bin1076
RA = 335.391, Dec = -52.4307
tmin = 518227201, tmax = 518486401
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='267188', job_status='RUN', time_executed='2021-09-28 09:37:29.381761', time_epoch_executed='1632847049.38' WHERE source_name='4FGL J2221.5-5225' and cadence='daily' and bin_id='1076'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/267188

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/267188/ft1_4FGL_J2221.5-5225_daily_bin1076.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/267188/ft2_4FGL_J2221.5-5225_daily_bin1076.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/267188/ft1_4FGL_J2221.5-5225_daily_bin1076.fits outfile=/scratch/kocevski/267188/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin1076.fits ra=335.391 dec=-52.4307 rad=12.0 tmin=518227201.0 tmax=518486401.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.64
user 3.41
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/267188/ft2_4FGL_J2221.5-5225_daily_bin1076.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/267188/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin1076.fits evtable="EVENTS" outfile="/scratch/kocevski/267188/ft1_filtered_4FGL_J2221.5-5225_daily_bin1076.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.50
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/267188/ft1_filtered_4FGL_J2221.5-5225_daily_bin1076.fits" evtable="EVENTS" scfile=/scratch/kocevski/267188/ft2_4FGL_J2221.5-5225_daily_bin1076.fits sctable="SC_DATA" outfile=/scratch/kocevski/267188/ltcube_518227201_518486401_4FGL_J2221.5-5225_daily_bin1076.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/267188/ft2_4FGL_J2221.5-5225_daily_bin1076.fits
.....................!
real 12.72
user 12.32
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/267188/ft1_filtered_4FGL_J2221.5-5225_daily_bin1076.fits evtable="EVENTS" scfile=/scratch/kocevski/267188/ft2_4FGL_J2221.5-5225_daily_bin1076.fits sctable="SC_DATA" expcube=/scratch/kocevski/267188/ltcube_518227201_518486401_4FGL_J2221.5-5225_daily_bin1076.fits outfile=/scratch/kocevski/267188/expmap_518227201_518486401_4FGL_J2221.5-5225_daily_bin1076.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/267188/ltcube_518227201_518486401_4FGL_J2221.5-5225_daily_bin1076.fits
.....................!
real 190.40
user 185.10
sys 4.94

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/267188/ft1_filtered_4FGL_J2221.5-5225_daily_bin1076.fits scfile=/scratch/kocevski/267188/ft2_4FGL_J2221.5-5225_daily_bin1076.fits outfile=/scratch/kocevski/267188/cmap_518227201_518486401_4FGL_J2221.5-5225_daily_bin1076.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/267188/ft1_filtered_4FGL_J2221.5-5225_daily_bin1076.fits scfile=/scratch/kocevski/267188/ft2_4FGL_J2221.5-5225_daily_bin1076.fits outfile=/scratch/kocevski/267188/cmap_HighResolution_518227201_518486401_4FGL_J2221.5-5225_daily_bin1076.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/267188/ft1_filtered_4FGL_J2221.5-5225_daily_bin1076.fits evtable="EVENTS" scfile=/scratch/kocevski/267188/ft2_4FGL_J2221.5-5225_daily_bin1076.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/267188/Model_4FGL_J2221.5-5225_daily_bin1076.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/267188/ft1_filtered_4FGL_J2221.5-5225_daily_bin1076.fits.....................!
real 44.02
user 42.67
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    34.358       1.0000         .10000E-03   10000.    
     2 'Prefactor '    17.230       1.0000         .10000E-03   10000.    
     3 'Prefactor '    33.543       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    36.455       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.0437       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .39500E-02   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    37.736       1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.272       1.0000         .10000E-03   10000.    
    13 'Prefactor '    31.434       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.5698       1.0000         .10000E-03   10000.    
    15 'Prefactor '    39.667       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.182       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .15860E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.518       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .93015       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1102       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=   5772.984     FROM MIGRAD    STATUS=CONVERGED    560 CALLS     2887 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     34.442        52.581        .13527E-05    .82204E-04
   2  Prefactor     17.230        10.219        .15753E-06   -.28743E-04
   3  Prefactor     33.542        24.914        .25602E-06   -.10539E-04
   4  Prefactor     .10000E-03    5.7724        .96385E-06** at limit **
   5  Prefactor     36.455        36.967       -.54844E-06   -.32456E-04
   6  Prefactor     3.0366        8.3377       -.60153E-05   -.22029E-03
   7  Prefactor     .10000E-03    2.4770        .53461E-07** at limit **
   8  Prefactor     .10000E-03    1025.9       -.26777E-04** at limit **
   9  norm          .10000E-03    3.0785        .48986E-08** at limit **
  10  Prefactor     .10000E-03    2.3169        .19483E-07** at limit **
  11  Prefactor     37.739        38.952        .25003E-06    .24820E-05
  12  Prefactor     18.271        8.7305       -.47372E-07   -.10564E-03
  13  Prefactor     31.454        41.291       -.57497E-05   -.59379E-04
  14  Prefactor     5.5863        18.495        .10545E-04    .15644E-03
  15  Prefactor     39.485        113.64       -.64847E-05   -.63779E-04
  16  Prefactor     .10000E-03    5.2700        .54040E-08** at limit **
  17  Prefactor     .10000E-03    42.201       -.80887E-06** at limit **
  18  Prefactor     17.181        14.070        .10807E-06   -.19333E-03
  19  norm          .10000E-03    6.6289       -.14579E-07** at limit **
  20  norm          .10077E-03    6.1238        .35549E-05** at limit **
  21  Prefactor     12.517        8.1586        .23538E-07   -.40228E-03
  22  Prefactor     .10000E-03    28.067       -.39678E-06** at limit **
  23  norm          .10000E-03    .62033       -.64128E-07** at limit **
  24  Normalizat    .93046        .20877        .49396E-06   -.28550E-03
  25  Prefactor     1.1099        .16931       -.20495E-05   -.29144E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 34.4416
  Prefactor  = 17.2303
  Prefactor  = 33.5425
  Prefactor  = 0.0001
  Prefactor  = 36.4553
  Prefactor  = 3.03659
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.7387
  Prefactor  = 18.2705
  Prefactor  = 31.4537
  Prefactor  = 5.58627
  Prefactor  = 39.4849
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.1809
  norm       = 0.0001
  norm       = 0.000100772
  Prefactor  = 12.5172
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.930456
  Prefactor  = 1.10994
 **********
 **   18 **HESSE 
 **********

 FCN=   5772.984     FROM HESSE     STATUS=OK           423 CALLS     3310 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     34.442        52.765        .68366E-04   -1.4534    
   2  Prefactor     17.230        10.218        .96490E-04   -1.4878    
   3  Prefactor     33.542        24.916        .69189E-04   -1.4549    
   4  Prefactor     .10000E-03    6.0235        .35674E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     36.455        36.851        .66377E-04   -1.4500    
   6  Prefactor     3.0366        8.2317        .23256E-03   -1.5359    
   7  Prefactor     .10000E-03    2.5301        .11673E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1023.4        .39020E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    3.0843        .13020E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.3455        .11288E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     37.739        38.952        .65244E-04   -1.4479    
  12  Prefactor     18.271        8.7366        .93697E-04   -1.4853    
  13  Prefactor     31.454        41.321        .71466E-04   -1.4586    
  14  Prefactor     5.5863        18.644        .85115E-03   -1.5235    
  15  Prefactor     39.485        114.29        .31821E-03   -1.4450    
  16  Prefactor     .10000E-03    5.2877        .17034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    42.435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     17.181        14.039        .96623E-04   -1.4879    
  19  norm          .10000E-03    6.6375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10077E-03    35.109        .34143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     12.517        8.0946        .11322E-03   -1.5000    
  22  Prefactor     .10000E-03    28.218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    .64282        .11633E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .93046        .24537        .28712E-03   -.95398    
  25  Prefactor     1.1099        .19803        .22107E-03   -.89149    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.16533e-08
Minuit parameter uncertainties:
  1  52.8362
  2  10.2195
  3  24.9234
  4  6.27051e-05
  5  36.8739
  6  8.23475
  7  1.79819e-05
  8  0.00414045
  9  3.00209e-06
  10  7.83641e-06
  11  38.9785
  12  8.73724
  13  41.3585
  14  18.6629
  15  114.934
  16  6.99783e-06
  17  5.30681e-06
  18  14.0416
  19  4.36439e-06
  20  0.0104194
  21  8.09528
  22  6.54908e-05
  23  5.26955e-06
  24  0.24567
  25  0.198166
Done.

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

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  1.000e-04  3.002e-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.110e+00  1.982e-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.305e-01  2.457e-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.66e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.39e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/267188/likelihoodResults_518227201_518486401_4FGL_J2221.5-5225_daily_bin1076.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) = 5772.98577356
delta logL = -0.00148228624494

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5772.98429123
delta logL = 5.25560608367e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6182       1.0000          .0000       5.0000    
     3 'Normalizat'    .93046       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1099       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=   5772.984     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      194 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.6576        .90712E-02** at limit **
   2  alpha         1.6283        3.3039        .44974       -.14591E-04
   3  Normalizat    .93046        .19704        .64913E-01   -.44854E-05
   4  Prefactor     1.1099        .16505        .37221E-01   -.14251E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.62826
  Normalizat = 0.930457
  Prefactor  = 1.10994
 **********
 **   18 **HESSE 
 **********

 FCN=   5772.984     FROM HESSE     STATUS=OK            33 CALLS      227 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.1260        .13068E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6283        3.2864        .50000       -.35618    
   3  Normalizat    .93046        .22875        .28712E-03   -.95398    
   4  Prefactor     1.1099        .19188        .22108E-03   -.89149    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.19811e-10
Minuit parameter uncertainties:
  1  7.51501e-06
  2  2.35146
  3  0.228992
  4  0.191996
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/267188': 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) = 5772.98429116
delta logL = 1.22045094031e-07

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  1.000e-04  7.515e-06  1.000e-04  1.000e+04 ( 1.000e-13)
346        alpha:  1.628e+00  2.351e+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.110e+00  1.920e-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.305e-01  2.290e-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/267188/cmap_HighResolution_518227201_518486401_4FGL_J2221.5-5225_daily_bin1076.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.39e-05', job_status='DONE', photon_flux_upper_limit='2.66e-08', time_completed='2021-09-28 09:48:45.932904', job_id='267188', GAL2='1.11', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1632847725.93', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='1.22e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.61' WHERE bin_id='1076' AND source_name='4FGL J2221.5-5225' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:48:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 267188: <4FGL_J2221.5-5225_daily_bin1076> in cluster <slac> Done

Job <4FGL_J2221.5-5225_daily_bin1076> 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) <bullet0067>, 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:48:46 2021
Results reported at Tue Sep 28 09:48:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.5-5225_daily_bin1076 335.391 -52.4307 518227201 518486401 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 :                                   676.44 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             316.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   795 sec.
    Turnaround time :                            796 sec.

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

