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


Performing analysis on: 4FGL_J2221.5-5225_daily_bin1160
RA = 335.391, Dec = -52.4307
tmin = 540000001, tmax = 540259201
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='267310', job_status='RUN', time_executed='2021-09-28 09:36:19.086214', time_epoch_executed='1632846979.09' WHERE source_name='4FGL J2221.5-5225' and cadence='daily' and bin_id='1160'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/267310

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/267310/ft1_4FGL_J2221.5-5225_daily_bin1160.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/267310/ft2_4FGL_J2221.5-5225_daily_bin1160.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/267310/ft1_4FGL_J2221.5-5225_daily_bin1160.fits outfile=/scratch/kocevski/267310/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin1160.fits ra=335.391 dec=-52.4307 rad=12.0 tmin=540000001.0 tmax=540259201.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.53
user 3.33
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/267310/ft1_filtered_4FGL_J2221.5-5225_daily_bin1160.fits" evtable="EVENTS" scfile=/scratch/kocevski/267310/ft2_4FGL_J2221.5-5225_daily_bin1160.fits sctable="SC_DATA" outfile=/scratch/kocevski/267310/ltcube_540000001_540259201_4FGL_J2221.5-5225_daily_bin1160.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/267310/ft2_4FGL_J2221.5-5225_daily_bin1160.fits
.....................!
real 11.98
user 11.61
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/267310/ft1_filtered_4FGL_J2221.5-5225_daily_bin1160.fits evtable="EVENTS" scfile=/scratch/kocevski/267310/ft2_4FGL_J2221.5-5225_daily_bin1160.fits sctable="SC_DATA" expcube=/scratch/kocevski/267310/ltcube_540000001_540259201_4FGL_J2221.5-5225_daily_bin1160.fits outfile=/scratch/kocevski/267310/expmap_540000001_540259201_4FGL_J2221.5-5225_daily_bin1160.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/267310/ltcube_540000001_540259201_4FGL_J2221.5-5225_daily_bin1160.fits
.....................!
real 190.00
user 184.99
sys 4.71

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/267310/ft1_filtered_4FGL_J2221.5-5225_daily_bin1160.fits scfile=/scratch/kocevski/267310/ft2_4FGL_J2221.5-5225_daily_bin1160.fits outfile=/scratch/kocevski/267310/cmap_540000001_540259201_4FGL_J2221.5-5225_daily_bin1160.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.58
user 0.38
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/267310/ft1_filtered_4FGL_J2221.5-5225_daily_bin1160.fits evtable="EVENTS" scfile=/scratch/kocevski/267310/ft2_4FGL_J2221.5-5225_daily_bin1160.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/267310/Model_4FGL_J2221.5-5225_daily_bin1160.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/267310/ft1_filtered_4FGL_J2221.5-5225_daily_bin1160.fits....................!
real 53.03
user 51.76
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.9107       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .25297E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.4289       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.0966       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10510E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.0322       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.4271       1.0000         .10000E-03   10000.    
    11 'Prefactor '    38.234       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.3774       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.1654       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.9601       1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.995       1.0000         .10000E-03   10000.    
    23 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .73768       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.4070       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=   7128.751     FROM MIGRAD    STATUS=CONVERGED    610 CALLS     2929 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.168       -.79115E-06** at limit **
   2  Prefactor     .10000E-03    3.0293       -.18790E-07** at limit **
   3  Prefactor     2.9062        18.186        .60831E-05    .77864E-04
   4  Prefactor     .10000E-03    1.6458        .57439E-06** at limit **
   5  Prefactor     8.3254        32.912        .23078E-05    .18010E-04
   6  Prefactor     7.1028        7.2456       -.52452E-07    .25046E-04
   7  Prefactor     .10000E-03    1.9620        .87833E-07** at limit **
   8  Prefactor     .10000E-03    23.725       -.54778E-06** at limit **
   9  norm          3.0321        3.8511       -.11652E-06   -.12019E-04
  10  Prefactor     5.4278        4.4247       -.12977E-06    .79365E-04
  11  Prefactor     38.234        35.647        .76900E-07    .62703E-05
  12  Prefactor     .10001E-03    5.5427       -.49957E-05** at limit **
  13  Prefactor     .10000E-03    10.097        .29056E-06** at limit **
  14  Prefactor     .10000E-03    5.2891       -.12415E-07** at limit **
  15  Prefactor     .10000E-03    41.970       -.41976E-05** at limit **
  16  Prefactor     5.3771        6.6720        .97293E-06    .11582E-03
  17  Prefactor     .10000E-03    36.846        .40511E-05** at limit **
  18  Prefactor     .10000E-03    15.723       -.99411E-06** at limit **
  19  norm          2.1649        10.249        .83613E-05    .16449E-03
  20  norm          .10000E-03    1.9634       -.44169E-07** at limit **
  21  Prefactor     8.9597        7.8959        .16854E-06    .23396E-03
  22  Prefactor     10.996        24.231        .35424E-06    .96115E-04
  23  norm          .10000E-03    .44669        .45478E-07** at limit **
  24  Normalizat    .73758        .17787       -.24276E-06    .20885E-03
  25  Prefactor     1.4071        .15033       -.36458E-06    .28810E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.90623
  Prefactor  = 0.0001
  Prefactor  = 8.32542
  Prefactor  = 7.10282
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.03209
  Prefactor  = 5.42776
  Prefactor  = 38.2336
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.37714
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.1649
  norm       = 0.0001
  Prefactor  = 8.95968
  Prefactor  = 10.9957
  norm       = 0.0001
  Normalizat = 0.737579
  Prefactor  = 1.40711
 **********
 **   18 **HESSE 
 **********

 FCN=   7128.751     FROM HESSE     STATUS=OK           429 CALLS     3358 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.0523        .14349E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.9062        18.705        .11907E-02   -1.5367    
   4  Prefactor     .10000E-03    7.7061        .20618E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.3254        32.847        .13808E-03   -1.5131    
   6  Prefactor     7.1028        7.2031        .15058E-03   -1.5175    
   7  Prefactor     .10000E-03    4.0506        .22749E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    23.729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.0321        3.8458        .91127E-03   -1.5360    
  10  Prefactor     5.4278        4.4223        .14972E-03   -1.5242    
  11  Prefactor     38.234        35.636        .64820E-04   -1.4471    
  12  Prefactor     .10001E-03    13.963        .30026E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    10.115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.3189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    41.979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.3771        6.6886        .86650E-03   -1.5244    
  17  Prefactor     .10000E-03    36.860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    15.918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.1649        11.281        .13994E-02   -1.5414    
  20  norm          .10000E-03    1.9639        .11554E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     8.9597        7.8892        .66950E-03   -1.5109    
  22  Prefactor     10.996        24.121        .12082E-03   -1.5045    
  23  norm          .10000E-03    .67680        .10828E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .73758        .20666        .30552E-03   -1.0243    
  25  Prefactor     1.4071        .17722        .20091E-03   -.80176    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05003e-09
Minuit parameter uncertainties:
  1  2.07383e-06
  2  4.3116e-06
  3  14.7525
  4  0.000104483
  5  32.9183
  6  7.204
  7  1.63475e-05
  8  1.47882e-05
  9  3.84613
  10  4.42258
  11  35.6556
  12  0.000774071
  13  1.04488e-06
  14  1.11211e-06
  15  2.36633e-05
  16  6.68957
  17  7.60477e-06
  18  5.17171e-05
  19  9.88661
  20  2.10849e-07
  21  7.89009
  22  24.1428
  23  3.04659e-06
  24  0.206874
  25  0.177295
Done.

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

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  3.032e+00  3.846e+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.407e+00  1.773e-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.376e-01  2.069e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.50
Ra Dec: 335.391 -52.431
Photon Index (Fixed Index): 1.61 +/- 0.00
Photon Flux (Fixed Index): 5.06e-09 +/- 6.42e-09
Energy Flux (Fixed Index): 1.02e-05 +/- 1.30e-05

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

Saving results to:
/scratch/kocevski/267310/likelihoodResults_540000001_540259201_4FGL_J2221.5-5225_daily_bin1160.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) = 7128.71749527
delta logL = 0.0338813114149

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7128.71719614
delta logL = 0.0341804401432

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1189       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.3659       1.0000          .0000       5.0000    
     3 'Normalizat'    .73855       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4069       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=   7128.717     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      240 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1190        3.9234        .18323E-03   -.12459E-03
   2  alpha         1.3659        .87170        .28972E-01   -.95302E-05
   3  Normalizat    .73855        .19800        .30533E-03    .22266E-04
   4  Prefactor     1.4069        .17481        .20092E-03    .33894E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.11898
  alpha      = 1.36588
  Normalizat = 0.738547
  Prefactor  = 1.4069
 **********
 **   18 **HESSE 
 **********

 FCN=   7128.717     FROM HESSE     STATUS=OK            25 CALLS      265 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1190        3.9333        .73292E-05   -1.5355    
   2  alpha         1.3659        .87413        .11589E-02   -.47086    
   3  Normalizat    .73855        .19818        .12213E-04   -1.0239    
   4  Prefactor     1.4069        .17498        .80367E-05   -.80182    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.17313e-11
Minuit parameter uncertainties:
  1  3.93364
  2  0.898269
  3  0.198374
  4  0.175049
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/267310': 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) = 7128.71719614
delta logL = 0.0341804412728

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  3.119e+00  3.934e+00  1.000e-04  1.000e+04 ( 1.000e-13)
346        alpha:  1.366e+00  8.983e-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.407e+00  1.750e-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.385e-01  1.984e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.57
Ra Dec: 335.391 -52.431
Photon Index (Free Index): 1.37 +/- 0.90
Photon Flux (Free Index): 4.00e-09 +/- 6.05e-09
Energy Flux (Free Index): 1.51e-05 +/- 2.93e-05

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/267310/cmap_HighResolution_540000001_540259201_4FGL_J2221.5-5225_daily_bin1160.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.77e-05', comment='SUCCESS', photon_flux='5.06e-09', energy_flux2='1.51e-05', photon_flux_error='6.42e-09', dlogl='3.42e-02', energy_flux='1.02e-05', photon_flux2='4.00e-09', job_status='DONE', time_completed='2021-09-28 09:49:03.484204', photon_index_error2='0.90', photon_index2='1.37', ts='1.50', fit_tolerance='1e-08', GAL='1.41', photon_index_error='0.00', photon_flux_upper_limit='2.85e-08', energy_flux_error2='2.93e-05', EG='0.74', time_epoch_completed='1632847743.48', return_code='0', job_id='267310', GAL2='1.41', EG2='0.74', return_code2='0', energy_flux_error='1.30e-05', photon_flux_error2='6.05e-09', ts2='1.57', photon_index='1.61' WHERE bin_id='1160' AND source_name='4FGL J2221.5-5225' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:49:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 267310: <4FGL_J2221.5-5225_daily_bin1160> in cluster <slac> Done

Job <4FGL_J2221.5-5225_daily_bin1160> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 09:35:39 2021
Job was executed on host(s) <bullet0217>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:35:41 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:35:41 2021
Terminated at Tue Sep 28 09:49:04 2021
Results reported at Tue Sep 28 09:49:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.5-5225_daily_bin1160 335.391 -52.4307 540000001 540259201 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 :                                   764.21 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             328.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   802 sec.
    Turnaround time :                            805 sec.

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

