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


Performing analysis on: 4FGL_J2317.7+2839_daily_bin1251
RA = 349.438, Dec = 28.6589
tmin = 563587201, tmax = 563846401
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='740665', job_status='RUN', time_executed='2021-09-29 10:58:45.870988', time_epoch_executed='1632938325.87' WHERE source_name='4FGL J2317.7+2839' and cadence='daily' and bin_id='1251'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/740665

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/740665/ft1_4FGL_J2317.7+2839_daily_bin1251.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/740665/ft2_4FGL_J2317.7+2839_daily_bin1251.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/740665/ft1_4FGL_J2317.7+2839_daily_bin1251.fits outfile=/scratch/kocevski/740665/ft1_filteredMKT_4FGL_J2317.7+2839_daily_bin1251.fits ra=349.438 dec=28.6589 rad=12.0 tmin=563587201.0 tmax=563846401.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 2.74
user 2.55
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/740665/ft2_4FGL_J2317.7+2839_daily_bin1251.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/740665/ft2_4FGL_J2317.7+2839_daily_bin1251.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/740665/ft1_filteredMKT_4FGL_J2317.7+2839_daily_bin1251.fits evtable="EVENTS" outfile="/scratch/kocevski/740665/ft1_filtered_4FGL_J2317.7+2839_daily_bin1251.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.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/740665/ft1_filtered_4FGL_J2317.7+2839_daily_bin1251.fits" evtable="EVENTS" scfile=/scratch/kocevski/740665/ft2_4FGL_J2317.7+2839_daily_bin1251.fits sctable="SC_DATA" outfile=/scratch/kocevski/740665/ltcube_563587201_563846401_4FGL_J2317.7+2839_daily_bin1251.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/740665/ft2_4FGL_J2317.7+2839_daily_bin1251.fits
.....................!
real 12.61
user 12.25
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/740665/ft1_filtered_4FGL_J2317.7+2839_daily_bin1251.fits evtable="EVENTS" scfile=/scratch/kocevski/740665/ft2_4FGL_J2317.7+2839_daily_bin1251.fits sctable="SC_DATA" expcube=/scratch/kocevski/740665/ltcube_563587201_563846401_4FGL_J2317.7+2839_daily_bin1251.fits outfile=/scratch/kocevski/740665/expmap_563587201_563846401_4FGL_J2317.7+2839_daily_bin1251.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/740665/ltcube_563587201_563846401_4FGL_J2317.7+2839_daily_bin1251.fits
.....................!
real 193.33
user 187.94
sys 5.07

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

Setting source of interest to:
4FGL J2317.7+2839 @ 349.438 28.6589

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/740665/ft1_filtered_4FGL_J2317.7+2839_daily_bin1251.fits scfile=/scratch/kocevski/740665/ft2_4FGL_J2317.7+2839_daily_bin1251.fits outfile=/scratch/kocevski/740665/cmap_563587201_563846401_4FGL_J2317.7+2839_daily_bin1251.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=349.438 yref=28.6589 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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/740665/ft1_filtered_4FGL_J2317.7+2839_daily_bin1251.fits scfile=/scratch/kocevski/740665/ft2_4FGL_J2317.7+2839_daily_bin1251.fits outfile=/scratch/kocevski/740665/cmap_HighResolution_563587201_563846401_4FGL_J2317.7+2839_daily_bin1251.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=349.438 yref=28.6589 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/740665/ft1_filtered_4FGL_J2317.7+2839_daily_bin1251.fits evtable="EVENTS" scfile=/scratch/kocevski/740665/ft2_4FGL_J2317.7+2839_daily_bin1251.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/740665/Model_4FGL_J2317.7+2839_daily_bin1251.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/740665/ft1_filtered_4FGL_J2317.7+2839_daily_bin1251.fits.....................!
real 74.06
user 72.78
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/740665/ft1_filtered_4FGL_J2317.7+2839_daily_bin1251.fits', '/scratch/kocevski/740665/ft2_4FGL_J2317.7+2839_daily_bin1251.fits', expMap='/scratch/kocevski/740665/expmap_563587201_563846401_4FGL_J2317.7+2839_daily_bin1251.fits', expCube='/scratch/kocevski/740665/ltcube_563587201_563846401_4FGL_J2317.7+2839_daily_bin1251.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/740665/Model_4FGL_J2317.7+2839_daily_bin1251.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2317.7+2839'

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  2.207e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
413        Index:  2.003e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
414        Scale:  3.565e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/740665/ft1_filtered_4FGL_J2317.7+2839_daily_bin1251.fits
Spacecraft file(s): /scratch/kocevski/740665/ft2_4FGL_J2317.7+2839_daily_bin1251.fits
Exposure map: /scratch/kocevski/740665/expmap_563587201_563846401_4FGL_J2317.7+2839_daily_bin1251.fits
Exposure cube: /scratch/kocevski/740665/ltcube_563587201_563846401_4FGL_J2317.7+2839_daily_bin1251.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/740665/Model_4FGL_J2317.7+2839_daily_bin1251.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) = 6680.092309

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    20.143       1.0000         .10000E-03   10000.    
     3 'norm      '    2.2821       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.727       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.5297       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10216E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .55022       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.0956       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.6319       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.7229       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .11383E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    23.491       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.795       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.3931       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0609       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .82666       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5440E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6680.059     FROM MIGRAD    STATUS=CONVERGED    408 CALLS     2059 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .39476        .49761E-06** at limit **
   2  Prefactor     20.145        20.019       -.36236E-06   -.35617E-03
   3  norm          2.2821        1.5894        .25251E-07   -.24597E-04
   4  Prefactor     12.729        9.4810        .14943E-06   -.31321E-04
   5  Prefactor     5.5290        9.5104        .47159E-06   -.37052E-04
   6  Prefactor     .10000E-03    6.9333        .18136E-06** at limit **
   7  Prefactor     .10000E-03    43.618        .24870E-06** at limit **
   8  norm          .55125        1.5727        .48232E-06    .25734E-03
   9  Prefactor     7.0958        16.242        .10860E-05   -.53238E-04
  10  Prefactor     1.6290        15.606        .10797E-04   -.18456E-03
  11  Prefactor     4.7212        23.058        .86261E-06   -.18292E-04
  12  Prefactor     .10000E-03    2.1831        .78986E-07** at limit **
  13  norm          .10000E-03    5.6358        .42181E-06** at limit **
  14  Prefactor     23.492        21.984       -.64497E-06   -.30593E-03
  15  norm          .10000E-03    .96548        .43778E-07** at limit **
  16  Prefactor     .10000E-03    16.757        .19939E-06** at limit **
  17  Prefactor     12.795        18.607       -.11931E-06   -.76083E-04
  18  Prefactor     4.3696        95.590        .48416E-05   -.49005E-04
  19  Normalizat    1.0607        .21685       -.92680E-06   -.47860E-03
  20  Prefactor     .82676        .10311       -.84767E-06   -.88271E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 20.1452
  norm       = 2.28213
  Prefactor  = 12.7286
  Prefactor  = 5.52899
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.551254
  Prefactor  = 7.09579
  Prefactor  = 1.62898
  Prefactor  = 4.72124
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 23.4919
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.7955
  Prefactor  = 4.36965
  Normalizat = 1.06071
  Prefactor  = 0.82676
 **********
 **   18 **HESSE 
 **********

 FCN=   6680.059     FROM HESSE     STATUS=OK           291 CALLS     2350 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .60100        .97111E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     20.145        19.520        .89242E-04   -1.4810    
   3  norm          2.2821        1.5860        .83020E-04   -1.5406    
   4  Prefactor     12.729        9.4721        .11228E-03   -1.4994    
   5  Prefactor     5.5290        9.5051        .85428E-03   -1.5238    
   6  Prefactor     .10000E-03    7.0826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    44.043        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .55125        1.5634        .15661E-03   -1.5559    
   9  Prefactor     7.0958        16.254        .75297E-03   -1.5175    
  10  Prefactor     1.6290        15.579        .16550E-02   -1.5453    
  11  Prefactor     4.7212        23.009        .18516E-03   -1.5273    
  12  Prefactor     .10000E-03    2.1929        .11794E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    5.7084        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     23.492        21.950        .82645E-04   -1.4738    
  15  norm          .10000E-03    .97826        .78433E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    16.842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     12.795        18.608        .11198E-03   -1.4992    
  18  Prefactor     4.3696        95.742        .19215E-03   -1.5290    
  19  Normalizat    1.0607        .25802        .31312E-03   -.91024    
  20  Prefactor     .82676        .12308        .17398E-03   -.98749    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31728e-09
Minuit parameter uncertainties:
  1  2.30079e-05
  2  19.5265
  3  1.58607
  4  9.47318
  5  9.50767
  6  3.54466e-05
  7  0.000109457
  8  1.56355
  9  16.2639
  10  10.0783
  11  20.8578
  12  7.83066e-06
  13  7.28646e-05
  14  21.9577
  15  2.24366e-06
  16  5.558e-05
  17  18.616
  18  40.9817
  19  0.258327
  20  0.123117
Done.

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

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  4.721e+00  2.086e+01  1.000e-04  1.000e+04 ( 1.000e-14)
413        Index:  2.003e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
414        Scale:  3.565e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
541    Prefactor:  8.268e-01  1.231e-01  0.000e+00  1.000e+01 ( 1.000e+00)
542        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
543        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
540   Normalization:  1.061e+00  2.583e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.06
Ra Dec: 349.438 28.659
Photon Flux Upper Limit: 8.17e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.13e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/740665/likelihoodResults_563587201_563846401_4FGL_J2317.7+2839_daily_bin1251.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6680.03633421
delta logL = 0.0230970409139

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6680.02313282
delta logL = 0.036298429688

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6870       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7912       1.0000          .0000       10.000    
     3 'Normalizat'    1.0442       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83081       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5440E+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=   6680.023     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      282 TOTAL
                     EDM=   .90E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6570        21.510        .13892E-02   -.11178E-02
   2  Index         2.7996        .21719        .37229       -.18038E-03
   3  Normalizat    1.0439        .14343E-01    .31531E-03   -.24564E-03
   4  Prefactor     .83097        .71712E-02    .17357E-03   -.52662E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.65697
  Index      = 2.79958
  Normalizat = 1.04393
  Prefactor  = 0.830971
 **********
 **   18 **HESSE 
 **********

 FCN=   6680.023     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      309 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6570        577.49        .55566E-04   -1.5451    
   2  Index         2.7996        7.4031        .14546E-02   -.45569    
   3  Normalizat    1.0439        .35782        .12612E-04   -.91573    
   4  Prefactor     .83097        .16034        .34714E-04   -.98597    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.52926e-09
Minuit parameter uncertainties:
  1  62.4819
  2  14.5204
  3  0.35865
  4  0.16043
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/740665': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6680.02312918
delta logL = 0.0363020734385

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  1.657e+00  6.248e+01  1.000e-04  1.000e+04 ( 1.000e-14)
413        Index:  2.800e+00  1.452e+01  0.000e+00  1.000e+01 (-1.000e+00)
414        Scale:  3.565e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
541    Prefactor:  8.310e-01  1.604e-01  0.000e+00  1.000e+01 ( 1.000e+00)
542        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
543        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
540   Normalization:  1.044e+00  3.586e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.06
Ra Dec: 349.438 28.659

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/740665/cmap_HighResolution_563587201_563846401_4FGL_J2317.7+2839_daily_bin1251.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.13e-03', job_status='DONE', photon_flux_upper_limit='8.17e-08', time_completed='2021-09-29 11:09:47.196264', job_id='740665', GAL2='0.83', fit_tolerance='1e-08', EG2='1.04', EG='1.06', time_epoch_completed='1632938987.2', return_code2='102', ts='0.06', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='3.63e-02', ts2='0.14', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1251' AND source_name='4FGL J2317.7+2839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:09:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 740665: <4FGL_J2317.7+2839_daily_bin1251> in cluster <slac> Done

Job <4FGL_J2317.7+2839_daily_bin1251> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 10:55:52 2021
Job was executed on host(s) <bullet0224>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 10:55:53 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 10:55:53 2021
Terminated at Wed Sep 29 11:09:47 2021
Results reported at Wed Sep 29 11:09:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2317.7+2839_daily_bin1251 349.438 28.6589 563587201 563846401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2317.7+2839 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   626.45 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             253.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   834 sec.
    Turnaround time :                            835 sec.

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

