/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 16 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 = 7393
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1616.6+4630_daily_bin75
RA = 244.16, Dec = 46.5099
tmin = 258768001, tmax = 259027201
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='210881', job_status='RUN', time_executed='2021-09-13 18:58:41.167841', time_epoch_executed='1631584721.17' WHERE source_name='4FGL J1616.6+4630' and cadence='daily' and bin_id='75'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/210881

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

Retrieving the FT1 file...

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

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

Retrieving 31 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/210881/ft1_4FGL_J1616.6+4630_daily_bin75.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/210881/ft2_4FGL_J1616.6+4630_daily_bin75.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/210881/ft1_4FGL_J1616.6+4630_daily_bin75.fits outfile=/scratch/kocevski/210881/ft1_filteredMKT_4FGL_J1616.6+4630_daily_bin75.fits ra=244.16 dec=46.5099 rad=12.0 tmin=258768001.0 tmax=259027201.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 1.12
user 0.94
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/210881/ft2_4FGL_J1616.6+4630_daily_bin75.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/210881/ft2_4FGL_J1616.6+4630_daily_bin75.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/210881/ft1_filteredMKT_4FGL_J1616.6+4630_daily_bin75.fits evtable="EVENTS" outfile="/scratch/kocevski/210881/ft1_filtered_4FGL_J1616.6+4630_daily_bin75.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/210881/ft1_filtered_4FGL_J1616.6+4630_daily_bin75.fits" evtable="EVENTS" scfile=/scratch/kocevski/210881/ft2_4FGL_J1616.6+4630_daily_bin75.fits sctable="SC_DATA" outfile=/scratch/kocevski/210881/ltcube_258768001_259027201_4FGL_J1616.6+4630_daily_bin75.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/210881/ft2_4FGL_J1616.6+4630_daily_bin75.fits
.....................!
real 10.64
user 10.31
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/210881/ft1_filtered_4FGL_J1616.6+4630_daily_bin75.fits evtable="EVENTS" scfile=/scratch/kocevski/210881/ft2_4FGL_J1616.6+4630_daily_bin75.fits sctable="SC_DATA" expcube=/scratch/kocevski/210881/ltcube_258768001_259027201_4FGL_J1616.6+4630_daily_bin75.fits outfile=/scratch/kocevski/210881/expmap_258768001_259027201_4FGL_J1616.6+4630_daily_bin75.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/210881/ltcube_258768001_259027201_4FGL_J1616.6+4630_daily_bin75.fits
.....................!
real 192.06
user 186.36
sys 5.16

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 212 point sources and 0 extended sources

Setting source of interest to:
4FGL J1616.6+4630 @ 244.16 46.5099

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/210881/ft1_filtered_4FGL_J1616.6+4630_daily_bin75.fits scfile=/scratch/kocevski/210881/ft2_4FGL_J1616.6+4630_daily_bin75.fits outfile=/scratch/kocevski/210881/cmap_258768001_259027201_4FGL_J1616.6+4630_daily_bin75.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=244.16 yref=46.5099 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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/210881/ft1_filtered_4FGL_J1616.6+4630_daily_bin75.fits scfile=/scratch/kocevski/210881/ft2_4FGL_J1616.6+4630_daily_bin75.fits outfile=/scratch/kocevski/210881/cmap_HighResolution_258768001_259027201_4FGL_J1616.6+4630_daily_bin75.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=244.16 yref=46.5099 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/210881/ft1_filtered_4FGL_J1616.6+4630_daily_bin75.fits evtable="EVENTS" scfile=/scratch/kocevski/210881/ft2_4FGL_J1616.6+4630_daily_bin75.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/210881/Model_4FGL_J1616.6+4630_daily_bin75.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/210881/ft1_filtered_4FGL_J1616.6+4630_daily_bin75.fits.....................!
real 39.40
user 38.09
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/210881/ft1_filtered_4FGL_J1616.6+4630_daily_bin75.fits', '/scratch/kocevski/210881/ft2_4FGL_J1616.6+4630_daily_bin75.fits', expMap='/scratch/kocevski/210881/expmap_258768001_259027201_4FGL_J1616.6+4630_daily_bin75.fits', expCube='/scratch/kocevski/210881/ltcube_258768001_259027201_4FGL_J1616.6+4630_daily_bin75.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/210881/Model_4FGL_J1616.6+4630_daily_bin75.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1616.6+4630'

4FGL J1616.6+4630
   Spectrum: PowerLaw
300    Prefactor:  3.213e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.600e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
302        Scale:  8.481e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/210881/ft1_filtered_4FGL_J1616.6+4630_daily_bin75.fits
Spacecraft file(s): /scratch/kocevski/210881/ft2_4FGL_J1616.6+4630_daily_bin75.fits
Exposure map: /scratch/kocevski/210881/expmap_258768001_259027201_4FGL_J1616.6+4630_daily_bin75.fits
Exposure cube: /scratch/kocevski/210881/ltcube_258768001_259027201_4FGL_J1616.6+4630_daily_bin75.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/210881/Model_4FGL_J1616.6+4630_daily_bin75.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) = 4567.19152125

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .13945E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    24.577       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .22428E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .30747E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .14908E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.951       1.0000         .10000E-03   10000.    
     8 'norm      '    8.7398       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .50631E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.5165       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .18117E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .36583E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .78905E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    13.299       1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.5214       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .21038E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.893       1.0000         .10000E-03   10000.    
    20 'norm      '    .10215E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.3195       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.2360       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .31729E-01   1.0000         .10000E-03   10000.    
    26 'norm      '    6.2002       1.0000         .10000E-03   10000.    
    27 'norm      '    .95499       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    1.1493       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .47774       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.3531       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6800E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4567.152     FROM MIGRAD    STATUS=CONVERGED    179 CALLS     2985 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.5631       -.11435E-06** at limit **
   2  Prefactor     .10000E-03    3.7811       -.58746E-07** at limit **
   3  Prefactor     24.715        20.060        .13933E-05   -.12809E-02
   4  Prefactor     .10002E-03    7.7444       -.23916E-07** at limit **
   5  norm          .10000E-03    9.8377        .22053E-05** at limit **
   6  Prefactor     .10009E-03    6.8848        .66373E-07** at limit **
   7  Prefactor     23.911        14.996       -.51400E-06    .83357E-03
   8  norm          8.8073        11.011        .67543E-06    .72834E-03
   9  Prefactor     .10035E-03    29.254       -.88345E-06** at limit **
  10  Prefactor     3.5327        6.5332       -.42915E-06   -.23614E-02
  11  Prefactor     .10003E-03    18.544        .27109E-05** at limit **
  12  Prefactor     .10000E-03    2.2249        .31406E-06** at limit **
  13  Prefactor     .10000E-03    1.5556        .20673E-07** at limit **
  14  norm          .10000E-03    7.4275       -.96918E-06** at limit **
  15  norm          .78756E-01    .12483       -.24173E-07   -.10854E-03
  16  norm          13.369        13.124       -.70862E-06    .96221E-03
  17  Prefactor     8.5868        14.287        .11709E-05    .19538E-02
  18  Prefactor     .10017E-03    5.3486        .92300E-06** at limit **
  19  Prefactor     11.863        5.5293        .42524E-06   -.98262E-03
  20  norm          .10000E-03    18.025       -.15489E-05** at limit **
  21  Prefactor     2.3242        1.4172       -.67270E-07    .13967E-05
  22  Prefactor     .10000E-03    11.895        .20747E-05** at limit **
  23  Prefactor     3.2390        3.2930        .73918E-06    .19195E-03
  24  Prefactor     .10000E-03    1.4162       -.38935E-06** at limit **
  25  Prefactor     .10085E-03    1355.4       -.51435E-04** at limit **
  26  norm          6.1998        2.4593       -.11626E-06   -.23619E-04
  27  norm          .95481        1.0165       -.37808E-07    .67563E-04
  28  Prefactor     .10000E-03    3.6196        .67048E-06** at limit **
  29  norm          1.1481        .94622       -.68120E-07    .53060E-04
  30  Normalizat    .47738        .24950       -.50987E-05    .89297E-04
  31  Prefactor     1.3535        .24931        .55411E-05    .17829E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.7155
  Prefactor  = 0.000100016
  norm       = 0.0001
  Prefactor  = 0.000100087
  Prefactor  = 23.9112
  norm       = 8.80734
  Prefactor  = 0.000100355
  Prefactor  = 3.53273
  Prefactor  = 0.000100027
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.078756
  norm       = 13.3691
  Prefactor  = 8.58677
  Prefactor  = 0.000100174
  Prefactor  = 11.8629
  norm       = 0.000100003
  Prefactor  = 2.32421
  Prefactor  = 0.0001
  Prefactor  = 3.23896
  Prefactor  = 0.0001
  Prefactor  = 0.000100846
  norm       = 6.19981
  norm       = 0.954808
  Prefactor  = 0.0001
  norm       = 1.14808
  Normalizat = 0.477376
  Prefactor  = 1.35352
 **********
 **   18 **HESSE 
 **********

 FCN=   4567.152     FROM HESSE     STATUS=OK           702 CALLS     3687 TOTAL
                     EDM=   .69E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.5541        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.7788        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     24.715        22.797        .20201E-02   -1.4713    
   4  Prefactor     .10002E-03    7.9798        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    9.7876        .10690E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10009E-03    8.3563        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     23.911        17.136        .20462E-02   -1.4730    
   8  norm          8.8073        13.908        .33896E-02   -1.5114    
   9  Prefactor     .10035E-03    37.379        .10576E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.5327        7.1259        .53896E-02   -1.5332    
  11  Prefactor     .10003E-03    25.319        .10158E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.2230        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.5320        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    7.4256        .10652E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .78756E-01    .15426        .61216E-02   -1.5652    
  16  norm          13.369        13.325        .27459E-02   -1.4977    
  17  Prefactor     8.5868        25.264        .34331E-02   -1.5122    
  18  Prefactor     .10017E-03    2.5009        .55086E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     11.863        10.205        .29041E-02   -1.5019    
  20  norm          .10000E-03    18.278        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.3242        1.7648        .67334E-02   -1.5403    
  22  Prefactor     .10000E-03    .90346        .43283E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.2390        3.3580        .56293E-02   -1.5348    
  24  Prefactor     .10000E-03    1.3958        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10085E-03    8.1412        .91805E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          6.1998        2.4705        .40305E-02   -1.5210    
  27  norm          .95481        1.0752        .13006E-01   -1.5513    
  28  Prefactor     .10000E-03    3.5919        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          1.1481        .96070        .10798E-01   -1.5494    
  30  Normalizat    .47738        .22259        .75814E-01   -1.1348    
  31  Prefactor     1.3535        .21417        .48027E-01   -.81729    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.86572e-08
Minuit parameter uncertainties:
  1  3.18907e-07
  2  1.65871e-06
  3  22.8055
  4  0.000722797
  5  8.05562e-05
  6  0.00170941
  7  17.1396
  8  13.9128
  9  0.00728649
  10  7.1276
  11  0.00165828
  12  2.30337e-06
  13  2.8419e-07
  14  8.63616e-06
  15  0.15426
  16  13.3285
  17  25.2952
  18  0.00131793
  19  10.2065
  20  0.000477747
  21  1.76481
  22  1.73441e-05
  23  3.35819
  24  2.00917e-06
  25  0.0052482
  26  2.4705
  27  1.0752
  28  2.91384e-06
  29  0.960718
  30  0.223006
  31  0.214306
Done.

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

Extracting fit parameters...

4FGL J1616.6+4630
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  1.658e-03  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.600e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
302        Scale:  8.481e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
677    Prefactor:  1.354e+00  2.143e-01  0.000e+00  1.000e+01 ( 1.000e+00)
678        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
679        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
676   Normalization:  4.774e-01  2.230e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 244.160 46.510
Photon Flux Upper Limit: 8.56e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.70e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/210881/likelihoodResults_258768001_259027201_4FGL_J1616.6+4630_daily_bin75.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) = 4567.15176073
delta logL = -0.000187909095075

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4567.15157403
delta logL = -1.20898130263e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11025E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.0355       1.0000          .0000       10.000    
     3 'Normalizat'    .47737       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3535       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6800E+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=   4567.152     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      295 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10540E-03    .36141        .78649E-01** at limit **
   2  Index         2.9096        6.4544        .50000        .12865E-04
   3  Normalizat    .47738        .87913E-03    .33571E-03    .44837E-04
   4  Prefactor     1.3535        .90357E-03    .21230E-03    .73321E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000105402
  Index      = 2.90955
  Normalizat = 0.477376
  Prefactor  = 1.35352
 **********
 **   18 **HESSE 
 **********

 FCN=   4567.152     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      326 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10540E-03    62.595        .43172E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.9096        5.3584        .50000       -.43134    
   3  Normalizat    .47738        .84816E-02    .13428E-04   -1.1348    
   4  Prefactor     1.3535        .87175E-02    .42460E-04   -.81729    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.68831e-09
Minuit parameter uncertainties:
  1  0.0368158
  2  323.525
  3  0.00848165
  4  0.00871746
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/210881': 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) = 4567.15157347
delta logL = -6.46717126074e-07

Extracting fit parameters...

4FGL J1616.6+4630
   Spectrum: PowerLaw
300    Prefactor:  1.054e-04  3.682e-02  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.910e+00  3.235e+02  0.000e+00  1.000e+01 (-1.000e+00)
302        Scale:  8.481e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
677    Prefactor:  1.354e+00  8.717e-03  0.000e+00  1.000e+01 ( 1.000e+00)
678        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
679        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
676   Normalization:  4.774e-01  8.482e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 244.160 46.510

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/210881/cmap_HighResolution_258768001_259027201_4FGL_J1616.6+4630_daily_bin75.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.70e-03', job_status='DONE', photon_flux_upper_limit='8.56e-08', time_completed='2021-09-13 19:11:04.381037', job_id='210881', GAL2='1.35', fit_tolerance='1e-08', EG2='0.48', EG='0.48', time_epoch_completed='1631585464.38', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.35', dlogl='-6.47e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='75' AND source_name='4FGL J1616.6+4630' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 19:11:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0286>
Subject: Job 210881: <4FGL_J1616.6+4630_daily_bin75> in cluster <slac> Done

Job <4FGL_J1616.6+4630_daily_bin75> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Sep 13 18:55:40 2021
Job was executed on host(s) <bullet0286>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 13 18:58:17 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep 13 18:58:17 2021
Terminated at Mon Sep 13 19:11:05 2021
Results reported at Mon Sep 13 19:11:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1616.6+4630_daily_bin75 244.16 46.5099 258768001 259027201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1616.6+4630 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   742.20 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             331.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   767 sec.
    Turnaround time :                            925 sec.

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

