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


Performing analysis on: 4FGL_J2221.9-3504_daily_bin874
RA = 335.497, Dec = -35.0712
tmin = 465868801, tmax = 466128001
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='273302', job_status='RUN', time_executed='2021-09-28 09:57:52.376231', time_epoch_executed='1632848272.38' WHERE source_name='4FGL J2221.9-3504' and cadence='daily' and bin_id='874'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/273302

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/273302/ft1_4FGL_J2221.9-3504_daily_bin874.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/273302/ft2_4FGL_J2221.9-3504_daily_bin874.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/273302/ft1_4FGL_J2221.9-3504_daily_bin874.fits outfile=/scratch/kocevski/273302/ft1_filteredMKT_4FGL_J2221.9-3504_daily_bin874.fits ra=335.497 dec=-35.0712 rad=12.0 tmin=465868801.0 tmax=466128001.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.94
user 3.70
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/273302/ft1_filtered_4FGL_J2221.9-3504_daily_bin874.fits" evtable="EVENTS" scfile=/scratch/kocevski/273302/ft2_4FGL_J2221.9-3504_daily_bin874.fits sctable="SC_DATA" outfile=/scratch/kocevski/273302/ltcube_465868801_466128001_4FGL_J2221.9-3504_daily_bin874.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/273302/ft2_4FGL_J2221.9-3504_daily_bin874.fits
.....................!
real 11.70
user 11.32
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/273302/ft1_filtered_4FGL_J2221.9-3504_daily_bin874.fits evtable="EVENTS" scfile=/scratch/kocevski/273302/ft2_4FGL_J2221.9-3504_daily_bin874.fits sctable="SC_DATA" expcube=/scratch/kocevski/273302/ltcube_465868801_466128001_4FGL_J2221.9-3504_daily_bin874.fits outfile=/scratch/kocevski/273302/expmap_465868801_466128001_4FGL_J2221.9-3504_daily_bin874.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/273302/ltcube_465868801_466128001_4FGL_J2221.9-3504_daily_bin874.fits
.....................!
real 191.78
user 186.21
sys 5.26

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/273302/ft1_filtered_4FGL_J2221.9-3504_daily_bin874.fits scfile=/scratch/kocevski/273302/ft2_4FGL_J2221.9-3504_daily_bin874.fits outfile=/scratch/kocevski/273302/cmap_465868801_466128001_4FGL_J2221.9-3504_daily_bin874.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/273302/ft1_filtered_4FGL_J2221.9-3504_daily_bin874.fits scfile=/scratch/kocevski/273302/ft2_4FGL_J2221.9-3504_daily_bin874.fits outfile=/scratch/kocevski/273302/cmap_HighResolution_465868801_466128001_4FGL_J2221.9-3504_daily_bin874.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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/273302/ft1_filtered_4FGL_J2221.9-3504_daily_bin874.fits evtable="EVENTS" scfile=/scratch/kocevski/273302/ft2_4FGL_J2221.9-3504_daily_bin874.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/273302/Model_4FGL_J2221.9-3504_daily_bin874.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/273302/ft1_filtered_4FGL_J2221.9-3504_daily_bin874.fits.....................!
real 57.45
user 56.13
sys 1.21

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

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 7812.86777185

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.432       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .95485       1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.394       1.0000         .10000E-03   10000.    
     6 'Prefactor '    23.309       1.0000         .10000E-03   10000.    
     7 'norm      '    .73364       1.0000         .10000E-03   10000.    
     8 'norm      '    1.7019       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .14196E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    25.748       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    33.614       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .29131       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.1954       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.4454       1.0000         .10000E-03   10000.    
    21 'norm      '    1.6383       1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.3178       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .16977E-02   1.0000         .10000E-03   10000.    
    24 'norm      '    .70551E-01   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .85806       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .83313       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=   7812.679     FROM MIGRAD    STATUS=CONVERGED    719 CALLS     3097 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.432        4.7670        .20496E-07   -.15362E-03
   2  Prefactor     .10000E-03    1.2224       -.15884E-07** at limit **
   3  Prefactor     .95418        4.3993        .10661E-05   -.27005E-03
   4  norm          .10000E-03    4.5158       -.10579E-06** at limit **
   5  Prefactor     13.389        16.120       -.17113E-05   -.10351E-03
   6  Prefactor     23.350        46.748        .40173E-05    .51894E-04
   7  norm          .73218        2.8183        .10707E-05   -.38166E-03
   8  norm          1.7020        .38631       -.78425E-07   -.15984E-02
   9  Prefactor     .10000E-03    11.024        .55053E-06** at limit **
  10  Prefactor     .10000E-03    4.5457        .72539E-07** at limit **
  11  Prefactor     .13177E-02    2.3268       -.10260E-06** at limit **
  12  Prefactor     .10000E-03    .59047        .82918E-08** at limit **
  13  norm          25.747        16.894        .72127E-10   -.63269E-04
  14  Prefactor     .10000E-03    20.639        .51733E-07** at limit **
  15  Prefactor     33.616        17.908        .11564E-06   -.41349E-04
  16  Prefactor     .10000E-03    12.949       -.28190E-07** at limit **
  17  norm          .29119        .85130        .49871E-06   -.61688E-04
  18  Prefactor     .10000E-03    30.308       -.47656E-06** at limit **
  19  Prefactor     1.1942        14.438        .39986E-05   -.81536E-04
  20  Prefactor     3.4454        3.2560        .42805E-07    .15628E-04
  21  norm          1.6377        2.0860        .47584E-07   -.22772E-03
  22  Prefactor     6.3154        7.2242        .12557E-06    .66587E-04
  23  Prefactor     .10002E-03    2.6018       -.27484E-06** at limit **
  24  norm          .70432E-01    .21684        .26118E-06   -.23981E-03
  25  Prefactor     .10000E-03    61.027        .40873E-06** at limit **
  26  Prefactor     .10000E-03    2.2731       -.18434E-07** at limit **
  27  Normalizat    .85797        .13963       -.15925E-05   -.32663E-03
  28  Prefactor     .83323        .12329       -.95348E-07   -.43463E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 14.4321
  Prefactor  = 0.0001
  Prefactor  = 0.954177
  norm       = 0.0001
  Prefactor  = 13.3888
  Prefactor  = 23.3496
  norm       = 0.732176
  norm       = 1.70197
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00131768
  Prefactor  = 0.0001
  norm       = 25.7469
  Prefactor  = 0.0001
  Prefactor  = 33.6165
  Prefactor  = 0.0001
  norm       = 0.291192
  Prefactor  = 0.0001
  Prefactor  = 1.19421
  Prefactor  = 3.44536
  norm       = 1.63774
  Prefactor  = 6.3154
  Prefactor  = 0.00010002
  norm       = 0.0704318
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.857967
  Prefactor  = 0.833229
 **********
 **   18 **HESSE 
 **********

 FCN=   7812.679     FROM HESSE     STATUS=OK           533 CALLS     3630 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.432        4.7512        .10543E-03   -1.4948    
   2  Prefactor     .10000E-03    1.2254        .95412E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .95418        8.3868        .34312E-02   -1.5513    
   4  norm          .10000E-03    4.6010        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.389        16.346        .10945E-03   -1.4976    
   6  Prefactor     23.350        48.164        .82966E-04   -1.4741    
   7  norm          .73218        4.4135        .23898E-02   -1.5537    
   8  norm          1.7020        .38341        .23418E-04   -1.5447    
   9  Prefactor     .10000E-03    11.485        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.5558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .13177E-02    4.6116        .45149E-01   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    .59533        .66326E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          25.747        16.828        .78946E-04   -1.4693    
  14  Prefactor     .10000E-03    20.755        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     33.616        17.902        .69116E-04   -1.4548    
  16  Prefactor     .10000E-03    13.158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .29119        .82524        .13572E-02   -1.5600    
  18  Prefactor     .10000E-03    30.574        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.1942        14.651        .41593E-03   -1.5489    
  20  Prefactor     3.4454        3.2645        .15061E-03   -1.5337    
  21  norm          1.6377        2.0325        .13519E-03   -1.5452    
  22  Prefactor     6.3154        7.1778        .15970E-03   -1.5205    
  23  Prefactor     .10002E-03    23.654        .24417E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .70432E-01    .21035        .63159E-04   -1.5655    
  25  Prefactor     .10000E-03    61.486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    2.2756        .13012E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .85797        .16174        .23091E-03   -.97953    
  28  Prefactor     .83323        .14539        .21589E-03   -.98515    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.75309e-08
Minuit parameter uncertainties:
  1  4.75128
  2  5.13705e-07
  3  5.65851
  4  8.07673e-06
  5  16.3511
  6  48.2445
  7  3.5954
  8  0.383411
  9  5.12714e-06
  10  3.39561e-06
  11  0.149885
  12  1.1836e-06
  13  16.8311
  14  2.85194e-05
  15  17.9044
  16  2.30062e-05
  17  0.825274
  18  6.89466e-05
  19  8.3678
  20  3.26464
  21  2.03257
  22  7.17879
  23  0.00136734
  24  0.210356
  25  0.000134518
  26  1.42701e-06
  27  0.161832
  28  0.145456
Done.

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

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  1.318e-03  1.499e-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:  8.332e-01  1.455e-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:  8.580e-01  1.618e-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: 5.47e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.30e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/273302/likelihoodResults_465868801_466128001_4FGL_J2221.9-3504_daily_bin874.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) = 7812.67880135
delta logL = 5.45696821064e-11

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7812.67880135
delta logL = 7.18500814401e-11

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13177E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6768       1.0000          .0000       10.000    
     3 'Normalizat'    .85797       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83323       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=   7812.679     FROM MIGRAD    STATUS=CONVERGED     67 CALLS      251 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10287E-02    1.3057        .76745E-01** at limit **
   2  Index         2.6100        6.3618        .50000        .12573E-04
   3  Normalizat    .85797        .24908E-02    .44362E-01   -.32630E-03
   4  Prefactor     .83323        .23116E-02    .44148E-01   -.34830E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00102867
  Index      = 2.60999
  Normalizat = 0.857968
  Prefactor  = 0.833229
 **********
 **   18 **HESSE 
 **********

 FCN=   7812.679     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      290 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10287E-02    3.9987        .46304E-01   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6100        6.2854        .50000       -.49838    
   3  Normalizat    .85797        .31480E-02    .23091E-03   -.97953    
   4  Prefactor     .83323        .29218E-02    .21589E-03   -.98515    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.75066e-08
Minuit parameter uncertainties:
  1  0.121884
  2  31.7538
  3  0.00314804
  4  0.00292178
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/273302': 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) = 7812.6788006
delta logL = 7.50734216126e-07

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  1.029e-03  1.219e-01  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  2.610e+00  3.175e+01  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:  8.332e-01  2.922e-03  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:  8.580e-01  3.148e-03  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/273302/cmap_HighResolution_465868801_466128001_4FGL_J2221.9-3504_daily_bin874.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.30e-03', job_status='DONE', photon_flux_upper_limit='5.47e-08', time_completed='2021-09-28 10:12:02.201768', job_id='273302', GAL2='0.83', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1632849122.2', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='7.51e-07', ts2='0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='874' AND source_name='4FGL J2221.9-3504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:12:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 273302: <4FGL_J2221.9-3504_daily_bin874> in cluster <slac> Done

Job <4FGL_J2221.9-3504_daily_bin874> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep 28 09:55:38 2021
Job was executed on host(s) <bullet0205>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:55:40 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:55:40 2021
Terminated at Tue Sep 28 10:12:03 2021
Results reported at Tue Sep 28 10:12:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.9-3504_daily_bin874 335.497 -35.0712 465868801 466128001 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 :                                   850.00 sec.
    Max Memory :                                 1249 MB
    Average Memory :                             297.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   982 sec.
    Turnaround time :                            985 sec.

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

