/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 1 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7472
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2317.7+2839_daily_bin567
RA = 349.438, Dec = 28.6589
tmin = 386294401, tmax = 386553601
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='736779', job_status='RUN', time_executed='2021-09-29 10:45:49.871210', time_epoch_executed='1632937549.87' WHERE source_name='4FGL J2317.7+2839' and cadence='daily' and bin_id='567'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/736779

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/736779/ft1_4FGL_J2317.7+2839_daily_bin567.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/736779/ft2_4FGL_J2317.7+2839_daily_bin567.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/736779/ft1_4FGL_J2317.7+2839_daily_bin567.fits outfile=/scratch/kocevski/736779/ft1_filteredMKT_4FGL_J2317.7+2839_daily_bin567.fits ra=349.438 dec=28.6589 rad=12.0 tmin=386294401.0 tmax=386553601.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 3.95
user 3.71
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/736779/ft1_filtered_4FGL_J2317.7+2839_daily_bin567.fits" evtable="EVENTS" scfile=/scratch/kocevski/736779/ft2_4FGL_J2317.7+2839_daily_bin567.fits sctable="SC_DATA" outfile=/scratch/kocevski/736779/ltcube_386294401_386553601_4FGL_J2317.7+2839_daily_bin567.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/736779/ft2_4FGL_J2317.7+2839_daily_bin567.fits
.....................!
real 11.64
user 11.28
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/736779/ft1_filtered_4FGL_J2317.7+2839_daily_bin567.fits evtable="EVENTS" scfile=/scratch/kocevski/736779/ft2_4FGL_J2317.7+2839_daily_bin567.fits sctable="SC_DATA" expcube=/scratch/kocevski/736779/ltcube_386294401_386553601_4FGL_J2317.7+2839_daily_bin567.fits outfile=/scratch/kocevski/736779/expmap_386294401_386553601_4FGL_J2317.7+2839_daily_bin567.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/736779/ltcube_386294401_386553601_4FGL_J2317.7+2839_daily_bin567.fits
.....................!
real 193.64
user 188.08
sys 5.22

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/736779/ft1_filtered_4FGL_J2317.7+2839_daily_bin567.fits scfile=/scratch/kocevski/736779/ft2_4FGL_J2317.7+2839_daily_bin567.fits outfile=/scratch/kocevski/736779/cmap_386294401_386553601_4FGL_J2317.7+2839_daily_bin567.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.54
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/736779/ft1_filtered_4FGL_J2317.7+2839_daily_bin567.fits scfile=/scratch/kocevski/736779/ft2_4FGL_J2317.7+2839_daily_bin567.fits outfile=/scratch/kocevski/736779/cmap_HighResolution_386294401_386553601_4FGL_J2317.7+2839_daily_bin567.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.40
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/736779/ft1_filtered_4FGL_J2317.7+2839_daily_bin567.fits evtable="EVENTS" scfile=/scratch/kocevski/736779/ft2_4FGL_J2317.7+2839_daily_bin567.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/736779/Model_4FGL_J2317.7+2839_daily_bin567.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/736779/ft1_filtered_4FGL_J2317.7+2839_daily_bin567.fits.....................!
real 85.79
user 83.81
sys 1.36

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.4103       1.0000         .10000E-03   10000.    
     2 'Prefactor '    20.339       1.0000         .10000E-03   10000.    
     3 'norm      '    .10697E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.7728       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.0317       1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.594       1.0000         .10000E-03   10000.    
     8 'norm      '    2.0537       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .18182E-01   1.0000         .10000E-03   10000.    
    13 'norm      '    10.564       1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.017       1.0000         .10000E-03   10000.    
    15 'norm      '    2.6208       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.2805       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    53.166       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .50902       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1224       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=   8014.120     FROM MIGRAD    STATUS=CONVERGED    429 CALLS     2080 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.4100        1.5131        .48544E-07   -.16611E-03
   2  Prefactor     20.337        19.315        .14755E-06   -.30686E-04
   3  norm          .10000E-03    1.0773       -.78875E-06** at limit **
   4  Prefactor     1.7726        8.3556        .95668E-05   -.22843E-03
   5  Prefactor     .10000E-03    7.5600        .35120E-07** at limit **
   6  Prefactor     6.0308        7.5730        .69198E-06   -.12964E-03
   7  Prefactor     13.594        20.313        .17348E-06   -.88814E-04
   8  norm          2.0537        1.2837        .73449E-07   -.11746E-03
   9  Prefactor     .10000E-03    5.4406       -.91119E-08** at limit **
  10  Prefactor     .10000E-03    16.034       -.48838E-06** at limit **
  11  Prefactor     .10000E-03    9.1376        .19848E-06** at limit **
  12  Prefactor     .10000E-03    4.1759        .61081E-06** at limit **
  13  norm          10.564        5.9812        .33018E-07   -.85597E-04
  14  Prefactor     15.012        17.325        .59541E-06    .11615E-03
  15  norm          2.6214        2.3247        .27035E-06   -.14163E-03
  16  Prefactor     9.2798        19.438       -.21754E-05   -.11664E-03
  17  Prefactor     .10000E-03    8.4438       -.34010E-06** at limit **
  18  Prefactor     53.161        37.374        .19104E-06   -.23995E-03
  19  Normalizat    .50904        .21974       -.13548E-05   -.52317E-03
  20  Prefactor     1.1225        .11290       -.75707E-06   -.13756E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 4.40997
  Prefactor  = 20.3374
  norm       = 0.0001
  Prefactor  = 1.77263
  Prefactor  = 0.0001
  Prefactor  = 6.03083
  Prefactor  = 13.5939
  norm       = 2.05366
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.564
  Prefactor  = 15.0119
  norm       = 2.62141
  Prefactor  = 9.27979
  Prefactor  = 0.0001
  Prefactor  = 53.1609
  Normalizat = 0.509039
  Prefactor  = 1.12247
 **********
 **   18 **HESSE 
 **********

 FCN=   8014.120     FROM HESSE     STATUS=OK           305 CALLS     2385 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.4100        1.5123        .59465E-04   -1.5288    
   2  Prefactor     20.337        19.333        .88812E-04   -1.4806    
   3  norm          .10000E-03    3.2253        .17838E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.7726        8.4826        .15723E-02   -1.5442    
   5  Prefactor     .10000E-03    7.5726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.0308        7.5607        .81743E-03   -1.5217    
   7  Prefactor     13.594        20.336        .10864E-03   -1.4970    
   8  norm          2.0537        1.2756        .76444E-04   -1.5421    
   9  Prefactor     .10000E-03    5.4485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    16.401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    9.1534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.0701        .52955E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          10.564        5.9730        .12327E-03   -1.5058    
  14  Prefactor     15.012        17.293        .10336E-03   -1.4933    
  15  norm          2.6214        2.3255        .62317E-03   -1.5384    
  16  Prefactor     9.2798        19.955        .13156E-03   -1.5099    
  17  Prefactor     .10000E-03    8.4885        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     53.161        37.367        .55007E-04   -1.4248    
  19  Normalizat    .50904        .23207        .44536E-03   -1.1200    
  20  Prefactor     1.1225        .12138        .16530E-03   -.88751    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26031e-09
Minuit parameter uncertainties:
  1  1.51232
  2  19.3386
  3  7.08714e-05
  4  7.75694
  5  2.26588e-05
  6  7.56187
  7  20.3459
  8  1.27565
  9  4.9437e-07
  10  0.000144599
  11  8.0463e-05
  12  7.36066e-05
  13  5.97335
  14  17.2985
  15  2.32562
  16  19.9696
  17  0.000112799
  18  37.3837
  19  0.232507
  20  0.121408
Done.

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

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  1.000e-04  8.046e-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.122e+00  1.214e-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:  5.090e-01  2.325e-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.14e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/736779/likelihoodResults_386294401_386553601_4FGL_J2317.7+2839_daily_bin567.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) = 8014.12101604
delta logL = -0.000519517102475

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8014.12050015
delta logL = -3.62373793905e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10985E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9771       1.0000          .0000       10.000    
     3 'Normalizat'    .50894       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1224       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=   8014.120     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      245 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10291E-03    .57811        .18142E-01** at limit **
   2  Index         1.8882        5.6953        .50000        .18456E-04
   3  Normalizat    .50904        .11731E-02    .44536E-03    .57691E-05
   4  Prefactor     1.1225        .63358E-03    .16530E-03    .17951E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102911
  Index      = 1.88815
  Normalizat = 0.509041
  Prefactor  = 1.12247
 **********
 **   18 **HESSE 
 **********

 FCN=   8014.120     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      274 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10291E-03    26.911        .27980E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8882        5.1216        .50000       -.67177    
   3  Normalizat    .50904        .80136E-02    .17814E-04   -1.1200    
   4  Prefactor     1.1225        .43280E-02    .66120E-05   -.88751    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.13388e-08
Minuit parameter uncertainties:
  1  0.0177111
  2  203.507
  3  0.00801366
  4  0.00432797
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/736779': 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) = 8014.12049607
delta logL = 4.56127963844e-07

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  1.029e-04  1.771e-02  1.000e-04  1.000e+04 ( 1.000e-14)
413        Index:  1.888e+00  2.035e+02  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.122e+00  4.328e-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:  5.090e-01  8.014e-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/736779/cmap_HighResolution_386294401_386553601_4FGL_J2317.7+2839_daily_bin567.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.86e-03', job_status='DONE', photon_flux_upper_limit='5.14e-08', time_completed='2021-09-29 10:57:27.228994', job_id='736779', GAL2='1.12', fit_tolerance='1e-08', EG2='0.51', EG='0.51', time_epoch_completed='1632938247.23', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='4.56e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='567' AND source_name='4FGL J2317.7+2839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 10:57:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0195>
Subject: Job 736779: <4FGL_J2317.7+2839_daily_bin567> in cluster <slac> Done

Job <4FGL_J2317.7+2839_daily_bin567> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep 29 10:45:32 2021
Job was executed on host(s) <bullet0195>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 10:45:34 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:45:34 2021
Terminated at Wed Sep 29 10:57:28 2021
Results reported at Wed Sep 29 10:57:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2317.7+2839_daily_bin567 349.438 28.6589 386294401 386553601 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 :                                   690.26 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             361.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   713 sec.
    Turnaround time :                            716 sec.

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

