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


Performing analysis on: 4FGL_J2317.7+2839_daily_bin31
RA = 349.438, Dec = 28.6589
tmin = 247363201, tmax = 247622401
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='733269', job_status='RUN', time_executed='2021-09-29 10:36:09.616929', time_epoch_executed='1632936969.62' WHERE source_name='4FGL J2317.7+2839' and cadence='daily' and bin_id='31'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/733269

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/733269/ft1_4FGL_J2317.7+2839_daily_bin31.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/733269/ft2_4FGL_J2317.7+2839_daily_bin31.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/733269/ft1_4FGL_J2317.7+2839_daily_bin31.fits outfile=/scratch/kocevski/733269/ft1_filteredMKT_4FGL_J2317.7+2839_daily_bin31.fits ra=349.438 dec=28.6589 rad=12.0 tmin=247363201.0 tmax=247622401.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.26
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/733269/ft1_filtered_4FGL_J2317.7+2839_daily_bin31.fits" evtable="EVENTS" scfile=/scratch/kocevski/733269/ft2_4FGL_J2317.7+2839_daily_bin31.fits sctable="SC_DATA" outfile=/scratch/kocevski/733269/ltcube_247363201_247622401_4FGL_J2317.7+2839_daily_bin31.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/733269/ft2_4FGL_J2317.7+2839_daily_bin31.fits
.....................!
real 13.67
user 13.27
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/733269/ft1_filtered_4FGL_J2317.7+2839_daily_bin31.fits evtable="EVENTS" scfile=/scratch/kocevski/733269/ft2_4FGL_J2317.7+2839_daily_bin31.fits sctable="SC_DATA" expcube=/scratch/kocevski/733269/ltcube_247363201_247622401_4FGL_J2317.7+2839_daily_bin31.fits outfile=/scratch/kocevski/733269/expmap_247363201_247622401_4FGL_J2317.7+2839_daily_bin31.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/733269/ltcube_247363201_247622401_4FGL_J2317.7+2839_daily_bin31.fits
.....................!
real 190.85
user 185.67
sys 4.82

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/733269/ft1_filtered_4FGL_J2317.7+2839_daily_bin31.fits scfile=/scratch/kocevski/733269/ft2_4FGL_J2317.7+2839_daily_bin31.fits outfile=/scratch/kocevski/733269/cmap_247363201_247622401_4FGL_J2317.7+2839_daily_bin31.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.52
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/733269/ft1_filtered_4FGL_J2317.7+2839_daily_bin31.fits scfile=/scratch/kocevski/733269/ft2_4FGL_J2317.7+2839_daily_bin31.fits outfile=/scratch/kocevski/733269/cmap_HighResolution_247363201_247622401_4FGL_J2317.7+2839_daily_bin31.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.53
user 0.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/733269/ft1_filtered_4FGL_J2317.7+2839_daily_bin31.fits evtable="EVENTS" scfile=/scratch/kocevski/733269/ft2_4FGL_J2317.7+2839_daily_bin31.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/733269/Model_4FGL_J2317.7+2839_daily_bin31.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/733269/ft1_filtered_4FGL_J2317.7+2839_daily_bin31.fits.....................!
real 86.44
user 85.05
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8379       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.0791       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.8002       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.6318       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.581       1.0000         .10000E-03   10000.    
    10 'Prefactor '    28.100       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.9212       1.0000         .10000E-03   10000.    
    13 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.9183       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.571       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .77438       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1815       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=   7741.505     FROM MIGRAD    STATUS=CONVERGED    422 CALLS     2055 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8379        1.1361        .49057E-08   -.86129E-04
   2  Prefactor     .10000E-03    38.252        .15638E-06** at limit **
   3  norm          2.0793        1.7450        .20445E-07   -.48358E-04
   4  Prefactor     9.8003        12.012       -.35538E-06   -.26781E-04
   5  Prefactor     .10000E-03    18.233       -.13464E-05** at limit **
   6  Prefactor     6.6310        12.951        .37198E-05   -.24169E-03
   7  Prefactor     .10000E-03    9.0066        .47476E-07** at limit **
   8  norm          .10000E-03    .70403        .63559E-07** at limit **
   9  Prefactor     16.557        24.886       -.28728E-05   -.20911E-03
  10  Prefactor     28.099        16.714       -.62447E-07   -.22853E-04
  11  Prefactor     .10000E-03    17.489        .12222E-05** at limit **
  12  Prefactor     5.9213        6.3448        .85754E-07   -.38750E-04
  13  norm          .10000E-03    2.2607        .24202E-07** at limit **
  14  Prefactor     .10000E-03    6.0771        .61825E-08** at limit **
  15  norm          4.9188        3.5932        .63001E-07   -.43285E-04
  16  Prefactor     .10000E-03    10.071       -.27538E-07** at limit **
  17  Prefactor     .10000E-03    53.880        .67718E-06** at limit **
  18  Prefactor     12.558        27.884       -.19228E-05   -.97434E-04
  19  Normalizat    .77461        .22480        .88883E-06   -.45601E-04
  20  Prefactor     1.1814        .11665       -.39759E-06    .10368E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.83795
  Prefactor  = 0.0001
  norm       = 2.0793
  Prefactor  = 9.80033
  Prefactor  = 0.0001
  Prefactor  = 6.63099
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 16.5569
  Prefactor  = 28.099
  Prefactor  = 0.000100001
  Prefactor  = 5.9213
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.91879
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.5582
  Normalizat = 0.77461
  Prefactor  = 1.18136
 **********
 **   18 **HESSE 
 **********

 FCN=   7741.505     FROM HESSE     STATUS=OK           295 CALLS     2350 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8379        1.1297        .71006E-04   -1.5437    
   2  Prefactor     .10000E-03    39.702        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.0793        1.7345        .10258E-03   -1.5420    
   4  Prefactor     9.8003        11.994        .12800E-03   -1.5082    
   5  Prefactor     .10000E-03    18.550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.6310        13.484        .77912E-03   -1.5193    
   7  Prefactor     .10000E-03    9.0108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.7712        .14288E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     16.557        25.935        .98360E-04   -1.4894    
  10  Prefactor     28.099        16.705        .75577E-04   -1.4647    
  11  Prefactor     .10000E-03    17.805        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.9213        6.3441        .16503E-03   -1.5221    
  13  norm          .10000E-03    2.3128        .12917E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.1001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.9188        3.5909        .13601E-03   -1.5264    
  16  Prefactor     .10000E-03    10.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    55.188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     12.558        28.461        .11298E-03   -1.4999    
  19  Normalizat    .77461        .24939        .39430E-03   -1.0102    
  20  Prefactor     1.1814        .13028        .17505E-03   -.86907    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.46658e-10
Minuit parameter uncertainties:
  1  1.12969
  2  1.21475e-05
  3  1.73459
  4  11.9968
  5  0.000183092
  6  13.4907
  7  2.73076e-06
  8  1.12771e-05
  9  25.953
  10  16.7079
  11  0.000191272
  12  6.34485
  13  5.64586e-07
  14  2.9732e-06
  15  3.59105
  16  9.93178e-06
  17  0.000118389
  18  28.4915
  19  0.24976
  20  0.130318
Done.

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

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  1.000e-04  1.913e-04  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.181e+00  1.303e-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:  7.746e-01  2.498e-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: 6.96e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.22e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/733269/likelihoodResults_247363201_247622401_4FGL_J2317.7+2839_daily_bin31.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) = 7741.50556282
delta logL = -0.000267654289019

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7741.5052983
delta logL = -3.13829696097e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15651E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1663       1.0000          .0000       10.000    
     3 'Normalizat'    .77461       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1814       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=   7741.505     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      275 TOTAL
                     EDM=   .57E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10328E-03    .53549        .18142E-01** at limit **
   2  Index         2.0803        8.7249        .50000        .25190E-04
   3  Normalizat    .77461        .10171E-02    .39430E-03    .30101E-04
   4  Prefactor     1.1814        .55027E-03    .17505E-03    .38513E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010328
  Index      = 2.08027
  Normalizat = 0.774611
  Prefactor  = 1.18136
 **********
 **   18 **HESSE 
 **********

 FCN=   7741.505     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      304 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10328E-03    16.773        .33572E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0803        5.7416        .50000       -.62358    
   3  Normalizat    .77461        .56575E-02    .15772E-04   -1.0102    
   4  Prefactor     1.1814        .30607E-02    .70019E-05   -.86907    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.55092e-09
Minuit parameter uncertainties:
  1  0.0148377
  2  82.3583
  3  0.00565747
  4  0.0030607
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/733269': 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) = 7741.50529569
delta logL = -5.24596543983e-07

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  1.033e-04  1.484e-02  1.000e-04  1.000e+04 ( 1.000e-14)
413        Index:  2.080e+00  8.236e+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.181e+00  3.061e-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:  7.746e-01  5.657e-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/733269/cmap_HighResolution_247363201_247622401_4FGL_J2317.7+2839_daily_bin31.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.22e-03', job_status='DONE', photon_flux_upper_limit='6.96e-08', time_completed='2021-09-29 10:47:27.789448', job_id='733269', GAL2='1.18', fit_tolerance='1e-08', EG2='0.77', EG='0.77', time_epoch_completed='1632937647.79', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.18', dlogl='-5.25e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='31' AND source_name='4FGL J2317.7+2839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 10:47:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 733269: <4FGL_J2317.7+2839_daily_bin31> in cluster <slac> Done

Job <4FGL_J2317.7+2839_daily_bin31> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Wed Sep 29 10:35:56 2021
Job was executed on host(s) <bullet0057>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 10:35:58 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:35:58 2021
Terminated at Wed Sep 29 10:47:28 2021
Results reported at Wed Sep 29 10:47:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2317.7+2839_daily_bin31 349.438 28.6589 247363201 247622401 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 :                                   676.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             314.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   690 sec.
    Turnaround time :                            692 sec.

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

