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


Performing analysis on: 4FGL_J2221.5-5225_daily_bin1390
RA = 335.391, Dec = -52.4307
tmin = 599616001, tmax = 599875201
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='268663', job_status='RUN', time_executed='2021-09-28 09:44:14.510323', time_epoch_executed='1632847454.51' WHERE source_name='4FGL J2221.5-5225' and cadence='daily' and bin_id='1390'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/268663

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/268663/ft1_4FGL_J2221.5-5225_daily_bin1390.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/268663/ft2_4FGL_J2221.5-5225_daily_bin1390.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/268663/ft1_4FGL_J2221.5-5225_daily_bin1390.fits outfile=/scratch/kocevski/268663/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin1390.fits ra=335.391 dec=-52.4307 rad=12.0 tmin=599616001.0 tmax=599875201.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.54
user 2.33
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/268663/ft1_filtered_4FGL_J2221.5-5225_daily_bin1390.fits" evtable="EVENTS" scfile=/scratch/kocevski/268663/ft2_4FGL_J2221.5-5225_daily_bin1390.fits sctable="SC_DATA" outfile=/scratch/kocevski/268663/ltcube_599616001_599875201_4FGL_J2221.5-5225_daily_bin1390.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/268663/ft2_4FGL_J2221.5-5225_daily_bin1390.fits
.....................!
real 12.47
user 12.09
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/268663/ft1_filtered_4FGL_J2221.5-5225_daily_bin1390.fits evtable="EVENTS" scfile=/scratch/kocevski/268663/ft2_4FGL_J2221.5-5225_daily_bin1390.fits sctable="SC_DATA" expcube=/scratch/kocevski/268663/ltcube_599616001_599875201_4FGL_J2221.5-5225_daily_bin1390.fits outfile=/scratch/kocevski/268663/expmap_599616001_599875201_4FGL_J2221.5-5225_daily_bin1390.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/268663/ltcube_599616001_599875201_4FGL_J2221.5-5225_daily_bin1390.fits
.....................!
real 190.78
user 185.22
sys 5.19

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/268663/ft1_filtered_4FGL_J2221.5-5225_daily_bin1390.fits scfile=/scratch/kocevski/268663/ft2_4FGL_J2221.5-5225_daily_bin1390.fits outfile=/scratch/kocevski/268663/cmap_599616001_599875201_4FGL_J2221.5-5225_daily_bin1390.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/268663/ft1_filtered_4FGL_J2221.5-5225_daily_bin1390.fits scfile=/scratch/kocevski/268663/ft2_4FGL_J2221.5-5225_daily_bin1390.fits outfile=/scratch/kocevski/268663/cmap_HighResolution_599616001_599875201_4FGL_J2221.5-5225_daily_bin1390.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/268663/ft1_filtered_4FGL_J2221.5-5225_daily_bin1390.fits evtable="EVENTS" scfile=/scratch/kocevski/268663/ft2_4FGL_J2221.5-5225_daily_bin1390.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/268663/Model_4FGL_J2221.5-5225_daily_bin1390.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/268663/ft1_filtered_4FGL_J2221.5-5225_daily_bin1390.fits.....................!
real 46.92
user 45.48
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.239       1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.070       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.1205       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .25821E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.633       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10840E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    10.422       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .43340       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.5332       1.0000         .10000E-03   10000.    
    14 'Prefactor '    17.093       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10263E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .46669E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    30.161       1.0000         .10000E-03   10000.    
    19 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.4238       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.9941       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .63405       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.8293       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .81409       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=   5964.683     FROM MIGRAD    STATUS=CONVERGED    599 CALLS     3007 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    21.236        .48269E-05** at limit **
   2  Prefactor     14.239        15.436        .13027E-06    .66113E-04
   3  Prefactor     15.071        18.221        .45800E-07    .19538E-04
   4  Prefactor     7.1194        6.3313        .14998E-05    .10245E-02
   5  Prefactor     .10000E-03    269.49       -.20987E-05** at limit **
   6  Prefactor     12.649        14.007       -.67612E-06   -.90881E-04
   7  Prefactor     .10000E-03    4.9546        .48957E-09** at limit **
   8  Prefactor     .10001E-03    186.98       -.61819E-05** at limit **
   9  norm          10.423        8.4984       -.50401E-07   -.29244E-04
  10  Prefactor     .44827        3.5892       -.11735E-05    .13244E-03
  11  Prefactor     .10000E-03    14.309        .20974E-05** at limit **
  12  Prefactor     .10000E-03    2.0952        .12715E-06** at limit **
  13  Prefactor     9.5417        34.581        .12409E-05    .46910E-04
  14  Prefactor     17.091        17.163       -.15503E-06   -.25936E-06
  15  Prefactor     .10001E-03    50.888       -.36184E-05** at limit **
  16  Prefactor     .10126E-03    5.3030        .15174E-05** at limit **
  17  Prefactor     .10000E-03    14.225       -.17542E-05** at limit **
  18  Prefactor     30.164        22.963       -.33750E-06   -.10960E-04
  19  norm          .10000E-03    5.8121        .63546E-07** at limit **
  20  norm          2.4241        3.8257        .26311E-05   -.14694E-02
  21  Prefactor     1.9951        6.0190       -.40753E-06   -.24721E-03
  22  Prefactor     .10001E-03    20.452       -.47413E-05** at limit **
  23  norm          .63319        1.6195        .47995E-07   -.24993E-03
  24  Normalizat    1.8294        .23861        .92320E-07    .89942E-04
  25  Prefactor     .81404        .18747       -.48215E-06    .75856E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010001
  Prefactor  = 14.2394
  Prefactor  = 15.0706
  Prefactor  = 7.11945
  Prefactor  = 0.000100001
  Prefactor  = 12.6489
  Prefactor  = 0.0001
  Prefactor  = 0.000100015
  norm       = 10.4227
  Prefactor  = 0.448271
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 9.5417
  Prefactor  = 17.0909
  Prefactor  = 0.000100006
  Prefactor  = 0.00010126
  Prefactor  = 0.000100001
  Prefactor  = 30.1643
  norm       = 0.0001
  norm       = 2.42407
  Prefactor  = 1.99513
  Prefactor  = 0.000100009
  norm       = 0.63319
  Normalizat = 1.82938
  Prefactor  = 0.814041
 **********
 **   18 **HESSE 
 **********

 FCN=   5964.683     FROM HESSE     STATUS=OK           437 CALLS     3444 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    22.121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     14.239        15.431        .10615E-03   -1.4953    
   3  Prefactor     15.071        18.219        .10317E-03   -1.4931    
   4  Prefactor     7.1194        6.4852        .15033E-03   -1.5174    
   5  Prefactor     .10000E-03    274.59        .21452E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     12.649        14.024        .11270E-03   -1.4997    
   7  Prefactor     .10000E-03    5.0489        .16765E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    188.32        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          10.423        8.5014        .12411E-03   -1.5062    
  10  Prefactor     .44827        7.4651        .27268E-02   -1.5574    
  11  Prefactor     .10000E-03    14.491        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.0996        .10917E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.5417        34.601        .12979E-03   -1.5090    
  14  Prefactor     17.091        17.077        .96874E-04   -1.4881    
  15  Prefactor     .10001E-03    51.407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10126E-03    5.2976        .59492E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    14.347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     30.164        22.616        .72955E-04   -1.4609    
  19  norm          .10000E-03    5.8159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.4241        4.3430        .10487E-02   -1.5397    
  21  Prefactor     1.9951        5.8917        .29336E-03   -1.5425    
  22  Prefactor     .10001E-03    21.221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .63319        1.5555        .13411E-03   -1.5549    
  24  Normalizat    1.8294        .28652        .25471E-03   -.68899    
  25  Prefactor     .81404        .22333        .29568E-03   -.99213    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.74012e-09
Minuit parameter uncertainties:
  1  0.000960275
  2  15.4357
  3  18.2255
  4  6.48588
  5  0.000934447
  6  14.0277
  7  2.81593e-06
  8  0.00333332
  9  8.50242
  10  3.65877
  11  0.000347233
  12  8.81499e-06
  13  34.6734
  14  17.0822
  15  0.00110963
  16  0.00516717
  17  0.000283577
  18  22.6225
  19  7.80225e-06
  20  4.34358
  21  5.89336
  22  0.000885058
  23  1.55564
  24  0.286781
  25  0.223578
Done.

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

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  1.042e+01  8.502e+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:  8.140e-01  2.236e-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.829e+00  2.868e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.69
Ra Dec: 335.391 -52.431
Photon Index (Fixed Index): 1.61 +/- 0.00
Photon Flux (Fixed Index): 1.74e-08 +/- 1.42e-08
Energy Flux (Fixed Index): 3.52e-05 +/- 2.87e-05

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) = 5964.26401255
delta logL = 0.4193009582

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5964.19479731
delta logL = 0.488516200326

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.0794       1.0000         .10000E-03   10000.    
     2 'alpha     '    .88988       1.0000          .0000       5.0000    
     3 'Normalizat'    1.8253       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82528       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=   5964.195     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      218 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.0736        6.0220        .40709E-02   -.28484E-02
   2  alpha         .88897        .51336        .44465       -.26229E-04
   3  Normalizat    1.8253        .22449        .57673E-01    .74471E-05
   4  Prefactor     .82519        .18503        .66480E-01    .17944E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.07356
  alpha      = 0.888968
  Normalizat = 1.82534
  Prefactor  = 0.825186
 **********
 **   18 **HESSE 
 **********

 FCN=   5964.195     FROM HESSE     STATUS=OK            31 CALLS      249 TOTAL
                     EDM=   .20E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.0736        11.155        .81417E-03   -1.5215    
   2  alpha         .88897        .92092        .19673E-02   -.70026    
   3  Normalizat    1.8253        .26604        .25500E-03   -.69004    
   4  Prefactor     .82519        .21944        .29409E-03   -.98807    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.98994e-12
Minuit parameter uncertainties:
  1  11.1585
  2  0.960873
  3  0.266247
  4  0.219674
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/268663': 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) = 5964.19479649
delta logL = 0.488517018067

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  6.074e+00  1.116e+01  1.000e-04  1.000e+04 ( 1.000e-13)
346        alpha:  8.890e-01  9.609e-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:  8.252e-01  2.197e-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.825e+00  2.662e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.66
Ra Dec: 335.391 -52.431
Photon Index (Free Index): 0.89 +/- 0.96
Photon Flux (Free Index): 7.03e-09 +/- 1.05e-08
Energy Flux (Free Index): 8.22e-05 +/- 1.03e-04

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/268663/cmap_HighResolution_599616001_599875201_4FGL_J2221.5-5225_daily_bin1390.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.74e-08', energy_flux2='8.22e-05', photon_flux_error='1.42e-08', dlogl='4.89e-01', energy_flux='3.52e-05', photon_flux2='7.03e-09', job_status='DONE', time_completed='2021-09-28 09:54:45.032832', photon_index_error2='0.96', photon_index2='0.89', ts='11.69', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', energy_flux_error2='1.03e-04', EG='1.83', time_epoch_completed='1632848085.03', return_code='0', job_id='268663', GAL2='0.83', EG2='1.83', return_code2='0', energy_flux_error='2.87e-05', photon_flux_error2='1.05e-08', ts2='12.66', photon_index='1.61' WHERE bin_id='1390' AND source_name='4FGL J2221.5-5225' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:54:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0160>
Subject: Job 268663: <4FGL_J2221.5-5225_daily_bin1390> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.5-5225_daily_bin1390 335.391 -52.4307 599616001 599875201 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 :                                   629.47 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             298.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   857 sec.
    Turnaround time :                            859 sec.

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

