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


Performing analysis on: 4FGL_J2221.9-3504_daily_bin169
RA = 335.497, Dec = -35.0712
tmin = 283132801, tmax = 283392001
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='270238', job_status='RUN', time_executed='2021-09-28 09:45:58.018297', time_epoch_executed='1632847558.02' WHERE source_name='4FGL J2221.9-3504' and cadence='daily' and bin_id='169'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/270238

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/270238/ft1_4FGL_J2221.9-3504_daily_bin169.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/270238/ft2_4FGL_J2221.9-3504_daily_bin169.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/270238/ft1_4FGL_J2221.9-3504_daily_bin169.fits outfile=/scratch/kocevski/270238/ft1_filteredMKT_4FGL_J2221.9-3504_daily_bin169.fits ra=335.497 dec=-35.0712 rad=12.0 tmin=283132801.0 tmax=283392001.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.83
user 3.59
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/270238/ft1_filtered_4FGL_J2221.9-3504_daily_bin169.fits" evtable="EVENTS" scfile=/scratch/kocevski/270238/ft2_4FGL_J2221.9-3504_daily_bin169.fits sctable="SC_DATA" outfile=/scratch/kocevski/270238/ltcube_283132801_283392001_4FGL_J2221.9-3504_daily_bin169.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/270238/ft2_4FGL_J2221.9-3504_daily_bin169.fits
.....................!
real 11.81
user 11.46
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/270238/ft1_filtered_4FGL_J2221.9-3504_daily_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/270238/ft2_4FGL_J2221.9-3504_daily_bin169.fits sctable="SC_DATA" expcube=/scratch/kocevski/270238/ltcube_283132801_283392001_4FGL_J2221.9-3504_daily_bin169.fits outfile=/scratch/kocevski/270238/expmap_283132801_283392001_4FGL_J2221.9-3504_daily_bin169.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/270238/ltcube_283132801_283392001_4FGL_J2221.9-3504_daily_bin169.fits
.....................!
real 190.21
user 185.35
sys 4.54

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/270238/ft1_filtered_4FGL_J2221.9-3504_daily_bin169.fits scfile=/scratch/kocevski/270238/ft2_4FGL_J2221.9-3504_daily_bin169.fits outfile=/scratch/kocevski/270238/cmap_283132801_283392001_4FGL_J2221.9-3504_daily_bin169.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/270238/ft1_filtered_4FGL_J2221.9-3504_daily_bin169.fits scfile=/scratch/kocevski/270238/ft2_4FGL_J2221.9-3504_daily_bin169.fits outfile=/scratch/kocevski/270238/cmap_HighResolution_283132801_283392001_4FGL_J2221.9-3504_daily_bin169.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.53
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/270238/ft1_filtered_4FGL_J2221.9-3504_daily_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/270238/ft2_4FGL_J2221.9-3504_daily_bin169.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/270238/Model_4FGL_J2221.9-3504_daily_bin169.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/270238/ft1_filtered_4FGL_J2221.9-3504_daily_bin169.fits.....................!
real 49.41
user 48.11
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.3270       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11455E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    9.6939       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.7410       1.0000         .10000E-03   10000.    
     8 'norm      '    .89032       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.5961       1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.293       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.3107       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.417       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10548E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    160.27       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .85263E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .42257       1.0000         .10000E-03   10000.    
    24 'norm      '    2.2462       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1042       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0643       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=   6456.037     FROM MIGRAD    STATUS=CONVERGED    690 CALLS     3498 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.3270        2.8229       -.50750E-07    .51060E-05
   2  Prefactor     .10000E-03    1.9666        .78864E-07** at limit **
   3  Prefactor     .10001E-03    5.6648        .10067E-05** at limit **
   4  norm          9.6937        6.6898        .67979E-07    .14094E-04
   5  Prefactor     .10000E-03    8.5215        .12652E-06** at limit **
   6  Prefactor     .10000E-03    29.375        .14639E-05** at limit **
   7  norm          1.7412        3.2598       -.61226E-06   -.97166E-04
   8  norm          .89031        .36153        .19795E-07    .23726E-04
   9  Prefactor     8.5960        9.9089       -.33609E-09   -.26981E-05
  10  Prefactor     11.292        19.484       -.21221E-06    .28723E-05
  11  Prefactor     6.3107        8.0929       -.26727E-06   -.44193E-05
  12  Prefactor     .10000E-03    1.2072        .15044E-06** at limit **
  13  norm          .10000E-03    8.4819       -.52461E-07** at limit **
  14  Prefactor     16.411        30.040       -.63336E-06   -.10680E-05
  15  Prefactor     .10000E-03    9.8953        .13093E-06** at limit **
  16  Prefactor     .10000E-03    7.5754        .11540E-06** at limit **
  17  norm          .10000E-03    1.4346       -.12396E-05** at limit **
  18  Prefactor     160.30        65.445        .17856E-05    .10004E-03
  19  Prefactor     .10000E-03    8.4850        .32956E-06** at limit **
  20  Prefactor     .10000E-03    37.129        .69843E-05** at limit **
  21  norm          .10000E-03    2.4001        .24919E-06** at limit **
  22  Prefactor     .10000E-03    25.599        .18379E-06** at limit **
  23  Prefactor     .29349        37.108       -.59138E-05    .14128E-03
  24  norm          2.2519        .94816        .20879E-07    .78460E-03
  25  Prefactor     .10000E-03    27.325       -.44207E-07** at limit **
  26  Prefactor     .10000E-03    8.9520        .32884E-07** at limit **
  27  Normalizat    1.1042        .19526        .84388E-06   -.65069E-04
  28  Prefactor     1.0643        .17255       -.14689E-05    .13321E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.32699
  Prefactor  = 0.0001
  Prefactor  = 0.000100014
  norm       = 9.69373
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.74119
  norm       = 0.89031
  Prefactor  = 8.59601
  Prefactor  = 11.2922
  Prefactor  = 6.31066
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 16.411
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 160.301
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.293488
  norm       = 2.25195
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.10421
  Prefactor  = 1.06431
 **********
 **   18 **HESSE 
 **********

 FCN=   6456.037     FROM HESSE     STATUS=OK           523 CALLS     4021 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.3270        2.8148        .14439E-03   -1.5403    
   2  Prefactor     .10000E-03    1.9724        .11004E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    16.509        .33890E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          9.6937        6.6883        .12871E-03   -1.5085    
   5  Prefactor     .10000E-03    8.5468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    29.374        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.7412        3.2150        .18468E-03   -1.5444    
   8  norm          .89031        .36089        .29026E-04   -1.5519    
   9  Prefactor     8.5960        9.9021        .13672E-03   -1.5122    
  10  Prefactor     11.292        19.464        .11922E-03   -1.5036    
  11  Prefactor     6.3107        8.1095        .15979E-03   -1.5205    
  12  Prefactor     .10000E-03    1.2143        .86219E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    8.4829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     16.411        29.995        .98849E-04   -1.4898    
  15  Prefactor     .10000E-03    9.9165        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.5872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.4703        .94079E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     160.30        67.362        .15926E-03   -1.3169    
  19  Prefactor     .10000E-03    8.5633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    47.085        .35832E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.4317        .12133E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    25.711        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .29349        198.53        .42394E-02   -1.5600    
  24  norm          2.2519        1.3484        .41339E-04   -1.5408    
  25  Prefactor     .10000E-03    27.339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    8.9684        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.1042        .22580        .26259E-03   -.89617    
  28  Prefactor     1.0643        .19643        .23875E-03   -.90615    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.4935e-09
Minuit parameter uncertainties:
  1  2.81491
  2  3.63912e-06
  3  0.000974788
  4  6.68877
  5  1.43414e-05
  6  6.28539e-06
  7  3.2153
  8  0.360889
  9  9.904
  10  19.4749
  11  8.11093
  12  2.06643e-06
  13  8.36719e-06
  14  30.0226
  15  1.08257e-05
  16  7.36482e-06
  17  1.42215e-05
  18  67.394
  19  7.95075e-06
  20  0.000361215
  21  6.80526e-06
  22  0.000177075
  23  15.3151
  24  1.3484
  25  1.91641e-05
  26  2.03865e-05
  27  0.225996
  28  0.19656
Done.

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

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  6.311e+00  8.111e+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:  1.064e+00  1.966e-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.104e+00  2.260e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.77
Ra Dec: 335.497 -35.071
Photon Flux Upper Limit: 1.15e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.05e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/270238/likelihoodResults_283132801_283392001_4FGL_J2221.9-3504_daily_bin169.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) = 6455.38098421
delta logL = 0.655716402503

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6455.27932253
delta logL = 0.75737808385

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .38586E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    8.4362       1.0000          .0000       10.000    
     3 'Normalizat'    1.0619       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0978       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=   6455.279     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      366 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .38063E-02    .55895E-01    .97694E-03    .89551E-02
   2  Index         8.4457        7.8030        .25304        .73905E-04
   3  Normalizat    1.0621        .45709E-01    .60355E-01    .21697E-04
   4  Prefactor     1.0978        .41109E-01    .37670E-01    .19982E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0038063
  Index      = 8.44572
  Normalizat = 1.06206
  Prefactor  = 1.09785
 **********
 **   18 **HESSE 
 **********

 FCN=   6455.279     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      401 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .38063E-02    .13767        .41824E-04   -1.5696    
   2  Index         8.4457        9.1576        .10677E-01    .76031    
   3  Normalizat    1.0621        .16390        .26693E-03   -.90979    
   4  Prefactor     1.0978        .14540        .23559E-03   -.89535    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.19859e-07
Minuit parameter uncertainties:
  1  0.0451771
  2  7.61633
  3  0.16398
  4  0.145448
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/270238': 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) = 6455.27931761
delta logL = 0.75738299827

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  3.806e-03  4.518e-02  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  8.446e+00  7.616e+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.098e+00  1.454e-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.062e+00  1.640e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.37
Ra Dec: 335.497 -35.071
Photon Index (Free Index): 8.45 +/- 7.62
Photon Flux (Free Index): 5.44e-08 +/- 4.58e-08
Energy Flux (Free Index): 6.25e-06 +/- 5.78e-06

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/270238/cmap_HighResolution_283132801_283392001_4FGL_J2221.9-3504_daily_bin169.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.05e-03', comment='SUCCESS', energy_flux2='6.25e-06', dlogl='7.57e-01', photon_flux2='5.44e-08', job_status='DONE', time_completed='2021-09-28 09:59:11.289274', photon_index_error2='7.62', photon_index2='8.45', ts='0.77', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='1.15e-07', energy_flux_error2='5.78e-06', EG='1.10', time_epoch_completed='1632848351.29', return_code='0', job_id='270238', GAL2='1.10', EG2='1.06', return_code2='102', photon_flux_error2='4.58e-08', ts2='2.37', photon_index='2.68' WHERE bin_id='169' AND source_name='4FGL J2221.9-3504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:59:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 270238: <4FGL_J2221.9-3504_daily_bin169> in cluster <slac> Done

Job <4FGL_J2221.9-3504_daily_bin169> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 09:45:33 2021
Job was executed on host(s) <bullet0037>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:45:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 09:45:34 2021
Terminated at Tue Sep 28 09:59:12 2021
Results reported at Tue Sep 28 09:59:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.9-3504_daily_bin169 335.497 -35.0712 283132801 283392001 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 :                                   792.11 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             329.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   817 sec.
    Turnaround time :                            819 sec.

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

