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


Performing analysis on: 4FGL_J2221.5-5225_daily_bin1265
RA = 335.391, Dec = -52.4307
tmin = 567216001, tmax = 567475201
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='268486', job_status='RUN', time_executed='2021-09-28 09:41:17.916445', time_epoch_executed='1632847277.92' WHERE source_name='4FGL J2221.5-5225' and cadence='daily' and bin_id='1265'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/268486

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/268486/ft1_4FGL_J2221.5-5225_daily_bin1265.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/268486/ft2_4FGL_J2221.5-5225_daily_bin1265.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/268486/ft1_4FGL_J2221.5-5225_daily_bin1265.fits outfile=/scratch/kocevski/268486/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin1265.fits ra=335.391 dec=-52.4307 rad=12.0 tmin=567216001.0 tmax=567475201.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 2.84
user 2.64
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/268486/ft1_filtered_4FGL_J2221.5-5225_daily_bin1265.fits" evtable="EVENTS" scfile=/scratch/kocevski/268486/ft2_4FGL_J2221.5-5225_daily_bin1265.fits sctable="SC_DATA" outfile=/scratch/kocevski/268486/ltcube_567216001_567475201_4FGL_J2221.5-5225_daily_bin1265.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/268486/ft2_4FGL_J2221.5-5225_daily_bin1265.fits
.....................!
real 12.73
user 12.32
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/268486/ft1_filtered_4FGL_J2221.5-5225_daily_bin1265.fits evtable="EVENTS" scfile=/scratch/kocevski/268486/ft2_4FGL_J2221.5-5225_daily_bin1265.fits sctable="SC_DATA" expcube=/scratch/kocevski/268486/ltcube_567216001_567475201_4FGL_J2221.5-5225_daily_bin1265.fits outfile=/scratch/kocevski/268486/expmap_567216001_567475201_4FGL_J2221.5-5225_daily_bin1265.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/268486/ltcube_567216001_567475201_4FGL_J2221.5-5225_daily_bin1265.fits
.....................!
real 191.37
user 186.45
sys 4.54

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/268486/ft1_filtered_4FGL_J2221.5-5225_daily_bin1265.fits scfile=/scratch/kocevski/268486/ft2_4FGL_J2221.5-5225_daily_bin1265.fits outfile=/scratch/kocevski/268486/cmap_567216001_567475201_4FGL_J2221.5-5225_daily_bin1265.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.40
sys 0.12

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    52.057       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.5239       1.0000         .10000E-03   10000.    
     5 'Prefactor '    70.129       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .82205E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.7220       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.0762       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .36137E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    25.689       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10157E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    28.089       1.0000         .10000E-03   10000.    
    19 'norm      '    7.4311       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.4680       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .73949       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2103       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=   7678.129     FROM MIGRAD    STATUS=CONVERGED    632 CALLS     2962 TOTAL
                     EDM=   .86E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     52.045        43.986       -.59417E-06    .67635E-05
   2  Prefactor     .10000E-03    5.2933        .10098E-05** at limit **
   3  Prefactor     .10000E-03    28.447       -.61427E-06** at limit **
   4  Prefactor     6.5240        4.4021       -.35419E-06   -.12635E-03
   5  Prefactor     70.169        36.418        .10038E-04    .15362E-03
   6  Prefactor     .10001E-03    5.2447       -.17101E-05** at limit **
   7  Prefactor     7.7231        3.8980        .29637E-07    .17373E-03
   8  Prefactor     .10000E-03    76.215        .11800E-05** at limit **
   9  norm          1.0745        3.3576       -.93394E-06   -.11033E-02
  10  Prefactor     .10000E-03    1.3503        .46379E-08** at limit **
  11  Prefactor     .10000E-03    12.028       -.15051E-04** at limit **
  12  Prefactor     .10000E-03    2.3657        .10778E-05** at limit **
  13  Prefactor     25.715        21.999       -.73396E-05   -.12341E-03
  14  Prefactor     .10000E-03    5.3016       -.43989E-06** at limit **
  15  Prefactor     .10000E-03    56.902       -.13973E-05** at limit **
  16  Prefactor     .10000E-03    1.8496        .26531E-08** at limit **
  17  Prefactor     .10000E-03    14.406       -.47737E-06** at limit **
  18  Prefactor     28.087        14.492       -.13535E-05   -.20162E-03
  19  norm          7.4304        9.9430        .79975E-06   -.10790E-03
  20  norm          .10000E-03    2.5059        .56591E-07** at limit **
  21  Prefactor     5.4683        4.3938       -.18693E-06   -.53344E-03
  22  Prefactor     .10000E-03    12.056        .15509E-04** at limit **
  23  norm          .10000E-03    .33983        .97244E-07** at limit **
  24  Normalizat    .73975        .16420        .10584E-05   -.16861E-03
  25  Prefactor     1.2102        .14112       -.60683E-06    .30074E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 52.0452
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.524
  Prefactor  = 70.169
  Prefactor  = 0.000100007
  Prefactor  = 7.72309
  Prefactor  = 0.0001
  norm       = 1.07451
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.715
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.0872
  norm       = 7.43036
  norm       = 0.0001
  Prefactor  = 5.4683
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.739745
  Prefactor  = 1.21024
 **********
 **   18 **HESSE 
 **********

 FCN=   7678.129     FROM HESSE     STATUS=OK           429 CALLS     3391 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     52.045        44.038        .55587E-04   -1.4264    
   2  Prefactor     .10000E-03    5.3455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    29.189        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.5240        4.3998        .14434E-03   -1.5197    
   5  Prefactor     70.169        36.551        .47935E-04   -1.4031    
   6  Prefactor     .10001E-03    2.9395        .11077       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.7231        3.8949        .11690E-03   -1.5152    
   8  Prefactor     .10000E-03    76.280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.0745        3.1965        .27859E-02   -1.5501    
  10  Prefactor     .10000E-03    1.3780        .99371E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    11.955        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    12.147        .25288E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     25.715        21.690        .79037E-04   -1.4693    
  14  Prefactor     .10000E-03    5.3462        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    57.070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.8533        .11638E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    14.424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     28.087        14.421        .75591E-04   -1.4648    
  19  norm          7.4304        9.9341        .14713E-03   -1.5163    
  20  norm          .10000E-03    2.5269        .13542E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.4683        4.3795        .15889E-03   -1.5240    
  22  Prefactor     .10000E-03    12.040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    .49545        .98127E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .73975        .18734        .28966E-03   -1.0234    
  25  Prefactor     1.2102        .16234        .20582E-03   -.86017    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2761e-09
Minuit parameter uncertainties:
  1  44.0658
  2  1.95959e-05
  3  1.9343e-05
  4  4.40001
  5  36.5624
  6  0.000293189
  7  3.89506
  8  4.0392e-05
  9  3.19697
  10  3.22629e-06
  11  6.83292e-07
  12  3.67879e-05
  13  21.6963
  14  9.06862e-05
  15  0.000163075
  16  2.48555e-07
  17  2.34658e-05
  18  14.4231
  19  9.9363
  20  2.71863e-06
  21  4.37974
  22  2.18344e-05
  23  2.79705e-06
  24  0.1875
  25  0.162408
Done.

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

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  1.075e+00  3.197e+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:  1.210e+00  1.624e-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.397e-01  1.875e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/268486/likelihoodResults_567216001_567475201_4FGL_J2221.5-5225_daily_bin1265.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) = 7677.91237785
delta logL = 0.216891512298

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7677.90175477
delta logL = 0.227514590853

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .75566       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5630       1.0000          .0000       5.0000    
     3 'Normalizat'    .73645       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2097       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=   7677.902     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      221 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .75489        23.084        .29447E-01    .95591E-03
   2  alpha         2.5633        3.6838        .41168        .46270E-04
   3  Normalizat    .73655        .21600E-01    .65583E-01    .29276E-04
   4  Prefactor     1.2096        .19154E-01    .34406E-01    .48393E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.754886
  alpha      = 2.56334
  Normalizat = 0.736549
  Prefactor  = 1.20961
 **********
 **   18 **HESSE 
 **********

 FCN=   7677.902     FROM HESSE     STATUS=OK            33 CALLS      254 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .75489        7.6374        .15540E-02   -1.5534    
   2  alpha         2.5633        3.7378        .19360E-01    .25340E-01
   3  Normalizat    .73655        .18007        .29016E-03   -1.0247    
   4  Prefactor     1.2096        .16022        .20579E-03   -.86036    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.83e-09
Minuit parameter uncertainties:
  1  4.80271
  2  3.32483
  3  0.180217
  4  0.16028
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/268486': 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) = 7677.90175452
delta logL = 0.227514833096

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  7.549e-01  4.803e+00  1.000e-04  1.000e+04 ( 1.000e-13)
346        alpha:  2.563e+00  3.325e+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.210e+00  1.603e-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.365e-01  1.802e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.15
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/268486/cmap_HighResolution_567216001_567475201_4FGL_J2221.5-5225_daily_bin1265.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.48e-05', job_status='DONE', photon_flux_upper_limit='2.21e-08', time_completed='2021-09-28 09:54:39.663501', job_id='268486', GAL2='1.21', fit_tolerance='1e-08', EG2='0.74', EG='0.74', time_epoch_completed='1632848079.66', return_code2='0', ts='0.15', comment='SUCCESS', return_code='0', GAL='1.21', dlogl='2.28e-01', ts2='0.61', photon_index_error='0.00', photon_index='1.61' WHERE bin_id='1265' AND source_name='4FGL J2221.5-5225' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:54:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 268486: <4FGL_J2221.5-5225_daily_bin1265> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.5-5225_daily_bin1265 335.391 -52.4307 567216001 567475201 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 :                                   800.48 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             323.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   866 sec.
    Turnaround time :                            868 sec.

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

