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


Performing analysis on: 4FGL_J2317.7+2839_daily_bin851
RA = 349.438, Dec = 28.6589
tmin = 459907201, tmax = 460166401
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='739035', job_status='RUN', time_executed='2021-09-29 10:50:52.840992', time_epoch_executed='1632937852.84' WHERE source_name='4FGL J2317.7+2839' and cadence='daily' and bin_id='851'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/739035

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/739035/ft1_4FGL_J2317.7+2839_daily_bin851.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/739035/ft2_4FGL_J2317.7+2839_daily_bin851.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/739035/ft1_4FGL_J2317.7+2839_daily_bin851.fits outfile=/scratch/kocevski/739035/ft1_filteredMKT_4FGL_J2317.7+2839_daily_bin851.fits ra=349.438 dec=28.6589 rad=12.0 tmin=459907201.0 tmax=460166401.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.41
user 3.17
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/739035/ft1_filtered_4FGL_J2317.7+2839_daily_bin851.fits" evtable="EVENTS" scfile=/scratch/kocevski/739035/ft2_4FGL_J2317.7+2839_daily_bin851.fits sctable="SC_DATA" outfile=/scratch/kocevski/739035/ltcube_459907201_460166401_4FGL_J2317.7+2839_daily_bin851.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/739035/ft2_4FGL_J2317.7+2839_daily_bin851.fits
.....................!
real 12.05
user 11.71
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/739035/ft1_filtered_4FGL_J2317.7+2839_daily_bin851.fits evtable="EVENTS" scfile=/scratch/kocevski/739035/ft2_4FGL_J2317.7+2839_daily_bin851.fits sctable="SC_DATA" expcube=/scratch/kocevski/739035/ltcube_459907201_460166401_4FGL_J2317.7+2839_daily_bin851.fits outfile=/scratch/kocevski/739035/expmap_459907201_460166401_4FGL_J2317.7+2839_daily_bin851.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/739035/ltcube_459907201_460166401_4FGL_J2317.7+2839_daily_bin851.fits
.....................!
real 190.23
user 184.27
sys 5.48

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/739035/ft1_filtered_4FGL_J2317.7+2839_daily_bin851.fits scfile=/scratch/kocevski/739035/ft2_4FGL_J2317.7+2839_daily_bin851.fits outfile=/scratch/kocevski/739035/cmap_459907201_460166401_4FGL_J2317.7+2839_daily_bin851.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/739035/ft1_filtered_4FGL_J2317.7+2839_daily_bin851.fits scfile=/scratch/kocevski/739035/ft2_4FGL_J2317.7+2839_daily_bin851.fits outfile=/scratch/kocevski/739035/cmap_HighResolution_459907201_460166401_4FGL_J2317.7+2839_daily_bin851.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/739035/ft1_filtered_4FGL_J2317.7+2839_daily_bin851.fits evtable="EVENTS" scfile=/scratch/kocevski/739035/ft2_4FGL_J2317.7+2839_daily_bin851.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/739035/Model_4FGL_J2317.7+2839_daily_bin851.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/739035/ft1_filtered_4FGL_J2317.7+2839_daily_bin851.fits.....................!
real 100.60
user 98.81
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .87265E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.8471       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .25415E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .20870E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    30.333       1.0000         .10000E-03   10000.    
     8 'norm      '    3.6665       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    24.628       1.0000         .10000E-03   10000.    
    11 'Prefactor '    30.509       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.4803       1.0000         .10000E-03   10000.    
    13 'norm      '    .12871E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.077       1.0000         .10000E-03   10000.    
    15 'norm      '    .60032       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.5625       1.0000         .10000E-03   10000.    
    18 'Prefactor '    44.331       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0514       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .98478       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=   9464.383     FROM MIGRAD    STATUS=FAILED       762 CALLS     2490 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .86865E-01    2.2162        .12287E-02    .58150E-02
   2  Prefactor     8.8484        14.551        .13476E-03    .70866E-05
   3  norm          .10000E-03    .62833        .75031E-03** at limit **
   4  Prefactor     .10000E-03    9.9151        .76025E-01** at limit **
   5  Prefactor     .10000E-03    13.503        .18142E-02** at limit **
   6  Prefactor     .10083E-03    7.4212        .74573E-01** at limit **
   7  Prefactor     30.331        21.238        .72748E-04    .28692E-04
   8  norm          3.6661        1.5309        .73920E-04   -.40787E-03
   9  Prefactor     .10001E-03    41.554        .18142E-02** at limit **
  10  Prefactor     24.627        13.020        .80718E-04    .22253E-04
  11  Prefactor     30.510        25.432        .72538E-04   -.58616E-04
  12  Prefactor     3.4813        4.7675        .10838E-02    .36130E-03
  13  norm          .10000E-03    4.5382        .25941E-02** at limit **
  14  Prefactor     11.064        15.181        .12038E-03   -.15356E-03
  15  norm          .59940        1.7898        .22037E-03   -.87184E-04
  16  Prefactor     .10000E-03    10.094        .18142E-02** at limit **
  17  Prefactor     9.5619        11.340        .12959E-03   -.24739E-04
  18  Prefactor     44.322        33.620        .60214E-04   -.36250E-04
  19  Normalizat    1.0517        .23391        .34684E-03   -.14344E-03
  20  Prefactor     .98468        .11758        .18463E-03   -.94472E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   9464.383     FROM SIMPLEX   STATUS=UNCHANGED    986 CALLS     3476 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .86865E-01    2.2162        .16944E-06   -1.5649    
   2  Prefactor     8.8484        14.551        .16731E-06   -1.5113    
   3  norm          .10000E-03    .62833        .15357E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.9151        .40581E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.503        .77806E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10083E-03    7.4212        .34409E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     30.331        21.238        .14788E-06   -1.4606    
   8  norm          3.6661        1.5309        .15518E-06   -1.5325    
   9  Prefactor     .10001E-03    41.554        .10169E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     24.627        13.020        .14903E-06   -1.4715    
  11  Prefactor     30.510        25.432        .14801E-06   -1.4603    
  12  Prefactor     3.4813        4.7675        .15548E-06   -1.5335    
  13  norm          .10000E-03    4.5382        .20407E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.064        15.181        .15220E-06   -1.5043    
  15  norm          .59940        1.7898        .15747E-06   -1.5553    
  16  Prefactor     .10000E-03    10.094        .52307E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     9.5619        11.340        .15278E-06   -1.5089    
  18  Prefactor     44.322        33.620        .14560E-06   -1.4375    
  19  Normalizat    1.0517        .23391        .92485E-07   -.91317    
  20  Prefactor     .98468        .11758        .94415E-07   -.93242    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9464.383     FROM MIGRAD    STATUS=CONVERGED    298 CALLS     3774 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .86864E-01    2.2077        .24574E-03    .99927E-05
   2  Prefactor     8.8484        14.513        .53903E-05    .25309E-05
   3  norm          .10000E-03    .62835        .15006E-03** at limit **
   4  Prefactor     .10000E-03    8.7348        .83112E-01** at limit **
   5  Prefactor     .10000E-03    13.505        .36285E-03** at limit **
   6  Prefactor     .10079E-03    7.0154        .77880E-01** at limit **
   7  Prefactor     30.331        21.237        .14550E-04    .31255E-06
   8  norm          3.6661        1.5308        .29568E-05    .15380E-05
   9  Prefactor     .10000E-03    41.584        .36285E-03** at limit **
  10  Prefactor     24.627        13.018        .32287E-05    .14084E-05
  11  Prefactor     30.510        25.436        .29015E-05    .31345E-05
  12  Prefactor     3.4813        4.7658        .43350E-04    .68186E-05
  13  norm          .10000E-03    4.5689        .51881E-03** at limit **
  14  Prefactor     11.064        15.175        .48151E-05   -.94443E-06
  15  norm          .59940        1.7896        .88149E-05    .31985E-05
  16  Prefactor     .10000E-03    10.096        .36285E-03** at limit **
  17  Prefactor     9.5619        11.340        .51837E-05    .17545E-06
  18  Prefactor     44.322        33.618        .24086E-05     .0000    
  19  Normalizat    1.0517        .23402        .13874E-04    .41628E-04
  20  Prefactor     .98468        .11766        .36927E-04    .67855E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0868643
  Prefactor  = 8.8484
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.000100794
  Prefactor  = 30.3312
  norm       = 3.66613
  Prefactor  = 0.0001
  Prefactor  = 24.6267
  Prefactor  = 30.5103
  Prefactor  = 3.4813
  norm       = 0.0001
  Prefactor  = 11.0644
  norm       = 0.5994
  Prefactor  = 0.0001
  Prefactor  = 9.56188
  Prefactor  = 44.3217
  Normalizat = 1.05172
  Prefactor  = 0.984683
 **********
 **   18 **HESSE 
 **********

 FCN=   9464.383     FROM HESSE     STATUS=OK           293 CALLS     4067 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .86864E-01    2.2030        .98297E-05   -1.5649    
   2  Prefactor     8.8484        14.511        .10781E-05   -1.5113    
   3  norm          .10000E-03    .62835        .30013E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.0464        .81071E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.505        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10079E-03    7.1039        .77124E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     30.331        21.241        .29099E-05   -1.4606    
   8  norm          3.6661        1.5309        .59136E-06   -1.5325    
   9  Prefactor     .10000E-03    41.586        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     24.627        13.011        .64575E-06   -1.4715    
  11  Prefactor     30.510        25.432        .58030E-06   -1.4603    
  12  Prefactor     3.4813        4.7647        .17340E-05   -1.5335    
  13  norm          .10000E-03    4.5702        .10376E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.064        15.159        .96301E-06   -1.5043    
  15  norm          .59940        1.7896        .88149E-05   -1.5553    
  16  Prefactor     .10000E-03    10.096        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     9.5619        11.340        .51837E-05   -1.5089    
  18  Prefactor     44.322        33.613        .24086E-05   -1.4375    
  19  Normalizat    1.0517        .23408        .27747E-05   -.91317    
  20  Prefactor     .98468        .11765        .73854E-05   -.93242    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.63166e-11
Minuit parameter uncertainties:
  1  0.874426
  2  14.5171
  3  1.34937e-08
  4  0.000338151
  5  1.70404e-06
  6  0.00475198
  7  21.2464
  8  1.53095
  9  4.40179e-07
  10  13.0128
  11  25.4409
  12  4.7652
  13  4.28694e-06
  14  15.1645
  15  1.78976
  16  8.36511e-07
  17  11.3427
  18  33.6279
  19  0.234309
  20  0.117681
Done.

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

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  3.051e+01  2.544e+01  1.000e-04  1.000e+04 ( 1.000e-14)
413        Index:  2.003e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
414        Scale:  3.565e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
541    Prefactor:  9.847e-01  1.177e-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.052e+00  2.343e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.10
Ra Dec: 349.438 28.659
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 3.90e-08 +/- 3.25e-08
Energy Flux (Fixed Index): 2.68e-05 +/- 2.23e-05

TS (Fixed Index): 2.10
Ra Dec: 349.438 28.659
Photon Flux Upper Limit: 1.08e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.07e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/739035/likelihoodResults_459907201_460166401_4FGL_J2317.7+2839_daily_bin851.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9464.11931499
delta logL = 0.263651528359

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9464.11355781
delta logL = 0.269408708071

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.653       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4244       1.0000          .0000       10.000    
     3 'Normalizat'    1.0270       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99165       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=   9464.114     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      310 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.660        37.678        .10463E-03    .31922E-03
   2  Index         2.4241        1.0008        .50039E-02    .18860E-03
   3  Normalizat    1.0271        .22991        .35044E-03   -.43984E-03
   4  Prefactor     .99160        .11766        .18403E-03   -.30112E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.6601
  Index      = 2.42407
  Normalizat = 1.0271
  Prefactor  = 0.991599
 **********
 **   18 **HESSE 
 **********

 FCN=   9464.114     FROM HESSE     STATUS=OK            25 CALLS      335 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.660        23.657        .41854E-05   -1.4942    
   2  Index         2.4241        .63053        .20016E-03   -.54122    
   3  Normalizat    1.0271        .22574        .14018E-04   -.92128    
   4  Prefactor     .99160        .11618        .36806E-04   -.93010    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.41528e-10
Minuit parameter uncertainties:
  1  23.6722
  2  0.632827
  3  0.225952
  4  0.116211
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/739035': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9464.11355749
delta logL = 0.269409027256

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  1.466e+01  2.367e+01  1.000e-04  1.000e+04 ( 1.000e-14)
413        Index:  2.424e+00  6.328e-01  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.916e-01  1.162e-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.027e+00  2.260e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.67
Ra Dec: 349.438 28.659
Photon Index (Free Index): 2.42 +/- 0.63
Photon Flux (Free Index): 5.96e-08 +/- 4.90e-08
Energy Flux (Free Index): 1.89e-05 +/- 1.60e-05

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/739035/cmap_HighResolution_459907201_460166401_4FGL_J2317.7+2839_daily_bin851.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.07e-03', comment='SUCCESS', photon_flux='3.90e-08', energy_flux2='1.89e-05', photon_flux_error='3.25e-08', dlogl='2.69e-01', energy_flux='2.68e-05', photon_flux2='5.96e-08', job_status='DONE', time_completed='2021-09-29 11:07:00.810356', photon_index_error2='0.63', photon_index2='2.42', ts='2.10', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.08e-07', energy_flux_error2='1.60e-05', EG='1.05', time_epoch_completed='1632938820.81', return_code='0', job_id='739035', GAL2='0.99', EG2='1.03', return_code2='0', energy_flux_error='2.23e-05', photon_flux_error2='4.90e-08', ts2='2.67', photon_index='2.00' WHERE bin_id='851' AND source_name='4FGL J2317.7+2839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:07:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 739035: <4FGL_J2317.7+2839_daily_bin851> in cluster <slac> Done

Job <4FGL_J2317.7+2839_daily_bin851> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep 29 10:50:36 2021
Job was executed on host(s) <bullet0210>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 10:50:37 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:50:37 2021
Terminated at Wed Sep 29 11:07:01 2021
Results reported at Wed Sep 29 11:07:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2317.7+2839_daily_bin851 349.438 28.6589 459907201 460166401 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 :                                   955.09 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   984 sec.
    Turnaround time :                            985 sec.

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

