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 13 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J1608.0+4949_daily_bin1702
RA = 242.014, Dec = 49.829
tmin = 680486401, tmax = 680745601
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='235597', job_status='RUN', time_executed='2022-07-29 01:21:02.427646', time_epoch_executed='1659082862.43' WHERE source_name='4FGL J1608.0+4949' and cadence='daily' and bin_id='1702'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/235597

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/235597/ft1_4FGL_J1608.0+4949_daily_bin1702.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/235597/ft2_4FGL_J1608.0+4949_daily_bin1702.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/235597/ft1_4FGL_J1608.0+4949_daily_bin1702.fits outfile=/scratch/kocevski/235597/ft1_filteredMKT_4FGL_J1608.0+4949_daily_bin1702.fits ra=242.014 dec=49.829 rad=12.0 tmin=680486401.0 tmax=680745601.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.04
user 2.80
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/235597/ft2_4FGL_J1608.0+4949_daily_bin1702.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/235597/ft1_filteredMKT_4FGL_J1608.0+4949_daily_bin1702.fits evtable="EVENTS" outfile="/scratch/kocevski/235597/ft1_filtered_4FGL_J1608.0+4949_daily_bin1702.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 1233

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/235597/ft1_filtered_4FGL_J1608.0+4949_daily_bin1702.fits" evtable="EVENTS" scfile=/scratch/kocevski/235597/ft2_4FGL_J1608.0+4949_daily_bin1702.fits sctable="SC_DATA" outfile=/scratch/kocevski/235597/ltcube_680486401_680745601_4FGL_J1608.0+4949_daily_bin1702.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/235597/ft2_4FGL_J1608.0+4949_daily_bin1702.fits
.....................!
real 15.42
user 14.84
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/235597/ft1_filtered_4FGL_J1608.0+4949_daily_bin1702.fits evtable="EVENTS" scfile=/scratch/kocevski/235597/ft2_4FGL_J1608.0+4949_daily_bin1702.fits sctable="SC_DATA" expcube=/scratch/kocevski/235597/ltcube_680486401_680745601_4FGL_J1608.0+4949_daily_bin1702.fits outfile=/scratch/kocevski/235597/expmap_680486401_680745601_4FGL_J1608.0+4949_daily_bin1702.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/235597/ltcube_680486401_680745601_4FGL_J1608.0+4949_daily_bin1702.fits
.....................!
real 194.02
user 187.39
sys 5.46

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/235597/ft1_filtered_4FGL_J1608.0+4949_daily_bin1702.fits scfile=/scratch/kocevski/235597/ft2_4FGL_J1608.0+4949_daily_bin1702.fits outfile=/scratch/kocevski/235597/cmap_680486401_680745601_4FGL_J1608.0+4949_daily_bin1702.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/235597/ft1_filtered_4FGL_J1608.0+4949_daily_bin1702.fits scfile=/scratch/kocevski/235597/ft2_4FGL_J1608.0+4949_daily_bin1702.fits outfile=/scratch/kocevski/235597/cmap_HighResolution_680486401_680745601_4FGL_J1608.0+4949_daily_bin1702.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.56
user 0.39
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/235597/ft1_filtered_4FGL_J1608.0+4949_daily_bin1702.fits', '/scratch/kocevski/235597/ft2_4FGL_J1608.0+4949_daily_bin1702.fits', expMap='/scratch/kocevski/235597/expmap_680486401_680745601_4FGL_J1608.0+4949_daily_bin1702.fits', expCube='/scratch/kocevski/235597/ltcube_680486401_680745601_4FGL_J1608.0+4949_daily_bin1702.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/235597/Model_4FGL_J1608.0+4949_daily_bin1702.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  1.000e-04  1.000e+04 ( 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/235597/ft1_filtered_4FGL_J1608.0+4949_daily_bin1702.fits
Spacecraft file(s): /scratch/kocevski/235597/ft2_4FGL_J1608.0+4949_daily_bin1702.fits
Exposure map: /scratch/kocevski/235597/expmap_680486401_680745601_4FGL_J1608.0+4949_daily_bin1702.fits
Exposure cube: /scratch/kocevski/235597/ltcube_680486401_680745601_4FGL_J1608.0+4949_daily_bin1702.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/235597/Model_4FGL_J1608.0+4949_daily_bin1702.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) = 13190.9235477

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3400       1.0000         .10000E-03   10000.    
     2 'norm      '    3.1323       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10195E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.3899       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.0194       1.0000         .10000E-03   10000.    
     6 'norm      '    .10711E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    35.092       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10236E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.767       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.2129       1.0000         .10000E-03   10000.    
    12 'norm      '    .93084       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11347E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.678       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .20991E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.0215       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.1429       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.8969       1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.8893       1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.6248       1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.8043       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    1.0803       1.0000         .10000E-03   10000.    
    29 'norm      '    .16486       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .82813       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.0860       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13190.84     FROM MIGRAD    STATUS=CONVERGED    853 CALLS     4475 TOTAL
                     EDM=   .37E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3385        19.494         .0000        .21397E-02
   2  norm          3.1325        1.4481         .0000        .37746E-02
   3  Prefactor     .10003E-03    13.169         .0000    ** at limit **
   4  Prefactor     5.3908        4.6659         .0000        .87181E-03
   5  Prefactor     5.0222        5.5753         .0000        .73815E-03
   6  norm          .10000E-03    .95484         .0000    ** at limit **
   7  Prefactor     .10001E-03    3.3944         .0000    ** at limit **
   8  Prefactor     35.096        15.495         .0000        .19768E-02
   9  Prefactor     .10000E-03    7.6025         .0000    ** at limit **
  10  Prefactor     11.767        9.6932         .0000        .74880E-04
  11  Prefactor     5.2115        5.0574         .0000        .26721E-02
  12  norm          .93525        5.0664         .0000        .42446E-02
  13  Prefactor     .10001E-03    67.781         .0000    ** at limit **
  14  Prefactor     14.680        31.755         .0000       -.70319E-03
  15  Prefactor     .10000E-03    1.5916         .0000    ** at limit **
  16  Prefactor     .10000E-03    7.8205         .0000    ** at limit **
  17  Prefactor     .10000E-03    1.8489         .0000    ** at limit **
  18  Prefactor     .10000E-03    .84002         .0000    ** at limit **
  19  norm          2.0209        14.025         .0000        .57859E-02
  20  norm          .10000E-03    4.5219         .0000    ** at limit **
  21  Prefactor     2.1429        1.7773         .0000        .14861E-03
  22  Prefactor     1.8976        4.3375         .0000        .37962E-01
  23  norm          .10003E-03    13.279         .0000    ** at limit **
  24  Prefactor     3.8889        1.4902         .0000        .29833E-03
  25  Prefactor     4.6244        1.7007         .0000        .39195E-03
  26  Prefactor     3.8042        1.8669         .0000        .42932E-03
  27  Prefactor     .10000E-03    .89486         .0000    ** at limit **
  28  Prefactor     1.0891        5.2103         .0000        .52795E-01
  29  norm          .16498        .40496         .0000        .43250E-02
  30  Prefactor     .10000E-03    3.2944         .0000    ** at limit **
  31  Normalizat    .82810        .12648         .0000        .11248E-04
  32  Prefactor     1.0860        .12610         .0000        .10464E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.33847
  norm       = 3.13252
  Prefactor  = 0.000100028
  Prefactor  = 5.39077
  Prefactor  = 5.02218
  norm       = 0.000100002
  Prefactor  = 0.000100006
  Prefactor  = 35.0958
  Prefactor  = 0.0001
  Prefactor  = 11.7672
  Prefactor  = 5.21154
  norm       = 0.935247
  Prefactor  = 0.000100007
  Prefactor  = 14.6799
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.02091
  norm       = 0.0001
  Prefactor  = 2.1429
  Prefactor  = 1.89763
  norm       = 0.000100027
  Prefactor  = 3.88886
  Prefactor  = 4.62444
  Prefactor  = 3.80421
  Prefactor  = 0.0001
  Prefactor  = 1.08914
  norm       = 0.164978
  Prefactor  = 0.000100004
  Normalizat = 0.828102
  Prefactor  = 1.086
 **********
 **   18 **HESSE 
 **********

 FCN=   13190.84     FROM HESSE     STATUS=OK           665 CALLS     5140 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3385        19.181        .11073E-02   -1.5343    
   2  norm          3.1325        1.4417        .43898E-03   -1.5354    
   3  Prefactor     .10003E-03    13.578        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.3908        4.6316        .17309E-03   -1.5244    
   5  Prefactor     5.0222        5.5532        .17949E-03   -1.5260    
   6  norm          .10000E-03    6.9871        .21517E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    3.4383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     35.096        15.390        .67650E-04   -1.4522    
   9  Prefactor     .10000E-03    7.7153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.767        9.6917        .11678E-03   -1.5022    
  11  Prefactor     5.2115        4.8150        .17606E-03   -1.5251    
  12  norm          .93525        4.6256        .42548E-03   -1.5515    
  13  Prefactor     .10001E-03    70.279        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     14.680        31.728        .10454E-03   -1.4941    
  15  Prefactor     .10000E-03    1.6092        .14142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.8643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    1.8825        .15226E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.6722        .20353E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.0209        13.999        .14553E-02   -1.5424    
  20  norm          .10000E-03    4.5318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.1429        1.7772        .13392E-03   -1.5415    
  22  Prefactor     1.8976        4.3198        .15101E-02   -1.5432    
  23  norm          .10003E-03    13.291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     3.8889        1.5307        .65859E-04   -1.5314    
  25  Prefactor     4.6244        1.7392        .68546E-04   -1.5278    
  26  Prefactor     3.8042        1.8418        .10264E-03   -1.5318    
  27  Prefactor     .10000E-03    1.7187        .20766E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     1.0891        5.2208        .23182E-02   -1.5499    
  29  norm          .16498        .48514        .10489E-02   -1.5627    
  30  Prefactor     .10000E-03    3.4035        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .82810        .14761        .25714E-03   -.99035    
  32  Prefactor     1.0860        .14851        .23590E-03   -.89915    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.98532e-08
Minuit parameter uncertainties:
  1  16.0121
  2  1.44172
  3  0.00122431
  4  4.63192
  5  5.55381
  6  0.000206107
  7  0.000286312
  8  15.3918
  9  6.70243e-05
  10  9.69301
  11  4.81538
  12  4.16015
  13  0.00135397
  14  31.764
  15  9.52614e-06
  16  0.000203504
  17  9.85106e-06
  18  1.04247e-05
  19  10.6412
  20  6.58558e-05
  21  1.77729
  22  4.32052
  23  0.00119527
  24  1.53069
  25  1.73919
  26  1.84183
  27  4.02036e-06
  28  4.7696
  29  0.485147
  30  0.000244737
  31  0.147681
  32  0.148566
Done.

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

Extracting fit parameters...

4FGL J1608.0+4949
   Spectrum: PowerLaw
308    Prefactor:  1.468e+01  3.176e+01  1.000e-04  1.000e+04 ( 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:  1.086e+00  1.486e-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.281e-01  1.477e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/235597/likelihoodResults_680486401_680745601_4FGL_J1608.0+4949_daily_bin1702.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) = 13190.8390225
delta logL = 0.000457992920929

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13190.838872
delta logL = 0.000608481401287

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.109       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3145       1.0000          .0000       10.000    
     3 'Normalizat'    .82758       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0863       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13190.84     FROM MIGRAD    STATUS=CONVERGED     68 CALLS      204 TOTAL
                     EDM=   .87E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.065        50.264         .0000        .20980E-03
   2  Index         2.3104        1.6999         .0000        .10586E-02
   3  Normalizat    .82764        .11982         .0000        .39756E-04
   4  Prefactor     1.0863        .12434         .0000        .11433E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.0652
  Index      = 2.31043
  Normalizat = 0.827641
  Prefactor  = 1.08629
 **********
 **   18 **HESSE 
 **********

 FCN=   13190.84     FROM HESSE     STATUS=OK            31 CALLS      235 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.065        36.907        .53317E-03   -1.4958    
   2  Index         2.3104        1.2717        .48493E-02   -.56796    
   3  Normalizat    .82764        .14037        .25721E-03   -.99051    
   4  Prefactor     1.0863        .14573        .23587E-03   -.89906    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61552e-10
Minuit parameter uncertainties:
  1  36.9673
  2  1.29178
  3  0.140428
  4  0.145784
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/235597': 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) = 13190.8388604
delta logL = 0.000620127813818

Extracting fit parameters...

4FGL J1608.0+4949
   Spectrum: PowerLaw
308    Prefactor:  1.407e+01  3.697e+01  1.000e-04  1.000e+04 ( 1.000e-14)
309        Index:  2.310e+00  1.292e+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:  1.086e+00  1.458e-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.276e-01  1.404e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.26
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/235597/cmap_HighResolution_680486401_680745601_4FGL_J1608.0+4949_daily_bin1702.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.13e-03', job_status='DONE', photon_flux_upper_limit='4.09e-08', time_completed='2022-07-29 01:52:21.228632', job_id='235597', GAL2='1.09', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1659084741.23', return_code2='0', ts='0.26', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='6.20e-04', ts2='0.27', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='1702' AND source_name='4FGL J1608.0+4949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jul 29 01:52:21 PDT 2022



------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 235323: <4FGL_J1608.0+4949_daily_bin1702> in cluster <slac> Done

Job <4FGL_J1608.0+4949_daily_bin1702> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Jul 29 00:07:02 2022
Job was executed on host(s) <bullet0278>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jul 29 01:17:36 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jul 29 01:17:36 2022
Terminated at Fri Jul 29 01:51:40 2022
Results reported at Fri Jul 29 01:51:40 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1608.0+4949_daily_bin1702 242.014 49.829 680486401 680745601 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 :                                   1887.00 sec.
    Max Memory :                                 783 MB
    Average Memory :                             306.49 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2043 sec.
    Turnaround time :                            6278 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0157>
Subject: Job 235597: <4FGL_J1608.0+4949_daily_bin1702> in cluster <slac> Done

Job <4FGL_J1608.0+4949_daily_bin1702> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Jul 29 00:07:14 2022
Job was executed on host(s) <bullet0157>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jul 29 01:20:39 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jul 29 01:20:39 2022
Terminated at Fri Jul 29 01:52:24 2022
Results reported at Fri Jul 29 01:52:24 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1608.0+4949_daily_bin1702 242.014 49.829 680486401 680745601 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 :                                   1864.52 sec.
    Max Memory :                                 625 MB
    Average Memory :                             332.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2931 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   1902 sec.
    Turnaround time :                            6310 sec.

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

