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


Performing analysis on: 4FGL_J2221.5-5225_daily_bin1264
RA = 335.391, Dec = -52.4307
tmin = 566956801, tmax = 567216001
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='268485', job_status='RUN', time_executed='2021-09-28 09:41:21.497652', time_epoch_executed='1632847281.5' WHERE source_name='4FGL J2221.5-5225' and cadence='daily' and bin_id='1264'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/268485

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/268485/ft1_4FGL_J2221.5-5225_daily_bin1264.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/268485/ft2_4FGL_J2221.5-5225_daily_bin1264.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/268485/ft1_4FGL_J2221.5-5225_daily_bin1264.fits outfile=/scratch/kocevski/268485/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin1264.fits ra=335.391 dec=-52.4307 rad=12.0 tmin=566956801.0 tmax=567216001.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.53
user 2.35
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/268485/ft1_filtered_4FGL_J2221.5-5225_daily_bin1264.fits" evtable="EVENTS" scfile=/scratch/kocevski/268485/ft2_4FGL_J2221.5-5225_daily_bin1264.fits sctable="SC_DATA" outfile=/scratch/kocevski/268485/ltcube_566956801_567216001_4FGL_J2221.5-5225_daily_bin1264.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/268485/ft2_4FGL_J2221.5-5225_daily_bin1264.fits
.....................!
real 12.64
user 12.28
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/268485/ft1_filtered_4FGL_J2221.5-5225_daily_bin1264.fits evtable="EVENTS" scfile=/scratch/kocevski/268485/ft2_4FGL_J2221.5-5225_daily_bin1264.fits sctable="SC_DATA" expcube=/scratch/kocevski/268485/ltcube_566956801_567216001_4FGL_J2221.5-5225_daily_bin1264.fits outfile=/scratch/kocevski/268485/expmap_566956801_567216001_4FGL_J2221.5-5225_daily_bin1264.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/268485/ltcube_566956801_567216001_4FGL_J2221.5-5225_daily_bin1264.fits
.....................!
real 189.98
user 185.12
sys 4.44

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/268485/ft1_filtered_4FGL_J2221.5-5225_daily_bin1264.fits scfile=/scratch/kocevski/268485/ft2_4FGL_J2221.5-5225_daily_bin1264.fits outfile=/scratch/kocevski/268485/cmap_566956801_567216001_4FGL_J2221.5-5225_daily_bin1264.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/268485/ft1_filtered_4FGL_J2221.5-5225_daily_bin1264.fits scfile=/scratch/kocevski/268485/ft2_4FGL_J2221.5-5225_daily_bin1264.fits outfile=/scratch/kocevski/268485/cmap_HighResolution_566956801_567216001_4FGL_J2221.5-5225_daily_bin1264.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    24.849       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.9602       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .18925E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.0756       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.5326       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .38987E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    11.343       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.7393       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12527E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.0371       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11967E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.1721       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .13256E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.3477       1.0000         .10000E-03   10000.    
    23 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0366       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .95692       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=   7934.549     FROM MIGRAD    STATUS=CONVERGED    610 CALLS     2614 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.213        .16522E-05** at limit **
   2  Prefactor     24.848        9.8449        .14083E-06    .42776E-04
   3  Prefactor     1.9808        53.788        .11153E-04    .75329E-04
   4  Prefactor     .10001E-03    2.0661       -.74104E-06** at limit **
   5  Prefactor     4.1140        83.770       -.21119E-05   -.44113E-04
   6  Prefactor     .10000E-03    4.4217        .19997E-08** at limit **
   7  Prefactor     3.5334        4.4700        .12974E-06   -.34219E-03
   8  Prefactor     .10003E-03    654.40        .21980E-04** at limit **
   9  norm          11.343        5.8584        .12637E-07   -.41323E-04
  10  Prefactor     2.7416        4.0687        .78149E-06   -.13979E-03
  11  Prefactor     .10000E-03    249.19        .25466E-05** at limit **
  12  Prefactor     6.0371        3.8039        .13345E-07   -.18558E-03
  13  Prefactor     .10000E-03    8.7550        .33801E-06** at limit **
  14  Prefactor     .10000E-03    14.698       -.10922E-05** at limit **
  15  Prefactor     .10000E-03    21.887        .72512E-06** at limit **
  16  Prefactor     .10001E-03    4.1000        .23832E-05** at limit **
  17  Prefactor     .10000E-03    6.3722       -.61396E-08** at limit **
  18  Prefactor     .10000E-03    2.9150        .41008E-07** at limit **
  19  norm          3.1712        9.0069       -.31135E-07   -.23967E-04
  20  norm          .10000E-03    1.5299       -.22532E-08** at limit **
  21  Prefactor     .10000E-03    4.4021       -.27312E-05** at limit **
  22  Prefactor     2.3451        14.114        .80316E-05   -.10754E-03
  23  norm          .10000E-03    .32281       -.19343E-07** at limit **
  24  Normalizat    1.0365        .15929       -.21834E-05   -.52644E-03
  25  Prefactor     .95697        .12908        .12167E-06   -.53962E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 24.848
  Prefactor  = 1.9808
  Prefactor  = 0.000100012
  Prefactor  = 4.11397
  Prefactor  = 0.0001
  Prefactor  = 3.53339
  Prefactor  = 0.000100035
  norm       = 11.3428
  Prefactor  = 2.7416
  Prefactor  = 0.0001
  Prefactor  = 6.03708
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.17118
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.34511
  norm       = 0.0001
  Normalizat = 1.03653
  Prefactor  = 0.956971
 **********
 **   18 **HESSE 
 **********

 FCN=   7934.549     FROM HESSE     STATUS=OK           427 CALLS     3041 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     24.848        9.8191        .80358E-04   -1.4711    
   3  Prefactor     1.9808        54.843        .29628E-03   -1.5426    
   4  Prefactor     .10001E-03    11.407        .23756E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.1140        83.175        .19971E-03   -1.5302    
   6  Prefactor     .10000E-03    4.4467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.5334        4.4611        .19491E-03   -1.5332    
   8  Prefactor     .10003E-03    674.45        .42551E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          11.343        5.8576        .11895E-03   -1.5034    
  10  Prefactor     2.7416        4.0499        .19980E-03   -1.5377    
  11  Prefactor     .10000E-03    253.84        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.0371        3.8030        .13270E-03   -1.5217    
  13  Prefactor     .10000E-03    8.7779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    15.158        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    21.898        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    10.831        .31723E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.3730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.9234        .14852E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.1712        8.9885        .22754E-03   -1.5352    
  20  norm          .10000E-03    1.5327        .10759E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    13.939        .31032E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.3451        17.192        .13377E-02   -1.5402    
  23  norm          .10000E-03    .69379        .97601E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0365        .18339        .24152E-03   -.91816    
  25  Prefactor     .95697        .15042        .21674E-03   -.94178    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.3318e-09
Minuit parameter uncertainties:
  1  8.8909e-05
  2  9.81978
  3  20.8661
  4  0.000746423
  5  37.0548
  6  9.47932e-06
  7  4.46155
  8  0.00981029
  9  5.85794
  10  4.05028
  11  0.000285215
  12  3.80317
  13  3.76995e-05
  14  7.69407e-05
  15  7.11468e-05
  16  0.000581709
  17  2.26352e-06
  18  5.32036e-06
  19  8.99229
  20  7.31289e-07
  21  3.81802e-05
  22  12.7039
  23  3.47105e-07
  24  0.183498
  25  0.150482
Done.

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

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  1.134e+01  5.858e+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.570e-01  1.505e-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.037e+00  1.835e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 26.89
Ra Dec: 335.391 -52.431
Photon Index (Fixed Index): 1.61 +/- 0.00
Photon Flux (Fixed Index): 1.89e-08 +/- 9.77e-09
Energy Flux (Fixed Index): 3.83e-05 +/- 1.98e-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) = 7934.14201431
delta logL = 0.406952588929

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7934.13343344
delta logL = 0.415533461045

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.075       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.2171       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0414       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95639       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=   7934.133     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      200 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.075        6.0074        .30097E-02    .21627E-02
   2  alpha         1.2167        .38646        .35995       -.19675E-04
   3  Normalizat    1.0413        .14542        .41170E-01    .36518E-04
   4  Prefactor     .95643        .12637        .45720E-01    .30103E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 11.0749
  alpha      = 1.21667
  Normalizat = 1.04128
  Prefactor  = 0.956427
 **********
 **   18 **HESSE 
 **********

 FCN=   7934.133     FROM HESSE     STATUS=OK            31 CALLS      231 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.075        6.0364        .12039E-03   -1.5042    
   2  alpha         1.2167        .40490        .15203E-01   -.53906    
   3  Normalizat    1.0413        .16795        .24106E-03   -.91660    
   4  Prefactor     .95643        .14617        .21684E-03   -.94196    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.58313e-09
Minuit parameter uncertainties:
  1  6.03678
  2  0.407348
  3  0.168039
  4  0.146232
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/268485': 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) = 7934.13343188
delta logL = 0.415535015179

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  1.107e+01  6.037e+00  1.000e-04  1.000e+04 ( 1.000e-13)
346        alpha:  1.217e+00  4.073e-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.564e-01  1.462e-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.041e+00  1.680e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 27.72
Ra Dec: 335.391 -52.431
Photon Index (Free Index): 1.22 +/- 0.41
Photon Flux (Free Index): 1.29e-08 +/- 8.01e-09
Energy Flux (Free Index): 7.12e-05 +/- 6.13e-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/268485/cmap_HighResolution_566956801_567216001_4FGL_J2221.5-5225_daily_bin1264.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.89e-08', energy_flux2='7.12e-05', photon_flux_error='9.77e-09', dlogl='4.16e-01', energy_flux='3.83e-05', photon_flux2='1.29e-08', job_status='DONE', time_completed='2021-09-28 09:52:51.197419', photon_index_error2='0.41', photon_index2='1.22', ts='26.89', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='6.13e-05', EG='1.04', time_epoch_completed='1632847971.2', return_code='0', job_id='268485', GAL2='0.96', EG2='1.04', return_code2='0', energy_flux_error='1.98e-05', photon_flux_error2='8.01e-09', ts2='27.72', photon_index='1.61' WHERE bin_id='1264' AND source_name='4FGL J2221.5-5225' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:52:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 268485: <4FGL_J2221.5-5225_daily_bin1264> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.5-5225_daily_bin1264 335.391 -52.4307 566956801 567216001 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 :                                   689.17 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             290.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   758 sec.
    Turnaround time :                            759 sec.

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

