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


Performing analysis on: 4FGL_J2317.7+2839_daily_bin1442
RA = 349.438, Dec = 28.6589
tmin = 613094401, tmax = 613353601
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='742007', job_status='RUN', time_executed='2021-09-29 11:00:42.553417', time_epoch_executed='1632938442.55' WHERE source_name='4FGL J2317.7+2839' and cadence='daily' and bin_id='1442'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/742007

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/742007/ft1_4FGL_J2317.7+2839_daily_bin1442.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/742007/ft2_4FGL_J2317.7+2839_daily_bin1442.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/742007/ft1_4FGL_J2317.7+2839_daily_bin1442.fits outfile=/scratch/kocevski/742007/ft1_filteredMKT_4FGL_J2317.7+2839_daily_bin1442.fits ra=349.438 dec=28.6589 rad=12.0 tmin=613094401.0 tmax=613353601.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.98
user 2.77
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/742007/ft1_filtered_4FGL_J2317.7+2839_daily_bin1442.fits" evtable="EVENTS" scfile=/scratch/kocevski/742007/ft2_4FGL_J2317.7+2839_daily_bin1442.fits sctable="SC_DATA" outfile=/scratch/kocevski/742007/ltcube_613094401_613353601_4FGL_J2317.7+2839_daily_bin1442.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/742007/ft2_4FGL_J2317.7+2839_daily_bin1442.fits
.....................!
real 12.30
user 11.94
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/742007/ft1_filtered_4FGL_J2317.7+2839_daily_bin1442.fits evtable="EVENTS" scfile=/scratch/kocevski/742007/ft2_4FGL_J2317.7+2839_daily_bin1442.fits sctable="SC_DATA" expcube=/scratch/kocevski/742007/ltcube_613094401_613353601_4FGL_J2317.7+2839_daily_bin1442.fits outfile=/scratch/kocevski/742007/expmap_613094401_613353601_4FGL_J2317.7+2839_daily_bin1442.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/742007/ltcube_613094401_613353601_4FGL_J2317.7+2839_daily_bin1442.fits
.....................!
real 192.18
user 186.05
sys 5.56

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/742007/ft1_filtered_4FGL_J2317.7+2839_daily_bin1442.fits scfile=/scratch/kocevski/742007/ft2_4FGL_J2317.7+2839_daily_bin1442.fits outfile=/scratch/kocevski/742007/cmap_613094401_613353601_4FGL_J2317.7+2839_daily_bin1442.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/742007/ft1_filtered_4FGL_J2317.7+2839_daily_bin1442.fits scfile=/scratch/kocevski/742007/ft2_4FGL_J2317.7+2839_daily_bin1442.fits outfile=/scratch/kocevski/742007/cmap_HighResolution_613094401_613353601_4FGL_J2317.7+2839_daily_bin1442.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.57
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/742007/ft1_filtered_4FGL_J2317.7+2839_daily_bin1442.fits evtable="EVENTS" scfile=/scratch/kocevski/742007/ft2_4FGL_J2317.7+2839_daily_bin1442.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/742007/Model_4FGL_J2317.7+2839_daily_bin1442.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/742007/ft1_filtered_4FGL_J2317.7+2839_daily_bin1442.fits.....................!
real 131.36
user 129.78
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .40854       1.0000         .10000E-03   10000.    
     2 'Prefactor '    21.169       1.0000         .10000E-03   10000.    
     3 'norm      '    1.1396       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.530       1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.344       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .41826E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .77327       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.364       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11571E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10197E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .45737E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.1757       1.0000         .10000E-03   10000.    
    15 'norm      '    .31594       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0214       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .92923       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=   12518.38     FROM MIGRAD    STATUS=CONVERGED    742 CALLS     2406 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .40980        .56170        .10635E-02    .36401E-02
   2  Prefactor     21.156        15.964        .87054E-04   -.25335E-03
   3  norm          1.1396        .94465        .96077E-04    .99396E-05
   4  Prefactor     10.533        8.9385        .12347E-03   -.57271E-04
   5  Prefactor     12.342        13.766        .11401E-03   -.65810E-05
   6  Prefactor     .10001E-03    46.087        .44131E-02** at limit **
   7  Prefactor     .10000E-03    5.1995        .18142E-02** at limit **
   8  norm          .77318        .69656        .87498E-04    .15566E-03
   9  Prefactor     13.356        19.779        .10957E-03    .83838E-04
  10  Prefactor     .10000E-03    13.651        .36285E-03** at limit **
  11  Prefactor     .10000E-03    9.5956        .18142E-02** at limit **
  12  Prefactor     .10049E-03    4.5642        .54592E-01** at limit **
  13  norm          .10000E-03    1.0129        .10966E-02** at limit **
  14  Prefactor     7.1770        10.155        .14974E-03   -.32646E-04
  15  norm          .31530        1.1953        .23512E-03    .44619E-03
  16  Prefactor     .10000E-03    5.6352        .18142E-02** at limit **
  17  Prefactor     .10000E-03    3.6930        .18142E-02** at limit **
  18  Prefactor     .10001E-03    31.016        .18142E-02** at limit **
  19  Normalizat    1.0212        .18248        .32088E-03   -.18990E-04
  20  Prefactor     .92930        .92325E-01    .17351E-03   -.11558E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.409799
  Prefactor  = 21.1563
  norm       = 1.1396
  Prefactor  = 10.5326
  Prefactor  = 12.342
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  norm       = 0.77318
  Prefactor  = 13.3556
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100489
  norm       = 0.0001
  Prefactor  = 7.17697
  norm       = 0.315303
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Normalizat = 1.02123
  Prefactor  = 0.929304
 **********
 **   18 **HESSE 
 **********

 FCN=   12518.38     FROM HESSE     STATUS=OK           283 CALLS     2689 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .40980        .56066        .42539E-04   -1.5580    
   2  Prefactor     21.156        15.948        .34822E-05   -1.4788    
   3  norm          1.1396        .94463        .38431E-05   -1.5494    
   4  Prefactor     10.533        8.9368        .49389E-05   -1.5059    
   5  Prefactor     12.342        13.765        .45606E-05   -1.5005    
   6  Prefactor     .10001E-03    47.746        .17652E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.1997        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .77318        .69653        .34999E-05   -1.5532    
   9  Prefactor     13.356        19.776        .43827E-05   -1.4977    
  10  Prefactor     .10000E-03    13.652        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    9.5977        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10049E-03    4.0400        .58931E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.0129        .21931E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.1770        10.153        .59897E-05   -1.5172    
  15  norm          .31530        1.1952        .94049E-05   -1.5596    
  16  Prefactor     .10000E-03    5.6355        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.6934        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    31.031        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0212        .18257        .12835E-04   -.92323    
  20  Prefactor     .92930        .92388E-01    .34702E-04   -.95125    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.88774e-09
Minuit parameter uncertainties:
  1  0.56067
  2  15.9508
  3  0.944639
  4  8.93794
  5  13.7683
  6  0.00145025
  7  2.25395e-06
  8  0.696537
  9  19.7859
  10  4.24137e-05
  11  3.11476e-05
  12  0.00281018
  13  2.19124e-06
  14  10.1556
  15  1.19526
  16  3.09829e-06
  17  2.01707e-06
  18  0.00088816
  19  0.182683
  20  0.0924038
Done.

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

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  1.000e-04  3.115e-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:  9.293e-01  9.240e-02  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.021e+00  1.827e-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: 3.96e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/742007/likelihoodResults_613094401_613353601_4FGL_J2317.7+2839_daily_bin1442.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) = 12518.376052
delta logL = -0.000496749455124

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 12518.3755552
delta logL = -8.2090991782e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9968       1.0000          .0000       10.000    
     3 'Normalizat'    1.0212       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92931       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=   12518.38     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      209 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.8662        .90712E-02** at limit **
   2  Index         1.9910        5.8775        .50000        .47448E-05
   3  Normalizat    1.0212        .17465E-02    .72519E-01    .46597E-04
   4  Prefactor     .92930        .90995E-03    .45377E-01    .29139E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.99095
  Normalizat = 1.02123
  Prefactor  = 0.929304
 **********
 **   18 **HESSE 
 **********

 FCN=   12518.38     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      242 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    35.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9910        5.7763        .50000       -.64577    
   3  Normalizat    1.0212        .76130E-02    .32088E-03   -.92323    
   4  Prefactor     .92930        .39716E-02    .17351E-03   -.95125    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.46301e-08
Minuit parameter uncertainties:
  1  1.31666e-05
  2  102.369
  3  0.00761304
  4  0.00397164
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/742007': 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) = 12518.3755552
delta logL = 1.4559191186e-08

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  1.000e-04  1.317e-05  1.000e-04  1.000e+04 ( 1.000e-14)
413        Index:  1.991e+00  1.024e+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:  9.293e-01  3.972e-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:  1.021e+00  7.613e-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/742007/cmap_HighResolution_613094401_613353601_4FGL_J2317.7+2839_daily_bin1442.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.97e-03', job_status='DONE', photon_flux_upper_limit='3.96e-08', time_completed='2021-09-29 11:16:34.850883', job_id='742007', GAL2='0.93', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1632939394.85', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='1.46e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1442' AND source_name='4FGL J2317.7+2839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:16:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0256>
Subject: Job 742007: <4FGL_J2317.7+2839_daily_bin1442> in cluster <slac> Done

Job <4FGL_J2317.7+2839_daily_bin1442> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep 29 11:00:30 2021
Job was executed on host(s) <bullet0256>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 11:00:32 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 11:00:32 2021
Terminated at Wed Sep 29 11:16:35 2021
Results reported at Wed Sep 29 11:16:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2317.7+2839_daily_bin1442 349.438 28.6589 613094401 613353601 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 :                                   947.28 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             335.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   963 sec.
    Turnaround time :                            965 sec.

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

