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


Performing analysis on: 4FGL_J2221.5-5225_daily_bin891
RA = 335.391, Dec = -52.4307
tmin = 470275201, tmax = 470534401
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='265985', job_status='RUN', time_executed='2021-09-28 09:31:21.988934', time_epoch_executed='1632846681.99' WHERE source_name='4FGL J2221.5-5225' and cadence='daily' and bin_id='891'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/265985

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/265985/ft1_4FGL_J2221.5-5225_daily_bin891.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/265985/ft2_4FGL_J2221.5-5225_daily_bin891.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/265985/ft1_4FGL_J2221.5-5225_daily_bin891.fits outfile=/scratch/kocevski/265985/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin891.fits ra=335.391 dec=-52.4307 rad=12.0 tmin=470275201.0 tmax=470534401.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.46
user 3.23
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/265985/ft1_filtered_4FGL_J2221.5-5225_daily_bin891.fits" evtable="EVENTS" scfile=/scratch/kocevski/265985/ft2_4FGL_J2221.5-5225_daily_bin891.fits sctable="SC_DATA" outfile=/scratch/kocevski/265985/ltcube_470275201_470534401_4FGL_J2221.5-5225_daily_bin891.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/265985/ft2_4FGL_J2221.5-5225_daily_bin891.fits
.....................!
real 14.85
user 14.48
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/265985/ft1_filtered_4FGL_J2221.5-5225_daily_bin891.fits evtable="EVENTS" scfile=/scratch/kocevski/265985/ft2_4FGL_J2221.5-5225_daily_bin891.fits sctable="SC_DATA" expcube=/scratch/kocevski/265985/ltcube_470275201_470534401_4FGL_J2221.5-5225_daily_bin891.fits outfile=/scratch/kocevski/265985/expmap_470275201_470534401_4FGL_J2221.5-5225_daily_bin891.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/265985/ltcube_470275201_470534401_4FGL_J2221.5-5225_daily_bin891.fits
.....................!
real 190.33
user 184.90
sys 4.97

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/265985/ft1_filtered_4FGL_J2221.5-5225_daily_bin891.fits scfile=/scratch/kocevski/265985/ft2_4FGL_J2221.5-5225_daily_bin891.fits outfile=/scratch/kocevski/265985/cmap_470275201_470534401_4FGL_J2221.5-5225_daily_bin891.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/265985/ft1_filtered_4FGL_J2221.5-5225_daily_bin891.fits scfile=/scratch/kocevski/265985/ft2_4FGL_J2221.5-5225_daily_bin891.fits outfile=/scratch/kocevski/265985/cmap_HighResolution_470275201_470534401_4FGL_J2221.5-5225_daily_bin891.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/265985/ft1_filtered_4FGL_J2221.5-5225_daily_bin891.fits evtable="EVENTS" scfile=/scratch/kocevski/265985/ft2_4FGL_J2221.5-5225_daily_bin891.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/265985/Model_4FGL_J2221.5-5225_daily_bin891.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/265985/ft1_filtered_4FGL_J2221.5-5225_daily_bin891.fits.....................!
real 55.68
user 54.31
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    31.451       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.9473       1.0000         .10000E-03   10000.    
     5 'Prefactor '    38.036       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.4934       1.0000         .10000E-03   10000.    
     8 'Prefactor '    37.378       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    44.421       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .58273       1.0000         .10000E-03   10000.    
    13 'Prefactor '    33.593       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.6874       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.5773       1.0000         .10000E-03   10000.    
    19 'norm      '    5.6591       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    12.416       1.0000         .10000E-03   10000.    
    23 'norm      '    .29942       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .96511       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .80814       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=   7818.472     FROM MIGRAD    STATUS=CONVERGED    570 CALLS     2926 TOTAL
                     EDM=   .83E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.322        .27026E-06** at limit **
   2  Prefactor     .10000E-03    6.1401       -.40094E-06** at limit **
   3  Prefactor     31.450        20.589       -.15841E-06   -.11149E-04
   4  Prefactor     8.9477        4.1373        .71113E-06   -.13973E-02
   5  Prefactor     38.031        32.378       -.14781E-05   -.15456E-03
   6  Prefactor     .10000E-03    7.0140        .76039E-06** at limit **
   7  Prefactor     4.4932        2.9436        .54752E-06    .42367E-03
   8  Prefactor     37.365        53.919       -.63293E-05   -.18679E-03
   9  norm          .10000E-03    2.2544        .54995E-07** at limit **
  10  Prefactor     .10000E-03    1.0186        .22307E-08** at limit **
  11  Prefactor     44.419        27.651       -.48854E-06   -.63139E-04
  12  Prefactor     .58492        5.1345        .31660E-06   -.58056E-03
  13  Prefactor     33.587        22.258       -.96070E-06   -.93297E-04
  14  Prefactor     .10000E-03    2.8202        .71606E-07** at limit **
  15  Prefactor     .10000E-03    79.652        .29603E-06** at limit **
  16  Prefactor     5.6872        5.2549        .38009E-07   -.46560E-04
  17  Prefactor     .10000E-03    8.7892       -.53035E-06** at limit **
  18  Prefactor     6.5786        7.5798        .10852E-06   -.15612E-04
  19  norm          5.6587        8.6294        .18668E-05   -.55275E-03
  20  norm          .10000E-03    1.2193        .53608E-07** at limit **
  21  Prefactor     .10000E-03    1.9249        .89037E-08** at limit **
  22  Prefactor     12.422        13.188       -.20040E-05   -.31251E-03
  23  norm          .29840        .62431        .21234E-06    .83816E-03
  24  Normalizat    .96508        .14862        .15975E-06   -.13395E-03
  25  Prefactor     .80817        .11965       -.38288E-06   -.32601E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.4498
  Prefactor  = 8.94774
  Prefactor  = 38.0307
  Prefactor  = 0.000100001
  Prefactor  = 4.49317
  Prefactor  = 37.3655
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 44.419
  Prefactor  = 0.584916
  Prefactor  = 33.5874
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.68717
  Prefactor  = 0.0001
  Prefactor  = 6.5786
  norm       = 5.65869
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.4221
  norm       = 0.298401
  Normalizat = 0.965082
  Prefactor  = 0.808171
 **********
 **   18 **HESSE 
 **********

 FCN=   7818.472     FROM HESSE     STATUS=OK           429 CALLS     3355 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.2670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     31.450        20.584        .71447E-04   -1.4586    
   4  Prefactor     8.9477        4.3189        .60389E-03   -1.5110    
   5  Prefactor     38.031        32.457        .64987E-04   -1.4474    
   6  Prefactor     .10000E-03    7.3100        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.4932        2.9470        .11796E-03   -1.5284    
   8  Prefactor     37.365        54.912        .65554E-04   -1.4485    
   9  norm          .10000E-03    2.2600        .12966E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.7356        .17306E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     44.419        27.652        .60153E-04   -1.4374    
  12  Prefactor     .58492        6.4420        .40318E-02   -1.5555    
  13  Prefactor     33.587        22.160        .69138E-04   -1.4548    
  14  Prefactor     .10000E-03    2.8302        .14497E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    79.862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.6872        5.2536        .16843E-03   -1.5231    
  17  Prefactor     .10000E-03    8.7926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.5786        7.5605        .15648E-03   -1.5195    
  19  norm          5.6587        8.9994        .84430E-03   -1.5232    
  20  norm          .10000E-03    1.2195        .95354E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    1.9345        .11973E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     12.422        13.301        .11368E-03   -1.5003    
  23  norm          .29840        .50331        .97415E-03   -1.5599    
  24  Normalizat    .96508        .17212        .23816E-03   -.94210    
  25  Prefactor     .80817        .13820        .21817E-03   -.99428    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48835e-07
Minuit parameter uncertainties:
  1  1.97302e-05
  2  2.36079e-05
  3  20.5882
  4  4.31906
  5  32.472
  6  0.000140702
  7  2.94706
  8  54.9865
  9  3.83579e-06
  10  1.33654e-05
  11  27.66
  12  3.88249
  13  22.1651
  14  7.3615e-06
  15  0.000102816
  16  5.25406
  17  2.71043e-05
  18  7.56163
  19  9.00159
  20  1.54099e-06
  21  9.03368e-06
  22  13.3046
  23  0.503318
  24  0.172222
  25  0.13826
Done.

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

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  1.000e-04  3.836e-06  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.082e-01  1.383e-01  0.000e+00  1.000e+01 ( 1.000e+00)
588        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
589        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
586   Normalization:  9.651e-01  1.722e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/265985/likelihoodResults_470275201_470534401_4FGL_J2221.5-5225_daily_bin891.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): 102
logL (Free Index) = 7818.47369396
delta logL = -0.00208899125209

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7818.47160493
delta logL = 3.68090695702e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6154       1.0000          .0000       5.0000    
     3 'Normalizat'    .96509       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80817       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=   7818.472     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      239 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    131.20        .12987E-02** at limit **
   2  alpha         1.8036        3.6535        .50000        .18056E-06
   3  Normalizat    .96508        .29135E-01    .23816E-03   -.72128E-04
   4  Prefactor     .80817        .24764E-01    .21817E-03   -.78530E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.80362
  Normalizat = 0.965082
  Prefactor  = 0.80817
 **********
 **   18 **HESSE 
 **********

 FCN=   7818.472     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      268 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    447.38        .25974E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8036        4.0841        .50000       -.28228    
   3  Normalizat    .96508        .77897E-01    .95265E-05   -.94210    
   4  Prefactor     .80817        .66206E-01    .87267E-05   -.99428    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.81743e-08
Minuit parameter uncertainties:
  1  5.30193e-05
  2  1640.31
  3  0.0779063
  4  0.0662128
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/265985': 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): 102
logL (Free Index) = 7818.4716044
delta logL = 5.68858013139e-07

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  1.000e-04  5.302e-05  1.000e-04  1.000e+04 ( 1.000e-13)
346        alpha:  1.804e+00  1.640e+03  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.082e-01  6.621e-02  0.000e+00  1.000e+01 ( 1.000e+00)
588        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
589        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
586   Normalization:  9.651e-01  7.791e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 335.391 -52.431

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/265985/cmap_HighResolution_470275201_470534401_4FGL_J2221.5-5225_daily_bin891.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.91e-05', job_status='DONE', photon_flux_upper_limit='1.93e-08', time_completed='2021-09-28 09:44:54.069487', job_id='265985', GAL2='0.81', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1632847494.07', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='5.69e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.61' WHERE bin_id='891' AND source_name='4FGL J2221.5-5225' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:44:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 265985: <4FGL_J2221.5-5225_daily_bin891> in cluster <slac> Done

Job <4FGL_J2221.5-5225_daily_bin891> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 09:31:10 2021
Job was executed on host(s) <bullet0267>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:31:11 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:31:11 2021
Terminated at Tue Sep 28 09:44:54 2021
Results reported at Tue Sep 28 09:44:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.5-5225_daily_bin891 335.391 -52.4307 470275201 470534401 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 :                                   811.24 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             337.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   823 sec.
    Turnaround time :                            824 sec.

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

