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


Performing analysis on: 4FGL_J1702.2+2642_daily_bin652
RA = 255.558, Dec = 26.7116
tmin = 408326401, tmax = 408585601
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='315736', job_status='RUN', time_executed='2021-09-16 11:29:13.929114', time_epoch_executed='1631816953.93' WHERE source_name='4FGL J1702.2+2642' and cadence='daily' and bin_id='652'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/315736

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/315736/ft1_4FGL_J1702.2+2642_daily_bin652.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/315736/ft2_4FGL_J1702.2+2642_daily_bin652.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/315736/ft1_4FGL_J1702.2+2642_daily_bin652.fits outfile=/scratch/kocevski/315736/ft1_filteredMKT_4FGL_J1702.2+2642_daily_bin652.fits ra=255.558 dec=26.7116 rad=12.0 tmin=408326401.0 tmax=408585601.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 4.93
user 4.63
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/315736/ft2_4FGL_J1702.2+2642_daily_bin652.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/315736/ft1_filteredMKT_4FGL_J1702.2+2642_daily_bin652.fits evtable="EVENTS" outfile="/scratch/kocevski/315736/ft1_filtered_4FGL_J1702.2+2642_daily_bin652.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.54
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/315736/ft1_filtered_4FGL_J1702.2+2642_daily_bin652.fits" evtable="EVENTS" scfile=/scratch/kocevski/315736/ft2_4FGL_J1702.2+2642_daily_bin652.fits sctable="SC_DATA" outfile=/scratch/kocevski/315736/ltcube_408326401_408585601_4FGL_J1702.2+2642_daily_bin652.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/315736/ft2_4FGL_J1702.2+2642_daily_bin652.fits
.....................!
real 13.39
user 13.03
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/315736/ft1_filtered_4FGL_J1702.2+2642_daily_bin652.fits evtable="EVENTS" scfile=/scratch/kocevski/315736/ft2_4FGL_J1702.2+2642_daily_bin652.fits sctable="SC_DATA" expcube=/scratch/kocevski/315736/ltcube_408326401_408585601_4FGL_J1702.2+2642_daily_bin652.fits outfile=/scratch/kocevski/315736/expmap_408326401_408585601_4FGL_J1702.2+2642_daily_bin652.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/315736/ltcube_408326401_408585601_4FGL_J1702.2+2642_daily_bin652.fits
.....................!
real 192.82
user 187.57
sys 4.80

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/315736/ft1_filtered_4FGL_J1702.2+2642_daily_bin652.fits scfile=/scratch/kocevski/315736/ft2_4FGL_J1702.2+2642_daily_bin652.fits outfile=/scratch/kocevski/315736/cmap_408326401_408585601_4FGL_J1702.2+2642_daily_bin652.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/315736/ft1_filtered_4FGL_J1702.2+2642_daily_bin652.fits scfile=/scratch/kocevski/315736/ft2_4FGL_J1702.2+2642_daily_bin652.fits outfile=/scratch/kocevski/315736/cmap_HighResolution_408326401_408585601_4FGL_J1702.2+2642_daily_bin652.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.55
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.086       1.0000         .10000E-03   10000.    
     2 'Prefactor '    35.021       1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.302       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.5333       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.1874       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.9068       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.987       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.9525       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.6801       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13176E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.7315       1.0000         .10000E-03   10000.    
    15 'Normalizat'    1.2150       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .91323       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=   10436.46     FROM MIGRAD    STATUS=CONVERGED    300 CALLS     1466 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.083        17.139       -.83946E-08   -.15323E-04
   2  Prefactor     35.008        25.307        .13046E-05    .72439E-04
   3  Prefactor     15.299        14.575        .47931E-07   -.13395E-04
   4  Prefactor     8.5381        3.5034        .34132E-06   -.21278E-02
   5  Prefactor     7.1429        28.730       -.31467E-05   -.36869E-04
   6  Prefactor     .10000E-03    8.9515       -.35419E-07** at limit **
   7  Prefactor     8.9087        10.193        .84662E-06    .40806E-04
   8  norm          .10000E-03    .75885        .59013E-08** at limit **
   9  norm          .10000E-03    19.982        .58798E-07** at limit **
  10  Prefactor     16.978        37.514       -.33424E-05   -.45307E-04
  11  Prefactor     5.9598        34.898        .63940E-05    .45544E-04
  12  Prefactor     7.6329        29.101        .22448E-05    .17527E-04
  13  Prefactor     .10000E-03    43.711       -.15240E-06** at limit **
  14  Prefactor     4.7325        10.028        .57854E-06   -.22055E-04
  15  Normalizat    1.2153        .18717       -.27569E-06   -.20812E-04
  16  Prefactor     .91313        .91030E-01   -.13175E-06   -.13413E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.0831
  Prefactor  = 35.0083
  Prefactor  = 15.2986
  Prefactor  = 8.53813
  Prefactor  = 7.14294
  Prefactor  = 0.0001
  Prefactor  = 8.90872
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 16.9784
  Prefactor  = 5.9598
  Prefactor  = 7.63289
  Prefactor  = 0.0001
  Prefactor  = 4.73246
  Normalizat = 1.2153
  Prefactor  = 0.913132
 **********
 **   18 **HESSE 
 **********

 FCN=   10436.46     FROM HESSE     STATUS=OK           211 CALLS     1677 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.083        17.159        .85230E-04   -1.4768    
   2  Prefactor     35.008        25.446        .67718E-04   -1.4524    
   3  Prefactor     15.299        14.711        .10239E-03   -1.4925    
   4  Prefactor     8.5381        7.0531        .68613E-03   -1.5123    
   5  Prefactor     7.1429        31.680        .14962E-03   -1.5173    
   6  Prefactor     .10000E-03    8.9552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.9087        10.206        .13430E-03   -1.5111    
   8  norm          .10000E-03    .79569        .17375E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    19.986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     16.978        37.663        .97177E-04   -1.4884    
  11  Prefactor     5.9598        34.978        .16459E-03   -1.5220    
  12  Prefactor     7.6329        29.052        .14470E-03   -1.5155    
  13  Prefactor     .10000E-03    43.738        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.7325        10.015        .18498E-03   -1.5273    
  15  Normalizat    1.2153        .22605        .31841E-03   -.86131    
  16  Prefactor     .91313        .10980        .18027E-03   -.95684    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.48165e-09
Minuit parameter uncertainties:
  1  17.1625
  2  25.4538
  3  14.7143
  4  7.05378
  5  30.1124
  6  4.15027e-08
  7  10.2082
  8  4.69845e-08
  9  3.69037e-06
  10  37.7159
  11  28.9017
  12  29.1062
  13  0.000103788
  14  10.0186
  15  0.226229
  16  0.10983
Done.

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

Extracting fit parameters...

4FGL J1702.2+2642
   Spectrum: PowerLaw
290    Prefactor:  1.000e-04  4.150e-08  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:  9.131e-01  1.098e-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:  1.215e+00  2.262e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 255.558 26.712
Photon Flux Upper Limit: 3.54e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.68e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/315736/likelihoodResults_408326401_408585601_4FGL_J1702.2+2642_daily_bin652.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10436.4653799
delta logL = -0.000531708585186

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10436.4648481
delta logL = 6.86759449309e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0931       1.0000          .0000       10.000    
     3 'Normalizat'    1.2153       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91314       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=   10436.46     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      241 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10174E-03    70.700        .18142E-02** at limit **
   2  Index         2.0319        5.7912        .50000        .20265E-04
   3  Normalizat    1.2153        .12554E-01    .31841E-03    .71265E-04
   4  Prefactor     .91313        .62986E-02    .18027E-03    .38981E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101744
  Index      = 2.03188
  Normalizat = 1.2153
  Prefactor  = 0.913133
 **********
 **   18 **HESSE 
 **********

 FCN=   10436.46     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      270 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10174E-03    305.57        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0319        5.6407        .50000       -.63555    
   3  Normalizat    1.2153        .26918E-01    .12737E-04   -.86131    
   4  Prefactor     .91313        .13505E-01    .36054E-04   -.95684    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.41584e-08
Minuit parameter uncertainties:
  1  0.0464089
  2  479.18
  3  0.026918
  4  0.0135047
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/315736': 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): 102
logL (Free Index) = 10436.4648478
delta logL = 3.87986801798e-07

Extracting fit parameters...

4FGL J1702.2+2642
   Spectrum: PowerLaw
290    Prefactor:  1.017e-04  4.641e-02  1.000e-04  1.000e+04 ( 1.000e-14)
291        Index:  2.032e+00  4.792e+02  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:  9.131e-01  1.350e-02  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:  1.215e+00  2.692e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 255.558 26.712

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/315736/cmap_HighResolution_408326401_408585601_4FGL_J1702.2+2642_daily_bin652.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.68e-03', job_status='DONE', photon_flux_upper_limit='3.54e-08', time_completed='2021-09-16 11:41:48.833503', job_id='315736', GAL2='0.91', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1631817708.83', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='3.88e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='652' AND source_name='4FGL J1702.2+2642' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 16 11:41:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0155>
Subject: Job 315736: <4FGL_J1702.2+2642_daily_bin652> in cluster <slac> Done

Job <4FGL_J1702.2+2642_daily_bin652> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Sep 16 11:25:20 2021
Job was executed on host(s) <bullet0155>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 16 11:28:57 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:28:57 2021
Terminated at Thu Sep 16 11:41:49 2021
Results reported at Thu Sep 16 11:41:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1702.2+2642_daily_bin652 255.558 26.7116 408326401 408585601 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 :                                   754.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             344.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   772 sec.
    Turnaround time :                            989 sec.

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

