/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 78 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 = 7473
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1608.7+1029_daily_bin1626
RA = 242.176, Dec = 10.4938
tmin = 660787201, tmax = 661046401
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='164037', job_status='RUN', time_executed='2021-12-13 00:14:05.831561', time_epoch_executed='1639383245.83' WHERE source_name='4FGL J1608.7+1029' and cadence='daily' and bin_id='1626'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/164037

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/164037/ft1_4FGL_J1608.7+1029_daily_bin1626.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/164037/ft2_4FGL_J1608.7+1029_daily_bin1626.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/164037/ft1_4FGL_J1608.7+1029_daily_bin1626.fits outfile=/scratch/kocevski/164037/ft1_filteredMKT_4FGL_J1608.7+1029_daily_bin1626.fits ra=242.176 dec=10.4938 rad=12.0 tmin=660787201.0 tmax=661046401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.55
user 3.31
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/164037/ft2_4FGL_J1608.7+1029_daily_bin1626.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/164037/ft2_4FGL_J1608.7+1029_daily_bin1626.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/164037/ft1_filteredMKT_4FGL_J1608.7+1029_daily_bin1626.fits evtable="EVENTS" outfile="/scratch/kocevski/164037/ft1_filtered_4FGL_J1608.7+1029_daily_bin1626.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.55
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/164037/ft1_filtered_4FGL_J1608.7+1029_daily_bin1626.fits" evtable="EVENTS" scfile=/scratch/kocevski/164037/ft2_4FGL_J1608.7+1029_daily_bin1626.fits sctable="SC_DATA" outfile=/scratch/kocevski/164037/ltcube_660787201_661046401_4FGL_J1608.7+1029_daily_bin1626.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/164037/ft2_4FGL_J1608.7+1029_daily_bin1626.fits
.....................!
real 18.84
user 18.43
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/164037/ft1_filtered_4FGL_J1608.7+1029_daily_bin1626.fits evtable="EVENTS" scfile=/scratch/kocevski/164037/ft2_4FGL_J1608.7+1029_daily_bin1626.fits sctable="SC_DATA" expcube=/scratch/kocevski/164037/ltcube_660787201_661046401_4FGL_J1608.7+1029_daily_bin1626.fits outfile=/scratch/kocevski/164037/expmap_660787201_661046401_4FGL_J1608.7+1029_daily_bin1626.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/164037/ltcube_660787201_661046401_4FGL_J1608.7+1029_daily_bin1626.fits
.....................!
real 191.23
user 186.11
sys 4.75

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 158 point sources and 0 extended sources

Setting source of interest to:
4FGL J1608.7+1029 @ 242.176 10.4938

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/164037/ft1_filtered_4FGL_J1608.7+1029_daily_bin1626.fits scfile=/scratch/kocevski/164037/ft2_4FGL_J1608.7+1029_daily_bin1626.fits outfile=/scratch/kocevski/164037/cmap_660787201_661046401_4FGL_J1608.7+1029_daily_bin1626.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.176 yref=10.4938 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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/164037/ft1_filtered_4FGL_J1608.7+1029_daily_bin1626.fits scfile=/scratch/kocevski/164037/ft2_4FGL_J1608.7+1029_daily_bin1626.fits outfile=/scratch/kocevski/164037/cmap_HighResolution_660787201_661046401_4FGL_J1608.7+1029_daily_bin1626.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.176 yref=10.4938 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/164037/ft1_filtered_4FGL_J1608.7+1029_daily_bin1626.fits evtable="EVENTS" scfile=/scratch/kocevski/164037/ft2_4FGL_J1608.7+1029_daily_bin1626.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/164037/Model_4FGL_J1608.7+1029_daily_bin1626.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/164037/ft1_filtered_4FGL_J1608.7+1029_daily_bin1626.fits.....................!
real 65.34
user 63.94
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/164037/ft1_filtered_4FGL_J1608.7+1029_daily_bin1626.fits', '/scratch/kocevski/164037/ft2_4FGL_J1608.7+1029_daily_bin1626.fits', expMap='/scratch/kocevski/164037/expmap_660787201_661046401_4FGL_J1608.7+1029_daily_bin1626.fits', expCube='/scratch/kocevski/164037/ltcube_660787201_661046401_4FGL_J1608.7+1029_daily_bin1626.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/164037/Model_4FGL_J1608.7+1029_daily_bin1626.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1608.7+1029'

4FGL J1608.7+1029
   Spectrum: LogParabola
261         norm:  8.130e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
262        alpha:  2.458e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
263         beta:  1.591e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
264           Eb:  5.195e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/164037/ft1_filtered_4FGL_J1608.7+1029_daily_bin1626.fits
Spacecraft file(s): /scratch/kocevski/164037/ft2_4FGL_J1608.7+1029_daily_bin1626.fits
Exposure map: /scratch/kocevski/164037/expmap_660787201_661046401_4FGL_J1608.7+1029_daily_bin1626.fits
Exposure cube: /scratch/kocevski/164037/ltcube_660787201_661046401_4FGL_J1608.7+1029_daily_bin1626.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/164037/Model_4FGL_J1608.7+1029_daily_bin1626.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) = 8497.58008538

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    23.755       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.6283       1.0000         .10000E-03   10000.    
     4 'norm      '    9.3129       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .16511E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .32289E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    4.4762       1.0000         .10000E-03   10000.    
    10 'norm      '    4.1972       1.0000         .10000E-03   10000.    
    11 'norm      '    32.535       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    113.50       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.4842       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.4748       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.5502       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .98330       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5220E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8497.577     FROM MIGRAD    STATUS=CONVERGED    463 CALLS     2250 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.546        .43132E-09** at limit **
   2  Prefactor     23.734        29.532        .54167E-06   -.72076E-04
   3  Prefactor     5.5436        27.407        .53938E-05    .11255E-03
   4  norm          9.3116        3.6166       -.63750E-07   -.20150E-03
   5  Prefactor     .10000E-03    2.9034       -.58165E-06** at limit **
   6  Prefactor     .10000E-03    55.274        .12365E-05** at limit **
   7  norm          .10000E-03    2.5958       -.11946E-05** at limit **
   8  Prefactor     .10000E-03    72.020       -.22296E-05** at limit **
   9  norm          4.4757        6.5481        .34902E-07    .82186E-06
  10  norm          4.1969        2.0718        .24977E-07    .11292E-03
  11  norm          32.536        16.486        .22361E-07    .63244E-04
  12  norm          .10000E-03    66.339       -.17765E-05** at limit **
  13  Prefactor     .10000E-03    3.0320        .78622E-08** at limit **
  14  Prefactor     113.51        95.836       -.12822E-05    .11174E-04
  15  Prefactor     .10000E-03    17.451        .64618E-08** at limit **
  16  Prefactor     .10000E-03    5.7004        .12027E-06** at limit **
  17  Prefactor     2.4859        7.3198        .60536E-05   -.55366E-04
  18  Prefactor     .10000E-03    8.8385        .14024E-06** at limit **
  19  Prefactor     1.4761        7.4040        .47379E-06    .67403E-05
  20  Normalizat    1.5499        .25493        .11345E-05    .28623E-03
  21  Prefactor     .98334        .10939       -.84966E-06    .50449E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 23.7345
  Prefactor  = 5.54361
  norm       = 9.3116
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.4757
  norm       = 4.1969
  norm       = 32.5356
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 113.511
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.48586
  Prefactor  = 0.0001
  Prefactor  = 1.47613
  Normalizat = 1.54992
  Prefactor  = 0.983344
 **********
 **   18 **HESSE 
 **********

 FCN=   8497.577     FROM HESSE     STATUS=OK           317 CALLS     2567 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.555        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     23.734        29.537        .82186E-04   -1.4733    
   3  Prefactor     5.5436        27.871        .16933E-03   -1.5237    
   4  norm          9.3116        3.6197        .10504E-03   -1.5098    
   5  Prefactor     .10000E-03    7.6810        .30025E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    55.324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    6.9304        .28064E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    72.044        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.4757        6.5369        .19031E-03   -1.5285    
  10  norm          4.1969        2.0696        .89845E-04   -1.5298    
  11  norm          32.536        16.520        .70250E-04   -1.4567    
  12  norm          .10000E-03    66.281        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.0379        .15676E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     113.51        95.983        .37761E-04   -1.3573    
  15  Prefactor     .10000E-03    17.489        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.7386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.4859        7.3787        .12968E-02   -1.5393    
  18  Prefactor     .10000E-03    8.9615        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.4761        7.3875        .35368E-03   -1.5465    
  20  Normalizat    1.5499        .30653        .17932E-02   -.76385    
  21  Prefactor     .98334        .13066        .18856E-03   -.93287    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.43392e-10
Minuit parameter uncertainties:
  1  1.07969e-05
  2  29.555
  3  24.8784
  4  3.61981
  5  3.45726e-05
  6  0.000541283
  7  2.75301e-05
  8  0.000152954
  9  6.53794
  10  2.0696
  11  16.5223
  12  0.000104943
  13  6.16017e-07
  14  96.1151
  15  1.32449e-05
  16  7.40836e-06
  17  7.38144
  18  2.12231e-05
  19  6.6056
  20  0.306904
  21  0.130706
Done.

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

Extracting fit parameters...

4FGL J1608.7+1029
   Spectrum: LogParabola
261         norm:  3.254e+01  1.652e+01  1.000e-04  1.000e+04 ( 1.000e-12)
262        alpha:  2.458e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
263         beta:  1.591e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
264           Eb:  5.195e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
519    Prefactor:  9.833e-01  1.307e-01  0.000e+00  1.000e+01 ( 1.000e+00)
520        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
521        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
518   Normalization:  1.550e+00  3.069e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.29
Ra Dec: 242.176 10.494
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 1.04e-07 +/- 5.27e-08
Energy Flux (Fixed Index): 2.97e-05 +/- 1.51e-05

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) = 8497.46070217
delta logL = 0.116333681472

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8497.45891078
delta logL = 0.118125062774

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    29.131       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8401       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5018       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99737       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5220E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8497.459     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      266 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          29.154        215.28        .18558E-02   -.31146E-04
   2  alpha         2.8412        3.7657        .41643        .53735E-04
   3  Normalizat    1.5021        .14220        .82026E-01   -.57459E-04
   4  Prefactor     .99708        .44079E-01    .46234E-01   -.15022E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 29.154
  alpha      = 2.84117
  Normalizat = 1.5021
  Prefactor  = 0.997081
 **********
 **   18 **HESSE 
 **********

 FCN=   8497.459     FROM HESSE     STATUS=OK            31 CALLS      297 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          29.154        19.577        .74230E-04   -1.4628    
   2  alpha         2.8412        .86771        .16434E-01    .13689    
   3  Normalizat    1.5021        .31826        .36309E-03   -.77719    
   4  Prefactor     .99708        .13326        .18741E-03   -.92827    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.91186e-09
Minuit parameter uncertainties:
  1  19.5813
  2  0.886519
  3  0.318682
  4  0.1333
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/164037': 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) = 8497.45890219
delta logL = 0.11813365226

Extracting fit parameters...

4FGL J1608.7+1029
   Spectrum: LogParabola
261         norm:  2.915e+01  1.958e+01  1.000e-04  1.000e+04 ( 1.000e-12)
262        alpha:  2.841e+00  8.865e-01  0.000e+00  5.000e+00 ( 1.000e+00)
263         beta:  1.591e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
264           Eb:  5.195e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
519    Prefactor:  9.971e-01  1.333e-01  0.000e+00  1.000e+01 ( 1.000e+00)
520        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
521        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
518   Normalization:  1.502e+00  3.187e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.59
Ra Dec: 242.176 10.494
Photon Index (Free Index): 2.84 +/- 0.89
Photon Flux (Free Index): 1.36e-07 +/- 8.78e-08
Energy Flux (Free Index): 3.05e-05 +/- 1.43e-05

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/164037/cmap_HighResolution_660787201_661046401_4FGL_J1608.7+1029_daily_bin1626.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.04e-07', energy_flux2='3.05e-05', photon_flux_error='5.27e-08', dlogl='1.18e-01', energy_flux='2.97e-05', photon_flux2='1.36e-07', job_status='DONE', time_completed='2021-12-13 00:24:46.838360', photon_index_error2='0.89', photon_index2='2.84', ts='8.29', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='1.43e-05', EG='1.55', time_epoch_completed='1639383886.84', return_code='0', job_id='164037', GAL2='1.00', EG2='1.50', return_code2='0', energy_flux_error='1.51e-05', photon_flux_error2='8.78e-08', ts2='8.59', photon_index='2.46' WHERE bin_id='1626' AND source_name='4FGL J1608.7+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Dec 13 00:24:46 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 164009: <4FGL_J1608.7+1029_daily_bin1626> in cluster <slac> Done

Job <4FGL_J1608.7+1029_daily_bin1626> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Dec 13 00:08:10 2021
Job was executed on host(s) <bullet0217>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Dec 13 00:08:12 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Dec 13 00:08:12 2021
Terminated at Mon Dec 13 00:24:00 2021
Results reported at Mon Dec 13 00:24:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1608.7+1029_daily_bin1626 242.176 10.4938 660787201 661046401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1608.7+1029 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   646.52 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             235.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   948 sec.
    Turnaround time :                            950 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 164037: <4FGL_J1608.7+1029_daily_bin1626> in cluster <slac> Done

Job <4FGL_J1608.7+1029_daily_bin1626> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Dec 13 00:08:12 2021
Job was executed on host(s) <bullet0067>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Dec 13 00:08:14 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Dec 13 00:08:14 2021
Terminated at Mon Dec 13 00:24:47 2021
Results reported at Mon Dec 13 00:24:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1608.7+1029_daily_bin1626 242.176 10.4938 660787201 661046401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1608.7+1029 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   635.08 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             260.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   993 sec.
    Turnaround time :                            995 sec.

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

