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


Performing analysis on: 4FGL_J1701.0+6613_daily_bin809
RA = 255.26, Dec = 66.2255
tmin = 449020801, tmax = 449280001
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='303792', job_status='RUN', time_executed='2021-09-16 10:47:47.491962', time_epoch_executed='1631814467.49' WHERE source_name='4FGL J1701.0+6613' and cadence='daily' and bin_id='809'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/303792

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/303792/ft1_4FGL_J1701.0+6613_daily_bin809.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/303792/ft2_4FGL_J1701.0+6613_daily_bin809.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/303792/ft1_4FGL_J1701.0+6613_daily_bin809.fits outfile=/scratch/kocevski/303792/ft1_filteredMKT_4FGL_J1701.0+6613_daily_bin809.fits ra=255.26 dec=66.2255 rad=12.0 tmin=449020801.0 tmax=449280001.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.58
user 5.29
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/303792/ft2_4FGL_J1701.0+6613_daily_bin809.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/303792/ft1_filteredMKT_4FGL_J1701.0+6613_daily_bin809.fits evtable="EVENTS" outfile="/scratch/kocevski/303792/ft1_filtered_4FGL_J1701.0+6613_daily_bin809.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.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/303792/ft1_filtered_4FGL_J1701.0+6613_daily_bin809.fits" evtable="EVENTS" scfile=/scratch/kocevski/303792/ft2_4FGL_J1701.0+6613_daily_bin809.fits sctable="SC_DATA" outfile=/scratch/kocevski/303792/ltcube_449020801_449280001_4FGL_J1701.0+6613_daily_bin809.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/303792/ft2_4FGL_J1701.0+6613_daily_bin809.fits
.....................!
real 14.79
user 14.36
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/303792/ft1_filtered_4FGL_J1701.0+6613_daily_bin809.fits evtable="EVENTS" scfile=/scratch/kocevski/303792/ft2_4FGL_J1701.0+6613_daily_bin809.fits sctable="SC_DATA" expcube=/scratch/kocevski/303792/ltcube_449020801_449280001_4FGL_J1701.0+6613_daily_bin809.fits outfile=/scratch/kocevski/303792/expmap_449020801_449280001_4FGL_J1701.0+6613_daily_bin809.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/303792/ltcube_449020801_449280001_4FGL_J1701.0+6613_daily_bin809.fits
.....................!
real 193.37
user 187.25
sys 5.60

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/303792/ft1_filtered_4FGL_J1701.0+6613_daily_bin809.fits scfile=/scratch/kocevski/303792/ft2_4FGL_J1701.0+6613_daily_bin809.fits outfile=/scratch/kocevski/303792/cmap_449020801_449280001_4FGL_J1701.0+6613_daily_bin809.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.56
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/303792/ft1_filtered_4FGL_J1701.0+6613_daily_bin809.fits scfile=/scratch/kocevski/303792/ft2_4FGL_J1701.0+6613_daily_bin809.fits outfile=/scratch/kocevski/303792/cmap_HighResolution_449020801_449280001_4FGL_J1701.0+6613_daily_bin809.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.55
user 0.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/303792/ft1_filtered_4FGL_J1701.0+6613_daily_bin809.fits', '/scratch/kocevski/303792/ft2_4FGL_J1701.0+6613_daily_bin809.fits', expMap='/scratch/kocevski/303792/expmap_449020801_449280001_4FGL_J1701.0+6613_daily_bin809.fits', expCube='/scratch/kocevski/303792/ltcube_449020801_449280001_4FGL_J1701.0+6613_daily_bin809.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/303792/Model_4FGL_J1701.0+6613_daily_bin809.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/303792/ft1_filtered_4FGL_J1701.0+6613_daily_bin809.fits
Spacecraft file(s): /scratch/kocevski/303792/ft2_4FGL_J1701.0+6613_daily_bin809.fits
Exposure map: /scratch/kocevski/303792/expmap_449020801_449280001_4FGL_J1701.0+6613_daily_bin809.fits
Exposure cube: /scratch/kocevski/303792/ltcube_449020801_449280001_4FGL_J1701.0+6613_daily_bin809.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/303792/Model_4FGL_J1701.0+6613_daily_bin809.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) = 3756.91892433

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    7.8631       1.0000         .10000E-03   10000.    
     4 'Prefactor '    71.888       1.0000         .10000E-03   10000.    
     5 'norm      '    6.8303       1.0000         .10000E-03   10000.    
     6 'Prefactor '    44.353       1.0000         .10000E-03   10000.    
     7 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11980E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12943E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10096E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.8031       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.338       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.7495       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .14266E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.344       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .58918       1.0000         .10000E-03   10000.    
    21 'Prefactor '    94.828       1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10293E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    4.2528       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .12116E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    3.1952       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10222E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10313E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .13959E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    11.308       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.1042       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .89501       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=   3756.915     FROM MIGRAD    STATUS=CONVERGED    971 CALLS     5290 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.9915       -.39172E-07** at limit **
   2  Prefactor     .10000E-03    14.392       -.86350E-08** at limit **
   3  norm          7.8644        5.7700        .59623E-07    .36570E-04
   4  Prefactor     71.727        170.94       -.12728E-06    .75600E-05
   5  norm          6.8287        8.9601        .12193E-06    .16885E-04
   6  Prefactor     44.349        53.566       -.20220E-05   -.67826E-05
   7  norm          .10000E-03    8.3832       -.45880E-08** at limit **
   8  Prefactor     .10000E-03    57.077        .26813E-06** at limit **
   9  Prefactor     .10000E-03    2.5927       -.38382E-07** at limit **
  10  Prefactor     .10000E-03    60.744       -.23475E-06** at limit **
  11  norm          .10000E-03    4.5133       -.35006E-07** at limit **
  12  Prefactor     .10000E-03    8.2134       -.36958E-07** at limit **
  13  norm          .10000E-03    .60861       -.46723E-06** at limit **
  14  Prefactor     3.8056        8.9307        .62009E-06    .13821E-03
  15  Prefactor     .10000E-03    2.8109       -.44998E-06** at limit **
  16  Prefactor     10.360        27.215        .28671E-05    .12137E-03
  17  Prefactor     1.7528        26.305        .64305E-05   -.13871E-03
  18  Prefactor     .10000E-03    55.462        .22681E-06** at limit **
  19  Prefactor     14.327        14.693       -.98841E-07   -.18869E-03
  20  Prefactor     .22704E-03    265.06       -.93996E-05** at limit **
  21  Prefactor     95.236        187.71       -.55535E-05   -.26894E-04
  22  norm          .10000E-03    .99717       -.47332E-07** at limit **
  23  Prefactor     .10000E-03    36.012       -.30684E-06** at limit **
  24  norm          4.2523        4.5100       -.23506E-07    .28674E-04
  25  Prefactor     .10000E-03    18.211       -.62216E-07** at limit **
  26  Prefactor     .10000E-03    179.49       -.43652E-06** at limit **
  27  Prefactor     3.1939        10.595       -.33166E-08    .14072E-04
  28  Prefactor     .10000E-03    20.073        .80553E-07** at limit **
  29  Prefactor     .10000E-03    50.437       -.32436E-06** at limit **
  30  Prefactor     .10000E-03    65.437       -.23323E-06** at limit **
  31  norm          11.308        6.5149       -.47843E-07    .75918E-05
  32  Normalizat    1.1045        .27196       -.25373E-06    .64456E-05
  33  Prefactor     .89486        .19605        .10219E-05    .11576E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.86441
  Prefactor  = 71.7267
  norm       = 6.82872
  Prefactor  = 44.349
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.80561
  Prefactor  = 0.0001
  Prefactor  = 10.3603
  Prefactor  = 1.7528
  Prefactor  = 0.0001
  Prefactor  = 14.3266
  Prefactor  = 0.000227045
  Prefactor  = 95.2364
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.25227
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.1939
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.308
  Normalizat = 1.10449
  Prefactor  = 0.894858
 **********
 **   18 **HESSE 
 **********

 FCN=   3756.915     FROM HESSE     STATUS=OK           699 CALLS     5989 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.0029        .17952E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    14.394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          7.8644        5.7645        .56570E-03   -1.5147    
   4  Prefactor     71.727        172.47        .47349E-04   -1.4012    
   5  norm          6.8287        8.9621        .15352E-03   -1.5185    
   6  Prefactor     44.349        53.579        .60199E-04   -1.4375    
   7  norm          .10000E-03    8.3852        .17334E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    57.076        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.5967        .96386E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    60.858        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    4.5196        .12718E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.2190        .17158E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .77103        .90454E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.8056        8.8862        .20698E-03   -1.5318    
  15  Prefactor     .10000E-03    5.6170        .19863E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     10.360        27.679        .12462E-03   -1.5064    
  17  Prefactor     1.7528        46.829        .15851E-02   -1.5443    
  18  Prefactor     .10000E-03    55.664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     14.327        14.388        .10576E-03   -1.4951    
  20  Prefactor     .22704E-03    313.86        .20508       -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     95.236        187.85        .20637E-03   -1.3753    
  22  norm          .10000E-03    .99795        .59779E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    36.476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          4.2523        4.4928        .12653E-03   -1.5296    
  25  Prefactor     .10000E-03    18.223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    179.53        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     3.1939        10.517        .22668E-03   -1.5351    
  28  Prefactor     .10000E-03    20.089        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    50.441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    65.439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          11.308        6.5011        .11269E-03   -1.5035    
  32  Normalizat    1.1045        .31576        .26939E-03   -.89608    
  33  Prefactor     .89486        .23162        .23306E-03   -.96321    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.8615e-10
Minuit parameter uncertainties:
  1  1.54773e-05
  2  6.34684e-06
  3  5.76488
  4  173.696
  5  8.96386
  6  53.6371
  7  2.9104e-06
  8  1.83804e-06
  9  5.27056e-07
  10  4.15326e-05
  11  5.26314e-06
  12  4.67765e-06
  13  1.5242e-05
  14  8.88932
  15  2.12262e-05
  16  27.7129
  17  18.135
  18  0.000126321
  19  14.3918
  20  0.401493
  21  189.04
  22  1.90816e-10
  23  7.45875e-05
  24  4.49317
  25  1.64677e-05
  26  0.000105132
  27  10.5232
  28  2.73955e-05
  29  1.86043e-05
  30  1.28332e-05
  31  6.5015
  32  0.316304
  33  0.231874
Done.

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

Extracting fit parameters...

4FGL J1701.0+6613
   Spectrum: PowerLaw
365    Prefactor:  3.806e+00  8.889e+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

GAL_V02
   Spectrum: PowerLaw
672    Prefactor:  8.949e-01  2.319e-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.104e+00  3.163e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/303792/likelihoodResults_449020801_449280001_4FGL_J1701.0+6613_daily_bin809.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) = 3756.89460718
delta logL = 0.0204293150205

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3756.8924558
delta logL = 0.022580693591

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.3597       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4026       1.0000          .0000       10.000    
     3 'Normalizat'    1.1095       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89212       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=   3756.892     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      261 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3592        9.4374        .19291E-03   -.58345E-05
   2  Index         2.4037        1.5486        .16974E-01   -.12994E-04
   3  Normalizat    1.1096        .28717        .26883E-03    .87963E-05
   4  Prefactor     .89203        .22648        .23336E-03    .23408E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.35922
  Index      = 2.40374
  Normalizat = 1.10961
  Prefactor  = 0.892035
 **********
 **   18 **HESSE 
 **********

 FCN=   3756.892     FROM HESSE     STATUS=OK            25 CALLS      286 TOTAL
                     EDM=   .16E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3592        9.4127        .77162E-05   -1.5290    
   2  Index         2.4037        1.5454        .33949E-02   -.54598    
   3  Normalizat    1.1096        .28742        .10753E-04   -.89444    
   4  Prefactor     .89203        .22667        .93345E-05   -.96420    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.63308e-12
Minuit parameter uncertainties:
  1  9.41593
  2  1.58123
  3  0.287822
  4  0.226909
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/303792': 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) = 3756.89245543
delta logL = 0.0225810618808

Extracting fit parameters...

4FGL J1701.0+6613
   Spectrum: PowerLaw
365    Prefactor:  4.359e+00  9.416e+00  1.000e-04  1.000e+04 ( 1.000e-12)
366        Index:  2.404e+00  1.581e+00  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:  8.920e-01  2.269e-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.110e+00  2.878e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.26
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/303792/cmap_HighResolution_449020801_449280001_4FGL_J1701.0+6613_daily_bin809.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.19e-02', job_status='DONE', photon_flux_upper_limit='1.50e-07', time_completed='2021-09-16 11:01:48.058085', job_id='303792', GAL2='0.89', fit_tolerance='1e-08', EG2='1.11', EG='1.10', time_epoch_completed='1631815308.06', return_code2='0', ts='0.26', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='2.26e-02', ts2='0.30', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='809' AND source_name='4FGL J1701.0+6613' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 16 11:01:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0179>
Subject: Job 303792: <4FGL_J1701.0+6613_daily_bin809> in cluster <slac> Done

Job <4FGL_J1701.0+6613_daily_bin809> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Thu Sep 16 10:45:17 2021
Job was executed on host(s) <bullet0179>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 16 10:45:31 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:45:31 2021
Terminated at Thu Sep 16 11:01:48 2021
Results reported at Thu Sep 16 11:01:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1701.0+6613_daily_bin809 255.26 66.2255 449020801 449280001 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 :                                   839.42 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             284.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   977 sec.
    Turnaround time :                            991 sec.

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

