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


Performing analysis on: 4FGL_J2221.5-5225_daily_bin1111
RA = 335.391, Dec = -52.4307
tmin = 527299201, tmax = 527558401
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='267238', job_status='RUN', time_executed='2021-09-28 09:36:41.051715', time_epoch_executed='1632847001.05' WHERE source_name='4FGL J2221.5-5225' and cadence='daily' and bin_id='1111'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/267238

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/267238/ft1_4FGL_J2221.5-5225_daily_bin1111.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/267238/ft2_4FGL_J2221.5-5225_daily_bin1111.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/267238/ft1_4FGL_J2221.5-5225_daily_bin1111.fits outfile=/scratch/kocevski/267238/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin1111.fits ra=335.391 dec=-52.4307 rad=12.0 tmin=527299201.0 tmax=527558401.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 4.89
user 4.58
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/267238/ft1_filtered_4FGL_J2221.5-5225_daily_bin1111.fits" evtable="EVENTS" scfile=/scratch/kocevski/267238/ft2_4FGL_J2221.5-5225_daily_bin1111.fits sctable="SC_DATA" outfile=/scratch/kocevski/267238/ltcube_527299201_527558401_4FGL_J2221.5-5225_daily_bin1111.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/267238/ft2_4FGL_J2221.5-5225_daily_bin1111.fits
.....................!
real 12.47
user 12.12
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/267238/ft1_filtered_4FGL_J2221.5-5225_daily_bin1111.fits evtable="EVENTS" scfile=/scratch/kocevski/267238/ft2_4FGL_J2221.5-5225_daily_bin1111.fits sctable="SC_DATA" expcube=/scratch/kocevski/267238/ltcube_527299201_527558401_4FGL_J2221.5-5225_daily_bin1111.fits outfile=/scratch/kocevski/267238/expmap_527299201_527558401_4FGL_J2221.5-5225_daily_bin1111.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/267238/ltcube_527299201_527558401_4FGL_J2221.5-5225_daily_bin1111.fits
.....................!
real 194.16
user 188.22
sys 5.55

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/267238/ft1_filtered_4FGL_J2221.5-5225_daily_bin1111.fits scfile=/scratch/kocevski/267238/ft2_4FGL_J2221.5-5225_daily_bin1111.fits outfile=/scratch/kocevski/267238/cmap_527299201_527558401_4FGL_J2221.5-5225_daily_bin1111.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/267238/ft1_filtered_4FGL_J2221.5-5225_daily_bin1111.fits scfile=/scratch/kocevski/267238/ft2_4FGL_J2221.5-5225_daily_bin1111.fits outfile=/scratch/kocevski/267238/cmap_HighResolution_527299201_527558401_4FGL_J2221.5-5225_daily_bin1111.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/267238/ft1_filtered_4FGL_J2221.5-5225_daily_bin1111.fits evtable="EVENTS" scfile=/scratch/kocevski/267238/ft2_4FGL_J2221.5-5225_daily_bin1111.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/267238/Model_4FGL_J2221.5-5225_daily_bin1111.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/267238/ft1_filtered_4FGL_J2221.5-5225_daily_bin1111.fits.....................!
real 38.08
user 36.75
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    15.965       1.0000         .10000E-03   10000.    
     3 'Prefactor '    33.501       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .67169       1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.325       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.3712       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    34.775       1.0000         .10000E-03   10000.    
     9 'norm      '    5.1563       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.9959       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    20.116       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .35728       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    38.774       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    6.9553       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    51.130       1.0000         .10000E-03   10000.    
    23 'norm      '    .48162       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0160       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .88080       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=   4151.894     FROM MIGRAD    STATUS=CONVERGED    627 CALLS     3497 TOTAL
                     EDM=   .84E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.808        .40601E-06** at limit **
   2  Prefactor     15.961        11.353       -.35081E-06   -.64881E-04
   3  Prefactor     33.485        37.281       -.71333E-06   -.19476E-04
   4  Prefactor     .67009        4.7687        .11873E-05   -.18009E-03
   5  Prefactor     14.316        29.834        .10319E-05    .69361E-05
   6  Prefactor     4.3854        13.045       -.54631E-05   -.33178E-04
   7  Prefactor     .10000E-03    1.7828       -.30325E-06** at limit **
   8  Prefactor     34.453        240.47        .22000E-04   -.32088E-05
   9  norm          5.1670        9.2575       -.35246E-07    .42813E-04
  10  Prefactor     .10000E-03    4.2073       -.10755E-08** at limit **
  11  Prefactor     2.9851        135.11        .11500E-05    .21440E-07
  12  Prefactor     .10000E-03    4.3737       -.47099E-06** at limit **
  13  Prefactor     20.427        43.064        .21307E-05    .78286E-04
  14  Prefactor     .57829E-02    13.864       -.12454E-05    .11560E-03
  15  Prefactor     .10000E-03    48.652       -.37815E-07** at limit **
  16  Prefactor     .10000E-03    10.764        .43840E-07** at limit **
  17  Prefactor     38.766        55.662        .11058E-06    .50887E-05
  18  Prefactor     .10000E-03    8.4162       -.10464E-06** at limit **
  19  norm          .10000E-03    64.911       -.43212E-06** at limit **
  20  norm          6.9553        7.5864       -.63811E-07   -.39053E-05
  21  Prefactor     .10000E-03    5.6553       -.17734E-06** at limit **
  22  Prefactor     51.129        43.252       -.12021E-06    .22436E-05
  23  norm          .48137        1.4315        .26591E-06    .62659E-04
  24  Normalizat    1.0160        .23835        .10067E-05   -.27479E-04
  25  Prefactor     .88095        .17797       -.11596E-05    .41707E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 15.9614
  Prefactor  = 33.485
  Prefactor  = 0.670093
  Prefactor  = 14.316
  Prefactor  = 4.38545
  Prefactor  = 0.0001
  Prefactor  = 34.4529
  norm       = 5.16699
  Prefactor  = 0.0001
  Prefactor  = 2.98514
  Prefactor  = 0.0001
  Prefactor  = 20.4269
  Prefactor  = 0.00578287
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 38.7655
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.95534
  Prefactor  = 0.0001
  Prefactor  = 51.1293
  norm       = 0.481369
  Normalizat = 1.01596
  Prefactor  = 0.880946
 **********
 **   18 **HESSE 
 **********

 FCN=   4151.894     FROM HESSE     STATUS=OK           443 CALLS     3940 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     15.961        11.320        .10024E-03   -1.4909    
   3  Prefactor     33.485        37.180        .69232E-04   -1.4550    
   4  Prefactor     .67009        8.2312        .25182E-02   -1.5544    
   5  Prefactor     14.316        29.758        .10583E-03   -1.4951    
   6  Prefactor     4.3854        13.008        .19264E-03   -1.5289    
   7  Prefactor     .10000E-03    1.7871        .83951E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     34.453        239.51        .33978E-03   -1.4533    
   9  norm          5.1670        9.2421        .17704E-03   -1.5253    
  10  Prefactor     .10000E-03    4.2974        .12894E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.9851        135.05        .23453E-03   -1.5362    
  12  Prefactor     .10000E-03    4.3973        .13154E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     20.427        43.879        .89303E-04   -1.4804    
  14  Prefactor     .57829E-02    28.728        .65933E-01   -1.5723    
  15  Prefactor     .10000E-03    48.655        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.852        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     38.766        55.640        .64368E-04   -1.4462    
  18  Prefactor     .10000E-03    8.4208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    65.783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          6.9553        7.5812        .15212E-03   -1.5180    
  21  Prefactor     .10000E-03    5.6607        .14957E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     51.129        43.133        .56086E-04   -1.4277    
  23  norm          .48137        1.3309        .12607E-02   -1.5569    
  24  Normalizat    1.0160        .27706        .26386E-03   -.92498    
  25  Prefactor     .88095        .20642        .21819E-03   -.96810    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56986e-08
Minuit parameter uncertainties:
  1  2.60301e-06
  2  11.3213
  3  37.2057
  4  4.69754
  5  29.7887
  6  13.0159
  7  1.67143e-06
  8  182.733
  9  9.24465
  10  1.86812e-06
  11  40.2536
  12  1.97976e-06
  13  43.9485
  14  0.808484
  15  1.03433e-06
  16  3.13795e-06
  17  55.7148
  18  2.2251e-06
  19  3.0516e-05
  20  7.58222
  21  1.39276e-07
  22  43.1595
  23  1.33101
  24  0.277453
  25  0.206601
Done.

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

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  5.167e+00  9.245e+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.809e-01  2.066e-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.016e+00  2.775e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.50
Ra Dec: 335.391 -52.431
Photon Flux Upper Limit: 5.72e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.16e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/267238/likelihoodResults_527299201_527558401_4FGL_J2221.5-5225_daily_bin1111.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) = 4151.59661
delta logL = 0.297183044441

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4151.58913806
delta logL = 0.304654983501

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.3039       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3854       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0022       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88084       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=   4151.589     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      213 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.3107        193.79        .48547E-02    .20230E-03
   2  alpha         2.3858        3.1904        .23775        .49826E-04
   3  Normalizat    1.0017        .10256        .46195E-01    .26751E-04
   4  Prefactor     .88126        .63153E-01    .44760E-01   -.26431E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.31071
  alpha      = 2.38577
  Normalizat = 1.00174
  Prefactor  = 0.881259
 **********
 **   18 **HESSE 
 **********

 FCN=   4151.589     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.3107        8.0246        .15438E-03   -1.5293    
   2  alpha         2.3858        1.0122        .13501E-01   -.45709E-01
   3  Normalizat    1.0017        .26054        .26538E-03   -.92972    
   4  Prefactor     .88126        .20184        .21796E-03   -.96799    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.36164e-11
Minuit parameter uncertainties:
  1  8.02657
  2  1.04218
  3  0.260873
  4  0.20201
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/267238': 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) = 4151.58913429
delta logL = 0.304658756756

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  4.311e+00  8.027e+00  1.000e-04  1.000e+04 ( 1.000e-13)
346        alpha:  2.386e+00  1.042e+00  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.813e-01  2.020e-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.002e+00  2.609e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.11
Ra Dec: 335.391 -52.431
Photon Index (Free Index): 2.39 +/- 1.04
Photon Flux (Free Index): 3.01e-08 +/- 4.47e-08
Energy Flux (Free Index): 1.30e-05 +/- 1.69e-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/267238/cmap_HighResolution_527299201_527558401_4FGL_J2221.5-5225_daily_bin1111.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.16e-04', comment='SUCCESS', energy_flux2='1.30e-05', dlogl='3.05e-01', photon_flux2='3.01e-08', job_status='DONE', time_completed='2021-09-28 09:46:49.875081', photon_index_error2='1.04', photon_index2='2.39', ts='0.50', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='5.72e-08', energy_flux_error2='1.69e-05', EG='1.02', time_epoch_completed='1632847609.88', return_code='0', job_id='267238', GAL2='0.88', EG2='1.00', return_code2='0', photon_flux_error2='4.47e-08', ts2='1.11', photon_index='1.61' WHERE bin_id='1111' AND source_name='4FGL J2221.5-5225' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:46:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0042>
Subject: Job 267238: <4FGL_J2221.5-5225_daily_bin1111> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.5-5225_daily_bin1111 335.391 -52.4307 527299201 527558401 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 :                                   608.01 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             281.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   676 sec.
    Turnaround time :                            677 sec.

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

