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


Performing analysis on: 4FGL_J1702.2+2642_daily_bin811
RA = 255.558, Dec = 26.7116
tmin = 449539201, tmax = 449798401
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='316966', job_status='RUN', time_executed='2021-09-16 11:31:56.165955', time_epoch_executed='1631817116.17' WHERE source_name='4FGL J1702.2+2642' and cadence='daily' and bin_id='811'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/316966

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/316966/ft1_4FGL_J1702.2+2642_daily_bin811.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/316966/ft2_4FGL_J1702.2+2642_daily_bin811.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/316966/ft1_4FGL_J1702.2+2642_daily_bin811.fits outfile=/scratch/kocevski/316966/ft1_filteredMKT_4FGL_J1702.2+2642_daily_bin811.fits ra=255.558 dec=26.7116 rad=12.0 tmin=449539201.0 tmax=449798401.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 5.67
user 5.41
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/316966/ft2_4FGL_J1702.2+2642_daily_bin811.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/316966/ft1_filteredMKT_4FGL_J1702.2+2642_daily_bin811.fits evtable="EVENTS" outfile="/scratch/kocevski/316966/ft1_filtered_4FGL_J1702.2+2642_daily_bin811.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/316966/ft1_filtered_4FGL_J1702.2+2642_daily_bin811.fits" evtable="EVENTS" scfile=/scratch/kocevski/316966/ft2_4FGL_J1702.2+2642_daily_bin811.fits sctable="SC_DATA" outfile=/scratch/kocevski/316966/ltcube_449539201_449798401_4FGL_J1702.2+2642_daily_bin811.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/316966/ft2_4FGL_J1702.2+2642_daily_bin811.fits
.....................!
real 14.61
user 14.21
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/316966/ft1_filtered_4FGL_J1702.2+2642_daily_bin811.fits evtable="EVENTS" scfile=/scratch/kocevski/316966/ft2_4FGL_J1702.2+2642_daily_bin811.fits sctable="SC_DATA" expcube=/scratch/kocevski/316966/ltcube_449539201_449798401_4FGL_J1702.2+2642_daily_bin811.fits outfile=/scratch/kocevski/316966/expmap_449539201_449798401_4FGL_J1702.2+2642_daily_bin811.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/316966/ltcube_449539201_449798401_4FGL_J1702.2+2642_daily_bin811.fits
.....................!
real 191.94
user 187.10
sys 4.36

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/316966/ft1_filtered_4FGL_J1702.2+2642_daily_bin811.fits scfile=/scratch/kocevski/316966/ft2_4FGL_J1702.2+2642_daily_bin811.fits outfile=/scratch/kocevski/316966/cmap_449539201_449798401_4FGL_J1702.2+2642_daily_bin811.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.56
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/316966/ft1_filtered_4FGL_J1702.2+2642_daily_bin811.fits scfile=/scratch/kocevski/316966/ft2_4FGL_J1702.2+2642_daily_bin811.fits outfile=/scratch/kocevski/316966/cmap_HighResolution_449539201_449798401_4FGL_J1702.2+2642_daily_bin811.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.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.444       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12234E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.4487       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.1115       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.1696       1.0000         .10000E-03   10000.    
     8 'norm      '    1.5556       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.843       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    123.61       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .67062       1.0000         .10000E-03   10000.    
    15 'Normalizat'    .87608       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .96440       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=   12038.33     FROM MIGRAD    STATUS=CONVERGED    328 CALLS     1524 TOTAL
                     EDM=   .12E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.445        14.790        .18362E-06   -.63403E-05
   2  Prefactor     .10000E-03    58.750       -.16875E-06** at limit **
   3  Prefactor     2.4510        16.817        .13242E-05   -.21634E-05
   4  Prefactor     4.1120        3.7764        .77446E-07   -.49472E-05
   5  Prefactor     .10000E-03    8.5844       -.51925E-07** at limit **
   6  Prefactor     .10000E-03    6.0544       -.12920E-07** at limit **
   7  Prefactor     1.1679        16.594        .33098E-05   -.28236E-05
   8  norm          1.5555        1.6445        .31769E-08    .12920E-04
   9  norm          .10000E-03    20.756       -.39720E-07** at limit **
  10  Prefactor     .10000E-03    99.401        .11246E-05** at limit **
  11  Prefactor     11.841        17.748       -.27825E-06   -.20914E-04
  12  Prefactor     .10000E-03    19.571        .70934E-05** at limit **
  13  Prefactor     123.56        59.243        .37809E-06   -.10572E-04
  14  Prefactor     .68958        4.5199        .51264E-06   -.86735E-04
  15  Normalizat    .87605        .15662       -.47266E-06   -.93459E-04
  16  Prefactor     .96439        .78733E-01   -.36741E-06   -.14766E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.4449
  Prefactor  = 0.0001
  Prefactor  = 2.45095
  Prefactor  = 4.11199
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.16785
  norm       = 1.55546
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.8406
  Prefactor  = 0.0001
  Prefactor  = 123.561
  Prefactor  = 0.689578
  Normalizat = 0.876052
  Prefactor  = 0.964386
 **********
 **   18 **HESSE 
 **********

 FCN=   12038.33     FROM HESSE     STATUS=OK           205 CALLS     1729 TOTAL
                     EDM=   .74E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.445        14.799        .88584E-04   -1.4803    
   2  Prefactor     .10000E-03    60.579        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.4510        17.008        .13071E-02   -1.5395    
   4  Prefactor     4.1120        3.7669        .19495E-03   -1.5302    
   5  Prefactor     .10000E-03    8.6092        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.0555        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.1679        16.673        .21225E-02   -1.5492    
   8  norm          1.5555        1.6306        .13923E-03   -1.5459    
   9  norm          .10000E-03    20.769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    99.686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     11.841        17.735        .11641E-03   -1.5020    
  12  Prefactor     .10000E-03    19.507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     123.56        59.277        .18101E-03   -1.3480    
  14  Prefactor     .68958        17.347        .44005E-02   -1.5542    
  15  Normalizat    .87605        .18667        .33642E-03   -.97307    
  16  Prefactor     .96439        .94378E-01    .16344E-03   -.93926    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.43965e-08
Minuit parameter uncertainties:
  1  14.8018
  2  9.26123e-05
  3  12.9179
  4  3.76713
  5  5.2787e-06
  6  1.21723e-06
  7  8.82781
  8  1.63066
  9  3.25147e-06
  10  1.62593e-06
  11  17.743
  12  1.94119e-05
  13  59.3056
  14  6.91904
  15  0.186811
  16  0.0943945
Done.

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

Extracting fit parameters...

4FGL J1702.2+2642
   Spectrum: PowerLaw
290    Prefactor:  1.000e-04  1.217e-06  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.644e-01  9.439e-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:  8.761e-01  1.868e-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: 2.60e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/316966/likelihoodResults_449539201_449798401_4FGL_J1702.2+2642_daily_bin811.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) = 12038.3297767
delta logL = -0.000786035307101

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 12038.3289947
delta logL = -4.05974424211e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13328E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0762       1.0000          .0000       10.000    
     3 'Normalizat'    .87642       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96422       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=   12038.33     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      242 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10323E-03    3.0344        .18142E-01** at limit **
   2  Index         1.9956        8.7100        .50000        .44243E-04
   3  Normalizat    .87605        .25239E-02    .33642E-03   -.11618E-03
   4  Prefactor     .96439        .12899E-02    .16344E-03   -.14844E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103231
  Index      = 1.99561
  Normalizat = 0.876051
  Prefactor  = 0.964386
 **********
 **   18 **HESSE 
 **********

 FCN=   12038.33     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10323E-03    27.793        .29117E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9956        8.4940        .50000       -.64460    
   3  Normalizat    .87605        .76644E-02    .13457E-04   -.97307    
   4  Prefactor     .96439        .39170E-02    .32688E-04   -.93926    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.83811e-09
Minuit parameter uncertainties:
  1  0.0189605
  2  119.299
  3  0.00766442
  4  0.00391698
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/316966': 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) = 12038.3289894
delta logL = 1.2706968846e-06

Extracting fit parameters...

4FGL J1702.2+2642
   Spectrum: PowerLaw
290    Prefactor:  1.032e-04  1.896e-02  1.000e-04  1.000e+04 ( 1.000e-14)
291        Index:  1.996e+00  1.193e+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.644e-01  3.917e-03  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:  8.761e-01  7.664e-03  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/316966/cmap_HighResolution_449539201_449798401_4FGL_J1702.2+2642_daily_bin811.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.97e-03', job_status='DONE', photon_flux_upper_limit='2.60e-08', time_completed='2021-09-16 11:45:38.720831', job_id='316966', GAL2='0.96', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1631817938.72', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='1.27e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='811' AND source_name='4FGL J1702.2+2642' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 16 11:45:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0114>
Subject: Job 316966: <4FGL_J1702.2+2642_daily_bin811> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1702.2+2642_daily_bin811 255.558 26.7116 449539201 449798401 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 :                                   820.03 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             371.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   841 sec.
    Turnaround time :                            904 sec.

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

