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


Performing analysis on: 4FGL_J2317.7+2839_daily_bin1015
RA = 349.438, Dec = 28.6589
tmin = 502416001, tmax = 502675201
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='740313', job_status='RUN', time_executed='2021-09-29 10:58:09.863510', time_epoch_executed='1632938289.86' WHERE source_name='4FGL J2317.7+2839' and cadence='daily' and bin_id='1015'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/740313

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/740313/ft1_4FGL_J2317.7+2839_daily_bin1015.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/740313/ft2_4FGL_J2317.7+2839_daily_bin1015.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/740313/ft1_4FGL_J2317.7+2839_daily_bin1015.fits outfile=/scratch/kocevski/740313/ft1_filteredMKT_4FGL_J2317.7+2839_daily_bin1015.fits ra=349.438 dec=28.6589 rad=12.0 tmin=502416001.0 tmax=502675201.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.50
user 3.27
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/740313/ft1_filtered_4FGL_J2317.7+2839_daily_bin1015.fits" evtable="EVENTS" scfile=/scratch/kocevski/740313/ft2_4FGL_J2317.7+2839_daily_bin1015.fits sctable="SC_DATA" outfile=/scratch/kocevski/740313/ltcube_502416001_502675201_4FGL_J2317.7+2839_daily_bin1015.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/740313/ft2_4FGL_J2317.7+2839_daily_bin1015.fits
.....................!
real 11.88
user 11.50
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/740313/ft1_filtered_4FGL_J2317.7+2839_daily_bin1015.fits evtable="EVENTS" scfile=/scratch/kocevski/740313/ft2_4FGL_J2317.7+2839_daily_bin1015.fits sctable="SC_DATA" expcube=/scratch/kocevski/740313/ltcube_502416001_502675201_4FGL_J2317.7+2839_daily_bin1015.fits outfile=/scratch/kocevski/740313/expmap_502416001_502675201_4FGL_J2317.7+2839_daily_bin1015.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/740313/ltcube_502416001_502675201_4FGL_J2317.7+2839_daily_bin1015.fits
.....................!
real 190.47
user 185.55
sys 4.55

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/740313/ft1_filtered_4FGL_J2317.7+2839_daily_bin1015.fits scfile=/scratch/kocevski/740313/ft2_4FGL_J2317.7+2839_daily_bin1015.fits outfile=/scratch/kocevski/740313/cmap_502416001_502675201_4FGL_J2317.7+2839_daily_bin1015.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.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/740313/ft1_filtered_4FGL_J2317.7+2839_daily_bin1015.fits evtable="EVENTS" scfile=/scratch/kocevski/740313/ft2_4FGL_J2317.7+2839_daily_bin1015.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/740313/Model_4FGL_J2317.7+2839_daily_bin1015.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/740313/ft1_filtered_4FGL_J2317.7+2839_daily_bin1015.fits.....................!
real 104.57
user 102.69
sys 1.40

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.5247       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.0973       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.0102       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.4605       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.4779       1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.779       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .79378E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.932       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    42.688       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10667E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2555       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0022       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=   9402.046     FROM MIGRAD    STATUS=CONVERGED    427 CALLS     2071 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.5248        1.7583        .82891E-08    .14541E-03
   2  Prefactor     .10000E-03    12.952        .30172E-06** at limit **
   3  norm          1.0974        .84595       -.80239E-08    .62590E-04
   4  Prefactor     2.0092        11.266        .22979E-06   -.13879E-04
   5  Prefactor     .10000E-03    6.0334       -.12656E-06** at limit **
   6  Prefactor     3.4604        6.7297        .19859E-05   -.28125E-03
   7  Prefactor     .10000E-03    16.058       -.29929E-06** at limit **
   8  norm          2.4781        1.5791        .46169E-07    .40530E-03
   9  Prefactor     15.765        28.109       -.70812E-06   -.18712E-03
  10  Prefactor     .10000E-03    9.8324       -.85781E-07** at limit **
  11  Prefactor     .10000E-03    5.8228       -.14068E-07** at limit **
  12  Prefactor     .10000E-03    4.9090        .18559E-06** at limit **
  13  norm          .10014E-03    6.7973        .10373E-05** at limit **
  14  Prefactor     16.961        20.878        .35823E-05    .27691E-03
  15  norm          .10000E-03    .81917        .48486E-08** at limit **
  16  Prefactor     42.694        27.359        .12370E-06    .22654E-03
  17  Prefactor     .10000E-03    6.6018        .64914E-07** at limit **
  18  Prefactor     .10000E-03    110.93       -.32518E-06** at limit **
  19  Normalizat    1.2553        .22307        .54849E-08    .24085E-03
  20  Prefactor     1.0024        .10667       -.88512E-07    .36257E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.52477
  Prefactor  = 0.000100001
  norm       = 1.09736
  Prefactor  = 2.00919
  Prefactor  = 0.0001
  Prefactor  = 3.46043
  Prefactor  = 0.000100002
  norm       = 2.47809
  Prefactor  = 15.7653
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.00010014
  Prefactor  = 16.9606
  norm       = 0.0001
  Prefactor  = 42.6945
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 1.25531
  Prefactor  = 1.00235
 **********
 **   18 **HESSE 
 **********

 FCN=   9402.046     FROM HESSE     STATUS=OK           293 CALLS     2364 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.5248        1.7585        .63964E-04   -1.5197    
   2  Prefactor     .10000E-03    13.008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.0974        1.0721        .75817E-03   -1.5498    
   4  Prefactor     2.0092        11.261        .29200E-03   -1.5424    
   5  Prefactor     .10000E-03    6.0402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.4604        7.3566        .10870E-02   -1.5336    
   7  Prefactor     .10000E-03    16.110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.4781        1.5752        .92462E-04   -1.5393    
   9  Prefactor     15.765        28.196        .10083E-03   -1.4914    
  10  Prefactor     .10000E-03    9.9311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.8247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.9418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10014E-03    27.534        .35927E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     16.961        21.419        .97334E-04   -1.4884    
  15  norm          .10000E-03    .82364        .85697E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     42.694        27.399        .61357E-04   -1.4400    
  17  Prefactor     .10000E-03    6.6063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    112.16        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.2553        .26016        .36453E-03   -.84910    
  20  Prefactor     1.0024        .12439        .19842E-03   -.92651    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.27065e-09
Minuit parameter uncertainties:
  1  1.75853
  2  0.000267644
  3  1.0721
  4  9.51571
  5  8.93622e-05
  6  7.35849
  7  0.000340015
  8  1.5752
  9  28.2201
  10  8.02069e-05
  11  3.5001e-05
  12  1.74532e-05
  13  0.00392554
  14  21.4283
  15  3.69639e-07
  16  27.4071
  17  4.67501e-05
  18  0.000635824
  19  0.260429
  20  0.124424
Done.

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

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  1.000e-04  3.500e-05  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.002e+00  1.244e-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.255e+00  2.604e-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.20e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.15e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/740313/likelihoodResults_502416001_502675201_4FGL_J2317.7+2839_daily_bin1015.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) = 9402.04648835
delta logL = -0.000815926439827

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9402.04567217
delta logL = 2.52533936873e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9750       1.0000          .0000       10.000    
     3 'Normalizat'    1.2553       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0024       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=   9402.046     FROM MIGRAD    STATUS=FAILED        92 CALLS      247 TOTAL
                     EDM=   .78E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11055E-03    3.1839        .18142E-01** at limit **
   2  Index         1.6279        7.3427        .50000        .15550E-04
   3  Normalizat    1.2553        .35399E-02    .36453E-03    .45097E-04
   4  Prefactor     1.0024        .17562E-02    .19842E-03    .11917E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   9402.046     FROM SIMPLEX   STATUS=PROGRESS      87 CALLS      334 TOTAL
                     EDM=   .73E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10272E-03    3.1839        .40084E-03** at limit **
   2  Index         1.5643        7.3427        .24684E-01    .15550E-04
   3  Normalizat    1.2553        .35399E-02    .21361E-04    .45097E-04
   4  Prefactor     1.0023        .17562E-02    .14377E-04    .11917E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9402.046     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      417 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    74.852        .54106E-02** at limit **
   2  Index         1.3204        9.1574        .50000        .82764E-08
   3  Normalizat    1.2553        .16477E-01    .29162E-05    .87324E-04
   4  Prefactor     1.0024        .81775E-02    .15874E-05   -.12318E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.32036
  Normalizat = 1.25531
  Prefactor  = 1.00235
 **********
 **   18 **HESSE 
 **********

 FCN=   9402.046     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      446 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    367.17        .10821E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.3204        6.5843        .50000       -.82703    
   3  Normalizat    1.2553        .37892E-01    .58325E-06   -.84910    
   4  Prefactor     1.0024        .18918E-01    .31748E-06   -.92651    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.62458e-10
Minuit parameter uncertainties:
  1  0.00051674
  2  1209.96
  3  0.0378926
  4  0.0189186
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/740313': 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) = 9402.04566939
delta logL = 3.03735760099e-06

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  1.000e-04  5.167e-04  1.000e-04  1.000e+04 ( 1.000e-14)
413        Index:  1.320e+00  1.210e+03  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.002e+00  1.892e-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.255e+00  3.789e-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/740313/cmap_HighResolution_502416001_502675201_4FGL_J2317.7+2839_daily_bin1015.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.15e-03', job_status='DONE', photon_flux_upper_limit='4.20e-08', time_completed='2021-09-29 11:10:50.817976', job_id='740313', GAL2='1.00', fit_tolerance='1e-08', EG2='1.26', EG='1.26', time_epoch_completed='1632939050.82', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='3.04e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1015' AND source_name='4FGL J2317.7+2839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:10:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 740313: <4FGL_J2317.7+2839_daily_bin1015> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2317.7+2839_daily_bin1015 349.438 28.6589 502416001 502675201 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 :                                   757.00 sec.
    Max Memory :                                 1245 MB
    Average Memory :                             295.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   927 sec.
    Turnaround time :                            929 sec.

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

