/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 228 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 = 7425
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2221.5-5225_daily_bin358
RA = 335.391, Dec = -52.4307
tmin = 332121601, tmax = 332380801
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='264456', job_status='RUN', time_executed='2021-09-28 09:29:28.879156', time_epoch_executed='1632846568.88' WHERE source_name='4FGL J2221.5-5225' and cadence='daily' and bin_id='358'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/264456

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/264456/ft1_4FGL_J2221.5-5225_daily_bin358.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/264456/ft2_4FGL_J2221.5-5225_daily_bin358.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/264456/ft1_4FGL_J2221.5-5225_daily_bin358.fits outfile=/scratch/kocevski/264456/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin358.fits ra=335.391 dec=-52.4307 rad=12.0 tmin=332121601.0 tmax=332380801.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.33
user 3.07
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/264456/ft1_filtered_4FGL_J2221.5-5225_daily_bin358.fits" evtable="EVENTS" scfile=/scratch/kocevski/264456/ft2_4FGL_J2221.5-5225_daily_bin358.fits sctable="SC_DATA" outfile=/scratch/kocevski/264456/ltcube_332121601_332380801_4FGL_J2221.5-5225_daily_bin358.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/264456/ft2_4FGL_J2221.5-5225_daily_bin358.fits
.....................!
real 11.58
user 11.24
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/264456/ft1_filtered_4FGL_J2221.5-5225_daily_bin358.fits evtable="EVENTS" scfile=/scratch/kocevski/264456/ft2_4FGL_J2221.5-5225_daily_bin358.fits sctable="SC_DATA" expcube=/scratch/kocevski/264456/ltcube_332121601_332380801_4FGL_J2221.5-5225_daily_bin358.fits outfile=/scratch/kocevski/264456/expmap_332121601_332380801_4FGL_J2221.5-5225_daily_bin358.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/264456/ltcube_332121601_332380801_4FGL_J2221.5-5225_daily_bin358.fits
.....................!
real 190.60
user 185.30
sys 4.98

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/264456/ft1_filtered_4FGL_J2221.5-5225_daily_bin358.fits scfile=/scratch/kocevski/264456/ft2_4FGL_J2221.5-5225_daily_bin358.fits outfile=/scratch/kocevski/264456/cmap_332121601_332380801_4FGL_J2221.5-5225_daily_bin358.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/264456/ft1_filtered_4FGL_J2221.5-5225_daily_bin358.fits scfile=/scratch/kocevski/264456/ft2_4FGL_J2221.5-5225_daily_bin358.fits outfile=/scratch/kocevski/264456/cmap_HighResolution_332121601_332380801_4FGL_J2221.5-5225_daily_bin358.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=335.391 yref=-52.4307 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/264456/ft1_filtered_4FGL_J2221.5-5225_daily_bin358.fits evtable="EVENTS" scfile=/scratch/kocevski/264456/ft2_4FGL_J2221.5-5225_daily_bin358.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/264456/Model_4FGL_J2221.5-5225_daily_bin358.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/264456/ft1_filtered_4FGL_J2221.5-5225_daily_bin358.fits.....................!
real 49.98
user 48.70
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.862       1.0000         .10000E-03   10000.    
     2 'Prefactor '    22.894       1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.564       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.0304       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.8842       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .15936       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    4.3676       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .65162       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.6144       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.4082       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.8098       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .29112E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.3924       1.0000         .10000E-03   10000.    
    19 'norm      '    10.782       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    9.1597       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .80911       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .93316       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=   6866.762     FROM MIGRAD    STATUS=CONVERGED    576 CALLS     2909 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.837        63.825       -.61978E-04   -.76195E-05
   2  Prefactor     22.895        8.5897       -.14462E-06   -.41674E-03
   3  Prefactor     17.566        27.478        .64980E-05    .64201E-04
   4  Prefactor     3.0303        3.6011        .14943E-05   -.31985E-03
   5  Prefactor     2.8651        70.207       -.53205E-04   -.57278E-04
   6  Prefactor     .14527        3.1155        .11965E-05   -.56824E-03
   7  Prefactor     .10000E-03    2.0207       -.14486E-06** at limit **
   8  Prefactor     .10000E-03    15.283       -.43702E-05** at limit **
   9  norm          4.3676        4.5325       -.11562E-05   -.37780E-04
  10  Prefactor     .65178        2.3137       -.12680E-05   -.62017E-03
  11  Prefactor     .10000E-03    11.105        .82195E-05** at limit **
  12  Prefactor     7.6125        5.2113        .99165E-06   -.10664E-03
  13  Prefactor     3.4184        44.520        .23992E-04    .92353E-05
  14  Prefactor     8.8000        10.963       -.50715E-05   -.33480E-03
  15  Prefactor     .10000E-03    27.466        .51179E-05** at limit **
  16  Prefactor     .10004E-03    5.3152       -.11314E-05** at limit **
  17  Prefactor     .10000E-03    14.789       -.14907E-05** at limit **
  18  Prefactor     1.3929        31.490       -.62589E-05   -.25088E-03
  19  norm          10.782        13.586       -.64443E-06   -.12710E-05
  20  norm          .10000E-03    2.3630        .18147E-07** at limit **
  21  Prefactor     .10000E-03    3.5032        .11789E-06** at limit **
  22  Prefactor     .10000E-03    10.134       -.49456E-05** at limit **
  23  norm          9.1595        1.9061        .23964E-09    .71923E-03
  24  Normalizat    .80907        .16465        .12747E-05    .41796E-03
  25  Prefactor     .93315        .13295        .23551E-05    .25500E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.8372
  Prefactor  = 22.8948
  Prefactor  = 17.5665
  Prefactor  = 3.03026
  Prefactor  = 2.86507
  Prefactor  = 0.145268
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.36756
  Prefactor  = 0.651783
  Prefactor  = 0.0001
  Prefactor  = 7.61251
  Prefactor  = 3.41838
  Prefactor  = 8.80001
  Prefactor  = 0.0001
  Prefactor  = 0.000100043
  Prefactor  = 0.0001
  Prefactor  = 1.39286
  norm       = 10.7822
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.15946
  Normalizat = 0.809073
  Prefactor  = 0.933146
 **********
 **   18 **HESSE 
 **********

 FCN=   6866.762     FROM HESSE     STATUS=OK           435 CALLS     3344 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.837        63.477        .12157E-03   -1.5049    
   2  Prefactor     22.895        8.5882        .41857E-03   -1.4751    
   3  Prefactor     17.566        27.345        .95567E-04   -1.4869    
   4  Prefactor     3.0303        3.5834        .16221E-03   -1.5360    
   5  Prefactor     2.8651        69.685        .23931E-03   -1.5369    
   6  Prefactor     .14527        14.153        .27677E-02   -1.5632    
   7  Prefactor     .10000E-03    2.0766        .22982E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    15.276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.3676        4.5310        .17521E-03   -1.5290    
  10  Prefactor     .65178        3.4937        .21996E-02   -1.5547    
  11  Prefactor     .10000E-03    11.092        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.6125        5.1880        .14530E-03   -1.5156    
  13  Prefactor     3.4184        42.126        .21913E-03   -1.5338    
  14  Prefactor     8.8000        10.747        .13504E-03   -1.5115    
  15  Prefactor     .10000E-03    27.460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10004E-03    43.546        .36706E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    14.801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.3929        31.689        .36817E-03   -1.5472    
  19  norm          10.782        13.584        .12201E-03   -1.5051    
  20  norm          .10000E-03    2.3668        .12438E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.5408        .15136E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    10.148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          9.1595        1.8907        .48172E-04   -1.5103    
  24  Normalizat    .80907        .19004        .25878E-03   -.99733    
  25  Prefactor     .93315        .15560        .20786E-03   -.94992    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.42664e-09
Minuit parameter uncertainties:
  1  52.5403
  2  8.58868
  3  27.364
  4  3.58367
  5  28.2962
  6  2.86743
  7  2.00461e-05
  8  1.50537e-05
  9  4.53134
  10  3.01808
  11  2.11526e-06
  12  5.1883
  13  24.0207
  14  10.7495
  15  3.49529e-05
  16  0.00275057
  17  3.77029e-05
  18  13.2948
  19  13.5874
  20  2.94635e-06
  21  3.34378e-07
  22  3.70875e-06
  23  1.89069
  24  0.1902
  25  0.155677
Done.

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

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  4.368e+00  4.531e+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.331e-01  1.557e-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:  8.091e-01  1.902e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.27
Ra Dec: 335.391 -52.431
Photon Index (Fixed Index): 1.61 +/- 0.00
Photon Flux (Fixed Index): 7.29e-09 +/- 7.56e-09
Energy Flux (Fixed Index): 1.48e-05 +/- 1.53e-05

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

Saving results to:
/scratch/kocevski/264456/likelihoodResults_332121601_332380801_4FGL_J2221.5-5225_daily_bin358.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) = 6866.67592393
delta logL = 0.0863149186898

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6866.67431982
delta logL = 0.0879190322312

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.6278       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9177       1.0000          .0000       5.0000    
     3 'Normalizat'    .80716       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93339       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=   6866.674     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      281 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.6275        4.6181        .15560E-03    .61924E-03
   2  alpha         1.9176        .77669        .15148E-01    .52886E-04
   3  Normalizat    .80712        .17470        .25906E-03   -.14644E-03
   4  Prefactor     .93345        .15064        .20781E-03   -.27969E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.62749
  alpha      = 1.91759
  Normalizat = 0.80712
  Prefactor  = 0.933452
 **********
 **   18 **HESSE 
 **********

 FCN=   6866.674     FROM HESSE     STATUS=OK            25 CALLS      306 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.6275        4.4580        .31120E-04   -1.5327    
   2  alpha         1.9176        .75079        .60593E-03   -.23512    
   3  Normalizat    .80712        .17481        .10362E-04   -.99805    
   4  Prefactor     .93345        .15075        .41563E-04   -.94982    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.62641e-10
Minuit parameter uncertainties:
  1  4.45842
  2  0.763265
  3  0.17493
  4  0.150822
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/264456': 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) = 6866.67431966
delta logL = 0.0879191890826

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  3.627e+00  4.458e+00  1.000e-04  1.000e+04 ( 1.000e-13)
346        alpha:  1.918e+00  7.633e-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:  9.335e-01  1.508e-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:  8.071e-01  1.749e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.45
Ra Dec: 335.391 -52.431
Photon Index (Free Index): 1.92 +/- 0.76
Photon Flux (Free Index): 9.83e-09 +/- 1.19e-08
Energy Flux (Free Index): 9.60e-06 +/- 1.35e-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/264456/cmap_HighResolution_332121601_332380801_4FGL_J2221.5-5225_daily_bin358.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.17e-05', comment='SUCCESS', photon_flux='7.29e-09', energy_flux2='9.60e-06', photon_flux_error='7.56e-09', dlogl='8.79e-02', energy_flux='1.48e-05', photon_flux2='9.83e-09', job_status='DONE', time_completed='2021-09-28 09:42:04.900166', photon_index_error2='0.76', photon_index2='1.92', ts='2.27', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='3.04e-08', energy_flux_error2='1.35e-05', EG='0.81', time_epoch_completed='1632847324.9', return_code='0', job_id='264456', GAL2='0.93', EG2='0.81', return_code2='0', energy_flux_error='1.53e-05', photon_flux_error2='1.19e-08', ts2='2.45', photon_index='1.61' WHERE bin_id='358' AND source_name='4FGL J2221.5-5225' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:42:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 264456: <4FGL_J2221.5-5225_daily_bin358> in cluster <slac> Done

Job <4FGL_J2221.5-5225_daily_bin358> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 09:25:32 2021
Job was executed on host(s) <bullet0221>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:25:32 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:25:32 2021
Terminated at Tue Sep 28 09:42:05 2021
Results reported at Tue Sep 28 09:42:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.5-5225_daily_bin358 335.391 -52.4307 332121601 332380801 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 :                                   756.23 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             274.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   993 sec.
    Turnaround time :                            993 sec.

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

