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


Performing analysis on: 4FGL_J1608.7+1029_daily_bin522
RA = 242.176, Dec = 10.4938
tmin = 374630401, tmax = 374889601
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='50338', job_status='RUN', time_executed='2021-09-13 09:27:43.384879', time_epoch_executed='1631550463.38' WHERE source_name='4FGL J1608.7+1029' and cadence='daily' and bin_id='522'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/50338

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/50338/ft1_4FGL_J1608.7+1029_daily_bin522.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/50338/ft2_4FGL_J1608.7+1029_daily_bin522.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/50338/ft1_4FGL_J1608.7+1029_daily_bin522.fits outfile=/scratch/kocevski/50338/ft1_filteredMKT_4FGL_J1608.7+1029_daily_bin522.fits ra=242.176 dec=10.4938 rad=12.0 tmin=374630401.0 tmax=374889601.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.67
user 4.39
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/50338/ft2_4FGL_J1608.7+1029_daily_bin522.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/50338/ft1_filteredMKT_4FGL_J1608.7+1029_daily_bin522.fits evtable="EVENTS" outfile="/scratch/kocevski/50338/ft1_filtered_4FGL_J1608.7+1029_daily_bin522.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.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/50338/ft1_filtered_4FGL_J1608.7+1029_daily_bin522.fits" evtable="EVENTS" scfile=/scratch/kocevski/50338/ft2_4FGL_J1608.7+1029_daily_bin522.fits sctable="SC_DATA" outfile=/scratch/kocevski/50338/ltcube_374630401_374889601_4FGL_J1608.7+1029_daily_bin522.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/50338/ft2_4FGL_J1608.7+1029_daily_bin522.fits
.....................!
real 14.25
user 13.82
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/50338/ft1_filtered_4FGL_J1608.7+1029_daily_bin522.fits evtable="EVENTS" scfile=/scratch/kocevski/50338/ft2_4FGL_J1608.7+1029_daily_bin522.fits sctable="SC_DATA" expcube=/scratch/kocevski/50338/ltcube_374630401_374889601_4FGL_J1608.7+1029_daily_bin522.fits outfile=/scratch/kocevski/50338/expmap_374630401_374889601_4FGL_J1608.7+1029_daily_bin522.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/50338/ltcube_374630401_374889601_4FGL_J1608.7+1029_daily_bin522.fits
.....................!
real 192.78
user 185.42
sys 6.44

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/50338/ft1_filtered_4FGL_J1608.7+1029_daily_bin522.fits scfile=/scratch/kocevski/50338/ft2_4FGL_J1608.7+1029_daily_bin522.fits outfile=/scratch/kocevski/50338/cmap_374630401_374889601_4FGL_J1608.7+1029_daily_bin522.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.56
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/50338/ft1_filtered_4FGL_J1608.7+1029_daily_bin522.fits scfile=/scratch/kocevski/50338/ft2_4FGL_J1608.7+1029_daily_bin522.fits outfile=/scratch/kocevski/50338/cmap_HighResolution_374630401_374889601_4FGL_J1608.7+1029_daily_bin522.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.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/50338/ft1_filtered_4FGL_J1608.7+1029_daily_bin522.fits evtable="EVENTS" scfile=/scratch/kocevski/50338/ft2_4FGL_J1608.7+1029_daily_bin522.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/50338/Model_4FGL_J1608.7+1029_daily_bin522.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/50338/ft1_filtered_4FGL_J1608.7+1029_daily_bin522.fits.....................!
real 74.39
user 72.83
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/50338/ft1_filtered_4FGL_J1608.7+1029_daily_bin522.fits', '/scratch/kocevski/50338/ft2_4FGL_J1608.7+1029_daily_bin522.fits', expMap='/scratch/kocevski/50338/expmap_374630401_374889601_4FGL_J1608.7+1029_daily_bin522.fits', expCube='/scratch/kocevski/50338/ltcube_374630401_374889601_4FGL_J1608.7+1029_daily_bin522.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/50338/Model_4FGL_J1608.7+1029_daily_bin522.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/50338/ft1_filtered_4FGL_J1608.7+1029_daily_bin522.fits
Spacecraft file(s): /scratch/kocevski/50338/ft2_4FGL_J1608.7+1029_daily_bin522.fits
Exposure map: /scratch/kocevski/50338/expmap_374630401_374889601_4FGL_J1608.7+1029_daily_bin522.fits
Exposure cube: /scratch/kocevski/50338/ltcube_374630401_374889601_4FGL_J1608.7+1029_daily_bin522.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/50338/Model_4FGL_J1608.7+1029_daily_bin522.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) = 9187.7105624

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.1058       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .29464E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    38.188       1.0000         .10000E-03   10000.    
     4 'norm      '    5.1210       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .51379       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    5.8942       1.0000         .10000E-03   10000.    
     8 'Prefactor '    28.204       1.0000         .10000E-03   10000.    
     9 'norm      '    12.371       1.0000         .10000E-03   10000.    
    10 'norm      '    4.5122       1.0000         .10000E-03   10000.    
    11 'norm      '    17.232       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 '    24.095       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .24773E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.1215       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .37253       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .19446E-02   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2619       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .96521       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=   9187.703     FROM MIGRAD    STATUS=CONVERGED    457 CALLS     2263 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.0814        55.459       -.51617E-06   -.43721E-04
   2  Prefactor     .10000E-03    130.94       -.47906E-06** at limit **
   3  Prefactor     38.190        27.892       -.38944E-06   -.62068E-04
   4  norm          5.1196        3.1551       -.18690E-07   -.28796E-04
   5  Prefactor     .51500        4.2419        .43960E-05   -.18477E-03
   6  Prefactor     .10000E-03    16.840        .85150E-07** at limit **
   7  norm          5.8944        4.3462       -.20902E-06   -.28510E-03
   8  Prefactor     28.174        67.457       -.57283E-06   -.61355E-04
   9  norm          12.370        9.6001        .94265E-06   -.89826E-04
  10  norm          4.5123        1.8480       -.22147E-07   -.34786E-04
  11  norm          17.233        15.912        .89590E-07   -.61049E-04
  12  norm          .10000E-03    34.432       -.10271E-06** at limit **
  13  Prefactor     .10000E-03    10.821        .40916E-06** at limit **
  14  Prefactor     24.039        66.750       -.13131E-05   -.10743E-03
  15  Prefactor     .10000E-03    21.365        .31004E-06** at limit **
  16  Prefactor     .10021E-03    6.2586        .12186E-05** at limit **
  17  Prefactor     2.1245        7.7702        .97653E-06   -.18138E-03
  18  Prefactor     .37911        5.9724        .21017E-06   -.20742E-05
  19  Prefactor     .10000E-03    5.0550        .31696E-06** at limit **
  20  Normalizat    1.2621        .24277       -.19250E-06   -.36179E-03
  21  Prefactor     .96507        .98934E-01   -.10918E-05   -.52072E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.0814
  Prefactor  = 0.0001
  Prefactor  = 38.1904
  norm       = 5.1196
  Prefactor  = 0.515
  Prefactor  = 0.0001
  norm       = 5.89442
  Prefactor  = 28.1739
  norm       = 12.3698
  norm       = 4.51225
  norm       = 17.2329
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.0386
  Prefactor  = 0.0001
  Prefactor  = 0.000100208
  Prefactor  = 2.12448
  Prefactor  = 0.379114
  Prefactor  = 0.0001
  Normalizat = 1.26207
  Prefactor  = 0.965066
 **********
 **   18 **HESSE 
 **********

 FCN=   9187.703     FROM HESSE     STATUS=OK           325 CALLS     2588 TOTAL
                     EDM=   .59E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.0814        56.005        .14082E-03   -1.5139    
   2  Prefactor     .10000E-03    134.66        .42795E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     38.190        27.883        .64858E-04   -1.4471    
   4  norm          5.1196        3.1493        .12734E-03   -1.5255    
   5  Prefactor     .51500        4.2634        .37163E-03   -1.5564    
   6  Prefactor     .10000E-03    16.860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.8944        4.3379        .16149E-03   -1.5222    
   8  Prefactor     28.174        67.511        .75437E-04   -1.4646    
   9  norm          12.370        9.6315        .56944E-03   -1.5004    
  10  norm          4.5123        1.8478        .80236E-04   -1.5283    
  11  norm          17.233        15.936        .96483E-04   -1.4877    
  12  norm          .10000E-03    34.434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    10.929        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     24.039        67.030        .81604E-04   -1.4727    
  15  Prefactor     .10000E-03    21.409        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10021E-03    51.710        .43828E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.1245        7.5270        .28314E-03   -1.5416    
  18  Prefactor     .37911        47.199        .43261E-02   -1.5585    
  19  Prefactor     .10000E-03    42.228        .40279E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.2621        .29397        .37638E-03   -.84706    
  21  Prefactor     .96507        .11927        .17702E-03   -.93903    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.89126e-08
Minuit parameter uncertainties:
  1  42.6057
  2  0.000321058
  3  27.8929
  4  3.14935
  5  2.96355
  6  2.79456e-06
  7  4.33815
  8  67.6947
  9  9.63271
  10  1.8478
  11  15.9399
  12  6.3759e-05
  13  1.23957e-05
  14  67.241
  15  1.46923e-05
  16  0.00655705
  17  7.53035
  18  8.46596
  19  0.000105561
  20  0.29436
  21  0.119303
Done.

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

Extracting fit parameters...

4FGL J1608.7+1029
   Spectrum: LogParabola
261         norm:  1.723e+01  1.594e+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.651e-01  1.193e-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.262e+00  2.944e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.58
Ra Dec: 242.176 10.494
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 5.50e-08 +/- 5.08e-08
Energy Flux (Fixed Index): 1.57e-05 +/- 1.45e-05

TS (Fixed Index): 1.58
Ra Dec: 242.176 10.494
Photon Flux Upper Limit: 1.60e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.58e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/50338/likelihoodResults_374630401_374889601_4FGL_J1608.7+1029_daily_bin522.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) = 9187.10850403
delta logL = 0.594543166302

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9187.1063646
delta logL = 0.596682593117

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.605       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.3583       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1906       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98359       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9187.106     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      297 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.608        15.145        .10859E-03   -.32664E-04
   2  alpha         3.3587        .94179        .20311E-01   -.13676E-04
   3  Normalizat    1.1905        .29208        .38578E-03   -.44205E-04
   4  Prefactor     .98361        .11938        .17547E-03   -.13621E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 13.6084
  alpha      = 3.3587
  Normalizat = 1.19054
  Prefactor  = 0.983608
 **********
 **   18 **HESSE 
 **********

 FCN=   9187.106     FROM HESSE     STATUS=OK            25 CALLS      322 TOTAL
                     EDM=   .66E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.608        13.603        .43437E-05   -1.4970    
   2  alpha         3.3587        .84883        .81243E-03    .35062    
   3  Normalizat    1.1905        .29214        .15431E-04   -.86896    
   4  Prefactor     .98361        .11934        .35094E-04   -.93278    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.58354e-11
Minuit parameter uncertainties:
  1  13.6062
  2  0.868499
  3  0.292544
  4  0.11937
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/50338': 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) = 9187.10636416
delta logL = 0.59668303632

Extracting fit parameters...

4FGL J1608.7+1029
   Spectrum: LogParabola
261         norm:  1.361e+01  1.361e+01  1.000e-04  1.000e+04 ( 1.000e-12)
262        alpha:  3.359e+00  8.685e-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.836e-01  1.194e-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.191e+00  2.925e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.89
Ra Dec: 242.176 10.494
Photon Index (Free Index): 3.36 +/- 0.87
Photon Flux (Free Index): 1.13e-07 +/- 8.52e-08
Energy Flux (Free Index): 2.07e-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/50338/cmap_HighResolution_374630401_374889601_4FGL_J1608.7+1029_daily_bin522.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.58e-05', comment='SUCCESS', photon_flux='5.50e-08', energy_flux2='2.07e-05', photon_flux_error='5.08e-08', dlogl='5.97e-01', energy_flux='1.57e-05', photon_flux2='1.13e-07', job_status='DONE', time_completed='2021-09-13 09:39:55.714340', photon_index_error2='0.87', photon_index2='3.36', ts='1.58', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='1.60e-07', energy_flux_error2='1.43e-05', EG='1.26', time_epoch_completed='1631551195.71', return_code='0', job_id='50338', GAL2='0.98', EG2='1.19', return_code2='0', energy_flux_error='1.45e-05', photon_flux_error2='8.52e-08', ts2='2.89', photon_index='2.46' WHERE bin_id='522' AND source_name='4FGL J1608.7+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 09:39:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 50338: <4FGL_J1608.7+1029_daily_bin522> in cluster <slac> Done

Job <4FGL_J1608.7+1029_daily_bin522> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep 13 09:25:29 2021
Job was executed on host(s) <bullet0269>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 13 09:27:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep 13 09:27:23 2021
Terminated at Mon Sep 13 09:39:56 2021
Results reported at Mon Sep 13 09:39:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1608.7+1029_daily_bin522 242.176 10.4938 374630401 374889601 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 :                                   730.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             375.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   753 sec.
    Turnaround time :                            867 sec.

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

