/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 51 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 = 7593
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1702.2+2642_daily_bin963
RA = 255.558, Dec = 26.7116
tmin = 488937601, tmax = 489196801
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='318280', job_status='RUN', time_executed='2021-09-16 11:37:25.811751', time_epoch_executed='1631817445.81' WHERE source_name='4FGL J1702.2+2642' and cadence='daily' and bin_id='963'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/318280

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/318280/ft1_4FGL_J1702.2+2642_daily_bin963.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/318280/ft2_4FGL_J1702.2+2642_daily_bin963.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/318280/ft1_4FGL_J1702.2+2642_daily_bin963.fits outfile=/scratch/kocevski/318280/ft1_filteredMKT_4FGL_J1702.2+2642_daily_bin963.fits ra=255.558 dec=26.7116 rad=12.0 tmin=488937601.0 tmax=489196801.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.55
user 3.33
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/318280/ft1_filtered_4FGL_J1702.2+2642_daily_bin963.fits evtable="EVENTS" scfile=/scratch/kocevski/318280/ft2_4FGL_J1702.2+2642_daily_bin963.fits sctable="SC_DATA" expcube=/scratch/kocevski/318280/ltcube_488937601_489196801_4FGL_J1702.2+2642_daily_bin963.fits outfile=/scratch/kocevski/318280/expmap_488937601_489196801_4FGL_J1702.2+2642_daily_bin963.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/318280/ltcube_488937601_489196801_4FGL_J1702.2+2642_daily_bin963.fits
.....................!
real 191.60
user 186.15
sys 5.00

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/318280/ft1_filtered_4FGL_J1702.2+2642_daily_bin963.fits scfile=/scratch/kocevski/318280/ft2_4FGL_J1702.2+2642_daily_bin963.fits outfile=/scratch/kocevski/318280/cmap_488937601_489196801_4FGL_J1702.2+2642_daily_bin963.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/318280/ft1_filtered_4FGL_J1702.2+2642_daily_bin963.fits scfile=/scratch/kocevski/318280/ft2_4FGL_J1702.2+2642_daily_bin963.fits outfile=/scratch/kocevski/318280/cmap_HighResolution_488937601_489196801_4FGL_J1702.2+2642_daily_bin963.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/318280/ft1_filtered_4FGL_J1702.2+2642_daily_bin963.fits evtable="EVENTS" scfile=/scratch/kocevski/318280/ft2_4FGL_J1702.2+2642_daily_bin963.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/318280/Model_4FGL_J1702.2+2642_daily_bin963.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/318280/ft1_filtered_4FGL_J1702.2+2642_daily_bin963.fits.....................!
real 58.27
user 56.89
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .34669E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    24.989       1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.056       1.0000         .10000E-03   10000.    
     8 'norm      '    .29801       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.588       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10244E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.0702       1.0000         .10000E-03   10000.    
    15 'Normalizat'    .63617       1.0000         .10000E-01   10.000    
    16 'Prefactor '    1.0875       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=   7255.241     FROM MIGRAD    STATUS=CONVERGED    321 CALLS     1472 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.368        .13363E-06** at limit **
   2  Prefactor     .10000E-03    4.5908        .13026E-06** at limit **
   3  Prefactor     .10637E-03    8.1739        .83708E-06** at limit **
   4  Prefactor     .10000E-03    4.8502       -.16562E-06** at limit **
   5  Prefactor     .10000E-03    27.208       -.23644E-05** at limit **
   6  Prefactor     24.985        45.218       -.48673E-05   -.13781E-04
   7  Prefactor     21.058        15.591        .76897E-06    .14939E-03
   8  norm          .30146        1.8986       -.14629E-05   -.54231E-03
   9  norm          .10000E-03    34.000        .57558E-05** at limit **
  10  Prefactor     .10000E-03    71.065        .52343E-04** at limit **
  11  Prefactor     .10000E-03    62.477       -.46605E-04** at limit **
  12  Prefactor     16.444        37.513       -.40514E-04    .13927E-03
  13  Prefactor     .10029E-03    240.90       -.37354E-04** at limit **
  14  Prefactor     2.0682        14.292       -.15208E-05   -.98189E-04
  15  Normalizat    .63629        .20925        .25958E-05    .67919E-04
  16  Prefactor     1.0874        .10993        .85818E-06    .22844E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010637
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.9851
  Prefactor  = 21.0581
  norm       = 0.301455
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 16.4445
  Prefactor  = 0.000100291
  Prefactor  = 2.0682
  Normalizat = 0.636292
  Prefactor  = 1.08741
 **********
 **   18 **HESSE 
 **********

 FCN=   7255.241     FROM HESSE     STATUS=OK           207 CALLS     1679 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.5932        .17824E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10637E-03    17.963        .76393E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.9726        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    27.326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     24.985        45.199        .80134E-04   -1.4708    
   7  Prefactor     21.058        15.539        .87287E-04   -1.4790    
   8  norm          .30146        3.9902        .22382E-02   -1.5598    
   9  norm          .10000E-03    34.021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    71.574        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    62.352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     16.444        37.236        .98339E-04   -1.4897    
  13  Prefactor     .10029E-03    237.28        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.0682        14.338        .28711E-03   -1.5420    
  15  Normalizat    .63629        .23918        .38462E-03   -1.0646    
  16  Prefactor     1.0874        .12732        .15818E-03   -.89870    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.03057e-09
Minuit parameter uncertainties:
  1  9.04613e-05
  2  4.90301e-06
  3  0.0214004
  4  3.19419e-05
  5  7.9962e-05
  6  45.2612
  7  15.542
  8  2.19331
  9  1.37507e-05
  10  0.000159392
  11  0.000952339
  12  37.2882
  13  0.0166923
  14  10.8945
  15  0.239571
  16  0.127353
Done.

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

Extracting fit parameters...

4FGL J1702.2+2642
   Spectrum: PowerLaw
290    Prefactor:  2.499e+01  4.526e+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.087e+00  1.274e-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.363e-01  2.396e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/318280/likelihoodResults_488937601_489196801_4FGL_J1702.2+2642_daily_bin963.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): 0
logL (Free Index) = 7254.81999784
delta logL = 0.420914677424

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7254.80663465
delta logL = 0.434277866198

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.009       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8658       1.0000          .0000       10.000    
     3 'Normalizat'    .60832       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0935       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7254.807     FROM MIGRAD    STATUS=FAILED       104 CALLS      320 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.9967        62.942        .63327E-03   -.11929E-03
   2  Index         2.8667        1.8578        .55713E-02    .79848E-03
   3  Normalizat    .60835        .23854        .39267E-03    .24899E-05
   4  Prefactor     1.0934        .12541        .15772E-03   -.16074E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7254.807     FROM SIMPLEX   STATUS=UNCHANGED     80 CALLS      400 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.9967        62.942        .36085E-03   -1.5076    
   2  Index         2.8667        1.8578        .87253E-03   -.44080    
   3  Normalizat    .60835        .23854        .41003E-03   -1.0763    
   4  Prefactor     1.0934        .12541        .18904E-03   -.89679    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7254.807     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      429 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.9966        22.962        .25331E-04   -.92186E-04
   2  Index         2.8667        .86982        .11143E-02   -.23548E-04
   3  Normalizat    .60835        .23761        .15707E-04    .57905E-06
   4  Prefactor     1.0934        .12470        .63087E-05   -.10812E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.99665
  Index      = 2.86667
  Normalizat = 0.608347
  Prefactor  = 1.09338
 **********
 **   18 **HESSE 
 **********

 FCN=   7254.807     FROM HESSE     STATUS=OK            23 CALLS      452 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.9966        21.500        .50661E-05   -1.5076    
   2  Index         2.8667        .81480        .44570E-04   -.44080    
   3  Normalizat    .60835        .23769        .31413E-05   -1.0763    
   4  Prefactor     1.0934        .12474        .12617E-05   -.89679    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03074e-11
Minuit parameter uncertainties:
  1  21.517
  2  0.819274
  3  0.238088
  4  0.124768
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/318280': 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) = 7254.80663328
delta logL = 0.434279239174

Extracting fit parameters...

4FGL J1702.2+2642
   Spectrum: PowerLaw
290    Prefactor:  9.997e+00  2.152e+01  1.000e-04  1.000e+04 ( 1.000e-14)
291        Index:  2.867e+00  8.193e-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.093e+00  1.248e-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.083e-01  2.381e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.29
Ra Dec: 255.558 26.712
Photon Index (Free Index): 2.87 +/- 0.82
Photon Flux (Free Index): 4.90e-08 +/- 5.16e-08
Energy Flux (Free Index): 1.05e-05 +/- 1.10e-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/318280/cmap_HighResolution_488937601_489196801_4FGL_J1702.2+2642_daily_bin963.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.47e-03', comment='SUCCESS', energy_flux2='1.05e-05', dlogl='4.34e-01', photon_flux2='4.90e-08', job_status='DONE', time_completed='2021-09-16 11:47:50.808546', photon_index_error2='0.82', photon_index2='2.87', ts='0.37', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='9.86e-08', energy_flux_error2='1.10e-05', EG='0.64', time_epoch_completed='1631818070.81', return_code='0', job_id='318280', GAL2='1.09', EG2='0.61', return_code2='0', photon_flux_error2='5.16e-08', ts2='1.29', photon_index='2.12' WHERE bin_id='963' AND source_name='4FGL J1702.2+2642' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 16 11:47:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0181>
Subject: Job 318280: <4FGL_J1702.2+2642_daily_bin963> in cluster <slac> Done

Job <4FGL_J1702.2+2642_daily_bin963> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep 16 11:35:28 2021
Job was executed on host(s) <bullet0181>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 16 11:36: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:36:21 2021
Terminated at Thu Sep 16 11:47:51 2021
Results reported at Thu Sep 16 11:47:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1702.2+2642_daily_bin963 255.558 26.7116 488937601 489196801 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 :                                   622.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             363.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   690 sec.
    Turnaround time :                            743 sec.

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

