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


Performing analysis on: 4FGL_J1608.0+4949_daily_bin653
RA = 242.014, Dec = 49.829
tmin = 408585601, tmax = 408844801
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='39069', job_status='RUN', time_executed='2021-09-13 08:50:41.894772', time_epoch_executed='1631548241.89' WHERE source_name='4FGL J1608.0+4949' and cadence='daily' and bin_id='653'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/39069

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/39069/ft1_4FGL_J1608.0+4949_daily_bin653.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/39069/ft2_4FGL_J1608.0+4949_daily_bin653.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/39069/ft1_4FGL_J1608.0+4949_daily_bin653.fits outfile=/scratch/kocevski/39069/ft1_filteredMKT_4FGL_J1608.0+4949_daily_bin653.fits ra=242.014 dec=49.829 rad=12.0 tmin=408585601.0 tmax=408844801.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 4.36
user 4.12
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/39069/ft1_filtered_4FGL_J1608.0+4949_daily_bin653.fits" evtable="EVENTS" scfile=/scratch/kocevski/39069/ft2_4FGL_J1608.0+4949_daily_bin653.fits sctable="SC_DATA" outfile=/scratch/kocevski/39069/ltcube_408585601_408844801_4FGL_J1608.0+4949_daily_bin653.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/39069/ft2_4FGL_J1608.0+4949_daily_bin653.fits
.....................!
real 15.29
user 14.55
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/39069/ft1_filtered_4FGL_J1608.0+4949_daily_bin653.fits evtable="EVENTS" scfile=/scratch/kocevski/39069/ft2_4FGL_J1608.0+4949_daily_bin653.fits sctable="SC_DATA" expcube=/scratch/kocevski/39069/ltcube_408585601_408844801_4FGL_J1608.0+4949_daily_bin653.fits outfile=/scratch/kocevski/39069/expmap_408585601_408844801_4FGL_J1608.0+4949_daily_bin653.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/39069/ltcube_408585601_408844801_4FGL_J1608.0+4949_daily_bin653.fits
.....................!
real 193.20
user 186.90
sys 5.49

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/39069/ft1_filtered_4FGL_J1608.0+4949_daily_bin653.fits scfile=/scratch/kocevski/39069/ft2_4FGL_J1608.0+4949_daily_bin653.fits outfile=/scratch/kocevski/39069/cmap_408585601_408844801_4FGL_J1608.0+4949_daily_bin653.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.59
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/39069/ft1_filtered_4FGL_J1608.0+4949_daily_bin653.fits scfile=/scratch/kocevski/39069/ft2_4FGL_J1608.0+4949_daily_bin653.fits outfile=/scratch/kocevski/39069/cmap_HighResolution_408585601_408844801_4FGL_J1608.0+4949_daily_bin653.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=242.014 yref=49.829 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.57
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.102       1.0000         .10000E-03   10000.    
     2 'norm      '    4.3331       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10220E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13405E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    240.57       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.1480       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    78.892       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.4328       1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.3611       1.0000         .10000E-03   10000.    
    23 'norm      '    46.339       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10403E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    5.8885       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .11209E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    26.215       1.0000         .10000E-03   10000.    
    29 'norm      '    .19153       1.0000         .10000E-03   10000.    
    30 'Prefactor '    11.212       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.3249       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .50025       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=   1985.804     FROM MIGRAD    STATUS=CONVERGED    824 CALLS     5159 TOTAL
                     EDM=   .86E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.989        76.289       -.31765E-05   -.55407E-04
   2  norm          4.3327        4.2446       -.17690E-06   -.55225E-04
   3  Prefactor     .10000E-03    43.867       -.49940E-06** at limit **
   4  Prefactor     .10000E-03    13.132       -.64566E-05** at limit **
   5  Prefactor     .10000E-03    13.223       -.38970E-06** at limit **
   6  norm          .10000E-03    6.1777       -.23215E-06** at limit **
   7  Prefactor     .10000E-03    5.9196       -.15205E-06** at limit **
   8  Prefactor     .10000E-03    32.859       -.26032E-06** at limit **
   9  Prefactor     .10000E-03    7.5777       -.12172E-06** at limit **
  10  Prefactor     .10000E-03    51.920        .14659E-05** at limit **
  11  Prefactor     .10000E-03    15.987        .51667E-07** at limit **
  12  norm          .10000E-03    14.000       -.77868E-06** at limit **
  13  Prefactor     240.51        138.77       -.56780E-06   -.35155E-04
  14  Prefactor     .10000E-03    73.368       -.11857E-06** at limit **
  15  Prefactor     9.1458        8.6136       -.78157E-06   -.18955E-03
  16  Prefactor     .10000E-03    13.954        .16533E-06** at limit **
  17  Prefactor     .10000E-03    13.179        .27976E-06** at limit **
  18  Prefactor     .10000E-03    1.5000        .14083E-06** at limit **
  19  norm          78.886        54.260       -.97400E-07   -.36640E-04
  20  norm          .10000E-03    12.492        .11284E-06** at limit **
  21  Prefactor     5.4313        7.6405       -.37042E-06   -.27467E-03
  22  Prefactor     9.3599        9.3187       -.15006E-06   -.55418E-05
  23  norm          46.359        55.765       -.23663E-05   -.23078E-03
  24  Prefactor     .10000E-03    1.0187        .94336E-06** at limit **
  25  Prefactor     .10000E-03    1.1142        .38514E-06** at limit **
  26  Prefactor     5.8855        10.814       -.56575E-06   -.21901E-03
  27  Prefactor     .10001E-03    6.4725        .41926E-05** at limit **
  28  Prefactor     26.211        30.426       -.29660E-06   -.50155E-04
  29  norm          .19191        1.6271        .50423E-06   -.24381E-03
  30  Prefactor     11.209        13.975       -.10049E-05   -.36512E-03
  31  Normalizat    1.3255        .38082        .98544E-05   -.49562E-03
  32  Prefactor     .49964        .33466       -.15391E-04   -.25399E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.9893
  norm       = 4.33272
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 240.506
  Prefactor  = 0.0001
  Prefactor  = 9.14578
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 78.8861
  norm       = 0.0001
  Prefactor  = 5.43133
  Prefactor  = 9.35993
  norm       = 46.3586
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.88553
  Prefactor  = 0.000100008
  Prefactor  = 26.2114
  norm       = 0.191914
  Prefactor  = 11.2088
  Normalizat = 1.32555
  Prefactor  = 0.499637
 **********
 **   18 **HESSE 
 **********

 FCN=   1985.804     FROM HESSE     STATUS=OK           647 CALLS     5806 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.989        76.404        .85200E-04   -1.4770    
   2  norm          4.3327        4.2465        .87241E-04   -1.5292    
   3  Prefactor     .10000E-03    44.257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    13.648        .16036E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.249        .15830E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    6.2625        .10807E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.9225        .10590E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    33.123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.5804        .11982E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    52.236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    16.050        .17404E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    14.057        .16283E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     240.51        138.75        .13053E-03   -1.2594    
  14  Prefactor     .10000E-03    73.390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.1458        8.6128        .61517E-03   -1.5103    
  16  Prefactor     .10000E-03    13.959        .16262E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    13.258        .15792E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.5013        .53305E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          78.886        54.203        .22607E-03   -1.3929    
  20  norm          .10000E-03    12.495        .15387E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.4313        7.5994        .13398E-03   -1.5242    
  22  Prefactor     9.3599        9.3207        .13099E-03   -1.5096    
  23  norm          46.359        55.829        .29450E-03   -1.4345    
  24  Prefactor     .10000E-03    1.2329        .86198E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    1.1307        .45788E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     5.8855        10.493        .15743E-03   -1.5223    
  27  Prefactor     .10001E-03    9.7583        .19869E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     26.211        30.347        .78240E-04   -1.4684    
  29  norm          .19191        2.6100        .97356E-03   -1.5620    
  30  Prefactor     11.209        13.820        .11965E-03   -1.5038    
  31  Normalizat    1.3255        .40537        .23074E-03   -.82807    
  32  Prefactor     .49964        .35936        .33183E-03   -1.1199    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.2907e-09
Minuit parameter uncertainties:
  1  76.7473
  2  4.24683
  3  3.16064e-05
  4  0.000476995
  5  5.15642e-05
  6  2.09332e-05
  7  4.96326e-06
  8  0.000193844
  9  1.08406e-05
  10  0.000540827
  11  4.4166e-05
  12  5.71686e-05
  13  138.942
  14  0.000264002
  15  8.61393
  16  2.03155e-05
  17  1.14466e-05
  18  1.90278e-06
  19  54.2372
  20  1.36274e-05
  21  7.60073
  22  9.32211
  23  55.8918
  24  8.23828e-06
  25  6.05339e-07
  26  10.4958
  27  0.000548959
  28  30.3652
  29  1.41519
  30  13.8236
  31  0.406349
  32  0.36101
Done.

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

Extracting fit parameters...

4FGL J1608.0+4949
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  2.640e-04  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:  4.996e-01  3.610e-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:  1.326e+00  4.063e-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: 1.29e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.87e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/39069/likelihoodResults_408585601_408844801_4FGL_J1608.0+4949_daily_bin653.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1985.80358153
delta logL = -6.46978926397e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1985.80351689
delta logL = -6.39620338916e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10830E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2203       1.0000          .0000       10.000    
     3 'Normalizat'    1.3255       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .49964       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6800E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1985.804     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      237 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1861.1        .90712E-02** at limit **
   2  Index         2.2245        7.3443        .50000       -.55273E-06
   3  Normalizat    1.3256        .43668E-01    .52188E-01    .66576E-05
   4  Prefactor     .49963        .40443E-01    .74936E-01    .72201E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  Index      = 2.22447
  Normalizat = 1.32555
  Prefactor  = 0.499634
 **********
 **   18 **HESSE 
 **********

 FCN=   1985.804     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      270 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7828.7        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2245        8.7844        .50000       -.58849    
   3  Normalizat    1.3256        .93001E-01    .23073E-03   -.82807    
   4  Prefactor     .49963        .85940E-01    .33184E-03   -1.1199    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.91462e-09
Minuit parameter uncertainties:
  1  0.0120197
  2  42.0821
  3  0.0930127
  4  0.0859621
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/39069': 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) = 1985.80351683
delta logL = -6.33667696093e-09

Extracting fit parameters...

4FGL J1608.0+4949
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  1.202e-02  1.000e-04  1.000e+04 ( 1.000e-14)
309        Index:  2.224e+00  4.208e+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:  4.996e-01  8.596e-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:  1.326e+00  9.301e-02  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/39069/cmap_HighResolution_408585601_408844801_4FGL_J1608.0+4949_daily_bin653.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.87e-03', job_status='DONE', photon_flux_upper_limit='1.29e-07', time_completed='2021-09-13 09:00:30.336807', job_id='39069', GAL2='0.50', fit_tolerance='1e-08', EG2='1.33', EG='1.33', time_epoch_completed='1631548830.34', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.50', dlogl='-6.34e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='653' AND source_name='4FGL J1608.0+4949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 09:00:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 39069: <4FGL_J1608.0+4949_daily_bin653> in cluster <slac> Done

Job <4FGL_J1608.0+4949_daily_bin653> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep 13 08:50:19 2021
Job was executed on host(s) <bullet0260>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 13 08:50:33 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:33 2021
Terminated at Mon Sep 13 09:00:30 2021
Results reported at Mon Sep 13 09:00:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1608.0+4949_daily_bin653 242.014 49.829 408585601 408844801 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 :                                   586.53 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             300.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   597 sec.
    Turnaround time :                            611 sec.

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

