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


Performing analysis on: 4FGL_J1616.6+4630_daily_bin1762
RA = 244.16, Dec = 46.5099
tmin = 696038401, tmax = 696297601
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='113411', job_status='RUN', time_executed='2023-01-25 01:11:58.304389', time_epoch_executed='1674637918.3' WHERE source_name='4FGL J1616.6+4630' and cadence='daily' and bin_id='1762'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/113411

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/113411/ft1_4FGL_J1616.6+4630_daily_bin1762.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/113411/ft2_4FGL_J1616.6+4630_daily_bin1762.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/113411/ft1_4FGL_J1616.6+4630_daily_bin1762.fits outfile=/scratch/kocevski/113411/ft1_filteredMKT_4FGL_J1616.6+4630_daily_bin1762.fits ra=244.16 dec=46.5099 rad=12.0 tmin=696038401.0 tmax=696297601.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.72
user 3.44
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/113411/ft2_4FGL_J1616.6+4630_daily_bin1762.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/113411/ft1_filteredMKT_4FGL_J1616.6+4630_daily_bin1762.fits evtable="EVENTS" outfile="/scratch/kocevski/113411/ft1_filtered_4FGL_J1616.6+4630_daily_bin1762.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.53
user 0.34
sys 0.15

Number of photons that the gtmktime cut: 586

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/113411/ft1_filtered_4FGL_J1616.6+4630_daily_bin1762.fits" evtable="EVENTS" scfile=/scratch/kocevski/113411/ft2_4FGL_J1616.6+4630_daily_bin1762.fits sctable="SC_DATA" outfile=/scratch/kocevski/113411/ltcube_696038401_696297601_4FGL_J1616.6+4630_daily_bin1762.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/113411/ft2_4FGL_J1616.6+4630_daily_bin1762.fits
.....................!
real 13.71
user 13.18
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/113411/ft1_filtered_4FGL_J1616.6+4630_daily_bin1762.fits evtable="EVENTS" scfile=/scratch/kocevski/113411/ft2_4FGL_J1616.6+4630_daily_bin1762.fits sctable="SC_DATA" expcube=/scratch/kocevski/113411/ltcube_696038401_696297601_4FGL_J1616.6+4630_daily_bin1762.fits outfile=/scratch/kocevski/113411/expmap_696038401_696297601_4FGL_J1616.6+4630_daily_bin1762.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/113411/ltcube_696038401_696297601_4FGL_J1616.6+4630_daily_bin1762.fits
.....................!
real 194.61
user 187.82
sys 5.61

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/113411/ft1_filtered_4FGL_J1616.6+4630_daily_bin1762.fits scfile=/scratch/kocevski/113411/ft2_4FGL_J1616.6+4630_daily_bin1762.fits outfile=/scratch/kocevski/113411/cmap_696038401_696297601_4FGL_J1616.6+4630_daily_bin1762.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.57
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/113411/ft1_filtered_4FGL_J1616.6+4630_daily_bin1762.fits scfile=/scratch/kocevski/113411/ft2_4FGL_J1616.6+4630_daily_bin1762.fits outfile=/scratch/kocevski/113411/cmap_HighResolution_696038401_696297601_4FGL_J1616.6+4630_daily_bin1762.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.57
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.2305       1.0000          .0000       .10000E+07
     2 'Prefactor '    .41044E-05   1.0000          .0000       .10000E+07
     3 'Prefactor '    .58228E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .80748E-05   1.0000          .0000       .10000E+07
     5 'norm      '    28.498       1.0000          .0000       .10000E+07
     6 'Prefactor '    .51954E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    4.5215       1.0000          .0000       .10000E+07
     8 'norm      '    .39466E-05   1.0000          .0000       .10000E+07
     9 'Prefactor '    2.9998       1.0000          .0000       .10000E+07
    10 'Prefactor '    9.1923       1.0000          .0000       .10000E+07
    11 'Prefactor '    21.854       1.0000          .0000       .10000E+07
    12 'Prefactor '    4.1801       1.0000          .0000       .10000E+07
    13 'Prefactor '    .64015E-05   1.0000          .0000       .10000E+07
    14 'norm      '    7.9964       1.0000          .0000       .10000E+07
    15 'norm      '    .18319       1.0000          .0000       .10000E+07
    16 'norm      '    24.768       1.0000          .0000       .10000E+07
    17 'Prefactor '    4.0695       1.0000          .0000       .10000E+07
    18 'Prefactor '    .67946E-07   1.0000          .0000       .10000E+07
    19 'Prefactor '    4.3259       1.0000          .0000       .10000E+07
    20 'norm      '    .75910       1.0000          .0000       .10000E+07
    21 'Prefactor '    .52126       1.0000          .0000       .10000E+07
    22 'Prefactor '    .23476E-06   1.0000          .0000       .10000E+07
    23 'Prefactor '    .65313E-04   1.0000          .0000       .10000E+07
    24 'Prefactor '    2.1516       1.0000          .0000       .10000E+07
    25 'Prefactor '    .69581E-03   1.0000          .0000       .10000E+07
    26 'norm      '    5.4399       1.0000          .0000       .10000E+07
    27 'norm      '    .99152       1.0000          .0000       .10000E+07
    28 'Prefactor '    .65831E-05   1.0000          .0000       .10000E+07
    29 'norm      '    .16653E-09   1.0000          .0000       .10000E+07
    30 'Normalizat'    1.0773       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .76429       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=   6446.688     FROM MIGRAD    STATUS=CONVERGED    212 CALLS     2389 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.2339        4.7547       -.35981E-06    .18922E-02
   2  Prefactor     .28172E-06    20.686        .78095E-06** at limit **
   3  Prefactor     .75440E-07    58.777        .20836E-05** at limit **
   4  Prefactor     .53557E-06    15.485        .52143E-06** at limit **
   5  norm          28.414        1.6202        .39820E-07   -.31519E-02
   6  Prefactor     .17208E-08    13.758       -.61981E-06** at limit **
   7  Prefactor     4.4749        4.6042        .14347E-07   -.92385E-03
   8  norm          .49960E-09    2.1010        .10129E-07** at limit **
   9  Prefactor     2.5347        14.938        .40728E-07    .30046E-01
  10  Prefactor     9.0953        6.3783        .17173E-07    .79391E-02
  11  Prefactor     22.541        8.4878        .91187E-07   -.99300E-01
  12  Prefactor     4.1961        5.4816        .16750E-07    .45827E-03
  13  Prefactor     .16653E-09    1.6504       -.59017E-07** at limit **
  14  norm          7.9774        14.126       -.84160E-06   -.42372E-01
  15  norm          .18325        .11536        .14732E-07** at limit **
  16  norm          24.916        1.3860       -.16017E-07    .15062E-01
  17  Prefactor     4.0920        4.6049        .14092E-07    .15961E-01
  18  Prefactor     .11102E-08    2.7616       -.86389E-07** at limit **
  19  Prefactor     4.3283        6.3624        .28735E-08    .48631E-04
  20  norm          .75964E-05    225.73        .17066E-05** at limit **
  21  Prefactor     .52372        .67156        .28795E-06    .17835E-02
  22  Prefactor      .0000        .70068       -.67344E-07** at limit **
  23  Prefactor     .84376E-05    2.5273        .20542E-06** at limit **
  24  Prefactor     2.1593        2.4064        .56100E-06    .34887E-02
  25  Prefactor     .17764E-07    8.4148       -.54790E-06** at limit **
  26  norm          5.4414        1.8958       -.55867E-08    .36981E-02
  27  norm          .99088        .80598       -.11385E-08    .10445E-02
  28  Prefactor     .11102E-08    2.6358       -.22848E-06** at limit **
  29  norm           .0000        .26065        .26646E-07** at limit **
  30  Normalizat    1.0769        .20988       -.65711E-05    .15640E-03
  31  Prefactor     .76465        .19710        .11871E-04    .82687E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.23392
  Prefactor  = 2.81719e-07
  Prefactor  = 7.54397e-08
  Prefactor  = 5.35572e-07
  norm       = 28.4136
  Prefactor  = 1.72085e-09
  Prefactor  = 4.47485
  norm       = 4.996e-10
  Prefactor  = 2.53474
  Prefactor  = 9.09534
  Prefactor  = 22.5413
  Prefactor  = 4.19611
  Prefactor  = 1.66533e-10
  norm       = 7.97744
  norm       = 0.183254
  norm       = 24.9164
  Prefactor  = 4.09203
  Prefactor  = 1.11022e-09
  Prefactor  = 4.32829
  norm       = 7.59642e-06
  Prefactor  = 0.523719
  Prefactor  = 0
  Prefactor  = 8.43758e-06
  Prefactor  = 2.15927
  Prefactor  = 1.77636e-08
  norm       = 5.44141
  norm       = 0.990877
  Prefactor  = 1.11022e-09
  norm       = 0
  Normalizat = 1.07693
  Prefactor  = 0.764646
 **********
 **   18 **HESSE 
 **********

 FCN=   6446.688     FROM HESSE     STATUS=OK           690 CALLS     3079 TOTAL
                     EDM=   .18E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.2339        4.7658        .34922E-03   -1.5651    
   2  Prefactor     .28172E-06    22.183        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .75440E-07    59.221        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .53557E-06    16.963        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          28.414        19.114        .18735E-03   -1.5601    
   6  Prefactor     .17208E-08    14.024        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.4749        4.6073        .47322E-03   -1.5666    
   8  norm          .49960E-09    2.1016        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.5347        377.06        .58581E-03   -1.5676    
  10  Prefactor     9.0953        7.1652        .33032E-03   -1.5648    
  11  Prefactor     22.541        24.080        .21397E-03   -1.5613    
  12  Prefactor     4.1961        5.6680        .49270E-03   -1.5667    
  13  Prefactor     .16653E-09    1.6478        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          7.9774        14.629        .35433E-03   -1.5651    
  15  norm          .18325        .12853        .46186E-03   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          24.916        17.460        .20098E-03   -1.5608    
  17  Prefactor     4.0920        20.038        .49956E-03   -1.5668    
  18  Prefactor     .11102E-08    2.7517        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.3283        6.3683        .48409E-03   -1.5666    
  20  norm          .75964E-05    232.46        .56034E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .52372        .70018        .76599E-03   -1.5693    
  22  Prefactor      .0000        .70002        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .84376E-05    1.9176        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     2.1593        2.4305        .70215E-03   -1.5679    
  25  Prefactor     .17764E-07    8.4461        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          5.4414        1.8976        .43059E-03   -1.5661    
  27  norm          .99088        .82692        .43465E-03   -1.5688    
  28  Prefactor     .11102E-08    2.6354        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm           .0000        .25766        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.0769        .18162        .39009E-01   -.90496    
  31  Prefactor     .76465        .16867        .43251E-01   -1.0104    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.8057e-06
Minuit parameter uncertainties:
  1  4.76584
  2  0.00499988
  3  0.00422805
  4  0.00602825
  5  19.1137
  6  0.000312785
  7  4.60726
  8  6.59869e-05
  9  61.8346
  10  7.16525
  11  24.0798
  12  5.66804
  13  3.04247e-05
  14  14.6292
  15  0.128532
  16  17.4598
  17  18.1104
  18  0.000110176
  19  6.36834
  20  0.0840471
  21  0.700184
  22  1.5184e-06
  23  0.00804486
  24  2.43051
  25  0.000774559
  26  1.89759
  27  0.826925
  28  0.00010864
  29  1.32768e-06
  30  0.181724
  31  0.16878
Done.

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

Extracting fit parameters...

4FGL J1616.6+4630
   Spectrum: PowerLaw
300    Prefactor:  2.254e+01  2.408e+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:  7.646e-01  1.688e-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.077e+00  1.817e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.80
Ra Dec: 244.160 46.510
Photon Index (Fixed Index): 2.60 +/- 0.00
Photon Flux (Fixed Index): 3.66e-08 +/- 3.90e-08
Energy Flux (Fixed Index): 9.59e-06 +/- 1.02e-05

TS (Fixed Index): 1.80
Ra Dec: 244.160 46.510
Photon Flux Upper Limit: 1.16e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.08e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/113411/likelihoodResults_696038401_696297601_4FGL_J1616.6+4630_daily_bin1762.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) = 6445.32101147
delta logL = 1.36650693602

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6445.31157118
delta logL = 1.37594722776

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.773       1.0000          .0000       .10000E+07
     2 'Index     '    1.5233       1.0000          .0000       10.000    
     3 'Normalizat'    1.1068       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74767       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=   6445.312     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      202 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 14.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.747        31.162       -.22946E-05   -.14829E-02
   2  Index         1.5229        .62070       -.95206E-04    .56308E-04
   3  Normalizat    1.1070        .17282        .25985E-05    .85375E-03
   4  Prefactor     .74764        .16663       -.51715E-06    .60352E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.7466
  Index      = 1.52288
  Normalizat = 1.10702
  Prefactor  = 0.747641
 **********
 **   18 **HESSE 
 **********

 FCN=   6445.312     FROM HESSE     STATUS=OK            27 CALLS      229 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.747        30.043        .80383E-05   -1.5608    
   2  Index         1.5229        .59864        .86415E-02   -.76901    
   3  Normalizat    1.1070        .20109        .22980E-03   -.89527    
   4  Prefactor     .74764        .19388        .26354E-03   -1.0169    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.11739e-10
Minuit parameter uncertainties:
  1  30.043
  2  0.601449
  3  0.201234
  4  0.19406
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/113411': 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) = 6445.3115696
delta logL = 1.3759488008

Extracting fit parameters...

4FGL J1616.6+4630
   Spectrum: PowerLaw
300    Prefactor:  2.475e+01  3.004e+01  0.000e+00  1.000e+06 ( 1.000e-13)
301        Index:  1.523e+00  6.014e-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:  7.476e-01  1.941e-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.107e+00  2.012e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.55
Ra Dec: 244.160 46.510
Photon Index (Free Index): 1.52 +/- 0.60
Photon Flux (Free Index): 1.19e-08 +/- 1.66e-08
Energy Flux (Free Index): 3.50e-05 +/- 4.70e-05

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/113411/cmap_HighResolution_696038401_696297601_4FGL_J1616.6+4630_daily_bin1762.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.08e-03', comment='SUCCESS', photon_flux='3.66e-08', energy_flux2='3.50e-05', photon_flux_error='3.90e-08', dlogl='1.38e+00', energy_flux='9.59e-06', photon_flux2='1.19e-08', job_status='DONE', time_completed='2023-01-25 01:25:21.642546', photon_index_error2='0.60', photon_index2='1.52', ts='1.80', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', photon_flux_upper_limit='1.16e-07', energy_flux_error2='4.70e-05', EG='1.08', time_epoch_completed='1674638721.64', return_code='0', job_id='113411', GAL2='0.75', EG2='1.11', return_code2='0', energy_flux_error='1.02e-05', photon_flux_error2='1.66e-08', ts2='4.55', photon_index='2.60' WHERE bin_id='1762' AND source_name='4FGL J1616.6+4630' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jan 25 01:25:21 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0122>
Subject: Job 113411: <4FGL_J1616.6+4630_daily_bin1762> in cluster <slac> Done

Job <4FGL_J1616.6+4630_daily_bin1762> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Jan 25 01:10:22 2023
Job was executed on host(s) <bullet0122>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jan 25 01:11:37 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jan 25 01:11:37 2023
Terminated at Wed Jan 25 01:25:22 2023
Results reported at Wed Jan 25 01:25:22 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1616.6+4630_daily_bin1762 244.16 46.5099 696038401 696297601 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 :                                   803.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             312.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   825 sec.
    Turnaround time :                            900 sec.

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

