/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 0 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7427
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1608.7+1029_daily_bin389
RA = 242.176, Dec = 10.4938
tmin = 340156801, tmax = 340416001
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='48876', job_status='RUN', time_executed='2021-09-13 09:23:15.397773', time_epoch_executed='1631550195.4' WHERE source_name='4FGL J1608.7+1029' and cadence='daily' and bin_id='389'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/48876

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/48876/ft1_4FGL_J1608.7+1029_daily_bin389.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/48876/ft2_4FGL_J1608.7+1029_daily_bin389.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/48876/ft1_4FGL_J1608.7+1029_daily_bin389.fits outfile=/scratch/kocevski/48876/ft1_filteredMKT_4FGL_J1608.7+1029_daily_bin389.fits ra=242.176 dec=10.4938 rad=12.0 tmin=340156801.0 tmax=340416001.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.37
user 3.15
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/48876/ft2_4FGL_J1608.7+1029_daily_bin389.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/48876/ft1_filteredMKT_4FGL_J1608.7+1029_daily_bin389.fits evtable="EVENTS" outfile="/scratch/kocevski/48876/ft1_filtered_4FGL_J1608.7+1029_daily_bin389.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/48876/ft1_filtered_4FGL_J1608.7+1029_daily_bin389.fits" evtable="EVENTS" scfile=/scratch/kocevski/48876/ft2_4FGL_J1608.7+1029_daily_bin389.fits sctable="SC_DATA" outfile=/scratch/kocevski/48876/ltcube_340156801_340416001_4FGL_J1608.7+1029_daily_bin389.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/48876/ft2_4FGL_J1608.7+1029_daily_bin389.fits
.....................!
real 13.41
user 13.02
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/48876/ft1_filtered_4FGL_J1608.7+1029_daily_bin389.fits evtable="EVENTS" scfile=/scratch/kocevski/48876/ft2_4FGL_J1608.7+1029_daily_bin389.fits sctable="SC_DATA" expcube=/scratch/kocevski/48876/ltcube_340156801_340416001_4FGL_J1608.7+1029_daily_bin389.fits outfile=/scratch/kocevski/48876/expmap_340156801_340416001_4FGL_J1608.7+1029_daily_bin389.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/48876/ltcube_340156801_340416001_4FGL_J1608.7+1029_daily_bin389.fits
.....................!
real 191.73
user 185.62
sys 5.61

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/48876/ft1_filtered_4FGL_J1608.7+1029_daily_bin389.fits scfile=/scratch/kocevski/48876/ft2_4FGL_J1608.7+1029_daily_bin389.fits outfile=/scratch/kocevski/48876/cmap_340156801_340416001_4FGL_J1608.7+1029_daily_bin389.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/48876/ft1_filtered_4FGL_J1608.7+1029_daily_bin389.fits scfile=/scratch/kocevski/48876/ft2_4FGL_J1608.7+1029_daily_bin389.fits outfile=/scratch/kocevski/48876/cmap_HighResolution_340156801_340416001_4FGL_J1608.7+1029_daily_bin389.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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/48876/ft1_filtered_4FGL_J1608.7+1029_daily_bin389.fits evtable="EVENTS" scfile=/scratch/kocevski/48876/ft2_4FGL_J1608.7+1029_daily_bin389.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/48876/Model_4FGL_J1608.7+1029_daily_bin389.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/48876/ft1_filtered_4FGL_J1608.7+1029_daily_bin389.fits.....................!
real 64.29
user 62.97
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.5162       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    28.471       1.0000         .10000E-03   10000.    
     4 'norm      '    .51119       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    20.239       1.0000         .10000E-03   10000.    
     7 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .75150       1.0000         .10000E-03   10000.    
    10 'norm      '    2.8815       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    32.297       1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.637       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.3416       1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.743       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .19083E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .74737E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.4721       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .92822       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=   8322.465     FROM MIGRAD    STATUS=CONVERGED    464 CALLS     2866 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.5109        36.954        .13657E-06   -.27126E-04
   2  Prefactor     .10000E-03    6.1297       -.32773E-07** at limit **
   3  Prefactor     28.470        26.442        .74400E-07   -.14710E-04
   4  norm          .50991        1.7108        .20963E-05    .14357E-02
   5  Prefactor     .10000E-03    1.4618       -.16837E-07** at limit **
   6  Prefactor     20.245        18.702       -.23218E-06   -.56788E-04
   7  norm          .10000E-03    3.0901       -.52496E-07** at limit **
   8  Prefactor     .10000E-03    23.826        .12731E-07** at limit **
   9  norm          .77186        6.8408        .73326E-06   -.17887E-03
  10  norm          2.8810        1.4792       -.39683E-07   -.29752E-03
  11  norm          .10000E-03    9.6141        .67191E-07** at limit **
  12  norm          32.266        99.988       -.21523E-05   -.68404E-04
  13  Prefactor     13.632        15.239        .31734E-06    .15673E-04
  14  Prefactor     .10000E-03    41.372       -.32581E-06** at limit **
  15  Prefactor     9.3682        33.040        .15314E-05    .10800E-03
  16  Prefactor     11.735        12.490        .40249E-06   -.10363E-03
  17  Prefactor     .10090E-03    6.3530        .23361E-05** at limit **
  18  Prefactor     .10182E-03    5.0197       -.22084E-05** at limit **
  19  Prefactor     .10000E-03    3.5147        .63846E-07** at limit **
  20  Normalizat    1.4719        .24711       -.15687E-05   -.17167E-03
  21  Prefactor     .92829        .10181        .41206E-06   -.27743E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.51092
  Prefactor  = 0.0001
  Prefactor  = 28.47
  norm       = 0.50991
  Prefactor  = 0.0001
  Prefactor  = 20.2449
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.771862
  norm       = 2.88104
  norm       = 0.0001
  norm       = 32.2663
  Prefactor  = 13.6324
  Prefactor  = 0.0001
  Prefactor  = 9.36825
  Prefactor  = 11.7348
  Prefactor  = 0.000100905
  Prefactor  = 0.000101818
  Prefactor  = 0.0001
  Normalizat = 1.47186
  Prefactor  = 0.928287
 **********
 **   18 **HESSE 
 **********

 FCN=   8322.465     FROM HESSE     STATUS=OK           331 CALLS     3197 TOTAL
                     EDM=   .62E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.5109        37.216        .15722E-03   -1.5198    
   2  Prefactor     .10000E-03    6.1317        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     28.470        26.436        .75083E-04   -1.4640    
   4  norm          .50991        1.7662        .22102E-03   -1.5565    
   5  Prefactor     .10000E-03    1.4735        .10769E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     20.245        18.717        .89032E-04   -1.4808    
   7  norm          .10000E-03    3.1905        .31294E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    23.835        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .77186        21.619        .42828E-02   -1.5532    
  10  norm          2.8810        1.4778        .76922E-04   -1.5368    
  11  norm          .10000E-03    9.6774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          32.266        100.75        .70507E-04   -1.4571    
  13  Prefactor     13.632        15.300        .10846E-03   -1.4969    
  14  Prefactor     .10000E-03    41.426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.3682        33.212        .13112E-03   -1.5096    
  16  Prefactor     11.735        12.101        .11690E-03   -1.5023    
  17  Prefactor     .10090E-03    66.733        .36860E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10182E-03    3.8667        .58981E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.5449        .16698E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.4719        .29468        .33953E-03   -.78572    
  21  Prefactor     .92829        .12298        .17959E-03   -.95160    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.215e-08
Minuit parameter uncertainties:
  1  31.1621
  2  3.64766e-06
  3  26.4469
  4  1.76635
  5  2.36936e-07
  6  18.7226
  7  1.95402e-06
  8  1.40719e-05
  9  8.1726
  10  1.47785
  11  9.45072e-06
  12  101.287
  13  15.3041
  14  0.000196606
  15  33.2779
  16  12.1039
  17  0.0155582
  18  0.00530249
  19  5.30437e-06
  20  0.295021
  21  0.123015
Done.

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

Extracting fit parameters...

4FGL J1608.7+1029
   Spectrum: LogParabola
261         norm:  1.000e-04  9.451e-06  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.283e-01  1.230e-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.472e+00  2.950e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 242.176 10.494
Photon Flux Upper Limit: 8.85e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.53e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/48876/likelihoodResults_340156801_340416001_4FGL_J1608.7+1029_daily_bin389.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) = 8322.46561082
delta logL = -0.000492506995215

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8322.46511884
delta logL = -5.25295035914e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10877E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4997       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4716       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92836       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=   8322.465     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      190 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    16.864        .90712E-02** at limit **
   2  alpha         2.5476        3.6880        .41152       -.23793E-04
   3  Normalizat    1.4719        .22909        .76722E-01   -.13998E-03
   4  Prefactor     .92828        .99665E-01    .45365E-01   -.54896E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100002
  alpha      = 2.54759
  Normalizat = 1.47186
  Prefactor  = 0.928285
 **********
 **   18 **HESSE 
 **********

 FCN=   8322.465     FROM HESSE     STATUS=OK            25 CALLS      215 TOTAL
                     EDM=   .94E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    11.554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.5476        3.5645        .16461E-01    .19036E-01
   3  Normalizat    1.4719        .27576        .33954E-03   -.78572    
   4  Prefactor     .92828        .12015        .17959E-03   -.95160    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.38799e-10
Minuit parameter uncertainties:
  1  0.000271542
  2  2.50641
  3  0.276045
  4  0.120183
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/48876': 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) = 8322.46511748
delta logL = 8.35592800286e-07

Extracting fit parameters...

4FGL J1608.7+1029
   Spectrum: LogParabola
261         norm:  1.000e-04  2.715e-04  1.000e-04  1.000e+04 ( 1.000e-12)
262        alpha:  2.548e+00  2.506e+00  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.283e-01  1.202e-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.472e+00  2.760e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 242.176 10.494

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/48876/cmap_HighResolution_340156801_340416001_4FGL_J1608.7+1029_daily_bin389.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.53e-05', job_status='DONE', photon_flux_upper_limit='8.85e-08', time_completed='2021-09-13 09:35:34.166030', job_id='48876', GAL2='0.93', fit_tolerance='1e-08', EG2='1.47', EG='1.47', time_epoch_completed='1631550934.17', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='8.36e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='389' AND source_name='4FGL J1608.7+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 09:35:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0282>
Subject: Job 48876: <4FGL_J1608.7+1029_daily_bin389> in cluster <slac> Done

Job <4FGL_J1608.7+1029_daily_bin389> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Sep 13 09:20:38 2021
Job was executed on host(s) <bullet0282>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 13 09:23:09 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:23:09 2021
Terminated at Mon Sep 13 09:35:37 2021
Results reported at Mon Sep 13 09:35:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1608.7+1029_daily_bin389 242.176 10.4938 340156801 340416001 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 :                                   737.32 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             332.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   746 sec.
    Turnaround time :                            899 sec.

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

