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


Performing analysis on: 4FGL_J2317.7+2839_daily_bin47
RA = 349.438, Dec = 28.6589
tmin = 251510401, tmax = 251769601
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='733293', job_status='RUN', time_executed='2021-09-29 10:37:51.083847', time_epoch_executed='1632937071.08' WHERE source_name='4FGL J2317.7+2839' and cadence='daily' and bin_id='47'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/733293

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/733293/ft1_4FGL_J2317.7+2839_daily_bin47.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/733293/ft2_4FGL_J2317.7+2839_daily_bin47.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/733293/ft1_4FGL_J2317.7+2839_daily_bin47.fits outfile=/scratch/kocevski/733293/ft1_filteredMKT_4FGL_J2317.7+2839_daily_bin47.fits ra=349.438 dec=28.6589 rad=12.0 tmin=251510401.0 tmax=251769601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 1.47
user 1.29
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/733293/ft1_filtered_4FGL_J2317.7+2839_daily_bin47.fits" evtable="EVENTS" scfile=/scratch/kocevski/733293/ft2_4FGL_J2317.7+2839_daily_bin47.fits sctable="SC_DATA" outfile=/scratch/kocevski/733293/ltcube_251510401_251769601_4FGL_J2317.7+2839_daily_bin47.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/733293/ft2_4FGL_J2317.7+2839_daily_bin47.fits
.....................!
real 15.34
user 15.01
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/733293/ft1_filtered_4FGL_J2317.7+2839_daily_bin47.fits evtable="EVENTS" scfile=/scratch/kocevski/733293/ft2_4FGL_J2317.7+2839_daily_bin47.fits sctable="SC_DATA" expcube=/scratch/kocevski/733293/ltcube_251510401_251769601_4FGL_J2317.7+2839_daily_bin47.fits outfile=/scratch/kocevski/733293/expmap_251510401_251769601_4FGL_J2317.7+2839_daily_bin47.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/733293/ltcube_251510401_251769601_4FGL_J2317.7+2839_daily_bin47.fits
.....................!
real 189.68
user 185.17
sys 4.21

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/733293/ft1_filtered_4FGL_J2317.7+2839_daily_bin47.fits scfile=/scratch/kocevski/733293/ft2_4FGL_J2317.7+2839_daily_bin47.fits outfile=/scratch/kocevski/733293/cmap_251510401_251769601_4FGL_J2317.7+2839_daily_bin47.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/733293/ft1_filtered_4FGL_J2317.7+2839_daily_bin47.fits scfile=/scratch/kocevski/733293/ft2_4FGL_J2317.7+2839_daily_bin47.fits outfile=/scratch/kocevski/733293/cmap_HighResolution_251510401_251769601_4FGL_J2317.7+2839_daily_bin47.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/733293/ft1_filtered_4FGL_J2317.7+2839_daily_bin47.fits evtable="EVENTS" scfile=/scratch/kocevski/733293/ft2_4FGL_J2317.7+2839_daily_bin47.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/733293/Model_4FGL_J2317.7+2839_daily_bin47.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/733293/ft1_filtered_4FGL_J2317.7+2839_daily_bin47.fits.....................!
real 81.71
user 80.37
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1090       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.5163       1.0000         .10000E-03   10000.    
     3 'norm      '    2.4293       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .25402E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10361E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.003       1.0000         .10000E-03   10000.    
     8 'norm      '    1.8738       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.515       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.2448       1.0000         .10000E-03   10000.    
    13 'norm      '    13.024       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .32063E-02   1.0000         .10000E-03   10000.    
    15 'norm      '    .79163       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .15338E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.6049       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11403E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .89247       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0548       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=   7460.794     FROM MIGRAD    STATUS=CONVERGED    450 CALLS     2105 TOTAL
                     EDM=   .42E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1096        .92370       -.17390E-08   -.62575E-05
   2  Prefactor     3.5232        29.250       -.17804E-06   -.28790E-05
   3  norm          2.4291        1.5225        .14364E-08    .16362E-04
   4  Prefactor     .10000E-03    4.4781       -.15361E-07** at limit **
   5  Prefactor     .10003E-03    16.517        .11826E-06** at limit **
   6  Prefactor     .10000E-03    7.6641        .64374E-07** at limit **
   7  Prefactor     14.035        33.982       -.77341E-05   -.39477E-05
   8  norm          1.8730        1.7361        .77213E-07    .78373E-04
   9  Prefactor     .10000E-03    11.763       -.30061E-07** at limit **
  10  Prefactor     14.515        15.629        .98737E-06    .16632E-04
  11  Prefactor     .10000E-03    9.6781        .32994E-07** at limit **
  12  Prefactor     8.2362        6.3130        .17537E-07   -.27447E-03
  13  norm          13.028        7.9000        .14413E-06    .12072E-03
  14  Prefactor     .10000E-03    18.211       -.35514E-06** at limit **
  15  norm          .79146        2.3078       -.11578E-06   -.12261E-03
  16  Prefactor     .10000E-03    33.557       -.89244E-08** at limit **
  17  Prefactor     1.6013        10.803        .29882E-06   -.12459E-03
  18  Prefactor     .10000E-03    15.947       -.28206E-07** at limit **
  19  Normalizat    .89181        .21084       -.45014E-06    .52399E-04
  20  Prefactor     1.0551        .11048        .47323E-06   -.79301E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.10958
  Prefactor  = 3.52323
  norm       = 2.42913
  Prefactor  = 0.0001
  Prefactor  = 0.000100029
  Prefactor  = 0.0001
  Prefactor  = 14.035
  norm       = 1.87302
  Prefactor  = 0.0001
  Prefactor  = 14.5148
  Prefactor  = 0.0001
  Prefactor  = 8.23625
  norm       = 13.0281
  Prefactor  = 0.000100001
  norm       = 0.791456
  Prefactor  = 0.0001
  Prefactor  = 1.60131
  Prefactor  = 0.0001
  Normalizat = 0.891811
  Prefactor  = 1.05515
 **********
 **   18 **HESSE 
 **********

 FCN=   7460.794     FROM HESSE     STATUS=OK           309 CALLS     2414 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1096        .89964        .70038E-04   -1.5497    
   2  Prefactor     3.5232        28.724        .21559E-03   -1.5333    
   3  norm          2.4291        1.5275        .82333E-04   -1.5396    
   4  Prefactor     .10000E-03    4.4940        .17849E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10003E-03    18.709        .11106       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.7303        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.035        33.975        .10704E-03   -1.4959    
   8  norm          1.8730        1.7198        .10196E-03   -1.5434    
   9  Prefactor     .10000E-03    11.813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     14.515        15.548        .10513E-03   -1.4946    
  11  Prefactor     .10000E-03    9.6982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.2362        6.6291        .69811E-03   -1.5134    
  13  norm          13.028        7.1403        .11099E-03   -1.4986    
  14  Prefactor     .10000E-03    92.611        .62352E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .79146        2.2810        .21620E-03   -1.5530    
  16  Prefactor     .10000E-03    33.921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.6013        72.458        .16726E-02   -1.5455    
  18  Prefactor     .10000E-03    15.968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .89181        .23574        .36012E-03   -.96748    
  20  Prefactor     1.0551        .12590        .17659E-03   -.90913    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.30021e-10
Minuit parameter uncertainties:
  1  0.899652
  2  20.1325
  3  1.52749
  4  5.97652e-07
  5  0.00147883
  6  3.35343e-06
  7  34.0214
  8  1.71985
  9  2.27912e-06
  10  15.5527
  11  2.12363e-06
  12  6.62965
  13  7.14081
  14  0.000495916
  15  2.28124
  16  1.07765e-05
  17  21.5704
  18  2.0643e-06
  19  0.236017
  20  0.125934
Done.

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

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  1.000e-04  2.124e-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.055e+00  1.259e-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.918e-01  2.360e-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.19e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.90e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/733293/likelihoodResults_251510401_251769601_4FGL_J2317.7+2839_daily_bin47.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) = 7460.79458874
delta logL = -0.000491125120789

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7460.79409901
delta logL = -1.38916584547e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11501E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9533       1.0000          .0000       10.000    
     3 'Normalizat'    .89167       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0551       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=   7460.794     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      243 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10090E-03    36.045        .18142E-02** at limit **
   2  Index         1.8936        8.9802        .50000        .30133E-04
   3  Normalizat    .89181        .93773E-02    .36013E-03   -.53351E-05
   4  Prefactor     1.0551        .49953E-02    .17659E-03   -.22211E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100897
  Index      = 1.89356
  Normalizat = 0.89181
  Prefactor  = 1.05515
 **********
 **   18 **HESSE 
 **********

 FCN=   7460.794     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10090E-03    164.48        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8936        8.5967        .50000       -.67039    
   3  Normalizat    .89181        .20300E-01    .14405E-04   -.96749    
   4  Prefactor     1.0551        .10814E-01    .70636E-05   -.90913    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.61058e-09
Minuit parameter uncertainties:
  1  0.0243564
  2  141.326
  3  0.0203003
  4  0.0108139
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/733293': 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) = 7460.79409667
delta logL = 9.53713424678e-07

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  1.009e-04  2.436e-02  1.000e-04  1.000e+04 ( 1.000e-14)
413        Index:  1.894e+00  1.413e+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.055e+00  1.081e-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:  8.918e-01  2.030e-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/733293/cmap_HighResolution_251510401_251769601_4FGL_J2317.7+2839_daily_bin47.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.90e-03', job_status='DONE', photon_flux_upper_limit='5.19e-08', time_completed='2021-09-29 10:49:00.378579', job_id='733293', GAL2='1.06', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1632937740.38', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='9.54e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='47' AND source_name='4FGL J2317.7+2839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 10:49:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 733293: <4FGL_J2317.7+2839_daily_bin47> in cluster <slac> Done

Job <4FGL_J2317.7+2839_daily_bin47> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Wed Sep 29 10:35:58 2021
Job was executed on host(s) <bullet0245>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 10:35:59 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 10:35:59 2021
Terminated at Wed Sep 29 10:49:01 2021
Results reported at Wed Sep 29 10:49:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2317.7+2839_daily_bin47 349.438 28.6589 251510401 251769601 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 :                                   665.00 sec.
    Max Memory :                                 1046 MB
    Average Memory :                             318.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   781 sec.
    Turnaround time :                            783 sec.

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

