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


Performing analysis on: 4FGL_J2317.7+2839_daily_bin87
RA = 349.438, Dec = 28.6589
tmin = 261878401, tmax = 262137601
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='733353', job_status='RUN', time_executed='2021-09-29 10:40:08.641340', time_epoch_executed='1632937208.64' WHERE source_name='4FGL J2317.7+2839' and cadence='daily' and bin_id='87'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/733353

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/733353/ft1_4FGL_J2317.7+2839_daily_bin87.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/733353/ft2_4FGL_J2317.7+2839_daily_bin87.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/733353/ft1_4FGL_J2317.7+2839_daily_bin87.fits outfile=/scratch/kocevski/733353/ft1_filteredMKT_4FGL_J2317.7+2839_daily_bin87.fits ra=349.438 dec=28.6589 rad=12.0 tmin=261878401.0 tmax=262137601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 1.38
user 1.22
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/733353/ft1_filtered_4FGL_J2317.7+2839_daily_bin87.fits" evtable="EVENTS" scfile=/scratch/kocevski/733353/ft2_4FGL_J2317.7+2839_daily_bin87.fits sctable="SC_DATA" outfile=/scratch/kocevski/733353/ltcube_261878401_262137601_4FGL_J2317.7+2839_daily_bin87.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/733353/ft2_4FGL_J2317.7+2839_daily_bin87.fits
.....................!
real 12.56
user 12.21
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/733353/ft1_filtered_4FGL_J2317.7+2839_daily_bin87.fits evtable="EVENTS" scfile=/scratch/kocevski/733353/ft2_4FGL_J2317.7+2839_daily_bin87.fits sctable="SC_DATA" expcube=/scratch/kocevski/733353/ltcube_261878401_262137601_4FGL_J2317.7+2839_daily_bin87.fits outfile=/scratch/kocevski/733353/expmap_261878401_262137601_4FGL_J2317.7+2839_daily_bin87.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/733353/ltcube_261878401_262137601_4FGL_J2317.7+2839_daily_bin87.fits
.....................!
real 189.70
user 185.14
sys 4.25

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/733353/ft1_filtered_4FGL_J2317.7+2839_daily_bin87.fits scfile=/scratch/kocevski/733353/ft2_4FGL_J2317.7+2839_daily_bin87.fits outfile=/scratch/kocevski/733353/cmap_261878401_262137601_4FGL_J2317.7+2839_daily_bin87.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/733353/ft1_filtered_4FGL_J2317.7+2839_daily_bin87.fits scfile=/scratch/kocevski/733353/ft2_4FGL_J2317.7+2839_daily_bin87.fits outfile=/scratch/kocevski/733353/cmap_HighResolution_261878401_262137601_4FGL_J2317.7+2839_daily_bin87.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.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/733353/ft1_filtered_4FGL_J2317.7+2839_daily_bin87.fits evtable="EVENTS" scfile=/scratch/kocevski/733353/ft2_4FGL_J2317.7+2839_daily_bin87.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/733353/Model_4FGL_J2317.7+2839_daily_bin87.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/733353/ft1_filtered_4FGL_J2317.7+2839_daily_bin87.fits.....................!
real 93.28
user 91.91
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7835       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.9435       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.561       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.463       1.0000         .10000E-03   10000.    
     8 'norm      '    .57219       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.2143       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.682       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10304E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.5285       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.6394       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    69.695       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .62236       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0741       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=   8709.626     FROM MIGRAD    STATUS=CONVERGED    413 CALLS     2051 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7836        .91133       -.51631E-07   -.11172E-03
   2  Prefactor     .10000E-03    5.1119       -.27794E-06** at limit **
   3  norm          2.9434        1.6631       -.30044E-07   -.60008E-04
   4  Prefactor     .10000E-03    2.2668       -.20702E-07** at limit **
   5  Prefactor     14.558        18.282       -.26245E-05    .15319E-03
   6  Prefactor     .10000E-03    3.9270        .40061E-08** at limit **
   7  Prefactor     14.463        13.653       -.33774E-06    .54660E-04
   8  norm          .57258        .94005       -.23721E-06   -.19081E-02
   9  Prefactor     1.1605        47.634       -.88254E-05   -.14089E-03
  10  Prefactor     .10000E-03    8.8057       -.27735E-06** at limit **
  11  Prefactor     17.681        19.298        .35013E-05   -.19124E-03
  12  Prefactor     .10000E-03    2.8223       -.53555E-08** at limit **
  13  norm          .10002E-03    2.7058        .63568E-06** at limit **
  14  Prefactor     3.5365        9.3404       -.71528E-05    .11198E-03
  15  norm          .10000E-03    1.0364       -.24049E-07** at limit **
  16  Prefactor     2.6364        19.227       -.37299E-05   -.59739E-04
  17  Prefactor     .10000E-03    6.9911        .19032E-05** at limit **
  18  Prefactor     69.694        38.781       -.26506E-05    .17888E-03
  19  Normalizat    .62243        .18894        .25396E-05    .19480E-04
  20  Prefactor     1.0741        .98668E-01    .57722E-07    .10709E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.78355
  Prefactor  = 0.0001
  norm       = 2.94341
  Prefactor  = 0.0001
  Prefactor  = 14.5582
  Prefactor  = 0.0001
  Prefactor  = 14.4633
  norm       = 0.572575
  Prefactor  = 1.16048
  Prefactor  = 0.0001
  Prefactor  = 17.6808
  Prefactor  = 0.0001
  norm       = 0.000100018
  Prefactor  = 3.53654
  norm       = 0.0001
  Prefactor  = 2.63643
  Prefactor  = 0.0001
  Prefactor  = 69.6936
  Normalizat = 0.622426
  Prefactor  = 1.07405
 **********
 **   18 **HESSE 
 **********

 FCN=   8709.626     FROM HESSE     STATUS=OK           297 CALLS     2348 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7836        .90792        .61599E-04   -1.5441    
   2  Prefactor     .10000E-03    5.1165        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.9434        1.6618        .88200E-04   -1.5365    
   4  Prefactor     .10000E-03    2.2696        .13722E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     14.558        18.237        .10496E-03   -1.4945    
   6  Prefactor     .10000E-03    3.9390        .18060E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.463        13.645        .10532E-03   -1.4947    
   8  norm          .57258        .84309        .11248E-02   -1.5557    
   9  Prefactor     1.1605        52.105        .41010E-03   -1.5493    
  10  Prefactor     .10000E-03    9.0020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     17.681        19.151        .95249E-04   -1.4867    
  12  Prefactor     .10000E-03    2.8530        .15295E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10002E-03    7.3113        .28974E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.5365        9.2001        .21520E-03   -1.5332    
  15  norm          .10000E-03    1.0514        .92765E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.6364        19.501        .25097E-03   -1.5383    
  17  Prefactor     .10000E-03    6.9629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     69.694        38.669        .48083E-04   -1.4036    
  19  Normalizat    .62243        .21010        .38758E-03   -1.0704    
  20  Prefactor     1.0741        .11133        .16268E-03   -.90300    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.4199e-09
Minuit parameter uncertainties:
  1  0.907932
  2  6.70053e-06
  3  1.66186
  4  9.70232e-07
  5  18.2439
  6  3.15889e-06
  7  13.6481
  8  0.843107
  9  15.5659
  10  2.84249e-06
  11  19.1575
  12  3.66762e-06
  13  0.000724332
  14  9.20377
  15  1.34119e-06
  16  14.347
  17  7.61975e-05
  18  38.6832
  19  0.210372
  20  0.111355
Done.

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

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  1.768e+01  1.916e+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:  1.074e+00  1.114e-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.224e-01  2.104e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.28
Ra Dec: 349.438 28.659
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 2.26e-08 +/- 2.45e-08
Energy Flux (Fixed Index): 1.55e-05 +/- 1.68e-05

TS (Fixed Index): 1.28
Ra Dec: 349.438 28.659
Photon Flux Upper Limit: 8.06e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.05e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/733353/likelihoodResults_261878401_262137601_4FGL_J2317.7+2839_daily_bin87.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) = 8709.62634465
delta logL = 6.42189697828e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8709.62628877
delta logL = 0.000120097636682

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.414       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0138       1.0000          .0000       10.000    
     3 'Normalizat'    .62214       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0740       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=   8709.626     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      274 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.409        29.137        .95976E-04    .24828E-03
   2  Index         2.0135        .76884        .84031E-02    .11604E-03
   3  Normalizat    .62214        .20278        .38766E-03    .18399E-03
   4  Prefactor     1.0741        .10999        .16267E-03    .14053E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.4086
  Index      = 2.01353
  Normalizat = 0.622136
  Prefactor  = 1.07412
 **********
 **   18 **HESSE 
 **********

 FCN=   8709.626     FROM HESSE     STATUS=OK            25 CALLS      299 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.409        25.768        .19195E-04   -1.4873    
   2  Index         2.0135        .68072        .33613E-03   -.64012    
   3  Normalizat    .62214        .20251        .15507E-04   -1.0705    
   4  Prefactor     1.0741        .10996        .32535E-04   -.90298    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.50037e-10
Minuit parameter uncertainties:
  1  25.784
  2  0.684036
  3  0.202755
  4  0.109982
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/733353': 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) = 8709.62628706
delta logL = 0.000121808536278

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  1.741e+01  2.578e+01  1.000e-04  1.000e+04 ( 1.000e-14)
413        Index:  2.014e+00  6.840e-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:  1.074e+00  1.100e-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.221e-01  2.028e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.28
Ra Dec: 349.438 28.659
Photon Index (Free Index): 2.01 +/- 0.68
Photon Flux (Free Index): 2.29e-08 +/- 3.01e-08
Energy Flux (Free Index): 1.53e-05 +/- 2.15e-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/733353/cmap_HighResolution_261878401_262137601_4FGL_J2317.7+2839_daily_bin87.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.05e-03', comment='SUCCESS', photon_flux='2.26e-08', energy_flux2='1.53e-05', photon_flux_error='2.45e-08', dlogl='1.22e-04', energy_flux='1.55e-05', photon_flux2='2.29e-08', job_status='DONE', time_completed='2021-09-29 10:51:59.259569', photon_index_error2='0.68', photon_index2='2.01', ts='1.28', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='8.06e-08', energy_flux_error2='2.15e-05', EG='0.62', time_epoch_completed='1632937919.26', return_code='0', job_id='733353', GAL2='1.07', EG2='0.62', return_code2='0', energy_flux_error='1.68e-05', photon_flux_error2='3.01e-08', ts2='1.28', photon_index='2.00' WHERE bin_id='87' AND source_name='4FGL J2317.7+2839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 10:51:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 733353: <4FGL_J2317.7+2839_daily_bin87> in cluster <slac> Done

Job <4FGL_J2317.7+2839_daily_bin87> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Wed Sep 29 10:36:03 2021
Job was executed on host(s) <bullet0240>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 10:36:04 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 10:36:04 2021
Terminated at Wed Sep 29 10:52:00 2021
Results reported at Wed Sep 29 10:52:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2317.7+2839_daily_bin87 349.438 28.6589 261878401 262137601 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 :                                   711.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             275.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   955 sec.
    Turnaround time :                            957 sec.

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

