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


Performing analysis on: 4FGL_J1608.7+1029_daily_bin1245
RA = 242.176, Dec = 10.4938
tmin = 562032001, tmax = 562291201
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='54994', job_status='RUN', time_executed='2021-09-13 09:42:28.212554', time_epoch_executed='1631551348.21' WHERE source_name='4FGL J1608.7+1029' and cadence='daily' and bin_id='1245'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/54994

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/54994/ft1_4FGL_J1608.7+1029_daily_bin1245.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/54994/ft2_4FGL_J1608.7+1029_daily_bin1245.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/54994/ft1_4FGL_J1608.7+1029_daily_bin1245.fits outfile=/scratch/kocevski/54994/ft1_filteredMKT_4FGL_J1608.7+1029_daily_bin1245.fits ra=242.176 dec=10.4938 rad=12.0 tmin=562032001.0 tmax=562291201.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.59
user 3.34
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/54994/ft1_filtered_4FGL_J1608.7+1029_daily_bin1245.fits" evtable="EVENTS" scfile=/scratch/kocevski/54994/ft2_4FGL_J1608.7+1029_daily_bin1245.fits sctable="SC_DATA" outfile=/scratch/kocevski/54994/ltcube_562032001_562291201_4FGL_J1608.7+1029_daily_bin1245.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/54994/ft2_4FGL_J1608.7+1029_daily_bin1245.fits
.....................!
real 14.80
user 14.35
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/54994/ft1_filtered_4FGL_J1608.7+1029_daily_bin1245.fits evtable="EVENTS" scfile=/scratch/kocevski/54994/ft2_4FGL_J1608.7+1029_daily_bin1245.fits sctable="SC_DATA" expcube=/scratch/kocevski/54994/ltcube_562032001_562291201_4FGL_J1608.7+1029_daily_bin1245.fits outfile=/scratch/kocevski/54994/expmap_562032001_562291201_4FGL_J1608.7+1029_daily_bin1245.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/54994/ltcube_562032001_562291201_4FGL_J1608.7+1029_daily_bin1245.fits
.....................!
real 193.59
user 186.72
sys 5.86

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/54994/ft1_filtered_4FGL_J1608.7+1029_daily_bin1245.fits scfile=/scratch/kocevski/54994/ft2_4FGL_J1608.7+1029_daily_bin1245.fits outfile=/scratch/kocevski/54994/cmap_562032001_562291201_4FGL_J1608.7+1029_daily_bin1245.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.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/54994/ft1_filtered_4FGL_J1608.7+1029_daily_bin1245.fits scfile=/scratch/kocevski/54994/ft2_4FGL_J1608.7+1029_daily_bin1245.fits outfile=/scratch/kocevski/54994/cmap_HighResolution_562032001_562291201_4FGL_J1608.7+1029_daily_bin1245.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.58
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/54994/ft1_filtered_4FGL_J1608.7+1029_daily_bin1245.fits evtable="EVENTS" scfile=/scratch/kocevski/54994/ft2_4FGL_J1608.7+1029_daily_bin1245.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/54994/Model_4FGL_J1608.7+1029_daily_bin1245.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/54994/ft1_filtered_4FGL_J1608.7+1029_daily_bin1245.fits.....................!
real 61.45
user 59.91
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.2742       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .29361E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    9.7093       1.0000         .10000E-03   10000.    
    10 'norm      '    3.6545       1.0000         .10000E-03   10000.    
    11 'norm      '    17.146       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.921       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.7527       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.5148       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.7276       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .63050       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=   7663.455     FROM MIGRAD    STATUS=CONVERGED    439 CALLS     1898 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.733       -.92018E-05** at limit **
   2  Prefactor     .10000E-03    28.094        .42868E-05** at limit **
   3  Prefactor     .10000E-03    37.535        .34710E-04** at limit **
   4  norm          .10000E-03    1.1449       -.13126E-07** at limit **
   5  Prefactor     3.2697        4.1397       -.35233E-06   -.50068E-03
   6  Prefactor     .10000E-03    9.0584        .10030E-05** at limit **
   7  norm          .10179        2.4169       -.18068E-05    .64969E-03
   8  Prefactor     .10000E-03    22.174       -.20940E-04** at limit **
   9  norm          9.7109        8.0380        .22195E-05   -.57178E-04
  10  norm          3.6545        1.6619       -.99936E-07    .13012E-03
  11  norm          17.151        17.540        .14411E-05   -.11390E-04
  12  norm          .10000E-03    49.188       -.51293E-05** at limit **
  13  Prefactor     11.926        13.162       -.47789E-06   -.50072E-04
  14  Prefactor     .10000E-03    52.856       -.29772E-04** at limit **
  15  Prefactor     6.7654        30.304        .28315E-04   -.10572E-04
  16  Prefactor     .10000E-03    2.4101       -.12284E-06** at limit **
  17  Prefactor     .10000E-03    6.2160        .30563E-06** at limit **
  18  Prefactor     .10000E-03    3.1718       -.33348E-08** at limit **
  19  Prefactor     3.5171        5.2973       -.39560E-05   -.50910E-03
  20  Normalizat    1.7275        .23383       -.13497E-05    .14486E-03
  21  Prefactor     .63030        .94072E-01   -.14261E-06    .42287E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.26973
  Prefactor  = 0.0001
  norm       = 0.101793
  Prefactor  = 0.0001
  norm       = 9.71095
  norm       = 3.65453
  norm       = 17.1505
  norm       = 0.0001
  Prefactor  = 11.9264
  Prefactor  = 0.0001
  Prefactor  = 6.76541
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.51709
  Normalizat = 1.72752
  Prefactor  = 0.630299
 **********
 **   18 **HESSE 
 **********

 FCN=   7663.455     FROM HESSE     STATUS=OK           315 CALLS     2213 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    25.791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    28.232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    37.756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.1701        .91419E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.2697        4.1307        .19179E-03   -1.5346    
   6  Prefactor     .10000E-03    9.0614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10179        13.967        .26115E-02   -1.5644    
   8  Prefactor     .10000E-03    22.166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          9.7109        8.0312        .12860E-03   -1.5085    
  10  norm          3.6545        1.6616        .73260E-04   -1.5326    
  11  norm          17.151        17.594        .96723E-04   -1.4879    
  12  norm          .10000E-03    49.191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     11.926        13.212        .11602E-03   -1.5017    
  14  Prefactor     .10000E-03    52.834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.7654        30.139        .15441E-03   -1.5188    
  16  Prefactor     .10000E-03    2.4116        .13272E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.2819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.1815        .15225E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.5171        5.3320        .21564E-03   -1.5333    
  20  Normalizat    1.7275        .28239        .29801E-03   -.71571    
  21  Prefactor     .63030        .11327        .18996E-03   -1.0633    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.9981e-09
Minuit parameter uncertainties:
  1  2.8052e-05
  2  1.3598e-05
  3  5.39157e-05
  4  3.65392e-06
  5  4.13102
  6  1.10303e-07
  7  2.38411
  8  5.38188e-06
  9  8.03212
  10  1.66163
  11  17.5998
  12  5.78811e-06
  13  13.2153
  14  3.10348e-05
  15  28.5829
  16  1.37053e-05
  17  9.74309e-06
  18  5.63245e-06
  19  5.33272
  20  0.282656
  21  0.113313
Done.

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

Extracting fit parameters...

4FGL J1608.7+1029
   Spectrum: LogParabola
261         norm:  1.715e+01  1.760e+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:  6.303e-01  1.133e-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.728e+00  2.827e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.15
Ra Dec: 242.176 10.494
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 5.47e-08 +/- 5.61e-08
Energy Flux (Fixed Index): 1.56e-05 +/- 1.60e-05

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

Saving results to:
/scratch/kocevski/54994/likelihoodResults_562032001_562291201_4FGL_J1608.7+1029_daily_bin1245.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) = 7662.77182916
delta logL = 0.683314855887

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7662.76426118
delta logL = 0.690882840359

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.479       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.3843       1.0000          .0000       5.0000    
     3 'Normalizat'    1.6669       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64611       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=   7662.764     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      291 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.476        16.688        .11340E-03    .13982E-02
   2  alpha         3.3841        .99904        .17792E-01    .16514E-03
   3  Normalizat    1.6670        .28100        .30201E-03   -.51717E-03
   4  Prefactor     .64610        .11332        .18776E-03   -.83108E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 12.4761
  alpha      = 3.38406
  Normalizat = 1.66701
  Prefactor  = 0.646103
 **********
 **   18 **HESSE 
 **********

 FCN=   7662.764     FROM HESSE     STATUS=OK            23 CALLS      314 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.476        14.463        .45358E-05   -1.5001    
   2  alpha         3.3841        .87211        .71166E-03    .36144    
   3  Normalizat    1.6670        .28139        .60403E-04   -.73188    
   4  Prefactor     .64610        .11335        .37551E-04   -1.0568    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.18249e-09
Minuit parameter uncertainties:
  1  14.4673
  2  0.89371
  3  0.281659
  4  0.113393
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/54994': 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) = 7662.76426087
delta logL = 0.690883145466

Extracting fit parameters...

4FGL J1608.7+1029
   Spectrum: LogParabola
261         norm:  1.248e+01  1.447e+01  1.000e-04  1.000e+04 ( 1.000e-12)
262        alpha:  3.384e+00  8.937e-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:  6.461e-01  1.134e-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.667e+00  2.817e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.61
Ra Dec: 242.176 10.494
Photon Index (Free Index): 3.38 +/- 0.89
Photon Flux (Free Index): 1.07e-07 +/- 7.71e-08
Energy Flux (Free Index): 1.94e-05 +/- 1.40e-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/54994/cmap_HighResolution_562032001_562291201_4FGL_J1608.7+1029_daily_bin1245.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.75e-05', comment='SUCCESS', photon_flux='5.47e-08', energy_flux2='1.94e-05', photon_flux_error='5.61e-08', dlogl='6.91e-01', energy_flux='1.56e-05', photon_flux2='1.07e-07', job_status='DONE', time_completed='2021-09-13 09:53:02.527839', photon_index_error2='0.89', photon_index2='3.38', ts='1.15', fit_tolerance='1e-08', GAL='0.63', photon_index_error='0.00', photon_flux_upper_limit='1.66e-07', energy_flux_error2='1.40e-05', EG='1.73', time_epoch_completed='1631551982.53', return_code='0', job_id='54994', GAL2='0.65', EG2='1.67', return_code2='0', energy_flux_error='1.60e-05', photon_flux_error2='7.71e-08', ts2='2.61', photon_index='2.46' WHERE bin_id='1245' AND source_name='4FGL J1608.7+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 09:53:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0188>
Subject: Job 54994: <4FGL_J1608.7+1029_daily_bin1245> in cluster <slac> Done

Job <4FGL_J1608.7+1029_daily_bin1245> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep 13 09:40:25 2021
Job was executed on host(s) <bullet0188>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 13 09:42:12 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:42:12 2021
Terminated at Mon Sep 13 09:53:03 2021
Results reported at Mon Sep 13 09:53:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1608.7+1029_daily_bin1245 242.176 10.4938 562032001 562291201 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 :                                   632.23 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             348.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   651 sec.
    Turnaround time :                            758 sec.

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

