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


Performing analysis on: 4FGL_J1616.6+4630_daily_bin1769
RA = 244.16, Dec = 46.5099
tmin = 697852801, tmax = 698112001
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='438492', job_status='RUN', time_executed='2023-02-15 01:02:22.412002', time_epoch_executed='1676451742.41' WHERE source_name='4FGL J1616.6+4630' and cadence='daily' and bin_id='1769'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/438492

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/438492/ft1_4FGL_J1616.6+4630_daily_bin1769.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/438492/ft2_4FGL_J1616.6+4630_daily_bin1769.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/438492/ft1_4FGL_J1616.6+4630_daily_bin1769.fits outfile=/scratch/kocevski/438492/ft1_filteredMKT_4FGL_J1616.6+4630_daily_bin1769.fits ra=244.16 dec=46.5099 rad=12.0 tmin=697852801.0 tmax=698112001.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.37
user 4.13
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/438492/ft2_4FGL_J1616.6+4630_daily_bin1769.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/438492/ft1_filteredMKT_4FGL_J1616.6+4630_daily_bin1769.fits evtable="EVENTS" outfile="/scratch/kocevski/438492/ft1_filtered_4FGL_J1616.6+4630_daily_bin1769.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 596

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/438492/ft1_filtered_4FGL_J1616.6+4630_daily_bin1769.fits" evtable="EVENTS" scfile=/scratch/kocevski/438492/ft2_4FGL_J1616.6+4630_daily_bin1769.fits sctable="SC_DATA" outfile=/scratch/kocevski/438492/ltcube_697852801_698112001_4FGL_J1616.6+4630_daily_bin1769.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/438492/ft2_4FGL_J1616.6+4630_daily_bin1769.fits
.....................!
real 11.71
user 11.34
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/438492/ft1_filtered_4FGL_J1616.6+4630_daily_bin1769.fits evtable="EVENTS" scfile=/scratch/kocevski/438492/ft2_4FGL_J1616.6+4630_daily_bin1769.fits sctable="SC_DATA" expcube=/scratch/kocevski/438492/ltcube_697852801_698112001_4FGL_J1616.6+4630_daily_bin1769.fits outfile=/scratch/kocevski/438492/expmap_697852801_698112001_4FGL_J1616.6+4630_daily_bin1769.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/438492/ltcube_697852801_698112001_4FGL_J1616.6+4630_daily_bin1769.fits
.....................!
real 189.79
user 184.79
sys 4.30

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/438492/ft1_filtered_4FGL_J1616.6+4630_daily_bin1769.fits scfile=/scratch/kocevski/438492/ft2_4FGL_J1616.6+4630_daily_bin1769.fits outfile=/scratch/kocevski/438492/cmap_697852801_698112001_4FGL_J1616.6+4630_daily_bin1769.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.55
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/438492/ft1_filtered_4FGL_J1616.6+4630_daily_bin1769.fits scfile=/scratch/kocevski/438492/ft2_4FGL_J1616.6+4630_daily_bin1769.fits outfile=/scratch/kocevski/438492/cmap_HighResolution_697852801_698112001_4FGL_J1616.6+4630_daily_bin1769.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.55
user 0.36
sys 0.18

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/438492/ft1_filtered_4FGL_J1616.6+4630_daily_bin1769.fits', '/scratch/kocevski/438492/ft2_4FGL_J1616.6+4630_daily_bin1769.fits', expMap='/scratch/kocevski/438492/expmap_697852801_698112001_4FGL_J1616.6+4630_daily_bin1769.fits', expCube='/scratch/kocevski/438492/ltcube_697852801_698112001_4FGL_J1616.6+4630_daily_bin1769.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/438492/Model_4FGL_J1616.6+4630_daily_bin1769.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/438492/ft1_filtered_4FGL_J1616.6+4630_daily_bin1769.fits
Spacecraft file(s): /scratch/kocevski/438492/ft2_4FGL_J1616.6+4630_daily_bin1769.fits
Exposure map: /scratch/kocevski/438492/expmap_697852801_698112001_4FGL_J1616.6+4630_daily_bin1769.fits
Exposure cube: /scratch/kocevski/438492/ltcube_697852801_698112001_4FGL_J1616.6+4630_daily_bin1769.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/438492/Model_4FGL_J1616.6+4630_daily_bin1769.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) = 6408.93641863

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .14883E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    .12744E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    .34365E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    20.535       1.0000          .0000       .10000E+07
     5 'norm      '    .18956E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .23770E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .20176E-02   1.0000          .0000       .10000E+07
     8 'norm      '    .28452E-05   1.0000          .0000       .10000E+07
     9 'Prefactor '    .11893       1.0000          .0000       .10000E+07
    10 'Prefactor '    .14269E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    30.622       1.0000          .0000       .10000E+07
    12 'Prefactor '    1.5857       1.0000          .0000       .10000E+07
    13 'Prefactor '    .11063E-06   1.0000          .0000       .10000E+07
    14 'norm      '    .24487E-02   1.0000          .0000       .10000E+07
    15 'norm      '    .33680       1.0000          .0000       .10000E+07
    16 'norm      '    .41352E-01   1.0000          .0000       .10000E+07
    17 'Prefactor '    4.9814       1.0000          .0000       .10000E+07
    18 'Prefactor '    3.4095       1.0000          .0000       .10000E+07
    19 'Prefactor '    .83312       1.0000          .0000       .10000E+07
    20 'norm      '    .15398E-02   1.0000          .0000       .10000E+07
    21 'Prefactor '    .16505E-04   1.0000          .0000       .10000E+07
    22 'Prefactor '    1.0790       1.0000          .0000       .10000E+07
    23 'Prefactor '    .94595       1.0000          .0000       .10000E+07
    24 'Prefactor '    .10061E-04   1.0000          .0000       .10000E+07
    25 'Prefactor '    2.0835       1.0000          .0000       .10000E+07
    26 'norm      '    6.6915       1.0000          .0000       .10000E+07
    27 'norm      '    .15543E-08   1.0000          .0000       .10000E+07
    28 'Prefactor '    .27518E-02   1.0000          .0000       .10000E+07
    29 'norm      '    .36954E-06   1.0000          .0000       .10000E+07
    30 'Normalizat'    1.0345       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0214       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=   6408.934     FROM MIGRAD    STATUS=CONVERGED    178 CALLS     3111 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        1.0427        .26100E-08** at limit **
   2  Prefactor      .0000        3.3823       -.17306E-07** at limit **
   3  Prefactor     .83267E-09    11.367        .97134E-06** at limit **
   4  Prefactor     20.516        2.4323        .25812E-07    .23390E-01
   5  norm          .16653E-09    4.5636       -.31403E-06** at limit **
   6  Prefactor     .28921E-07    3.4737        .66948E-07** at limit **
   7  Prefactor     .17042E-07    6.4129        .48397E-06** at limit **
   8  norm          .82157E-08    3.2358       -.40453E-06** at limit **
   9  Prefactor     .73108E-07    1.4150       -.83855E-07** at limit **
  10  Prefactor      .0000        4.3963        .34160E-06** at limit **
  11  Prefactor     30.765        8.0529        .22784E-06   -.42400E-01
  12  Prefactor     1.6134        7.0520       -.56199E-06   -.15560E-02
  13  Prefactor     .11102E-09    .66117       -.27433E-08** at limit **
  14  norm          .18763E-07    4.8457       -.56651E-06** at limit **
  15  norm          .33692        .13418       -.65268E-08    .15929E-01
  16  norm          .55511E-10    28.385        .32296E-06** at limit **
  17  Prefactor     4.9494        3.1865        .22538E-06   -.84942E-02
  18  Prefactor     3.4380        4.0011        .33792E-07    .66801E-03
  19  Prefactor     .83765        .49555        .45854E-07   -.70848E-03
  20  norm          .53402E-07    3.9205       -.15296E-06** at limit **
  21  Prefactor     .49960E-09    1.6488       -.72147E-08** at limit **
  22  Prefactor     1.0796        .80366       -.11169E-07   -.16601E-01
  23  Prefactor     .94563        1.1461       -.22706E-06    .20133E-01
  24  Prefactor     .55511E-10    1.1035       -.30273E-08** at limit **
  25  Prefactor     2.0822        5.7709       -.15221E-05   -.60823E-02
  26  norm          6.6926        2.1400       -.56858E-08    .31923E-02
  27  norm          .55511E-10    .68089        .39149E-08** at limit **
  28  Prefactor     .61617E-08    22.986       -.35042E-06** at limit **
  29  norm           .0000        .20641        .14582E-08** at limit **
  30  Normalizat    1.0343        .22400        .11596E-05    .21451E-03
  31  Prefactor     1.0215        .21444        .14879E-05   -.70019E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 0
  Prefactor  = 8.32667e-10
  Prefactor  = 20.516
  norm       = 1.66533e-10
  Prefactor  = 2.89213e-08
  Prefactor  = 1.70419e-08
  norm       = 8.21565e-09
  Prefactor  = 7.31082e-08
  Prefactor  = 0
  Prefactor  = 30.7646
  Prefactor  = 1.61343
  Prefactor  = 1.11022e-10
  norm       = 1.87628e-08
  norm       = 0.336924
  norm       = 5.55112e-11
  Prefactor  = 4.94942
  Prefactor  = 3.43804
  Prefactor  = 0.837648
  norm       = 5.34017e-08
  Prefactor  = 4.996e-10
  Prefactor  = 1.07959
  Prefactor  = 0.945631
  Prefactor  = 5.55112e-11
  Prefactor  = 2.08215
  norm       = 6.69257
  norm       = 5.55112e-11
  Prefactor  = 6.16174e-09
  norm       = 0
  Normalizat = 1.03425
  Prefactor  = 1.02152
 **********
 **   18 **HESSE 
 **********

 FCN=   6408.934     FROM HESSE     STATUS=OK           692 CALLS     3803 TOTAL
                     EDM=   .15E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        1.0438        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        3.4249        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .83267E-09    13.699        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     20.516        12.017        .22074E-03   -1.5617    
   5  norm          .16653E-09    4.6612        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .28921E-07    9.3203        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .17042E-07    9.0349        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .82157E-08    11.957        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .73108E-07    35.134        .13446E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        4.4642        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     30.765        25.612        .18074E-03   -1.5597    
  12  Prefactor     1.6134        7.1518        .84269E-03   -1.5683    
  13  Prefactor     .11102E-09    .66128        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .18763E-07    10.819        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .33692        .15147        .39630E-03   -1.5696    
  16  norm          .55511E-10    10.177        .92953E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.9494        23.730        .45035E-03   -1.5663    
  18  Prefactor     3.4380        4.1589        .54762E-03   -1.5671    
  19  Prefactor     .83765        11.092        .50498E-03   -1.5690    
  20  norm          .53402E-07    12.120        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .49960E-09    .62547        .27705E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.0796        .98701        .11607E-02   -1.5729    
  23  Prefactor     .94563        3.5171        .42633E-03   -1.5689    
  24  Prefactor     .55511E-10    1.0984        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     2.0822        6.2364        .71508E-03   -1.5679    
  26  norm          6.6926        2.1374        .38767E-03   -1.5656    
  27  norm          .55511E-10    .66333        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .61617E-08    24.373        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm           .0000        .20460        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.0343        .19612        .41743E-01   -.91892    
  31  Prefactor     1.0215        .18163        .42002E-01   -.92016    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49019e-06
Minuit parameter uncertainties:
  1  1.04942e-05
  2  2.65617e-06
  3  0.000215326
  4  12.0171
  5  5.76997e-05
  6  0.00103861
  7  0.000785139
  8  0.000626762
  9  0.00320596
  10  7.33114e-07
  11  25.6118
  12  6.79379
  13  1.50238e-05
  14  0.000901181
  15  0.151468
  16  3.67471e-05
  17  21.6748
  18  4.1589
  19  6.09619
  20  0.00160897
  21  3.48889e-05
  22  0.987012
  23  3.51712
  24  1.5714e-05
  25  6.23643
  26  2.13742
  27  1.41225e-05
  28  0.000773801
  29  8.09542e-07
  30  0.196256
  31  0.181742
Done.

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

Extracting fit parameters...

4FGL J1616.6+4630
   Spectrum: PowerLaw
300    Prefactor:  3.076e+01  2.561e+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.022e+00  1.817e-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:  1.034e+00  1.963e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.95
Ra Dec: 244.160 46.510
Photon Index (Fixed Index): 2.60 +/- 0.00
Photon Flux (Fixed Index): 4.99e-08 +/- 4.15e-08
Energy Flux (Fixed Index): 1.31e-05 +/- 1.09e-05

TS (Fixed Index): 1.95
Ra Dec: 244.160 46.510
Photon Flux Upper Limit: 1.33e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.04e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/438492/likelihoodResults_697852801_698112001_4FGL_J1616.6+4630_daily_bin1769.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): 0
logL (Free Index) = 6408.66676892
delta logL = 0.267627159279

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6408.64742824
delta logL = 0.286967838962

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.241       1.0000          .0000       .10000E+07
     2 'Index     '    3.3787       1.0000          .0000       10.000    
     3 'Normalizat'    1.0052       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0452       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=   6408.647     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      355 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.257        287.44        .11942E-04    .67591E-04
   2  Index         3.3782        6.6890        .52233E-02    .22693E-04
   3  Normalizat    1.0047        .22375        .25350E-03   -.14737E-03
   4  Prefactor     1.0457        .22693        .24465E-03    .18554E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.2574
  Index      = 3.37823
  Normalizat = 1.00467
  Prefactor  = 1.04571
 **********
 **   18 **HESSE 
 **********

 FCN=   6408.647     FROM HESSE     STATUS=OK            25 CALLS      380 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.257        27.153        .47769E-06   -1.5641    
   2  Index         3.3782        1.3694        .20893E-03   -.33033    
   3  Normalizat    1.0047        .22258        .10140E-04   -.92874    
   4  Prefactor     1.0457        .21626        .48929E-04   -.91221    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.51586e-10
Minuit parameter uncertainties:
  1  27.1534
  2  1.38926
  3  0.222788
  4  0.216438
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/438492': 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) = 6408.64742535
delta logL = 0.28697073199

Extracting fit parameters...

4FGL J1616.6+4630
   Spectrum: PowerLaw
300    Prefactor:  1.126e+01  2.715e+01  0.000e+00  1.000e+06 ( 1.000e-13)
301        Index:  3.378e+00  1.389e+00  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.046e+00  2.164e-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:  1.005e+00  2.228e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.58
Ra Dec: 244.160 46.510
Photon Index (Free Index): 3.38 +/- 1.39
Photon Flux (Free Index): 6.50e-08 +/- 4.76e-08
Energy Flux (Free Index): 1.12e-05 +/- 8.98e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/438492/cmap_HighResolution_697852801_698112001_4FGL_J1616.6+4630_daily_bin1769.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.04e-02', comment='SUCCESS', photon_flux='4.99e-08', energy_flux2='1.12e-05', photon_flux_error='4.15e-08', dlogl='2.87e-01', energy_flux='1.31e-05', photon_flux2='6.50e-08', job_status='DONE', time_completed='2023-02-15 01:16:50.953239', photon_index_error2='1.39', photon_index2='3.38', ts='1.95', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='1.33e-07', energy_flux_error2='8.98e-06', EG='1.03', time_epoch_completed='1676452610.95', return_code='0', job_id='438492', GAL2='1.05', EG2='1.00', return_code2='0', energy_flux_error='1.09e-05', photon_flux_error2='4.76e-08', ts2='2.58', photon_index='2.60' WHERE bin_id='1769' AND source_name='4FGL J1616.6+4630' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Feb 15 01:16:50 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0194>
Subject: Job 438492: <4FGL_J1616.6+4630_daily_bin1769> in cluster <slac> Done

Job <4FGL_J1616.6+4630_daily_bin1769> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Feb 15 01:00:30 2023
Job was executed on host(s) <bullet0194>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Feb 15 01:00:30 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Feb 15 01:00:30 2023
Terminated at Wed Feb 15 01:16:51 2023
Results reported at Wed Feb 15 01:16:51 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1616.6+4630_daily_bin1769 244.16 46.5099 697852801 698112001 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 :                                   869.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             304.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   981 sec.
    Turnaround time :                            981 sec.

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

