/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 182 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 = 7446
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1608.0+4949_daily_bin693
RA = 242.014, Dec = 49.829
tmin = 418953601, tmax = 419212801
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='39127', job_status='RUN', time_executed='2021-09-13 08:54:10.895786', time_epoch_executed='1631548450.9' WHERE source_name='4FGL J1608.0+4949' and cadence='daily' and bin_id='693'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/39127

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/39127/ft1_4FGL_J1608.0+4949_daily_bin693.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/39127/ft2_4FGL_J1608.0+4949_daily_bin693.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/39127/ft1_4FGL_J1608.0+4949_daily_bin693.fits outfile=/scratch/kocevski/39127/ft1_filteredMKT_4FGL_J1608.0+4949_daily_bin693.fits ra=242.014 dec=49.829 rad=12.0 tmin=418953601.0 tmax=419212801.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 5.59
user 5.29
sys 0.26

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/39127/ft1_filtered_4FGL_J1608.0+4949_daily_bin693.fits evtable="EVENTS" scfile=/scratch/kocevski/39127/ft2_4FGL_J1608.0+4949_daily_bin693.fits sctable="SC_DATA" expcube=/scratch/kocevski/39127/ltcube_418953601_419212801_4FGL_J1608.0+4949_daily_bin693.fits outfile=/scratch/kocevski/39127/expmap_418953601_419212801_4FGL_J1608.0+4949_daily_bin693.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/39127/ltcube_418953601_419212801_4FGL_J1608.0+4949_daily_bin693.fits
.....................!
real 191.70
user 185.80
sys 5.19

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/39127/ft1_filtered_4FGL_J1608.0+4949_daily_bin693.fits scfile=/scratch/kocevski/39127/ft2_4FGL_J1608.0+4949_daily_bin693.fits outfile=/scratch/kocevski/39127/cmap_418953601_419212801_4FGL_J1608.0+4949_daily_bin693.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.92
user 0.38
sys 0.36

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/39127/ft1_filtered_4FGL_J1608.0+4949_daily_bin693.fits scfile=/scratch/kocevski/39127/ft2_4FGL_J1608.0+4949_daily_bin693.fits outfile=/scratch/kocevski/39127/cmap_HighResolution_418953601_419212801_4FGL_J1608.0+4949_daily_bin693.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.59
user 0.39
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .14056E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.4795       1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.1579       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.761       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    103.40       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.1411       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.7252       1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    17.092       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.5995       1.0000         .10000E-03   10000.    
    22 'Prefactor '    74.270       1.0000         .10000E-03   10000.    
    23 'norm      '    .10058E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10185E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .16147E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .91356E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    1.1819       1.0000         .10000E-03   10000.    
    30 'Prefactor '    12.224       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .58849       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.1307       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=   2580.322     FROM MIGRAD    STATUS=CONVERGED    835 CALLS     4350 TOTAL
                     EDM=   .75E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.609        .17484E-06** at limit **
   2  norm          .10000E-03    .96885        .64792E-07** at limit **
   3  Prefactor     .10000E-03    18.484        .15571E-06** at limit **
   4  Prefactor     .10000E-03    20.575        .10757E-05** at limit **
   5  Prefactor     1.4813        7.4725        .13650E-05   -.13295E-04
   6  norm          .10000E-03    1.8313        .30405E-07** at limit **
   7  Prefactor     8.1584        8.3609       -.19318E-07   -.67941E-05
   8  Prefactor     .10000E-03    12.306        .15034E-06** at limit **
   9  Prefactor     17.764        20.289        .25461E-06   -.16363E-04
  10  Prefactor     .10000E-03    24.316        .10638E-06** at limit **
  11  Prefactor     .10000E-03    7.0815       -.70206E-07** at limit **
  12  norm          .10000E-03    13.178       -.45669E-06** at limit **
  13  Prefactor     .10000E-03    61.218        .82295E-07** at limit **
  14  Prefactor     103.40        107.96       -.17958E-06   -.77072E-05
  15  Prefactor     8.1400        13.220        .33394E-07   -.18703E-04
  16  Prefactor     .10000E-03    76.000        .59401E-07** at limit **
  17  Prefactor     .10000E-03    5.1987       -.80890E-07** at limit **
  18  Prefactor     6.7281        6.2595       -.17979E-06   -.16819E-03
  19  norm          .10000E-03    17.886       -.53656E-07** at limit **
  20  norm          17.096        19.042       -.85251E-07   -.20930E-04
  21  Prefactor     8.5988        8.7365        .16581E-05   -.74007E-04
  22  Prefactor     74.228        36.569       -.40347E-06   -.15644E-03
  23  norm          .10000E-03    45.839       -.49329E-07** at limit **
  24  Prefactor     .10000E-03    1.0811        .15215E-06** at limit **
  25  Prefactor     .10000E-03    1.4336        .24237E-06** at limit **
  26  Prefactor     .10000E-03    3.3107       -.12924E-06** at limit **
  27  Prefactor     .10000E-03    4.7893        .20638E-06** at limit **
  28  Prefactor     .10000E-03    141.04       -.42224E-05** at limit **
  29  norm          1.1812        1.6586       -.12554E-06   -.12538E-03
  30  Prefactor     12.228        16.982       -.11638E-06   -.31423E-04
  31  Normalizat    .58850        .29110        .12176E-05   -.91447E-04
  32  Prefactor     1.1307        .28325       -.22032E-05   -.23683E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.48134
  norm       = 0.0001
  Prefactor  = 8.15844
  Prefactor  = 0.0001
  Prefactor  = 17.7644
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 103.399
  Prefactor  = 8.13999
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.72807
  norm       = 0.0001
  norm       = 17.0958
  Prefactor  = 8.5988
  Prefactor  = 74.2275
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.18119
  Prefactor  = 12.2277
  Normalizat = 0.588505
  Prefactor  = 1.13066
 **********
 **   18 **HESSE 
 **********

 FCN=   2580.322     FROM HESSE     STATUS=OK           657 CALLS     5007 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .97947        .48831E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    18.815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    21.499        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.4813        7.4865        .26737E-03   -1.5465    
   6  norm          .10000E-03    1.8347        .67117E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.1584        8.3578        .14037E-03   -1.5137    
   8  Prefactor     .10000E-03    12.326        .17415E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     17.764        20.352        .95036E-04   -1.4865    
  10  Prefactor     .10000E-03    24.375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.0878        .13202E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    13.268        .18010E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    61.354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     103.40        107.96        .19771E-03   -1.3671    
  15  Prefactor     8.1400        13.183        .14051E-03   -1.5137    
  16  Prefactor     .10000E-03    76.235        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.2051        .11311E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.7281        6.1390        .11331E-03   -1.5189    
  19  norm          .10000E-03    17.887        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          17.096        18.992        .96878E-04   -1.4881    
  21  Prefactor     8.5988        8.7580        .68347E-03   -1.5121    
  22  Prefactor     74.228        36.790        .23294E-03   -1.3983    
  23  norm          .10000E-03    45.865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    1.4143        .98188E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    2.1317        .11129E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    3.3232        .90280E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    8.3816        .20887E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    144.89        .41641E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          1.1812        1.6139        .72340E-04   -1.5491    
  30  Prefactor     12.228        16.831        .11457E-03   -1.5008    
  31  Normalizat    .58850        .33803        .30912E-03   -1.0847    
  32  Prefactor     1.1307        .32819        .23122E-03   -.88493    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.33756e-10
Minuit parameter uncertainties:
  1  4.74877e-05
  2  4.59966e-07
  3  1.04767e-06
  4  4.90412e-05
  5  6.66145
  6  2.11952e-07
  7  8.35902
  8  4.24842e-05
  9  20.3604
  10  2.16995e-05
  11  3.87096e-06
  12  4.41457e-05
  13  0.00025169
  14  108.162
  15  13.1876
  16  3.58002e-05
  17  7.53776e-07
  18  6.13958
  19  5.32315e-06
  20  18.9988
  21  8.75932
  22  36.8008
  23  8.03638e-05
  24  1.19627e-05
  25  2.58901e-05
  26  4.47916e-06
  27  8.15739e-05
  28  0.000184025
  29  1.61399
  30  16.8373
  31  0.339221
  32  0.328782
Done.

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

Extracting fit parameters...

4FGL J1608.0+4949
   Spectrum: PowerLaw
308    Prefactor:  1.034e+02  1.082e+02  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.131e+00  3.288e-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:  5.885e-01  3.392e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.82
Ra Dec: 242.014 49.829
Photon Index (Fixed Index): 2.27 +/- 0.00
Photon Flux (Fixed Index): 4.48e-08 +/- 4.68e-08
Energy Flux (Fixed Index): 1.79e-05 +/- 1.87e-05

TS (Fixed Index): 2.82
Ra Dec: 242.014 49.829
Photon Flux Upper Limit: 1.85e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.41e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/39127/likelihoodResults_418953601_419212801_4FGL_J1608.0+4949_daily_bin693.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) = 2580.31711106
delta logL = 0.00439805790029

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2580.31242293
delta logL = 0.00908618618405

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    118.44       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1367       1.0000          .0000       10.000    
     3 'Normalizat'    .59310       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1278       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=   2580.312     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      267 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     118.45        169.94        .18487E-03   -.50549E-04
   2  Index         2.1366        .98072        .72545E-02   -.54408E-04
   3  Normalizat    .59338        .31863        .30790E-03    .49255E-04
   4  Prefactor     1.1275        .32270        .23150E-03    .82101E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 118.447
  Index      = 2.13656
  Normalizat = 0.593381
  Prefactor  = 1.12751
 **********
 **   18 **HESSE 
 **********

 FCN=   2580.312     FROM HESSE     STATUS=OK            25 CALLS      292 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     118.45        162.92        .36975E-04   -1.3527    
   2  Index         2.1366        .94033        .29018E-03   -.60978    
   3  Normalizat    .59338        .31861        .12316E-04   -1.0827    
   4  Prefactor     1.1275        .32283        .46300E-04   -.88592    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34783e-10
Minuit parameter uncertainties:
  1  163.546
  2  0.948784
  3  0.319599
  4  0.323388
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/39127': 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) = 2580.3124225
delta logL = 0.00908661693484

Extracting fit parameters...

4FGL J1608.0+4949
   Spectrum: PowerLaw
308    Prefactor:  1.184e+02  1.635e+02  1.000e-04  1.000e+04 ( 1.000e-14)
309        Index:  2.137e+00  9.488e-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.128e+00  3.234e-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:  5.934e-01  3.196e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.83
Ra Dec: 242.014 49.829
Photon Index (Free Index): 2.14 +/- 0.95
Photon Flux (Free Index): 3.98e-08 +/- 5.51e-08
Energy Flux (Free Index): 2.02e-05 +/- 2.97e-05

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/39127/cmap_HighResolution_418953601_419212801_4FGL_J1608.0+4949_daily_bin693.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.41e-02', comment='SUCCESS', photon_flux='4.48e-08', energy_flux2='2.02e-05', photon_flux_error='4.68e-08', dlogl='9.09e-03', energy_flux='1.79e-05', photon_flux2='3.98e-08', job_status='DONE', time_completed='2021-09-13 09:04:45.026360', photon_index_error2='0.95', photon_index2='2.14', ts='2.82', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', photon_flux_upper_limit='1.85e-07', energy_flux_error2='2.97e-05', EG='0.59', time_epoch_completed='1631549085.03', return_code='0', job_id='39127', GAL2='1.13', EG2='0.59', return_code2='0', energy_flux_error='1.87e-05', photon_flux_error2='5.51e-08', ts2='2.83', photon_index='2.27' WHERE bin_id='693' AND source_name='4FGL J1608.0+4949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 09:04:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0284>
Subject: Job 39127: <4FGL_J1608.0+4949_daily_bin693> in cluster <slac> Done

Job <4FGL_J1608.0+4949_daily_bin693> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep 13 08:50:23 2021
Job was executed on host(s) <bullet0284>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 13 08:50:58 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep 13 08:50:58 2021
Terminated at Mon Sep 13 09:04:45 2021
Results reported at Mon Sep 13 09:04:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1608.0+4949_daily_bin693 242.014 49.829 418953601 419212801 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 :                                   632.20 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             268.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   827 sec.
    Turnaround time :                            862 sec.

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

