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


Performing analysis on: 4FGL_J1608.0+4949_daily_bin1776
RA = 242.014, Dec = 49.829
tmin = 699667201, tmax = 699926401
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='837060', job_status='RUN', time_executed='2023-03-08 00:51:04.431502', time_epoch_executed='1678265464.43' WHERE source_name='4FGL J1608.0+4949' and cadence='daily' and bin_id='1776'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/837060

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/837060/ft1_4FGL_J1608.0+4949_daily_bin1776.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/837060/ft2_4FGL_J1608.0+4949_daily_bin1776.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/837060/ft1_4FGL_J1608.0+4949_daily_bin1776.fits outfile=/scratch/kocevski/837060/ft1_filteredMKT_4FGL_J1608.0+4949_daily_bin1776.fits ra=242.014 dec=49.829 rad=12.0 tmin=699667201.0 tmax=699926401.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.90
user 3.68
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/837060/ft2_4FGL_J1608.0+4949_daily_bin1776.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/837060/ft2_4FGL_J1608.0+4949_daily_bin1776.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/837060/ft1_filteredMKT_4FGL_J1608.0+4949_daily_bin1776.fits evtable="EVENTS" outfile="/scratch/kocevski/837060/ft1_filtered_4FGL_J1608.0+4949_daily_bin1776.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.50
user 0.33
sys 0.16

Number of photons that the gtmktime cut: 702

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/837060/ft1_filtered_4FGL_J1608.0+4949_daily_bin1776.fits" evtable="EVENTS" scfile=/scratch/kocevski/837060/ft2_4FGL_J1608.0+4949_daily_bin1776.fits sctable="SC_DATA" outfile=/scratch/kocevski/837060/ltcube_699667201_699926401_4FGL_J1608.0+4949_daily_bin1776.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/837060/ft2_4FGL_J1608.0+4949_daily_bin1776.fits
.....................!
real 11.81
user 11.45
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/837060/ft1_filtered_4FGL_J1608.0+4949_daily_bin1776.fits evtable="EVENTS" scfile=/scratch/kocevski/837060/ft2_4FGL_J1608.0+4949_daily_bin1776.fits sctable="SC_DATA" expcube=/scratch/kocevski/837060/ltcube_699667201_699926401_4FGL_J1608.0+4949_daily_bin1776.fits outfile=/scratch/kocevski/837060/expmap_699667201_699926401_4FGL_J1608.0+4949_daily_bin1776.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/837060/ltcube_699667201_699926401_4FGL_J1608.0+4949_daily_bin1776.fits
.....................!
real 192.29
user 186.88
sys 5.08

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 J1608.0+4949 @ 242.014 49.829

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/837060/ft1_filtered_4FGL_J1608.0+4949_daily_bin1776.fits scfile=/scratch/kocevski/837060/ft2_4FGL_J1608.0+4949_daily_bin1776.fits outfile=/scratch/kocevski/837060/cmap_699667201_699926401_4FGL_J1608.0+4949_daily_bin1776.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=242.014 yref=49.829 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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/837060/ft1_filtered_4FGL_J1608.0+4949_daily_bin1776.fits scfile=/scratch/kocevski/837060/ft2_4FGL_J1608.0+4949_daily_bin1776.fits outfile=/scratch/kocevski/837060/cmap_HighResolution_699667201_699926401_4FGL_J1608.0+4949_daily_bin1776.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=242.014 yref=49.829 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.53
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/837060/ft1_filtered_4FGL_J1608.0+4949_daily_bin1776.fits evtable="EVENTS" scfile=/scratch/kocevski/837060/ft2_4FGL_J1608.0+4949_daily_bin1776.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/837060/Model_4FGL_J1608.0+4949_daily_bin1776.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/837060/ft1_filtered_4FGL_J1608.0+4949_daily_bin1776.fits.....................!
real 58.63
user 57.42
sys 1.09

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/837060/ft1_filtered_4FGL_J1608.0+4949_daily_bin1776.fits', '/scratch/kocevski/837060/ft2_4FGL_J1608.0+4949_daily_bin1776.fits', expMap='/scratch/kocevski/837060/expmap_699667201_699926401_4FGL_J1608.0+4949_daily_bin1776.fits', expCube='/scratch/kocevski/837060/ltcube_699667201_699926401_4FGL_J1608.0+4949_daily_bin1776.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/837060/Model_4FGL_J1608.0+4949_daily_bin1776.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1608.0+4949'

4FGL J1608.0+4949
   Spectrum: PowerLaw
308    Prefactor:  4.577e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
309        Index:  2.267e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
310        Scale:  1.615e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/837060/ft1_filtered_4FGL_J1608.0+4949_daily_bin1776.fits
Spacecraft file(s): /scratch/kocevski/837060/ft2_4FGL_J1608.0+4949_daily_bin1776.fits
Exposure map: /scratch/kocevski/837060/expmap_699667201_699926401_4FGL_J1608.0+4949_daily_bin1776.fits
Exposure cube: /scratch/kocevski/837060/ltcube_699667201_699926401_4FGL_J1608.0+4949_daily_bin1776.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/837060/Model_4FGL_J1608.0+4949_daily_bin1776.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) = 7639.50221577

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.7036       1.0000          .0000       .10000E+07
     2 'Prefactor '    .35084E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    5.2771       1.0000          .0000       .10000E+07
     4 'Prefactor '    .25203E-03   1.0000          .0000       .10000E+07
     5 'norm      '    .33604E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .88468E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    .10269E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .38501E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .19650E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    7.3329       1.0000          .0000       .10000E+07
    11 'norm      '    1.4400       1.0000          .0000       .10000E+07
    12 'Prefactor '    .11841E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    10.756       1.0000          .0000       .10000E+07
    14 'Prefactor '    .28730E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    .35339E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    4.7370       1.0000          .0000       .10000E+07
    17 'Prefactor '    .25868E-07   1.0000          .0000       .10000E+07
    18 'norm      '    16.001       1.0000          .0000       .10000E+07
    19 'norm      '    .18916E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    2.4944       1.0000          .0000       .10000E+07
    21 'Prefactor '    3.7392       1.0000          .0000       .10000E+07
    22 'norm      '    .83275E-01   1.0000          .0000       .10000E+07
    23 'Prefactor '    .52180E-08   1.0000          .0000       .10000E+07
    24 'Prefactor '     .0000       1.0000          .0000       .10000E+07
    25 'Prefactor '    2.8496       1.0000          .0000       .10000E+07
    26 'Prefactor '    .21581E-05   1.0000          .0000       .10000E+07
    27 'Prefactor '    6.3689       1.0000          .0000       .10000E+07
    28 'norm      '    .71528       1.0000          .0000       .10000E+07
    29 'Prefactor '    .66254E-03   1.0000          .0000       .10000E+07
    30 'Normalizat'    1.1605       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .97452       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=   7639.449     FROM MIGRAD    STATUS=CONVERGED    207 CALLS     2359 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.7072        2.1891        .26772E-08    .42150E-03
   2  Prefactor     .38858E-09    8.3331       -.41020E-07** at limit **
   3  Prefactor     5.2564        8.3498       -.25067E-07   -.12794E-01
   4  Prefactor     .11546E-06    20.617        .39604E-07** at limit **
   5  norm           .0000        2.0016       -.79838E-07** at limit **
   6  Prefactor      .0000        2.8252        .51687E-07** at limit **
   7  Prefactor     .24369E-06    5.1226       -.43882E-07** at limit **
   8  Prefactor     .66613E-09    4.8329       -.83963E-07** at limit **
   9  Prefactor     .55511E-10    21.535        .22325E-06** at limit **
  10  Prefactor     7.3846        5.5825        .12361E-08   -.82305E-03
  11  norm          1.4181        4.2835       -.97758E-07   -.74856E-03
  12  Prefactor     .38580E-07    62.687        .77307E-06** at limit **
  13  Prefactor     13.388        52.383       -.10770E-05   -.48825E-02
  14  Prefactor     .72164E-09    3.7343        .56796E-08** at limit **
  15  Prefactor     .87708E-08    10.039       -.21789E-06** at limit **
  16  Prefactor     4.7230        5.9909        .99180E-07   -.38902E-02
  17  Prefactor      .0000        .65214       -.12248E-07** at limit **
  18  norm          15.617        4.8358       -.39722E-07    .85081E-01
  19  norm          .11546E-06    6.8770        .11042E-07** at limit **
  20  Prefactor     2.4964        4.1231       -.15421E-06   -.25837E-02
  21  Prefactor     3.7527        5.5037       -.14385E-07   -.60666E-03
  22  norm          .13063E-05    1.0524        .17010E-07** at limit **
  23  Prefactor      .0000        .37579       -.64075E-07** at limit **
  24  Prefactor      .0000        .37685       -.36212E-07** at limit **
  25  Prefactor     2.8601        3.4570       -.30684E-07    .91108E-03
  26  Prefactor      .0000        1.0195       -.11435E-07** at limit **
  27  Prefactor     6.3844        2.0128        .57776E-08   -.54106E-01
  28  norm          .71503        .63726        .10617E-07    .62142E-03
  29  Prefactor     .13323E-08    4.0804       -.26374E-07** at limit **
  30  Normalizat    1.1598        .20362        .70190E-06   -.43776E-04
  31  Prefactor     .97464        .19635       -.41364E-06   -.45081E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.7072
  Prefactor  = 3.88578e-10
  Prefactor  = 5.25639
  Prefactor  = 1.15463e-07
  norm       = 0
  Prefactor  = 0
  Prefactor  = 2.43694e-07
  Prefactor  = 6.66134e-10
  Prefactor  = 5.55112e-11
  Prefactor  = 7.38464
  norm       = 1.41806
  Prefactor  = 3.85803e-08
  Prefactor  = 13.3882
  Prefactor  = 7.21645e-10
  Prefactor  = 8.77076e-09
  Prefactor  = 4.72299
  Prefactor  = 0
  norm       = 15.6169
  norm       = 1.15463e-07
  Prefactor  = 2.49636
  Prefactor  = 3.75265
  norm       = 1.30629e-06
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 2.86015
  Prefactor  = 0
  Prefactor  = 6.38438
  norm       = 0.715026
  Prefactor  = 1.33227e-09
  Normalizat = 1.15978
  Prefactor  = 0.974637
 **********
 **   18 **HESSE 
 **********

 FCN=   7639.449     FROM HESSE     STATUS=OK           680 CALLS     3039 TOTAL
                     EDM=   .47E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.7072        2.1924        .52451E-03   -1.5669    
   2  Prefactor     .38858E-09    8.3271        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.2564        8.4909        .43730E-03   -1.5662    
   4  Prefactor     .11546E-06    20.899        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm           .0000        1.9965        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        2.8241        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .24369E-06    11.599        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .66613E-09    4.8444        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .55511E-10    20.800        .17060E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.3846        5.6045        .37015E-03   -1.5654    
  11  norm          1.4181        4.3293        .89874E-03   -1.5684    
  12  Prefactor     .38580E-07    62.618        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     13.388        52.536        .30524E-03   -1.5635    
  14  Prefactor     .72164E-09    3.7281        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .87708E-08    10.217        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.7230        6.3490        .46207E-03   -1.5664    
  17  Prefactor      .0000        .65122        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          15.617        22.256        .25012E-03   -1.5629    
  19  norm          .11546E-06    11.900        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.4964        4.1632        .64687E-03   -1.5676    
  21  Prefactor     3.7527        5.5123        .52192E-03   -1.5669    
  22  norm          .13063E-05    49.945        .14402E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor      .0000        .37412        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor      .0000        .37540        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     2.8601        3.5706        .60204E-03   -1.5674    
  26  Prefactor      .0000        1.0174        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     6.3844        9.8402        .39748E-03   -1.5657    
  28  norm          .71503        .64686        .59477E-03   -1.5691    
  29  Prefactor     .13323E-08    4.0948        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.1598        .16960        .54579E-01   -.87855    
  31  Prefactor     .97464        .16501        .45948E-01   -.93580    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.71934e-07
Minuit parameter uncertainties:
  1  2.19242
  2  0.000110614
  3  8.49088
  4  0.00310648
  5  1.04167e-05
  6  5.82973e-06
  7  0.00336251
  8  0.000113359
  9  6.78413e-05
  10  5.60449
  11  4.32931
  12  0.00310896
  13  52.5375
  14  0.000103496
  15  0.000598267
  16  6.34902
  17  1.05619e-06
  18  22.2565
  19  0.0023442
  20  4.16321
  21  5.51228
  22  0.0161547
  23  2.77924e-06
  24  1.67888e-06
  25  3.57061
  26  8.96597e-07
  27  9.84024
  28  0.646864
  29  0.0001467
  30  0.169678
  31  0.165098
Done.

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

Extracting fit parameters...

4FGL J1608.0+4949
   Spectrum: PowerLaw
308    Prefactor:  1.339e+01  5.254e+01  0.000e+00  1.000e+06 ( 1.000e-14)
309        Index:  2.267e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
310        Scale:  1.615e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
677    Prefactor:  9.746e-01  1.651e-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.160e+00  1.697e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.08
Ra Dec: 242.014 49.829
Photon Flux Upper Limit: 6.52e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.99e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/837060/likelihoodResults_699667201_699926401_4FGL_J1608.0+4949_daily_bin1776.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) = 7639.41740121
delta logL = 0.0317062510021

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7639.41404872
delta logL = 0.0350587442927

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.097       1.0000          .0000       .10000E+07
     2 'Index     '    2.6675       1.0000          .0000       10.000    
     3 'Normalizat'    1.1551       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97676       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=   7639.414     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      260 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.095        57.050        .12604E-04   -.15506E-02
   2  Index         2.6676        1.8452        .10724E-01   -.51986E-04
   3  Normalizat    1.1552        .19594        .24175E-03   -.34045E-03
   4  Prefactor     .97671        .19533        .26000E-03   -.22287E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.0954
  Index      = 2.66758
  Normalizat = 1.15518
  Prefactor  = 0.976714
 **********
 **   18 **HESSE 
 **********

 FCN=   7639.414     FROM HESSE     STATUS=OK            25 CALLS      285 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.095        39.042        .50414E-06   -1.5644    
   2  Index         2.6676        1.5175        .42897E-03   -.48531    
   3  Normalizat    1.1552        .19609        .48351E-04   -.87999    
   4  Prefactor     .97671        .19537        .10400E-04   -.93510    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.12972e-10
Minuit parameter uncertainties:
  1  39.0435
  2  1.54899
  3  0.19621
  4  0.195513
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/837060': 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) = 7639.41404867
delta logL = 0.0350587969278

Extracting fit parameters...

4FGL J1608.0+4949
   Spectrum: PowerLaw
308    Prefactor:  1.010e+01  3.904e+01  0.000e+00  1.000e+06 ( 1.000e-14)
309        Index:  2.668e+00  1.549e+00  0.000e+00  1.000e+01 (-1.000e+00)
310        Scale:  1.615e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
677    Prefactor:  9.767e-01  1.955e-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.155e+00  1.962e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.08
Ra Dec: 242.014 49.829

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/837060/cmap_HighResolution_699667201_699926401_4FGL_J1608.0+4949_daily_bin1776.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.99e-03', job_status='DONE', photon_flux_upper_limit='6.52e-08', time_completed='2023-03-08 01:05:34.467029', job_id='837060', GAL2='0.98', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1678266334.47', return_code2='0', ts='0.08', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='3.51e-02', ts2='0.15', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='1776' AND source_name='4FGL J1608.0+4949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Mar  8 01:05:34 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0153>
Subject: Job 837060: <4FGL_J1608.0+4949_daily_bin1776> in cluster <slac> Done

Job <4FGL_J1608.0+4949_daily_bin1776> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Mar  8 00:50:19 2023
Job was executed on host(s) <bullet0153>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Mar  8 00:50:20 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Mar  8 00:50:20 2023
Terminated at Wed Mar  8 01:05:35 2023
Results reported at Wed Mar  8 01:05:35 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1608.0+4949_daily_bin1776 242.014 49.829 699667201 699926401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1608.0+4949 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   872.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             320.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   914 sec.
    Turnaround time :                            916 sec.

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

