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


Performing analysis on: 4FGL_J1608.7+1029_daily_bin622
RA = 242.176, Dec = 10.4938
tmin = 400550401, tmax = 400809601
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='51485', job_status='RUN', time_executed='2021-09-13 09:33:06.090250', time_epoch_executed='1631550786.09' WHERE source_name='4FGL J1608.7+1029' and cadence='daily' and bin_id='622'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/51485

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/51485/ft1_4FGL_J1608.7+1029_daily_bin622.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/51485/ft2_4FGL_J1608.7+1029_daily_bin622.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/51485/ft1_4FGL_J1608.7+1029_daily_bin622.fits outfile=/scratch/kocevski/51485/ft1_filteredMKT_4FGL_J1608.7+1029_daily_bin622.fits ra=242.176 dec=10.4938 rad=12.0 tmin=400550401.0 tmax=400809601.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.46
user 4.20
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/51485/ft1_filtered_4FGL_J1608.7+1029_daily_bin622.fits" evtable="EVENTS" scfile=/scratch/kocevski/51485/ft2_4FGL_J1608.7+1029_daily_bin622.fits sctable="SC_DATA" outfile=/scratch/kocevski/51485/ltcube_400550401_400809601_4FGL_J1608.7+1029_daily_bin622.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/51485/ft2_4FGL_J1608.7+1029_daily_bin622.fits
.....................!
real 14.22
user 13.85
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/51485/ft1_filtered_4FGL_J1608.7+1029_daily_bin622.fits evtable="EVENTS" scfile=/scratch/kocevski/51485/ft2_4FGL_J1608.7+1029_daily_bin622.fits sctable="SC_DATA" expcube=/scratch/kocevski/51485/ltcube_400550401_400809601_4FGL_J1608.7+1029_daily_bin622.fits outfile=/scratch/kocevski/51485/expmap_400550401_400809601_4FGL_J1608.7+1029_daily_bin622.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/51485/ltcube_400550401_400809601_4FGL_J1608.7+1029_daily_bin622.fits
.....................!
real 192.67
user 186.45
sys 5.05

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/51485/ft1_filtered_4FGL_J1608.7+1029_daily_bin622.fits scfile=/scratch/kocevski/51485/ft2_4FGL_J1608.7+1029_daily_bin622.fits outfile=/scratch/kocevski/51485/cmap_400550401_400809601_4FGL_J1608.7+1029_daily_bin622.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.55
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/51485/ft1_filtered_4FGL_J1608.7+1029_daily_bin622.fits scfile=/scratch/kocevski/51485/ft2_4FGL_J1608.7+1029_daily_bin622.fits outfile=/scratch/kocevski/51485/cmap_HighResolution_400550401_400809601_4FGL_J1608.7+1029_daily_bin622.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/51485/ft1_filtered_4FGL_J1608.7+1029_daily_bin622.fits evtable="EVENTS" scfile=/scratch/kocevski/51485/ft2_4FGL_J1608.7+1029_daily_bin622.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/51485/Model_4FGL_J1608.7+1029_daily_bin622.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/51485/ft1_filtered_4FGL_J1608.7+1029_daily_bin622.fits.....................!
real 61.32
user 59.86
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10194E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.3641       1.0000         .10000E-03   10000.    
     4 'norm      '    1.8925       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.4776       1.0000         .10000E-03   10000.    
     6 'Prefactor '    32.744       1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    19.935       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.8074       1.0000         .10000E-03   10000.    
    11 'norm      '    12.421       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10665E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.5378       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.8826       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.6963       1.0000         .10000E-03   10000.    
    19 'Prefactor '    18.237       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.5394       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .70567       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=   7725.815     FROM MIGRAD    STATUS=CONVERGED    434 CALLS     2175 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    52.795        .38276E-05** at limit **
   2  Prefactor     .10000E-03    25.658       -.18735E-04** at limit **
   3  Prefactor     6.3650        22.500        .60849E-06   -.23263E-04
   4  norm          1.8925        1.7236        .23921E-07    .18360E-03
   5  Prefactor     9.4776        4.4768       -.17291E-06   -.73847E-04
   6  Prefactor     32.745        35.475        .13210E-05    .84498E-04
   7  norm          .10000E-03    2.7661        .36877E-07** at limit **
   8  Prefactor     19.935        38.134       -.24377E-06   -.28163E-05
   9  norm          .10000E-03    3.4164        .19570E-06** at limit **
  10  norm          3.8074        1.6312        .18504E-07    .14784E-03
  11  norm          12.419        15.308       -.17920E-05   -.94034E-03
  12  norm          .10000E-03    31.797        .73387E-05** at limit **
  13  Prefactor     .10000E-03    21.840        .80472E-05** at limit **
  14  Prefactor     .10000E-03    59.855       -.40231E-04** at limit **
  15  Prefactor     .10000E-03    46.957        .31060E-04** at limit **
  16  Prefactor     7.5365        7.7910        .31355E-05   -.25111E-03
  17  Prefactor     5.8823        5.7580       -.24976E-05   -.17081E-03
  18  Prefactor     2.6962        5.7316       -.13655E-05   -.43408E-03
  19  Prefactor     18.237        7.4373        .21706E-06   -.10311E-03
  20  Normalizat    1.5394        .22628        .20509E-06   -.11237E-03
  21  Prefactor     .70566        .95728E-01    .11466E-06   -.15274E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.36497
  norm       = 1.89252
  Prefactor  = 9.47762
  Prefactor  = 32.7447
  norm       = 0.0001
  Prefactor  = 19.9351
  norm       = 0.0001
  norm       = 3.80735
  norm       = 12.4195
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 7.5365
  Prefactor  = 5.88227
  Prefactor  = 2.69624
  Prefactor  = 18.2366
  Normalizat = 1.53941
  Prefactor  = 0.705657
 **********
 **   18 **HESSE 
 **********

 FCN=   7725.815     FROM HESSE     STATUS=OK           319 CALLS     2494 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    53.288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    25.763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.3650        22.468        .15911E-03   -1.5203    
   4  norm          1.8925        1.7342        .10674E-03   -1.5433    
   5  Prefactor     9.4776        4.4767        .12306E-03   -1.5092    
   6  Prefactor     32.745        35.567        .70026E-04   -1.4563    
   7  norm          .10000E-03    2.8607        .28512E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     19.935        38.143        .89706E-04   -1.4815    
   9  norm          .10000E-03    3.4318        .15861E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.8074        1.6328        .71453E-04   -1.5318    
  11  norm          12.419        15.564        .56829E-03   -1.5003    
  12  norm          .10000E-03    31.791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    22.451        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    59.716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    47.274        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.5365        7.7558        .14607E-03   -1.5159    
  17  Prefactor     5.8823        5.7598        .16557E-03   -1.5223    
  18  Prefactor     2.6962        5.7365        .24810E-03   -1.5380    
  19  Prefactor     18.237        7.4364        .93788E-04   -1.4854    
  20  Normalizat    1.5394        .27112        .30601E-03   -.76677    
  21  Prefactor     .70566        .11452        .18509E-03   -1.0331    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.06213e-09
Minuit parameter uncertainties:
  1  4.29799e-05
  2  1.57577e-05
  3  22.4982
  4  1.73428
  5  4.47685
  6  35.5896
  7  1.25892e-06
  8  38.1895
  9  2.23244e-07
  10  1.63278
  11  15.5689
  12  1.09299e-07
  13  0.000145815
  14  5.434e-05
  15  0.00088644
  16  7.75685
  17  5.76038
  18  5.73765
  19  7.43677
  20  0.27138
  21  0.114561
Done.

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

Extracting fit parameters...

4FGL J1608.7+1029
   Spectrum: LogParabola
261         norm:  1.242e+01  1.557e+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:  7.057e-01  1.146e-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.539e+00  2.714e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/51485/likelihoodResults_400550401_400809601_4FGL_J1608.7+1029_daily_bin622.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) = 7724.74580148
delta logL = 1.06891767838

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7724.7422831
delta logL = 1.07243605329

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.3775       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.0536       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4485       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73088       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=   7724.742     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      253 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.3673        75.238        .43324E-02    .30384E-03
   2  alpha         4.0550        4.1082        .48605        .42224E-04
   3  Normalizat    1.4485        .84454E-01    .70852E-01   -.31827E-05
   4  Prefactor     .73087        .36315E-01    .42811E-01   -.25250E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 5.36728
  alpha      = 4.05497
  Normalizat = 1.44847
  Prefactor  = 0.730875
 **********
 **   18 **HESSE 
 **********

 FCN=   7724.742     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      286 TOTAL
                     EDM=   .51E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.3673        116.08        .12863E-03   -1.5245    
   2  alpha         4.0550        3.5419        .22835E-01    .67128    
   3  Normalizat    1.4485        .27113        .31348E-03   -.79237    
   4  Prefactor     .73087        .11887        .18208E-03   -1.0233    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.09245e-07
Minuit parameter uncertainties:
  1  50.0308
  2  7.04676
  3  0.271402
  4  0.11891
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/51485': 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): 102
logL (Free Index) = 7724.74228251
delta logL = 1.07243664994

Extracting fit parameters...

4FGL J1608.7+1029
   Spectrum: LogParabola
261         norm:  5.367e+00  5.003e+01  1.000e-04  1.000e+04 ( 1.000e-12)
262        alpha:  4.055e+00  7.047e+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:  7.309e-01  1.189e-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.448e+00  2.714e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.07
Ra Dec: 242.176 10.494
Photon Index (Free Index): 4.05 +/- 7.05
Photon Flux (Free Index): 1.05e-07 +/- 7.60e-08
Energy Flux (Free Index): 1.63e-05 +/- 2.68e-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/51485/cmap_HighResolution_400550401_400809601_4FGL_J1608.7+1029_daily_bin622.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.06e-05', comment='SUCCESS', energy_flux2='1.63e-05', dlogl='1.07e+00', photon_flux2='1.05e-07', job_status='DONE', time_completed='2021-09-13 09:44:09.883081', photon_index_error2='7.05', photon_index2='4.05', ts='0.78', fit_tolerance='1e-08', GAL='0.71', photon_index_error='0.00', photon_flux_upper_limit='1.42e-07', energy_flux_error2='2.68e-05', EG='1.54', time_epoch_completed='1631551449.88', return_code='0', job_id='51485', GAL2='0.73', EG2='1.45', return_code2='102', photon_flux_error2='7.60e-08', ts2='3.07', photon_index='2.46' WHERE bin_id='622' AND source_name='4FGL J1608.7+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 09:44:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 51485: <4FGL_J1608.7+1029_daily_bin622> in cluster <slac> Done

Job <4FGL_J1608.7+1029_daily_bin622> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Sep 13 09:30:17 2021
Job was executed on host(s) <bullet0288>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 13 09:30:29 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:30:29 2021
Terminated at Mon Sep 13 09:44:10 2021
Results reported at Mon Sep 13 09:44:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1608.7+1029_daily_bin622 242.176 10.4938 400550401 400809601 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 :                                   661.41 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             260.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   821 sec.
    Turnaround time :                            833 sec.

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

