aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 231 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 7644
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1616.6+4630_daily_bin1747
RA = 244.16, Dec = 46.5099
tmin = 692150401, tmax = 692409601
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='806258', job_status='RUN', time_executed='2022-12-11 01:14:27.360363', time_epoch_executed='1670750067.36' WHERE source_name='4FGL J1616.6+4630' and cadence='daily' and bin_id='1747'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/806258

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/806258/ft1_4FGL_J1616.6+4630_daily_bin1747.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/806258/ft2_4FGL_J1616.6+4630_daily_bin1747.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/806258/ft1_4FGL_J1616.6+4630_daily_bin1747.fits outfile=/scratch/kocevski/806258/ft1_filteredMKT_4FGL_J1616.6+4630_daily_bin1747.fits ra=244.16 dec=46.5099 rad=12.0 tmin=692150401.0 tmax=692409601.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 4.02
user 3.75
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/806258/ft2_4FGL_J1616.6+4630_daily_bin1747.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/806258/ft1_filteredMKT_4FGL_J1616.6+4630_daily_bin1747.fits evtable="EVENTS" outfile="/scratch/kocevski/806258/ft1_filtered_4FGL_J1616.6+4630_daily_bin1747.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.51
user 0.32
sys 0.17

Number of photons that the gtmktime cut: 658

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/806258/ft1_filtered_4FGL_J1616.6+4630_daily_bin1747.fits" evtable="EVENTS" scfile=/scratch/kocevski/806258/ft2_4FGL_J1616.6+4630_daily_bin1747.fits sctable="SC_DATA" outfile=/scratch/kocevski/806258/ltcube_692150401_692409601_4FGL_J1616.6+4630_daily_bin1747.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/806258/ft2_4FGL_J1616.6+4630_daily_bin1747.fits
.....................!
real 12.02
user 11.60
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/806258/ft1_filtered_4FGL_J1616.6+4630_daily_bin1747.fits evtable="EVENTS" scfile=/scratch/kocevski/806258/ft2_4FGL_J1616.6+4630_daily_bin1747.fits sctable="SC_DATA" expcube=/scratch/kocevski/806258/ltcube_692150401_692409601_4FGL_J1616.6+4630_daily_bin1747.fits outfile=/scratch/kocevski/806258/expmap_692150401_692409601_4FGL_J1616.6+4630_daily_bin1747.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/806258/ltcube_692150401_692409601_4FGL_J1616.6+4630_daily_bin1747.fits
.....................!
real 193.13
user 187.87
sys 4.84

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/806258/ft1_filtered_4FGL_J1616.6+4630_daily_bin1747.fits scfile=/scratch/kocevski/806258/ft2_4FGL_J1616.6+4630_daily_bin1747.fits outfile=/scratch/kocevski/806258/cmap_692150401_692409601_4FGL_J1616.6+4630_daily_bin1747.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.56
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/806258/ft1_filtered_4FGL_J1616.6+4630_daily_bin1747.fits scfile=/scratch/kocevski/806258/ft2_4FGL_J1616.6+4630_daily_bin1747.fits outfile=/scratch/kocevski/806258/cmap_HighResolution_692150401_692409601_4FGL_J1616.6+4630_daily_bin1747.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.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/806258/ft1_filtered_4FGL_J1616.6+4630_daily_bin1747.fits', '/scratch/kocevski/806258/ft2_4FGL_J1616.6+4630_daily_bin1747.fits', expMap='/scratch/kocevski/806258/expmap_692150401_692409601_4FGL_J1616.6+4630_daily_bin1747.fits', expCube='/scratch/kocevski/806258/ltcube_692150401_692409601_4FGL_J1616.6+4630_daily_bin1747.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/806258/Model_4FGL_J1616.6+4630_daily_bin1747.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  0.000e+00  1.000e+06 ( 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/806258/ft1_filtered_4FGL_J1616.6+4630_daily_bin1747.fits
Spacecraft file(s): /scratch/kocevski/806258/ft2_4FGL_J1616.6+4630_daily_bin1747.fits
Exposure map: /scratch/kocevski/806258/expmap_692150401_692409601_4FGL_J1616.6+4630_daily_bin1747.fits
Exposure cube: /scratch/kocevski/806258/ltcube_692150401_692409601_4FGL_J1616.6+4630_daily_bin1747.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/806258/Model_4FGL_J1616.6+4630_daily_bin1747.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) = 7173.51843572

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.3378       1.0000          .0000       .10000E+07
     2 'Prefactor '    7.1236       1.0000          .0000       .10000E+07
     3 'Prefactor '    .99932E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    .49309E-03   1.0000          .0000       .10000E+07
     5 'norm      '    .10218E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    .10846E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .22978       1.0000          .0000       .10000E+07
     8 'norm      '    4.4132       1.0000          .0000       .10000E+07
     9 'Prefactor '    .64307E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    2.2782       1.0000          .0000       .10000E+07
    11 'Prefactor '    20.321       1.0000          .0000       .10000E+07
    12 'Prefactor '    .67294E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .13854E-03   1.0000          .0000       .10000E+07
    14 'norm      '    .76223E-01   1.0000          .0000       .10000E+07
    15 'norm      '    .44467       1.0000          .0000       .10000E+07
    16 'norm      '    .10148E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    .10595E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .61279       1.0000          .0000       .10000E+07
    19 'Prefactor '    .27595E-06   1.0000          .0000       .10000E+07
    20 'norm      '    .14384E-04   1.0000          .0000       .10000E+07
    21 'Prefactor '    1.4073       1.0000          .0000       .10000E+07
    22 'Prefactor '    1.7653       1.0000          .0000       .10000E+07
    23 'Prefactor '    .11512E-04   1.0000          .0000       .10000E+07
    24 'Prefactor '    2.6754       1.0000          .0000       .10000E+07
    25 'Prefactor '    .47679       1.0000          .0000       .10000E+07
    26 'norm      '    4.8521       1.0000          .0000       .10000E+07
    27 'norm      '     .0000       1.0000          .0000       .10000E+07
    28 'Prefactor '    2.0271       1.0000          .0000       .10000E+07
    29 'norm      '     .0000       1.0000          .0000       .10000E+07
    30 'Normalizat'    .73686       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.1824       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=   7173.332     FROM MIGRAD    STATUS=CONVERGED    160 CALLS     2360 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.3353        3.1108       -.16497E-06   -.14879E-02
   2  Prefactor     7.1353        7.3819        .87511E-06    .99900E-02
   3  Prefactor     .36143E-06    3.4197       -.65496E-06** at limit **
   4  Prefactor     .68834E-08    3.7781       -.79245E-06** at limit **
   5  norm          .74107E-07    2.9854        .16101E-05** at limit **
   6  Prefactor     .16936E-06    3.4536        .17491E-05** at limit **
   7  Prefactor     .22945        1.5921        .90034E-06** at limit **
   8  norm          4.3857        5.8760        .15028E-05    .31999E-03
   9  Prefactor     .21816E-07    .88312        .31067E-06** at limit **
  10  Prefactor     2.1933        5.2671        .18050E-05    .14387E-02
  11  Prefactor     20.748        2.2996       -.14531E-06    .92533E-02
  12  Prefactor     .23526E-06    1.6298       -.24845E-06** at limit **
  13  Prefactor     .13323E-08    3.3046       -.45324E-06** at limit **
  14  norm          .70237E-02    12.073       -.57061E-05** at limit **
  15  norm          .44462        .14873       -.74054E-07    .37131E-02
  16  norm          .22482E-07    4.4763       -.23018E-05** at limit **
  17  Prefactor     .14766E-06    13.685        .40942E-05** at limit **
  18  Prefactor     .60950        3.5146        .82745E-06   -.80760E-03
  19  Prefactor     .88818E-09    3.6279        .54465E-06** at limit **
  20  norm          .24558E-06    22.043       -.23330E-05** at limit **
  21  Prefactor     1.4068        1.8321       -.74074E-06   -.71849E-02
  22  Prefactor     1.7656        1.8276        .92446E-06   -.72856E-02
  23  Prefactor     .10381E-07    1.3768       -.81962E-06** at limit **
  24  Prefactor     2.6763        2.2806       -.30857E-06    .49960E-02
  25  Prefactor     .49753        .71136       -.21544E-06   -.14229E-02
  26  norm          4.8515        1.8461       -.22673E-06   -.19343E-02
  27  norm           .0000        .21415       -.55434E-06** at limit **
  28  Prefactor     1.9603        5.3447       -.78342E-07    .11780E-02
  29  norm           .0000        .43814       -.19155E-06** at limit **
  30  Normalizat    .73672        .18940       -.97595E-05    .12387E-03
  31  Prefactor     1.1828        .18848        .68748E-05    .16233E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.33526
  Prefactor  = 7.13527
  Prefactor  = 3.61433e-07
  Prefactor  = 6.88338e-09
  norm       = 7.41074e-08
  Prefactor  = 1.69365e-07
  Prefactor  = 0.229448
  norm       = 4.38568
  Prefactor  = 2.18159e-08
  Prefactor  = 2.19331
  Prefactor  = 20.7481
  Prefactor  = 2.35256e-07
  Prefactor  = 1.33227e-09
  norm       = 0.00702365
  norm       = 0.444616
  norm       = 2.2482e-08
  Prefactor  = 1.4766e-07
  Prefactor  = 0.609498
  Prefactor  = 8.88178e-10
  norm       = 2.45581e-07
  Prefactor  = 1.40683
  Prefactor  = 1.76561
  Prefactor  = 1.03806e-08
  Prefactor  = 2.67632
  Prefactor  = 0.497535
  norm       = 4.85148
  norm       = 0
  Prefactor  = 1.96033
  norm       = 0
  Normalizat = 0.736724
  Prefactor  = 1.18278
 **********
 **   18 **HESSE 
 **********

 FCN=   7173.332     FROM HESSE     STATUS=OK           700 CALLS     3060 TOTAL
                     EDM=   .36E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.3353        3.1313        .67033E-03   -1.5677    
   2  Prefactor     7.1353        7.4000        .37560E-03   -1.5655    
   3  Prefactor     .36143E-06    8.4779        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .68834E-08    8.9957        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .74107E-07    6.5733        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .16936E-06    6.1999        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .22945        4.4051        .88566E-02   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.3857        7.1440        .47915E-03   -1.5666    
   9  Prefactor     .21816E-07    44.997        .15010E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.1933        6.3250        .68000E-03   -1.5678    
  11  Prefactor     20.748        18.928        .22190E-03   -1.5617    
  12  Prefactor     .23526E-06    10.559        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .13323E-08    3.3016        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .70237E-02    10.503        .98934E-02   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .44462        .14930        .39324E-03   -1.5695    
  16  norm          .22482E-07    4.5534        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .14766E-06    14.381        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .60950        3.5519        .68090E-03   -1.5692    
  19  Prefactor     .88818E-09    3.6760        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .24558E-06    22.228        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.4068        1.7402        .91332E-04   -1.5684    
  22  Prefactor     1.7656        1.7618        .78810E-03   -1.5681    
  23  Prefactor     .10381E-07    2.0123        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     2.6763        2.2964        .62276E-03   -1.5675    
  25  Prefactor     .49753        12.552        .81079E-03   -1.5694    
  26  norm          4.8515        1.8481        .45644E-03   -1.5664    
  27  norm           .0000        .21306        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     1.9603        5.3766        .72641E-03   -1.5680    
  29  norm           .0000        .41867        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .73672        .16004        .62034E-01   -1.0246    
  31  Prefactor     1.1828        .15760        .50578E-01   -.86863    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.63084e-06
Minuit parameter uncertainties:
  1  3.1313
  2  7.39999
  3  0.00350088
  4  0.000496738
  5  0.00139604
  6  0.00204928
  7  2.01072
  8  7.14405
  9  0.00198244
  10  6.32497
  11  18.9277
  12  0.00315215
  13  0.000132824
  14  0.543202
  15  0.149302
  16  0.000639618
  17  0.00291449
  18  2.94269
  19  0.000113528
  20  0.00467263
  21  1.74017
  22  1.76179
  23  0.000288974
  24  2.29638
  25  4.99794
  26  1.84809
  27  5.98279e-07
  28  5.37664
  29  3.99956e-06
  30  0.160146
  31  0.157664
Done.

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

Extracting fit parameters...

4FGL J1616.6+4630
   Spectrum: PowerLaw
300    Prefactor:  2.075e+01  1.893e+01  0.000e+00  1.000e+06 ( 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.183e+00  1.577e-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:  7.367e-01  1.601e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.28
Ra Dec: 244.160 46.510
Photon Index (Fixed Index): 2.60 +/- 0.00
Photon Flux (Fixed Index): 3.37e-08 +/- 3.07e-08
Energy Flux (Fixed Index): 8.83e-06 +/- 8.05e-06

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7172.19646328
delta logL = 1.13523695078

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7172.18635038
delta logL = 1.14534984657

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.374       1.0000          .0000       .10000E+07
     2 'Index     '    1.6220       1.0000          .0000       10.000    
     3 'Normalizat'    .76230       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1698       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.

 FCN=   7172.186     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      209 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 17.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.359        24.707       -.15465E-05   -.17218E-02
   2  Index         1.6217        .64733       -.74043E-04    .89675E-04
   3  Normalizat    .76252        .15569        .38416E-05    .12918E-02
   4  Prefactor     1.1699        .15784       -.81148E-06    .12606E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.3586
  Index      = 1.62165
  Normalizat = 0.762522
  Prefactor  = 1.16987
 **********
 **   18 **HESSE 
 **********

 FCN=   7172.186     FROM HESSE     STATUS=OK            27 CALLS      236 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.359        24.080        .84586E-05   -1.5613    
   2  Index         1.6217        .63077        .94609E-02   -.74187    
   3  Normalizat    .76252        .18457        .26983E-03   -1.0147    
   4  Prefactor     1.1699        .18709        .22468E-03   -.87264    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.93378e-09
Minuit parameter uncertainties:
  1  24.0803
  2  0.633889
  3  0.184717
  4  0.187195
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/806258': 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): 0
logL (Free Index) = 7172.18634622
delta logL = 1.14535400767

Extracting fit parameters...

4FGL J1616.6+4630
   Spectrum: PowerLaw
300    Prefactor:  2.236e+01  2.408e+01  0.000e+00  1.000e+06 ( 1.000e-13)
301        Index:  1.622e+00  6.339e-01  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.170e+00  1.872e-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:  7.625e-01  1.847e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.56
Ra Dec: 244.160 46.510
Photon Index (Free Index): 1.62 +/- 0.63
Photon Flux (Free Index): 1.14e-08 +/- 1.53e-08
Energy Flux (Free Index): 2.39e-05 +/- 3.32e-05

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/806258/cmap_HighResolution_692150401_692409601_4FGL_J1616.6+4630_daily_bin1747.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.37e-08', energy_flux2='2.39e-05', photon_flux_error='3.07e-08', dlogl='1.15e+00', energy_flux='8.83e-06', photon_flux2='1.14e-08', job_status='DONE', time_completed='2022-12-11 01:26:53.600065', photon_index_error2='0.63', photon_index2='1.62', ts='4.28', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', energy_flux_error2='3.32e-05', EG='0.74', time_epoch_completed='1670750813.6', return_code='0', job_id='806258', GAL2='1.17', EG2='0.76', return_code2='0', energy_flux_error='8.05e-06', photon_flux_error2='1.53e-08', ts2='6.56', photon_index='2.60' WHERE bin_id='1747' AND source_name='4FGL J1616.6+4630' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Dec 11 01:26:53 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 806258: <4FGL_J1616.6+4630_daily_bin1747> in cluster <slac> Done

Job <4FGL_J1616.6+4630_daily_bin1747> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Dec 11 01:10:25 2022
Job was executed on host(s) <bullet0073>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Dec 11 01:10:26 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Dec 11 01:10:26 2022
Terminated at Sun Dec 11 01:26:54 2022
Results reported at Sun Dec 11 01:26:54 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1616.6+4630_daily_bin1747 244.16 46.5099 692150401 692409601 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 :                                   744.49 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             278.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   987 sec.
    Turnaround time :                            989 sec.

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

