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


Performing analysis on: 4FGL_J2221.9-3504_daily_bin244
RA = 335.497, Dec = -35.0712
tmin = 302572801, tmax = 302832001
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='270344', job_status='RUN', time_executed='2021-09-28 09:48:52.014759', time_epoch_executed='1632847732.01' WHERE source_name='4FGL J2221.9-3504' and cadence='daily' and bin_id='244'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/270344

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/270344/ft1_4FGL_J2221.9-3504_daily_bin244.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/270344/ft2_4FGL_J2221.9-3504_daily_bin244.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/270344/ft1_4FGL_J2221.9-3504_daily_bin244.fits outfile=/scratch/kocevski/270344/ft1_filteredMKT_4FGL_J2221.9-3504_daily_bin244.fits ra=335.497 dec=-35.0712 rad=12.0 tmin=302572801.0 tmax=302832001.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.48
user 3.24
sys 0.22

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/270344/ft1_filtered_4FGL_J2221.9-3504_daily_bin244.fits" evtable="EVENTS" scfile=/scratch/kocevski/270344/ft2_4FGL_J2221.9-3504_daily_bin244.fits sctable="SC_DATA" outfile=/scratch/kocevski/270344/ltcube_302572801_302832001_4FGL_J2221.9-3504_daily_bin244.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/270344/ft2_4FGL_J2221.9-3504_daily_bin244.fits
.....................!
real 11.95
user 11.56
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/270344/ft1_filtered_4FGL_J2221.9-3504_daily_bin244.fits evtable="EVENTS" scfile=/scratch/kocevski/270344/ft2_4FGL_J2221.9-3504_daily_bin244.fits sctable="SC_DATA" expcube=/scratch/kocevski/270344/ltcube_302572801_302832001_4FGL_J2221.9-3504_daily_bin244.fits outfile=/scratch/kocevski/270344/expmap_302572801_302832001_4FGL_J2221.9-3504_daily_bin244.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/270344/ltcube_302572801_302832001_4FGL_J2221.9-3504_daily_bin244.fits
.....................!
real 191.59
user 185.95
sys 5.29

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/270344/ft1_filtered_4FGL_J2221.9-3504_daily_bin244.fits scfile=/scratch/kocevski/270344/ft2_4FGL_J2221.9-3504_daily_bin244.fits outfile=/scratch/kocevski/270344/cmap_302572801_302832001_4FGL_J2221.9-3504_daily_bin244.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/270344/ft1_filtered_4FGL_J2221.9-3504_daily_bin244.fits scfile=/scratch/kocevski/270344/ft2_4FGL_J2221.9-3504_daily_bin244.fits outfile=/scratch/kocevski/270344/cmap_HighResolution_302572801_302832001_4FGL_J2221.9-3504_daily_bin244.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.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/270344/ft1_filtered_4FGL_J2221.9-3504_daily_bin244.fits evtable="EVENTS" scfile=/scratch/kocevski/270344/ft2_4FGL_J2221.9-3504_daily_bin244.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/270344/Model_4FGL_J2221.9-3504_daily_bin244.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/270344/ft1_filtered_4FGL_J2221.9-3504_daily_bin244.fits.....................!
real 39.70
user 38.32
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.5356       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11506       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.5703       1.0000         .10000E-03   10000.    
     4 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .14055E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    69.154       1.0000         .10000E-03   10000.    
     7 'norm      '    9.2344       1.0000         .10000E-03   10000.    
     8 'norm      '    1.0872       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.6676       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    24.897       1.0000         .10000E-03   10000.    
    17 'norm      '    4.0137       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10152E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    26.167       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .58907E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.3257       1.0000         .10000E-03   10000.    
    25 'Prefactor '    16.709       1.0000         .10000E-03   10000.    
    26 'Prefactor '    22.197       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.4592       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .62397       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=   4319.171     FROM MIGRAD    STATUS=CONVERGED    684 CALLS     3552 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.5357        6.5244        .13229E-06   -.58712E-04
   2  Prefactor     .12023        9.5567        .11475E-05   -.26849E-03
   3  Prefactor     5.5686        7.8800       -.41720E-07   -.81922E-04
   4  norm          .10000E-03    7.7372        .57200E-06** at limit **
   5  Prefactor     .10000E-03    17.490       -.20431E-05** at limit **
   6  Prefactor     69.102        77.919       -.80870E-05   -.37952E-03
   7  norm          9.2333        7.2427        .17278E-05   -.45949E-03
   8  norm          1.0871        .50900       -.28775E-07    .73625E-04
   9  Prefactor     .10000E-03    5.1363       -.72989E-07** at limit **
  10  Prefactor     .10000E-03    7.6014        .93947E-07** at limit **
  11  Prefactor     .10000E-03    3.7406       -.14740E-07** at limit **
  12  Prefactor     6.6650        7.1874        .33108E-05   -.83958E-03
  13  norm          .10000E-03    16.076        .84348E-06** at limit **
  14  Prefactor     .10000E-03    30.422       -.13058E-06** at limit **
  15  Prefactor     .10000E-03    16.759        .35034E-07** at limit **
  16  Prefactor     24.885        37.412       -.22487E-05   -.12895E-03
  17  norm          4.0141        4.2589        .17594E-06    .61981E-04
  18  Prefactor     .10000E-03    103.31        .67729E-06** at limit **
  19  Prefactor     26.164        18.777        .23128E-06    .65791E-04
  20  Prefactor     .10000E-03    5.8499       -.27300E-07** at limit **
  21  norm          .10000E-03    3.8134       -.22694E-06** at limit **
  22  Prefactor     .10000E-03    8.7514       -.13939E-06** at limit **
  23  Prefactor     .10000E-03    7.3953       -.32542E-06** at limit **
  24  norm          1.3263        .84123       -.33378E-07    .29627E-03
  25  Prefactor     16.706        42.879       -.13653E-06   -.21666E-04
  26  Prefactor     22.196        17.485        .11371E-07    .45409E-04
  27  Normalizat    1.4595        .24793       -.86906E-07   -.93330E-04
  28  Prefactor     .62373        .19141       -.17773E-05   -.35068E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.53567
  Prefactor  = 0.120234
  Prefactor  = 5.56857
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 69.1017
  norm       = 9.23335
  norm       = 1.08708
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.66497
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.8851
  norm       = 4.01413
  Prefactor  = 0.0001
  Prefactor  = 26.1644
  Prefactor  = 0.0001
  norm       = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.3263
  Prefactor  = 16.7056
  Prefactor  = 22.1962
  Normalizat = 1.4595
  Prefactor  = 0.623729
 **********
 **   18 **HESSE 
 **********

 FCN=   4319.171     FROM HESSE     STATUS=OK           523 CALLS     4075 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.5357        6.5341        .14609E-03   -1.5159    
   2  Prefactor     .12023        12.481        .57914E-01   -1.5639    
   3  Prefactor     5.5686        7.8776        .17022E-03   -1.5236    
   4  norm          .10000E-03    7.8203        .17857E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    17.403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     69.102        83.098        .48269E-04   -1.4043    
   7  norm          9.2333        7.2618        .65943E-03   -1.5100    
   8  norm          1.0871        .50957        .30026E-04   -1.5499    
   9  Prefactor     .10000E-03    5.1389        .14547E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.6072        .17699E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.7468        .12413E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.6650        7.5291        .77700E-03   -1.5192    
  13  norm          .10000E-03    16.128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    30.434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    16.795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     24.885        38.106        .80282E-04   -1.4710    
  17  norm          4.0141        4.2099        .13144E-03   -1.5307    
  18  Prefactor     .10000E-03    103.43        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     26.164        18.906        .78313E-04   -1.4684    
  20  Prefactor     .10000E-03    5.8918        .15521E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    14.867        .23649E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    8.7575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    7.4246        .17442E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.3263        .81382        .44044E-04   -1.5478    
  25  Prefactor     16.706        42.909        .97983E-04   -1.4890    
  26  Prefactor     22.196        17.474        .85017E-04   -1.4765    
  27  Normalizat    1.4595        .29801        .24480E-03   -.78923    
  28  Prefactor     .62373        .22326        .29458E-03   -1.0660    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.4655e-09
Minuit parameter uncertainties:
  1  6.53473
  2  2.44948
  3  7.87906
  4  5.67643e-05
  5  1.38319e-05
  6  83.2384
  7  7.26251
  8  0.509572
  9  8.96438e-06
  10  2.00095e-05
  11  5.75879e-06
  12  7.53017
  13  0.00016655
  14  8.57708e-06
  15  1.80567e-05
  16  38.143
  17  4.21023
  18  0.000282348
  19  18.91
  20  4.84124e-07
  21  0.000528713
  22  1.91021e-05
  23  4.89025e-05
  24  0.813827
  25  42.9886
  26  17.4779
  27  0.298363
  28  0.223574
Done.

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

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  1.000e-04  5.759e-06  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  2.677e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
255        Scale:  5.158e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  6.237e-01  2.236e-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.460e+00  2.984e-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: 8.88e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.98e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/270344/likelihoodResults_302572801_302832001_4FGL_J2221.9-3504_daily_bin244.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) = 4319.17215988
delta logL = -0.00124719699852

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4319.17091262
delta logL = 6.23012965661e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6632       1.0000          .0000       10.000    
     3 'Normalizat'    1.4596       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62370       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=   4319.171     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      260 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    74.090        .12511E-01** at limit **
   2  Index         1.9438        7.6216        .50000       -.11794E-06
   3  Normalizat    1.4595        .23983E-01    .24480E-03    .15288E-04
   4  Prefactor     .62373        .19809E-01    .29458E-03    .28173E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.94381
  Normalizat = 1.4595
  Prefactor  = 0.623728
 **********
 **   18 **HESSE 
 **********

 FCN=   4319.171     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      289 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    537.83        .14047E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9438        9.0127        .50000       -.65762    
   3  Normalizat    1.4595        .75188E-01    .48961E-04   -.78923    
   4  Prefactor     .62373        .62100E-01    .11783E-04   -1.0660    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.35633e-09
Minuit parameter uncertainties:
  1  3.61876e-05
  2  1109.62
  3  0.0751937
  4  0.0621068
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/270344': 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) = 4319.17090974
delta logL = 2.94683286484e-06

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  1.000e-04  3.619e-05  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  1.944e+00  1.110e+03  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:  6.237e-01  6.211e-02  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.460e+00  7.519e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 335.497 -35.071

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/270344/cmap_HighResolution_302572801_302832001_4FGL_J2221.9-3504_daily_bin244.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.98e-03', job_status='DONE', photon_flux_upper_limit='8.88e-08', time_completed='2021-09-28 09:59:15.253528', job_id='270344', GAL2='0.62', fit_tolerance='1e-08', EG2='1.46', EG='1.46', time_epoch_completed='1632848355.25', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.62', dlogl='2.95e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='244' AND source_name='4FGL J2221.9-3504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:59:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0141>
Subject: Job 270344: <4FGL_J2221.9-3504_daily_bin244> in cluster <slac> Done

Job <4FGL_J2221.9-3504_daily_bin244> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 09:45:41 2021
Job was executed on host(s) <bullet0141>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:45:43 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:43 2021
Terminated at Tue Sep 28 09:59:15 2021
Results reported at Tue Sep 28 09:59:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.9-3504_daily_bin244 335.497 -35.0712 302572801 302832001 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 :                                   623.35 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             231.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   812 sec.
    Turnaround time :                            814 sec.

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

