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


Performing analysis on: 4FGL_J1716.1+6836_daily_bin693
RA = 259.031, Dec = 68.6063
tmin = 418953601, tmax = 419212801
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='467288', job_status='RUN', time_executed='2021-09-16 20:10:29.229631', time_epoch_executed='1631848229.23' WHERE source_name='4FGL J1716.1+6836' and cadence='daily' and bin_id='693'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/467288

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/467288/ft1_4FGL_J1716.1+6836_daily_bin693.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/467288/ft2_4FGL_J1716.1+6836_daily_bin693.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/467288/ft1_4FGL_J1716.1+6836_daily_bin693.fits outfile=/scratch/kocevski/467288/ft1_filteredMKT_4FGL_J1716.1+6836_daily_bin693.fits ra=259.031 dec=68.6063 rad=12.0 tmin=418953601.0 tmax=419212801.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.52
user 5.25
sys 0.26

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/467288/ft2_4FGL_J1716.1+6836_daily_bin693.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/467288/ft2_4FGL_J1716.1+6836_daily_bin693.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/467288/ft1_filteredMKT_4FGL_J1716.1+6836_daily_bin693.fits evtable="EVENTS" outfile="/scratch/kocevski/467288/ft1_filtered_4FGL_J1716.1+6836_daily_bin693.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/467288/ft1_filtered_4FGL_J1716.1+6836_daily_bin693.fits" evtable="EVENTS" scfile=/scratch/kocevski/467288/ft2_4FGL_J1716.1+6836_daily_bin693.fits sctable="SC_DATA" outfile=/scratch/kocevski/467288/ltcube_418953601_419212801_4FGL_J1716.1+6836_daily_bin693.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/467288/ft2_4FGL_J1716.1+6836_daily_bin693.fits
.....................!
real 12.13
user 11.77
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/467288/ft1_filtered_4FGL_J1716.1+6836_daily_bin693.fits evtable="EVENTS" scfile=/scratch/kocevski/467288/ft2_4FGL_J1716.1+6836_daily_bin693.fits sctable="SC_DATA" expcube=/scratch/kocevski/467288/ltcube_418953601_419212801_4FGL_J1716.1+6836_daily_bin693.fits outfile=/scratch/kocevski/467288/expmap_418953601_419212801_4FGL_J1716.1+6836_daily_bin693.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/467288/ltcube_418953601_419212801_4FGL_J1716.1+6836_daily_bin693.fits
.....................!
real 190.58
user 184.71
sys 5.54

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 J1716.1+6836 @ 259.031 68.6063

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/467288/ft1_filtered_4FGL_J1716.1+6836_daily_bin693.fits scfile=/scratch/kocevski/467288/ft2_4FGL_J1716.1+6836_daily_bin693.fits outfile=/scratch/kocevski/467288/cmap_418953601_419212801_4FGL_J1716.1+6836_daily_bin693.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=259.031 yref=68.6063 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/467288/ft1_filtered_4FGL_J1716.1+6836_daily_bin693.fits scfile=/scratch/kocevski/467288/ft2_4FGL_J1716.1+6836_daily_bin693.fits outfile=/scratch/kocevski/467288/cmap_HighResolution_418953601_419212801_4FGL_J1716.1+6836_daily_bin693.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=259.031 yref=68.6063 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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/467288/ft1_filtered_4FGL_J1716.1+6836_daily_bin693.fits evtable="EVENTS" scfile=/scratch/kocevski/467288/ft2_4FGL_J1716.1+6836_daily_bin693.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/467288/Model_4FGL_J1716.1+6836_daily_bin693.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/467288/ft1_filtered_4FGL_J1716.1+6836_daily_bin693.fits.....................!
real 61.71
user 60.36
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/467288/ft1_filtered_4FGL_J1716.1+6836_daily_bin693.fits', '/scratch/kocevski/467288/ft2_4FGL_J1716.1+6836_daily_bin693.fits', expMap='/scratch/kocevski/467288/expmap_418953601_419212801_4FGL_J1716.1+6836_daily_bin693.fits', expCube='/scratch/kocevski/467288/ltcube_418953601_419212801_4FGL_J1716.1+6836_daily_bin693.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/467288/Model_4FGL_J1716.1+6836_daily_bin693.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1716.1+6836'

4FGL J1716.1+6836
   Spectrum: PowerLaw
360    Prefactor:  5.655e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
361        Index:  2.378e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
362        Scale:  1.122e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/467288/ft1_filtered_4FGL_J1716.1+6836_daily_bin693.fits
Spacecraft file(s): /scratch/kocevski/467288/ft2_4FGL_J1716.1+6836_daily_bin693.fits
Exposure map: /scratch/kocevski/467288/expmap_418953601_419212801_4FGL_J1716.1+6836_daily_bin693.fits
Exposure cube: /scratch/kocevski/467288/ltcube_418953601_419212801_4FGL_J1716.1+6836_daily_bin693.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/467288/Model_4FGL_J1716.1+6836_daily_bin693.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) = 5507.82500297

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    17.516       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    142.31       1.0000         .10000E-03   10000.    
     6 'Prefactor '    38.436       1.0000         .10000E-03   10000.    
     7 'norm      '    64.881       1.0000         .10000E-03   10000.    
     8 'Prefactor '    120.50       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    7.6961       1.0000         .10000E-03   10000.    
    11 'Prefactor '    42.005       1.0000         .10000E-03   10000.    
    12 'norm      '    .10062E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    24.852       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.1040       1.0000         .10000E-03   10000.    
    15 'Prefactor '    30.849       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10841E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    109.42       1.0000         .10000E-03   10000.    
    20 'Prefactor '    271.39       1.0000         .10000E-03   10000.    
    21 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.5180       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10244E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    9.2221       1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.7857       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    11.345       1.0000         .10000E-03   10000.    
    28 'Prefactor '    7.7907       1.0000         .10000E-03   10000.    
    29 'Prefactor '    33.932       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    40.616       1.0000         .10000E-03   10000.    
    32 'norm      '    11.424       1.0000         .10000E-03   10000.    
    33 'Normalizat'    .41186       1.0000         .10000E-01   10.000    
    34 'Prefactor '    1.2127       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6530E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5507.632     FROM MIGRAD    STATUS=CONVERGED    907 CALLS     4919 TOTAL
                     EDM=   .24E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.068        .57239E-06** at limit **
   2  Prefactor     17.518        14.246        .34340E-06    .57807E-05
   3  Prefactor     .10000E-03    20.764        .10360E-06** at limit **
   4  norm          .10000E-03    2.6754        .45454E-06** at limit **
   5  Prefactor     142.29        176.20        .19402E-05   -.12703E-07
   6  Prefactor     38.616        182.48        .24264E-05    .77323E-05
   7  norm          64.881        23.823        .77285E-07    .14218E-04
   8  Prefactor     120.42        178.89        .12193E-05    .16145E-06
   9  Prefactor     .10000E-03    11.399        .28657E-07** at limit **
  10  norm          7.6758        26.573        .31981E-06    .37180E-05
  11  Prefactor     41.926        75.861        .13338E-05   -.11919E-04
  12  norm          .10000E-03    .39010        .85260E-07** at limit **
  13  Prefactor     24.858        15.859        .34804E-06   -.20023E-04
  14  Prefactor     3.1045        2.9811        .35199E-06    .93791E-04
  15  Prefactor     30.846        21.339        .14966E-06   -.24774E-04
  16  Prefactor     .10000E-03    20.315        .56746E-06** at limit **
  17  Prefactor     .10000E-03    10.892        .14087E-06** at limit **
  18  Prefactor     .10000E-03    11.103       -.95818E-06** at limit **
  19  Prefactor     109.46        105.64        .68131E-06    .47546E-05
  20  Prefactor     271.14        226.84        .21002E-06   -.11285E-04
  21  norm          .10000E-03    1.4899        .25668E-08** at limit **
  22  norm          1.5180        .71710        .44304E-07    .14847E-03
  23  Prefactor     .10000E-03    9.0193       -.84727E-06** at limit **
  24  norm          9.2221        5.6065       -.11210E-06    .46407E-04
  25  Prefactor     7.7368        51.287        .47053E-06    .43775E-06
  26  Prefactor     .10000E-03    107.98       -.29359E-06** at limit **
  27  Prefactor     11.345        8.3349        .12829E-05    .40695E-04
  28  Prefactor     7.7900        27.656        .45194E-05    .97511E-05
  29  Prefactor     33.929        31.136       -.56683E-06    .30837E-04
  30  Prefactor     .10000E-03    37.596        .12600E-06** at limit **
  31  Prefactor     40.583        101.96       -.62041E-06    .41995E-06
  32  norm          11.425        6.0405        .29225E-07    .90019E-04
  33  Normalizat    .41161        .26604       -.78174E-05   -.41254E-04
  34  Prefactor     1.2129        .17806        .23179E-05   -.58410E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 17.5176
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 142.292
  Prefactor  = 38.616
  norm       = 64.8814
  Prefactor  = 120.418
  Prefactor  = 0.0001
  norm       = 7.67584
  Prefactor  = 41.9258
  norm       = 0.0001
  Prefactor  = 24.858
  Prefactor  = 3.10455
  Prefactor  = 30.8461
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 109.458
  Prefactor  = 271.138
  norm       = 0.0001
  norm       = 1.518
  Prefactor  = 0.0001
  norm       = 9.22209
  Prefactor  = 7.73683
  Prefactor  = 0.0001
  Prefactor  = 11.345
  Prefactor  = 7.78998
  Prefactor  = 33.9291
  Prefactor  = 0.0001
  Prefactor  = 40.5827
  norm       = 11.4247
  Normalizat = 0.411611
  Prefactor  = 1.21291
 **********
 **   18 **HESSE 
 **********

 FCN=   5507.632     FROM HESSE     STATUS=OK           738 CALLS     5657 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    28.186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     17.518        14.236        .95697E-04   -1.4871    
   3  Prefactor     .10000E-03    20.781        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.6747        .11846E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     142.29        175.94        .16886E-03   -1.3317    
   6  Prefactor     38.616        181.31        .32325E-03   -1.4464    
   7  norm          64.881        23.811        .49823E-04   -1.4095    
   8  Prefactor     120.42        178.87        .18331E-03   -1.3509    
   9  Prefactor     .10000E-03    11.402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          7.6758        26.391        .14455E-03   -1.5154    
  11  Prefactor     41.926        75.668        .61852E-04   -1.4412    
  12  norm          .10000E-03    .47655        .86427E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     24.858        15.623        .80354E-04   -1.4710    
  14  Prefactor     3.1045        2.9692        .11662E-03   -1.5356    
  15  Prefactor     30.846        20.910        .72139E-04   -1.4597    
  16  Prefactor     .10000E-03    20.329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    11.118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     109.46        104.85        .19225E-03   -1.3612    
  20  Prefactor     271.14        226.72        .12309E-03   -1.2400    
  21  norm          .10000E-03    2.9401        .17397E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.5180        .71535        .41256E-04   -1.5462    
  23  Prefactor     .10000E-03    9.0409        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          9.2221        5.5314        .12679E-03   -1.5101    
  25  Prefactor     7.7368        51.179        .14371E-03   -1.5152    
  26  Prefactor     .10000E-03    108.03        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     11.345        8.3114        .59471E-03   -1.5034    
  28  Prefactor     7.7900        27.710        .71831E-03   -1.5150    
  29  Prefactor     33.929        31.090        .68793E-04   -1.4542    
  30  Prefactor     .10000E-03    37.598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     40.583        102.04        .62897E-04   -1.4433    
  32  norm          11.425        6.0473        .11281E-03   -1.5032    
  33  Normalizat    .41161        .26743        .43429E-03   -1.1671    
  34  Prefactor     1.2129        .18247        .19591E-03   -.85935    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.34933e-11
Minuit parameter uncertainties:
  1  4.92138e-05
  2  14.2386
  3  9.07775e-06
  4  8.97462e-08
  5  176.593
  6  168.19
  7  23.8141
  8  179.681
  9  3.92715e-06
  10  26.4313
  11  75.8422
  12  2.01277e-06
  13  15.6254
  14  2.96937
  15  20.9148
  16  8.8584e-06
  17  1.01568e-05
  18  3.3001e-06
  19  105.033
  20  227.459
  21  3.60451e-06
  22  0.71535
  23  2.76961e-07
  24  5.53175
  25  39.847
  26  7.75327e-06
  27  8.31225
  28  27.7559
  29  31.1052
  30  1.01039e-05
  31  102.483
  32  6.04762
  33  0.26827
  34  0.182562
Done.

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

Extracting fit parameters...

4FGL J1716.1+6836
   Spectrum: PowerLaw
360    Prefactor:  3.085e+01  2.091e+01  1.000e-04  1.000e+04 ( 1.000e-13)
361        Index:  2.378e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
362        Scale:  1.122e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
650    Prefactor:  1.213e+00  1.826e-01  0.000e+00  1.000e+01 ( 1.000e+00)
651        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
652        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
649   Normalization:  4.116e-01  2.683e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.49
Ra Dec: 259.031 68.606
Photon Index (Fixed Index): 2.38 +/- 0.00
Photon Flux (Fixed Index): 7.02e-08 +/- 4.76e-08
Energy Flux (Fixed Index): 2.37e-05 +/- 1.61e-05

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) = 5507.47709448
delta logL = 0.15522525046

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5507.45788791
delta logL = 0.174431826353

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.284       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7921       1.0000          .0000       10.000    
     3 'Normalizat'    .37738       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2284       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6530E+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=   5507.458     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      274 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.280        27.477        .88932E-04   -.30093E-03
   2  Index         2.7922        .87424        .45863E-02   -.80142E-04
   3  Normalizat    .37736        .24344        .45240E-03    .73403E-04
   4  Prefactor     1.2284        .17822        .19478E-03    .11149E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.2798
  Index      = 2.79215
  Normalizat = 0.37736
  Prefactor  = 1.22841
 **********
 **   18 **HESSE 
 **********

 FCN=   5507.458     FROM HESSE     STATUS=OK            25 CALLS      299 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.280        23.081        .35573E-05   -1.4807    
   2  Index         2.7922        .73458        .18345E-03   -.45735    
   3  Normalizat    .37736        .24134        .18096E-04   -1.1849    
   4  Prefactor     1.2284        .17729        .38955E-04   -.85461    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28091e-10
Minuit parameter uncertainties:
  1  23.0907
  2  0.737902
  3  0.242006
  4  0.177374
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/467288': 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) = 5507.45788788
delta logL = 0.174431850069

Extracting fit parameters...

4FGL J1716.1+6836
   Spectrum: PowerLaw
360    Prefactor:  2.028e+01  2.309e+01  1.000e-04  1.000e+04 ( 1.000e-13)
361        Index:  2.792e+00  7.379e-01  0.000e+00  1.000e+01 (-1.000e+00)
362        Scale:  1.122e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
650    Prefactor:  1.228e+00  1.774e-01  0.000e+00  1.000e+01 ( 1.000e+00)
651        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
652        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
649   Normalization:  3.774e-01  2.420e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.91
Ra Dec: 259.031 68.606
Photon Index (Free Index): 2.79 +/- 0.74
Photon Flux (Free Index): 9.68e-08 +/- 6.83e-08
Energy Flux (Free Index): 2.18e-05 +/- 1.29e-05

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/467288/cmap_HighResolution_418953601_419212801_4FGL_J1716.1+6836_daily_bin693.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.02e-08', energy_flux2='2.18e-05', photon_flux_error='4.76e-08', dlogl='1.74e-01', energy_flux='2.37e-05', photon_flux2='9.68e-08', job_status='DONE', time_completed='2021-09-16 20:25:23.718697', photon_index_error2='0.74', photon_index2='2.79', ts='4.49', fit_tolerance='1e-08', GAL='1.21', photon_index_error='0.00', energy_flux_error2='1.29e-05', EG='0.41', time_epoch_completed='1631849123.72', return_code='0', job_id='467288', GAL2='1.23', EG2='0.38', return_code2='0', energy_flux_error='1.61e-05', photon_flux_error2='6.83e-08', ts2='4.91', photon_index='2.38' WHERE bin_id='693' AND source_name='4FGL J1716.1+6836' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 16 20:25:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0110>
Subject: Job 467288: <4FGL_J1716.1+6836_daily_bin693> in cluster <slac> Done

Job <4FGL_J1716.1+6836_daily_bin693> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Sep 16 20:10:18 2021
Job was executed on host(s) <bullet0110>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 16 20:10:20 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 16 20:10:20 2021
Terminated at Thu Sep 16 20:25:24 2021
Results reported at Thu Sep 16 20:25:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1716.1+6836_daily_bin693 259.031 68.6063 418953601 419212801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1716.1+6836 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   892.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             313.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   903 sec.
    Turnaround time :                            906 sec.

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

