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


Performing analysis on: 4FGL_J2221.9-3504_daily_bin205
RA = 335.497, Dec = -35.0712
tmin = 292464001, tmax = 292723201
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='270287', job_status='RUN', time_executed='2021-09-28 09:47:00.632029', time_epoch_executed='1632847620.63' WHERE source_name='4FGL J2221.9-3504' and cadence='daily' and bin_id='205'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/270287

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/270287/ft1_4FGL_J2221.9-3504_daily_bin205.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/270287/ft2_4FGL_J2221.9-3504_daily_bin205.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/270287/ft1_4FGL_J2221.9-3504_daily_bin205.fits outfile=/scratch/kocevski/270287/ft1_filteredMKT_4FGL_J2221.9-3504_daily_bin205.fits ra=335.497 dec=-35.0712 rad=12.0 tmin=292464001.0 tmax=292723201.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.74
user 3.39
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/270287/ft2_4FGL_J2221.9-3504_daily_bin205.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/270287/ft2_4FGL_J2221.9-3504_daily_bin205.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/270287/ft1_filteredMKT_4FGL_J2221.9-3504_daily_bin205.fits evtable="EVENTS" outfile="/scratch/kocevski/270287/ft1_filtered_4FGL_J2221.9-3504_daily_bin205.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.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/270287/ft1_filtered_4FGL_J2221.9-3504_daily_bin205.fits" evtable="EVENTS" scfile=/scratch/kocevski/270287/ft2_4FGL_J2221.9-3504_daily_bin205.fits sctable="SC_DATA" outfile=/scratch/kocevski/270287/ltcube_292464001_292723201_4FGL_J2221.9-3504_daily_bin205.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/270287/ft2_4FGL_J2221.9-3504_daily_bin205.fits
.....................!
real 11.85
user 11.49
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/270287/ft1_filtered_4FGL_J2221.9-3504_daily_bin205.fits evtable="EVENTS" scfile=/scratch/kocevski/270287/ft2_4FGL_J2221.9-3504_daily_bin205.fits sctable="SC_DATA" expcube=/scratch/kocevski/270287/ltcube_292464001_292723201_4FGL_J2221.9-3504_daily_bin205.fits outfile=/scratch/kocevski/270287/expmap_292464001_292723201_4FGL_J2221.9-3504_daily_bin205.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/270287/ltcube_292464001_292723201_4FGL_J2221.9-3504_daily_bin205.fits
.....................!
real 191.08
user 185.07
sys 5.68

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 175 point sources and 0 extended sources

Setting source of interest to:
4FGL J2221.9-3504 @ 335.497 -35.0712

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/270287/ft1_filtered_4FGL_J2221.9-3504_daily_bin205.fits scfile=/scratch/kocevski/270287/ft2_4FGL_J2221.9-3504_daily_bin205.fits outfile=/scratch/kocevski/270287/cmap_292464001_292723201_4FGL_J2221.9-3504_daily_bin205.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.497 yref=-35.0712 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.52
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/270287/ft1_filtered_4FGL_J2221.9-3504_daily_bin205.fits scfile=/scratch/kocevski/270287/ft2_4FGL_J2221.9-3504_daily_bin205.fits outfile=/scratch/kocevski/270287/cmap_HighResolution_292464001_292723201_4FGL_J2221.9-3504_daily_bin205.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.497 yref=-35.0712 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/270287/ft1_filtered_4FGL_J2221.9-3504_daily_bin205.fits evtable="EVENTS" scfile=/scratch/kocevski/270287/ft2_4FGL_J2221.9-3504_daily_bin205.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/270287/Model_4FGL_J2221.9-3504_daily_bin205.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/270287/ft1_filtered_4FGL_J2221.9-3504_daily_bin205.fits.....................!
real 45.12
user 43.83
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/270287/ft1_filtered_4FGL_J2221.9-3504_daily_bin205.fits', '/scratch/kocevski/270287/ft2_4FGL_J2221.9-3504_daily_bin205.fits', expMap='/scratch/kocevski/270287/expmap_292464001_292723201_4FGL_J2221.9-3504_daily_bin205.fits', expCube='/scratch/kocevski/270287/ltcube_292464001_292723201_4FGL_J2221.9-3504_daily_bin205.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/270287/Model_4FGL_J2221.9-3504_daily_bin205.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2221.9-3504'

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  1.240e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  2.677e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
255        Scale:  5.158e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/270287/ft1_filtered_4FGL_J2221.9-3504_daily_bin205.fits
Spacecraft file(s): /scratch/kocevski/270287/ft2_4FGL_J2221.9-3504_daily_bin205.fits
Exposure map: /scratch/kocevski/270287/expmap_292464001_292723201_4FGL_J2221.9-3504_daily_bin205.fits
Exposure cube: /scratch/kocevski/270287/ltcube_292464001_292723201_4FGL_J2221.9-3504_daily_bin205.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/270287/Model_4FGL_J2221.9-3504_daily_bin205.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) = 5515.58107282

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.4009       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.9039       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.3321       1.0000         .10000E-03   10000.    
     4 'norm      '    18.469       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .11636E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .33597       1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.238       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10676E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .23941       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    59.303       1.0000         .10000E-03   10000.    
    15 'Prefactor '    26.145       1.0000         .10000E-03   10000.    
    16 'Prefactor '    22.490       1.0000         .10000E-03   10000.    
    17 'norm      '    2.8168       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.9139       1.0000         .10000E-03   10000.    
    20 'Prefactor '    41.364       1.0000         .10000E-03   10000.    
    21 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    14.609       1.0000         .10000E-03   10000.    
    24 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    55.654       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1575       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .70175       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5515.549     FROM MIGRAD    STATUS=CONVERGED    708 CALLS     3602 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.4017        4.0465       -.15241E-07    .23096E-04
   2  Prefactor     4.9050        7.2907       -.17074E-06   -.54541E-04
   3  Prefactor     9.3335        8.5697       -.36958E-07   -.23956E-04
   4  norm          18.470        8.9568        .15053E-06   -.96396E-04
   5  Prefactor     .10000E-03    5.9721       -.14772E-06** at limit **
   6  Prefactor     .10000E-03    23.738       -.24177E-06** at limit **
   7  norm          .10001E-03    3.1702        .38195E-06** at limit **
   8  norm          .33607        .22962        .86133E-07   -.10838E-02
   9  Prefactor     15.236        13.950        .75336E-06    .54021E-04
  10  Prefactor     .10000E-03    26.868        .13095E-05** at limit **
  11  Prefactor     .10000E-03    3.7649       -.44828E-06** at limit **
  12  Prefactor     .25578        20.804        .36355E-05   -.15666E-03
  13  norm          .10000E-03    6.3541        .53102E-07** at limit **
  14  Prefactor     59.158        74.859       -.12817E-05   -.72725E-04
  15  Prefactor     26.130        26.028       -.78136E-07   -.75733E-04
  16  Prefactor     22.482        27.879       -.65230E-06   -.14961E-03
  17  norm          2.8168        2.1386        .34182E-07   -.87318E-04
  18  Prefactor     .10000E-03    23.227        .76297E-07** at limit **
  19  Prefactor     4.9137        14.761       -.12672E-06   -.84825E-04
  20  Prefactor     41.361        13.685       -.37319E-06   -.43643E-03
  21  norm          .10000E-03    2.1752        .10366E-06** at limit **
  22  Prefactor     .10000E-03    6.0524        .71765E-07** at limit **
  23  Prefactor     14.632        10.606       -.11890E-05   -.68233E-03
  24  norm          .10000E-03    .51402        .39010E-06** at limit **
  25  Prefactor     55.668        50.110       -.20328E-06   -.41535E-04
  26  Prefactor     .10000E-03    5.0710        .34292E-07** at limit **
  27  Normalizat    1.1577        .21173       -.17614E-05   -.38301E-03
  28  Prefactor     .70143        .17633        .22987E-05   -.45064E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.40168
  Prefactor  = 4.905
  Prefactor  = 9.33346
  norm       = 18.4705
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100005
  norm       = 0.336074
  Prefactor  = 15.2365
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.255782
  norm       = 0.0001
  Prefactor  = 59.158
  Prefactor  = 26.1302
  Prefactor  = 22.4825
  norm       = 2.81682
  Prefactor  = 0.0001
  Prefactor  = 4.91367
  Prefactor  = 41.3609
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.6317
  norm       = 0.0001
  Prefactor  = 55.6679
  Prefactor  = 0.0001
  Normalizat = 1.15773
  Prefactor  = 0.701428
 **********
 **   18 **HESSE 
 **********

 FCN=   5515.549     FROM HESSE     STATUS=OK           525 CALLS     4127 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.4017        4.0475        .11485E-03   -1.5202    
   2  Prefactor     4.9050        7.2524        .18163E-03   -1.5265    
   3  Prefactor     9.3335        8.5409        .13119E-03   -1.5097    
   4  norm          18.470        8.9444        .93197E-04   -1.4848    
   5  Prefactor     .10000E-03    5.9778        .17727E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    23.766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10001E-03    5.3144        .23034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .33607        .22819        .27912E-04   -1.5592    
   9  Prefactor     15.236        13.775        .10261E-03   -1.4927    
  10  Prefactor     .10000E-03    194.54        .63515E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.7712        .14048E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .25578        22.790        .21100E-02   -1.5607    
  13  norm          .10000E-03    6.3575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     59.158        76.118        .26050E-03   -1.4168    
  15  Prefactor     26.130        26.050        .78346E-04   -1.4685    
  16  Prefactor     22.482        27.996        .84461E-04   -1.4759    
  17  norm          2.8168        2.1368        .91855E-04   -1.5372    
  18  Prefactor     .10000E-03    23.246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.9137        14.833        .18144E-03   -1.5265    
  20  Prefactor     41.361        13.767        .62327E-04   -1.4421    
  21  norm          .10000E-03    2.1876        .10693E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6.0580        .17844E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     14.632        10.272        .10479E-03   -1.4943    
  24  norm          .10000E-03    2.7627        .89379E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     55.668        50.149        .26885E-03   -1.4214    
  26  Prefactor     .10000E-03    5.0737        .16332E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.1577        .23800        .24122E-03   -.87919    
  28  Prefactor     .70143        .19071        .25856E-03   -1.0347    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76759e-09
Minuit parameter uncertainties:
  1  4.04767
  2  7.25372
  3  8.54203
  4  8.94502
  5  1.55321e-05
  6  4.1441e-05
  7  0.000341206
  8  0.228192
  9  13.7777
  10  0.0014942
  11  5.12175e-06
  12  4.82971
  13  8.56516e-06
  14  76.2433
  15  26.0618
  16  28.0121
  17  2.13681
  18  2.60232e-05
  19  14.8444
  20  13.7684
  21  6.84231e-06
  22  5.15062e-06
  23  10.2733
  24  2.94965e-05
  25  50.187
  26  3.19664e-06
  27  0.238222
  28  0.190889
Done.

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

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  1.000e-04  5.122e-06  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  2.677e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
255        Scale:  5.158e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  7.014e-01  1.909e-01  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  1.158e+00  2.382e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 335.497 -35.071
Photon Flux Upper Limit: 7.29e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.73e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/270287/likelihoodResults_292464001_292723201_4FGL_J2221.9-3504_daily_bin205.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) = 5515.55003435
delta logL = -0.00126037255268

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5515.54877398
delta logL = -6.08997652307e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6713       1.0000          .0000       10.000    
     3 'Normalizat'    1.1577       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70144       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5515.549     FROM MIGRAD    STATUS=FAILED        95 CALLS      247 TOTAL
                     EDM=   .77E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    445.00        .14065E-02** at limit **
   2  Index         2.4380        8.1642        .50000       -.34177E-06
   3  Normalizat    1.1577        .60413E-01    .24122E-03    .20057E-03
   4  Prefactor     .70143        .51918E-01    .25856E-03    .21079E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5515.549     FROM SIMPLEX   STATUS=UNCHANGED    187 CALLS      434 TOTAL
                     EDM=   .97E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    445.00        .31439E-03** at limit **
   2  Index         2.4380        8.1642        .32954E-05   -.34177E-06
   3  Normalizat    1.1577        .60413E-01    .41405E-07    .20057E-03
   4  Prefactor     .70143        .51918E-01    .25722E-07    .21079E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5515.549     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      468 TOTAL
                     EDM=   .93E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.7419        .28131E-03** at limit **
   2  Index         2.4407        6.2195        .50000       -.17674E-06
   3  Normalizat    1.1577        .21522        .48244E-04    .20007E-03
   4  Prefactor     .70143        .18493        .10342E-04    .21040E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.44068
  Normalizat = 1.15773
  Prefactor  = 0.70143
 **********
 **   18 **HESSE 
 **********

 FCN=   5515.549     FROM HESSE     STATUS=OK            29 CALLS      497 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.9444        .56261E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4407        7.3238        .50000       -.53735    
   3  Normalizat    1.1577        .21503        .96488E-05   -.87919    
   4  Prefactor     .70143        .18472        .20685E-05   -1.0347    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04376e-10
Minuit parameter uncertainties:
  1  3.27997e-05
  2  147.978
  3  0.215196
  4  0.184884
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/270287': 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) = 5515.54877361
delta logL = 3.64298102795e-07

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  1.000e-04  3.280e-05  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  2.441e+00  1.480e+02  0.000e+00  1.000e+01 (-1.000e+00)
255        Scale:  5.158e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  7.014e-01  1.849e-01  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  1.158e+00  2.152e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 335.497 -35.071

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/270287/cmap_HighResolution_292464001_292723201_4FGL_J2221.9-3504_daily_bin205.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.73e-03', job_status='DONE', photon_flux_upper_limit='7.29e-08', time_completed='2021-09-28 09:59:14.274220', job_id='270287', GAL2='0.70', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1632848354.27', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.70', dlogl='3.64e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='205' AND source_name='4FGL J2221.9-3504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:59:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0080>
Subject: Job 270287: <4FGL_J2221.9-3504_daily_bin205> in cluster <slac> Done

Job <4FGL_J2221.9-3504_daily_bin205> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 09:45:37 2021
Job was executed on host(s) <bullet0080>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:45:39 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:45:39 2021
Terminated at Tue Sep 28 09:59:15 2021
Results reported at Tue Sep 28 09:59:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.9-3504_daily_bin205 335.497 -35.0712 292464001 292723201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2221.9-3504 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   733.27 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             306.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   815 sec.
    Turnaround time :                            818 sec.

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

