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


Performing analysis on: 4FGL_J2317.7+2839_daily_bin1133
RA = 349.438, Dec = 28.6589
tmin = 533001601, tmax = 533260801
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='740490', job_status='RUN', time_executed='2021-09-29 10:56:10.169827', time_epoch_executed='1632938170.17' WHERE source_name='4FGL J2317.7+2839' and cadence='daily' and bin_id='1133'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/740490

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/740490/ft1_4FGL_J2317.7+2839_daily_bin1133.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/740490/ft2_4FGL_J2317.7+2839_daily_bin1133.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/740490/ft1_4FGL_J2317.7+2839_daily_bin1133.fits outfile=/scratch/kocevski/740490/ft1_filteredMKT_4FGL_J2317.7+2839_daily_bin1133.fits ra=349.438 dec=28.6589 rad=12.0 tmin=533001601.0 tmax=533260801.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.51
user 3.29
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/740490/ft1_filtered_4FGL_J2317.7+2839_daily_bin1133.fits" evtable="EVENTS" scfile=/scratch/kocevski/740490/ft2_4FGL_J2317.7+2839_daily_bin1133.fits sctable="SC_DATA" outfile=/scratch/kocevski/740490/ltcube_533001601_533260801_4FGL_J2317.7+2839_daily_bin1133.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/740490/ft2_4FGL_J2317.7+2839_daily_bin1133.fits
.....................!
real 12.05
user 11.67
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/740490/ft1_filtered_4FGL_J2317.7+2839_daily_bin1133.fits evtable="EVENTS" scfile=/scratch/kocevski/740490/ft2_4FGL_J2317.7+2839_daily_bin1133.fits sctable="SC_DATA" expcube=/scratch/kocevski/740490/ltcube_533001601_533260801_4FGL_J2317.7+2839_daily_bin1133.fits outfile=/scratch/kocevski/740490/expmap_533001601_533260801_4FGL_J2317.7+2839_daily_bin1133.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/740490/ltcube_533001601_533260801_4FGL_J2317.7+2839_daily_bin1133.fits
.....................!
real 191.79
user 186.41
sys 4.99

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/740490/ft1_filtered_4FGL_J2317.7+2839_daily_bin1133.fits scfile=/scratch/kocevski/740490/ft2_4FGL_J2317.7+2839_daily_bin1133.fits outfile=/scratch/kocevski/740490/cmap_533001601_533260801_4FGL_J2317.7+2839_daily_bin1133.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.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/740490/ft1_filtered_4FGL_J2317.7+2839_daily_bin1133.fits scfile=/scratch/kocevski/740490/ft2_4FGL_J2317.7+2839_daily_bin1133.fits outfile=/scratch/kocevski/740490/cmap_HighResolution_533001601_533260801_4FGL_J2317.7+2839_daily_bin1133.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=349.438 yref=28.6589 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.35
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/740490/ft1_filtered_4FGL_J2317.7+2839_daily_bin1133.fits evtable="EVENTS" scfile=/scratch/kocevski/740490/ft2_4FGL_J2317.7+2839_daily_bin1133.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/740490/Model_4FGL_J2317.7+2839_daily_bin1133.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/740490/ft1_filtered_4FGL_J2317.7+2839_daily_bin1133.fits.....................!
real 88.22
user 86.80
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.5534       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.7743       1.0000         .10000E-03   10000.    
     3 'norm      '    1.9988       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .28681E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.524       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.9313       1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.175       1.0000         .10000E-03   10000.    
     8 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .19094E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.6045       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .51434       1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .63012       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .89380       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0212       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=   8186.925     FROM MIGRAD    STATUS=CONVERGED    448 CALLS     2390 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.5533        1.6638        .39256E-07    .14195E-05
   2  Prefactor     7.7736        14.871       -.16487E-05   -.57895E-04
   3  norm          1.9988        1.3446       -.53734E-08    .44457E-04
   4  Prefactor     .10001E-03    5.1437        .10974E-06** at limit **
   5  Prefactor     11.523        13.005       -.13701E-05   -.80741E-04
   6  Prefactor     6.9314        7.0028       -.13317E-06   -.12669E-04
   7  Prefactor     13.174        13.361       -.10204E-05   -.60935E-04
   8  norm          .10000E-03    .47607        .83044E-08** at limit **
   9  Prefactor     .10000E-03    17.868       -.26226E-06** at limit **
  10  Prefactor     .10000E-03    8.4010        .12593E-07** at limit **
  11  Prefactor     8.6057        15.062        .16684E-05    .55703E-04
  12  Prefactor     .51359        2.6999        .54273E-06   -.53376E-03
  13  norm          .10000E-03    1.8917       -.48825E-09** at limit **
  14  Prefactor     .10000E-03    12.659        .62608E-07** at limit **
  15  norm          .62990        1.9984        .14564E-06   -.47725E-03
  16  Prefactor     .10000E-03    4.8631       -.26250E-07** at limit **
  17  Prefactor     .10000E-03    13.433       -.10198E-06** at limit **
  18  Prefactor     .10000E-03    14.984        .62539E-07** at limit **
  19  Normalizat    .89383        .19320       -.19896E-06    .12082E-04
  20  Prefactor     1.0212        .10202        .90845E-07    .42200E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 7.55333
  Prefactor  = 7.77362
  norm       = 1.99883
  Prefactor  = 0.000100009
  Prefactor  = 11.5229
  Prefactor  = 6.93135
  Prefactor  = 13.1742
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.60569
  Prefactor  = 0.513586
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.629898
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.893826
  Prefactor  = 1.02118
 **********
 **   18 **HESSE 
 **********

 FCN=   8186.925     FROM HESSE     STATUS=OK           307 CALLS     2697 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.5533        1.6638        .51837E-04   -1.5158    
   2  Prefactor     7.7736        14.937        .14381E-03   -1.5150    
   3  norm          1.9988        1.3450        .83468E-04   -1.5425    
   4  Prefactor     .10001E-03    103.24        .39471E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.523        13.069        .11801E-03   -1.5029    
   6  Prefactor     6.9314        6.9971        .15239E-03   -1.5181    
   7  Prefactor     13.174        13.392        .11035E-03   -1.4982    
   8  norm          .10000E-03    .49088        .12178E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    20.730        .10415       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.5271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.6057        15.108        .13665E-03   -1.5121    
  12  Prefactor     .51359        6.4737        .43847E-03   -1.5565    
  13  norm          .10000E-03    1.9089        .12150E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    12.786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .62990        2.1912        .23670E-03   -1.5549    
  16  Prefactor     .10000E-03    4.8653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    13.494        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    15.009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .89383        .22211        .35111E-03   -.96677    
  20  Prefactor     1.0212        .11877        .17390E-03   -.92027    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02701e-09
Minuit parameter uncertainties:
  1  1.66385
  2  14.9437
  3  1.34501
  4  0.00195288
  5  13.0727
  6  6.9979
  7  13.3952
  8  4.14425e-07
  9  9.30443e-05
  10  4.35205e-06
  11  15.1144
  12  3.64694
  13  6.76221e-07
  14  6.06348e-06
  15  2.19145
  16  5.29619e-07
  17  4.11838e-06
  18  1.69199e-06
  19  0.222336
  20  0.118798
Done.

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

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  8.606e+00  1.511e+01  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.021e+00  1.188e-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:  8.938e-01  2.223e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/740490/likelihoodResults_533001601_533260801_4FGL_J2317.7+2839_daily_bin1133.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): 0
logL (Free Index) = 8186.79938831
delta logL = 0.125636802095

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8186.78937813
delta logL = 0.135646980879

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0688       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6902       1.0000          .0000       10.000    
     3 'Normalizat'    .87438       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0260       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8186.789     FROM MIGRAD    STATUS=FAILED        91 CALLS      299 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0695        276.27        .20645E-03    .44055E-03
   2  Index         2.6902        5.8010        .81652E-02    .18128E-03
   3  Normalizat    .87436        .26879        .35470E-03    .37853E-04
   4  Prefactor     1.0260        .11605        .17353E-03    .16340E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8186.789     FROM SIMPLEX   STATUS=UNCHANGED     88 CALLS      387 TOTAL
                     EDM=   .66E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0695        276.27        .19862E-03    .44055E-03
   2  Index         2.6902        5.8010        .88641E-03    .18128E-03
   3  Normalizat    .87436        .26879        .18229E-03    .37853E-04
   4  Prefactor     1.0260        .11605        .10586E-03    .16340E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8186.789     FROM MIGRAD    STATUS=CONVERGED     41 CALLS      428 TOTAL
                     EDM=   .23E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0696        10.807        .82579E-05    .12115E-04
   2  Index         2.6901        1.4217        .32661E-03    .41422E-05
   3  Normalizat    .87437        .22619        .14188E-04   -.10417E-04
   4  Prefactor     1.0260        .11744        .34705E-04    .98273E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.06963
  Index      = 2.69015
  Normalizat = 0.874366
  Prefactor  = 1.02601
 **********
 **   18 **HESSE 
 **********

 FCN=   8186.789     FROM HESSE     STATUS=OK            23 CALLS      451 TOTAL
                     EDM=   .23E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0696        10.502        .16516E-05   -1.5358    
   2  Index         2.6901        1.3829        .13064E-04   -.48022    
   3  Normalizat    .87437        .22611        .28376E-05   -.97367    
   4  Prefactor     1.0260        .11744        .69411E-05   -.91867    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.33583e-12
Minuit parameter uncertainties:
  1  10.508
  2  1.40631
  3  0.22636
  4  0.11747
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/740490': 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): 0
logL (Free Index) = 8186.78937812
delta logL = 0.135646990808

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  3.070e+00  1.051e+01  1.000e-04  1.000e+04 ( 1.000e-14)
413        Index:  2.690e+00  1.406e+00  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.026e+00  1.175e-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:  8.744e-01  2.264e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.50
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/740490/cmap_HighResolution_533001601_533260801_4FGL_J2317.7+2839_daily_bin1133.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.20e-03', job_status='DONE', photon_flux_upper_limit='6.93e-08', time_completed='2021-09-29 11:08:57.677641', job_id='740490', GAL2='1.03', fit_tolerance='1e-08', EG2='0.87', EG='0.89', time_epoch_completed='1632938937.68', return_code2='0', ts='0.50', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='1.36e-01', ts2='0.79', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1133' AND source_name='4FGL J2317.7+2839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:08:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 740490: <4FGL_J2317.7+2839_daily_bin1133> in cluster <slac> Done

Job <4FGL_J2317.7+2839_daily_bin1133> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 10:55:37 2021
Job was executed on host(s) <bullet0076>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 10:55:39 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:39 2021
Terminated at Wed Sep 29 11:08:58 2021
Results reported at Wed Sep 29 11:08:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2317.7+2839_daily_bin1133 349.438 28.6589 533001601 533260801 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 :                                   755.15 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             344.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   798 sec.
    Turnaround time :                            801 sec.

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

