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


Performing analysis on: 4FGL_J2317.7+2839_daily_bin1036
RA = 349.438, Dec = 28.6589
tmin = 507859201, tmax = 508118401
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='740345', job_status='RUN', time_executed='2021-09-29 10:59:06.938256', time_epoch_executed='1632938346.94' WHERE source_name='4FGL J2317.7+2839' and cadence='daily' and bin_id='1036'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/740345

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/740345/ft1_4FGL_J2317.7+2839_daily_bin1036.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/740345/ft2_4FGL_J2317.7+2839_daily_bin1036.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/740345/ft1_4FGL_J2317.7+2839_daily_bin1036.fits outfile=/scratch/kocevski/740345/ft1_filteredMKT_4FGL_J2317.7+2839_daily_bin1036.fits ra=349.438 dec=28.6589 rad=12.0 tmin=507859201.0 tmax=508118401.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 4.13
user 3.89
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/740345/ft1_filtered_4FGL_J2317.7+2839_daily_bin1036.fits" evtable="EVENTS" scfile=/scratch/kocevski/740345/ft2_4FGL_J2317.7+2839_daily_bin1036.fits sctable="SC_DATA" outfile=/scratch/kocevski/740345/ltcube_507859201_508118401_4FGL_J2317.7+2839_daily_bin1036.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/740345/ft2_4FGL_J2317.7+2839_daily_bin1036.fits
.....................!
real 11.84
user 11.50
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/740345/ft1_filtered_4FGL_J2317.7+2839_daily_bin1036.fits evtable="EVENTS" scfile=/scratch/kocevski/740345/ft2_4FGL_J2317.7+2839_daily_bin1036.fits sctable="SC_DATA" expcube=/scratch/kocevski/740345/ltcube_507859201_508118401_4FGL_J2317.7+2839_daily_bin1036.fits outfile=/scratch/kocevski/740345/expmap_507859201_508118401_4FGL_J2317.7+2839_daily_bin1036.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/740345/ltcube_507859201_508118401_4FGL_J2317.7+2839_daily_bin1036.fits
.....................!
real 190.91
user 185.31
sys 5.29

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/740345/ft1_filtered_4FGL_J2317.7+2839_daily_bin1036.fits scfile=/scratch/kocevski/740345/ft2_4FGL_J2317.7+2839_daily_bin1036.fits outfile=/scratch/kocevski/740345/cmap_507859201_508118401_4FGL_J2317.7+2839_daily_bin1036.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/740345/ft1_filtered_4FGL_J2317.7+2839_daily_bin1036.fits scfile=/scratch/kocevski/740345/ft2_4FGL_J2317.7+2839_daily_bin1036.fits outfile=/scratch/kocevski/740345/cmap_HighResolution_507859201_508118401_4FGL_J2317.7+2839_daily_bin1036.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.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/740345/ft1_filtered_4FGL_J2317.7+2839_daily_bin1036.fits evtable="EVENTS" scfile=/scratch/kocevski/740345/ft2_4FGL_J2317.7+2839_daily_bin1036.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/740345/Model_4FGL_J2317.7+2839_daily_bin1036.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/740345/ft1_filtered_4FGL_J2317.7+2839_daily_bin1036.fits.....................!
real 86.75
user 85.42
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3237       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.9255       1.0000         .10000E-03   10000.    
     3 'norm      '    .66638       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.8948       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13703       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.0582       1.0000         .10000E-03   10000.    
     8 'norm      '    .70577E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10264E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.9991       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10189E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .99806       1.0000         .10000E-03   10000.    
    15 'norm      '    1.3899       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.3466       1.0000         .10000E-03   10000.    
    18 'Prefactor '    28.054       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1879       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0173       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=   8191.560     FROM MIGRAD    STATUS=CONVERGED    454 CALLS     2173 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3238        .88484       -.52186E-08   -.19760E-03
   2  Prefactor     8.9289        17.154        .22816E-06    .82154E-05
   3  norm          .66700        1.5259       -.99931E-06   -.97634E-04
   4  Prefactor     4.8949        14.385        .18648E-05    .21237E-03
   5  Prefactor     .10003E-03    20.679       -.24530E-05** at limit **
   6  Prefactor     .10000E-03    4.0150       -.36125E-07** at limit **
   7  Prefactor     1.0559        95.873        .13992E-04   -.21878E-04
   8  norm          .92851E-02    .54333        .12141E-06   -.51695E-03
   9  Prefactor     .10000E-03    19.011       -.20143E-06** at limit **
  10  Prefactor     5.9988        11.527       -.54037E-07   -.48866E-05
  11  Prefactor     .10000E-03    7.9466       -.38188E-07** at limit **
  12  Prefactor     .10000E-03    4.1984       -.11836E-06** at limit **
  13  norm          .10000E-03    3.7227       -.41514E-06** at limit **
  14  Prefactor     1.0313        11.361        .21165E-06   -.12889E-04
  15  norm          1.3899        1.8130       -.57418E-07    .33981E-03
  16  Prefactor     .10000E-03    11.506       -.78020E-07** at limit **
  17  Prefactor     7.3588        22.147        .12882E-05   -.30245E-04
  18  Prefactor     28.083        40.543       -.19182E-06   -.37057E-04
  19  Normalizat    1.1878        .22090        .19400E-06   -.25779E-03
  20  Prefactor     1.0173        .10976        .44677E-07   -.16737E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.32379
  Prefactor  = 8.92889
  norm       = 0.666995
  Prefactor  = 4.8949
  Prefactor  = 0.000100025
  Prefactor  = 0.0001
  Prefactor  = 1.05587
  norm       = 0.00928505
  Prefactor  = 0.0001
  Prefactor  = 5.99878
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 1.03128
  norm       = 1.38988
  Prefactor  = 0.0001
  Prefactor  = 7.35885
  Prefactor  = 28.0827
  Normalizat = 1.1878
  Prefactor  = 1.01725
 **********
 **   18 **HESSE 
 **********

 FCN=   8191.560     FROM HESSE     STATUS=OK           321 CALLS     2494 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3238        .88465        .66981E-04   -1.5478    
   2  Prefactor     8.9289        17.162        .13416E-03   -1.5110    
   3  norm          .66700        1.5123        .17365E-02   -1.5545    
   4  Prefactor     4.8949        14.401        .18180E-03   -1.5265    
   5  Prefactor     .10003E-03    21.428        .11252       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.0311        .17711E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.0559        96.774        .74350E-02   -1.5502    
   8  norm          .92851E-02    1.3546        .23108E-01   -1.5689    
   9  Prefactor     .10000E-03    19.240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.9988        11.483        .16394E-03   -1.5218    
  11  Prefactor     .10000E-03    7.9591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.2394        .18108E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    8.6978        .30211E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.0313        40.611        .51415E-02   -1.5505    
  15  norm          1.3899        1.7865        .13481E-03   -1.5472    
  16  Prefactor     .10000E-03    11.533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.3588        22.163        .14798E-03   -1.5165    
  18  Prefactor     28.083        40.779        .75639E-04   -1.4648    
  19  Normalizat    1.1878        .26025        .33893E-03   -.86981    
  20  Prefactor     1.0173        .13081        .18550E-03   -.92157    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28271e-07
Minuit parameter uncertainties:
  1  0.884654
  2  17.1719
  3  1.51235
  4  14.4111
  5  0.0014751
  6  4.7082e-06
  7  20.2498
  8  0.223096
  9  2.46447e-05
  10  11.4868
  11  1.46693e-06
  12  6.196e-06
  13  0.000134521
  14  12.9519
  15  1.78661
  16  8.27896e-06
  17  22.1882
  18  40.8198
  19  0.260536
  20  0.130852
Done.

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

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  1.000e-04  1.467e-06  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.017e+00  1.309e-01  0.000e+00  1.000e+01 ( 1.000e+00)
542        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
543        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
540   Normalization:  1.188e+00  2.605e-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: 4.56e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.42e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/740345/likelihoodResults_507859201_508118401_4FGL_J2317.7+2839_daily_bin1036.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) = 8191.56071503
delta logL = -0.000598012918999

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8191.56011701
delta logL = 1.21781340567e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9714       1.0000          .0000       10.000    
     3 'Normalizat'    1.1879       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0172       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=   8191.560     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      240 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10040E-03    27.369        .18142E-02** at limit **
   2  Index         1.9337        7.8439        .50000        .26131E-04
   3  Normalizat    1.1878        .98348E-02    .33893E-03   -.82079E-04
   4  Prefactor     1.0173        .50576E-02    .18550E-03   -.16548E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100403
  Index      = 1.93368
  Normalizat = 1.1878
  Prefactor  = 1.01725
 **********
 **   18 **HESSE 
 **********

 FCN=   8191.560     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      269 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10040E-03    129.02        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9337        6.6053        .50000       -.66019    
   3  Normalizat    1.1878        .21654E-01    .13557E-04   -.86981    
   4  Prefactor     1.0173        .11136E-01    .74198E-05   -.92157    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.16866e-09
Minuit parameter uncertainties:
  1  0.0144549
  2  133.988
  3  0.0216546
  4  0.011136
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/740345': 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) = 8191.56011654
delta logL = 4.7956018534e-07

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  1.004e-04  1.445e-02  1.000e-04  1.000e+04 ( 1.000e-14)
413        Index:  1.934e+00  1.340e+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.017e+00  1.114e-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.188e+00  2.165e-02  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/740345/cmap_HighResolution_507859201_508118401_4FGL_J2317.7+2839_daily_bin1036.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.42e-03', job_status='DONE', photon_flux_upper_limit='4.56e-08', time_completed='2021-09-29 11:11:29.493396', job_id='740345', GAL2='1.02', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1632939089.49', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='4.80e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1036' AND source_name='4FGL J2317.7+2839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:11:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 740345: <4FGL_J2317.7+2839_daily_bin1036> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2317.7+2839_daily_bin1036 349.438 28.6589 507859201 508118401 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 :                                   712.12 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             263.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   962 sec.
    Turnaround time :                            965 sec.

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

