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


Performing analysis on: 4FGL_J1608.7+1029_daily_bin1615
RA = 242.176, Dec = 10.4938
tmin = 657936001, tmax = 658195201
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='388500', job_status='RUN', time_executed='2021-12-08 02:30:23.660712', time_epoch_executed='1638959423.66' WHERE source_name='4FGL J1608.7+1029' and cadence='daily' and bin_id='1615'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/388500

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/388500/ft1_4FGL_J1608.7+1029_daily_bin1615.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/388500/ft2_4FGL_J1608.7+1029_daily_bin1615.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/388500/ft1_4FGL_J1608.7+1029_daily_bin1615.fits outfile=/scratch/kocevski/388500/ft1_filteredMKT_4FGL_J1608.7+1029_daily_bin1615.fits ra=242.176 dec=10.4938 rad=12.0 tmin=657936001.0 tmax=658195201.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.09
user 3.84
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/388500/ft2_4FGL_J1608.7+1029_daily_bin1615.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/388500/ft1_filteredMKT_4FGL_J1608.7+1029_daily_bin1615.fits evtable="EVENTS" outfile="/scratch/kocevski/388500/ft1_filtered_4FGL_J1608.7+1029_daily_bin1615.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.49
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/388500/ft1_filtered_4FGL_J1608.7+1029_daily_bin1615.fits" evtable="EVENTS" scfile=/scratch/kocevski/388500/ft2_4FGL_J1608.7+1029_daily_bin1615.fits sctable="SC_DATA" outfile=/scratch/kocevski/388500/ltcube_657936001_658195201_4FGL_J1608.7+1029_daily_bin1615.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/388500/ft2_4FGL_J1608.7+1029_daily_bin1615.fits
.....................!
real 13.19
user 12.82
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/388500/ft1_filtered_4FGL_J1608.7+1029_daily_bin1615.fits evtable="EVENTS" scfile=/scratch/kocevski/388500/ft2_4FGL_J1608.7+1029_daily_bin1615.fits sctable="SC_DATA" expcube=/scratch/kocevski/388500/ltcube_657936001_658195201_4FGL_J1608.7+1029_daily_bin1615.fits outfile=/scratch/kocevski/388500/expmap_657936001_658195201_4FGL_J1608.7+1029_daily_bin1615.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/388500/ltcube_657936001_658195201_4FGL_J1608.7+1029_daily_bin1615.fits
.....................!
real 192.67
user 186.41
sys 5.46

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/388500/ft1_filtered_4FGL_J1608.7+1029_daily_bin1615.fits scfile=/scratch/kocevski/388500/ft2_4FGL_J1608.7+1029_daily_bin1615.fits outfile=/scratch/kocevski/388500/cmap_657936001_658195201_4FGL_J1608.7+1029_daily_bin1615.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/388500/ft1_filtered_4FGL_J1608.7+1029_daily_bin1615.fits scfile=/scratch/kocevski/388500/ft2_4FGL_J1608.7+1029_daily_bin1615.fits outfile=/scratch/kocevski/388500/cmap_HighResolution_657936001_658195201_4FGL_J1608.7+1029_daily_bin1615.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/388500/ft1_filtered_4FGL_J1608.7+1029_daily_bin1615.fits evtable="EVENTS" scfile=/scratch/kocevski/388500/ft2_4FGL_J1608.7+1029_daily_bin1615.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/388500/Model_4FGL_J1608.7+1029_daily_bin1615.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/388500/ft1_filtered_4FGL_J1608.7+1029_daily_bin1615.fits.....................!
real 72.49
user 70.91
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.1908       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    6.8384       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .47943       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .55025E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    6.0624       1.0000         .10000E-03   10000.    
    11 'norm      '    113.97       1.0000         .10000E-03   10000.    
    12 'norm      '    .15110E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10760E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.8373       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10878E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.7651       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.5585       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .87685       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=   8942.234     FROM MIGRAD    STATUS=CONVERGED    477 CALLS     2307 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.334        .10582E-07** at limit **
   2  Prefactor     7.1963        45.850       -.12589E-04    .29156E-04
   3  Prefactor     .10000E-03    46.377        .34443E-04** at limit **
   4  norm          6.8393        3.1767       -.21263E-06    .40406E-03
   5  Prefactor     .10000E-03    3.5839       -.27252E-06** at limit **
   6  Prefactor     .10000E-03    51.808       -.74777E-05** at limit **
   7  norm          .48150        2.2000       -.25021E-05    .38910E-03
   8  Prefactor     .10000E-03    58.955       -.39522E-04** at limit **
   9  norm          .10008E-03    4.4273       -.89034E-06** at limit **
  10  norm          6.0630        2.1137       -.12593E-06    .81475E-03
  11  norm          113.97        26.655        .17599E-05    .70322E-03
  12  norm          .10000E-03    160.61        .96430E-04** at limit **
  13  Prefactor     .10075E-03    9.1925       -.14145E-05** at limit **
  14  Prefactor     .10000E-03    34.740       -.59582E-05** at limit **
  15  Prefactor     2.6763        156.57       -.20158E-03    .20199E-04
  16  Prefactor     .10001E-03    8.6519        .17764E-05** at limit **
  17  Prefactor     3.7652        5.6472        .61740E-06    .16655E-03
  18  Prefactor     .10000E-03    4.3975       -.42419E-07** at limit **
  19  Prefactor     .10000E-03    3.6962        .13843E-06** at limit **
  20  Normalizat    1.5586        .25772        .68975E-05    .93189E-03
  21  Prefactor     .87682        .10057        .22359E-05    .16517E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 7.19627
  Prefactor  = 0.0001
  norm       = 6.83927
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.481495
  Prefactor  = 0.0001
  norm       = 0.000100078
  norm       = 6.06301
  norm       = 113.971
  norm       = 0.0001
  Prefactor  = 0.000100752
  Prefactor  = 0.0001
  Prefactor  = 2.67633
  Prefactor  = 0.000100008
  Prefactor  = 3.76521
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.55861
  Prefactor  = 0.876822
 **********
 **   18 **HESSE 
 **********

 FCN=   8942.234     FROM HESSE     STATUS=OK           329 CALLS     2636 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.345        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.1963        46.486        .14958E-03   -1.5171    
   3  Prefactor     .10000E-03    46.541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          6.8393        3.1735        .11037E-03   -1.5185    
   5  Prefactor     .10000E-03    3.6862        .34920E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    52.267        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .48150        11.214        .26441E-02   -1.5569    
   8  Prefactor     .10000E-03    59.044        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10008E-03    6.9251        .66203E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          6.0630        2.1149        .78411E-04   -1.5215    
  11  norm          113.97        26.798        .37685E-04   -1.3569    
  12  norm          .10000E-03    160.39        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10075E-03    12.336        .84799E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    34.756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.6763        159.75        .24141E-03   -1.5381    
  16  Prefactor     .10001E-03    8.7407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.7652        5.6350        .20806E-03   -1.5320    
  18  Prefactor     .10000E-03    4.4250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.7341        .17750E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.5586        .31315        .36170E-03   -.76145    
  21  Prefactor     .87682        .12237        .19037E-03   -.96956    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.54995e-09
Minuit parameter uncertainties:
  1  3.49406e-05
  2  36.6215
  3  0.000193073
  4  3.1736
  5  4.91016e-05
  6  1.27625e-05
  7  4.64789
  8  0.000122402
  9  0.00146744
  10  2.11489
  11  26.8007
  12  0.000482031
  13  0.00609327
  14  5.89584e-05
  15  41.4703
  16  0.000533984
  17  5.63578
  18  1.07559e-05
  19  2.85437e-05
  20  0.313547
  21  0.122411
Done.

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

Extracting fit parameters...

4FGL J1608.7+1029
   Spectrum: LogParabola
261         norm:  1.140e+02  2.680e+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:  8.768e-01  1.224e-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.559e+00  3.135e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 41.35
Ra Dec: 242.176 10.494
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 3.63e-07 +/- 8.54e-08
Energy Flux (Fixed Index): 1.04e-04 +/- 2.44e-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) = 8941.50013514
delta logL = 0.733586308488

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8941.4994089
delta logL = 0.734312543045

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    99.392       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8301       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4473       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90756       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=   8941.499     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      296 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          99.390        28.377        .40324E-04    .15231E-02
   2  alpha         2.8301        .31885        .81187E-02    .32296E-03
   3  Normalizat    1.4475        .31176        .37202E-03   -.29581E-04
   4  Prefactor     .90748        .12390        .18739E-03   -.21688E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 99.3898
  alpha      = 2.83008
  Normalizat = 1.44745
  Prefactor  = 0.907483
 **********
 **   18 **HESSE 
 **********

 FCN=   8941.499     FROM HESSE     STATUS=OK            23 CALLS      319 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          99.390        27.748        .80647E-05   -1.3711    
   2  alpha         2.8301        .31154        .32475E-03    .13242    
   3  Normalizat    1.4475        .31185        .14881E-04   -.79266    
   4  Prefactor     .90748        .12393        .37478E-04   -.95880    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28458e-09
Minuit parameter uncertainties:
  1  27.7517
  2  0.312365
  3  0.312266
  4  0.123971
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/388500': 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) = 8941.4994087
delta logL = 0.734312743247

Extracting fit parameters...

4FGL J1608.7+1029
   Spectrum: LogParabola
261         norm:  9.939e+01  2.775e+01  1.000e-04  1.000e+04 ( 1.000e-12)
262        alpha:  2.830e+00  3.124e-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.075e-01  1.240e-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.447e+00  3.123e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 43.43
Ra Dec: 242.176 10.494
Photon Index (Free Index): 2.83 +/- 0.31
Photon Flux (Free Index): 4.57e-07 +/- 1.22e-07
Energy Flux (Free Index): 1.03e-04 +/- 2.27e-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/388500/cmap_HighResolution_657936001_658195201_4FGL_J1608.7+1029_daily_bin1615.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.63e-07', energy_flux2='1.03e-04', photon_flux_error='8.54e-08', dlogl='7.34e-01', energy_flux='1.04e-04', photon_flux2='4.57e-07', job_status='DONE', time_completed='2021-12-08 02:41:15.049115', photon_index_error2='0.31', photon_index2='2.83', ts='41.35', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='2.27e-05', EG='1.56', time_epoch_completed='1638960075.05', return_code='0', job_id='388500', GAL2='0.91', EG2='1.45', return_code2='0', energy_flux_error='2.44e-05', photon_flux_error2='1.22e-07', ts2='43.43', photon_index='2.46' WHERE bin_id='1615' AND source_name='4FGL J1608.7+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 02:41:15 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 388500: <4FGL_J1608.7+1029_daily_bin1615> in cluster <slac> Done

Job <4FGL_J1608.7+1029_daily_bin1615> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Dec  8 02:25:30 2021
Job was executed on host(s) <bullet0105>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 02:27:59 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 02:27:59 2021
Terminated at Wed Dec  8 02:41:15 2021
Results reported at Wed Dec  8 02:41:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1608.7+1029_daily_bin1615 242.176 10.4938 657936001 658195201 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 :                                   649.36 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             326.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   796 sec.
    Turnaround time :                            945 sec.

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

