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


Performing analysis on: 4FGL_J1608.7+1029_daily_bin1603
RA = 242.176, Dec = 10.4938
tmin = 654825601, tmax = 655084801
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='914224', job_status='RUN', time_executed='2021-10-05 00:06:32.290107', time_epoch_executed='1633417592.29' WHERE source_name='4FGL J1608.7+1029' and cadence='daily' and bin_id='1603'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/914224

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/914224/ft1_4FGL_J1608.7+1029_daily_bin1603.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/914224/ft2_4FGL_J1608.7+1029_daily_bin1603.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/914224/ft1_4FGL_J1608.7+1029_daily_bin1603.fits outfile=/scratch/kocevski/914224/ft1_filteredMKT_4FGL_J1608.7+1029_daily_bin1603.fits ra=242.176 dec=10.4938 rad=12.0 tmin=654825601.0 tmax=655084801.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.11
user 2.77
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/914224/ft1_filtered_4FGL_J1608.7+1029_daily_bin1603.fits" evtable="EVENTS" scfile=/scratch/kocevski/914224/ft2_4FGL_J1608.7+1029_daily_bin1603.fits sctable="SC_DATA" outfile=/scratch/kocevski/914224/ltcube_654825601_655084801_4FGL_J1608.7+1029_daily_bin1603.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/914224/ft2_4FGL_J1608.7+1029_daily_bin1603.fits
.....................!
real 12.16
user 11.77
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/914224/ft1_filtered_4FGL_J1608.7+1029_daily_bin1603.fits evtable="EVENTS" scfile=/scratch/kocevski/914224/ft2_4FGL_J1608.7+1029_daily_bin1603.fits sctable="SC_DATA" expcube=/scratch/kocevski/914224/ltcube_654825601_655084801_4FGL_J1608.7+1029_daily_bin1603.fits outfile=/scratch/kocevski/914224/expmap_654825601_655084801_4FGL_J1608.7+1029_daily_bin1603.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/914224/ltcube_654825601_655084801_4FGL_J1608.7+1029_daily_bin1603.fits
.....................!
real 191.15
user 186.13
sys 4.60

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/914224/ft1_filtered_4FGL_J1608.7+1029_daily_bin1603.fits scfile=/scratch/kocevski/914224/ft2_4FGL_J1608.7+1029_daily_bin1603.fits outfile=/scratch/kocevski/914224/cmap_654825601_655084801_4FGL_J1608.7+1029_daily_bin1603.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/914224/ft1_filtered_4FGL_J1608.7+1029_daily_bin1603.fits scfile=/scratch/kocevski/914224/ft2_4FGL_J1608.7+1029_daily_bin1603.fits outfile=/scratch/kocevski/914224/cmap_HighResolution_654825601_655084801_4FGL_J1608.7+1029_daily_bin1603.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.53
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/914224/ft1_filtered_4FGL_J1608.7+1029_daily_bin1603.fits evtable="EVENTS" scfile=/scratch/kocevski/914224/ft2_4FGL_J1608.7+1029_daily_bin1603.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/914224/Model_4FGL_J1608.7+1029_daily_bin1603.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/914224/ft1_filtered_4FGL_J1608.7+1029_daily_bin1603.fits.....................!
real 85.77
user 84.17
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    5.9375       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.7265       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    7.0562       1.0000         .10000E-03   10000.    
    11 'norm      '    8.0467       1.0000         .10000E-03   10000.    
    12 'norm      '    .10070E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.3689       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .25511E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.8642       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.6378       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .80289       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=   11573.05     FROM MIGRAD    STATUS=CONVERGED    464 CALLS     1884 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    40.292       -.75725E-06** at limit **
   2  Prefactor     .10000E-03    9.7969        .86185E-07** at limit **
   3  Prefactor     .10000E-03    19.043        .15486E-06** at limit **
   4  norm          5.9376        2.6316        .20806E-07   -.30864E-03
   5  Prefactor     2.7268        3.6705        .22882E-05    .16114E-03
   6  Prefactor     .10000E-03    8.7676       -.51510E-07** at limit **
   7  norm          .10000E-03    1.2762        .93426E-07** at limit **
   8  Prefactor     .10001E-03    56.536        .11997E-05** at limit **
   9  norm          .10000E-03    2.4066        .41451E-07** at limit **
  10  norm          7.0561        1.8714        .97329E-07    .14085E-02
  11  norm          8.0471        11.172        .10445E-05    .18487E-03
  12  norm          .10000E-03    89.304       -.77805E-07** at limit **
  13  Prefactor     3.3686        11.218        .59695E-06   -.13091E-04
  14  Prefactor     .10000E-03    20.020        .11557E-06** at limit **
  15  Prefactor     .10000E-03    10.532        .22810E-07** at limit **
  16  Prefactor     .10000E-03    1.8235        .38921E-07** at limit **
  17  Prefactor     .10000E-03    1.2678        .12931E-07** at limit **
  18  Prefactor     .10001E-03    3.2362       -.26756E-05** at limit **
  19  Prefactor     1.8629        4.4539        .50093E-05   -.44012E-03
  20  Normalizat    1.6378        .19765       -.25653E-06    .87468E-04
  21  Prefactor     .80284        .82317E-01   -.86792E-06    .24446E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.93765
  Prefactor  = 2.72683
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.00010001
  norm       = 0.0001
  norm       = 7.05613
  norm       = 8.04705
  norm       = 0.000100002
  Prefactor  = 3.36856
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 1.86288
  Normalizat = 1.63784
  Prefactor  = 0.802839
 **********
 **   18 **HESSE 
 **********

 FCN=   11573.05     FROM HESSE     STATUS=OK           313 CALLS     2197 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    40.693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.8128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    19.115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.9376        2.6332        .11232E-03   -1.5221    
   5  Prefactor     2.7268        3.6750        .11480E-02   -1.5378    
   6  Prefactor     .10000E-03    8.7771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.2868        .11866E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    56.977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.4143        .16294E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          7.0561        1.8738        .73732E-04   -1.5177    
  11  norm          8.0471        11.186        .70671E-03   -1.5141    
  12  norm          .10000E-03    89.586        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.3686        11.253        .22047E-03   -1.5341    
  14  Prefactor     .10000E-03    20.044        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.8267        .14187E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    1.2706        .11829E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    8.4842        .36010E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.8629        4.5503        .15257E-02   -1.5435    
  20  Normalizat    1.6378        .23929        .32054E-03   -.73975    
  21  Prefactor     .80284        .99233E-01    .18391E-03   -.99624    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.45524e-09
Minuit parameter uncertainties:
  1  0.000624998
  2  3.89507e-05
  3  0.000139661
  4  2.63322
  5  3.67534
  6  9.42824e-06
  7  9.1474e-06
  8  0.00150003
  9  5.059e-06
  10  1.87384
  11  11.1889
  12  0.000946782
  13  11.2601
  14  5.34795e-05
  15  5.11041e-05
  16  4.1433e-06
  17  1.4791e-06
  18  0.000486227
  19  4.55116
  20  0.239454
  21  0.0992548
Done.

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

Extracting fit parameters...

4FGL J1608.7+1029
   Spectrum: LogParabola
261         norm:  8.047e+00  1.119e+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.028e-01  9.925e-02  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.638e+00  2.395e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/914224/likelihoodResults_654825601_655084801_4FGL_J1608.7+1029_daily_bin1603.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) = 11573.0003002
delta logL = 0.0500102210644

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11572.9955641
delta logL = 0.0547463155854

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.1685       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8839       1.0000          .0000       5.0000    
     3 'Normalizat'    1.6246       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80655       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=   11573.00     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      245 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.1726        12.438        .14982E-03    .35665E-04
   2  alpha         2.8825        1.4700        .40118E-01    .18188E-03
   3  Normalizat    1.6245        .23922        .32159E-03   -.13752E-03
   4  Prefactor     .80658        .99556E-01    .18352E-03   -.47259E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.17259
  alpha      = 2.88247
  Normalizat = 1.6245
  Prefactor  = 0.806578
 **********
 **   18 **HESSE 
 **********

 FCN=   11573.00     FROM HESSE     STATUS=OK            25 CALLS      270 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.1726        11.188        .59928E-05   -1.5172    
   2  alpha         2.8825        1.3384        .80235E-02    .15359    
   3  Normalizat    1.6245        .23912        .12864E-04   -.74337    
   4  Prefactor     .80658        .99457E-01    .36704E-04   -.99486    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.96182e-10
Minuit parameter uncertainties:
  1  11.1913
  2  1.41441
  3  0.239284
  4  0.0994792
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/914224': 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) = 11572.9955634
delta logL = 0.0547470278489

Extracting fit parameters...

4FGL J1608.7+1029
   Spectrum: LogParabola
261         norm:  7.173e+00  1.119e+01  1.000e-04  1.000e+04 ( 1.000e-12)
262        alpha:  2.882e+00  1.414e+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:  8.066e-01  9.948e-02  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.625e+00  2.393e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.63
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/914224/cmap_HighResolution_654825601_655084801_4FGL_J1608.7+1029_daily_bin1603.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.97e-05', job_status='DONE', photon_flux_upper_limit='1.04e-07', time_completed='2021-10-05 00:19:27.489702', job_id='914224', GAL2='0.81', fit_tolerance='1e-08', EG2='1.62', EG='1.64', time_epoch_completed='1633418367.49', return_code2='0', ts='0.63', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='5.47e-02', ts2='0.74', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='1603' AND source_name='4FGL J1608.7+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Oct  5 00:19:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 914224: <4FGL_J1608.7+1029_daily_bin1603> in cluster <slac> Done

Job <4FGL_J1608.7+1029_daily_bin1603> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Oct  5 00:03:04 2021
Job was executed on host(s) <bullet0265>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Oct  5 00:03:06 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Oct  5 00:03:06 2021
Terminated at Tue Oct  5 00:19:28 2021
Results reported at Tue Oct  5 00:19:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1608.7+1029_daily_bin1603 242.176 10.4938 654825601 655084801 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 :                                   776.09 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             295.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   981 sec.
    Turnaround time :                            984 sec.

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

