/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 187 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 = 7658
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2317.7+2839_daily_bin68
RA = 349.438, Dec = 28.6589
tmin = 256953601, tmax = 257212801
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='733324', job_status='RUN', time_executed='2021-09-29 10:39:19.682592', time_epoch_executed='1632937159.68' WHERE source_name='4FGL J2317.7+2839' and cadence='daily' and bin_id='68'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/733324

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/733324/ft1_4FGL_J2317.7+2839_daily_bin68.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/733324/ft2_4FGL_J2317.7+2839_daily_bin68.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/733324/ft1_4FGL_J2317.7+2839_daily_bin68.fits outfile=/scratch/kocevski/733324/ft1_filteredMKT_4FGL_J2317.7+2839_daily_bin68.fits ra=349.438 dec=28.6589 rad=12.0 tmin=256953601.0 tmax=257212801.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 1.48
user 1.25
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/733324/ft2_4FGL_J2317.7+2839_daily_bin68.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/733324/ft1_filteredMKT_4FGL_J2317.7+2839_daily_bin68.fits evtable="EVENTS" outfile="/scratch/kocevski/733324/ft1_filtered_4FGL_J2317.7+2839_daily_bin68.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.56
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/733324/ft1_filtered_4FGL_J2317.7+2839_daily_bin68.fits" evtable="EVENTS" scfile=/scratch/kocevski/733324/ft2_4FGL_J2317.7+2839_daily_bin68.fits sctable="SC_DATA" outfile=/scratch/kocevski/733324/ltcube_256953601_257212801_4FGL_J2317.7+2839_daily_bin68.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/733324/ft2_4FGL_J2317.7+2839_daily_bin68.fits
.....................!
real 12.50
user 12.12
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/733324/ft1_filtered_4FGL_J2317.7+2839_daily_bin68.fits evtable="EVENTS" scfile=/scratch/kocevski/733324/ft2_4FGL_J2317.7+2839_daily_bin68.fits sctable="SC_DATA" expcube=/scratch/kocevski/733324/ltcube_256953601_257212801_4FGL_J2317.7+2839_daily_bin68.fits outfile=/scratch/kocevski/733324/expmap_256953601_257212801_4FGL_J2317.7+2839_daily_bin68.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/733324/ltcube_256953601_257212801_4FGL_J2317.7+2839_daily_bin68.fits
.....................!
real 190.87
user 184.79
sys 5.71

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/733324/ft1_filtered_4FGL_J2317.7+2839_daily_bin68.fits scfile=/scratch/kocevski/733324/ft2_4FGL_J2317.7+2839_daily_bin68.fits outfile=/scratch/kocevski/733324/cmap_256953601_257212801_4FGL_J2317.7+2839_daily_bin68.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.55
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/733324/ft1_filtered_4FGL_J2317.7+2839_daily_bin68.fits scfile=/scratch/kocevski/733324/ft2_4FGL_J2317.7+2839_daily_bin68.fits outfile=/scratch/kocevski/733324/cmap_HighResolution_256953601_257212801_4FGL_J2317.7+2839_daily_bin68.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/733324/ft1_filtered_4FGL_J2317.7+2839_daily_bin68.fits evtable="EVENTS" scfile=/scratch/kocevski/733324/ft2_4FGL_J2317.7+2839_daily_bin68.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/733324/Model_4FGL_J2317.7+2839_daily_bin68.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/733324/ft1_filtered_4FGL_J2317.7+2839_daily_bin68.fits.....................!
real 80.77
user 79.34
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/733324/ft1_filtered_4FGL_J2317.7+2839_daily_bin68.fits', '/scratch/kocevski/733324/ft2_4FGL_J2317.7+2839_daily_bin68.fits', expMap='/scratch/kocevski/733324/expmap_256953601_257212801_4FGL_J2317.7+2839_daily_bin68.fits', expCube='/scratch/kocevski/733324/ltcube_256953601_257212801_4FGL_J2317.7+2839_daily_bin68.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/733324/Model_4FGL_J2317.7+2839_daily_bin68.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/733324/ft1_filtered_4FGL_J2317.7+2839_daily_bin68.fits
Spacecraft file(s): /scratch/kocevski/733324/ft2_4FGL_J2317.7+2839_daily_bin68.fits
Exposure map: /scratch/kocevski/733324/expmap_256953601_257212801_4FGL_J2317.7+2839_daily_bin68.fits
Exposure cube: /scratch/kocevski/733324/ltcube_256953601_257212801_4FGL_J2317.7+2839_daily_bin68.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/733324/Model_4FGL_J2317.7+2839_daily_bin68.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) = 7624.94439013

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1283       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12473       1.0000         .10000E-03   10000.    
     3 'norm      '    2.6341       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10315E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10208E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .54024       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .59958       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .42263       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .65481       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.1525       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.4265       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .44904       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2086       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=   7624.826     FROM MIGRAD    STATUS=CONVERGED    468 CALLS     1861 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1298        1.4165        .18356E-06   -.11488E-03
   2  Prefactor     .10375E-03    16.777        .26336E-06** at limit **
   3  norm          2.6335        1.6135        .41251E-07    .16566E-03
   4  Prefactor     .10000E-03    8.6487        .29355E-06** at limit **
   5  Prefactor     .10000E-03    16.328        .14208E-05** at limit **
   6  Prefactor     .10000E-03    6.0570        .11595E-06** at limit **
   7  Prefactor     .10000E-03    29.922        .56595E-05** at limit **
   8  norm          .54048        1.0723       -.29517E-07   -.13280E-02
   9  Prefactor     .59643        8.4780       -.33866E-07   -.90942E-04
  10  Prefactor     .33976        6.1729       -.10894E-05    .45285E-03
  11  Prefactor     .10000E-03    14.928       -.77411E-06** at limit **
  12  Prefactor     .10000E-03    4.4397        .20614E-06** at limit **
  13  norm          .65435        2.0193       -.86862E-06   -.13328E-02
  14  Prefactor     .10000E-03    3.9384       -.62605E-07** at limit **
  15  norm          4.1542        3.0263        .76217E-07   -.68384E-04
  16  Prefactor     .10000E-03    24.282       -.26137E-05** at limit **
  17  Prefactor     .10000E-03    9.7326       -.18991E-06** at limit **
  18  Prefactor     2.4014        51.863        .87583E-04   -.34747E-04
  19  Normalizat    .44897        .19870       -.88495E-05   -.17783E-03
  20  Prefactor     1.2087        .10908        .10145E-05   -.18008E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.12984
  Prefactor  = 0.000103751
  norm       = 2.63354
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.54048
  Prefactor  = 0.596427
  Prefactor  = 0.339758
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.654353
  Prefactor  = 0.0001
  norm       = 4.15424
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.40144
  Normalizat = 0.448968
  Prefactor  = 1.20867
 **********
 **   18 **HESSE 
 **********

 FCN=   7624.826     FROM HESSE     STATUS=OK           305 CALLS     2166 TOTAL
                     EDM=   .46E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1298        1.4170        .64171E-04   -1.5354    
   2  Prefactor     .10375E-03    20.709        .10223       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.6335        1.6148        .84691E-04   -1.5383    
   4  Prefactor     .10000E-03    8.7520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    16.447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.0965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    30.097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .54048        1.0396        .12134E-03   -1.5561    
   9  Prefactor     .59643        54.055        .48787E-02   -1.5554    
  10  Prefactor     .33976        86.778        .41136E-02   -1.5591    
  11  Prefactor     .10000E-03    15.000        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.5302        .17958E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .65435        2.0043        .21212E-03   -1.5546    
  14  Prefactor     .10000E-03    3.9493        .16921E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.1542        3.0380        .12451E-03   -1.5300    
  16  Prefactor     .10000E-03    24.608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.8497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.4014        50.693        .26273E-03   -1.5398    
  19  Normalizat    .44897        .20504        .44647E-03   -1.1484    
  20  Prefactor     1.2087        .11530        .15710E-03   -.86065    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.62407e-08
Minuit parameter uncertainties:
  1  1.41703
  2  0.0176335
  3  1.61487
  4  3.5185e-05
  5  1.17099e-05
  6  2.07977e-05
  7  6.78817e-05
  8  1.03968
  9  11.3657
  10  10.8741
  11  3.59209e-05
  12  3.95462e-05
  13  2.00454
  14  3.42852e-06
  15  3.03812
  16  0.000191983
  17  2.53635e-05
  18  22.0878
  19  0.20538
  20  0.115327
Done.

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

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  1.000e-04  3.592e-05  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:  1.209e+00  1.153e-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:  4.490e-01  2.054e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/733324/likelihoodResults_256953601_257212801_4FGL_J2317.7+2839_daily_bin68.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) = 7624.82618198
delta logL = -0.000317701937092

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7624.82586487
delta logL = -5.90926902078e-07

Fit tolerance = 1e-08

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

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

 FCN=   7624.826     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      241 TOTAL
                     EDM=   .87E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.2125        .90712E-02** at limit **
   2  Index         2.1197        8.1745        .50000        .18651E-04
   3  Normalizat    .44897        .14534E-02    .10073        .56247E-04
   4  Prefactor     1.2087        .81418E-03    .34429E-01   -.33015E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.11975
  Normalizat = 0.448971
  Prefactor  = 1.20866
 **********
 **   18 **HESSE 
 **********

 FCN=   7624.826     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      274 TOTAL
                     EDM=   .21E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    28.790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1197        8.0648        .50000       -.61389    
   3  Normalizat    .44897        .70498E-02    .44648E-03   -1.1484    
   4  Prefactor     1.2087        .39623E-02    .15710E-03   -.86065    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.05193e-07
Minuit parameter uncertainties:
  1  0.000235723
  2  97.3191
  3  0.00704979
  4  0.00396233
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/733324': 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) = 7624.82586472
delta logL = -4.34142748418e-07

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  1.000e-04  2.357e-04  1.000e-04  1.000e+04 ( 1.000e-14)
413        Index:  2.120e+00  9.732e+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:  1.209e+00  3.962e-03  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:  4.490e-01  7.050e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 349.438 28.659

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/733324/cmap_HighResolution_256953601_257212801_4FGL_J2317.7+2839_daily_bin68.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.26e-03', job_status='DONE', photon_flux_upper_limit='5.67e-08', time_completed='2021-09-29 10:50:08.561358', job_id='733324', GAL2='1.21', fit_tolerance='1e-08', EG2='0.45', EG='0.45', time_epoch_completed='1632937808.56', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.21', dlogl='-4.34e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='68' AND source_name='4FGL J2317.7+2839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 10:50:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0286>
Subject: Job 733324: <4FGL_J2317.7+2839_daily_bin68> in cluster <slac> Done

Job <4FGL_J2317.7+2839_daily_bin68> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Wed Sep 29 10:36:00 2021
Job was executed on host(s) <bullet0286>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 10:36:02 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:36:02 2021
Terminated at Wed Sep 29 10:50:09 2021
Results reported at Wed Sep 29 10:50:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2317.7+2839_daily_bin68 349.438 28.6589 256953601 257212801 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 :                                   648.29 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             300.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   846 sec.
    Turnaround time :                            849 sec.

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

