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


Performing analysis on: 4FGL_J2317.7+2839_daily_bin1450
RA = 349.438, Dec = 28.6589
tmin = 615168001, tmax = 615427201
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='742020', job_status='RUN', time_executed='2021-09-29 11:03:40.471316', time_epoch_executed='1632938620.47' WHERE source_name='4FGL J2317.7+2839' and cadence='daily' and bin_id='1450'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/742020

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/742020/ft1_4FGL_J2317.7+2839_daily_bin1450.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/742020/ft2_4FGL_J2317.7+2839_daily_bin1450.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/742020/ft1_4FGL_J2317.7+2839_daily_bin1450.fits outfile=/scratch/kocevski/742020/ft1_filteredMKT_4FGL_J2317.7+2839_daily_bin1450.fits ra=349.438 dec=28.6589 rad=12.0 tmin=615168001.0 tmax=615427201.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.53
user 3.35
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/742020/ft1_filtered_4FGL_J2317.7+2839_daily_bin1450.fits" evtable="EVENTS" scfile=/scratch/kocevski/742020/ft2_4FGL_J2317.7+2839_daily_bin1450.fits sctable="SC_DATA" outfile=/scratch/kocevski/742020/ltcube_615168001_615427201_4FGL_J2317.7+2839_daily_bin1450.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/742020/ft2_4FGL_J2317.7+2839_daily_bin1450.fits
.....................!
real 12.23
user 11.84
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/742020/ft1_filtered_4FGL_J2317.7+2839_daily_bin1450.fits evtable="EVENTS" scfile=/scratch/kocevski/742020/ft2_4FGL_J2317.7+2839_daily_bin1450.fits sctable="SC_DATA" expcube=/scratch/kocevski/742020/ltcube_615168001_615427201_4FGL_J2317.7+2839_daily_bin1450.fits outfile=/scratch/kocevski/742020/expmap_615168001_615427201_4FGL_J2317.7+2839_daily_bin1450.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/742020/ltcube_615168001_615427201_4FGL_J2317.7+2839_daily_bin1450.fits
.....................!
real 190.75
user 185.50
sys 4.95

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/742020/ft1_filtered_4FGL_J2317.7+2839_daily_bin1450.fits scfile=/scratch/kocevski/742020/ft2_4FGL_J2317.7+2839_daily_bin1450.fits outfile=/scratch/kocevski/742020/cmap_615168001_615427201_4FGL_J2317.7+2839_daily_bin1450.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.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5238       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .65270       1.0000         .10000E-03   10000.    
     4 'Prefactor '    22.257       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13489E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.1374       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.9673       1.0000         .10000E-03   10000.    
     9 'Prefactor '    32.427       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    29.983       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .17056E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    43.209       1.0000         .10000E-03   10000.    
    15 'norm      '    2.2743       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    20.464       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2317       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .83838       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.848     FROM MIGRAD    STATUS=CONVERGED    739 CALLS     2717 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5234        1.1942        .90055E-04   -.87864E-03
   2  Prefactor     .10000E-03    7.0287        .18142E-02** at limit **
   3  norm          .65165        1.2726        .16943E-02    .50512E-03
   4  Prefactor     22.261        11.394        .84903E-04   -.15372E-03
   5  Prefactor     .10031E-03    7.6689        .98158E-01** at limit **
   6  Prefactor     5.1358        10.520        .17737E-03   -.94603E-04
   7  Prefactor     .10000E-03    10.495        .18142E-02** at limit **
   8  norm          2.9674        1.5247        .81527E-04   -.55555E-03
   9  Prefactor     32.441        24.131        .70366E-04    .10663E-04
  10  Prefactor     .10000E-03    13.577        .18142E-02** at limit **
  11  Prefactor     29.979        20.326        .73170E-04   -.65257E-05
  12  Prefactor     .10287E-03    2.7442        .52184E-01** at limit **
  13  norm          .10000E-03    1.2629        .10661E-02** at limit **
  14  Prefactor     43.209        17.810        .60988E-04   -.15286E-04
  15  norm          2.2740        2.4052        .15059E-03   -.61254E-03
  16  Prefactor     .10000E-03    7.9726        .18142E-02** at limit **
  17  Prefactor     .10000E-03    12.390        .18142E-02** at limit **
  18  Prefactor     20.477        24.454        .88540E-04    .87314E-05
  19  Normalizat    1.2318        .22871        .31742E-03    .46202E-04
  20  Prefactor     .83835        .11187        .19123E-03    .21045E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.52343
  Prefactor  = 0.0001
  norm       = 0.651654
  Prefactor  = 22.2607
  Prefactor  = 0.000100312
  Prefactor  = 5.13582
  Prefactor  = 0.0001
  norm       = 2.96741
  Prefactor  = 32.4412
  Prefactor  = 0.0001
  Prefactor  = 29.9788
  Prefactor  = 0.000102872
  norm       = 0.0001
  Prefactor  = 43.2094
  norm       = 2.27403
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.4767
  Normalizat = 1.2318
  Prefactor  = 0.838355
 **********
 **   18 **HESSE 
 **********

 FCN=   9464.848     FROM HESSE     STATUS=OK           293 CALLS     3010 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5234        1.1941        .36022E-05   -1.5461    
   2  Prefactor     .10000E-03    7.0289        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .65165        1.2702        .67771E-04   -1.5547    
   4  Prefactor     22.261        11.385        .33961E-05   -1.4764    
   5  Prefactor     .10031E-03    7.7157        .97496E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.1358        10.520        .70950E-05   -1.5255    
   7  Prefactor     .10000E-03    10.496        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.9674        1.5247        .32611E-05   -1.5363    
   9  Prefactor     32.441        24.135        .28146E-05   -1.4568    
  10  Prefactor     .10000E-03    13.587        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     29.979        20.328        .29268E-05   -1.4612    
  12  Prefactor     .10287E-03    2.7269        .52481E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.2629        .21323E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     43.209        17.809        .24395E-05   -1.4392    
  15  norm          2.2740        2.4052        .60238E-05   -1.5406    
  16  Prefactor     .10000E-03    7.9736        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    12.397        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     20.477        24.450        .35416E-05   -1.4803    
  19  Normalizat    1.2318        .22888        .12697E-04   -.85626    
  20  Prefactor     .83835        .11197        .76492E-05   -.98330    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24995e-09
Minuit parameter uncertainties:
  1  1.19412
  2  1.32729e-05
  3  1.2702
  4  11.386
  5  0.00310562
  6  10.5233
  7  7.55957e-06
  8  1.52467
  9  24.1422
  10  2.73227e-05
  11  20.3322
  12  0.00559732
  13  4.13865e-06
  14  17.811
  15  2.40526
  16  8.97201e-06
  17  3.67529e-05
  18  24.4622
  19  0.229067
  20  0.111996
Done.

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

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  2.998e+01  2.033e+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:  8.384e-01  1.120e-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.232e+00  2.291e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.23
Ra Dec: 349.438 28.659
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 3.84e-08 +/- 2.60e-08
Energy Flux (Fixed Index): 2.63e-05 +/- 1.79e-05

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.83710108
delta logL = 0.0104082830403

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9464.82937315
delta logL = 0.0181362123058

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    33.234       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8719       1.0000          .0000       10.000    
     3 'Normalizat'    1.2382       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83751       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.829     FROM MIGRAD    STATUS=CONVERGED    110 CALLS      282 TOTAL
                     EDM=   .70E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     33.217        30.333        .34754E-03    .35328E-05
   2  Index         1.8726        .77866        .11357E-01    .42762E-04
   3  Normalizat    1.2381        .22018        .31681E-03    .13062E-04
   4  Prefactor     .83752        .11094        .19136E-03    .20199E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 33.2168
  Index      = 1.87264
  Normalizat = 1.23813
  Prefactor  = 0.837515
 **********
 **   18 **HESSE 
 **********

 FCN=   9464.829     FROM HESSE     STATUS=OK            25 CALLS      307 TOTAL
                     EDM=   .64E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     33.217        27.757        .13902E-04   -1.4555    
   2  Index         1.8726        .71327        .45426E-03   -.67574    
   3  Normalizat    1.2381        .21962        .12672E-04   -.85433    
   4  Prefactor     .83752        .11100        .76546E-05   -.98360    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.37787e-13
Minuit parameter uncertainties:
  1  27.7681
  2  0.717304
  3  0.219779
  4  0.11103
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/742020': 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.82937255
delta logL = 0.0181368163067

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  3.322e+01  2.777e+01  1.000e-04  1.000e+04 ( 1.000e-14)
413        Index:  1.873e+00  7.173e-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:  8.375e-01  1.110e-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.238e+00  2.198e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.24
Ra Dec: 349.438 28.659
Photon Index (Free Index): 1.87 +/- 0.72
Photon Flux (Free Index): 3.06e-08 +/- 4.59e-08
Energy Flux (Free Index): 2.97e-05 +/- 2.98e-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/742020/cmap_HighResolution_615168001_615427201_4FGL_J2317.7+2839_daily_bin1450.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.84e-08', energy_flux2='2.97e-05', photon_flux_error='2.60e-08', dlogl='1.81e-02', energy_flux='2.63e-05', photon_flux2='3.06e-08', job_status='DONE', time_completed='2021-09-29 11:16:57.496524', photon_index_error2='0.72', photon_index2='1.87', ts='12.23', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', energy_flux_error2='2.98e-05', EG='1.23', time_epoch_completed='1632939417.5', return_code='0', job_id='742020', GAL2='0.84', EG2='1.24', return_code2='0', energy_flux_error='1.79e-05', photon_flux_error2='4.59e-08', ts2='12.24', photon_index='2.00' WHERE bin_id='1450' AND source_name='4FGL J2317.7+2839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:16:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0274>
Subject: Job 742020: <4FGL_J2317.7+2839_daily_bin1450> in cluster <slac> Done

Job <4FGL_J2317.7+2839_daily_bin1450> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep 29 11:00:31 2021
Job was executed on host(s) <bullet0274>, 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:58 2021
Results reported at Wed Sep 29 11:16:58 2021

Your job looked like:

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

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

