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


Performing analysis on: 4FGL_J1608.0+4949_daily_bin1748
RA = 242.014, Dec = 49.829
tmin = 692409601, tmax = 692668801
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='891260', job_status='RUN', time_executed='2022-12-14 00:55:31.851406', time_epoch_executed='1671008131.85' WHERE source_name='4FGL J1608.0+4949' and cadence='daily' and bin_id='1748'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/891260

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/891260/ft1_4FGL_J1608.0+4949_daily_bin1748.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/891260/ft2_4FGL_J1608.0+4949_daily_bin1748.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/891260/ft1_4FGL_J1608.0+4949_daily_bin1748.fits outfile=/scratch/kocevski/891260/ft1_filteredMKT_4FGL_J1608.0+4949_daily_bin1748.fits ra=242.014 dec=49.829 rad=12.0 tmin=692409601.0 tmax=692668801.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.58
user 3.35
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/891260/ft2_4FGL_J1608.0+4949_daily_bin1748.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/891260/ft1_filteredMKT_4FGL_J1608.0+4949_daily_bin1748.fits evtable="EVENTS" outfile="/scratch/kocevski/891260/ft1_filtered_4FGL_J1608.0+4949_daily_bin1748.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.15

Number of photons that the gtmktime cut: 603

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/891260/ft1_filtered_4FGL_J1608.0+4949_daily_bin1748.fits" evtable="EVENTS" scfile=/scratch/kocevski/891260/ft2_4FGL_J1608.0+4949_daily_bin1748.fits sctable="SC_DATA" outfile=/scratch/kocevski/891260/ltcube_692409601_692668801_4FGL_J1608.0+4949_daily_bin1748.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/891260/ft2_4FGL_J1608.0+4949_daily_bin1748.fits
.....................!
real 12.47
user 12.08
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/891260/ft1_filtered_4FGL_J1608.0+4949_daily_bin1748.fits evtable="EVENTS" scfile=/scratch/kocevski/891260/ft2_4FGL_J1608.0+4949_daily_bin1748.fits sctable="SC_DATA" expcube=/scratch/kocevski/891260/ltcube_692409601_692668801_4FGL_J1608.0+4949_daily_bin1748.fits outfile=/scratch/kocevski/891260/expmap_692409601_692668801_4FGL_J1608.0+4949_daily_bin1748.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/891260/ltcube_692409601_692668801_4FGL_J1608.0+4949_daily_bin1748.fits
.....................!
real 190.98
user 185.38
sys 5.21

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/891260/ft1_filtered_4FGL_J1608.0+4949_daily_bin1748.fits scfile=/scratch/kocevski/891260/ft2_4FGL_J1608.0+4949_daily_bin1748.fits outfile=/scratch/kocevski/891260/cmap_692409601_692668801_4FGL_J1608.0+4949_daily_bin1748.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/891260/ft1_filtered_4FGL_J1608.0+4949_daily_bin1748.fits scfile=/scratch/kocevski/891260/ft2_4FGL_J1608.0+4949_daily_bin1748.fits outfile=/scratch/kocevski/891260/cmap_HighResolution_692409601_692668801_4FGL_J1608.0+4949_daily_bin1748.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.55
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .80167       1.0000          .0000       .10000E+07
     2 'Prefactor '    .49848E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .98089E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .14750E-02   1.0000          .0000       .10000E+07
     5 'norm      '    5.3669       1.0000          .0000       .10000E+07
     6 'Prefactor '    .57899E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .30092E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .38247       1.0000          .0000       .10000E+07
     9 'Prefactor '    .31781E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    .34599E-04   1.0000          .0000       .10000E+07
    11 'norm      '    3.6447       1.0000          .0000       .10000E+07
    12 'Prefactor '    18.912       1.0000          .0000       .10000E+07
    13 'Prefactor '    .17637E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    .11590E-04   1.0000          .0000       .10000E+07
    15 'Prefactor '    .84263E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .82500E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    2.6762       1.0000          .0000       .10000E+07
    18 'norm      '    .10208E-02   1.0000          .0000       .10000E+07
    19 'norm      '    .10500       1.0000          .0000       .10000E+07
    20 'Prefactor '    10.770       1.0000          .0000       .10000E+07
    21 'Prefactor '    1.6962       1.0000          .0000       .10000E+07
    22 'norm      '    27.506       1.0000          .0000       .10000E+07
    23 'Prefactor '    .33307E-09   1.0000          .0000       .10000E+07
    24 'Prefactor '    .64515E-06   1.0000          .0000       .10000E+07
    25 'Prefactor '    .12183E-02   1.0000          .0000       .10000E+07
    26 'Prefactor '    .16360E-04   1.0000          .0000       .10000E+07
    27 'Prefactor '    .14487E-02   1.0000          .0000       .10000E+07
    28 'norm      '    .10149       1.0000          .0000       .10000E+07
    29 'Prefactor '    .13878E-02   1.0000          .0000       .10000E+07
    30 'Normalizat'    .64170       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.1513       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=   6625.964     FROM MIGRAD    STATUS=CONVERGED    180 CALLS     3149 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .80124        .83323        .24845E-07    .10373E-02
   2  Prefactor     .22238E-06    3.0937       -.17888E-05** at limit **
   3  Prefactor     .84543E-07    3.2496       -.64717E-07** at limit **
   4  Prefactor     .22815E-07    2.8972       -.81547E-06** at limit **
   5  norm          5.3812        3.3894       -.11076E-06   -.55606E-02
   6  Prefactor     .19906E-06    3.5965        .17354E-05** at limit **
   7  Prefactor     .28588E-07    1.8403       -.45578E-06** at limit **
   8  Prefactor     .29654        .62548        .20389E-06   -.48954E-03
   9  Prefactor     .12840E-06    6.1275        .10299E-05** at limit **
  10  Prefactor     .33307E-09    1.9605       -.14235E-06** at limit **
  11  norm          3.6547        5.8221        .69810E-07    .10173E-02
  12  Prefactor     19.094        1.1352        .67817E-07   -.47336E-02
  13  Prefactor     .26740E-06    16.422       -.14037E-05** at limit **
  14  Prefactor     .55511E-10    1.9236       -.54651E-06** at limit **
  15  Prefactor     .12118E-06    5.7029        .77497E-06** at limit **
  16  Prefactor     .25852E-06    4.9653        .79810E-06** at limit **
  17  Prefactor     2.6766        2.5859        .58384E-07    .60347E-02
  18  norm          .14855E-06    6.9143        .82298E-06** at limit **
  19  norm          .53307E-06    2.9892        .22105E-05** at limit **
  20  Prefactor     10.783        4.7321        .72163E-07   -.69181E-02
  21  Prefactor     1.6780        4.2200        .28413E-06    .24618E-02
  22  norm          27.699        13.030        .15122E-05   -.12937    
  23  Prefactor      .0000        .34640        .10163E-07** at limit **
  24  Prefactor      .0000        .66954        .14198E-06** at limit **
  25  Prefactor     .16653E-09    4.0053       -.77507E-07** at limit **
  26  Prefactor     .16653E-09    1.9292       -.64155E-06** at limit **
  27  Prefactor     .34722E-06    3.9946       -.51251E-06** at limit **
  28  norm          .10109        1.4343       -.71822E-07** at limit **
  29  Prefactor     .26701E-07    2.7428       -.79943E-06** at limit **
  30  Normalizat    .64188        .18053        .10549E-04    .16164E-04
  31  Prefactor     1.1512        .18632       -.80900E-05    .32365E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.801239
  Prefactor  = 2.22378e-07
  Prefactor  = 8.45435e-08
  Prefactor  = 2.28151e-08
  norm       = 5.3812
  Prefactor  = 1.99063e-07
  Prefactor  = 2.85882e-08
  Prefactor  = 0.296539
  Prefactor  = 1.28397e-07
  Prefactor  = 3.33067e-10
  norm       = 3.65472
  Prefactor  = 19.0943
  Prefactor  = 2.67397e-07
  Prefactor  = 5.55112e-11
  Prefactor  = 1.21181e-07
  Prefactor  = 2.58515e-07
  Prefactor  = 2.67657
  norm       = 1.48548e-07
  norm       = 5.33074e-07
  Prefactor  = 10.7833
  Prefactor  = 1.678
  norm       = 27.6989
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 1.66533e-10
  Prefactor  = 1.66533e-10
  Prefactor  = 3.47222e-07
  norm       = 0.101091
  Prefactor  = 2.67009e-08
  Normalizat = 0.641884
  Prefactor  = 1.15118
 **********
 **   18 **HESSE 
 **********

 FCN=   6625.964     FROM HESSE     STATUS=OK           684 CALLS     3833 TOTAL
                     EDM=   .73E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .80124        .83183        .52810E-03   -1.5690    
   2  Prefactor     .22238E-06    5.1594        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .84543E-07    11.218        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .22815E-07    12.126        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.3812        3.6627        .43356E-03   -1.5662    
   6  Prefactor     .19906E-06    4.7334        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .28588E-07    4.9050        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .29654        6.9786        .91547E-02   -1.5697    
   9  Prefactor     .12840E-06    17.689        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .33307E-09    1.9695        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.6547        6.0379        .52890E-03   -1.5670    
  12  Prefactor     19.094        32.409        .23003E-03   -1.5621    
  13  Prefactor     .26740E-06    20.122        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .55511E-10    1.9245        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .12118E-06    6.0080        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .25852E-06    10.639        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.6766        2.6122        .62266E-03   -1.5675    
  18  norm          .14855E-06    15.582        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .53307E-06    9.9618        .13797E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     10.783        4.8220        .30505E-03   -1.5642    
  21  Prefactor     1.6780        4.2511        .80762E-03   -1.5682    
  22  norm          27.699        29.256        .19071E-03   -1.5603    
  23  Prefactor      .0000        .34612        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor      .0000        .65310        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .16653E-09    3.9849        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .16653E-09    1.9180        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .34722E-06    13.726        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10109        .62400        .21110E-02   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .26701E-07    12.195        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .64188        .15701        .59309E-01   -1.0623    
  31  Prefactor     1.1512        .15888        .35900E-01   -.87847    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.32146e-07
Minuit parameter uncertainties:
  1  0.83183
  2  0.00214231
  3  0.00194783
  4  0.0010515
  5  3.6627
  6  0.00194147
  7  0.000748862
  8  2.87709
  9  0.0030144
  10  5.1405e-05
  11  6.03789
  12  32.4098
  13  0.00463927
  14  2.22163e-05
  15  0.00170652
  16  0.00331703
  17  2.61217
  18  0.00304263
  19  0.00460897
  20  4.82196
  21  4.25113
  22  29.2566
  23  1.18925e-06
  24  7.47276e-07
  25  4.79037e-05
  26  3.38659e-05
  27  0.00436626
  28  0.502316
  29  0.00114131
  30  0.157123
  31  0.158949
Done.

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

Extracting fit parameters...

4FGL J1608.0+4949
   Spectrum: PowerLaw
308    Prefactor:  2.674e-07  4.639e-03  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:  1.151e+00  1.589e-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:  6.419e-01  1.571e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/891260/likelihoodResults_692409601_692668801_4FGL_J1608.0+4949_daily_bin1748.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) = 6625.98818302
delta logL = -0.023738367142

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6625.96444467
delta logL = -2.11875885725e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .46785E-06   1.0000          .0000       .10000E+07
     2 'Index     '    .88135       1.0000          .0000       10.000    
     3 'Normalizat'    .64187       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1512       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=   6625.964     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      191 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .23870E-07    24.770       -.31877E-05** at limit **
   2  Index         2.0152        5.5728        .13497E-03    .98339E-09
   3  Normalizat    .64188        .17633       -.27936E-04    .55620E-04
   4  Prefactor     1.1512        .18513        .10174E-04    .10198E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.38698e-08
  Index      = 2.01525
  Normalizat = 0.641883
  Prefactor  = 1.15118
 **********
 **   18 **HESSE 
 **********

 FCN=   6625.964     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      226 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .23870E-07    2.6986        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0152        8.1139        .44767       -.63970    
   3  Normalizat    .64188        .12099E-02    .59309E-01   -1.0623    
   4  Prefactor     1.1512        .12755E-02    .35902E-01   -.87847    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.44614e-10
Minuit parameter uncertainties:
  1  0.000507612
  2  5363.12
  3  0.00120992
  4  0.0012755
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/891260': 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) = 6625.96444464
delta logL = 6.13727024756e-09

Extracting fit parameters...

4FGL J1608.0+4949
   Spectrum: PowerLaw
308    Prefactor:  2.387e-08  5.076e-04  0.000e+00  1.000e+06 ( 1.000e-14)
309        Index:  2.015e+00  5.363e+03  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.151e+00  1.275e-03  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:  6.419e-01  1.210e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/891260/cmap_HighResolution_692409601_692668801_4FGL_J1608.0+4949_daily_bin1748.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.15e-03', job_status='DONE', photon_flux_upper_limit='4.11e-08', time_completed='2022-12-14 01:10:00.616948', job_id='891260', GAL2='1.15', fit_tolerance='1e-08', EG2='0.64', EG='0.64', time_epoch_completed='1671009000.62', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='6.14e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='1748' AND source_name='4FGL J1608.0+4949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec 14 01:10:00 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 891260: <4FGL_J1608.0+4949_daily_bin1748> in cluster <slac> Done

Job <4FGL_J1608.0+4949_daily_bin1748> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Dec 14 00:55:20 2022
Job was executed on host(s) <bullet0283>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec 14 00:55:21 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec 14 00:55:21 2022
Terminated at Wed Dec 14 01:10:01 2022
Results reported at Wed Dec 14 01:10:01 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1608.0+4949_daily_bin1748 242.014 49.829 692409601 692668801 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 :                                   871.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             336.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   880 sec.
    Turnaround time :                            881 sec.

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

