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 53 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_J1608.0+4949_daily_bin1762
RA = 242.014, Dec = 49.829
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='113398', job_status='RUN', time_executed='2023-01-25 01:12:34.288382', time_epoch_executed='1674637954.29' WHERE source_name='4FGL J1608.0+4949' and cadence='daily' and bin_id='1762'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/113398

Creating custom pfile directory:
/scratch/kocevski/113398/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/113398/ft1_4FGL_J1608.0+4949_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/113398/ft2_4FGL_J1608.0+4949_daily_bin1762.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/113398/ft1_4FGL_J1608.0+4949_daily_bin1762.fits outfile=/scratch/kocevski/113398/ft1_filteredMKT_4FGL_J1608.0+4949_daily_bin1762.fits ra=242.014 dec=49.829 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.67
user 3.44
sys 0.21

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

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

Number of photons that the gtmktime cut: 598

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/113398/ft1_filtered_4FGL_J1608.0+4949_daily_bin1762.fits" evtable="EVENTS" scfile=/scratch/kocevski/113398/ft2_4FGL_J1608.0+4949_daily_bin1762.fits sctable="SC_DATA" outfile=/scratch/kocevski/113398/ltcube_696038401_696297601_4FGL_J1608.0+4949_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/113398/ft2_4FGL_J1608.0+4949_daily_bin1762.fits
.....................!
real 18.00
user 17.36
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/113398/ft1_filtered_4FGL_J1608.0+4949_daily_bin1762.fits evtable="EVENTS" scfile=/scratch/kocevski/113398/ft2_4FGL_J1608.0+4949_daily_bin1762.fits sctable="SC_DATA" expcube=/scratch/kocevski/113398/ltcube_696038401_696297601_4FGL_J1608.0+4949_daily_bin1762.fits outfile=/scratch/kocevski/113398/expmap_696038401_696297601_4FGL_J1608.0+4949_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/113398/ltcube_696038401_696297601_4FGL_J1608.0+4949_daily_bin1762.fits
.....................!
real 192.91
user 185.52
sys 5.45

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/113398/ft1_filtered_4FGL_J1608.0+4949_daily_bin1762.fits scfile=/scratch/kocevski/113398/ft2_4FGL_J1608.0+4949_daily_bin1762.fits outfile=/scratch/kocevski/113398/cmap_696038401_696297601_4FGL_J1608.0+4949_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=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.56
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/113398/ft1_filtered_4FGL_J1608.0+4949_daily_bin1762.fits scfile=/scratch/kocevski/113398/ft2_4FGL_J1608.0+4949_daily_bin1762.fits outfile=/scratch/kocevski/113398/cmap_HighResolution_696038401_696297601_4FGL_J1608.0+4949_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=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.57
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/113398/ft1_filtered_4FGL_J1608.0+4949_daily_bin1762.fits evtable="EVENTS" scfile=/scratch/kocevski/113398/ft2_4FGL_J1608.0+4949_daily_bin1762.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/113398/Model_4FGL_J1608.0+4949_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/113398/ft1_filtered_4FGL_J1608.0+4949_daily_bin1762.fits.....................!
real 52.08
user 50.54
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/113398/ft1_filtered_4FGL_J1608.0+4949_daily_bin1762.fits', '/scratch/kocevski/113398/ft2_4FGL_J1608.0+4949_daily_bin1762.fits', expMap='/scratch/kocevski/113398/expmap_696038401_696297601_4FGL_J1608.0+4949_daily_bin1762.fits', expCube='/scratch/kocevski/113398/ltcube_696038401_696297601_4FGL_J1608.0+4949_daily_bin1762.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/113398/Model_4FGL_J1608.0+4949_daily_bin1762.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/113398/ft1_filtered_4FGL_J1608.0+4949_daily_bin1762.fits
Spacecraft file(s): /scratch/kocevski/113398/ft2_4FGL_J1608.0+4949_daily_bin1762.fits
Exposure map: /scratch/kocevski/113398/expmap_696038401_696297601_4FGL_J1608.0+4949_daily_bin1762.fits
Exposure cube: /scratch/kocevski/113398/ltcube_696038401_696297601_4FGL_J1608.0+4949_daily_bin1762.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/113398/Model_4FGL_J1608.0+4949_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) = 6514.72379907

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.9921       1.0000          .0000       .10000E+07
     2 'Prefactor '    6.7962       1.0000          .0000       .10000E+07
     3 'Prefactor '    .31470E-05   1.0000          .0000       .10000E+07
     4 'Prefactor '    .21344E-03   1.0000          .0000       .10000E+07
     5 'norm      '    8.1437       1.0000          .0000       .10000E+07
     6 'Prefactor '    .54162       1.0000          .0000       .10000E+07
     7 'Prefactor '    .35198E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    .10471E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    .19430E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    4.5518       1.0000          .0000       .10000E+07
    11 'norm      '    .14178E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    65.746       1.0000          .0000       .10000E+07
    13 'Prefactor '    4.8342       1.0000          .0000       .10000E+07
    14 'Prefactor '    9.2206       1.0000          .0000       .10000E+07
    15 'Prefactor '    22.909       1.0000          .0000       .10000E+07
    16 'Prefactor '    4.5820       1.0000          .0000       .10000E+07
    17 'Prefactor '    .69917E-05   1.0000          .0000       .10000E+07
    18 'norm      '    6.8709       1.0000          .0000       .10000E+07
    19 'norm      '    23.601       1.0000          .0000       .10000E+07
    20 'Prefactor '    .12592E-04   1.0000          .0000       .10000E+07
    21 'Prefactor '    8.4011       1.0000          .0000       .10000E+07
    22 'norm      '    .19328E-01   1.0000          .0000       .10000E+07
    23 'Prefactor '    .42795       1.0000          .0000       .10000E+07
    24 'Prefactor '    .17208E-08   1.0000          .0000       .10000E+07
    25 'Prefactor '    .18017E-04   1.0000          .0000       .10000E+07
    26 'Prefactor '    2.0675       1.0000          .0000       .10000E+07
    27 'Prefactor '    .83650E-04   1.0000          .0000       .10000E+07
    28 'norm      '    .96333       1.0000          .0000       .10000E+07
    29 'Prefactor '    .11878E-04   1.0000          .0000       .10000E+07
    30 'Normalizat'    .90274       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .91562       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=   6514.644     FROM MIGRAD    STATUS=CONVERGED    230 CALLS     2399 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.9926        2.3387        .10746E-07    .52928E-03
   2  Prefactor     6.8035        9.8878       -.87115E-07   -.20602E-02
   3  Prefactor      .0000        1.1707        .10312E-06** at limit **
   4  Prefactor     .11102E-09    4.8125        .60783E-06** at limit **
   5  norm          8.1128        4.7260        .82484E-08   -.12990E-02
   6  Prefactor     .59780        10.494        .73136E-07    .57059E-02
   7  Prefactor     .11935E-07    13.591       -.28474E-06** at limit **
   8  Prefactor     .75495E-08    19.888       -.50566E-06** at limit **
   9  Prefactor     .17208E-07    14.671        .14824E-06** at limit **
  10  Prefactor     4.5133        4.6766       -.89731E-09   -.28938E-03
  11  norm          .55511E-10    2.2730       -.54735E-07** at limit **
  12  Prefactor     65.191        31.848        .33303E-06   -.38547E-01
  13  Prefactor     5.7399        167.59       -.55566E-05   -.39529E-02
  14  Prefactor     9.1407        6.4115       -.16917E-07    .56343E-02
  15  Prefactor     23.504        7.2457        .21245E-06   -.69572E-01
  16  Prefactor     4.5598        5.7216        .14289E-06   -.22004E-02
  17  Prefactor      .0000        1.1572        .58291E-07** at limit **
  18  norm          6.9127        10.050       -.63462E-06    .53809E-01
  19  norm          23.591        1.3819       -.75493E-08    .60474E-02
  20  Prefactor     .33307E-09    2.9267       -.71177E-07** at limit **
  21  Prefactor     8.4285        6.6296       -.10794E-06   -.48543E-03
  22  norm          .55107E-05    27.751        .16804E-05** at limit **
  23  Prefactor     .42797        .67360        .19482E-07   -.10847E-03
  24  Prefactor      .0000        1.0754       -.14871E-06** at limit **
  25  Prefactor     .57815E-06    1.8613        .44283E-07** at limit **
  26  Prefactor     2.0680        2.4251       -.97871E-07   -.15368E-03
  27  Prefactor     .38858E-09    8.7823        .30925E-06** at limit **
  28  norm          .96369        .81292        .21427E-07    .13637E-02
  29  Prefactor      .0000        2.3603       -.10163E-06** at limit **
  30  Normalizat    .90225        .20819        .28377E-05   -.93064E-05
  31  Prefactor     .91570        .20303       -.27607E-05   -.20860E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.99256
  Prefactor  = 6.80351
  Prefactor  = 0
  Prefactor  = 1.11022e-10
  norm       = 8.11283
  Prefactor  = 0.597796
  Prefactor  = 1.19349e-08
  Prefactor  = 7.54952e-09
  Prefactor  = 1.72085e-08
  Prefactor  = 4.51332
  norm       = 5.55112e-11
  Prefactor  = 65.1914
  Prefactor  = 5.73993
  Prefactor  = 9.14071
  Prefactor  = 23.5043
  Prefactor  = 4.55979
  Prefactor  = 0
  norm       = 6.9127
  norm       = 23.5913
  Prefactor  = 3.33067e-10
  Prefactor  = 8.42851
  norm       = 5.5107e-06
  Prefactor  = 0.427966
  Prefactor  = 0
  Prefactor  = 5.78149e-07
  Prefactor  = 2.06804
  Prefactor  = 3.88578e-10
  norm       = 0.963685
  Prefactor  = 0
  Normalizat = 0.902248
  Prefactor  = 0.915696
 **********
 **   18 **HESSE 
 **********

 FCN=   6514.644     FROM HESSE     STATUS=OK           690 CALLS     3089 TOTAL
                     EDM=   .46E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.9926        2.3370        .37916E-03   -1.5655    
   2  Prefactor     6.8035        9.8947        .38464E-03   -1.5656    
   3  Prefactor      .0000        1.1704        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .11102E-09    4.8133        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          8.1128        6.1093        .35109E-03   -1.5651    
   6  Prefactor     .59780        66.135        .74629E-03   -1.5692    
   7  Prefactor     .11935E-07    14.250        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .75495E-08    23.930        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .17208E-07    15.366        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.5133        4.6776        .47160E-03   -1.5665    
  11  norm          .55511E-10    2.2737        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     65.191        33.103        .12334E-03   -1.5546    
  13  Prefactor     5.7399        173.52        .45730E-03   -1.5660    
  14  Prefactor     9.1407        7.2529        .32981E-03   -1.5647    
  15  Prefactor     23.504        24.599        .20898E-03   -1.5611    
  16  Prefactor     4.5598        5.7842        .47001E-03   -1.5665    
  17  Prefactor      .0000        1.1546        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.9127        14.585        .38252E-03   -1.5655    
  19  norm          23.591        17.062        .20589E-03   -1.5611    
  20  Prefactor     .33307E-09    2.9095        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     8.4285        6.6301        .34563E-03   -1.5650    
  22  norm          .55107E-05    46.702        .17081E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .42797        .82421        .19124E-02   -1.5721    
  24  Prefactor      .0000        1.0483        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .57815E-06    1.9710        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     2.0680        2.4348        .71823E-03   -1.5679    
  27  Prefactor     .38858E-09    8.7832        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .96369        .83415        .42463E-03   -1.5688    
  29  Prefactor      .0000        2.3580        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .90225        .17759        .44937E-01   -.96381    
  31  Prefactor     .91570        .17130        .45204E-01   -.95595    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.55219e-07
Minuit parameter uncertainties:
  1  2.33701
  2  9.89473
  3  4.97758e-06
  4  4.35448e-05
  5  6.10928
  6  12.5756
  7  0.000825639
  8  0.000851151
  9  0.00102855
  10  4.67757
  11  1.68999e-05
  12  33.103
  13  63.1207
  14  7.25292
  15  24.5987
  16  5.78417
  17  1.77223e-06
  18  14.5854
  19  17.0618
  20  5.98986e-05
  21  6.63014
  22  0.0320851
  23  0.824207
  24  2.09859e-06
  25  0.00213504
  26  2.4348
  27  0.000117802
  28  0.834153
  29  1.26339e-05
  30  0.177704
  31  0.171398
Done.

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

Extracting fit parameters...

4FGL J1608.0+4949
   Spectrum: PowerLaw
308    Prefactor:  5.740e+00  6.312e+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.157e-01  1.714e-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:  9.022e-01  1.777e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/113398/likelihoodResults_696038401_696297601_4FGL_J1608.0+4949_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): 102
logL (Free Index) = 6514.24020387
delta logL = 0.404241298844

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6514.23944101
delta logL = 0.405004155015

Fit tolerance = 1e-08

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

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

 FCN=   6514.239     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      340 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4384        84.645        .54600E-03    .36133E-02
   2  Index         3.7071        2.5670        .14302        .84445E-04
   3  Normalizat    .85679        .38693E-01    .44352E-01   -.58160E-04
   4  Prefactor     .94164        .38433E-01    .45534E-01   -.73396E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.43845
  Index      = 3.70709
  Normalizat = 0.856791
  Prefactor  = 0.941639
 **********
 **   18 **HESSE 
 **********

 FCN=   6514.239     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      373 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4384        231.73        .16808E-04   -1.5671    
   2  Index         3.7071        6.8304        .51149E-02   -.26155    
   3  Normalizat    .85679        .18387        .25246E-03   -.97996    
   4  Prefactor     .94164        .18190        .24358E-03   -.94701    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.05144e-09
Minuit parameter uncertainties:
  1  56.4568
  2  6.98105
  3  0.184007
  4  0.182021
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/113398': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6514.23942854
delta logL = 0.405016627663

Extracting fit parameters...

4FGL J1608.0+4949
   Spectrum: PowerLaw
308    Prefactor:  3.438e+00  5.646e+01  0.000e+00  1.000e+06 ( 1.000e-14)
309        Index:  3.707e+00  6.981e+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.416e-01  1.820e-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:  8.568e-01  1.840e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/113398/cmap_HighResolution_696038401_696297601_4FGL_J1608.0+4949_daily_bin1762.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.42e-03', job_status='DONE', photon_flux_upper_limit='7.08e-08', time_completed='2023-01-25 01:26:24.588980', job_id='113398', GAL2='0.94', fit_tolerance='1e-08', EG2='0.86', EG='0.90', time_epoch_completed='1674638784.59', return_code2='102', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='4.05e-01', ts2='0.91', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='1762' AND source_name='4FGL J1608.0+4949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jan 25 01:26:24 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 113398: <4FGL_J1608.0+4949_daily_bin1762> in cluster <slac> Done

Job <4FGL_J1608.0+4949_daily_bin1762> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Jan 25 01:10:21 2023
Job was executed on host(s) <bullet0243>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jan 25 01:11:33 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:33 2023
Terminated at Wed Jan 25 01:26:25 2023
Results reported at Wed Jan 25 01:26:25 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1608.0+4949_daily_bin1762 242.014 49.829 696038401 696297601 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 :                                   824.35 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             315.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   891 sec.
    Turnaround time :                            964 sec.

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

