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


Performing analysis on: 4FGL_J2317.7+2839_daily_bin847
RA = 349.438, Dec = 28.6589
tmin = 458870401, tmax = 459129601
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='739030', job_status='RUN', time_executed='2021-09-29 10:50:49.292971', time_epoch_executed='1632937849.29' WHERE source_name='4FGL J2317.7+2839' and cadence='daily' and bin_id='847'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/739030

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/739030/ft1_4FGL_J2317.7+2839_daily_bin847.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/739030/ft2_4FGL_J2317.7+2839_daily_bin847.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/739030/ft1_4FGL_J2317.7+2839_daily_bin847.fits outfile=/scratch/kocevski/739030/ft1_filteredMKT_4FGL_J2317.7+2839_daily_bin847.fits ra=349.438 dec=28.6589 rad=12.0 tmin=458870401.0 tmax=459129601.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.57
user 3.35
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/739030/ft1_filtered_4FGL_J2317.7+2839_daily_bin847.fits" evtable="EVENTS" scfile=/scratch/kocevski/739030/ft2_4FGL_J2317.7+2839_daily_bin847.fits sctable="SC_DATA" outfile=/scratch/kocevski/739030/ltcube_458870401_459129601_4FGL_J2317.7+2839_daily_bin847.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/739030/ft2_4FGL_J2317.7+2839_daily_bin847.fits
.....................!
real 11.94
user 11.57
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/739030/ft1_filtered_4FGL_J2317.7+2839_daily_bin847.fits evtable="EVENTS" scfile=/scratch/kocevski/739030/ft2_4FGL_J2317.7+2839_daily_bin847.fits sctable="SC_DATA" expcube=/scratch/kocevski/739030/ltcube_458870401_459129601_4FGL_J2317.7+2839_daily_bin847.fits outfile=/scratch/kocevski/739030/expmap_458870401_459129601_4FGL_J2317.7+2839_daily_bin847.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/739030/ltcube_458870401_459129601_4FGL_J2317.7+2839_daily_bin847.fits
.....................!
real 192.13
user 186.01
sys 5.69

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/739030/ft1_filtered_4FGL_J2317.7+2839_daily_bin847.fits scfile=/scratch/kocevski/739030/ft2_4FGL_J2317.7+2839_daily_bin847.fits outfile=/scratch/kocevski/739030/cmap_458870401_459129601_4FGL_J2317.7+2839_daily_bin847.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/739030/ft1_filtered_4FGL_J2317.7+2839_daily_bin847.fits scfile=/scratch/kocevski/739030/ft2_4FGL_J2317.7+2839_daily_bin847.fits outfile=/scratch/kocevski/739030/cmap_HighResolution_458870401_459129601_4FGL_J2317.7+2839_daily_bin847.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=349.438 yref=28.6589 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/739030/ft1_filtered_4FGL_J2317.7+2839_daily_bin847.fits evtable="EVENTS" scfile=/scratch/kocevski/739030/ft2_4FGL_J2317.7+2839_daily_bin847.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/739030/Model_4FGL_J2317.7+2839_daily_bin847.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/739030/ft1_filtered_4FGL_J2317.7+2839_daily_bin847.fits.....................!
real 84.43
user 82.92
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.4266       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.0076       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.047       1.0000         .10000E-03   10000.    
     8 'norm      '    2.2102       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.0744       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .72800       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.827       1.0000         .10000E-03   10000.    
    13 'norm      '    4.7192       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.2440       1.0000         .10000E-03   10000.    
    15 'norm      '    1.3372       1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.8718       1.0000         .10000E-03   10000.    
    17 'Prefactor '    38.740       1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.065       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0167       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .85866       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=   7336.040     FROM MIGRAD    STATUS=CONVERGED    412 CALLS     2040 TOTAL
                     EDM=   .98E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .49467        .10548E-06** at limit **
   2  Prefactor     .10000E-03    5.6914        .14159E-06** at limit **
   3  norm          .10000E-03    .43455       -.33054E-07** at limit **
   4  Prefactor     .10000E-03    3.8150       -.94842E-08** at limit **
   5  Prefactor     4.4234        21.549       -.22470E-04   -.28773E-04
   6  Prefactor     5.0069        6.1445        .91101E-07   -.18641E-04
   7  Prefactor     11.040        20.309       -.10642E-04   -.79342E-05
   8  norm          2.2099        1.4558        .29914E-08   -.91707E-03
   9  Prefactor     .10000E-03    7.4969       -.17622E-06** at limit **
  10  Prefactor     4.0697        10.710       -.17233E-05   -.13515E-03
  11  Prefactor     .43806        14.810       -.51637E-05   -.25132E-04
  12  Prefactor     11.827        7.3878       -.21659E-06   -.15633E-03
  13  norm          4.7147        4.6738       -.39959E-05   -.17940E-02
  14  Prefactor     1.2585        40.584        .51595E-04   -.15158E-03
  15  norm          1.3372        1.6716       -.41026E-07   -.22850E-03
  16  Prefactor     8.8602        15.390        .62799E-05   -.33917E-04
  17  Prefactor     38.746        26.901       -.35270E-05   -.72269E-04
  18  Prefactor     11.083        25.783        .12056E-04   -.65377E-04
  19  Normalizat    1.0167        .19632       -.64136E-05   -.43497E-04
  20  Prefactor     .85879        .10131        .26282E-05   -.84519E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.42338
  Prefactor  = 5.00686
  Prefactor  = 11.04
  norm       = 2.2099
  Prefactor  = 0.0001
  Prefactor  = 4.06969
  Prefactor  = 0.438059
  Prefactor  = 11.8272
  norm       = 4.71471
  Prefactor  = 1.25852
  norm       = 1.33715
  Prefactor  = 8.86021
  Prefactor  = 38.7465
  Prefactor  = 11.0835
  Normalizat = 1.01667
  Prefactor  = 0.858788
 **********
 **   18 **HESSE 
 **********

 FCN=   7336.040     FROM HESSE     STATUS=OK           303 CALLS     2343 TOTAL
                     EDM=   .52E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.0122        .11665E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.6952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    .43599        .55139E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.8300        .16337E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.4234        21.680        .19140E-03   -1.5287    
   6  Prefactor     5.0069        6.1416        .17970E-03   -1.5260    
   7  Prefactor     11.040        20.284        .12054E-03   -1.5043    
   8  norm          2.2099        1.4506        .79525E-04   -1.5411    
   9  Prefactor     .10000E-03    7.5107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.0697        10.703        .19974E-03   -1.5304    
  11  Prefactor     .43806        167.59        .62714E-02   -1.5576    
  12  Prefactor     11.827        7.3806        .11648E-03   -1.5020    
  13  norm          4.7147        4.5746        .15783E-03   -1.5274    
  14  Prefactor     1.2585        37.535        .40165E-03   -1.5484    
  15  norm          1.3372        1.6478        .12031E-03   -1.5477    
  16  Prefactor     8.8602        15.359        .13457E-03   -1.5113    
  17  Prefactor     38.746        26.929        .64396E-04   -1.4462    
  18  Prefactor     11.083        25.732        .12044E-03   -1.5042    
  19  Normalizat    1.0167        .22640        .31170E-03   -.92474    
  20  Prefactor     .85879        .11903        .17605E-03   -.97596    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.1731e-08
Minuit parameter uncertainties:
  1  6.64454e-06
  2  4.00976e-06
  3  2.72552e-07
  4  5.26051e-06
  5  19.5968
  6  6.14235
  7  20.2964
  8  1.45063
  9  5.77126e-06
  10  10.7079
  11  17.1833
  12  7.38121
  13  4.57489
  14  13.755
  15  1.64784
  16  15.3654
  17  26.9371
  18  25.7573
  19  0.226617
  20  0.119068
Done.

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

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  4.381e-01  1.718e+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.588e-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.017e+00  2.266e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/739030/likelihoodResults_458870401_459129601_4FGL_J2317.7+2839_daily_bin847.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7336.03984797
delta logL = 3.1428573493e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7336.03869953
delta logL = 0.00117987157955

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .44248       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2609       1.0000          .0000       10.000    
     3 'Normalizat'    1.0163       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85875       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.

 FCN=   7336.039     FROM MIGRAD    STATUS=CONVERGED     75 CALLS      258 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .69041        6.1882        .11034        .32296E-03
   2  Index         2.2317        .14472        .50000        .67426E-06
   3  Normalizat    1.0162        .43921E-02    .70468E-01   -.31550E-05
   4  Prefactor     .85861        .23112E-02    .44477E-01   -.34980E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.690406
  Index      = 2.23171
  Normalizat = 1.01622
  Prefactor  = 0.858606
 **********
 **   18 **HESSE 
 **********

 FCN=   7336.039     FROM HESSE     STATUS=OK            35 CALLS      293 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .69041        125.90        .47495E-02   -1.5542    
   2  Index         2.2317        5.9135        .33182E-02   -.58675    
   3  Normalizat    1.0162        .21849        .31177E-03   -.92489    
   4  Prefactor     .85861        .11568        .17606E-03   -.97603    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44303e-10
Minuit parameter uncertainties:
  1  18.6853
  2  5.78388
  3  0.218678
  4  0.11571
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/739030': 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) = 7336.03850594
delta logL = 0.00137346055726

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  6.904e-01  1.869e+01  1.000e-04  1.000e+04 ( 1.000e-14)
413        Index:  2.232e+00  5.784e+00  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.586e-01  1.157e-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.016e+00  2.187e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 349.438 28.659

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/739030/cmap_HighResolution_458870401_459129601_4FGL_J2317.7+2839_daily_bin847.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.07e-03', job_status='DONE', photon_flux_upper_limit='6.75e-08', time_completed='2021-09-29 11:02:08.535722', job_id='739030', GAL2='0.86', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1632938528.54', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='1.37e-03', ts2='0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='847' AND source_name='4FGL J2317.7+2839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:02:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 739030: <4FGL_J2317.7+2839_daily_bin847> in cluster <slac> Done

Job <4FGL_J2317.7+2839_daily_bin847> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep 29 10:50:35 2021
Job was executed on host(s) <bullet0034>, 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:02:09 2021
Results reported at Wed Sep 29 11:02:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2317.7+2839_daily_bin847 349.438 28.6589 458870401 459129601 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 :                                   671.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             313.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   691 sec.
    Turnaround time :                            694 sec.

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

