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


Performing analysis on: 4FGL_J2221.9-3504_daily_bin1275
RA = 335.497, Dec = -35.0712
tmin = 569808001, tmax = 570067201
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='274917', job_status='RUN', time_executed='2021-09-28 10:03:03.802922', time_epoch_executed='1632848583.8' WHERE source_name='4FGL J2221.9-3504' and cadence='daily' and bin_id='1275'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/274917

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/274917/ft1_4FGL_J2221.9-3504_daily_bin1275.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/274917/ft2_4FGL_J2221.9-3504_daily_bin1275.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/274917/ft1_4FGL_J2221.9-3504_daily_bin1275.fits outfile=/scratch/kocevski/274917/ft1_filteredMKT_4FGL_J2221.9-3504_daily_bin1275.fits ra=335.497 dec=-35.0712 rad=12.0 tmin=569808001.0 tmax=570067201.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.55
user 3.33
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/274917/ft1_filtered_4FGL_J2221.9-3504_daily_bin1275.fits" evtable="EVENTS" scfile=/scratch/kocevski/274917/ft2_4FGL_J2221.9-3504_daily_bin1275.fits sctable="SC_DATA" outfile=/scratch/kocevski/274917/ltcube_569808001_570067201_4FGL_J2221.9-3504_daily_bin1275.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/274917/ft2_4FGL_J2221.9-3504_daily_bin1275.fits
.....................!
real 11.69
user 11.33
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/274917/ft1_filtered_4FGL_J2221.9-3504_daily_bin1275.fits evtable="EVENTS" scfile=/scratch/kocevski/274917/ft2_4FGL_J2221.9-3504_daily_bin1275.fits sctable="SC_DATA" expcube=/scratch/kocevski/274917/ltcube_569808001_570067201_4FGL_J2221.9-3504_daily_bin1275.fits outfile=/scratch/kocevski/274917/expmap_569808001_570067201_4FGL_J2221.9-3504_daily_bin1275.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/274917/ltcube_569808001_570067201_4FGL_J2221.9-3504_daily_bin1275.fits
.....................!
real 190.27
user 185.60
sys 4.33

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/274917/ft1_filtered_4FGL_J2221.9-3504_daily_bin1275.fits scfile=/scratch/kocevski/274917/ft2_4FGL_J2221.9-3504_daily_bin1275.fits outfile=/scratch/kocevski/274917/cmap_569808001_570067201_4FGL_J2221.9-3504_daily_bin1275.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.54
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/274917/ft1_filtered_4FGL_J2221.9-3504_daily_bin1275.fits scfile=/scratch/kocevski/274917/ft2_4FGL_J2221.9-3504_daily_bin1275.fits outfile=/scratch/kocevski/274917/cmap_HighResolution_569808001_570067201_4FGL_J2221.9-3504_daily_bin1275.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 1.01
user 0.38
sys 0.62

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/274917/ft1_filtered_4FGL_J2221.9-3504_daily_bin1275.fits evtable="EVENTS" scfile=/scratch/kocevski/274917/ft2_4FGL_J2221.9-3504_daily_bin1275.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/274917/Model_4FGL_J2221.9-3504_daily_bin1275.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/274917/ft1_filtered_4FGL_J2221.9-3504_daily_bin1275.fits.....................!
real 47.43
user 46.02
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13299E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.1148       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .12231E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.289       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .21804E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.0928       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.1646       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .84554E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.643       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.9319       1.0000         .10000E-03   10000.    
    13 'norm      '    .10842E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11154E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    23.631       1.0000         .10000E-03   10000.    
    17 'norm      '    .71460       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10546E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.1418       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .51748E-01   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.005       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.8358       1.0000         .10000E-03   10000.    
    24 'norm      '    .69705       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10220E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10421E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0352       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0239       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=   5706.485     FROM MIGRAD    STATUS=CONVERGED   1259 CALLS     3594 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    14.319        .23574E-02** at limit **
   2  Prefactor     5.1171        7.1786        .17777E-03    .17778E-04
   3  Prefactor     .10000E-03    8.9549        .18142E-02** at limit **
   4  norm          .49273E-01    5.3445        .54275E-01    .51086E-03
   5  Prefactor     20.296        19.450        .88921E-04    .12286E-03
   6  Prefactor     .10000E-03    72.959        .18142E-02** at limit **
   7  norm          .10000E-03    3.0124        .12681E-02** at limit **
   8  norm          1.0927        .38489        .26802E-04    .76437E-03
   9  Prefactor     9.1493        11.527        .13239E-03    .64405E-04
  10  Prefactor     .10000E-03    270.42        .76772E-02** at limit **
  11  Prefactor     11.649        10.498        .11740E-03    .95383E-04
  12  Prefactor     8.9360        4.8858        .57972E-03    .48709E-03
  13  norm          .10000E-03    9.5204        .18142E-02** at limit **
  14  Prefactor     .10000E-03    33.154        .18142E-02** at limit **
  15  Prefactor     .10000E-03    31.794        .18142E-02** at limit **
  16  Prefactor     23.628        23.704        .82401E-04    .48289E-05
  17  norm          .71307        1.3435        .14516E-02    .48175E-03
  18  Prefactor     .10000E-03    22.428        .18142E-02** at limit **
  19  Prefactor     6.1473        11.221        .16200E-03    .41757E-04
  20  Prefactor     .54453E-01    4.5205        .51219E-01    .33740E-03
  21  norm          .10000E-03    .93132        .71152E-03** at limit **
  22  Prefactor     10.008        11.019        .12668E-03    .60199E-04
  23  Prefactor     3.8407        9.6479        .20607E-03    .81596E-04
  24  norm          .69731        .65741        .47597E-04    .59952E-04
  25  Prefactor     .10000E-03    56.131        .18142E-02** at limit **
  26  Prefactor     .10000E-03    9.0004        .18142E-02** at limit **
  27  Normalizat    1.0350        .24028        .25833E-03    .19668E-03
  28  Prefactor     1.0236        .20046        .23421E-03    .27342E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  Prefactor  = 5.11707
  Prefactor  = 0.0001
  norm       = 0.0492727
  Prefactor  = 20.2959
  Prefactor  = 0.000100005
  norm       = 0.0001
  norm       = 1.09274
  Prefactor  = 9.14929
  Prefactor  = 0.000100003
  Prefactor  = 11.6486
  Prefactor  = 8.93605
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.6277
  norm       = 0.713066
  Prefactor  = 0.0001
  Prefactor  = 6.14734
  Prefactor  = 0.0544534
  norm       = 0.0001
  Prefactor  = 10.0076
  Prefactor  = 3.8407
  norm       = 0.697308
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Normalizat = 1.03504
  Prefactor  = 1.02361
 **********
 **   18 **HESSE 
 **********

 FCN=   5706.485     FROM HESSE     STATUS=OK           515 CALLS     4109 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    14.450        .47149E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.1171        7.1776        .71109E-05   -1.5256    
   3  Prefactor     .10000E-03    8.9602        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .49273E-01    5.2652        .54950E-01   -1.5664    
   5  Prefactor     20.296        19.449        .17784E-04   -1.4807    
   6  Prefactor     .10000E-03    72.964        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.0133        .25363E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.0927        .38488        .10721E-05   -1.5499    
   9  Prefactor     9.1493        11.523        .52956E-05   -1.5103    
  10  Prefactor     .10000E-03    280.48        .30709E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     11.649        10.497        .46961E-05   -1.5025    
  12  Prefactor     8.9360        4.8850        .23189E-04   -1.5110    
  13  norm          .10000E-03    9.5211        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    33.157        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    31.803        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     23.628        23.701        .32960E-05   -1.4735    
  17  norm          .71307        1.3423        .58063E-04   -1.5539    
  18  Prefactor     .10000E-03    22.429        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.1473        11.219        .64798E-05   -1.5212    
  20  Prefactor     .54453E-01    4.5018        .51399E-01   -1.5661    
  21  norm          .10000E-03    .93132        .14230E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     10.008        11.016        .25336E-04   -1.5075    
  23  Prefactor     3.8407        9.6396        .82427E-05   -1.5316    
  24  norm          .69731        .65708        .19039E-05   -1.5541    
  25  Prefactor     .10000E-03    56.139        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    9.0025        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.0350        .24034        .10333E-04   -.91866    
  28  Prefactor     1.0236        .20062        .46841E-04   -.91946    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04323e-09
Minuit parameter uncertainties:
  1  0.000198279
  2  7.17881
  3  1.35694e-05
  4  1.01774
  5  19.4554
  6  0.00117999
  7  9.96152e-07
  8  0.384879
  9  11.5256
  10  0.00173856
  11  10.4988
  12  4.88523
  13  3.65946e-06
  14  0.000120601
  15  0.000147784
  16  23.7107
  17  1.34234
  18  2.90574e-05
  19  11.2224
  20  0.989398
  21  1.72798e-06
  22  11.0182
  23  9.64352
  24  0.657083
  25  0.000751644
  26  1.71636e-06
  27  0.240597
  28  0.200765
Done.

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

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  1.165e+01  1.050e+01  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.024e+00  2.008e-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.035e+00  2.406e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.71
Ra Dec: 335.497 -35.071
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 5.62e-08 +/- 5.06e-08
Energy Flux (Fixed Index): 1.38e-05 +/- 1.24e-05

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

Saving results to:
/scratch/kocevski/274917/likelihoodResults_569808001_570067201_4FGL_J2221.9-3504_daily_bin1275.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) = 5706.03747145
delta logL = 0.447264341503

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5705.99658941
delta logL = 0.488146374052

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .86928       1.0000         .10000E-03   10000.    
     2 'Index     '    5.1021       1.0000          .0000       10.000    
     3 'Normalizat'    .97155       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0721       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=   5705.997     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      262 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .86470        8.8347        .10563E-01    .23555E-02
   2  Index         5.1052        3.4010        .16070        .21214E-03
   3  Normalizat    .97193        .48950E-01    .45809E-01   -.18136E-03
   4  Prefactor     1.0720        .44267E-01    .38757E-01   -.37805E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.8647
  Index      = 5.10519
  Normalizat = 0.97193
  Prefactor  = 1.07199
 **********
 **   18 **HESSE 
 **********

 FCN=   5705.997     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      293 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .86470        20.523        .47806E-04   -1.5522    
   2  Index         5.1052        7.4973        .60147E-02    .21040E-01
   3  Normalizat    .97193        .19993        .26561E-03   -.93977    
   4  Prefactor     1.0720        .17705        .22965E-03   -.90367    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.23191e-10
Minuit parameter uncertainties:
  1  8.42798
  2  6.90407
  3  0.200083
  4  0.177146
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/274917': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5705.99658614
delta logL = 0.48814964634

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  8.647e-01  8.428e+00  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  5.105e+00  6.904e+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:  1.072e+00  1.771e-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.719e-01  2.001e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.88
Ra Dec: 335.497 -35.071
Photon Index (Free Index): 5.11 +/- 6.90
Photon Flux (Free Index): 9.20e-08 +/- 6.51e-08
Energy Flux (Free Index): 1.21e-05 +/- 1.14e-05

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/274917/cmap_HighResolution_569808001_570067201_4FGL_J2221.9-3504_daily_bin1275.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.24e-02', comment='SUCCESS', photon_flux='5.62e-08', energy_flux2='1.21e-05', photon_flux_error='5.06e-08', dlogl='4.88e-01', energy_flux='1.38e-05', photon_flux2='9.20e-08', job_status='DONE', time_completed='2021-09-28 10:15:18.641335', photon_index_error2='6.90', photon_index2='5.11', ts='1.71', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='1.58e-07', energy_flux_error2='1.14e-05', EG='1.04', time_epoch_completed='1632849318.64', return_code='0', job_id='274917', GAL2='1.07', EG2='0.97', return_code2='102', energy_flux_error='1.24e-05', photon_flux_error2='6.51e-08', ts2='2.88', photon_index='2.68' WHERE bin_id='1275' AND source_name='4FGL J2221.9-3504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:15:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 274917: <4FGL_J2221.9-3504_daily_bin1275> in cluster <slac> Done

Job <4FGL_J2221.9-3504_daily_bin1275> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Sep 28 10:00:45 2021
Job was executed on host(s) <bullet0076>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 10:00:46 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 10:00:46 2021
Terminated at Tue Sep 28 10:15:19 2021
Results reported at Tue Sep 28 10:15:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.9-3504_daily_bin1275 335.497 -35.0712 569808001 570067201 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 :                                   734.34 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             301.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   872 sec.
    Turnaround time :                            874 sec.

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

