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


Performing analysis on: 4FGL_J2221.5-5225_daily_bin1479
RA = 335.391, Dec = -52.4307
tmin = 622684801, tmax = 622944001
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='268792', job_status='RUN', time_executed='2021-09-28 09:42:50.327657', time_epoch_executed='1632847370.33' WHERE source_name='4FGL J2221.5-5225' and cadence='daily' and bin_id='1479'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/268792

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/268792/ft1_4FGL_J2221.5-5225_daily_bin1479.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/268792/ft2_4FGL_J2221.5-5225_daily_bin1479.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/268792/ft1_4FGL_J2221.5-5225_daily_bin1479.fits outfile=/scratch/kocevski/268792/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin1479.fits ra=335.391 dec=-52.4307 rad=12.0 tmin=622684801.0 tmax=622944001.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 5.21
user 4.94
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/268792/ft1_filtered_4FGL_J2221.5-5225_daily_bin1479.fits" evtable="EVENTS" scfile=/scratch/kocevski/268792/ft2_4FGL_J2221.5-5225_daily_bin1479.fits sctable="SC_DATA" outfile=/scratch/kocevski/268792/ltcube_622684801_622944001_4FGL_J2221.5-5225_daily_bin1479.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/268792/ft2_4FGL_J2221.5-5225_daily_bin1479.fits
.....................!
real 11.76
user 11.41
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/268792/ft1_filtered_4FGL_J2221.5-5225_daily_bin1479.fits evtable="EVENTS" scfile=/scratch/kocevski/268792/ft2_4FGL_J2221.5-5225_daily_bin1479.fits sctable="SC_DATA" expcube=/scratch/kocevski/268792/ltcube_622684801_622944001_4FGL_J2221.5-5225_daily_bin1479.fits outfile=/scratch/kocevski/268792/expmap_622684801_622944001_4FGL_J2221.5-5225_daily_bin1479.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/268792/ltcube_622684801_622944001_4FGL_J2221.5-5225_daily_bin1479.fits
.....................!
real 191.44
user 186.55
sys 4.57

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/268792/ft1_filtered_4FGL_J2221.5-5225_daily_bin1479.fits scfile=/scratch/kocevski/268792/ft2_4FGL_J2221.5-5225_daily_bin1479.fits outfile=/scratch/kocevski/268792/cmap_622684801_622944001_4FGL_J2221.5-5225_daily_bin1479.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/268792/ft1_filtered_4FGL_J2221.5-5225_daily_bin1479.fits scfile=/scratch/kocevski/268792/ft2_4FGL_J2221.5-5225_daily_bin1479.fits outfile=/scratch/kocevski/268792/cmap_HighResolution_622684801_622944001_4FGL_J2221.5-5225_daily_bin1479.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.53
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/268792/ft1_filtered_4FGL_J2221.5-5225_daily_bin1479.fits evtable="EVENTS" scfile=/scratch/kocevski/268792/ft2_4FGL_J2221.5-5225_daily_bin1479.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/268792/Model_4FGL_J2221.5-5225_daily_bin1479.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/268792/ft1_filtered_4FGL_J2221.5-5225_daily_bin1479.fits.....................!
real 50.96
user 49.67
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    63.768       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.1504       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .18336       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.7201       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.0166       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.6869       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.5136       1.0000         .10000E-03   10000.    
    13 'Prefactor '    25.670       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.5234       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.291       1.0000         .10000E-03   10000.    
    19 'norm      '    12.311       1.0000         .10000E-03   10000.    
    20 'norm      '    13.282       1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.948       1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.7369       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2076       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .99950       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=   6758.302     FROM MIGRAD    STATUS=CONVERGED    587 CALLS     2913 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     63.770        40.023       -.37716E-06    .44787E-04
   2  Prefactor     2.1508        7.8091       -.23121E-05    .47890E-04
   3  Prefactor     .10000E-03    10.219       -.53742E-05** at limit **
   4  Prefactor     .17658        1.9090       -.13490E-05    .17319E-02
   5  Prefactor     .10000E-03    23.753       -.21036E-05** at limit **
   6  Prefactor     7.7159        9.4947       -.10262E-05    .18877E-03
   7  Prefactor     2.0165        3.3672        .53063E-07   -.59149E-03
   8  Prefactor     .10000E-03    418.81       -.10156E-04** at limit **
   9  norm          2.6865        7.4790        .19190E-05    .52474E-04
  10  Prefactor     .10000E-03    2.3426       -.20435E-07** at limit **
  11  Prefactor     .10000E-03    18.197        .14120E-05** at limit **
  12  Prefactor     6.5132        5.4569        .11644E-05    .18631E-03
  13  Prefactor     25.668        27.997        .29129E-05    .10902E-03
  14  Prefactor     .10000E-03    11.357       -.19956E-05** at limit **
  15  Prefactor     .10000E-03    40.619        .33421E-06** at limit **
  16  Prefactor     1.5231        2.7900        .16816E-07   -.73070E-03
  17  Prefactor     .10000E-03    10.345        .75062E-05** at limit **
  18  Prefactor     13.290        16.489        .17571E-05    .51954E-04
  19  norm          12.311        15.003        .38024E-06    .14313E-04
  20  norm          13.282        8.7970       -.27322E-06    .39359E-05
  21  Prefactor     11.947        10.542        .17220E-05    .11635E-04
  22  Prefactor     8.7399        26.364       -.78086E-05   -.43060E-04
  23  norm          .10000E-03    .37795        .42684E-07** at limit **
  24  Normalizat    1.2076        .19048        .43918E-06    .40281E-03
  25  Prefactor     .99947        .14996        .74742E-06    .40026E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 63.7697
  Prefactor  = 2.15081
  Prefactor  = 0.0001
  Prefactor  = 0.176578
  Prefactor  = 0.0001
  Prefactor  = 7.71593
  Prefactor  = 2.01652
  Prefactor  = 0.0001
  norm       = 2.68649
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.51323
  Prefactor  = 25.668
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.52315
  Prefactor  = 0.0001
  Prefactor  = 13.2899
  norm       = 12.3108
  norm       = 13.2824
  Prefactor  = 11.9474
  Prefactor  = 8.73992
  norm       = 0.0001
  Normalizat = 1.20761
  Prefactor  = 0.999472
 **********
 **   18 **HESSE 
 **********

 FCN=   6758.302     FROM HESSE     STATUS=OK           427 CALLS     3340 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     63.770        40.058        .50253E-04   -1.4109    
   2  Prefactor     2.1508        7.8061        .28098E-03   -1.5415    
   3  Prefactor     .10000E-03    10.266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .17658        12.078        .20562E-02   -1.5624    
   5  Prefactor     .10000E-03    23.794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.7159        9.4722        .14432E-03   -1.5152    
   7  Prefactor     2.0165        3.8681        .10508E-02   -1.5424    
   8  Prefactor     .10000E-03    419.72        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.6865        7.4700        .24857E-03   -1.5380    
  10  Prefactor     .10000E-03    2.4319        .24561E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    18.209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.5132        5.4493        .15725E-03   -1.5197    
  13  Prefactor     25.668        28.181        .79065E-04   -1.4694    
  14  Prefactor     .10000E-03    11.530        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    40.627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.5231        5.5792        .17303E-02   -1.5461    
  17  Prefactor     .10000E-03    10.326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     13.290        16.520        .10987E-03   -1.4979    
  19  norm          12.311        15.001        .11417E-03   -1.5006    
  20  norm          13.282        8.7989        .10991E-03   -1.4979    
  21  Prefactor     11.947        10.556        .11589E-03   -1.5017    
  22  Prefactor     8.7399        26.436        .13561E-03   -1.5117    
  23  norm          .10000E-03    .38098        .49294E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2076        .22969        .25797E-03   -.86368    
  25  Prefactor     .99947        .17966        .22965E-03   -.92747    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.68141e-08
Minuit parameter uncertainties:
  1  40.0753
  2  7.80975
  3  7.79849e-05
  4  2.9206
  5  2.13131e-05
  6  9.47402
  7  3.86862
  8  0.000271212
  9  7.47261
  10  8.70309e-06
  11  2.35612e-05
  12  5.44968
  13  28.1954
  14  0.000141803
  15  2.75511e-05
  16  5.58108
  17  0.000108731
  18  16.526
  19  15.0054
  20  8.79974
  21  10.5577
  22  26.4718
  23  5.56766e-07
  24  0.229886
  25  0.179767
Done.

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

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  2.686e+00  7.473e+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.995e-01  1.798e-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.208e+00  2.299e-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: 3.95e-08 ph cm-2 s-1
Energy Flux Upper Limit: 8.00e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/268792/likelihoodResults_622684801_622944001_4FGL_J2221.5-5225_daily_bin1479.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) = 6757.77120359
delta logL = 0.531275191721

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6757.7693536
delta logL = 0.533125176864

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4929       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6955       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1823       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0031       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6757.769     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      253 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4932        6.1136        .12802E-03    .40637E-03
   2  alpha         2.6955        1.1708        .12685E-01    .60414E-04
   3  Normalizat    1.1825        .21602        .26007E-03    .26529E-03
   4  Prefactor     1.0030        .17512        .22902E-03   -.24075E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.49325
  alpha      = 2.69553
  Normalizat = 1.18249
  Prefactor  = 1.00297
 **********
 **   18 **HESSE 
 **********

 FCN=   6757.769     FROM HESSE     STATUS=OK            25 CALLS      278 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4932        4.5349        .51208E-05   -1.5392    
   2  alpha         2.6955        .88328        .50738E-03    .78292E-01
   3  Normalizat    1.1825        .21457        .52015E-04   -.87146    
   4  Prefactor     1.0030        .17445        .91609E-05   -.92631    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.85943e-10
Minuit parameter uncertainties:
  1  4.53548
  2  0.9029
  3  0.214726
  4  0.174547
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/268792': 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) = 6757.76935308
delta logL = 0.533125703028

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  2.493e+00  4.535e+00  1.000e-04  1.000e+04 ( 1.000e-13)
346        alpha:  2.696e+00  9.029e-01  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.003e+00  1.745e-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.182e+00  2.147e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.23
Ra Dec: 335.391 -52.431
Photon Index (Free Index): 2.70 +/- 0.90
Photon Flux (Free Index): 3.56e-08 +/- 4.34e-08
Energy Flux (Free Index): 1.09e-05 +/- 1.13e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -9.398e-02 [aplpy.core]
INFO: Auto-setting vmax to  1.043e+00 [aplpy.core]
Saving /scratch/kocevski/268792/cmap_HighResolution_622684801_622944001_4FGL_J2221.5-5225_daily_bin1479.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.00e-05', comment='SUCCESS', energy_flux2='1.09e-05', dlogl='5.33e-01', photon_flux2='3.56e-08', job_status='DONE', time_completed='2021-09-28 09:55:27.393048', photon_index_error2='0.90', photon_index2='2.70', ts='0.15', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='3.95e-08', energy_flux_error2='1.13e-05', EG='1.21', time_epoch_completed='1632848127.39', return_code='0', job_id='268792', GAL2='1.00', EG2='1.18', return_code2='0', photon_flux_error2='4.34e-08', ts2='1.23', photon_index='1.61' WHERE bin_id='1479' AND source_name='4FGL J2221.5-5225' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:55:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 268792: <4FGL_J2221.5-5225_daily_bin1479> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.5-5225_daily_bin1479 335.391 -52.4307 622684801 622944001 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 :                                   754.07 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             309.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   890 sec.
    Turnaround time :                            892 sec.

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

