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


Performing analysis on: 4FGL_J2221.5-5225_daily_bin1284
RA = 335.391, Dec = -52.4307
tmin = 572140801, tmax = 572400001
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='268513', job_status='RUN', time_executed='2021-09-28 09:40:37.023954', time_epoch_executed='1632847237.02' WHERE source_name='4FGL J2221.5-5225' and cadence='daily' and bin_id='1284'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/268513

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/268513/ft1_4FGL_J2221.5-5225_daily_bin1284.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/268513/ft2_4FGL_J2221.5-5225_daily_bin1284.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/268513/ft1_4FGL_J2221.5-5225_daily_bin1284.fits outfile=/scratch/kocevski/268513/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin1284.fits ra=335.391 dec=-52.4307 rad=12.0 tmin=572140801.0 tmax=572400001.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.29
user 3.06
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/268513/ft2_4FGL_J2221.5-5225_daily_bin1284.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/268513/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin1284.fits evtable="EVENTS" outfile="/scratch/kocevski/268513/ft1_filtered_4FGL_J2221.5-5225_daily_bin1284.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.48
user 0.35
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/268513/ft1_filtered_4FGL_J2221.5-5225_daily_bin1284.fits" evtable="EVENTS" scfile=/scratch/kocevski/268513/ft2_4FGL_J2221.5-5225_daily_bin1284.fits sctable="SC_DATA" outfile=/scratch/kocevski/268513/ltcube_572140801_572400001_4FGL_J2221.5-5225_daily_bin1284.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/268513/ft2_4FGL_J2221.5-5225_daily_bin1284.fits
.....................!
real 12.25
user 11.89
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/268513/ft1_filtered_4FGL_J2221.5-5225_daily_bin1284.fits evtable="EVENTS" scfile=/scratch/kocevski/268513/ft2_4FGL_J2221.5-5225_daily_bin1284.fits sctable="SC_DATA" expcube=/scratch/kocevski/268513/ltcube_572140801_572400001_4FGL_J2221.5-5225_daily_bin1284.fits outfile=/scratch/kocevski/268513/expmap_572140801_572400001_4FGL_J2221.5-5225_daily_bin1284.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/268513/ltcube_572140801_572400001_4FGL_J2221.5-5225_daily_bin1284.fits
.....................!
real 190.56
user 186.15
sys 4.09

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/268513/ft1_filtered_4FGL_J2221.5-5225_daily_bin1284.fits scfile=/scratch/kocevski/268513/ft2_4FGL_J2221.5-5225_daily_bin1284.fits outfile=/scratch/kocevski/268513/cmap_572140801_572400001_4FGL_J2221.5-5225_daily_bin1284.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/268513/ft1_filtered_4FGL_J2221.5-5225_daily_bin1284.fits scfile=/scratch/kocevski/268513/ft2_4FGL_J2221.5-5225_daily_bin1284.fits outfile=/scratch/kocevski/268513/cmap_HighResolution_572140801_572400001_4FGL_J2221.5-5225_daily_bin1284.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.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/268513/ft1_filtered_4FGL_J2221.5-5225_daily_bin1284.fits evtable="EVENTS" scfile=/scratch/kocevski/268513/ft2_4FGL_J2221.5-5225_daily_bin1284.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/268513/Model_4FGL_J2221.5-5225_daily_bin1284.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/268513/ft1_filtered_4FGL_J2221.5-5225_daily_bin1284.fits.....................!
real 40.83
user 39.57
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.2316       1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.912       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10211E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.0829       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.5902       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10053E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.9921       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    12.555       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0548       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0863       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=   4844.725     FROM MIGRAD    STATUS=CONVERGED    564 CALLS     2855 TOTAL
                     EDM=   .41E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.2345        134.55       -.11772E-05    .53903E-06
   2  Prefactor     15.914        11.617       -.59513E-07   -.32959E-05
   3  Prefactor     .10000E-03    23.600       -.33995E-06** at limit **
   4  Prefactor     3.0832        4.7059        .13133E-06   -.14881E-04
   5  Prefactor     .10000E-03    18.434       -.16753E-06** at limit **
   6  Prefactor     .10000E-03    8.6228       -.50287E-06** at limit **
   7  Prefactor     1.5897        3.4270        .22949E-06   -.65051E-05
   8  Prefactor     .10000E-03    41.861       -.17665E-06** at limit **
   9  norm          .10000E-03    8.0295       -.25196E-06** at limit **
  10  Prefactor     .10000E-03    3.5654        .26272E-05** at limit **
  11  Prefactor     3.0873        441.60       -.10956E-04   -.18968E-05
  12  Prefactor     .10000E-03    2.7568       -.35239E-07** at limit **
  13  Prefactor     .10000E-03    14.516       -.17426E-06** at limit **
  14  Prefactor     .10000E-03    10.282       -.28175E-06** at limit **
  15  Prefactor     .10000E-03    34.733        .14719E-07** at limit **
  16  Prefactor     .10000E-03    6.3443        .14747E-05** at limit **
  17  Prefactor     .10000E-03    16.984       -.85020E-07** at limit **
  18  Prefactor     .10000E-03    7.0565       -.10594E-06** at limit **
  19  norm          12.566        16.207        .67858E-07    .32994E-05
  20  norm          .10000E-03    2.2632       -.98944E-08** at limit **
  21  Prefactor     .10000E-03    2.5479       -.44825E-07** at limit **
  22  Prefactor     .10000E-03    10.726       -.71940E-07** at limit **
  23  norm          .10000E-03    .68848       -.17065E-06** at limit **
  24  Normalizat    1.0547        .20412       -.12195E-05    .21156E-04
  25  Prefactor     1.0863        .17556        .16107E-05   -.10608E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.23452
  Prefactor  = 15.9142
  Prefactor  = 0.0001
  Prefactor  = 3.08319
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.58973
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.08725
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.5661
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.05474
  Prefactor  = 1.08626
 **********
 **   18 **HESSE 
 **********

 FCN=   4844.725     FROM HESSE     STATUS=OK           417 CALLS     3272 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.2345        134.72        .16081E-03   -1.5209    
   2  Prefactor     15.914        11.608        .10041E-03   -1.4910    
   3  Prefactor     .10000E-03    23.725        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.0832        4.6884        .17748E-03   -1.5357    
   5  Prefactor     .10000E-03    18.446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.7738        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.5897        3.3953        .18109E-03   -1.5456    
   8  Prefactor     .10000E-03    41.865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    8.1539        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.6201        .12826E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.0873        436.91        .23468E-03   -1.5357    
  12  Prefactor     .10000E-03    2.7697        .11284E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    14.557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    34.728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.3900        .17131E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    16.990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.0696        .18056E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          12.566        16.203        .11305E-03   -1.4999    
  20  norm          .10000E-03    2.2635        .10226E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.5519        .10850E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    10.744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    1.4172        .11160E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0547        .23362        .25496E-03   -.91218    
  25  Prefactor     1.0863        .20021        .21468E-03   -.89907    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28335e-10
Minuit parameter uncertainties:
  1  58.1106
  2  11.6096
  3  6.85767e-06
  4  4.689
  5  1.31321e-05
  6  8.34377e-06
  7  3.39566
  8  3.25079e-05
  9  8.09716e-06
  10  1.21139e-05
  11  74.0096
  12  7.05909e-07
  13  5.38115e-06
  14  2.65264e-06
  15  3.82952e-05
  16  1.02118e-05
  17  6.62412e-06
  18  9.45291e-06
  19  16.2086
  20  2.12952e-07
  21  6.24242e-07
  22  8.01367e-06
  23  2.08934e-05
  24  0.233852
  25  0.200344
Done.

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

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  1.000e-04  8.097e-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.086e+00  2.003e-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.055e+00  2.339e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/268513/likelihoodResults_572140801_572400001_4FGL_J2221.5-5225_daily_bin1284.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) = 4844.72555247
delta logL = -0.000583985240155

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4844.72496869
delta logL = -2.05602191272e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10597E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6345       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0547       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0863       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=   4844.725     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      198 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    14.080        .90712E-02** at limit **
   2  alpha         1.6617        3.3283        .44808       -.14940E-04
   3  Normalizat    1.0547        .19623        .57658E-01    .53464E-04
   4  Prefactor     1.0863        .16825        .38132E-01    .10786E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100007
  alpha      = 1.66166
  Normalizat = 1.05474
  Prefactor  = 1.08626
 **********
 **   18 **HESSE 
 **********

 FCN=   4844.725     FROM HESSE     STATUS=OK            31 CALLS      229 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    8.9709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6617        3.3042        .50000       -.34196    
   3  Normalizat    1.0547        .22860        .25497E-03   -.91218    
   4  Prefactor     1.0863        .19616        .21468E-03   -.89907    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.6263e-10
Minuit parameter uncertainties:
  1  0.000485208
  2  2.40676
  3  0.228813
  4  0.196288
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/268513': 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) = 4844.72496815
delta logL = 3.32442141371e-07

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  1.000e-04  4.852e-04  1.000e-04  1.000e+04 ( 1.000e-13)
346        alpha:  1.662e+00  2.407e+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.086e+00  1.963e-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.055e+00  2.288e-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/268513/cmap_HighResolution_572140801_572400001_4FGL_J2221.5-5225_daily_bin1284.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.45e-05', job_status='DONE', photon_flux_upper_limit='3.68e-08', time_completed='2021-09-28 09:50:50.167232', job_id='268513', GAL2='1.09', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1632847850.17', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='3.32e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.61' WHERE bin_id='1284' AND source_name='4FGL J2221.5-5225' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:50:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 268513: <4FGL_J2221.5-5225_daily_bin1284> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.5-5225_daily_bin1284 335.391 -52.4307 572140801 572400001 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 :                                   612.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             323.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   635 sec.
    Turnaround time :                            636 sec.

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

