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


Performing analysis on: 4FGL_J2317.7+2839_daily_bin1453
RA = 349.438, Dec = 28.6589
tmin = 615945601, tmax = 616204801
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='742025', job_status='RUN', time_executed='2021-09-29 11:03:29.678613', time_epoch_executed='1632938609.68' WHERE source_name='4FGL J2317.7+2839' and cadence='daily' and bin_id='1453'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/742025

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/742025/ft1_4FGL_J2317.7+2839_daily_bin1453.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/742025/ft2_4FGL_J2317.7+2839_daily_bin1453.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/742025/ft1_4FGL_J2317.7+2839_daily_bin1453.fits outfile=/scratch/kocevski/742025/ft1_filteredMKT_4FGL_J2317.7+2839_daily_bin1453.fits ra=349.438 dec=28.6589 rad=12.0 tmin=615945601.0 tmax=616204801.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.19
user 3.95
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/742025/ft2_4FGL_J2317.7+2839_daily_bin1453.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/742025/ft1_filteredMKT_4FGL_J2317.7+2839_daily_bin1453.fits evtable="EVENTS" outfile="/scratch/kocevski/742025/ft1_filtered_4FGL_J2317.7+2839_daily_bin1453.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.55
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/742025/ft1_filtered_4FGL_J2317.7+2839_daily_bin1453.fits" evtable="EVENTS" scfile=/scratch/kocevski/742025/ft2_4FGL_J2317.7+2839_daily_bin1453.fits sctable="SC_DATA" outfile=/scratch/kocevski/742025/ltcube_615945601_616204801_4FGL_J2317.7+2839_daily_bin1453.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/742025/ft2_4FGL_J2317.7+2839_daily_bin1453.fits
.....................!
real 11.74
user 11.37
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/742025/ft1_filtered_4FGL_J2317.7+2839_daily_bin1453.fits evtable="EVENTS" scfile=/scratch/kocevski/742025/ft2_4FGL_J2317.7+2839_daily_bin1453.fits sctable="SC_DATA" expcube=/scratch/kocevski/742025/ltcube_615945601_616204801_4FGL_J2317.7+2839_daily_bin1453.fits outfile=/scratch/kocevski/742025/expmap_615945601_616204801_4FGL_J2317.7+2839_daily_bin1453.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/742025/ltcube_615945601_616204801_4FGL_J2317.7+2839_daily_bin1453.fits
.....................!
real 191.87
user 186.32
sys 5.23

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/742025/ft1_filtered_4FGL_J2317.7+2839_daily_bin1453.fits scfile=/scratch/kocevski/742025/ft2_4FGL_J2317.7+2839_daily_bin1453.fits outfile=/scratch/kocevski/742025/cmap_615945601_616204801_4FGL_J2317.7+2839_daily_bin1453.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.53
user 0.36
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/742025/ft1_filtered_4FGL_J2317.7+2839_daily_bin1453.fits evtable="EVENTS" scfile=/scratch/kocevski/742025/ft2_4FGL_J2317.7+2839_daily_bin1453.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/742025/Model_4FGL_J2317.7+2839_daily_bin1453.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/742025/ft1_filtered_4FGL_J2317.7+2839_daily_bin1453.fits.....................!
real 96.65
user 95.24
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0045       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .11359E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.3887       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.2481       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.4204       1.0000         .10000E-03   10000.    
     7 'Prefactor '    41.852       1.0000         .10000E-03   10000.    
     8 'norm      '    1.4590       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.5027       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .24760E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.3602       1.0000         .10000E-03   10000.    
    15 'norm      '    1.6790       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .61040       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2410       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=   9092.907     FROM MIGRAD    STATUS=CONVERGED    430 CALLS     2359 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0048        .92237        .98528E-08   -.46751E-03
   2  Prefactor     .10000E-03    25.579       -.49359E-05** at limit **
   3  norm          .10000E-03    .79995       -.77272E-07** at limit **
   4  Prefactor     6.3865        7.7861        .12540E-05   -.70065E-04
   5  Prefactor     5.2521        14.336       -.16552E-05   -.48324E-04
   6  Prefactor     7.4207        7.2567       -.33891E-05   -.20887E-04
   7  Prefactor     41.849        29.254       -.79658E-07    .15475E-04
   8  norm          1.4592        1.2017       -.16479E-06   -.63411E-03
   9  Prefactor     .10000E-03    12.238       -.12723E-06** at limit **
  10  Prefactor     4.5031        7.8939       -.50762E-06   -.15099E-03
  11  Prefactor     .10002E-03    17.217       -.22429E-05** at limit **
  12  Prefactor     .10000E-03    2.8357        .24812E-07** at limit **
  13  norm          .10000E-03    5.1734       -.74994E-06** at limit **
  14  Prefactor     8.3496        18.050        .97802E-05    .91221E-04
  15  norm          1.6791        1.7112        .41873E-07    .14218E-03
  16  Prefactor     .10000E-03    24.213        .30525E-05** at limit **
  17  Prefactor     .10000E-03    17.556        .37191E-06** at limit **
  18  Prefactor     .10000E-03    29.662        .14202E-05** at limit **
  19  Normalizat    .61064        .20913       -.31526E-05    .80987E-04
  20  Prefactor     1.2409        .10903        .63803E-06    .24253E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.00483
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.38648
  Prefactor  = 5.25208
  Prefactor  = 7.42069
  Prefactor  = 41.8489
  norm       = 1.45924
  Prefactor  = 0.0001
  Prefactor  = 4.50311
  Prefactor  = 0.000100016
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 8.34959
  norm       = 1.67909
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.610642
  Prefactor  = 1.24086
 **********
 **   18 **HESSE 
 **********

 FCN=   9092.907     FROM HESSE     STATUS=OK           305 CALLS     2664 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0048        .88399        .84377E-03   -1.5507    
   2  Prefactor     .10000E-03    25.799        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    3.0922        .16478E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.3865        7.6894        .15880E-03   -1.5202    
   5  Prefactor     5.2521        14.364        .17546E-03   -1.5250    
   6  Prefactor     7.4207        7.2321        .14723E-03   -1.5163    
   7  Prefactor     41.849        29.255        .61965E-04   -1.4413    
   8  norm          1.4592        1.1893        .90684E-04   -1.5466    
   9  Prefactor     .10000E-03    12.300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.5031        7.8942        .18974E-03   -1.5284    
  11  Prefactor     .10002E-03    18.535        .12044       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.8686        .15677E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    5.3671        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.3496        18.089        .13865E-03   -1.5130    
  15  norm          1.6791        1.7170        .12238E-03   -1.5449    
  16  Prefactor     .10000E-03    24.606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    17.615        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    29.725        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .61064        .22543        .43338E-03   -1.0753    
  20  Prefactor     1.2409        .11960        .16672E-03   -.85083    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.37738e-10
Minuit parameter uncertainties:
  1  0.884001
  2  7.09259e-05
  3  1.2603e-05
  4  7.69055
  5  14.3733
  6  7.23293
  7  29.2654
  8  1.18935
  9  8.45186e-06
  10  7.89607
  11  0.00108633
  12  4.48992e-06
  13  0.000174887
  14  18.1008
  15  1.71707
  16  2.1219e-05
  17  1.70735e-05
  18  2.26288e-05
  19  0.225774
  20  0.119624
Done.

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

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  1.000e-04  1.086e-03  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.241e+00  1.196e-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:  6.106e-01  2.258e-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: 7.52e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.64e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/742025/likelihoodResults_615945601_616204801_4FGL_J2317.7+2839_daily_bin1453.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) = 9092.90668391
delta logL = -2.60765082203e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9092.9066839
delta logL = -2.60716860794e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96362E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0029       1.0000          .0000       10.000    
     3 'Normalizat'    .61064       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2409       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5440E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9092.784     FROM MIGRAD    STATUS=CONVERGED    138 CALLS      321 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0941        85.770        .90712E-02    .14370E-02
   2  Index         3.0561        6.5148        .62855E-01    .34155E-03
   3  Normalizat    .58342        .51114E-01    .99926E-01   -.16041E-03
   4  Prefactor     1.2454        .26683E-01    .33729E-01   -.46790E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.09407
  Index      = 3.05612
  Normalizat = 0.58342
  Prefactor  = 1.24545
 **********
 **   18 **HESSE 
 **********

 FCN=   9092.784     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      352 TOTAL
                     EDM=   .94E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0941        197.39        .19163E-03   -1.5499    
   2  Index         3.0561        5.8139        .11026E-01   -.39930    
   3  Normalizat    .58342        .16864        .44289E-03   -1.0869    
   4  Prefactor     1.2454        .83347E-01    .16644E-03   -.84944    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.43377e-06
Minuit parameter uncertainties:
  1  29.4892
  2  8.96734
  3  0.168792
  4  0.0833558
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/742025': 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) = 9092.78411149
delta logL = 0.122546338984

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  1.094e+00  2.949e+01  1.000e-04  1.000e+04 ( 1.000e-14)
413        Index:  3.056e+00  8.967e+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.245e+00  8.336e-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:  5.834e-01  1.688e-01  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/742025/cmap_HighResolution_615945601_616204801_4FGL_J2317.7+2839_daily_bin1453.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.64e-03', job_status='DONE', photon_flux_upper_limit='7.52e-08', time_completed='2021-09-29 11:16:45.978308', job_id='742025', GAL2='1.25', fit_tolerance='1e-08', EG2='0.58', EG='0.61', time_epoch_completed='1632939405.98', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.24', dlogl='1.23e-01', ts2='0.28', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1453' AND source_name='4FGL J2317.7+2839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:16:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0106>
Subject: Job 742025: <4FGL_J2317.7+2839_daily_bin1453> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2317.7+2839_daily_bin1453 349.438 28.6589 615945601 616204801 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 :                                   768.24 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             316.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   974 sec.
    Turnaround time :                            975 sec.

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

