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


Performing analysis on: 4FGL_J1701.0+6613_daily_bin728
RA = 255.26, Dec = 66.2255
tmin = 428025601, tmax = 428284801
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='302578', job_status='RUN', time_executed='2021-09-16 10:41:26.763624', time_epoch_executed='1631814086.76' WHERE source_name='4FGL J1701.0+6613' and cadence='daily' and bin_id='728'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/302578

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/302578/ft1_4FGL_J1701.0+6613_daily_bin728.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/302578/ft2_4FGL_J1701.0+6613_daily_bin728.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/302578/ft1_4FGL_J1701.0+6613_daily_bin728.fits outfile=/scratch/kocevski/302578/ft1_filteredMKT_4FGL_J1701.0+6613_daily_bin728.fits ra=255.26 dec=66.2255 rad=12.0 tmin=428025601.0 tmax=428284801.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.62
user 5.32
sys 0.27

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/302578/ft1_filtered_4FGL_J1701.0+6613_daily_bin728.fits evtable="EVENTS" scfile=/scratch/kocevski/302578/ft2_4FGL_J1701.0+6613_daily_bin728.fits sctable="SC_DATA" expcube=/scratch/kocevski/302578/ltcube_428025601_428284801_4FGL_J1701.0+6613_daily_bin728.fits outfile=/scratch/kocevski/302578/expmap_428025601_428284801_4FGL_J1701.0+6613_daily_bin728.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/302578/ltcube_428025601_428284801_4FGL_J1701.0+6613_daily_bin728.fits
.....................!
real 192.14
user 186.29
sys 5.08

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/302578/ft1_filtered_4FGL_J1701.0+6613_daily_bin728.fits scfile=/scratch/kocevski/302578/ft2_4FGL_J1701.0+6613_daily_bin728.fits outfile=/scratch/kocevski/302578/cmap_428025601_428284801_4FGL_J1701.0+6613_daily_bin728.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/302578/ft1_filtered_4FGL_J1701.0+6613_daily_bin728.fits scfile=/scratch/kocevski/302578/ft2_4FGL_J1701.0+6613_daily_bin728.fits outfile=/scratch/kocevski/302578/cmap_HighResolution_428025601_428284801_4FGL_J1701.0+6613_daily_bin728.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.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    59.662       1.0000         .10000E-03   10000.    
     3 'norm      '    3.6708       1.0000         .10000E-03   10000.    
     4 'Prefactor '    47.168       1.0000         .10000E-03   10000.    
     5 'norm      '    20.861       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    20.797       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10295E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .93511E-01   1.0000         .10000E-03   10000.    
    11 'norm      '    12.233       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.585       1.0000         .10000E-03   10000.    
    13 'norm      '    3.1943       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.8108       1.0000         .10000E-03   10000.    
    17 'Prefactor '    33.680       1.0000         .10000E-03   10000.    
    18 'Prefactor '    39.278       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .15294E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .66444E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10375E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    8.1676       1.0000         .10000E-03   10000.    
    23 'Prefactor '    12.177       1.0000         .10000E-03   10000.    
    24 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .11058E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    9.8984       1.0000         .10000E-03   10000.    
    28 'Prefactor '    14.007       1.0000         .10000E-03   10000.    
    29 'Prefactor '    118.86       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    2.4063       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.0585       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .61566       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=   4432.266     FROM MIGRAD    STATUS=CONVERGED    940 CALLS     4638 TOTAL
                     EDM=   .89E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.9781       -.35750E-07** at limit **
   2  Prefactor     59.653        37.461       -.12830E-06   -.32020E-05
   3  norm          3.6720        3.3682        .26056E-07   -.13188E-04
   4  Prefactor     47.192        87.370       -.11647E-05   -.85583E-05
   5  norm          20.860        14.223       -.17410E-07    .35723E-05
   6  Prefactor     .10000E-03    63.824        .66911E-07** at limit **
   7  norm          20.797        26.559        .11333E-05    .84737E-04
   8  Prefactor     .10000E-03    68.042       -.23293E-06** at limit **
   9  Prefactor     .10000E-03    10.967       -.34437E-07** at limit **
  10  Prefactor     .10748E-03    55.590       -.11815E-05** at limit **
  11  norm          12.234        14.805       -.87983E-07   -.10930E-04
  12  Prefactor     11.578        29.415       -.39593E-06   -.93071E-05
  13  norm          3.1946        1.4599       -.40060E-07    .26863E-03
  14  Prefactor     .10000E-03    4.4377        .69318E-07** at limit **
  15  Prefactor     .10000E-03    2.4837       -.10182E-05** at limit **
  16  Prefactor     2.8130        61.577        .28124E-05    .19421E-04
  17  Prefactor     33.668        16.575        .15614E-06    .23244E-04
  18  Prefactor     39.260        33.937        .17919E-05    .14072E-03
  19  Prefactor     .10000E-03    28.161        .26114E-06** at limit **
  20  Prefactor     .10000E-03    366.48        .19215E-05** at limit **
  21  Prefactor     .10000E-03    68.698        .69981E-08** at limit **
  22  norm          8.1674        3.9558       -.11448E-07   -.39676E-04
  23  Prefactor     12.182        20.974       -.43649E-07   -.37642E-05
  24  norm          .10000E-03    3.8958       -.15890E-07** at limit **
  25  Prefactor     .10000E-03    20.606        .20903E-07** at limit **
  26  Prefactor     .10000E-03    93.826        .28386E-06** at limit **
  27  Prefactor     9.8957        7.9162       -.30100E-07   -.25021E-04
  28  Prefactor     14.016        22.599       -.87908E-08    .88731E-05
  29  Prefactor     118.87        103.06       -.27035E-06   -.24060E-05
  30  Prefactor     .10000E-03    44.649       -.24634E-07** at limit **
  31  norm          2.4067        3.9732        .13304E-06   -.96306E-04
  32  Normalizat    1.0584        .23273        .60291E-06    .79491E-04
  33  Prefactor     .61570        .16899       -.99668E-07    .97147E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 59.6534
  norm       = 3.67199
  Prefactor  = 47.1918
  norm       = 20.8605
  Prefactor  = 0.0001
  norm       = 20.7969
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000107478
  norm       = 12.2341
  Prefactor  = 11.5782
  norm       = 3.1946
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 2.81295
  Prefactor  = 33.6681
  Prefactor  = 39.2603
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.16744
  Prefactor  = 12.1825
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.89566
  Prefactor  = 14.0163
  Prefactor  = 118.872
  Prefactor  = 0.0001
  norm       = 2.40672
  Normalizat = 1.05835
  Prefactor  = 0.615695
 **********
 **   18 **HESSE 
 **********

 FCN=   4432.266     FROM HESSE     STATUS=OK           703 CALLS     5341 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.9912        .17169E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     59.653        37.475        .51943E-04   -1.4162    
   3  norm          3.6720        3.3620        .11111E-03   -1.5325    
   4  Prefactor     47.192        87.703        .58383E-04   -1.4333    
   5  norm          20.860        14.288        .87694E-04   -1.4794    
   6  Prefactor     .10000E-03    64.130        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          20.797        26.686        .87828E-04   -1.4796    
   8  Prefactor     .10000E-03    68.066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10748E-03    57.701        .12227       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          12.234        14.815        .11453E-03   -1.5008    
  12  Prefactor     11.578        29.418        .11770E-03   -1.5027    
  13  norm          3.1946        1.4628        .42122E-04   -1.5350    
  14  Prefactor     .10000E-03    4.4436        .13687E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.5233        .17610E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.8130        60.409        .24263E-03   -1.5373    
  17  Prefactor     33.668        16.590        .69049E-04   -1.4547    
  18  Prefactor     39.260        34.739        .63955E-04   -1.4454    
  19  Prefactor     .10000E-03    28.676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    365.91        .18783E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    68.709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          8.1674        3.9479        .87813E-04   -1.5136    
  23  Prefactor     12.182        21.002        .11480E-03   -1.5010    
  24  norm          .10000E-03    3.9634        .12804E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    20.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    93.837        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     9.8957        7.9021        .12737E-03   -1.5079    
  28  Prefactor     14.016        22.452        .10702E-03   -1.4959    
  29  Prefactor     118.87        103.22        .36910E-04   -1.3523    
  30  Prefactor     .10000E-03    44.653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          2.4067        3.9252        .14843E-03   -1.5398    
  32  Normalizat    1.0584        .27394        .25614E-03   -.91100    
  33  Prefactor     .61570        .19670        .24944E-03   -1.0693    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.79768e-10
Minuit parameter uncertainties:
  1  1.64347e-06
  2  37.4899
  3  3.36213
  4  87.9446
  5  14.2901
  6  8.96807e-06
  7  26.701
  8  4.05664e-05
  9  4.08649e-06
  10  0.0415837
  11  14.8193
  12  29.4546
  13  1.46281
  14  9.72695e-06
  15  0.000368685
  16  26.1008
  17  16.592
  18  34.7574
  19  8.02359e-05
  20  0.000729128
  21  1.80894e-05
  22  3.94802
  23  21.0144
  24  4.39573e-06
  25  9.42514e-06
  26  4.04486e-05
  27  7.90297
  28  22.4655
  29  103.373
  30  5.20694e-06
  31  3.92566
  32  0.274302
  33  0.19692
Done.

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

Extracting fit parameters...

4FGL J1701.0+6613
   Spectrum: PowerLaw
365    Prefactor:  1.000e-04  9.727e-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:  6.157e-01  1.969e-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.058e+00  2.743e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 255.260 66.225
Photon Flux Upper Limit: 9.89e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.81e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/302578/likelihoodResults_428025601_428284801_4FGL_J1701.0+6613_daily_bin728.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) = 4432.26676592
delta logL = -0.00106743825836

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4432.26569849
delta logL = -3.57704266207e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7647       1.0000          .0000       10.000    
     3 'Normalizat'    1.0584       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .61570       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.

 FCN=   4432.266     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      206 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.244        .90712E-02** at limit **
   2  Index         2.7685        5.9171        .50000       -.81560E-05
   3  Normalizat    1.0584        .21445        .57922E-01    .99388E-05
   4  Prefactor     .61569        .16393        .41268E-01    .16355E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.76851
  Normalizat = 1.05835
  Prefactor  = 0.615695
 **********
 **   18 **HESSE 
 **********

 FCN=   4432.266     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .70E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.6348        .13695E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7685        6.3749        .50000       -.46262    
   3  Normalizat    1.0584        .24713        .25614E-03   -.91100    
   4  Prefactor     .61569        .18903        .24944E-03   -1.0693    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.01358e-11
Minuit parameter uncertainties:
  1  1.70752e-06
  2  4.57093
  3  0.247403
  4  0.189227
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/302578': 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) = 4432.26569847
delta logL = 1.40007614391e-08

Extracting fit parameters...

4FGL J1701.0+6613
   Spectrum: PowerLaw
365    Prefactor:  1.000e-04  1.708e-06  1.000e-04  1.000e+04 ( 1.000e-12)
366        Index:  2.769e+00  4.571e+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:  6.157e-01  1.892e-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.058e+00  2.474e-01  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/302578/cmap_HighResolution_428025601_428284801_4FGL_J1701.0+6613_daily_bin728.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.81e-03', job_status='DONE', photon_flux_upper_limit='9.89e-08', time_completed='2021-09-16 10:56:06.765084', job_id='302578', GAL2='0.62', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1631814966.77', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.62', dlogl='1.40e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='728' AND source_name='4FGL J1701.0+6613' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 16 10:56:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 302578: <4FGL_J1701.0+6613_daily_bin728> in cluster <slac> Done

Job <4FGL_J1701.0+6613_daily_bin728> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Sep 16 10:40:29 2021
Job was executed on host(s) <bullet0054>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 16 10:41:08 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:41:08 2021
Terminated at Thu Sep 16 10:56:07 2021
Results reported at Thu Sep 16 10:56:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1701.0+6613_daily_bin728 255.26 66.2255 428025601 428284801 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 :                                   878.12 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             322.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   899 sec.
    Turnaround time :                            938 sec.

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

