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


Performing analysis on: 4FGL_J2317.7+2839_daily_bin84
RA = 349.438, Dec = 28.6589
tmin = 261100801, tmax = 261360001
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='733349', job_status='RUN', time_executed='2021-09-29 10:39:42.859475', time_epoch_executed='1632937182.86' WHERE source_name='4FGL J2317.7+2839' and cadence='daily' and bin_id='84'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/733349

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/733349/ft1_4FGL_J2317.7+2839_daily_bin84.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/733349/ft2_4FGL_J2317.7+2839_daily_bin84.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/733349/ft1_4FGL_J2317.7+2839_daily_bin84.fits outfile=/scratch/kocevski/733349/ft1_filteredMKT_4FGL_J2317.7+2839_daily_bin84.fits ra=349.438 dec=28.6589 rad=12.0 tmin=261100801.0 tmax=261360001.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.50
user 1.31
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/733349/ft1_filtered_4FGL_J2317.7+2839_daily_bin84.fits" evtable="EVENTS" scfile=/scratch/kocevski/733349/ft2_4FGL_J2317.7+2839_daily_bin84.fits sctable="SC_DATA" outfile=/scratch/kocevski/733349/ltcube_261100801_261360001_4FGL_J2317.7+2839_daily_bin84.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/733349/ft2_4FGL_J2317.7+2839_daily_bin84.fits
.....................!
real 12.64
user 12.30
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/733349/ft1_filtered_4FGL_J2317.7+2839_daily_bin84.fits evtable="EVENTS" scfile=/scratch/kocevski/733349/ft2_4FGL_J2317.7+2839_daily_bin84.fits sctable="SC_DATA" expcube=/scratch/kocevski/733349/ltcube_261100801_261360001_4FGL_J2317.7+2839_daily_bin84.fits outfile=/scratch/kocevski/733349/expmap_261100801_261360001_4FGL_J2317.7+2839_daily_bin84.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/733349/ltcube_261100801_261360001_4FGL_J2317.7+2839_daily_bin84.fits
.....................!
real 190.09
user 184.93
sys 4.84

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/733349/ft1_filtered_4FGL_J2317.7+2839_daily_bin84.fits scfile=/scratch/kocevski/733349/ft2_4FGL_J2317.7+2839_daily_bin84.fits outfile=/scratch/kocevski/733349/cmap_261100801_261360001_4FGL_J2317.7+2839_daily_bin84.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/733349/ft1_filtered_4FGL_J2317.7+2839_daily_bin84.fits scfile=/scratch/kocevski/733349/ft2_4FGL_J2317.7+2839_daily_bin84.fits outfile=/scratch/kocevski/733349/cmap_HighResolution_261100801_261360001_4FGL_J2317.7+2839_daily_bin84.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/733349/ft1_filtered_4FGL_J2317.7+2839_daily_bin84.fits evtable="EVENTS" scfile=/scratch/kocevski/733349/ft2_4FGL_J2317.7+2839_daily_bin84.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/733349/Model_4FGL_J2317.7+2839_daily_bin84.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/733349/ft1_filtered_4FGL_J2317.7+2839_daily_bin84.fits.....................!
real 79.53
user 78.24
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.9266       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.4596       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.053       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.0320       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .95732E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .42210       1.0000         .10000E-03   10000.    
    13 'norm      '    5.1063       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    6.2869       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .15031E-02   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0438       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .93358       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=   7044.348     FROM MIGRAD    STATUS=FAILED       763 CALLS     2138 TOTAL
                     EDM=   .41E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9269        1.3043        .61663E-04   -.11228E-03
   2  Prefactor     .10000E-03    8.6549        .18142E-02** at limit **
   3  norm          1.4593        1.2903        .86501E-04   -.81959E-03
   4  Prefactor     .10000E-03    16.079        .36285E-03** at limit **
   5  Prefactor     11.053        14.845        .12050E-03   -.29624E-04
   6  Prefactor     .10000E-03    11.997        .18142E-02** at limit **
   7  Prefactor     .10000E-03    14.724        .18142E-02** at limit **
   8  norm          2.0325        1.5171        .85526E-04   -.42045E-03
   9  Prefactor     .10001E-03    21.718        .94044E-01** at limit **
  10  Prefactor     .10000E-03    8.8206        .18142E-02** at limit **
  11  Prefactor     .10000E-03    5.6323        .18142E-02** at limit **
  12  Prefactor     .43191        6.9536        .28708E-02    .37869E-02
  13  norm          5.1091        4.8767        .17453E-03    .17653E-04
  14  Prefactor     .10000E-03    24.365        .18142E-02** at limit **
  15  norm          6.2871        3.1096        .10127E-03    .12461E-04
  16  Prefactor     .10000E-03    4.2960        .16984E-02** at limit **
  17  Prefactor     .10000E-03    11.798        .18142E-02** at limit **
  18  Prefactor     .10001E-03    224.74        .85213E-02** at limit **
  19  Normalizat    1.0437        .23411        .32208E-03   -.28433E-03
  20  Prefactor     .93348        .12224        .17824E-03   -.41459E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7044.348     FROM SIMPLEX   STATUS=UNCHANGED   1000 CALLS     3138 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9269        1.3043        .23592E-06   -1.5366    
   2  Prefactor     .10000E-03    8.6549        .45609E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.4593        1.2903        .23192E-06   -1.5466    
   4  Prefactor     .10000E-03    16.079        .60955E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.053        14.845        .22547E-06   -1.5043    
   6  Prefactor     .10000E-03    11.997        .41427E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    14.724        .13842E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.0325        1.5171        .23157E-06   -1.5423    
   9  Prefactor     .10001E-03    21.718        .13563E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.8206        .33107E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.6323        .34977E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .43191        6.9536        .23354E-06   -1.5577    
  13  norm          5.1091        4.8767        .22872E-06   -1.5256    
  14  Prefactor     .10000E-03    24.365        .40953E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          6.2871        3.1096        .22800E-06   -1.5206    
  16  Prefactor     .10000E-03    4.2960        .21549E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    11.798        .35146E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    224.74        .78997E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0437        .23411        .13737E-06   -.91579    
  20  Prefactor     .93348        .12224        .14240E-06   -.94981    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7044.348     FROM MIGRAD    STATUS=CONVERGED    286 CALLS     3424 TOTAL
                     EDM=   .69E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9269        1.3042        .24665E-05    .64529E-05
   2  Prefactor     .10000E-03    8.6553        .36285E-03** at limit **
   3  norm          1.4593        1.2903        .34600E-05    .65714E-06
   4  Prefactor     .10000E-03    16.079        .72569E-04** at limit **
   5  Prefactor     11.053        14.845        .48202E-05     .0000    
   6  Prefactor     .10000E-03    12.004        .36285E-03** at limit **
   7  Prefactor     .10000E-03    14.725        .36285E-03** at limit **
   8  norm          2.0325        1.5169        .34210E-05    .53171E-05
   9  Prefactor     .10000E-03    19.443        .10110    ** at limit **
  10  Prefactor     .10000E-03    8.8266        .36285E-03** at limit **
  11  Prefactor     .10000E-03    5.6323        .36285E-03** at limit **
  12  Prefactor     .43194        6.9621        .57416E-03    .15801E-03
  13  norm          5.1091        4.8762        .69811E-05    .48855E-05
  14  Prefactor     .10000E-03    24.378        .36285E-03** at limit **
  15  norm          6.2871        3.1095        .40509E-05    .56129E-06
  16  Prefactor     .10000E-03    4.2961        .33969E-03** at limit **
  17  Prefactor     .10000E-03    11.802        .36285E-03** at limit **
  18  Prefactor     .10000E-03    232.75        .34085E-03** at limit **
  19  Normalizat    1.0437        .23396        .12883E-04    .22944E-04
  20  Prefactor     .93348        .12232        .71295E-05    .31892E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.92695
  Prefactor  = 0.0001
  norm       = 1.45933
  Prefactor  = 0.0001
  Prefactor  = 11.053
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.03247
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.431944
  norm       = 5.10914
  Prefactor  = 0.0001
  norm       = 6.28707
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.04375
  Prefactor  = 0.933478
 **********
 **   18 **HESSE 
 **********

 FCN=   7044.348     FROM HESSE     STATUS=OK           283 CALLS     3707 TOTAL
                     EDM=   .14E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9269        1.3041        .49331E-06   -1.5366    
   2  Prefactor     .10000E-03    8.6553        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.4593        1.2905        .69201E-06   -1.5466    
   4  Prefactor     .10000E-03    16.079        .14514E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.053        14.844        .48202E-05   -1.5043    
   6  Prefactor     .10000E-03    12.004        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    14.725        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.0325        1.5167        .68421E-06   -1.5423    
   9  Prefactor     .10000E-03    20.172        .98672E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.8269        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.6323        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .43194        6.9597        .11483E-03   -1.5577    
  13  norm          5.1091        4.8762        .13962E-05   -1.5256    
  14  Prefactor     .10000E-03    24.378        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          6.2871        3.1100        .81018E-06   -1.5206    
  16  Prefactor     .10000E-03    4.2961        .67937E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    11.803        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    232.77        .68171E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0437        .23359        .25766E-05   -.91579    
  20  Prefactor     .93348        .12214        .14259E-05   -.94981    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43681e-12
Minuit parameter uncertainties:
  1  1.30414
  2  3.48056e-07
  3  1.29051
  4  5.63678e-07
  5  14.8493
  6  8.99848e-07
  7  1.53146e-07
  8  1.51677
  9  0.000599139
  10  1.03528e-07
  11  1.10817e-07
  12  3.46775
  13  4.87658
  14  2.18759e-06
  15  3.11008
  16  3.18487e-07
  17  3.35521e-07
  18  0.00031953
  19  0.233823
  20  0.122171
Done.

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

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  1.000e-04  1.108e-07  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.335e-01  1.222e-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.044e+00  2.338e-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.06e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.04e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/733349/likelihoodResults_261100801_261360001_4FGL_J2317.7+2839_daily_bin84.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) = 7044.34852969
delta logL = -0.000842350279527

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7044.34768754
delta logL = -1.99904206966e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10270E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9662       1.0000          .0000       10.000    
     3 'Normalizat'    1.0439       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93337       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=   7044.348     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      244 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10209E-03    38.915        .18142E-02** at limit **
   2  Index         1.8976        6.8778        .50000        .40857E-04
   3  Normalizat    1.0437        .13108E-01    .32208E-03   -.24790E-03
   4  Prefactor     .93348        .69449E-02    .17824E-03   -.35528E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102094
  Index      = 1.8976
  Normalizat = 1.04375
  Prefactor  = 0.933479
 **********
 **   18 **HESSE 
 **********

 FCN=   7044.348     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      273 TOTAL
                     EDM=   .90E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10209E-03    176.15        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8976        8.3707        .50000       -.66935    
   3  Normalizat    1.0437        .28608E-01    .12883E-04   -.91579    
   4  Prefactor     .93348        .15155E-01    .71295E-05   -.94981    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.96616e-08
Minuit parameter uncertainties:
  1  0.0385277
  2  308.535
  3  0.028608
  4  0.0151551
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/733349': 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) = 7044.34768629
delta logL = 1.05563049146e-06

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  1.021e-04  3.853e-02  1.000e-04  1.000e+04 ( 1.000e-14)
413        Index:  1.898e+00  3.085e+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.335e-01  1.516e-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.044e+00  2.861e-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/733349/cmap_HighResolution_261100801_261360001_4FGL_J2317.7+2839_daily_bin84.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.04e-03', job_status='DONE', photon_flux_upper_limit='4.06e-08', time_completed='2021-09-29 10:52:04.500474', job_id='733349', GAL2='0.93', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1632937924.5', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='1.06e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='84' AND source_name='4FGL J2317.7+2839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 10:52:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 733349: <4FGL_J2317.7+2839_daily_bin84> in cluster <slac> Done

Job <4FGL_J2317.7+2839_daily_bin84> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Wed Sep 29 10:36:03 2021
Job was executed on host(s) <bullet0279>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 10:36:04 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:36:04 2021
Terminated at Wed Sep 29 10:52:05 2021
Results reported at Wed Sep 29 10:52:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2317.7+2839_daily_bin84 349.438 28.6589 261100801 261360001 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 :                                   741.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             244.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   960 sec.
    Turnaround time :                            962 sec.

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

