aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 20 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 = 7483
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2221.5-5225_daily_bin1683
RA = 335.391, Dec = -52.4307
tmin = 675561601, tmax = 675820801
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='52901', job_status='RUN', time_executed='2022-06-02 01:37:07.635962', time_epoch_executed='1654159027.64' WHERE source_name='4FGL J2221.5-5225' and cadence='daily' and bin_id='1683'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/52901

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/52901/ft1_4FGL_J2221.5-5225_daily_bin1683.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/52901/ft2_4FGL_J2221.5-5225_daily_bin1683.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/52901/ft1_4FGL_J2221.5-5225_daily_bin1683.fits outfile=/scratch/kocevski/52901/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin1683.fits ra=335.391 dec=-52.4307 rad=12.0 tmin=675561601.0 tmax=675820801.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.48
user 3.27
sys 0.20

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

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

Number of photons that the gtmktime cut: 609

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/52901/ft1_filtered_4FGL_J2221.5-5225_daily_bin1683.fits" evtable="EVENTS" scfile=/scratch/kocevski/52901/ft2_4FGL_J2221.5-5225_daily_bin1683.fits sctable="SC_DATA" outfile=/scratch/kocevski/52901/ltcube_675561601_675820801_4FGL_J2221.5-5225_daily_bin1683.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/52901/ft2_4FGL_J2221.5-5225_daily_bin1683.fits
.....................!
real 14.60
user 14.22
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/52901/ft1_filtered_4FGL_J2221.5-5225_daily_bin1683.fits evtable="EVENTS" scfile=/scratch/kocevski/52901/ft2_4FGL_J2221.5-5225_daily_bin1683.fits sctable="SC_DATA" expcube=/scratch/kocevski/52901/ltcube_675561601_675820801_4FGL_J2221.5-5225_daily_bin1683.fits outfile=/scratch/kocevski/52901/expmap_675561601_675820801_4FGL_J2221.5-5225_daily_bin1683.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/52901/ltcube_675561601_675820801_4FGL_J2221.5-5225_daily_bin1683.fits
.....................!
real 192.79
user 186.27
sys 5.83

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/52901/ft1_filtered_4FGL_J2221.5-5225_daily_bin1683.fits scfile=/scratch/kocevski/52901/ft2_4FGL_J2221.5-5225_daily_bin1683.fits outfile=/scratch/kocevski/52901/cmap_675561601_675820801_4FGL_J2221.5-5225_daily_bin1683.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/52901/ft1_filtered_4FGL_J2221.5-5225_daily_bin1683.fits scfile=/scratch/kocevski/52901/ft2_4FGL_J2221.5-5225_daily_bin1683.fits outfile=/scratch/kocevski/52901/cmap_HighResolution_675561601_675820801_4FGL_J2221.5-5225_daily_bin1683.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.57
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/52901/ft1_filtered_4FGL_J2221.5-5225_daily_bin1683.fits evtable="EVENTS" scfile=/scratch/kocevski/52901/ft2_4FGL_J2221.5-5225_daily_bin1683.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/52901/Model_4FGL_J2221.5-5225_daily_bin1683.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/52901/ft1_filtered_4FGL_J2221.5-5225_daily_bin1683.fits.....................!
real 51.29
user 49.95
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.5174       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.9270       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.6165       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.8467       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11427E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.6361       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    25.173       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.6636       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.0958       1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.271       1.0000         .10000E-03   10000.    
    19 'norm      '    9.6344       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    17.248       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10095E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .95392       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .84403       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=   6616.999     FROM MIGRAD    STATUS=CONVERGED    583 CALLS     2500 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.592        .75770E-06** at limit **
   2  Prefactor     .10000E-03    1.6379       -.62948E-07** at limit **
   3  Prefactor     .10000E-03    10.831        .13913E-05** at limit **
   4  Prefactor     4.5167        4.3659       -.81628E-06   -.66518E-03
   5  Prefactor     2.8811        175.25        .32661E-05   -.36752E-04
   6  Prefactor     2.6168        9.0254        .14037E-04   -.20412E-03
   7  Prefactor     2.8460        3.0436       -.39155E-06   -.27357E-03
   8  Prefactor     .10000E-03    97.887       -.29535E-05** at limit **
   9  norm          3.6360        3.6099       -.50091E-06    .11558E-05
  10  Prefactor     .10000E-03    1.0243       -.29964E-08** at limit **
  11  Prefactor     25.173        24.117        .16779E-06   -.25056E-04
  12  Prefactor     .10000E-03    5.5652       -.12920E-06** at limit **
  13  Prefactor     .10000E-03    8.8959       -.41542E-07** at limit **
  14  Prefactor     .10000E-03    4.7742        .19714E-06** at limit **
  15  Prefactor     .10000E-03    26.239       -.28975E-06** at limit **
  16  Prefactor     2.6635        3.8396        .39795E-07   -.75133E-05
  17  Prefactor     3.0833        49.016        .31966E-05   -.20471E-05
  18  Prefactor     13.268        12.085        .25232E-06   -.84239E-04
  19  norm          9.6347        10.458        .24365E-06   -.10193E-05
  20  norm          .10000E-03    1.3754        .18744E-08** at limit **
  21  Prefactor     17.249        7.0706        .15487E-06    .14665E-04
  22  Prefactor     .10000E-03    11.347       -.11258E-05** at limit **
  23  norm          .10000E-03    .32202        .16396E-06** at limit **
  24  Normalizat    .95395        .15351       -.10334E-05   -.44002E-03
  25  Prefactor     .84399        .12371       -.20488E-05   -.85454E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.51668
  Prefactor  = 2.88111
  Prefactor  = 2.61684
  Prefactor  = 2.84595
  Prefactor  = 0.000100004
  norm       = 3.63604
  Prefactor  = 0.0001
  Prefactor  = 25.1727
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.66354
  Prefactor  = 3.08334
  Prefactor  = 13.2685
  norm       = 9.63466
  norm       = 0.0001
  Prefactor  = 17.2486
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.953951
  Prefactor  = 0.843991
 **********
 **   18 **HESSE 
 **********

 FCN=   6616.999     FROM HESSE     STATUS=OK           425 CALLS     2925 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.6408        .10166E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.5167        4.3638        .15715E-03   -1.5283    
   5  Prefactor     2.8811        177.65        .23744E-03   -1.5368    
   6  Prefactor     2.6168        9.1051        .12608E-02   -1.5384    
   7  Prefactor     2.8460        3.0336        .13952E-03   -1.5371    
   8  Prefactor     .10000E-03    98.300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.6360        3.6175        .15028E-03   -1.5327    
  10  Prefactor     .10000E-03    1.0307        .80354E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     25.173        24.124        .79841E-04   -1.4704    
  12  Prefactor     .10000E-03    5.7392        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    8.9094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.8335        .17356E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    26.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.6635        3.8264        .18618E-03   -1.5382    
  17  Prefactor     3.0833        49.087        .23049E-03   -1.5357    
  18  Prefactor     13.268        12.062        .10995E-03   -1.4979    
  19  norm          9.6347        10.456        .12911E-03   -1.5087    
  20  norm          .10000E-03    1.3754        .93165E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     17.249        7.0373        .96439E-04   -1.4877    
  22  Prefactor     .10000E-03    11.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    .39953        .88929E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .95395        .17769        .23136E-03   -.94589    
  25  Prefactor     .84399        .14383        .20788E-03   -.98127    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.7899e-10
Minuit parameter uncertainties:
  1  6.30376e-05
  2  4.75641e-06
  3  1.81623e-05
  4  4.36408
  5  45.3876
  6  9.10989
  7  3.03375
  8  0.00120462
  9  3.61771
  10  1.69621e-07
  11  24.1331
  12  2.542e-05
  13  7.27911e-06
  14  2.40265e-05
  15  2.25953e-05
  16  3.82676
  17  24.6287
  18  12.0642
  19  10.4583
  20  2.2657e-07
  21  7.03769
  22  3.11778e-05
  23  4.85913e-06
  24  0.177795
  25  0.143899
Done.

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

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  3.636e+00  3.618e+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.440e-01  1.439e-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:  9.540e-01  1.778e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.10
Ra Dec: 335.391 -52.431
Photon Index (Fixed Index): 1.61 +/- 0.00
Photon Flux (Fixed Index): 6.07e-09 +/- 6.04e-09
Energy Flux (Fixed Index): 1.23e-05 +/- 1.22e-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) = 6616.76536234
delta logL = 0.23357588341

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6616.75913358
delta logL = 0.239804646094

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.2300       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.0661       1.0000          .0000       5.0000    
     3 'Normalizat'    .95530       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84433       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=   6616.759     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      189 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.2300        3.3487        .56347E-02   -.39393E-02
   2  alpha         1.0660        .65078        .50000       -.26864E-04
   3  Normalizat    .95531        .14421        .45604E-01    .33278E-04
   4  Prefactor     .84433        .12322        .44291E-01    .34589E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.23005
  alpha      = 1.066
  Normalizat = 0.955307
  Prefactor  = 0.844328
 **********
 **   18 **HESSE 
 **********

 FCN=   6616.759     FROM HESSE     STATUS=OK            33 CALLS      222 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.2300        3.5751        .14285E-03   -1.5349    
   2  alpha         1.0660        .72702        .24754E-01   -.61090    
   3  Normalizat    .95531        .16672        .23121E-03   -.94543    
   4  Prefactor     .84433        .14254        .20785E-03   -.98114    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.56184e-09
Minuit parameter uncertainties:
  1  3.57537
  2  0.743232
  3  0.166812
  4  0.142599
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/52901': 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) = 6616.75913358
delta logL = 0.239804651119

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  3.230e+00  3.575e+00  1.000e-04  1.000e+04 ( 1.000e-13)
346        alpha:  1.066e+00  7.432e-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.443e-01  1.426e-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:  9.553e-01  1.668e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.58
Ra Dec: 335.391 -52.431
Photon Index (Free Index): 1.07 +/- 0.74
Photon Flux (Free Index): 3.61e-09 +/- 4.06e-09
Energy Flux (Free Index): 2.87e-05 +/- 4.52e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/52901/cmap_HighResolution_675561601_675820801_4FGL_J2221.5-5225_daily_bin1683.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.07e-09', energy_flux2='2.87e-05', photon_flux_error='6.04e-09', dlogl='2.40e-01', energy_flux='1.23e-05', photon_flux2='3.61e-09', job_status='DONE', time_completed='2022-06-02 01:47:39.056389', photon_index_error2='0.74', photon_index2='1.07', ts='8.10', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', energy_flux_error2='4.52e-05', EG='0.95', time_epoch_completed='1654159659.06', return_code='0', job_id='52901', GAL2='0.84', EG2='0.96', return_code2='0', energy_flux_error='1.22e-05', photon_flux_error2='4.06e-09', ts2='8.58', photon_index='1.61' WHERE bin_id='1683' AND source_name='4FGL J2221.5-5225' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Jun  2 01:47:39 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0121>
Subject: Job 52901: <4FGL_J2221.5-5225_daily_bin1683> in cluster <slac> Done

Job <4FGL_J2221.5-5225_daily_bin1683> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Jun  2 01:35:26 2022
Job was executed on host(s) <bullet0121>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jun  2 01:36:38 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jun  2 01:36:38 2022
Terminated at Thu Jun  2 01:47:39 2022
Results reported at Thu Jun  2 01:47:39 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.5-5225_daily_bin1683 335.391 -52.4307 675561601 675820801 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 :                                   631.30 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             327.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   661 sec.
    Turnaround time :                            733 sec.

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

