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


Performing analysis on: 4FGL_J2221.5-5225_daily_bin1099
RA = 335.391, Dec = -52.4307
tmin = 524188801, tmax = 524448001
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='267221', job_status='RUN', time_executed='2021-09-28 09:39:30.255521', time_epoch_executed='1632847170.26' WHERE source_name='4FGL J2221.5-5225' and cadence='daily' and bin_id='1099'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/267221

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/267221/ft1_4FGL_J2221.5-5225_daily_bin1099.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/267221/ft2_4FGL_J2221.5-5225_daily_bin1099.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/267221/ft1_4FGL_J2221.5-5225_daily_bin1099.fits outfile=/scratch/kocevski/267221/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin1099.fits ra=335.391 dec=-52.4307 rad=12.0 tmin=524188801.0 tmax=524448001.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.40
user 3.18
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/267221/ft2_4FGL_J2221.5-5225_daily_bin1099.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/267221/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin1099.fits evtable="EVENTS" outfile="/scratch/kocevski/267221/ft1_filtered_4FGL_J2221.5-5225_daily_bin1099.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/267221/ft1_filtered_4FGL_J2221.5-5225_daily_bin1099.fits" evtable="EVENTS" scfile=/scratch/kocevski/267221/ft2_4FGL_J2221.5-5225_daily_bin1099.fits sctable="SC_DATA" outfile=/scratch/kocevski/267221/ltcube_524188801_524448001_4FGL_J2221.5-5225_daily_bin1099.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/267221/ft2_4FGL_J2221.5-5225_daily_bin1099.fits
.....................!
real 12.05
user 11.70
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/267221/ft1_filtered_4FGL_J2221.5-5225_daily_bin1099.fits evtable="EVENTS" scfile=/scratch/kocevski/267221/ft2_4FGL_J2221.5-5225_daily_bin1099.fits sctable="SC_DATA" expcube=/scratch/kocevski/267221/ltcube_524188801_524448001_4FGL_J2221.5-5225_daily_bin1099.fits outfile=/scratch/kocevski/267221/expmap_524188801_524448001_4FGL_J2221.5-5225_daily_bin1099.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/267221/ltcube_524188801_524448001_4FGL_J2221.5-5225_daily_bin1099.fits
.....................!
real 190.70
user 185.14
sys 5.25

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/267221/ft1_filtered_4FGL_J2221.5-5225_daily_bin1099.fits scfile=/scratch/kocevski/267221/ft2_4FGL_J2221.5-5225_daily_bin1099.fits outfile=/scratch/kocevski/267221/cmap_524188801_524448001_4FGL_J2221.5-5225_daily_bin1099.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.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/267221/ft1_filtered_4FGL_J2221.5-5225_daily_bin1099.fits scfile=/scratch/kocevski/267221/ft2_4FGL_J2221.5-5225_daily_bin1099.fits outfile=/scratch/kocevski/267221/cmap_HighResolution_524188801_524448001_4FGL_J2221.5-5225_daily_bin1099.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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/267221/ft1_filtered_4FGL_J2221.5-5225_daily_bin1099.fits evtable="EVENTS" scfile=/scratch/kocevski/267221/ft2_4FGL_J2221.5-5225_daily_bin1099.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/267221/Model_4FGL_J2221.5-5225_daily_bin1099.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/267221/ft1_filtered_4FGL_J2221.5-5225_daily_bin1099.fits.....................!
real 45.31
user 43.99
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10442E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.9057       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.8256       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.4364       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.0496       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.0950       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.2900       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .20649E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.4944       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.3131       1.0000         .10000E-03   10000.    
    13 'Prefactor '    29.526       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10267E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.8555       1.0000         .10000E-03   10000.    
    17 'Prefactor '    20.118       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10191E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.4044       1.0000         .10000E-03   10000.    
    23 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0881       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .78254       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=   5912.158     FROM MIGRAD    STATUS=CONVERGED    604 CALLS     2944 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    97.575       -.55048E-05** at limit **
   2  Prefactor     1.9062        6.2994       -.52902E-06    .30722E-04
   3  Prefactor     5.8180        20.405       -.15952E-05   -.74052E-05
   4  Prefactor     1.4359        3.2671       -.85374E-06   -.67755E-04
   5  Prefactor     .10000E-03    11.498       -.58495E-06** at limit **
   6  Prefactor     3.0504        4.6382       -.10033E-06    .27942E-04
   7  Prefactor     2.0958        3.6046       -.65189E-06   -.21601E-04
   8  Prefactor     .10000E-03    32.657        .83688E-06** at limit **
   9  norm          3.2901        3.6550       -.55448E-07    .16568E-04
  10  Prefactor     .10000E-03    64.479        .39191E-05** at limit **
  11  Prefactor     1.4842        96.062       -.61973E-06    .21965E-05
  12  Prefactor     2.3148        4.0726        .27253E-06    .10599E-03
  13  Prefactor     29.520        29.111       -.22648E-05    .21281E-04
  14  Prefactor     .10000E-03    5.6754        .40265E-06** at limit **
  15  Prefactor     .10000E-03    26.489       -.57578E-06** at limit **
  16  Prefactor     3.8558        6.8574       -.56978E-08    .38220E-04
  17  Prefactor     20.118        25.792       -.12598E-06    .10572E-04
  18  Prefactor     .10000E-03    4.1640       -.29705E-06** at limit **
  19  norm          .10000E-03    4.9249       -.17387E-06** at limit **
  20  norm          .10000E-03    1.6084       -.45959E-07** at limit **
  21  Prefactor     .10000E-03    2.8553       -.16986E-06** at limit **
  22  Prefactor     9.4075        14.102        .54499E-06    .10161E-03
  23  norm          .10000E-03    .35195       -.25148E-06** at limit **
  24  Normalizat    1.0880        .18371        .34774E-05    .76112E-04
  25  Prefactor     .78261        .14310       -.14563E-05    .32578E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 1.9062
  Prefactor  = 5.81797
  Prefactor  = 1.43594
  Prefactor  = 0.0001
  Prefactor  = 3.05038
  Prefactor  = 2.09579
  Prefactor  = 0.0001
  norm       = 3.29015
  Prefactor  = 0.0001
  Prefactor  = 1.48425
  Prefactor  = 2.31477
  Prefactor  = 29.5201
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.8558
  Prefactor  = 20.1183
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.40755
  norm       = 0.0001
  Normalizat = 1.08799
  Prefactor  = 0.782605
 **********
 **   18 **HESSE 
 **********

 FCN=   5912.158     FROM HESSE     STATUS=OK           439 CALLS     3383 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    98.046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.9062        6.2979        .15060E-02   -1.5432    
   3  Prefactor     5.8180        20.428        .83197E-03   -1.5226    
   4  Prefactor     1.4359        3.2587        .20147E-03   -1.5468    
   5  Prefactor     .10000E-03    11.515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.0504        4.6176        .98322E-03   -1.5359    
   7  Prefactor     2.0958        3.5849        .17977E-03   -1.5418    
   8  Prefactor     .10000E-03    32.737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.2901        3.6575        .15118E-03   -1.5345    
  10  Prefactor     .10000E-03    3.1754        .32926E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.4842        97.555        .35053E-03   -1.5464    
  12  Prefactor     2.3148        4.0671        .97021E-03   -1.5404    
  13  Prefactor     29.520        28.980        .73734E-04   -1.4621    
  14  Prefactor     .10000E-03    5.7139        .17885E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    26.520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.8558        6.8525        .20552E-03   -1.5315    
  17  Prefactor     20.118        25.788        .89298E-04   -1.4811    
  18  Prefactor     .10000E-03    4.1758        .15332E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    4.9329        .16668E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.6089        .95236E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.8690        .12647E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     9.4075        14.061        .65341E-03   -1.5094    
  23  norm          .10000E-03    .49793        .88450E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0880        .19931        .22191E-03   -.90138    
  25  Prefactor     .78261        .15828        .21578E-03   -1.0037    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.10038e-10
Minuit parameter uncertainties:
  1  0.000556328
  2  6.30007
  3  20.4523
  4  3.2591
  5  1.52851e-05
  6  4.61815
  7  3.58527
  8  7.80341e-05
  9  3.65777
  10  1.74347e-05
  11  24.1065
  12  4.06758
  13  28.9933
  14  1.06627e-05
  15  3.05207e-05
  16  6.85389
  17  25.8018
  18  7.71729e-06
  19  4.97864e-06
  20  7.10107e-07
  21  1.17371e-05
  22  14.0662
  23  1.63559e-06
  24  0.199448
  25  0.158375
Done.

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

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  3.290e+00  3.658e+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:  7.826e-01  1.584e-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.088e+00  1.994e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.74
Ra Dec: 335.391 -52.431
Photon Index (Fixed Index): 1.61 +/- 0.00
Photon Flux (Fixed Index): 5.49e-09 +/- 6.10e-09
Energy Flux (Fixed Index): 1.11e-05 +/- 1.24e-05

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

Saving results to:
/scratch/kocevski/267221/likelihoodResults_524188801_524448001_4FGL_J2221.5-5225_daily_bin1099.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) = 5912.01322126
delta logL = 0.144778648788

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5912.01276266
delta logL = 0.14523724303

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1956       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.1462       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0897       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78219       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5900E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5912.013     FROM MIGRAD    STATUS=CONVERGED     41 CALLS      197 TOTAL
                     EDM=   .58E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1956        4.1822        .15269E-06   -.16019E-03
   2  alpha         1.1462        .71934        .32880E-05   -.81009E-06
   3  Normalizat    1.0897        .15953        .12531E-06   -.29037E-04
   4  Prefactor     .78219        .13332       -.62831E-07   -.18206E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.19562
  alpha      = 1.14622
  Normalizat = 1.08965
  Prefactor  = 0.782188
 **********
 **   18 **HESSE 
 **********

 FCN=   5912.013     FROM HESSE     STATUS=OK            33 CALLS      230 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1956        3.6486        .14704E-03   -1.5350    
   2  alpha         1.1462        .77515        .26075E-01   -.57223    
   3  Normalizat    1.0897        .18112        .22177E-03   -.90085    
   4  Prefactor     .78219        .15256        .21583E-03   -1.0039    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.57988e-11
Minuit parameter uncertainties:
  1  3.64882
  2  0.793893
  3  0.181223
  4  0.152644
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/267221': 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) = 5912.01276266
delta logL = 0.145237243112

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  3.196e+00  3.649e+00  1.000e-04  1.000e+04 ( 1.000e-13)
346        alpha:  1.146e+00  7.939e-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:  7.822e-01  1.526e-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.090e+00  1.812e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.03
Ra Dec: 335.391 -52.431
Photon Index (Free Index): 1.15 +/- 0.79
Photon Flux (Free Index): 3.62e-09 +/- 4.42e-09
Energy Flux (Free Index): 2.38e-05 +/- 4.20e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/267221/cmap_HighResolution_524188801_524448001_4FGL_J2221.5-5225_daily_bin1099.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.62e-05', comment='SUCCESS', photon_flux='5.49e-09', energy_flux2='2.38e-05', photon_flux_error='6.10e-09', dlogl='1.45e-01', energy_flux='1.11e-05', photon_flux2='3.62e-09', job_status='DONE', time_completed='2021-09-28 09:50:58.153634', photon_index_error2='0.79', photon_index2='1.15', ts='2.74', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', photon_flux_upper_limit='2.78e-08', energy_flux_error2='4.20e-05', EG='1.09', time_epoch_completed='1632847858.15', return_code='0', job_id='267221', GAL2='0.78', EG2='1.09', return_code2='0', energy_flux_error='1.24e-05', photon_flux_error2='4.42e-09', ts2='3.03', photon_index='1.61' WHERE bin_id='1099' AND source_name='4FGL J2221.5-5225' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:50:58 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.5-5225_daily_bin1099 335.391 -52.4307 524188801 524448001 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 :                                   688.15 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             256.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   925 sec.
    Turnaround time :                            926 sec.

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

