/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 19 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 = 7477
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1608.7+1029_daily_bin7
RA = 242.176, Dec = 10.4938
tmin = 241142401, tmax = 241401601
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='45828', job_status='RUN', time_executed='2021-09-13 09:13:17.037466', time_epoch_executed='1631549597.04' WHERE source_name='4FGL J1608.7+1029' and cadence='daily' and bin_id='7'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/45828

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/45828/ft1_4FGL_J1608.7+1029_daily_bin7.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/45828/ft2_4FGL_J1608.7+1029_daily_bin7.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/45828/ft1_4FGL_J1608.7+1029_daily_bin7.fits outfile=/scratch/kocevski/45828/ft1_filteredMKT_4FGL_J1608.7+1029_daily_bin7.fits ra=242.176 dec=10.4938 rad=12.0 tmin=241142401.0 tmax=241401601.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 1.49
user 1.32
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/45828/ft1_filtered_4FGL_J1608.7+1029_daily_bin7.fits" evtable="EVENTS" scfile=/scratch/kocevski/45828/ft2_4FGL_J1608.7+1029_daily_bin7.fits sctable="SC_DATA" outfile=/scratch/kocevski/45828/ltcube_241142401_241401601_4FGL_J1608.7+1029_daily_bin7.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/45828/ft2_4FGL_J1608.7+1029_daily_bin7.fits
.....................!
real 14.20
user 13.82
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/45828/ft1_filtered_4FGL_J1608.7+1029_daily_bin7.fits evtable="EVENTS" scfile=/scratch/kocevski/45828/ft2_4FGL_J1608.7+1029_daily_bin7.fits sctable="SC_DATA" expcube=/scratch/kocevski/45828/ltcube_241142401_241401601_4FGL_J1608.7+1029_daily_bin7.fits outfile=/scratch/kocevski/45828/expmap_241142401_241401601_4FGL_J1608.7+1029_daily_bin7.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/45828/ltcube_241142401_241401601_4FGL_J1608.7+1029_daily_bin7.fits
.....................!
real 190.42
user 185.61
sys 4.35

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/45828/ft1_filtered_4FGL_J1608.7+1029_daily_bin7.fits scfile=/scratch/kocevski/45828/ft2_4FGL_J1608.7+1029_daily_bin7.fits outfile=/scratch/kocevski/45828/cmap_241142401_241401601_4FGL_J1608.7+1029_daily_bin7.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.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/45828/ft1_filtered_4FGL_J1608.7+1029_daily_bin7.fits evtable="EVENTS" scfile=/scratch/kocevski/45828/ft2_4FGL_J1608.7+1029_daily_bin7.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/45828/Model_4FGL_J1608.7+1029_daily_bin7.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/45828/ft1_filtered_4FGL_J1608.7+1029_daily_bin7.fits.....................!
real 97.72
user 96.36
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    50.962       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .28014E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10370E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.1085       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.6072       1.0000         .10000E-03   10000.    
     7 'norm      '    4.6138       1.0000         .10000E-03   10000.    
     8 'Prefactor '    36.692       1.0000         .10000E-03   10000.    
     9 'norm      '    27.489       1.0000         .10000E-03   10000.    
    10 'norm      '    6.2177       1.0000         .10000E-03   10000.    
    11 'norm      '    32.981       1.0000         .10000E-03   10000.    
    12 'norm      '    30.991       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.9725       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.1317       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.4493       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0640       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0044       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=   14047.06     FROM MIGRAD    STATUS=CONVERGED    469 CALLS     2313 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     50.960        32.805        .12284E-05    .89094E-04
   2  Prefactor     .10018E-03    21.959       -.26329E-05** at limit **
   3  Prefactor     .10000E-03    12.850       -.15849E-07** at limit **
   4  norm          .10000E-03    1.6251       -.32821E-07** at limit **
   5  Prefactor     1.1079        3.0643        .35891E-06   -.69527E-03
   6  Prefactor     3.6218        62.883        .13569E-04    .10888E-03
   7  norm          4.6138        2.4394        .29015E-08   -.21865E-04
   8  Prefactor     36.694        33.733       -.30617E-06    .23560E-05
   9  norm          27.493        9.2014       -.92717E-06    .10038E-03
  10  norm          6.2176        1.6743        .47744E-07    .77271E-04
  11  norm          32.983        12.743        .10434E-05    .85794E-05
  12  norm          30.985        54.239       -.33502E-05    .77809E-06
  13  Prefactor     .10000E-03    18.226       -.26158E-07** at limit **
  14  Prefactor     .10000E-03    45.278        .25150E-06** at limit **
  15  Prefactor     4.9719        25.496        .10417E-05   -.22039E-03
  16  Prefactor     2.1301        6.7209       -.12254E-06   -.15233E-03
  17  Prefactor     .10000E-03    2.1559       -.16037E-07** at limit **
  18  Prefactor     .10000E-03    1.1659       -.15513E-07** at limit **
  19  Prefactor     5.4489        3.1907        .36404E-06   -.26253E-02
  20  Normalizat    1.0638        .19351       -.12901E-05    .24958E-03
  21  Prefactor     1.0045        .78439E-01    .14983E-06    .20637E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 50.9602
  Prefactor  = 0.000100182
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.10788
  Prefactor  = 3.62184
  norm       = 4.61381
  Prefactor  = 36.6939
  norm       = 27.4926
  norm       = 6.21763
  norm       = 32.9826
  norm       = 30.9848
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.97186
  Prefactor  = 2.13011
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.4489
  Normalizat = 1.06381
  Prefactor  = 1.0045
 **********
 **   18 **HESSE 
 **********

 FCN=   14047.06     FROM HESSE     STATUS=OK           325 CALLS     2638 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     50.960        33.040        .56178E-04   -1.4279    
   2  Prefactor     .10018E-03    22.121        .13573       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    13.086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.6889        .29412E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.1079        3.2843        .34390E-03   -1.5497    
   6  Prefactor     3.6218        72.416        .21274E-03   -1.5327    
   7  norm          4.6138        2.4324        .12963E-03   -1.5278    
   8  Prefactor     36.694        33.757        .66163E-04   -1.4496    
   9  norm          27.493        9.1781        .76410E-04   -1.4659    
  10  norm          6.2176        1.6739        .76518E-04   -1.5209    
  11  norm          32.983        12.603        .69774E-04   -1.4559    
  12  norm          30.985        54.048        .71974E-04   -1.4594    
  13  Prefactor     .10000E-03    18.890        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    45.368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.9719        27.730        .90174E-03   -1.5262    
  16  Prefactor     2.1301        6.6573        .28238E-03   -1.5416    
  17  Prefactor     .10000E-03    2.1760        .16988E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.1687        .12497E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.4489        4.5136        .86067E-03   -1.5241    
  20  Normalizat    1.0638        .22966        .38729E-03   -.90922    
  21  Prefactor     1.0045        .94161E-01    .17197E-03   -.92580    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.45425e-09
Minuit parameter uncertainties:
  1  33.052
  2  0.0040097
  3  3.33761e-06
  4  6.51663e-06
  5  3.28486
  6  32.4347
  7  2.43243
  8  33.7745
  9  9.17854
  10  1.67387
  11  12.6043
  12  54.1336
  13  2.64277e-05
  14  1.55469e-05
  15  23.5
  16  6.65965
  17  1.29846e-06
  18  4.36915e-07
  19  4.51388
  20  0.229872
  21  0.094176
Done.

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

Extracting fit parameters...

4FGL J1608.7+1029
   Spectrum: LogParabola
261         norm:  3.298e+01  1.260e+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:  1.005e+00  9.418e-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.064e+00  2.299e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.84
Ra Dec: 242.176 10.494
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 1.05e-07 +/- 4.02e-08
Energy Flux (Fixed Index): 3.01e-05 +/- 1.15e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14046.9330359
delta logL = 0.12804313318

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14046.9321115
delta logL = 0.128967500828

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    31.020       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6928       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0385       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0115       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=   14046.93     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      307 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          31.023        13.026        .71940E-04    .66056E-04
   2  alpha         2.6928        .47729        .15354E-01    .25824E-03
   3  Normalizat    1.0384        .21923        .39135E-03    .98769E-05
   4  Prefactor     1.0115        .93202E-01    .17142E-03   -.23912E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 31.0228
  alpha      = 2.6928
  Normalizat = 1.03838
  Prefactor  = 1.0115
 **********
 **   18 **HESSE 
 **********

 FCN=   14046.93     FROM HESSE     STATUS=OK            25 CALLS      332 TOTAL
                     EDM=   .79E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          31.023        12.770        .28776E-05   -1.4593    
   2  alpha         2.6928        .46753        .30707E-02    .77198E-01
   3  Normalizat    1.0384        .21924        .15654E-04   -.91756    
   4  Prefactor     1.0115        .93219E-01    .34284E-04   -.92347    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.86255e-11
Minuit parameter uncertainties:
  1  12.7709
  2  0.47032
  3  0.219426
  4  0.0932337
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/45828': 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) = 14046.9321113
delta logL = 0.128967648299

Extracting fit parameters...

4FGL J1608.7+1029
   Spectrum: LogParabola
261         norm:  3.102e+01  1.277e+01  1.000e-04  1.000e+04 ( 1.000e-12)
262        alpha:  2.693e+00  4.703e-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:  1.012e+00  9.323e-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.038e+00  2.194e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.17
Ra Dec: 242.176 10.494
Photon Index (Free Index): 2.69 +/- 0.47
Photon Flux (Free Index): 1.24e-07 +/- 5.72e-08
Energy Flux (Free Index): 3.03e-05 +/- 1.11e-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/45828/cmap_HighResolution_241142401_241401601_4FGL_J1608.7+1029_daily_bin7.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.05e-07', energy_flux2='3.03e-05', photon_flux_error='4.02e-08', dlogl='1.29e-01', energy_flux='3.01e-05', photon_flux2='1.24e-07', job_status='DONE', time_completed='2021-09-13 09:27:17.725675', photon_index_error2='0.47', photon_index2='2.69', ts='13.84', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='1.11e-05', EG='1.06', time_epoch_completed='1631550437.73', return_code='0', job_id='45828', GAL2='1.01', EG2='1.04', return_code2='0', energy_flux_error='1.15e-05', photon_flux_error2='5.72e-08', ts2='14.17', photon_index='2.46' WHERE bin_id='7' AND source_name='4FGL J1608.7+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 09:27:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 45828: <4FGL_J1608.7+1029_daily_bin7> in cluster <slac> Done

Job <4FGL_J1608.7+1029_daily_bin7> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Sep 13 09:10:40 2021
Job was executed on host(s) <bullet0208>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 13 09:12:49 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:12:49 2021
Terminated at Mon Sep 13 09:27:18 2021
Results reported at Mon Sep 13 09:27:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1608.7+1029_daily_bin7 242.176 10.4938 241142401 241401601 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 :                                   839.31 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             350.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   869 sec.
    Turnaround time :                            998 sec.

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

