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


Performing analysis on: 4FGL_J2221.9-3504_daily_bin424
RA = 335.497, Dec = -35.0712
tmin = 349228801, tmax = 349488001
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='271604', job_status='RUN', time_executed='2021-09-28 09:53:16.225180', time_epoch_executed='1632847996.23' WHERE source_name='4FGL J2221.9-3504' and cadence='daily' and bin_id='424'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/271604

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/271604/ft1_4FGL_J2221.9-3504_daily_bin424.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/271604/ft2_4FGL_J2221.9-3504_daily_bin424.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/271604/ft1_4FGL_J2221.9-3504_daily_bin424.fits outfile=/scratch/kocevski/271604/ft1_filteredMKT_4FGL_J2221.9-3504_daily_bin424.fits ra=335.497 dec=-35.0712 rad=12.0 tmin=349228801.0 tmax=349488001.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.41
user 3.20
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/271604/ft2_4FGL_J2221.9-3504_daily_bin424.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/271604/ft1_filteredMKT_4FGL_J2221.9-3504_daily_bin424.fits evtable="EVENTS" outfile="/scratch/kocevski/271604/ft1_filtered_4FGL_J2221.9-3504_daily_bin424.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/271604/ft1_filtered_4FGL_J2221.9-3504_daily_bin424.fits" evtable="EVENTS" scfile=/scratch/kocevski/271604/ft2_4FGL_J2221.9-3504_daily_bin424.fits sctable="SC_DATA" outfile=/scratch/kocevski/271604/ltcube_349228801_349488001_4FGL_J2221.9-3504_daily_bin424.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/271604/ft2_4FGL_J2221.9-3504_daily_bin424.fits
.....................!
real 11.88
user 11.54
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/271604/ft1_filtered_4FGL_J2221.9-3504_daily_bin424.fits evtable="EVENTS" scfile=/scratch/kocevski/271604/ft2_4FGL_J2221.9-3504_daily_bin424.fits sctable="SC_DATA" expcube=/scratch/kocevski/271604/ltcube_349228801_349488001_4FGL_J2221.9-3504_daily_bin424.fits outfile=/scratch/kocevski/271604/expmap_349228801_349488001_4FGL_J2221.9-3504_daily_bin424.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/271604/ltcube_349228801_349488001_4FGL_J2221.9-3504_daily_bin424.fits
.....................!
real 190.57
user 184.96
sys 5.23

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/271604/ft1_filtered_4FGL_J2221.9-3504_daily_bin424.fits scfile=/scratch/kocevski/271604/ft2_4FGL_J2221.9-3504_daily_bin424.fits outfile=/scratch/kocevski/271604/cmap_349228801_349488001_4FGL_J2221.9-3504_daily_bin424.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.55
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/271604/ft1_filtered_4FGL_J2221.9-3504_daily_bin424.fits scfile=/scratch/kocevski/271604/ft2_4FGL_J2221.9-3504_daily_bin424.fits outfile=/scratch/kocevski/271604/cmap_HighResolution_349228801_349488001_4FGL_J2221.9-3504_daily_bin424.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/271604/ft1_filtered_4FGL_J2221.9-3504_daily_bin424.fits evtable="EVENTS" scfile=/scratch/kocevski/271604/ft2_4FGL_J2221.9-3504_daily_bin424.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/271604/Model_4FGL_J2221.9-3504_daily_bin424.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/271604/ft1_filtered_4FGL_J2221.9-3504_daily_bin424.fits.....................!
real 39.51
user 38.24
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/271604/ft1_filtered_4FGL_J2221.9-3504_daily_bin424.fits', '/scratch/kocevski/271604/ft2_4FGL_J2221.9-3504_daily_bin424.fits', expMap='/scratch/kocevski/271604/expmap_349228801_349488001_4FGL_J2221.9-3504_daily_bin424.fits', expCube='/scratch/kocevski/271604/ltcube_349228801_349488001_4FGL_J2221.9-3504_daily_bin424.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/271604/Model_4FGL_J2221.9-3504_daily_bin424.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/271604/ft1_filtered_4FGL_J2221.9-3504_daily_bin424.fits
Spacecraft file(s): /scratch/kocevski/271604/ft2_4FGL_J2221.9-3504_daily_bin424.fits
Exposure map: /scratch/kocevski/271604/expmap_349228801_349488001_4FGL_J2221.9-3504_daily_bin424.fits
Exposure cube: /scratch/kocevski/271604/ltcube_349228801_349488001_4FGL_J2221.9-3504_daily_bin424.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/271604/Model_4FGL_J2221.9-3504_daily_bin424.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) = 4473.16522772

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .19039       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10224E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .30513       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.4763       1.0000         .10000E-03   10000.    
    13 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    41.180       1.0000         .10000E-03   10000.    
    17 'norm      '    .11747E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    142.12       1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.373       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.4062       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.8879       1.0000         .10000E-03   10000.    
    24 'norm      '    2.5584       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10838E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    14.884       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .96575       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.2066       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=   4473.094     FROM MIGRAD    STATUS=CONVERGED    699 CALLS     3511 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.5268       -.48067E-08** at limit **
   2  Prefactor     .28509        9.8858       -.32791E-05    .30831E-04
   3  Prefactor     .10000E-03    4.9652        .92836E-08** at limit **
   4  norm          .10000E-03    4.5314       -.22950E-07** at limit **
   5  Prefactor     .10000E-03    7.9115       -.45938E-06** at limit **
   6  Prefactor     .10000E-03    31.092        .10636E-05** at limit **
   7  norm          .10000E-03    5.0766       -.11158E-06** at limit **
   8  norm          .30518        .27376       -.40467E-08    .70559E-04
   9  Prefactor     .10000E-03    10.017       -.21061E-06** at limit **
  10  Prefactor     .10000E-03    12.522       -.42343E-06** at limit **
  11  Prefactor     .10000E-03    5.9821        .71243E-07** at limit **
  12  Prefactor     4.4786        6.2086        .71773E-07   -.85345E-05
  13  norm          .10000E-03    15.883       -.20387E-06** at limit **
  14  Prefactor     .10000E-03    29.543        .85092E-06** at limit **
  15  Prefactor     .10000E-03    13.446        .31641E-06** at limit **
  16  Prefactor     41.170        35.815        .10478E-06   -.13098E-04
  17  norm          .10000E-03    3.7882       -.30150E-05** at limit **
  18  Prefactor     142.17        86.209        .49005E-06    .15525E-03
  19  Prefactor     17.385        18.609        .56113E-06    .16973E-03
  20  Prefactor     .10000E-03    8.2000        .61396E-06** at limit **
  21  norm          1.4082        7.3648        .52427E-05    .18865E-04
  22  Prefactor     .10000E-03    23.119       -.51529E-06** at limit **
  23  Prefactor     9.8902        22.303       -.51985E-06    .90518E-04
  24  norm          2.5583        1.5713       -.42048E-06    .75400E-03
  25  Prefactor     .10000E-03    227.05        .21198E-05** at limit **
  26  Prefactor     14.898        22.764        .14201E-05    .10557E-03
  27  Normalizat    .96576        .25070        .62367E-06    .15860E-03
  28  Prefactor     1.2064        .20942       -.31227E-06    .92607E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.285094
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.305176
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.47862
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 41.1699
  norm       = 0.0001
  Prefactor  = 142.17
  Prefactor  = 17.3854
  Prefactor  = 0.0001
  norm       = 1.40823
  Prefactor  = 0.000100001
  Prefactor  = 9.89023
  norm       = 2.5583
  Prefactor  = 0.0001
  Prefactor  = 14.8976
  Normalizat = 0.965756
  Prefactor  = 1.20638
 **********
 **   18 **HESSE 
 **********

 FCN=   4473.094     FROM HESSE     STATUS=OK           515 CALLS     4026 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.5286        .80708E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .28509        42.181        .35359E-02   -1.5601    
   3  Prefactor     .10000E-03    4.9846        .14551E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    4.5428        .13903E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.9260        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    31.175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    5.1493        .14700E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .30518        .28234        .32131E-03   -1.5597    
   9  Prefactor     .10000E-03    10.051        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    12.556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.0160        .15971E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.4786        6.2146        .18315E-03   -1.5285    
  13  norm          .10000E-03    15.911        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    29.585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    13.485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     41.170        36.026        .62466E-04   -1.4424    
  17  norm          .10000E-03    3.8514        .25235E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     142.17        87.220        .16897E-03   -1.3318    
  19  Prefactor     17.385        18.753        .96091E-04   -1.4874    
  20  Prefactor     .10000E-03    8.2915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.4082        7.9515        .16340E-02   -1.5471    
  22  Prefactor     .10000E-03    23.279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     9.8902        22.948        .12743E-03   -1.5079    
  24  norm          2.5583        1.6180        .45880E-04   -1.5388    
  25  Prefactor     .10000E-03    230.95        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     14.898        22.737        .10382E-03   -1.4936    
  27  Normalizat    .96576        .30864        .29393E-03   -.94187    
  28  Prefactor     1.2064        .25840        .23446E-03   -.86135    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.61246e-10
Minuit parameter uncertainties:
  1  4.13197e-07
  2  6.93936
  3  7.17151e-07
  4  2.58711e-06
  5  5.17169e-05
  6  0.000238926
  7  9.99556e-06
  8  0.282342
  9  2.32651e-05
  10  4.74702e-05
  11  2.26119e-06
  12  6.2155
  13  6.12364e-05
  14  0.000176854
  15  2.84033e-05
  16  36.0446
  17  1.90392e-05
  18  87.2987
  19  18.759
  20  5.19804e-05
  21  6.69366
  22  0.000241053
  23  22.968
  24  1.61807
  25  0.000535653
  26  22.7499
  27  0.309212
  28  0.258668
Done.

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

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  1.000e-04  2.261e-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:  1.206e+00  2.587e-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:  9.658e-01  3.092e-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: 1.02e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.05e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/271604/likelihoodResults_349228801_349488001_4FGL_J2221.9-3504_daily_bin424.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) = 4473.09435158
delta logL = -0.000791132769336

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4473.09356066
delta logL = -2.07192897506e-07

Fit tolerance = 1e-08

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

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

 FCN=   4472.978     FROM MIGRAD    STATUS=CONVERGED    182 CALLS      339 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .19339E-03    .24057E-01    .59152E-03** at limit **
   2  Index        10.0000        9.7368        .50000    ** at limit **
   3  Normalizat    .92797        .62976E-01    .29393E-03   -.28673E-03
   4  Prefactor     1.2296        .54894E-01    .23446E-03   -.34049E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000193388
  Index      = 10
  Normalizat = 0.927974
  Prefactor  = 1.22962
 **********
 **   18 **HESSE 
 **********

 FCN=   4472.978     FROM HESSE     STATUS=OK            33 CALLS      372 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .19339E-03    .65339E-03    .21730E-04   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        8.2994        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .92797        .29678        .58786E-04   -.95484    
   4  Prefactor     1.2296        .25663        .46891E-04   -.85425    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.18897e-10
Minuit parameter uncertainties:
  1  0.000494039
  2  3.2724e-05
  3  0.297307
  4  0.256889
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/271604': 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) = 4472.97805648
delta logL = 0.115503974253

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  1.934e-04  4.940e-04  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  1.000e+01  3.272e-05  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:  1.230e+00  2.569e-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:  9.280e-01  2.973e-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/271604/cmap_HighResolution_349228801_349488001_4FGL_J2221.9-3504_daily_bin424.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.05e-03', job_status='DONE', photon_flux_upper_limit='1.02e-07', time_completed='2021-09-28 10:03:45.989518', job_id='271604', GAL2='1.23', fit_tolerance='1e-08', EG2='0.93', EG='0.97', time_epoch_completed='1632848625.99', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.21', dlogl='1.16e-01', ts2='0.25', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='424' AND source_name='4FGL J2221.9-3504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:03:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 271604: <4FGL_J2221.9-3504_daily_bin424> in cluster <slac> Done

Job <4FGL_J2221.9-3504_daily_bin424> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 09:50:22 2021
Job was executed on host(s) <bullet0267>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:50:23 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:50:23 2021
Terminated at Tue Sep 28 10:03:46 2021
Results reported at Tue Sep 28 10:03:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.9-3504_daily_bin424 335.497 -35.0712 349228801 349488001 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 :                                   631.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             290.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   803 sec.
    Turnaround time :                            804 sec.

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

