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


Performing analysis on: 4FGL_J2221.5-5225_daily_bin871
RA = 335.391, Dec = -52.4307
tmin = 465091201, tmax = 465350401
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='265954', job_status='RUN', time_executed='2021-09-28 09:34:56.780198', time_epoch_executed='1632846896.78' WHERE source_name='4FGL J2221.5-5225' and cadence='daily' and bin_id='871'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/265954

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/265954/ft1_4FGL_J2221.5-5225_daily_bin871.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/265954/ft2_4FGL_J2221.5-5225_daily_bin871.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/265954/ft1_4FGL_J2221.5-5225_daily_bin871.fits outfile=/scratch/kocevski/265954/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin871.fits ra=335.391 dec=-52.4307 rad=12.0 tmin=465091201.0 tmax=465350401.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.47
user 3.25
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/265954/ft1_filtered_4FGL_J2221.5-5225_daily_bin871.fits" evtable="EVENTS" scfile=/scratch/kocevski/265954/ft2_4FGL_J2221.5-5225_daily_bin871.fits sctable="SC_DATA" outfile=/scratch/kocevski/265954/ltcube_465091201_465350401_4FGL_J2221.5-5225_daily_bin871.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/265954/ft2_4FGL_J2221.5-5225_daily_bin871.fits
.....................!
real 11.89
user 11.53
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/265954/ft1_filtered_4FGL_J2221.5-5225_daily_bin871.fits evtable="EVENTS" scfile=/scratch/kocevski/265954/ft2_4FGL_J2221.5-5225_daily_bin871.fits sctable="SC_DATA" expcube=/scratch/kocevski/265954/ltcube_465091201_465350401_4FGL_J2221.5-5225_daily_bin871.fits outfile=/scratch/kocevski/265954/expmap_465091201_465350401_4FGL_J2221.5-5225_daily_bin871.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/265954/ltcube_465091201_465350401_4FGL_J2221.5-5225_daily_bin871.fits
.....................!
real 190.90
user 185.19
sys 5.25

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/265954/ft1_filtered_4FGL_J2221.5-5225_daily_bin871.fits scfile=/scratch/kocevski/265954/ft2_4FGL_J2221.5-5225_daily_bin871.fits outfile=/scratch/kocevski/265954/cmap_465091201_465350401_4FGL_J2221.5-5225_daily_bin871.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=335.391 yref=-52.4307 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/265954/ft1_filtered_4FGL_J2221.5-5225_daily_bin871.fits scfile=/scratch/kocevski/265954/ft2_4FGL_J2221.5-5225_daily_bin871.fits outfile=/scratch/kocevski/265954/cmap_HighResolution_465091201_465350401_4FGL_J2221.5-5225_daily_bin871.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    58.862       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.7155       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.5324       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.7886       1.0000         .10000E-03   10000.    
     5 'Prefactor '    57.020       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.5678       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.946       1.0000         .10000E-03   10000.    
     9 'norm      '    5.2637       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.8839       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .58027E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10423E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    29.865       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.5627       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .51516E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .37269       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.5424       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .85580       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .99739       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=   6881.611     FROM MIGRAD    STATUS=CONVERGED    614 CALLS     2992 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     58.860        41.694       -.57492E-06   -.67493E-05
   2  Prefactor     1.7146        6.6585        .38355E-05   -.67386E-03
   3  Prefactor     9.5266        19.335        .17090E-05   -.29518E-04
   4  Prefactor     3.7886        2.8913       -.58395E-07   -.14076E-03
   5  Prefactor     57.019        32.697        .11092E-06   -.11113E-04
   6  Prefactor     .10000E-03    3.1602        .50966E-07** at limit **
   7  Prefactor     3.5682        3.6654       -.68981E-07   -.48018E-03
   8  Prefactor     11.945        131.04       -.30157E-06   -.10639E-05
   9  norm          5.2644        8.1074       -.19956E-06   -.14430E-03
  10  Prefactor     1.8844        2.1184        .27257E-07   -.18129E-03
  11  Prefactor     .10000E-03    18.367        .23026E-05** at limit **
  12  Prefactor     .40194E-01    2.0634       -.18919E-06   -.85579E-05
  13  Prefactor     .10000E-03    12.564        .88960E-07** at limit **
  14  Prefactor     .10000E-03    12.313       -.15825E-05** at limit **
  15  Prefactor     29.895        67.565        .35781E-04    .11457E-04
  16  Prefactor     .10000E-03    3.6046        .11490E-06** at limit **
  17  Prefactor     6.5660        16.416       -.15264E-05   -.30904E-04
  18  Prefactor     .10000E-03    9.6135       -.11499E-06** at limit **
  19  norm          .10000E-03    3.4549       -.14959E-07** at limit **
  20  norm          .10000E-03    4.9661       -.18210E-06** at limit **
  21  Prefactor     .40907        3.7769        .93723E-06   -.85415E-03
  22  Prefactor     .10000E-03    31.944       -.63925E-07** at limit **
  23  norm          1.5410        .92011       -.32263E-07   -.75117E-03
  24  Normalizat    .85577        .15882       -.81407E-06   -.11028E-03
  25  Prefactor     .99746        .13467       -.50381E-06   -.10586E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 58.86
  Prefactor  = 1.71462
  Prefactor  = 9.52655
  Prefactor  = 3.78857
  Prefactor  = 57.0191
  Prefactor  = 0.0001
  Prefactor  = 3.56822
  Prefactor  = 11.945
  norm       = 5.26443
  Prefactor  = 1.88439
  Prefactor  = 0.0001
  Prefactor  = 0.0401936
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 29.8946
  Prefactor  = 0.0001
  Prefactor  = 6.56599
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.409071
  Prefactor  = 0.0001
  norm       = 1.54105
  Normalizat = 0.855772
  Prefactor  = 0.997458
 **********
 **   18 **HESSE 
 **********

 FCN=   6881.611     FROM HESSE     STATUS=OK           451 CALLS     3443 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     58.860        41.737        .52293E-04   -1.4172    
   2  Prefactor     1.7146        6.4929        .32084E-03   -1.5446    
   3  Prefactor     9.5266        19.315        .12980E-03   -1.5091    
   4  Prefactor     3.7886        2.8896        .11895E-03   -1.5319    
   5  Prefactor     57.019        32.697        .53126E-04   -1.4196    
   6  Prefactor     .10000E-03    3.1733        .14368E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.5682        3.6644        .15070E-03   -1.5330    
   8  Prefactor     11.945        130.20        .11590E-03   -1.5017    
   9  norm          5.2644        8.1092        .17519E-03   -1.5249    
  10  Prefactor     1.8844        2.1110        .12344E-03   -1.5433    
  11  Prefactor     .10000E-03    18.389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .40194E-01    4.4821        .39578E-01   -1.5668    
  13  Prefactor     .10000E-03    12.606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    12.756        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     29.895        67.760        .73315E-04   -1.4614    
  16  Prefactor     .10000E-03    3.6326        .15379E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.5660        16.419        .15665E-03   -1.5195    
  18  Prefactor     .10000E-03    9.7021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    3.4567        .15059E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    5.6492        .59387E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .40907        27.413        .28583E-02   -1.5580    
  22  Prefactor     .10000E-03    32.493        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.5410        .92446        .56909E-04   -1.5460    
  24  Normalizat    .85577        .18680        .25156E-03   -.98032    
  25  Prefactor     .99746        .15831        .20524E-03   -.92814    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.55177e-09
Minuit parameter uncertainties:
  1  41.7574
  2  6.49556
  3  19.3276
  4  2.8897
  5  32.7073
  6  3.20603e-06
  7  3.66467
  8  79.0928
  9  8.11085
  10  2.11107
  11  7.66215e-06
  12  0.847897
  13  5.90874e-05
  14  0.000423253
  15  67.9353
  16  4.45383e-06
  17  16.4299
  18  6.77842e-06
  19  2.30299e-08
  20  0.000168658
  21  6.69975
  22  0.000109758
  23  0.924469
  24  0.186941
  25  0.158385
Done.

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

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  5.264e+00  8.111e+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:  9.975e-01  1.584e-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:  8.558e-01  1.869e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/265954/likelihoodResults_465091201_465350401_4FGL_J2221.5-5225_daily_bin871.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) = 6881.36603345
delta logL = 0.2453769046

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6881.32395748
delta logL = 0.287452873602

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .16307       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.8608       1.0000          .0000       5.0000    
     3 'Normalizat'    .79711       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0310       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=   6881.324     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      314 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .15280        1.6771        .68420E-02    .28618E-02
   2  alpha         3.8858        1.6337        .31476        .75645E-04
   3  Normalizat    .79675        .27745E-01    .43573E-01   -.38688E-04
   4  Prefactor     1.0315        .24386E-01    .41180E-01   -.76249E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.1528
  alpha      = 3.88578
  Normalizat = 0.796753
  Prefactor  = 1.03149
 **********
 **   18 **HESSE 
 **********

 FCN=   6881.324     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      345 TOTAL
                     EDM=   .63E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .15280        6.8438        .30828E-04   -1.5630    
   2  alpha         3.8858        4.3905        .10746E-01    .58754    
   3  Normalizat    .79675        .15308        .25968E-03   -1.0019    
   4  Prefactor     1.0315        .12991        .20216E-03   -.91687    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.28416e-07
Minuit parameter uncertainties:
  1  2.04481
  2  5.09583
  3  0.15316
  4  0.129949
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/265954': 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) = 6881.32393598
delta logL = 0.287474373527

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  1.528e-01  2.045e+00  1.000e-04  1.000e+04 ( 1.000e-13)
346        alpha:  3.886e+00  5.096e+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.031e+00  1.299e-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:  7.968e-01  1.532e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.20
Ra Dec: 335.391 -52.431
Photon Index (Free Index): 3.89 +/- 5.10
Photon Flux (Free Index): 4.74e-08 +/- 5.21e-08
Energy Flux (Free Index): 8.01e-06 +/- 9.76e-06

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/265954/cmap_HighResolution_465091201_465350401_4FGL_J2221.5-5225_daily_bin871.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.83e-05', comment='SUCCESS', energy_flux2='8.01e-06', dlogl='2.87e-01', photon_flux2='4.74e-08', job_status='DONE', time_completed='2021-09-28 09:47:41.588709', photon_index_error2='5.10', photon_index2='3.89', ts='0.57', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='4.36e-08', energy_flux_error2='9.76e-06', EG='0.86', time_epoch_completed='1632847661.59', return_code='0', job_id='265954', GAL2='1.03', EG2='0.80', return_code2='102', photon_flux_error2='5.21e-08', ts2='1.20', photon_index='1.61' WHERE bin_id='871' AND source_name='4FGL J2221.5-5225' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:47:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 265954: <4FGL_J2221.5-5225_daily_bin871> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.5-5225_daily_bin871 335.391 -52.4307 465091201 465350401 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 :                                   765.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             239.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   992 sec.
    Turnaround time :                            994 sec.

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

