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


Performing analysis on: 4FGL_J1702.2+2642_daily_bin1028
RA = 255.558, Dec = 26.7116
tmin = 505785601, tmax = 506044801
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='319548', job_status='RUN', time_executed='2021-09-16 11:43:09.118903', time_epoch_executed='1631817789.12' WHERE source_name='4FGL J1702.2+2642' and cadence='daily' and bin_id='1028'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/319548

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/319548/ft1_4FGL_J1702.2+2642_daily_bin1028.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/319548/ft2_4FGL_J1702.2+2642_daily_bin1028.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/319548/ft1_4FGL_J1702.2+2642_daily_bin1028.fits outfile=/scratch/kocevski/319548/ft1_filteredMKT_4FGL_J1702.2+2642_daily_bin1028.fits ra=255.558 dec=26.7116 rad=12.0 tmin=505785601.0 tmax=506044801.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.61
user 3.38
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/319548/ft2_4FGL_J1702.2+2642_daily_bin1028.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/319548/ft2_4FGL_J1702.2+2642_daily_bin1028.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/319548/ft1_filteredMKT_4FGL_J1702.2+2642_daily_bin1028.fits evtable="EVENTS" outfile="/scratch/kocevski/319548/ft1_filtered_4FGL_J1702.2+2642_daily_bin1028.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.52
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/319548/ft1_filtered_4FGL_J1702.2+2642_daily_bin1028.fits" evtable="EVENTS" scfile=/scratch/kocevski/319548/ft2_4FGL_J1702.2+2642_daily_bin1028.fits sctable="SC_DATA" outfile=/scratch/kocevski/319548/ltcube_505785601_506044801_4FGL_J1702.2+2642_daily_bin1028.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/319548/ft2_4FGL_J1702.2+2642_daily_bin1028.fits
.....................!
real 15.43
user 15.00
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/319548/ft1_filtered_4FGL_J1702.2+2642_daily_bin1028.fits evtable="EVENTS" scfile=/scratch/kocevski/319548/ft2_4FGL_J1702.2+2642_daily_bin1028.fits sctable="SC_DATA" expcube=/scratch/kocevski/319548/ltcube_505785601_506044801_4FGL_J1702.2+2642_daily_bin1028.fits outfile=/scratch/kocevski/319548/expmap_505785601_506044801_4FGL_J1702.2+2642_daily_bin1028.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/319548/ltcube_505785601_506044801_4FGL_J1702.2+2642_daily_bin1028.fits
.....................!
real 193.44
user 187.93
sys 4.65

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 201 point sources and 0 extended sources

Setting source of interest to:
4FGL J1702.2+2642 @ 255.558 26.7116

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/319548/ft1_filtered_4FGL_J1702.2+2642_daily_bin1028.fits scfile=/scratch/kocevski/319548/ft2_4FGL_J1702.2+2642_daily_bin1028.fits outfile=/scratch/kocevski/319548/cmap_505785601_506044801_4FGL_J1702.2+2642_daily_bin1028.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=255.558 yref=26.7116 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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/319548/ft1_filtered_4FGL_J1702.2+2642_daily_bin1028.fits scfile=/scratch/kocevski/319548/ft2_4FGL_J1702.2+2642_daily_bin1028.fits outfile=/scratch/kocevski/319548/cmap_HighResolution_505785601_506044801_4FGL_J1702.2+2642_daily_bin1028.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=255.558 yref=26.7116 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.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/319548/ft1_filtered_4FGL_J1702.2+2642_daily_bin1028.fits evtable="EVENTS" scfile=/scratch/kocevski/319548/ft2_4FGL_J1702.2+2642_daily_bin1028.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/319548/Model_4FGL_J1702.2+2642_daily_bin1028.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/319548/ft1_filtered_4FGL_J1702.2+2642_daily_bin1028.fits.....................!
real 58.40
user 57.01
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/319548/ft1_filtered_4FGL_J1702.2+2642_daily_bin1028.fits', '/scratch/kocevski/319548/ft2_4FGL_J1702.2+2642_daily_bin1028.fits', expMap='/scratch/kocevski/319548/expmap_505785601_506044801_4FGL_J1702.2+2642_daily_bin1028.fits', expCube='/scratch/kocevski/319548/ltcube_505785601_506044801_4FGL_J1702.2+2642_daily_bin1028.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/319548/Model_4FGL_J1702.2+2642_daily_bin1028.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1702.2+2642'

4FGL J1702.2+2642
   Spectrum: PowerLaw
290    Prefactor:  4.481e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
291        Index:  2.119e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
292        Scale:  2.408e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/319548/ft1_filtered_4FGL_J1702.2+2642_daily_bin1028.fits
Spacecraft file(s): /scratch/kocevski/319548/ft2_4FGL_J1702.2+2642_daily_bin1028.fits
Exposure map: /scratch/kocevski/319548/expmap_505785601_506044801_4FGL_J1702.2+2642_daily_bin1028.fits
Exposure cube: /scratch/kocevski/319548/ltcube_505785601_506044801_4FGL_J1702.2+2642_daily_bin1028.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/319548/Model_4FGL_J1702.2+2642_daily_bin1028.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) = 7331.02694876

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.505       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.1219       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.0718       1.0000         .10000E-03   10000.    
     5 'Prefactor '    41.527       1.0000         .10000E-03   10000.    
     6 'Prefactor '    66.393       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.4002       1.0000         .10000E-03   10000.    
     8 'norm      '    4.1828       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    64.246       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.1916       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.776       1.0000         .10000E-03   10000.    
    15 'Normalizat'    .64855       1.0000         .10000E-01   10.000    
    16 'Prefactor '    1.0051       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6600E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7331.019     FROM MIGRAD    STATUS=CONVERGED    287 CALLS     1438 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.505        15.498       -.11233E-05   -.67437E-05
   2  Prefactor     7.1213        9.6150       -.69302E-06   -.20989E-04
   3  Prefactor     .10000E-03    8.2799       -.17083E-06** at limit **
   4  Prefactor     5.0713        5.9830       -.22043E-05   -.39417E-03
   5  Prefactor     41.529        32.375        .20711E-05    .38713E-04
   6  Prefactor     66.393        40.406       -.33818E-06    .14170E-04
   7  Prefactor     3.4016        16.751       -.46821E-05   -.10433E-03
   8  norm          4.1828        2.6462       -.94831E-07    .91179E-04
   9  norm          .10000E-03    25.421       -.29816E-05** at limit **
  10  Prefactor     64.231        76.275       -.17036E-04   -.91922E-05
  11  Prefactor     6.1542        52.045       -.10061E-03   -.19622E-04
  12  Prefactor     .10000E-03    48.901        .51137E-04** at limit **
  13  Prefactor     .10000E-03    57.378       -.50694E-04** at limit **
  14  Prefactor     13.778        10.415        .20496E-05    .10188E-03
  15  Normalizat    .64874        .19244        .30060E-05    .71933E-04
  16  Prefactor     1.0050        .10340        .16310E-05   -.19760E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.5048
  Prefactor  = 7.12133
  Prefactor  = 0.0001
  Prefactor  = 5.07129
  Prefactor  = 41.5294
  Prefactor  = 66.3927
  Prefactor  = 3.40156
  norm       = 4.18277
  norm       = 0.0001
  Prefactor  = 64.2308
  Prefactor  = 6.15417
  Prefactor  = 0.000100003
  Prefactor  = 0.000100001
  Prefactor  = 13.7779
  Normalizat = 0.64874
  Prefactor  = 1.005
 **********
 **   18 **HESSE 
 **********

 FCN=   7331.019     FROM HESSE     STATUS=OK           203 CALLS     1641 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.505        15.495        .10899E-03   -1.4973    
   2  Prefactor     7.1213        9.6160        .15031E-03   -1.5174    
   3  Prefactor     .10000E-03    8.3841        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.0713        5.9683        .17854E-03   -1.5258    
   5  Prefactor     41.529        32.329        .62206E-04   -1.4418    
   6  Prefactor     66.393        40.405        .49256E-04   -1.4077    
   7  Prefactor     3.4016        16.738        .21940E-03   -1.5339    
   8  norm          4.1828        2.6449        .10670E-03   -1.5299    
   9  norm          .10000E-03    25.429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     64.231        76.328        .50067E-04   -1.4103    
  11  Prefactor     6.1542        52.387        .16133E-03   -1.5212    
  12  Prefactor     .10000E-03    49.752        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    57.293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     13.778        10.417        .10792E-03   -1.4965    
  15  Normalizat    .64874        .22170        .36029E-03   -1.0595    
  16  Prefactor     1.0050        .12083        .15950E-03   -.92563    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.1937e-10
Minuit parameter uncertainties:
  1  15.4999
  2  9.61804
  3  2.52052e-05
  4  5.96901
  5  32.3422
  6  40.4212
  7  15.0977
  8  2.64496
  9  1.10959e-05
  10  76.4447
  11  35.9532
  12  0.000828124
  13  0.000521574
  14  10.4186
  15  0.222009
  16  0.120866
Done.

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

Extracting fit parameters...

4FGL J1702.2+2642
   Spectrum: PowerLaw
290    Prefactor:  6.639e+01  4.042e+01  1.000e-04  1.000e+04 ( 1.000e-14)
291        Index:  2.119e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
292        Scale:  2.408e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
657    Prefactor:  1.005e+00  1.209e-01  0.000e+00  1.000e+01 ( 1.000e+00)
658        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
659        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
656   Normalization:  6.487e-01  2.220e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.56
Ra Dec: 255.558 26.712
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 5.03e-08 +/- 3.06e-08
Energy Flux (Fixed Index): 2.65e-05 +/- 1.61e-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) = 7330.94080055
delta logL = 0.078233289225

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7330.92773752
delta logL = 0.0912963165392

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    46.575       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3481       1.0000          .0000       10.000    
     3 'Normalizat'    .63489       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0094       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6600E+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=   7330.928     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      306 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     46.526        63.311        .58752E-04   -.24358E-03
   2  Index         2.3486        .66215        .41994E-02    .65617E-03
   3  Normalizat    .63436        .22114        .36401E-03    .26097E-03
   4  Prefactor     1.0097        .11923        .15915E-03   -.46504E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 46.5257
  Index      = 2.34862
  Normalizat = 0.63436
  Prefactor  = 1.00966
 **********
 **   18 **HESSE 
 **********

 FCN=   7330.928     FROM HESSE     STATUS=OK            25 CALLS      331 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     46.526        54.706        .11750E-04   -1.4343    
   2  Index         2.3486        .57227        .83989E-03   -.55893    
   3  Normalizat    .63436        .22036        .14560E-04   -1.0654    
   4  Prefactor     1.0097        .11903        .31830E-04   -.92408    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.88254e-09
Minuit parameter uncertainties:
  1  54.7655
  2  0.574026
  3  0.220665
  4  0.119063
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/319548': 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) = 7330.92773417
delta logL = 0.091299668723

Extracting fit parameters...

4FGL J1702.2+2642
   Spectrum: PowerLaw
290    Prefactor:  4.653e+01  5.477e+01  1.000e-04  1.000e+04 ( 1.000e-14)
291        Index:  2.349e+00  5.740e-01  0.000e+00  1.000e+01 (-1.000e+00)
292        Scale:  2.408e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
657    Prefactor:  1.010e+00  1.191e-01  0.000e+00  1.000e+01 ( 1.000e+00)
658        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
659        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
656   Normalization:  6.344e-01  2.207e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.75
Ra Dec: 255.558 26.712
Photon Index (Free Index): 2.35 +/- 0.57
Photon Flux (Free Index): 6.07e-08 +/- 4.18e-08
Energy Flux (Free Index): 2.14e-05 +/- 1.57e-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/319548/cmap_HighResolution_505785601_506044801_4FGL_J1702.2+2642_daily_bin1028.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.03e-08', energy_flux2='2.14e-05', photon_flux_error='3.06e-08', dlogl='9.13e-02', energy_flux='2.65e-05', photon_flux2='6.07e-08', job_status='DONE', time_completed='2021-09-16 11:52:50.185033', photon_index_error2='0.57', photon_index2='2.35', ts='5.56', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='1.57e-05', EG='0.65', time_epoch_completed='1631818370.19', return_code='0', job_id='319548', GAL2='1.01', EG2='0.63', return_code2='0', energy_flux_error='1.61e-05', photon_flux_error2='4.18e-08', ts2='5.75', photon_index='2.12' WHERE bin_id='1028' AND source_name='4FGL J1702.2+2642' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 16 11:52:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 319548: <4FGL_J1702.2+2642_daily_bin1028> in cluster <slac> Done

Job <4FGL_J1702.2+2642_daily_bin1028> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Sep 16 11:40:20 2021
Job was executed on host(s) <bullet0069>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 16 11:40:37 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 16 11:40:37 2021
Terminated at Thu Sep 16 11:52:50 2021
Results reported at Thu Sep 16 11:52:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1702.2+2642_daily_bin1028 255.558 26.7116 505785601 506044801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1702.2+2642 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   580.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             293.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   736 sec.
    Turnaround time :                            750 sec.

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

