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


Performing analysis on: 4FGL_J1608.0+4949_daily_bin806
RA = 242.014, Dec = 49.829
tmin = 448243201, tmax = 448502401
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='40529', job_status='RUN', time_executed='2021-09-13 08:55:38.940962', time_epoch_executed='1631548538.94' WHERE source_name='4FGL J1608.0+4949' and cadence='daily' and bin_id='806'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/40529

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/40529/ft1_4FGL_J1608.0+4949_daily_bin806.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/40529/ft2_4FGL_J1608.0+4949_daily_bin806.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/40529/ft1_4FGL_J1608.0+4949_daily_bin806.fits outfile=/scratch/kocevski/40529/ft1_filteredMKT_4FGL_J1608.0+4949_daily_bin806.fits ra=242.014 dec=49.829 rad=12.0 tmin=448243201.0 tmax=448502401.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.33
user 5.04
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/40529/ft1_filtered_4FGL_J1608.0+4949_daily_bin806.fits" evtable="EVENTS" scfile=/scratch/kocevski/40529/ft2_4FGL_J1608.0+4949_daily_bin806.fits sctable="SC_DATA" outfile=/scratch/kocevski/40529/ltcube_448243201_448502401_4FGL_J1608.0+4949_daily_bin806.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/40529/ft2_4FGL_J1608.0+4949_daily_bin806.fits
.....................!
real 12.57
user 12.21
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/40529/ft1_filtered_4FGL_J1608.0+4949_daily_bin806.fits evtable="EVENTS" scfile=/scratch/kocevski/40529/ft2_4FGL_J1608.0+4949_daily_bin806.fits sctable="SC_DATA" expcube=/scratch/kocevski/40529/ltcube_448243201_448502401_4FGL_J1608.0+4949_daily_bin806.fits outfile=/scratch/kocevski/40529/expmap_448243201_448502401_4FGL_J1608.0+4949_daily_bin806.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/40529/ltcube_448243201_448502401_4FGL_J1608.0+4949_daily_bin806.fits
.....................!
real 192.89
user 186.84
sys 5.24

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/40529/ft1_filtered_4FGL_J1608.0+4949_daily_bin806.fits scfile=/scratch/kocevski/40529/ft2_4FGL_J1608.0+4949_daily_bin806.fits outfile=/scratch/kocevski/40529/cmap_448243201_448502401_4FGL_J1608.0+4949_daily_bin806.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.55
user 0.37
sys 0.16

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

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

This is gtbin version HEAD
real 0.56
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.654       1.0000         .10000E-03   10000.    
     2 'norm      '    .22617E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.4103       1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.953       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.3133       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.254       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.8143       1.0000         .10000E-03   10000.    
    12 'norm      '    13.846       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10640E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    36.922       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .69434E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.0652       1.0000         .10000E-03   10000.    
    19 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.7008       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.9863       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    33.174       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .95156       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .12039E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    5.7540       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .54926       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.4353       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=   5280.065     FROM MIGRAD    STATUS=CONVERGED    895 CALLS     4492 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.649        33.833        .34446E-05    .25736E-04
   2  norm          .10000E-03    1.3540       -.20019E-06** at limit **
   3  Prefactor     .10000E-03    8.7781       -.21865E-08** at limit **
   4  Prefactor     7.4109        9.3307       -.55435E-06   -.14988E-03
   5  Prefactor     17.956        14.627       -.10936E-05    .11771E-04
   6  norm          .10000E-03    1.5102        .18171E-07** at limit **
   7  Prefactor     .10000E-03    3.8958        .98248E-07** at limit **
   8  Prefactor     8.3137        21.646       -.75176E-06    .42256E-06
   9  Prefactor     13.256        14.949       -.17887E-05   -.25134E-05
  10  Prefactor     .10000E-03    49.923       -.35289E-06** at limit **
  11  Prefactor     4.8148        10.968       -.36078E-06   -.18455E-03
  12  norm          13.846        11.277       -.67209E-07    .10405E-04
  13  Prefactor     .10000E-03    20.190       -.12246E-06** at limit **
  14  Prefactor     .10000E-03    109.93        .31467E-06** at limit **
  15  Prefactor     .10000E-03    12.680        .78491E-06** at limit **
  16  Prefactor     36.931        30.868       -.51207E-05   -.74494E-05
  17  Prefactor     .10008E-03    7.9432       -.10118E-06** at limit **
  18  Prefactor     2.0647        3.4407       -.18003E-06    .15696E-04
  19  norm          .10000E-03    14.939       -.13445E-06** at limit **
  20  norm          3.6993        13.187        .30461E-05    .66679E-05
  21  Prefactor     2.9844        3.0470        .30746E-06   -.73774E-03
  22  Prefactor     .10000E-03    2.8677       -.14139E-07** at limit **
  23  norm          33.164        48.104        .16911E-05    .36317E-04
  24  Prefactor     .10000E-03    .38214       -.49669E-08** at limit **
  25  Prefactor     .10000E-03    .41770       -.16697E-07** at limit **
  26  Prefactor     .10000E-03    1.2586       -.22552E-08** at limit **
  27  Prefactor     .95334        3.3649       -.63639E-06   -.43787E-05
  28  Prefactor     .10000E-03    5.2294       -.13932E-07** at limit **
  29  norm          .10000E-03    .67435       -.10812E-06** at limit **
  30  Prefactor     5.7501        9.0520       -.14833E-06   -.17155E-03
  31  Normalizat    .54914        .22866        .34084E-05    .94550E-04
  32  Prefactor     1.4353        .20619       -.47662E-06    .21844E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.6491
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 7.41091
  Prefactor  = 17.9557
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.31375
  Prefactor  = 13.2564
  Prefactor  = 0.0001
  Prefactor  = 4.81483
  norm       = 13.8462
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 36.9314
  Prefactor  = 0.000100078
  Prefactor  = 2.06474
  norm       = 0.0001
  norm       = 3.69933
  Prefactor  = 2.98445
  Prefactor  = 0.0001
  norm       = 33.1636
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.953344
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.75008
  Normalizat = 0.549138
  Prefactor  = 1.43535
 **********
 **   18 **HESSE 
 **********

 FCN=   5280.065     FROM HESSE     STATUS=OK           673 CALLS     5165 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.649        33.385        .10463E-03   -1.4942    
   2  norm          .10000E-03    19.511        .16178E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.7887        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.4109        9.5025        .73666E-03   -1.5163    
   5  Prefactor     17.956        14.663        .94527E-04   -1.4860    
   6  norm          .10000E-03    1.5133        .87183E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.9013        .13998E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.3137        21.591        .13904E-03   -1.5131    
   9  Prefactor     13.256        14.913        .11002E-03   -1.4980    
  10  Prefactor     .10000E-03    51.267        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.8148        11.523        .91675E-03   -1.5269    
  12  norm          13.846        11.302        .10764E-03   -1.4964    
  13  Prefactor     .10000E-03    20.196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    110.04        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    13.005        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     36.931        30.870        .65957E-04   -1.4492    
  17  Prefactor     .10008E-03    11.685        .54109E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.0647        3.4067        .16126E-03   -1.5421    
  19  norm          .10000E-03    14.977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.6993        13.137        .20993E-03   -1.5323    
  21  Prefactor     2.9844        5.6771        .10921E-02   -1.5362    
  22  Prefactor     .10000E-03    2.8760        .12016E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          33.164        47.108        .69572E-04   -1.4556    
  24  Prefactor     .10000E-03    .38552        .43709E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    .42076        .45699E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    1.2666        .79539E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .95334        4.0626        .20623E-02   -1.5513    
  28  Prefactor     .10000E-03    5.2381        .16228E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    3.5896        .10892E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     5.7501        9.1534        .83720E-03   -1.5228    
  31  Normalizat    .54914        .26186        .34655E-03   -1.1019    
  32  Prefactor     1.4353        .23798        .22273E-03   -.79367    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.58988e-08
Minuit parameter uncertainties:
  1  33.4275
  2  0.000266284
  3  4.97795e-06
  4  9.50448
  5  14.6654
  6  2.26685e-06
  7  1.45062e-05
  8  21.611
  9  14.9176
  10  2.28299e-05
  11  11.5278
  12  11.304
  13  7.91063e-06
  14  8.45283e-05
  15  0.000302142
  16  30.8836
  17  0.00191414
  18  3.40704
  19  6.00649e-06
  20  13.147
  21  5.67807
  22  4.08955e-06
  23  47.1609
  24  9.7616e-07
  25  8.288e-07
  26  1.05167e-06
  27  3.93625
  28  3.66003e-06
  29  9.00143e-06
  30  9.15562
  31  0.262453
  32  0.23816
Done.

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

Extracting fit parameters...

4FGL J1608.0+4949
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  8.453e-05  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.435e+00  2.382e-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.491e-01  2.625e-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.01e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.71e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/40529/likelihoodResults_448243201_448502401_4FGL_J1608.0+4949_daily_bin806.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) = 5280.06511385
delta logL = -4.31727421528e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5280.0650707
delta logL = -2.30702426052e-08

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 'Index     '    2.3069       1.0000          .0000       10.000    
     3 'Normalizat'    .54914       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4353       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=   5280.065     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      248 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9747.7        .90712E-02** at limit **
   2  Index         2.2765        5.9335        .50000        .23981E-05
   3  Normalizat    .54914        .89446E-01    .78260E-01    .30105E-04
   4  Prefactor     1.4353        .89252E-01    .50385E-01   -.22622E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.27651
  Normalizat = 0.549139
  Prefactor  = 1.43534
 **********
 **   18 **HESSE 
 **********

 FCN=   5280.065     FROM HESSE     STATUS=OK            33 CALLS      281 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    109.26        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2765        6.1372        .50000       -.57603    
   3  Normalizat    .54914        .23117        .34655E-03   -1.1019    
   4  Prefactor     1.4353        .23170        .22273E-03   -.79367    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0493e-11
Minuit parameter uncertainties:
  1  0.000590328
  2  4.29388
  3  0.231574
  4  0.231869
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/40529': 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) = 5280.06507068
delta logL = -5.40330802323e-09

Extracting fit parameters...

4FGL J1608.0+4949
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  5.903e-04  1.000e-04  1.000e+04 ( 1.000e-14)
309        Index:  2.277e+00  4.294e+00  0.000e+00  1.000e+01 (-1.000e+00)
310        Scale:  1.615e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
677    Prefactor:  1.435e+00  2.319e-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.491e-01  2.316e-01  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/40529/cmap_HighResolution_448243201_448502401_4FGL_J1608.0+4949_daily_bin806.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.71e-03', job_status='DONE', photon_flux_upper_limit='1.01e-07', time_completed='2021-09-13 09:11:04.285898', job_id='40529', GAL2='1.44', fit_tolerance='1e-08', EG2='0.55', EG='0.55', time_epoch_completed='1631549464.29', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.44', dlogl='-5.40e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='806' AND source_name='4FGL J1608.0+4949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 09:11:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 40529: <4FGL_J1608.0+4949_daily_bin806> in cluster <slac> Done

Job <4FGL_J1608.0+4949_daily_bin806> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep 13 08:55:14 2021
Job was executed on host(s) <bullet0235>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 13 08:55:22 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:55:22 2021
Terminated at Mon Sep 13 09:11:05 2021
Results reported at Mon Sep 13 09:11:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1608.0+4949_daily_bin806 242.014 49.829 448243201 448502401 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 :                                   923.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             335.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   943 sec.
    Turnaround time :                            951 sec.

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

