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


Performing analysis on: 4FGL_J1608.0+4949_monthly_bin167
RA = 242.014, Dec = 49.829
tmin = 669859201, tmax = 672451201
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='896471', job_status='RUN', time_executed='2022-04-24 02:31:47.571566', time_epoch_executed='1650792707.57' WHERE source_name='4FGL J1608.0+4949' and cadence='monthly' and bin_id='167'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/896471

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

Retrieving the FT1 file...

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

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

Retrieving 456 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/896471/ft1_4FGL_J1608.0+4949_monthly_bin167.fits


Retrieving the FT1 file...

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

Retrieving 456 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/896471/ft2_4FGL_J1608.0+4949_monthly_bin167.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/896471/ft1_4FGL_J1608.0+4949_monthly_bin167.fits outfile=/scratch/kocevski/896471/ft1_filteredMKT_4FGL_J1608.0+4949_monthly_bin167.fits ra=242.014 dec=49.829 rad=12.0 tmin=669859201.0 tmax=672451201.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 38.01
user 37.14
sys 0.78

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/896471/ft2_4FGL_J1608.0+4949_monthly_bin167.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/896471/ft1_filteredMKT_4FGL_J1608.0+4949_monthly_bin167.fits evtable="EVENTS" outfile="/scratch/kocevski/896471/ft1_filtered_4FGL_J1608.0+4949_monthly_bin167.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.84
user 0.66
sys 0.17

Number of photons that the gtmktime cut: 6705

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/896471/ft1_filtered_4FGL_J1608.0+4949_monthly_bin167.fits" evtable="EVENTS" scfile=/scratch/kocevski/896471/ft2_4FGL_J1608.0+4949_monthly_bin167.fits sctable="SC_DATA" outfile=/scratch/kocevski/896471/ltcube_669859201_672451201_4FGL_J1608.0+4949_monthly_bin167.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/896471/ft2_4FGL_J1608.0+4949_monthly_bin167.fits
.....................!
real 110.54
user 109.50
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/896471/ft1_filtered_4FGL_J1608.0+4949_monthly_bin167.fits evtable="EVENTS" scfile=/scratch/kocevski/896471/ft2_4FGL_J1608.0+4949_monthly_bin167.fits sctable="SC_DATA" expcube=/scratch/kocevski/896471/ltcube_669859201_672451201_4FGL_J1608.0+4949_monthly_bin167.fits outfile=/scratch/kocevski/896471/expmap_669859201_672451201_4FGL_J1608.0+4949_monthly_bin167.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/896471/ltcube_669859201_672451201_4FGL_J1608.0+4949_monthly_bin167.fits
.....................!
real 192.18
user 186.79
sys 5.04

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/896471/ft1_filtered_4FGL_J1608.0+4949_monthly_bin167.fits scfile=/scratch/kocevski/896471/ft2_4FGL_J1608.0+4949_monthly_bin167.fits outfile=/scratch/kocevski/896471/cmap_669859201_672451201_4FGL_J1608.0+4949_monthly_bin167.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.79
user 0.61
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/896471/ft1_filtered_4FGL_J1608.0+4949_monthly_bin167.fits scfile=/scratch/kocevski/896471/ft2_4FGL_J1608.0+4949_monthly_bin167.fits outfile=/scratch/kocevski/896471/cmap_HighResolution_669859201_672451201_4FGL_J1608.0+4949_monthly_bin167.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.79
user 0.62
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.3663       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11798E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.1542       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.1598       1.0000         .10000E-03   10000.    
     6 'norm      '    .47160       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .19397E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12907E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.9248       1.0000         .10000E-03   10000.    
    12 'norm      '    .10739E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.1352       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.4343       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.9295       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .19211E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10194E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    20.790       1.0000         .10000E-03   10000.    
    20 'norm      '    2.8468       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .96183       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.7691       1.0000         .10000E-03   10000.    
    23 'norm      '    4.7082       1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.0019       1.0000         .10000E-03   10000.    
    25 'Prefactor '    14.728       1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.0403       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10625E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    3.7010       1.0000         .10000E-03   10000.    
    29 'norm      '    .24263       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10249E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .97938       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.0247       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6800E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   71531.48     FROM MIGRAD    STATUS=CONVERGED    883 CALLS     3896 TOTAL
                     EDM=   .13E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.5585       -.10009E-06** at limit **
   2  norm          1.3663        .38776       -.29091E-08   -.18465E-04
   3  Prefactor     .10000E-03    .56529        .10128E-06** at limit **
   4  Prefactor     4.1544        1.0359       -.16599E-07   -.95568E-03
   5  Prefactor     6.1574        2.5289       -.11528E-06   -.23383E-03
   6  norm          .47177        .55846        .11403E-07   -.59894E-04
   7  Prefactor     .10000E-03    .82889        .46267E-07** at limit **
   8  Prefactor     .10000E-03    1.3968        .79345E-07** at limit **
   9  Prefactor     .10000E-03    .70202       -.47849E-07** at limit **
  10  Prefactor     .10000E-03    1.0638       -.27813E-07** at limit **
  11  Prefactor     1.9246        1.2932       -.97134E-08    .53194E-04
  12  norm          .10000E-03    .34371       -.52539E-07** at limit **
  13  Prefactor     8.1353        6.1351        .29727E-06    .15034E-04
  14  Prefactor     7.4459        9.1089       -.29909E-05   -.29098E-04
  15  Prefactor     1.9294        1.3721        .51895E-07   -.36003E-04
  16  Prefactor     .10000E-03    1.6347        .78359E-08** at limit **
  17  Prefactor     .10000E-03    .35496        .12630E-06** at limit **
  18  Prefactor     .10000E-03    .20649       -.72574E-08** at limit **
  19  norm          20.789        5.6792       -.37631E-06   -.10891E-03
  20  norm          2.8478        2.0701       -.44403E-07    .12548E-03
  21  Prefactor     .96163        .95696       -.11828E-07   -.14284E-03
  22  Prefactor     5.7690        1.7994       -.12265E-07   -.37917E-04
  23  norm          4.7074        7.4090       -.12152E-06   -.21746E-06
  24  Prefactor     1.0019        .71858        .79451E-09   -.12284E-03
  25  Prefactor     14.728        1.1062       -.79440E-09    .10893E-03
  26  Prefactor     3.0402        .94374        .21465E-08   -.62388E-04
  27  Prefactor     .10000E-03    .11239       -.78372E-08** at limit **
  28  Prefactor     3.7003        1.8379        .29994E-07   -.49549E-03
  29  norm          .24280        .20193       -.49894E-08   -.27921E-03
  30  Prefactor     .10000E-03    .41856       -.24441E-07** at limit **
  31  Normalizat    .97939        .56232E-01    .76410E-07   -.10917E-03
  32  Prefactor     1.0247        .54921E-01    .49388E-07   -.64129E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.36631
  Prefactor  = 0.0001
  Prefactor  = 4.15442
  Prefactor  = 6.15737
  norm       = 0.471772
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.92457
  norm       = 0.0001
  Prefactor  = 8.13534
  Prefactor  = 7.44589
  Prefactor  = 1.92941
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 20.7888
  norm       = 2.84781
  Prefactor  = 0.961626
  Prefactor  = 5.76903
  norm       = 4.70737
  Prefactor  = 1.00192
  Prefactor  = 14.728
  Prefactor  = 3.04019
  Prefactor  = 0.0001
  Prefactor  = 3.70035
  norm       = 0.2428
  Prefactor  = 0.0001
  Normalizat = 0.979386
  Prefactor  = 1.02473
 **********
 **   18 **HESSE 
 **********

 FCN=   71531.48     FROM HESSE     STATUS=OK           707 CALLS     4603 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.6342        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.3663        .38936        .86358E-04   -1.5474    
   3  Prefactor     .10000E-03    1.8783        .37360E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.1544        1.7334        .98878E-03   -1.5300    
   5  Prefactor     6.1574        2.4370        .16175E-03   -1.5212    
   6  norm          .47177        .50369        .20416E-02   -1.5571    
   7  Prefactor     .10000E-03    .84607        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.4049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.0090        .67370E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.8672        .53620E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.9246        1.2783        .23827E-03   -1.5431    
  12  norm          .10000E-03    1.8381        .29777E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.1353        6.1203        .14057E-03   -1.5137    
  14  Prefactor     7.4459        9.1082        .14709E-03   -1.5162    
  15  Prefactor     1.9294        1.3661        .23639E-03   -1.5430    
  16  Prefactor     .10000E-03    1.9981        .95604E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    1.2250        .30370E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    .20658        .18142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          20.789        5.6629        .87843E-04   -1.4796    
  20  norm          2.8478        2.0927        .12049E-02   -1.5370    
  21  Prefactor     .96163        .93404        .24681E-03   -1.5512    
  22  Prefactor     5.7690        1.8004        .16722E-03   -1.5228    
  23  norm          4.7074        7.3885        .18545E-03   -1.5274    
  24  Prefactor     1.0019        .64171        .13189E-03   -1.5508    
  25  Prefactor     14.728        .99687        .52514E-04   -1.4940    
  26  Prefactor     3.0402        .92095        .13313E-03   -1.5359    
  27  Prefactor     .10000E-03    1.3766        .17257E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     3.7003        2.1885        .10496E-02   -1.5323    
  29  norm          .24280        .17599        .99297E-03   -1.5609    
  30  Prefactor     .10000E-03    1.4672        .32843E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .97939        .65888E-01    .25427E-03   -.93724    
  32  Prefactor     1.0247        .64942E-01    .25360E-03   -.91910    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.166e-07
Minuit parameter uncertainties:
  1  3.36047e-07
  2  0.389361
  3  1.91746e-05
  4  1.73344
  5  2.437
  6  0.503696
  7  4.09189e-07
  8  2.75281e-07
  9  2.1623e-05
  10  3.39412e-06
  11  1.27835
  12  1.92914e-05
  13  6.12078
  14  9.10987
  15  1.36612
  16  3.22861e-05
  17  8.26523e-06
  18  9.58769e-09
  19  5.66309
  20  2.09271
  21  0.934053
  22  1.80044
  23  7.38994
  24  0.64171
  25  0.99687
  26  0.92095
  27  6.68843e-06
  28  2.18855
  29  0.175993
  30  2.0485e-06
  31  0.0658936
  32  0.0649468
Done.

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

Extracting fit parameters...

4FGL J1608.0+4949
   Spectrum: PowerLaw
308    Prefactor:  7.446e+00  9.110e+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

GAL_V02
   Spectrum: PowerLaw
677    Prefactor:  1.025e+00  6.495e-02  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.794e-01  6.589e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.32
Ra Dec: 242.014 49.829
Photon Index (Fixed Index): 2.27 +/- 0.00
Photon Flux (Fixed Index): 3.22e-09 +/- 3.94e-09
Energy Flux (Fixed Index): 1.29e-06 +/- 1.58e-06

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

Saving results to:
/scratch/kocevski/896471/likelihoodResults_669859201_672451201_4FGL_J1608.0+4949_monthly_bin167.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) = 71531.3806234
delta logL = 0.0948431357974

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 71531.3750479
delta logL = 0.1004186137

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.4947       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8862       1.0000          .0000       10.000    
     3 'Normalizat'    .98105       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0239       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=   71531.38     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      255 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.4971        10.385        .13754E-03   -.44463E-03
   2  Index         1.8871        .80929        .11813E-01   -.34201E-03
   3  Normalizat    .98108        .62687E-01    .25406E-03    .12930E-02
   4  Prefactor     1.0239        .64094E-01    .25368E-03    .14283E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.49715
  Index      = 1.88713
  Normalizat = 0.981085
  Prefactor  = 1.02392
 **********
 **   18 **HESSE 
 **********

 FCN=   71531.38     FROM HESSE     STATUS=OK            23 CALLS      278 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.4971        10.413        .27508E-04   -1.5125    
   2  Index         1.8871        .81167        .47251E-03   -.67203    
   3  Normalizat    .98108        .62752E-01    .10162E-04   -.93667    
   4  Prefactor     1.0239        .64165E-01    .10147E-04   -.91936    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.87718e-09
Minuit parameter uncertainties:
  1  10.4155
  2  0.817605
  3  0.0627567
  4  0.0641694
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/896471': 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) = 71531.375047
delta logL = 0.100419547438

Extracting fit parameters...

4FGL J1608.0+4949
   Spectrum: PowerLaw
308    Prefactor:  8.497e+00  1.042e+01  1.000e-04  1.000e+04 ( 1.000e-14)
309        Index:  1.887e+00  8.176e-01  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.024e+00  6.417e-02  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.811e-01  6.276e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.51
Ra Dec: 242.014 49.829
Photon Index (Free Index): 1.89 +/- 0.82
Photon Flux (Free Index): 1.82e-09 +/- 3.49e-09
Energy Flux (Free Index): 1.69e-06 +/- 2.48e-06

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/896471/cmap_HighResolution_669859201_672451201_4FGL_J1608.0+4949_monthly_bin167.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.08e-03', comment='SUCCESS', photon_flux='3.22e-09', energy_flux2='1.69e-06', photon_flux_error='3.94e-09', dlogl='1.00e-01', energy_flux='1.29e-06', photon_flux2='1.82e-09', job_status='DONE', time_completed='2022-04-24 04:55:31.204661', photon_index_error2='0.82', photon_index2='1.89', ts='1.32', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='1.41e-08', energy_flux_error2='2.48e-06', EG='0.98', time_epoch_completed='1650801331.2', return_code='0', job_id='896471', GAL2='1.02', EG2='0.98', return_code2='0', energy_flux_error='1.58e-06', photon_flux_error2='3.49e-09', ts2='1.51', photon_index='2.27' WHERE bin_id='167' AND source_name='4FGL J1608.0+4949' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sun Apr 24 04:55:31 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0161>
Subject: Job 896471: <4FGL_J1608.0+4949_monthly_bin167> in cluster <slac> Done

Job <4FGL_J1608.0+4949_monthly_bin167> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Apr 24 01:55:28 2022
Job was executed on host(s) <bullet0161>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Apr 24 02:30:01 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Apr 24 02:30:01 2022
Terminated at Sun Apr 24 04:55:32 2022
Results reported at Sun Apr 24 04:55:32 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1608.0+4949_monthly_bin167 242.014 49.829 669859201 672451201 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 :                                   8586.00 sec.
    Max Memory :                                 1100 MB
    Average Memory :                             408.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   8730 sec.
    Turnaround time :                            10804 sec.

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

