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


Performing analysis on: 4FGL_J2221.9-3504_daily_bin601
RA = 335.497, Dec = -35.0712
tmin = 395107201, tmax = 395366401
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='271902', job_status='RUN', time_executed='2021-09-28 09:53:36.130035', time_epoch_executed='1632848016.13' WHERE source_name='4FGL J2221.9-3504' and cadence='daily' and bin_id='601'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/271902

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

Retrieving the FT1 file...

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

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

Retrieving 55 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/271902/ft1_4FGL_J2221.9-3504_daily_bin601.fits


Retrieving the FT1 file...

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

Retrieving 55 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/271902/ft2_4FGL_J2221.9-3504_daily_bin601.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/271902/ft1_4FGL_J2221.9-3504_daily_bin601.fits outfile=/scratch/kocevski/271902/ft1_filteredMKT_4FGL_J2221.9-3504_daily_bin601.fits ra=335.497 dec=-35.0712 rad=12.0 tmin=395107201.0 tmax=395366401.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 8.03
user 7.72
sys 0.29

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/271902/ft1_filtered_4FGL_J2221.9-3504_daily_bin601.fits" evtable="EVENTS" scfile=/scratch/kocevski/271902/ft2_4FGL_J2221.9-3504_daily_bin601.fits sctable="SC_DATA" outfile=/scratch/kocevski/271902/ltcube_395107201_395366401_4FGL_J2221.9-3504_daily_bin601.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/271902/ft2_4FGL_J2221.9-3504_daily_bin601.fits
.....................!
real 11.29
user 10.93
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/271902/ft1_filtered_4FGL_J2221.9-3504_daily_bin601.fits evtable="EVENTS" scfile=/scratch/kocevski/271902/ft2_4FGL_J2221.9-3504_daily_bin601.fits sctable="SC_DATA" expcube=/scratch/kocevski/271902/ltcube_395107201_395366401_4FGL_J2221.9-3504_daily_bin601.fits outfile=/scratch/kocevski/271902/expmap_395107201_395366401_4FGL_J2221.9-3504_daily_bin601.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/271902/ltcube_395107201_395366401_4FGL_J2221.9-3504_daily_bin601.fits
.....................!
real 192.23
user 186.98
sys 4.86

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/271902/ft1_filtered_4FGL_J2221.9-3504_daily_bin601.fits scfile=/scratch/kocevski/271902/ft2_4FGL_J2221.9-3504_daily_bin601.fits outfile=/scratch/kocevski/271902/cmap_395107201_395366401_4FGL_J2221.9-3504_daily_bin601.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.51
user 0.37
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/271902/ft1_filtered_4FGL_J2221.9-3504_daily_bin601.fits scfile=/scratch/kocevski/271902/ft2_4FGL_J2221.9-3504_daily_bin601.fits outfile=/scratch/kocevski/271902/cmap_HighResolution_395107201_395366401_4FGL_J2221.9-3504_daily_bin601.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/271902/ft1_filtered_4FGL_J2221.9-3504_daily_bin601.fits evtable="EVENTS" scfile=/scratch/kocevski/271902/ft2_4FGL_J2221.9-3504_daily_bin601.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/271902/Model_4FGL_J2221.9-3504_daily_bin601.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/271902/ft1_filtered_4FGL_J2221.9-3504_daily_bin601.fits.....................!
real 38.74
user 37.29
sys 1.31

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.5858       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.304       1.0000         .10000E-03   10000.    
     4 'norm      '    7.5920       1.0000         .10000E-03   10000.    
     5 'Prefactor '    23.714       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .34788E-02   1.0000         .10000E-03   10000.    
     7 'norm      '    17.069       1.0000         .10000E-03   10000.    
     8 'norm      '    1.1847       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.060       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.3763       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10530       1.0000         .10000E-03   10000.    
    13 'norm      '    38.944       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.2981       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10635E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    168.19       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    7.5939       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10946E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    22.286       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1445       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .99316       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=   4168.449     FROM MIGRAD    STATUS=CONVERGED    664 CALLS     3475 TOTAL
                     EDM=   .73E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.5850        6.7391        .11081E-07   -.81494E-06
   2  Prefactor     .10000E-03    5.1610       -.15202E-07** at limit **
   3  Prefactor     11.306        13.115        .69049E-07    .62768E-05
   4  norm          7.5927        10.853        .12565E-06    .15101E-04
   5  Prefactor     23.700        26.710       -.93189E-05    .54070E-04
   6  Prefactor     .10001E-03    548.25       -.38127E-06** at limit **
   7  norm          17.068        8.9132       -.56765E-06    .61291E-04
   8  norm          1.1847        .50140       -.27025E-07    .40239E-03
   9  Prefactor     .10000E-03    6.3992       -.29495E-07** at limit **
  10  Prefactor     10.057        31.034       -.77685E-06    .74336E-06
  11  Prefactor     3.3808        9.8687        .95038E-06   -.10225E-05
  12  Prefactor     .10501        3.0611        .10534E-06   -.27284E-04
  13  norm          38.926        33.006       -.13154E-06   -.51549E-04
  14  Prefactor     8.3100        32.741        .34108E-06    .95428E-05
  15  Prefactor     .10000E-03    101.31        .12534E-05** at limit **
  16  Prefactor     .10000E-03    11.131       -.66094E-07** at limit **
  17  norm          .10000E-03    1.5960        .77870E-06** at limit **
  18  Prefactor     168.25        92.460        .50708E-06    .70765E-04
  19  Prefactor     .10000E-03    13.102       -.31421E-07** at limit **
  20  Prefactor     .10000E-03    4.9401       -.31544E-07** at limit **
  21  norm          7.5926        6.1249        .96165E-07   -.71982E-04
  22  Prefactor     .10000E-03    9.6959        .13120E-06** at limit **
  23  Prefactor     .10000E-03    12.204        .56950E-06** at limit **
  24  norm          .10000E-03    .39729       -.58551E-08** at limit **
  25  Prefactor     .10000E-03    44.604       -.15326E-06** at limit **
  26  Prefactor     22.285        17.818        .12373E-06   -.30698E-04
  27  Normalizat    1.1444        .25452       -.19604E-05    .15121E-04
  28  Prefactor     .99317        .21703        .14593E-05   -.88601E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.58497
  Prefactor  = 0.0001
  Prefactor  = 11.3064
  norm       = 7.59271
  Prefactor  = 23.6999
  Prefactor  = 0.000100013
  norm       = 17.0679
  norm       = 1.1847
  Prefactor  = 0.0001
  Prefactor  = 10.0566
  Prefactor  = 3.3808
  Prefactor  = 0.105015
  norm       = 38.9256
  Prefactor  = 8.31005
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 168.248
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.59264
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.2847
  Normalizat = 1.14443
  Prefactor  = 0.993169
 **********
 **   18 **HESSE 
 **********

 FCN=   4168.449     FROM HESSE     STATUS=OK           519 CALLS     3994 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.5850        6.7403        .14561E-03   -1.5157    
   2  Prefactor     .10000E-03    5.1745        .14322E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     11.306        13.120        .11916E-03   -1.5035    
   4  norm          7.5927        10.864        .14555E-03   -1.5157    
   5  Prefactor     23.700        26.717        .82256E-04   -1.4734    
   6  Prefactor     .10001E-03    550.89        .19662E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          17.068        8.9182        .96943E-04   -1.4881    
   8  norm          1.1847        .50341        .28116E-04   -1.5490    
   9  Prefactor     .10000E-03    6.4023        .15951E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.057        31.047        .12634E-03   -1.5074    
  11  Prefactor     3.3808        9.8752        .22021E-03   -1.5340    
  12  Prefactor     .10501        45.504        .21458E-02   -1.5643    
  13  norm          38.926        33.009        .32114E-03   -1.4459    
  14  Prefactor     8.3100        32.730        .13917E-03   -1.5131    
  15  Prefactor     .10000E-03    103.83        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    11.139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.5969        .79465E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     168.25        92.465        .15553E-03   -1.3106    
  19  Prefactor     .10000E-03    13.195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.9869        .14013E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          7.5926        6.1048        .13580E-03   -1.5157    
  22  Prefactor     .10000E-03    9.7035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    12.284        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    .40957        .78905E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    44.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     22.285        17.750        .84847E-04   -1.4763    
  27  Normalizat    1.1444        .29885        .27879E-03   -.88338    
  28  Prefactor     .99317        .25473        .25782E-03   -.92958    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12363e-08
Minuit parameter uncertainties:
  1  6.74094
  2  2.73451e-06
  3  13.1229
  4  10.8671
  5  26.7303
  6  0.00549017
  7  8.91892
  8  0.50341
  9  9.90665e-06
  10  31.097
  11  9.87996
  12  4.37326
  13  33.0247
  14  32.8004
  15  0.000577156
  16  1.71624e-05
  17  3.3499e-06
  18  92.5452
  19  1.30636e-05
  20  2.72187e-06
  21  6.10529
  22  4.02805e-06
  23  1.20191e-05
  24  3.54766e-07
  25  4.72242e-05
  26  17.7547
  27  0.299299
  28  0.255042
Done.

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

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  3.381e+00  9.880e+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

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  9.932e-01  2.550e-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.144e+00  2.993e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.14
Ra Dec: 335.497 -35.071
Photon Flux Upper Limit: 1.43e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.13e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/271902/likelihoodResults_395107201_395366401_4FGL_J2221.9-3504_daily_bin601.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) = 4168.3451186
delta logL = 0.103871527441

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4168.34284472
delta logL = 0.106145409371

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.6858       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8357       1.0000          .0000       10.000    
     3 'Normalizat'    1.1601       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98178       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=   4168.343     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      210 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6858        7.6339        .52593E-02   -.37240E-03
   2  Index         1.8358        .81721        .26830       -.43349E-04
   3  Normalizat    1.1601        .24265        .62637E-01    .60912E-05
   4  Prefactor     .98179        .21162        .46039E-01    .67418E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.68579
  Index      = 1.83575
  Normalizat = 1.16012
  Prefactor  = 0.981789
 **********
 **   18 **HESSE 
 **********

 FCN=   4168.343     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.6858        8.3992        .21037E-03   -1.5324    
   2  Index         1.8358        1.2294        .13319E-01   -.68523    
   3  Normalizat    1.1601        .28519        .27705E-03   -.87844    
   4  Prefactor     .98179        .24865        .25902E-03   -.93339    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.61916e-10
Minuit parameter uncertainties:
  1  8.40192
  2  1.25103
  3  0.285573
  4  0.248942
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/271902': 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) = 4168.34284472
delta logL = 0.106145411068

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  3.686e+00  8.402e+00  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  1.836e+00  1.251e+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:  9.818e-01  2.489e-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.160e+00  2.856e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.14
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/271902/cmap_HighResolution_395107201_395366401_4FGL_J2221.9-3504_daily_bin601.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.13e-02', job_status='DONE', photon_flux_upper_limit='1.43e-07', time_completed='2021-09-28 10:04:07.902885', job_id='271902', GAL2='0.98', fit_tolerance='1e-08', EG2='1.16', EG='1.14', time_epoch_completed='1632848647.9', return_code2='0', ts='0.14', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='1.06e-01', ts2='0.35', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='601' AND source_name='4FGL J2221.9-3504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:04:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 271902: <4FGL_J2221.9-3504_daily_bin601> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.9-3504_daily_bin601 335.497 -35.0712 395107201 395366401 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 :                                   630.29 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             280.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   796 sec.
    Turnaround time :                            800 sec.

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

