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


Performing analysis on: 4FGL_J1701.0+6613_daily_bin654
RA = 255.26, Dec = 66.2255
tmin = 408844801, tmax = 409104001
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='301326', job_status='RUN', time_executed='2021-09-16 10:39:52.086459', time_epoch_executed='1631813992.09' WHERE source_name='4FGL J1701.0+6613' and cadence='daily' and bin_id='654'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/301326

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/301326/ft1_4FGL_J1701.0+6613_daily_bin654.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/301326/ft2_4FGL_J1701.0+6613_daily_bin654.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/301326/ft1_4FGL_J1701.0+6613_daily_bin654.fits outfile=/scratch/kocevski/301326/ft1_filteredMKT_4FGL_J1701.0+6613_daily_bin654.fits ra=255.26 dec=66.2255 rad=12.0 tmin=408844801.0 tmax=409104001.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.64
user 3.38
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/301326/ft2_4FGL_J1701.0+6613_daily_bin654.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/301326/ft2_4FGL_J1701.0+6613_daily_bin654.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/301326/ft1_filteredMKT_4FGL_J1701.0+6613_daily_bin654.fits evtable="EVENTS" outfile="/scratch/kocevski/301326/ft1_filtered_4FGL_J1701.0+6613_daily_bin654.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.46
user 0.30
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/301326/ft1_filtered_4FGL_J1701.0+6613_daily_bin654.fits" evtable="EVENTS" scfile=/scratch/kocevski/301326/ft2_4FGL_J1701.0+6613_daily_bin654.fits sctable="SC_DATA" outfile=/scratch/kocevski/301326/ltcube_408844801_409104001_4FGL_J1701.0+6613_daily_bin654.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/301326/ft2_4FGL_J1701.0+6613_daily_bin654.fits
.....................!
real 12.55
user 12.20
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/301326/ft1_filtered_4FGL_J1701.0+6613_daily_bin654.fits evtable="EVENTS" scfile=/scratch/kocevski/301326/ft2_4FGL_J1701.0+6613_daily_bin654.fits sctable="SC_DATA" expcube=/scratch/kocevski/301326/ltcube_408844801_409104001_4FGL_J1701.0+6613_daily_bin654.fits outfile=/scratch/kocevski/301326/expmap_408844801_409104001_4FGL_J1701.0+6613_daily_bin654.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/301326/ltcube_408844801_409104001_4FGL_J1701.0+6613_daily_bin654.fits
.....................!
real 157.43
user 152.86
sys 3.76

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

Setting source of interest to:
4FGL J1701.0+6613 @ 255.26 66.2255

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/301326/ft1_filtered_4FGL_J1701.0+6613_daily_bin654.fits scfile=/scratch/kocevski/301326/ft2_4FGL_J1701.0+6613_daily_bin654.fits outfile=/scratch/kocevski/301326/cmap_408844801_409104001_4FGL_J1701.0+6613_daily_bin654.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.26 yref=66.2255 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.48
user 0.34
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/301326/ft1_filtered_4FGL_J1701.0+6613_daily_bin654.fits scfile=/scratch/kocevski/301326/ft2_4FGL_J1701.0+6613_daily_bin654.fits outfile=/scratch/kocevski/301326/cmap_HighResolution_408844801_409104001_4FGL_J1701.0+6613_daily_bin654.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.26 yref=66.2255 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.49
user 0.34
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/301326/ft1_filtered_4FGL_J1701.0+6613_daily_bin654.fits evtable="EVENTS" scfile=/scratch/kocevski/301326/ft2_4FGL_J1701.0+6613_daily_bin654.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/301326/Model_4FGL_J1701.0+6613_daily_bin654.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/301326/ft1_filtered_4FGL_J1701.0+6613_daily_bin654.fits.....................!
real 14.10
user 12.98
sys 1.03

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/301326/ft1_filtered_4FGL_J1701.0+6613_daily_bin654.fits', '/scratch/kocevski/301326/ft2_4FGL_J1701.0+6613_daily_bin654.fits', expMap='/scratch/kocevski/301326/expmap_408844801_409104001_4FGL_J1701.0+6613_daily_bin654.fits', expCube='/scratch/kocevski/301326/ltcube_408844801_409104001_4FGL_J1701.0+6613_daily_bin654.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/301326/Model_4FGL_J1701.0+6613_daily_bin654.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1701.0+6613'

4FGL J1701.0+6613
   Spectrum: PowerLaw
365    Prefactor:  2.962e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
366        Index:  2.761e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
367        Scale:  5.078e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/301326/ft1_filtered_4FGL_J1701.0+6613_daily_bin654.fits
Spacecraft file(s): /scratch/kocevski/301326/ft2_4FGL_J1701.0+6613_daily_bin654.fits
Exposure map: /scratch/kocevski/301326/expmap_408844801_409104001_4FGL_J1701.0+6613_daily_bin654.fits
Exposure cube: /scratch/kocevski/301326/ltcube_408844801_409104001_4FGL_J1701.0+6613_daily_bin654.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/301326/Model_4FGL_J1701.0+6613_daily_bin654.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) = 463.599798363

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.177       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    723.29       1.0000         .10000E-03   10000.    
     5 'norm      '    10.433       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10159E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    501.30       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10189E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10418E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10775E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.986       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10212E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10181E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10122E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .34296E-02   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .34543E-02   1.0000         .10000E-03   10000.    
    27 'Prefactor '    37.116       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .21286E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10170E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10241E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10411E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.3030       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6750E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   463.0159     FROM MIGRAD    STATUS=CONVERGED    864 CALLS     5224 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.132        47.006        .17885E-05   -.52389E-05
   2  Prefactor     .10000E-03    92.644        .26351E-05** at limit **
   3  norm          .10000E-03    11.666       -.21597E-05** at limit **
   4  Prefactor     723.10        536.14       -.71884E-04   -.66514E-04
   5  norm          10.426        34.402        .40278E-05   -.58351E-04
   6  Prefactor     .10000E-03    195.63        .50435E-04** at limit **
   7  norm          .10000E-03    82.009        .57543E-04** at limit **
   8  Prefactor     501.34        832.06        .18935E-04   -.11127E-05
   9  Prefactor     .10000E-03    16.760        .31831E-05** at limit **
  10  Prefactor     .10000E-03    127.86       -.83122E-04** at limit **
  11  norm          .10001E-03    271.69        .15032E-03** at limit **
  12  Prefactor     .10000E-03    50.835       -.41421E-04** at limit **
  13  norm          .10000E-03    2.7674       -.38323E-07** at limit **
  14  Prefactor     .10000E-03    13.514        .89980E-06** at limit **
  15  Prefactor     16.983        12.783       -.21805E-07   -.63276E-04
  16  Prefactor     .10000E-03    23.088       -.18046E-05** at limit **
  17  Prefactor     .10000E-03    11.051       -.20057E-06** at limit **
  18  Prefactor     .10000E-03    56.828        .32560E-04** at limit **
  19  Prefactor     .10000E-03    16.339        .19272E-05** at limit **
  20  Prefactor     .10000E-03    110.85       -.66400E-04** at limit **
  21  Prefactor     .10000E-03    169.12       -.13327E-04** at limit **
  22  norm          .10000E-03    6.2363       -.10369E-07** at limit **
  23  Prefactor     .10000E-03    34.991        .69256E-05** at limit **
  24  norm          .10000E-03    15.917       -.51319E-05** at limit **
  25  Prefactor     .10003E-03    1238.5       -.42019E-03** at limit **
  26  Prefactor     .10000E-03    698.11       -.11114E-03** at limit **
  27  Prefactor     37.084        32.037        .91469E-06   -.10862E-04
  28  Prefactor     .10000E-03    220.07        .96111E-04** at limit **
  29  Prefactor     .10000E-03    748.59       -.38988E-03** at limit **
  30  Prefactor     .10000E-03    508.10       -.62372E-04** at limit **
  31  norm          .10000E-03    11.550        .28625E-05** at limit **
  32  Normalizat    .10000E-01    .25046        .11321E-05** at limit **
  33  Prefactor     1.3031        .30283        .35506E-05   -.31254E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.1322
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 723.102
  norm       = 10.4263
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 501.337
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100011
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.9825
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100027
  Prefactor  = 0.0001
  Prefactor  = 37.0843
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.30311
 **********
 **   18 **HESSE 
 **********

 FCN=   463.0159     FROM HESSE     STATUS=OK           671 CALLS     5895 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.132        47.043        .10281E-03   -1.4930    
   2  Prefactor     .10000E-03    92.649        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    11.667        .71759E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     723.10        537.38        .77211E-04   -1.0263    
   5  norm          10.426        34.394        .12405E-03   -1.5062    
   6  Prefactor     .10000E-03    195.76        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    82.065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     501.34        834.06        .91654E-04   -1.1192    
   9  Prefactor     .10000E-03    16.763        .86085E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    127.91        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10001E-03    280.12        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    50.868        .15005E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.3663        .69619E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.516        .77305E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     16.983        12.787        .64788E-04   -1.4884    
  16  Prefactor     .10000E-03    23.088        .10106E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    11.052        .69905E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    56.835        .15864E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    16.339        .85008E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    110.85        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    169.12        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    6.2405        .52502E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    35.019        .12444E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    15.945        .83849E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10003E-03    1247.9        .19679E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    698.11        .19670E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     37.084        32.017        .65785E-04   -1.4489    
  28  Prefactor     .10000E-03    220.08        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    748.99        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    508.12        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    11.561        .71433E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .10000E-01    .25076        .33368E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     1.3031        .30308        .17007E-03   -.83214    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.53393e-10
Minuit parameter uncertainties:
  1  47.1582
  2  9.20456e-05
  3  0.000290814
  4  541.316
  5  34.459
  6  0.000846289
  7  0.000108312
  8  855.83
  9  2.28423e-06
  10  1.16956e-06
  11  0.00347039
  12  7.56302e-05
  13  5.29126e-06
  14  3.64056e-06
  15  12.7895
  16  2.53888e-06
  17  4.73587e-06
  18  3.30354e-05
  19  1.8416e-06
  20  3.93365e-06
  21  3.04864e-06
  22  5.47974e-06
  23  9.62799e-05
  24  2.53185e-05
  25  0.0118363
  26  2.95123e-05
  27  32.0317
  28  0.00085373
  29  6.46721e-05
  30  4.41842e-05
  31  1.81025e-05
  32  1.84287e-06
  33  0.303492
Done.

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

Extracting fit parameters...

4FGL J1701.0+6613
   Spectrum: PowerLaw
365    Prefactor:  1.000e-04  3.641e-06  1.000e-04  1.000e+04 ( 1.000e-12)
366        Index:  2.761e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
367        Scale:  5.078e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
672    Prefactor:  1.303e+00  3.035e-01  0.000e+00  1.000e+01 ( 1.000e+00)
673        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
674        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
671   Normalization:  1.000e-02  1.843e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 255.260 66.225
Photon Flux Upper Limit: 3.77e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.98e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/301326/likelihoodResults_408844801_409104001_4FGL_J1701.0+6613_daily_bin654.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) = 463.016249437
delta logL = -0.000341154042303

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 463.015915075
delta logL = -6.79170574358e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7410       1.0000          .0000       10.000    
     3 'Normalizat'    .10003E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3029       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6750E+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=   463.0159     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      246 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    263.43        .78619E-02** at limit **
   2  Index         1.9299        5.9195        .50000       -.14315E-07
   3  Normalizat    .10000E-01    .67150E-02    .33369E-02** at limit **
   4  Prefactor     1.3031        .44380E-01    .17007E-03   -.30965E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.92992
  Normalizat = 0.01
  Prefactor  = 1.30311
 **********
 **   18 **HESSE 
 **********

 FCN=   463.0159     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      275 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1736.9        .95225E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9299        5.2771        .50000       -.66114    
   3  Normalizat    .10000E-01    .55358E-01    .66738E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.3031        .12750        .34014E-04   -.83214    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.73306e-10
Minuit parameter uncertainties:
  1  0.000902247
  2  2480.23
  3  1.76419e-06
  4  0.12753
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/301326': 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) = 463.015907023
delta logL = 1.26043477167e-06

Extracting fit parameters...

4FGL J1701.0+6613
   Spectrum: PowerLaw
365    Prefactor:  1.000e-04  9.022e-04  1.000e-04  1.000e+04 ( 1.000e-12)
366        Index:  1.930e+00  2.480e+03  0.000e+00  1.000e+01 (-1.000e+00)
367        Scale:  5.078e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
672    Prefactor:  1.303e+00  1.275e-01  0.000e+00  1.000e+01 ( 1.000e+00)
673        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
674        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
671   Normalization:  1.000e-02  1.764e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 255.260 66.225

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/301326/cmap_HighResolution_408844801_409104001_4FGL_J1701.0+6613_daily_bin654.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.98e-02', job_status='DONE', photon_flux_upper_limit='3.77e-07', time_completed='2021-09-16 10:45:25.067661', job_id='301326', GAL2='1.30', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1631814325.07', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.30', dlogl='1.26e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='654' AND source_name='4FGL J1701.0+6613' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 16 10:45:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 301326: <4FGL_J1701.0+6613_daily_bin654> in cluster <slac> Done

Job <4FGL_J1701.0+6613_daily_bin654> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 16 10:35:28 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 16 10:37:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 16 10:37:41 2021
Terminated at Thu Sep 16 10:45:25 2021
Results reported at Thu Sep 16 10:45:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1701.0+6613_daily_bin654 255.26 66.2255 408844801 409104001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1701.0+6613 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   331.04 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             256.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   464 sec.
    Turnaround time :                            597 sec.

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

