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


Performing analysis on: 4FGL_J1702.2+2642_daily_bin790
RA = 255.558, Dec = 26.7116
tmin = 444096001, tmax = 444355201
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='316931', job_status='RUN', time_executed='2021-09-16 11:31:32.139169', time_epoch_executed='1631817092.14' WHERE source_name='4FGL J1702.2+2642' and cadence='daily' and bin_id='790'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/316931

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/316931/ft1_4FGL_J1702.2+2642_daily_bin790.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/316931/ft2_4FGL_J1702.2+2642_daily_bin790.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/316931/ft1_4FGL_J1702.2+2642_daily_bin790.fits outfile=/scratch/kocevski/316931/ft1_filteredMKT_4FGL_J1702.2+2642_daily_bin790.fits ra=255.558 dec=26.7116 rad=12.0 tmin=444096001.0 tmax=444355201.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.81
user 3.57
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/316931/ft1_filtered_4FGL_J1702.2+2642_daily_bin790.fits" evtable="EVENTS" scfile=/scratch/kocevski/316931/ft2_4FGL_J1702.2+2642_daily_bin790.fits sctable="SC_DATA" outfile=/scratch/kocevski/316931/ltcube_444096001_444355201_4FGL_J1702.2+2642_daily_bin790.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/316931/ft2_4FGL_J1702.2+2642_daily_bin790.fits
.....................!
real 14.35
user 13.98
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/316931/ft1_filtered_4FGL_J1702.2+2642_daily_bin790.fits evtable="EVENTS" scfile=/scratch/kocevski/316931/ft2_4FGL_J1702.2+2642_daily_bin790.fits sctable="SC_DATA" expcube=/scratch/kocevski/316931/ltcube_444096001_444355201_4FGL_J1702.2+2642_daily_bin790.fits outfile=/scratch/kocevski/316931/expmap_444096001_444355201_4FGL_J1702.2+2642_daily_bin790.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/316931/ltcube_444096001_444355201_4FGL_J1702.2+2642_daily_bin790.fits
.....................!
real 191.55
user 185.88
sys 5.08

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/316931/ft1_filtered_4FGL_J1702.2+2642_daily_bin790.fits scfile=/scratch/kocevski/316931/ft2_4FGL_J1702.2+2642_daily_bin790.fits outfile=/scratch/kocevski/316931/cmap_444096001_444355201_4FGL_J1702.2+2642_daily_bin790.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.58
user 0.41
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/316931/ft1_filtered_4FGL_J1702.2+2642_daily_bin790.fits scfile=/scratch/kocevski/316931/ft2_4FGL_J1702.2+2642_daily_bin790.fits outfile=/scratch/kocevski/316931/cmap_HighResolution_444096001_444355201_4FGL_J1702.2+2642_daily_bin790.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.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/316931/ft1_filtered_4FGL_J1702.2+2642_daily_bin790.fits', '/scratch/kocevski/316931/ft2_4FGL_J1702.2+2642_daily_bin790.fits', expMap='/scratch/kocevski/316931/expmap_444096001_444355201_4FGL_J1702.2+2642_daily_bin790.fits', expCube='/scratch/kocevski/316931/ltcube_444096001_444355201_4FGL_J1702.2+2642_daily_bin790.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/316931/Model_4FGL_J1702.2+2642_daily_bin790.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/316931/ft1_filtered_4FGL_J1702.2+2642_daily_bin790.fits
Spacecraft file(s): /scratch/kocevski/316931/ft2_4FGL_J1702.2+2642_daily_bin790.fits
Exposure map: /scratch/kocevski/316931/expmap_444096001_444355201_4FGL_J1702.2+2642_daily_bin790.fits
Exposure cube: /scratch/kocevski/316931/ltcube_444096001_444355201_4FGL_J1702.2+2642_daily_bin790.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/316931/Model_4FGL_J1702.2+2642_daily_bin790.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) = 9293.1831382

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.4454       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.6741       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.567       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    44.454       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.0738       1.0000         .10000E-03   10000.    
     8 'norm      '    4.9311       1.0000         .10000E-03   10000.    
     9 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    25.837       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.9303       1.0000         .10000E-03   10000.    
    15 'Normalizat'    .72450       1.0000         .10000E-01   10.000    
    16 'Prefactor '    1.0757       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.

 FCN=   9293.129     FROM MIGRAD    STATUS=CONVERGED    316 CALLS     1458 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.4413        13.796        .43049E-02    .59136E-03
   2  Prefactor     .10000E-03    24.614        .90712E-02** at limit **
   3  Prefactor     4.6709        16.676        .46536E-02    .26263E-03
   4  Prefactor     12.564        6.9053        .28249E-02    .26410E-02
   5  Prefactor     .10000E-03    24.381        .90712E-02** at limit **
   6  Prefactor     44.456        38.421        .15033E-02    .10365E-02
   7  Prefactor     2.0708        9.5839        .71707E-02    .31000E-03
   8  norm          4.9307        2.9850        .45280E-02    .33674E-03
   9  norm          .10000E-03    73.306        .90712E-02** at limit **
  10  Prefactor     25.625        57.341        .19702E-02    .28966E-05
  11  Prefactor     .10000E-03    31.653        .90712E-02** at limit **
  12  Prefactor     .10000E-03    9.8805        .90712E-02** at limit **
  13  Prefactor     .10000E-03    25.633        .90712E-02** at limit **
  14  Prefactor     9.9299        11.924        .31790E-02    .17781E-03
  15  Normalizat    .72442        .19568        .86239E-01    .31398E-04
  16  Prefactor     1.0758        .99782E-01    .38593E-01    .42691E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.44133
  Prefactor  = 0.000100005
  Prefactor  = 4.67094
  Prefactor  = 12.5636
  Prefactor  = 0.000100001
  Prefactor  = 44.456
  Prefactor  = 2.07081
  norm       = 4.93069
  norm       = 0.0001
  Prefactor  = 25.6252
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 9.92994
  Normalizat = 0.72442
  Prefactor  = 1.07577
 **********
 **   18 **HESSE 
 **********

 FCN=   9293.129     FROM HESSE     STATUS=OK           203 CALLS     1661 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.4413        13.786        .17219E-03   -1.5241    
   2  Prefactor     .10000E-03    24.995        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.6709        16.644        .18614E-03   -1.5276    
   4  Prefactor     12.564        6.8940        .56499E-03   -1.4999    
   5  Prefactor     .10000E-03    24.448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     44.456        38.407        .60132E-04   -1.4373    
   7  Prefactor     2.0708        9.5562        .28683E-03   -1.5420    
   8  norm          4.9307        2.9874        .12441E-03   -1.5264    
   9  norm          .10000E-03    73.423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     25.625        57.344        .78810E-04   -1.4695    
  11  Prefactor     .10000E-03    31.766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    9.8874        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    25.645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.9299        11.935        .12716E-03   -1.5078    
  15  Normalizat    .72442        .22344        .38195E-03   -1.0294    
  16  Prefactor     1.0758        .11540        .16617E-03   -.90245    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.04331e-09
Minuit parameter uncertainties:
  1  13.7941
  2  0.000672582
  3  16.6602
  4  6.89444
  5  0.000363474
  6  38.4279
  7  8.8991
  8  2.98753
  9  2.93453e-05
  10  57.4672
  11  9.68603e-05
  12  3.35418e-06
  13  0.00025163
  14  11.9381
  15  0.22372
  16  0.115422
Done.

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

Extracting fit parameters...

4FGL J1702.2+2642
   Spectrum: PowerLaw
290    Prefactor:  4.446e+01  3.843e+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.076e+00  1.154e-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:  7.244e-01  2.237e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.19
Ra Dec: 255.558 26.712
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 3.37e-08 +/- 2.91e-08
Energy Flux (Fixed Index): 1.77e-05 +/- 1.53e-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) = 9293.03041298
delta logL = 0.0989196201899

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9293.02597294
delta logL = 0.103359664456

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    46.363       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6018       1.0000          .0000       10.000    
     3 'Normalizat'    .74366       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0732       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=   9293.026     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      285 TOTAL
                     EDM=   .50E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     46.365        46.962        .58886E-04    .83404E-05
   2  Index         1.6015        .92219        .13445E-01   -.21758E-04
   3  Normalizat    .74364        .21495        .37737E-03   -.12743E-03
   4  Prefactor     1.0732        .11258        .16637E-03   -.29828E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 46.3647
  Index      = 1.60152
  Normalizat = 0.743644
  Prefactor  = 1.07322
 **********
 **   18 **HESSE 
 **********

 FCN=   9293.026     FROM HESSE     STATUS=OK            25 CALLS      310 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     46.365        47.518        .11777E-04   -1.4345    
   2  Index         1.6015        .93220        .53781E-03   -.74735    
   3  Normalizat    .74364        .21502        .15095E-04   -1.0219    
   4  Prefactor     1.0732        .11266        .33275E-04   -.90327    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.64001e-11
Minuit parameter uncertainties:
  1  47.5568
  2  0.942538
  3  0.215269
  4  0.112681
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/316931': 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) = 9293.02597288
delta logL = 0.103359724935

Extracting fit parameters...

4FGL J1702.2+2642
   Spectrum: PowerLaw
290    Prefactor:  4.636e+01  4.756e+01  1.000e-04  1.000e+04 ( 1.000e-14)
291        Index:  1.602e+00  9.425e-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.073e+00  1.127e-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:  7.436e-01  2.153e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.39
Ra Dec: 255.558 26.712
Photon Index (Free Index): 1.60 +/- 0.94
Photon Flux (Free Index): 1.24e-08 +/- 2.61e-08
Energy Flux (Free Index): 2.79e-05 +/- 4.43e-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/316931/cmap_HighResolution_444096001_444355201_4FGL_J1702.2+2642_daily_bin790.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.37e-08', energy_flux2='2.79e-05', photon_flux_error='2.91e-08', dlogl='1.03e-01', energy_flux='1.77e-05', photon_flux2='1.24e-08', job_status='DONE', time_completed='2021-09-16 11:42:06.013993', photon_index_error2='0.94', photon_index2='1.60', ts='5.19', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='4.43e-05', EG='0.72', time_epoch_completed='1631817726.01', return_code='0', job_id='316931', GAL2='1.07', EG2='0.74', return_code2='0', energy_flux_error='1.53e-05', photon_flux_error2='2.61e-08', ts2='5.39', photon_index='2.12' WHERE bin_id='790' AND source_name='4FGL J1702.2+2642' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 16 11:42:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0137>
Subject: Job 316931: <4FGL_J1702.2+2642_daily_bin790> in cluster <slac> Done

Job <4FGL_J1702.2+2642_daily_bin790> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Thu Sep 16 11:30:33 2021
Job was executed on host(s) <bullet0137>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 16 11:31:21 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:31:21 2021
Terminated at Thu Sep 16 11:42:06 2021
Results reported at Thu Sep 16 11:42:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1702.2+2642_daily_bin790 255.558 26.7116 444096001 444355201 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 :                                   633.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             317.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   645 sec.
    Turnaround time :                            693 sec.

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

