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


Performing analysis on: 4FGL_J1608.7+1029_daily_bin1608
RA = 242.176, Dec = 10.4938
tmin = 656121601, tmax = 656380801
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='388489', job_status='RUN', time_executed='2021-12-08 02:28:02.229675', time_epoch_executed='1638959282.23' WHERE source_name='4FGL J1608.7+1029' and cadence='daily' and bin_id='1608'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/388489

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/388489/ft1_4FGL_J1608.7+1029_daily_bin1608.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/388489/ft2_4FGL_J1608.7+1029_daily_bin1608.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/388489/ft1_4FGL_J1608.7+1029_daily_bin1608.fits outfile=/scratch/kocevski/388489/ft1_filteredMKT_4FGL_J1608.7+1029_daily_bin1608.fits ra=242.176 dec=10.4938 rad=12.0 tmin=656121601.0 tmax=656380801.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.54
user 3.30
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/388489/ft1_filtered_4FGL_J1608.7+1029_daily_bin1608.fits" evtable="EVENTS" scfile=/scratch/kocevski/388489/ft2_4FGL_J1608.7+1029_daily_bin1608.fits sctable="SC_DATA" outfile=/scratch/kocevski/388489/ltcube_656121601_656380801_4FGL_J1608.7+1029_daily_bin1608.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/388489/ft2_4FGL_J1608.7+1029_daily_bin1608.fits
.....................!
real 14.29
user 13.90
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/388489/ft1_filtered_4FGL_J1608.7+1029_daily_bin1608.fits evtable="EVENTS" scfile=/scratch/kocevski/388489/ft2_4FGL_J1608.7+1029_daily_bin1608.fits sctable="SC_DATA" expcube=/scratch/kocevski/388489/ltcube_656121601_656380801_4FGL_J1608.7+1029_daily_bin1608.fits outfile=/scratch/kocevski/388489/expmap_656121601_656380801_4FGL_J1608.7+1029_daily_bin1608.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/388489/ltcube_656121601_656380801_4FGL_J1608.7+1029_daily_bin1608.fits
.....................!
real 191.17
user 185.98
sys 4.75

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/388489/ft1_filtered_4FGL_J1608.7+1029_daily_bin1608.fits scfile=/scratch/kocevski/388489/ft2_4FGL_J1608.7+1029_daily_bin1608.fits outfile=/scratch/kocevski/388489/cmap_656121601_656380801_4FGL_J1608.7+1029_daily_bin1608.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/388489/ft1_filtered_4FGL_J1608.7+1029_daily_bin1608.fits scfile=/scratch/kocevski/388489/ft2_4FGL_J1608.7+1029_daily_bin1608.fits outfile=/scratch/kocevski/388489/cmap_HighResolution_656121601_656380801_4FGL_J1608.7+1029_daily_bin1608.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=242.176 yref=10.4938 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/388489/ft1_filtered_4FGL_J1608.7+1029_daily_bin1608.fits evtable="EVENTS" scfile=/scratch/kocevski/388489/ft2_4FGL_J1608.7+1029_daily_bin1608.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/388489/Model_4FGL_J1608.7+1029_daily_bin1608.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/388489/ft1_filtered_4FGL_J1608.7+1029_daily_bin1608.fits.....................!
real 65.12
user 63.64
sys 1.31

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    8.2882       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.2039       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10141E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10731E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    11.665       1.0000         .10000E-03   10000.    
    10 'norm      '    5.2172       1.0000         .10000E-03   10000.    
    11 'norm      '    28.667       1.0000         .10000E-03   10000.    
    12 'norm      '    78.769       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10276E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    36.503       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .29062E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .13962E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.3009       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10980       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0838       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .99343       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=   8215.473     FROM MIGRAD    STATUS=CONVERGED    806 CALLS     2558 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.760        .18142E-02** at limit **
   2  Prefactor     .10000E-03    24.104        .18142E-02** at limit **
   3  Prefactor     .10000E-03    17.701        .18142E-02** at limit **
   4  norm          8.2861        3.3492        .10110E-03   -.10975E-03
   5  Prefactor     5.2022        4.2604        .16262E-03   -.78577E-04
   6  Prefactor     .10000E-03    17.965        .18142E-02** at limit **
   7  norm          .10000E-03    3.0710        .30513E-03** at limit **
   8  Prefactor     .10000E-03    34.928        .18142E-02** at limit **
   9  norm          11.658        8.2267        .11729E-03   -.38189E-04
  10  norm          5.2171        1.8152        .69970E-04    .90988E-05
  11  norm          28.655        16.159        .74827E-04    .72928E-05
  12  norm          78.790        79.477        .22624E-03    .36340E-04
  13  Prefactor     .10000E-03    4.3100        .18142E-02** at limit **
  14  Prefactor     .10000E-03    30.244        .18142E-02** at limit **
  15  Prefactor     36.608        33.113        .66333E-04    .97760E-04
  16  Prefactor     .10001E-03    15.518        .38685E-02** at limit **
  17  Prefactor     .10020E-03    29.099        .35012E-02** at limit **
  18  Prefactor     1.3052        9.5884        .38737E-03   -.18572E-03
  19  Prefactor     .94640E-01    6.3006        .55045E-01    .23975E-03
  20  Normalizat    1.0842        .28264        .37514E-03   -.16741E-03
  21  Prefactor     .99344        .12269        .17075E-03   -.45570E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.2861
  Prefactor  = 5.20219
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 11.6583
  norm       = 5.2171
  norm       = 28.6554
  norm       = 78.7895
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 36.608
  Prefactor  = 0.000100006
  Prefactor  = 0.000100202
  Prefactor  = 1.30521
  Prefactor  = 0.0946404
  Normalizat = 1.08419
  Prefactor  = 0.993436
 **********
 **   18 **HESSE 
 **********

 FCN=   8215.473     FROM HESSE     STATUS=OK           305 CALLS     2863 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.761        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    24.106        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    17.704        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          8.2861        3.3492        .40441E-05   -1.5132    
   5  Prefactor     5.2022        4.2602        .65049E-05   -1.5252    
   6  Prefactor     .10000E-03    17.966        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.0711        .61026E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    34.930        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          11.658        8.2264        .46917E-05   -1.5025    
  10  norm          5.2171        1.8152        .27988E-05   -1.5251    
  11  norm          28.655        16.160        .29931E-05   -1.4637    
  12  norm          78.790        79.477        .45249E-04   -1.3930    
  13  Prefactor     .10000E-03    4.3103        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    30.244        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     36.608        33.108        .13267E-04   -1.4497    
  16  Prefactor     .10001E-03    15.667        .77369E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10020E-03    29.910        .14005E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.3052        9.5819        .15495E-04   -1.5479    
  19  Prefactor     .94640E-01    5.7680        .58284E-01   -1.5646    
  20  Normalizat    1.0842        .28287        .15006E-04   -.90261    
  21  Prefactor     .99344        .12274        .34150E-04   -.92949    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.61022e-09
Minuit parameter uncertainties:
  1  4.58891e-05
  2  0.000201542
  3  5.31518e-06
  4  3.34923
  5  4.26041
  6  1.31949e-05
  7  1.54071e-05
  8  2.31076e-05
  9  8.22724
  10  1.81518
  11  16.1623
  12  79.5842
  13  1.33197e-05
  14  4.72757e-05
  15  33.1246
  16  0.000636254
  17  0.00492108
  18  7.0742
  19  1.47705
  20  0.283268
  21  0.122772
Done.

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

Extracting fit parameters...

4FGL J1608.7+1029
   Spectrum: LogParabola
261         norm:  2.866e+01  1.616e+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:  9.934e-01  1.228e-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.084e+00  2.833e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.87
Ra Dec: 242.176 10.494
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 9.14e-08 +/- 5.15e-08
Energy Flux (Fixed Index): 2.61e-05 +/- 1.47e-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) = 8215.0426259
delta logL = 0.430418085287

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8215.04047736
delta logL = 0.432566621721

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    20.850       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1059       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0274       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0107       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=   8215.040     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      268 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          20.849        18.003        .87718E-04    .48472E-03
   2  alpha         3.1059        .81123        .15201E-01    .62349E-04
   3  Normalizat    1.0275        .28616        .38395E-03   -.89007E-04
   4  Prefactor     1.0107        .12346        .16942E-03   -.29751E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 20.8489
  alpha      = 3.10595
  Normalizat = 1.02746
  Prefactor  = 1.01067
 **********
 **   18 **HESSE 
 **********

 FCN=   8215.040     FROM HESSE     STATUS=OK            25 CALLS      293 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          20.849        16.471        .35087E-05   -1.4794    
   2  alpha         3.1059        .74358        .60804E-03    .24482    
   3  Normalizat    1.0275        .28584        .15358E-04   -.92116    
   4  Prefactor     1.0107        .12333        .33884E-04   -.92375    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.90265e-10
Minuit parameter uncertainties:
  1  16.4748
  2  0.755747
  3  0.286271
  4  0.123361
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/388489': 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) = 8215.04047736
delta logL = 0.432566630923

Extracting fit parameters...

4FGL J1608.7+1029
   Spectrum: LogParabola
261         norm:  2.085e+01  1.647e+01  1.000e-04  1.000e+04 ( 1.000e-12)
262        alpha:  3.106e+00  7.557e-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.011e+00  1.234e-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.027e+00  2.863e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.86
Ra Dec: 242.176 10.494
Photon Index (Free Index): 3.11 +/- 0.76
Photon Flux (Free Index): 1.29e-07 +/- 7.31e-08
Energy Flux (Free Index): 2.59e-05 +/- 1.33e-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/388489/cmap_HighResolution_656121601_656380801_4FGL_J1608.7+1029_daily_bin1608.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.14e-08', energy_flux2='2.59e-05', photon_flux_error='5.15e-08', dlogl='4.33e-01', energy_flux='2.61e-05', photon_flux2='1.29e-07', job_status='DONE', time_completed='2021-12-08 02:38:47.655283', photon_index_error2='0.76', photon_index2='3.11', ts='4.87', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='1.33e-05', EG='1.08', time_epoch_completed='1638959927.66', return_code='0', job_id='388489', GAL2='1.01', EG2='1.03', return_code2='0', energy_flux_error='1.47e-05', photon_flux_error2='7.31e-08', ts2='5.86', photon_index='2.46' WHERE bin_id='1608' AND source_name='4FGL J1608.7+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 02:38:47 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0161>
Subject: Job 388489: <4FGL_J1608.7+1029_daily_bin1608> in cluster <slac> Done

Job <4FGL_J1608.7+1029_daily_bin1608> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Dec  8 02:25:30 2021
Job was executed on host(s) <bullet0161>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 02:27:52 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 02:27:52 2021
Terminated at Wed Dec  8 02:38:48 2021
Results reported at Wed Dec  8 02:38:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1608.7+1029_daily_bin1608 242.176 10.4938 656121601 656380801 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 :                                   644.25 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             289.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   655 sec.
    Turnaround time :                            798 sec.

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

