/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 124 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 = 7370
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2317.7+2839_daily_bin258
RA = 349.438, Dec = 28.6589
tmin = 306201601, tmax = 306460801
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='734696', job_status='RUN', time_executed='2021-09-29 10:42:50.485476', time_epoch_executed='1632937370.49' WHERE source_name='4FGL J2317.7+2839' and cadence='daily' and bin_id='258'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/734696

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/734696/ft1_4FGL_J2317.7+2839_daily_bin258.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/734696/ft2_4FGL_J2317.7+2839_daily_bin258.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/734696/ft1_4FGL_J2317.7+2839_daily_bin258.fits outfile=/scratch/kocevski/734696/ft1_filteredMKT_4FGL_J2317.7+2839_daily_bin258.fits ra=349.438 dec=28.6589 rad=12.0 tmin=306201601.0 tmax=306460801.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.72
user 3.28
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/734696/ft1_filtered_4FGL_J2317.7+2839_daily_bin258.fits" evtable="EVENTS" scfile=/scratch/kocevski/734696/ft2_4FGL_J2317.7+2839_daily_bin258.fits sctable="SC_DATA" outfile=/scratch/kocevski/734696/ltcube_306201601_306460801_4FGL_J2317.7+2839_daily_bin258.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/734696/ft2_4FGL_J2317.7+2839_daily_bin258.fits
.....................!
real 11.91
user 11.56
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/734696/ft1_filtered_4FGL_J2317.7+2839_daily_bin258.fits evtable="EVENTS" scfile=/scratch/kocevski/734696/ft2_4FGL_J2317.7+2839_daily_bin258.fits sctable="SC_DATA" expcube=/scratch/kocevski/734696/ltcube_306201601_306460801_4FGL_J2317.7+2839_daily_bin258.fits outfile=/scratch/kocevski/734696/expmap_306201601_306460801_4FGL_J2317.7+2839_daily_bin258.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/734696/ltcube_306201601_306460801_4FGL_J2317.7+2839_daily_bin258.fits
.....................!
real 192.11
user 186.50
sys 4.97

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/734696/ft1_filtered_4FGL_J2317.7+2839_daily_bin258.fits scfile=/scratch/kocevski/734696/ft2_4FGL_J2317.7+2839_daily_bin258.fits outfile=/scratch/kocevski/734696/cmap_306201601_306460801_4FGL_J2317.7+2839_daily_bin258.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/734696/ft1_filtered_4FGL_J2317.7+2839_daily_bin258.fits scfile=/scratch/kocevski/734696/ft2_4FGL_J2317.7+2839_daily_bin258.fits outfile=/scratch/kocevski/734696/cmap_HighResolution_306201601_306460801_4FGL_J2317.7+2839_daily_bin258.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.57
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/734696/ft1_filtered_4FGL_J2317.7+2839_daily_bin258.fits evtable="EVENTS" scfile=/scratch/kocevski/734696/ft2_4FGL_J2317.7+2839_daily_bin258.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/734696/Model_4FGL_J2317.7+2839_daily_bin258.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/734696/ft1_filtered_4FGL_J2317.7+2839_daily_bin258.fits.....................!
real 107.91
user 106.34
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.4742       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.3050       1.0000         .10000E-03   10000.    
     3 'norm      '    .15436       1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.598       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.6810       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    6.0198       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.283       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.5483       1.0000         .10000E-03   10000.    
    13 'norm      '    18.583       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    38.286       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.350       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.4315       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .86713       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=   9597.881     FROM MIGRAD    STATUS=CONVERGED    415 CALLS     1769 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.4741        1.1972        .60766E-08   -.43905E-04
   2  Prefactor     4.3049        9.1374       -.37563E-06   -.11232E-03
   3  norm          .15434        .84282       -.40334E-07   -.13881E-04
   4  Prefactor     15.598        11.153        .77005E-08    .67998E-04
   5  Prefactor     8.6809        14.225       -.12559E-07    .86255E-05
   6  Prefactor     .10000E-03    4.3774       -.32803E-08** at limit **
   7  Prefactor     .10000E-03    5.2250        .12200E-08** at limit **
   8  norm          6.0197        1.7137       -.28724E-08    .69571E-04
   9  Prefactor     .10000E-03    48.882       -.45962E-09** at limit **
  10  Prefactor     .10000E-03    3.8527        .26582E-08** at limit **
  11  Prefactor     10.284        14.195       -.44319E-08   -.31725E-04
  12  Prefactor     7.5464        7.6323       -.22469E-06   -.26350E-03
  13  norm          18.583        5.8287        .49406E-08   -.83685E-03
  14  Prefactor     .10000E-03    3.6980        .27839E-08** at limit **
  15  norm          .10000E-03    .93039       -.24472E-08** at limit **
  16  Prefactor     38.287        23.033        .10833E-06   -.58561E-03
  17  Prefactor     .10000E-03    4.1706        .10527E-08** at limit **
  18  Prefactor     16.349        21.893       -.72811E-07    .40527E-03
  19  Normalizat    1.4316        .20623        .57616E-07   -.79088E-04
  20  Prefactor     .86709        .10197        .12299E-07   -.13222E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.47412
  Prefactor  = 4.30487
  norm       = 0.154344
  Prefactor  = 15.5976
  Prefactor  = 8.68091
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.01966
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.2842
  Prefactor  = 7.54639
  norm       = 18.5829
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 38.2867
  Prefactor  = 0.0001
  Prefactor  = 16.3491
  Normalizat = 1.43157
  Prefactor  = 0.867094
 **********
 **   18 **HESSE 
 **********

 FCN=   9597.881     FROM HESSE     STATUS=OK           295 CALLS     2064 TOTAL
                     EDM=   .65E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.4741        1.2040        .60191E-04   -1.5335    
   2  Prefactor     4.3049        12.664        .97081E-03   -1.5293    
   3  norm          .15434        1.8224        .17736E-02   -1.5629    
   4  Prefactor     15.598        11.188        .10141E-03   -1.4918    
   5  Prefactor     8.6809        14.250        .13605E-03   -1.5119    
   6  Prefactor     .10000E-03    18.461        .39764E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.2258        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.0197        1.7146        .65455E-04   -1.5217    
   9  Prefactor     .10000E-03    50.119        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.8685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.284        14.194        .12495E-03   -1.5066    
  12  Prefactor     7.5464        10.150        .72985E-03   -1.5158    
  13  norm          18.583        5.8286        .92910E-04   -1.4846    
  14  Prefactor     .10000E-03    3.7029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .94357        .92268E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     38.287        23.499        .64775E-04   -1.4470    
  17  Prefactor     .10000E-03    4.1722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     16.349        21.920        .99052E-04   -1.4899    
  19  Normalizat    1.4316        .24201        .33110E-03   -.79720    
  20  Prefactor     .86709        .11905        .20654E-03   -.97301    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.51879e-08
Minuit parameter uncertainties:
  1  1.20396
  2  12.6721
  3  1.06041
  4  11.1899
  5  14.256
  6  2.14331e-05
  7  6.92138e-06
  8  1.71463
  9  5.33305e-05
  10  1.47652e-05
  11  14.1983
  12  10.1525
  13  5.82876
  14  1.39706e-05
  15  3.50313e-06
  16  23.5046
  17  5.5452e-06
  18  21.9304
  19  0.242207
  20  0.119085
Done.

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

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  1.028e+01  1.420e+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.671e-01  1.191e-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.432e+00  2.422e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/734696/likelihoodResults_306201601_306460801_4FGL_J2317.7+2839_daily_bin258.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) = 9597.85445887
delta logL = 0.0267945680716

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9597.83771382
delta logL = 0.0435396204757

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.920       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7540       1.0000          .0000       10.000    
     3 'Normalizat'    1.4352       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86631       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=   9597.838     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      261 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.911        22.211        .10735E-03   -.33888E-05
   2  Index         1.7543        .84379        .13597E-01    .36432E-03
   3  Normalizat    1.4353        .23359        .33074E-03    .18562E-04
   4  Prefactor     .86628        .11760        .20662E-03   -.50841E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.911
  Index      = 1.75427
  Normalizat = 1.43527
  Prefactor  = 0.866277
 **********
 **   18 **HESSE 
 **********

 FCN=   9597.838     FROM HESSE     STATUS=OK            25 CALLS      286 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.911        21.417        .42942E-05   -1.4962    
   2  Index         1.7543        .81487        .27194E-02   -.70646    
   3  Normalizat    1.4353        .23373        .13230E-04   -.79614    
   4  Prefactor     .86628        .11769        .82647E-05   -.97330    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.99611e-11
Minuit parameter uncertainties:
  1  21.4285
  2  0.821235
  3  0.233907
  4  0.117727
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/734696': 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) = 9597.83771356
delta logL = 0.0435398780173

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  1.391e+01  2.143e+01  1.000e-04  1.000e+04 ( 1.000e-14)
413        Index:  1.754e+00  8.212e-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.663e-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.435e+00  2.339e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.08
Ra Dec: 349.438 28.659
Photon Index (Free Index): 1.75 +/- 0.82
Photon Flux (Free Index): 9.69e-09 +/- 1.74e-08
Energy Flux (Free Index): 1.33e-05 +/- 2.59e-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/734696/cmap_HighResolution_306201601_306460801_4FGL_J2317.7+2839_daily_bin258.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.21e-03', comment='SUCCESS', energy_flux2='1.33e-05', dlogl='4.35e-02', photon_flux2='9.69e-09', job_status='DONE', time_completed='2021-09-29 10:55:28.059186', photon_index_error2='0.82', photon_index2='1.75', ts='1.00', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='6.95e-08', energy_flux_error2='2.59e-05', EG='1.43', time_epoch_completed='1632938128.06', return_code='0', job_id='734696', GAL2='0.87', EG2='1.44', return_code2='0', photon_flux_error2='1.74e-08', ts2='1.08', photon_index='2.00' WHERE bin_id='258' AND source_name='4FGL J2317.7+2839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 10:55:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 734696: <4FGL_J2317.7+2839_daily_bin258> in cluster <slac> Done

Job <4FGL_J2317.7+2839_daily_bin258> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep 29 10:40:35 2021
Job was executed on host(s) <bullet0263>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 10:40: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:40:37 2021
Terminated at Wed Sep 29 10:55:28 2021
Results reported at Wed Sep 29 10:55:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2317.7+2839_daily_bin258 349.438 28.6589 306201601 306460801 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 :                                   752.06 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             348.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   891 sec.
    Turnaround time :                            893 sec.

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

