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


Performing analysis on: 4FGL_J2221.9-3504_daily_bin667
RA = 335.497, Dec = -35.0712
tmin = 412214401, tmax = 412473601
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='272009', job_status='RUN', time_executed='2021-09-28 09:51:11.362575', time_epoch_executed='1632847871.36' WHERE source_name='4FGL J2221.9-3504' and cadence='daily' and bin_id='667'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/272009

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/272009/ft1_4FGL_J2221.9-3504_daily_bin667.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/272009/ft2_4FGL_J2221.9-3504_daily_bin667.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/272009/ft1_4FGL_J2221.9-3504_daily_bin667.fits outfile=/scratch/kocevski/272009/ft1_filteredMKT_4FGL_J2221.9-3504_daily_bin667.fits ra=335.497 dec=-35.0712 rad=12.0 tmin=412214401.0 tmax=412473601.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.42
user 3.21
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/272009/ft2_4FGL_J2221.9-3504_daily_bin667.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/272009/ft1_filteredMKT_4FGL_J2221.9-3504_daily_bin667.fits evtable="EVENTS" outfile="/scratch/kocevski/272009/ft1_filtered_4FGL_J2221.9-3504_daily_bin667.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.48
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/272009/ft1_filtered_4FGL_J2221.9-3504_daily_bin667.fits" evtable="EVENTS" scfile=/scratch/kocevski/272009/ft2_4FGL_J2221.9-3504_daily_bin667.fits sctable="SC_DATA" outfile=/scratch/kocevski/272009/ltcube_412214401_412473601_4FGL_J2221.9-3504_daily_bin667.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/272009/ft2_4FGL_J2221.9-3504_daily_bin667.fits
.....................!
real 11.94
user 11.18
sys 0.68

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/272009/ft1_filtered_4FGL_J2221.9-3504_daily_bin667.fits evtable="EVENTS" scfile=/scratch/kocevski/272009/ft2_4FGL_J2221.9-3504_daily_bin667.fits sctable="SC_DATA" expcube=/scratch/kocevski/272009/ltcube_412214401_412473601_4FGL_J2221.9-3504_daily_bin667.fits outfile=/scratch/kocevski/272009/expmap_412214401_412473601_4FGL_J2221.9-3504_daily_bin667.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/272009/ltcube_412214401_412473601_4FGL_J2221.9-3504_daily_bin667.fits
.....................!
real 189.89
user 185.16
sys 4.38

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/272009/ft1_filtered_4FGL_J2221.9-3504_daily_bin667.fits scfile=/scratch/kocevski/272009/ft2_4FGL_J2221.9-3504_daily_bin667.fits outfile=/scratch/kocevski/272009/cmap_412214401_412473601_4FGL_J2221.9-3504_daily_bin667.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/272009/ft1_filtered_4FGL_J2221.9-3504_daily_bin667.fits scfile=/scratch/kocevski/272009/ft2_4FGL_J2221.9-3504_daily_bin667.fits outfile=/scratch/kocevski/272009/cmap_HighResolution_412214401_412473601_4FGL_J2221.9-3504_daily_bin667.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/272009/ft1_filtered_4FGL_J2221.9-3504_daily_bin667.fits evtable="EVENTS" scfile=/scratch/kocevski/272009/ft2_4FGL_J2221.9-3504_daily_bin667.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/272009/Model_4FGL_J2221.9-3504_daily_bin667.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/272009/ft1_filtered_4FGL_J2221.9-3504_daily_bin667.fits..............................!
real 16.38
user 15.12
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/272009/ft1_filtered_4FGL_J2221.9-3504_daily_bin667.fits', '/scratch/kocevski/272009/ft2_4FGL_J2221.9-3504_daily_bin667.fits', expMap='/scratch/kocevski/272009/expmap_412214401_412473601_4FGL_J2221.9-3504_daily_bin667.fits', expCube='/scratch/kocevski/272009/ltcube_412214401_412473601_4FGL_J2221.9-3504_daily_bin667.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/272009/Model_4FGL_J2221.9-3504_daily_bin667.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/272009/ft1_filtered_4FGL_J2221.9-3504_daily_bin667.fits
Spacecraft file(s): /scratch/kocevski/272009/ft2_4FGL_J2221.9-3504_daily_bin667.fits
Exposure map: /scratch/kocevski/272009/expmap_412214401_412473601_4FGL_J2221.9-3504_daily_bin667.fits
Exposure cube: /scratch/kocevski/272009/ltcube_412214401_412473601_4FGL_J2221.9-3504_daily_bin667.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/272009/Model_4FGL_J2221.9-3504_daily_bin667.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 391.747151048

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 385.464453033

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.8921       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .31272       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.0272       1.0000         .10000E-03   10000.    
     4 'norm      '    .67487E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .26539E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.3862       1.0000         .10000E-03   10000.    
     7 'norm      '    80.882       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .24440       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10990       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.1127       1.0000         .10000E-03   10000.    
    13 'norm      '    55.903       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.2507       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.4994       1.0000         .10000E-03   10000.    
    16 'Prefactor '    646.69       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .31909       1.0000         .10000E-03   10000.    
    19 'Prefactor '    51.705       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .31370E-01   1.0000         .10000E-03   10000.    
    21 'norm      '    .10206E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10752E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .12347E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    6.7960       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10306E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.3998       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .30047E-01   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   385.4436     FROM MIGRAD    STATUS=CONVERGED    296 CALLS      629 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.8921        1.0020         .0000         .0000    
   2  Prefactor     .10000E-03    416.87       -.42527E-05** at limit **
   3  Prefactor     .90841E-03    6359.3        .29253E-03** at limit **
   4  norm          .10000E-03    81.012       -.27045E-05** at limit **
   5  Prefactor     .10000E-03    160.33        .17844E-05** at limit **
   6  Prefactor     .71643E-02    7539.0       -.45771E-03   -.48276E-03
   7  norm          82.023        57.954        .32779E-06    .19452E-01
   8  norm          .10000E-03    .69310       -.53730E-07** at limit **
   9  Prefactor     .10000E-03    19.566       -.11007E-05** at limit **
  10  Prefactor     .10000E-03    179.11        .10921E-04** at limit **
  11  Prefactor     .10000E-03    130.50        .49014E-05** at limit **
  12  Prefactor     .80846        2100.6       -.17960E-03   -.28769E-02
  13  norm          56.305        55.900        .21052E-05    .86357E-03
  14  Prefactor     .13932E-01    449.35        .11736E-03    .27514E-02
  15  Prefactor     .10000E-03    141.68       -.67164E-05** at limit **
  16  Prefactor     636.64        272.85       -.33420E-04    .32832E-01
  17  norm          .10000E-03    3.1353       -.53217E-06** at limit **
  18  Prefactor     .10000E-03    228.39       -.11404E-05** at limit **
  19  Prefactor     55.880        99.452        .32218E-04    .16418E-02
  20  Prefactor     .10000E-03    173.04        .32998E-04** at limit **
  21  norm          .10000E-03    3.2304       -.51135E-07** at limit **
  22  Prefactor     .10000E-03    10.453        .40445E-06** at limit **
  23  Prefactor     .10000E-03    8.4056       -.11522E-05** at limit **
  24  norm          .10000E-03    .51450        .22778E-07** at limit **
  25  Prefactor     .73062E-03    823.47        .13508E-03** at limit **
  26  Prefactor     .10000E-03    13.139       -.33922E-06** at limit **
  27  Normalizat    1.3861        .86283       -.79613E-04   -.56350E-04
  28  Prefactor     .37219E-01    2.1011        .28298E-03   -.12257E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.8921
  Prefactor  = 0.0001
  Prefactor  = 0.000908406
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00716428
  norm       = 82.0232
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.808456
  norm       = 56.3049
  Prefactor  = 0.0139324
  Prefactor  = 0.000100001
  Prefactor  = 636.643
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 55.8801
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000730617
  Prefactor  = 0.0001
  Normalizat = 1.38608
  Prefactor  = 0.0372191
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   385.4436     FROM HESSE     STATUS=FAILED        11 CALLS      640 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          506.08        498.15         .0000       -1.5146    
   2  Prefactor     .10000E-03    .27461       -.42527E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .90841E-03    .39642        .29253E-03   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .21879       -.27045E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    .24894        .17844E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .71643E-02    .29943E-01   -.45771E-03   -1.5725    
   7  norm          82.023        1.0070        .32779E-06   -1.3894    
   8  norm          .10000E-03    .20571       -.53730E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    .20571       -.11007E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    .25900        .10921E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    .22840        .49014E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .80846        1.0051       -.17960E-03   -1.5888    
  13  norm          56.305        1.0036        .21052E-05   -1.4206    
  14  Prefactor     .13932E-01    .78846E-01    .11736E-03   -1.5684    
  15  Prefactor     .10000E-03    .72989E-01   -.67164E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     636.64        .99273       -.33420E-04   -1.0606    
  17  norm          .10000E-03    .20571       -.53217E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    .27606       -.11404E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     55.880        1.0394        .32218E-04   -1.4212    
  20  Prefactor     .10000E-03    .21062        .32998E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    .20571       -.51135E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    .20571        .40445E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    .20571       -.11522E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    .20571        .22778E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .73062E-03    .37013E-01    .13508E-03   -1.5713    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    .20571       -.33922E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.3861        1.0575       -.79613E-04   -.81032    
  28  Prefactor     .37219E-01    .26099        .28298E-03   -1.4487    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.53555e-09
Minuit parameter uncertainties:
  1  1.00202
  2  5.38522e-06
  3  0.0358035
  4  3.1786e-06
  5  1.20848e-06
  6  0.0290879
  7  1.00699
  8  2.81876e-09
  9  8.77328e-07
  10  3.4178e-06
  11  2.02e-05
  12  1.00514
  13  1.00361
  14  0.0660494
  15  1.22123e-05
  16  0.992732
  17  1.38027e-07
  18  4.01214e-06
  19  1.03942
  20  1.78293e-06
  21  1.1859e-07
  22  8.29051e-07
  23  5.49131e-07
  24  2.09234e-08
  25  0.00966258
  26  7.49783e-07
  27  1.07491
  28  0.198361
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 385.443588071

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  1.000e-04  2.020e-05  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:  3.722e-02  1.984e-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.386e+00  1.075e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 335.497 -35.071
Photon Flux Upper Limit: 2.04e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.60e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/272009/likelihoodResults_412214401_412473601_4FGL_J2221.9-3504_daily_bin667.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) = 385.443623242
delta logL = -3.51711721009e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 385.443588086
delta logL = -1.57656359079e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6395       1.0000          .0000       10.000    
     3 'Normalizat'    1.3861       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .37241E-01   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.

 FCN=   385.4436     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      253 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    260.90        .90712E-02** at limit **
   2  Index         2.6580        6.1515        .50000       -.13348E-05
   3  Normalizat    1.3861        1.6673        .45929E-01    .26723E-04
   4  Prefactor     .37223E-01    7.4851        .19170        .22586E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  Index      = 2.65803
  Normalizat = 1.38608
  Prefactor  = 0.0372228
 **********
 **   18 **HESSE 
 **********

 FCN=   385.4436     FROM HESSE     STATUS=OK            33 CALLS      286 TOTAL
                     EDM=   .84E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    125.36        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6580        6.3225        .50000       -.48747    
   3  Normalizat    1.3861        .61849        .20300E-03   -.81032    
   4  Prefactor     .37223E-01    1.1566        .72304E-02   -1.4487    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.36368e-11
Minuit parameter uncertainties:
  1  0.00158882
  2  4.46714
  3  0.621865
  4  0.424295
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/272009': 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) = 385.443588076
delta logL = -5.67666802453e-09

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  1.000e-04  1.589e-03  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  2.658e+00  4.467e+00  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:  3.722e-02  4.243e-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.386e+00  6.219e-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/272009/cmap_HighResolution_412214401_412473601_4FGL_J2221.9-3504_daily_bin667.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.60e-01', job_status='DONE', photon_flux_upper_limit='2.04e-06', time_completed='2021-09-28 09:56:35.646853', job_id='272009', GAL2='0.04', fit_tolerance='1e-08', EG2='1.39', EG='1.39', time_epoch_completed='1632848195.65', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.04', dlogl='-5.68e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='667' AND source_name='4FGL J2221.9-3504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:56:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0273>
Subject: Job 272009: <4FGL_J2221.9-3504_daily_bin667> in cluster <slac> Done

Job <4FGL_J2221.9-3504_daily_bin667> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 09:50:59 2021
Job was executed on host(s) <bullet0273>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:51:01 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:51:01 2021
Terminated at Tue Sep 28 09:56:36 2021
Results reported at Tue Sep 28 09:56:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.9-3504_daily_bin667 335.497 -35.0712 412214401 412473601 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 :                                   324.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             330.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   334 sec.
    Turnaround time :                            337 sec.

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

