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


Performing analysis on: 4FGL_J1709.7+4318_daily_bin994
RA = 257.432, Dec = 43.3109
tmin = 496972801, tmax = 497232001
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='429597', job_status='RUN', time_executed='2021-09-16 18:00:53.095799', time_epoch_executed='1631840453.1' WHERE source_name='4FGL J1709.7+4318' and cadence='daily' and bin_id='994'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/429597

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/429597/ft1_4FGL_J1709.7+4318_daily_bin994.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/429597/ft2_4FGL_J1709.7+4318_daily_bin994.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/429597/ft1_4FGL_J1709.7+4318_daily_bin994.fits outfile=/scratch/kocevski/429597/ft1_filteredMKT_4FGL_J1709.7+4318_daily_bin994.fits ra=257.432 dec=43.3109 rad=12.0 tmin=496972801.0 tmax=497232001.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.17
user 4.90
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/429597/ft2_4FGL_J1709.7+4318_daily_bin994.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/429597/ft2_4FGL_J1709.7+4318_daily_bin994.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/429597/ft1_filteredMKT_4FGL_J1709.7+4318_daily_bin994.fits evtable="EVENTS" outfile="/scratch/kocevski/429597/ft1_filtered_4FGL_J1709.7+4318_daily_bin994.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.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/429597/ft1_filtered_4FGL_J1709.7+4318_daily_bin994.fits" evtable="EVENTS" scfile=/scratch/kocevski/429597/ft2_4FGL_J1709.7+4318_daily_bin994.fits sctable="SC_DATA" outfile=/scratch/kocevski/429597/ltcube_496972801_497232001_4FGL_J1709.7+4318_daily_bin994.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/429597/ft2_4FGL_J1709.7+4318_daily_bin994.fits
.....................!
real 12.08
user 11.71
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/429597/ft1_filtered_4FGL_J1709.7+4318_daily_bin994.fits evtable="EVENTS" scfile=/scratch/kocevski/429597/ft2_4FGL_J1709.7+4318_daily_bin994.fits sctable="SC_DATA" expcube=/scratch/kocevski/429597/ltcube_496972801_497232001_4FGL_J1709.7+4318_daily_bin994.fits outfile=/scratch/kocevski/429597/expmap_496972801_497232001_4FGL_J1709.7+4318_daily_bin994.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/429597/ltcube_496972801_497232001_4FGL_J1709.7+4318_daily_bin994.fits
.....................!
real 190.84
user 185.80
sys 4.62

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

Setting source of interest to:
4FGL J1709.7+4318 @ 257.432 43.3109

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/429597/ft1_filtered_4FGL_J1709.7+4318_daily_bin994.fits scfile=/scratch/kocevski/429597/ft2_4FGL_J1709.7+4318_daily_bin994.fits outfile=/scratch/kocevski/429597/cmap_496972801_497232001_4FGL_J1709.7+4318_daily_bin994.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=257.432 yref=43.3109 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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/429597/ft1_filtered_4FGL_J1709.7+4318_daily_bin994.fits scfile=/scratch/kocevski/429597/ft2_4FGL_J1709.7+4318_daily_bin994.fits outfile=/scratch/kocevski/429597/cmap_HighResolution_496972801_497232001_4FGL_J1709.7+4318_daily_bin994.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=257.432 yref=43.3109 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.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/429597/ft1_filtered_4FGL_J1709.7+4318_daily_bin994.fits evtable="EVENTS" scfile=/scratch/kocevski/429597/ft2_4FGL_J1709.7+4318_daily_bin994.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/429597/Model_4FGL_J1709.7+4318_daily_bin994.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/429597/ft1_filtered_4FGL_J1709.7+4318_daily_bin994.fits.....................!
real 38.76
user 37.40
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/429597/ft1_filtered_4FGL_J1709.7+4318_daily_bin994.fits', '/scratch/kocevski/429597/ft2_4FGL_J1709.7+4318_daily_bin994.fits', expMap='/scratch/kocevski/429597/expmap_496972801_497232001_4FGL_J1709.7+4318_daily_bin994.fits', expCube='/scratch/kocevski/429597/ltcube_496972801_497232001_4FGL_J1709.7+4318_daily_bin994.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/429597/Model_4FGL_J1709.7+4318_daily_bin994.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1709.7+4318'

4FGL J1709.7+4318
   Spectrum: LogParabola
333         norm:  1.018e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
334        alpha:  2.221e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
335         beta:  9.629e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
336           Eb:  6.265e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/429597/ft1_filtered_4FGL_J1709.7+4318_daily_bin994.fits
Spacecraft file(s): /scratch/kocevski/429597/ft2_4FGL_J1709.7+4318_daily_bin994.fits
Exposure map: /scratch/kocevski/429597/expmap_496972801_497232001_4FGL_J1709.7+4318_daily_bin994.fits
Exposure cube: /scratch/kocevski/429597/ltcube_496972801_497232001_4FGL_J1709.7+4318_daily_bin994.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/429597/Model_4FGL_J1709.7+4318_daily_bin994.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) = 3610.86949616

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.5262       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .61033       1.0000         .10000E-03   10000.    
     6 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12213       1.0000         .10000E-03   10000.    
     9 'norm      '    192.67       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.6871       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.2046       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.4163       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11633E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.3270       1.0000         .10000E-03   10000.    
    16 'norm      '    3.4522       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.4504       1.0000         .10000E-03   10000.    
    19 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.3517       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    3.3044       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    47.983       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    5.9803       1.0000         .10000E-03   10000.    
    28 'Prefactor '    61.472       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    10.713       1.0000         .10000E-03   10000.    
    32 'norm      '    5.8256       1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.0893       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .78607       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6930E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3610.843     FROM MIGRAD    STATUS=CONVERGED    917 CALLS     4810 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.2590        .25609E-07** at limit **
   2  Prefactor     .10000E-03    49.659        .70262E-06** at limit **
   3  Prefactor     2.5258        5.2559       -.70477E-06   -.46233E-04
   4  norm          .10000E-03    19.491       -.14014E-06** at limit **
   5  norm          .61044        .24512       -.67616E-07   -.27962E-03
   6  norm          .10000E-03    14.829        .52008E-06** at limit **
   7  Prefactor     .10000E-03    44.126        .47958E-06** at limit **
   8  Prefactor     .10000E+00    126.84       -.77973E-05   -.54340E-06
   9  norm          192.72        129.86        .24628E-06    .19477E-05
  10  Prefactor     .10000E-03    1.0391        .94488E-06** at limit **
  11  Prefactor     1.6895        1.5975       -.85058E-06    .83773E-04
  12  Prefactor     2.2026        4.7932        .29755E-06   -.19679E-03
  13  Prefactor     7.4181        6.6742       -.27683E-06    .54787E-04
  14  Prefactor     .10000E-03    44.457       -.64439E-07** at limit **
  15  norm          2.3271        1.7734       -.26587E-07    .19485E-04
  16  norm          3.4521        1.7732        .24583E-07   -.11834E-03
  17  Prefactor     .10000E-03    4.8371        .81199E-07** at limit **
  18  norm          1.4504        1.2255       -.14287E-07    .57818E-04
  19  norm          .10000E-03    13.938       -.37331E-06** at limit **
  20  norm          2.3518        2.6372       -.88531E-07    .10576E-03
  21  Prefactor     .10000E-03    4.8167       -.20062E-06** at limit **
  22  Prefactor     .10000E-03    47.063        .52490E-06** at limit **
  23  norm          3.3046        5.7039       -.15455E-06    .49308E-04
  24  Prefactor     .10000E-03    60.664       -.38678E-06** at limit **
  25  norm          47.978        15.791       -.20185E-06    .30046E-03
  26  Prefactor     .10000E-03    33.010       -.96410E-06** at limit **
  27  Prefactor     5.9737        10.148       -.53991E-06    .49932E-04
  28  Prefactor     61.475        94.584        .64026E-06    .41878E-05
  29  Prefactor     .10000E-03    61.478       -.49280E-06** at limit **
  30  Prefactor     .10000E-03    18.879        .11701E-06** at limit **
  31  Prefactor     10.713        12.095       -.31011E-07    .21086E-04
  32  norm          5.8256        11.061       -.45832E-06    .16287E-04
  33  Normalizat    1.0894        .30780        .15082E-05   -.96052E-04
  34  Prefactor     .78597        .20525       -.68114E-06    .13860E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.52583
  norm       = 0.0001
  norm       = 0.610442
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0999997
  norm       = 192.715
  Prefactor  = 0.0001
  Prefactor  = 1.68954
  Prefactor  = 2.20256
  Prefactor  = 7.41814
  Prefactor  = 0.0001
  norm       = 2.32711
  norm       = 3.45211
  Prefactor  = 0.0001
  norm       = 1.45045
  norm       = 0.0001
  norm       = 2.35177
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.30459
  Prefactor  = 0.0001
  norm       = 47.9776
  Prefactor  = 0.0001
  Prefactor  = 5.97367
  Prefactor  = 61.4753
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.7127
  norm       = 5.82564
  Normalizat = 1.08942
  Prefactor  = 0.785973
 **********
 **   18 **HESSE 
 **********

 FCN=   3610.843     FROM HESSE     STATUS=OK           742 CALLS     5552 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.2629        .13458E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    49.743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.5258        5.2580        .94197E-03   -1.5390    
   4  norm          .10000E-03    19.500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .61044        .24550        .17644E-04   -1.5552    
   6  norm          .10000E-03    14.813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    44.383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E+00    10.501        .52589E-01   -1.5645    
   9  norm          192.72        130.06        .14550E-03   -1.2923    
  10  Prefactor     .10000E-03    1.7135        .11838E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.6895        1.6323        .70641E-04   -1.5448    
  12  Prefactor     2.2026        4.7548        .18159E-03   -1.5411    
  13  Prefactor     7.4181        6.6580        .13272E-03   -1.5163    
  14  Prefactor     .10000E-03    45.484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.3271        1.7780        .67903E-04   -1.5403    
  16  norm          3.4521        1.7702        .53957E-04   -1.5336    
  17  Prefactor     .10000E-03    4.8471        .12905E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.4504        1.2275        .58371E-04   -1.5467    
  19  norm          .10000E-03    14.028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.3518        2.6299        .97304E-04   -1.5401    
  21  Prefactor     .10000E-03    4.9106        .12852E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    47.125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.3046        5.6851        .18197E-03   -1.5344    
  24  Prefactor     .10000E-03    60.686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          47.978        15.707        .57888E-04   -1.4322    
  26  Prefactor     .10000E-03    33.003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     5.9737        10.130        .82099E-03   -1.5219    
  28  Prefactor     61.475        94.435        .51177E-04   -1.4138    
  29  Prefactor     .10000E-03    61.586        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    18.913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     10.713        12.086        .12241E-03   -1.5053    
  32  norm          5.8256        11.049        .83197E-03   -1.5225    
  33  Normalizat    1.0894        .36509        .29579E-03   -.90092    
  34  Prefactor     .78597        .24471        .24688E-03   -1.0025    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.6123e-10
Minuit parameter uncertainties:
  1  1.89156e-06
  2  5.48695e-05
  3  5.25895
  4  1.55233e-05
  5  0.245505
  6  4.46986e-05
  7  0.000144039
  8  2.04886
  9  130.25
  10  3.66338e-05
  11  1.63238
  12  4.75561
  13  6.65867
  14  9.271e-05
  15  1.77801
  16  1.77024
  17  5.52611e-06
  18  1.22749
  19  3.8857e-05
  20  2.63005
  21  2.36317e-05
  22  1.90063e-05
  23  5.68606
  24  4.0284e-05
  25  15.7088
  26  1.35353e-05
  27  10.1329
  28  94.6665
  29  6.98046e-05
  30  6.25324e-06
  31  12.0885
  32  11.0524
  33  0.365942
  34  0.245053
Done.

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

Extracting fit parameters...

4FGL J1709.7+4318
   Spectrum: LogParabola
333         norm:  1.450e+00  1.227e+00  1.000e-04  1.000e+04 ( 1.000e-11)
334        alpha:  2.221e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
335         beta:  9.629e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
336           Eb:  6.265e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
690    Prefactor:  7.860e-01  2.451e-01  0.000e+00  1.000e+01 ( 1.000e+00)
691        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
692        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
689   Normalization:  1.089e+00  3.659e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.61
Ra Dec: 257.432 43.311
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 5.99e-08 +/- 5.06e-08
Energy Flux (Fixed Index): 2.27e-05 +/- 1.92e-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) = 3610.65074097
delta logL = 0.192058053027

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3610.62813282
delta logL = 0.214666205341

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1696       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0623       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0015       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82764       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6930E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3610.628     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      209 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1687        12.469        .88237E-02    .20676E-03
   2  alpha         3.0625        3.8476        .34854        .36420E-04
   3  Normalizat    1.0016        .10345        .69225E-01    .17949E-04
   4  Prefactor     .82757        .63524E-01    .44076E-01    .17305E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.1687
  alpha      = 3.06254
  Normalizat = 1.0016
  Prefactor  = 0.82757
 **********
 **   18 **HESSE 
 **********

 FCN=   3610.628     FROM HESSE     STATUS=OK            33 CALLS      242 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1687        1.4957        .39397E-04   -1.5492    
   2  alpha         3.0625        1.3254        .13047E-01    .22696    
   3  Normalizat    1.0016        .35969        .30623E-03   -.92977    
   4  Prefactor     .82757        .25062        .24111E-03   -.98720    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06212e-11
Minuit parameter uncertainties:
  1  1.49575
  2  1.40146
  3  0.360562
  4  0.250971
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/429597': 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) = 3610.62813228
delta logL = 0.214666744556

Extracting fit parameters...

4FGL J1709.7+4318
   Spectrum: LogParabola
333         norm:  1.169e+00  1.496e+00  1.000e-04  1.000e+04 ( 1.000e-11)
334        alpha:  3.063e+00  1.401e+00  0.000e+00  5.000e+00 ( 1.000e+00)
335         beta:  9.629e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
336           Eb:  6.265e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
690    Prefactor:  8.276e-01  2.510e-01  0.000e+00  1.000e+01 ( 1.000e+00)
691        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
692        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
689   Normalization:  1.002e+00  3.606e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.11
Ra Dec: 257.432 43.311
Photon Index (Free Index): 3.06 +/- 1.40
Photon Flux (Free Index): 1.29e-07 +/- 1.24e-07
Energy Flux (Free Index): 2.61e-05 +/- 1.68e-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/429597/cmap_HighResolution_496972801_497232001_4FGL_J1709.7+4318_daily_bin994.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.99e-08', energy_flux2='2.61e-05', photon_flux_error='5.06e-08', dlogl='2.15e-01', energy_flux='2.27e-05', photon_flux2='1.29e-07', job_status='DONE', time_completed='2021-09-16 18:12:28.539518', photon_index_error2='1.40', photon_index2='3.06', ts='4.61', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', energy_flux_error2='1.68e-05', EG='1.09', time_epoch_completed='1631841148.54', return_code='0', job_id='429597', GAL2='0.83', EG2='1.00', return_code2='0', energy_flux_error='1.92e-05', photon_flux_error2='1.24e-07', ts2='5.11', photon_index='2.22' WHERE bin_id='994' AND source_name='4FGL J1709.7+4318' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 16 18:12:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 429597: <4FGL_J1709.7+4318_daily_bin994> in cluster <slac> Done

Job <4FGL_J1709.7+4318_daily_bin994> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Thu Sep 16 18:00:36 2021
Job was executed on host(s) <bullet0224>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 16 18:00:38 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 16 18:00:38 2021
Terminated at Thu Sep 16 18:12:28 2021
Results reported at Thu Sep 16 18:12:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1709.7+4318_daily_bin994 257.432 43.3109 496972801 497232001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1709.7+4318 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   690.34 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             365.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   710 sec.
    Turnaround time :                            712 sec.

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

