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


Performing analysis on: 4FGL_J2317.7+2839_daily_bin79
RA = 349.438, Dec = 28.6589
tmin = 259804801, tmax = 260064001
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='733341', job_status='RUN', time_executed='2021-09-29 10:39:17.383917', time_epoch_executed='1632937157.38' WHERE source_name='4FGL J2317.7+2839' and cadence='daily' and bin_id='79'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/733341

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/733341/ft1_4FGL_J2317.7+2839_daily_bin79.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/733341/ft2_4FGL_J2317.7+2839_daily_bin79.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/733341/ft1_4FGL_J2317.7+2839_daily_bin79.fits outfile=/scratch/kocevski/733341/ft1_filteredMKT_4FGL_J2317.7+2839_daily_bin79.fits ra=349.438 dec=28.6589 rad=12.0 tmin=259804801.0 tmax=260064001.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 2.69
user 2.47
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/733341/ft1_filtered_4FGL_J2317.7+2839_daily_bin79.fits" evtable="EVENTS" scfile=/scratch/kocevski/733341/ft2_4FGL_J2317.7+2839_daily_bin79.fits sctable="SC_DATA" outfile=/scratch/kocevski/733341/ltcube_259804801_260064001_4FGL_J2317.7+2839_daily_bin79.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/733341/ft2_4FGL_J2317.7+2839_daily_bin79.fits
.....................!
real 12.31
user 11.95
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/733341/ft1_filtered_4FGL_J2317.7+2839_daily_bin79.fits evtable="EVENTS" scfile=/scratch/kocevski/733341/ft2_4FGL_J2317.7+2839_daily_bin79.fits sctable="SC_DATA" expcube=/scratch/kocevski/733341/ltcube_259804801_260064001_4FGL_J2317.7+2839_daily_bin79.fits outfile=/scratch/kocevski/733341/expmap_259804801_260064001_4FGL_J2317.7+2839_daily_bin79.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/733341/ltcube_259804801_260064001_4FGL_J2317.7+2839_daily_bin79.fits
.....................!
real 191.30
user 186.40
sys 4.52

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/733341/ft1_filtered_4FGL_J2317.7+2839_daily_bin79.fits scfile=/scratch/kocevski/733341/ft2_4FGL_J2317.7+2839_daily_bin79.fits outfile=/scratch/kocevski/733341/cmap_259804801_260064001_4FGL_J2317.7+2839_daily_bin79.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.55
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/733341/ft1_filtered_4FGL_J2317.7+2839_daily_bin79.fits scfile=/scratch/kocevski/733341/ft2_4FGL_J2317.7+2839_daily_bin79.fits outfile=/scratch/kocevski/733341/cmap_HighResolution_259804801_260064001_4FGL_J2317.7+2839_daily_bin79.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.1213       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.9374       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .16262E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.1139       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .61347E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.5774       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.253       1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.705       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.4416       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.4444       1.0000         .10000E-03   10000.    
    13 'norm      '    .10363E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.3686       1.0000         .10000E-03   10000.    
    15 'norm      '    7.8181       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.6149       1.0000         .10000E-03   10000.    
    18 'Prefactor '    86.008       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .82399       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .96838       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=   9267.836     FROM MIGRAD    STATUS=CONVERGED    432 CALLS     1812 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.1211        1.6520        .58704E-08   -.26756E-04
   2  Prefactor     .10000E-03    14.720        .95705E-07** at limit **
   3  norm          2.9371        1.6310       -.66349E-08    .43567E-04
   4  Prefactor     .10000E-03    5.2237       -.10108E-06** at limit **
   5  Prefactor     8.1146        8.8979       -.25692E-06   -.61494E-05
   6  Prefactor     .10001E-03    4.5928       -.10804E-06** at limit **
   7  Prefactor     .10000E-03    23.105        .54990E-07** at limit **
   8  norm          1.5777        1.2963        .73151E-08   -.18594E-03
   9  Prefactor     12.247        16.980        .36201E-05    .58597E-04
  10  Prefactor     16.706        12.767        .11689E-05    .34349E-04
  11  Prefactor     9.4380        18.982        .30853E-05    .26320E-04
  12  Prefactor     6.4421        5.0541        .12827E-07   -.60160E-04
  13  norm          .10000E-03    2.9910        .42674E-07** at limit **
  14  Prefactor     6.3632        11.077       -.45260E-06   -.35119E-04
  15  norm          7.8184        2.9706       -.45002E-07    .44079E-03
  16  Prefactor     .10000E-03    11.828        .46606E-07** at limit **
  17  Prefactor     2.6143        4.4926        .62191E-06   -.77043E-03
  18  Prefactor     85.977        39.546       -.23596E-05   -.58372E-04
  19  Normalizat    .82450        .19382       -.80969E-07   -.20857E-04
  20  Prefactor     .96811        .96996E-01   -.35528E-06    .46004E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.12107
  Prefactor  = 0.0001
  norm       = 2.93713
  Prefactor  = 0.000100003
  Prefactor  = 8.1146
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  norm       = 1.57766
  Prefactor  = 12.2471
  Prefactor  = 16.7064
  Prefactor  = 9.43801
  Prefactor  = 6.4421
  norm       = 0.0001
  Prefactor  = 6.36315
  norm       = 7.8184
  Prefactor  = 0.0001
  Prefactor  = 2.61435
  Prefactor  = 85.9774
  Normalizat = 0.824502
  Prefactor  = 0.968109
 **********
 **   18 **HESSE 
 **********

 FCN=   9267.836     FROM HESSE     STATUS=OK           307 CALLS     2119 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.1211        1.6521        .53293E-04   -1.5138    
   2  Prefactor     .10000E-03    14.761        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.9371        1.6105        .88024E-04   -1.5365    
   4  Prefactor     .10000E-03    40.080        .41817E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.1146        8.9002        .14075E-03   -1.5138    
   6  Prefactor     .10001E-03    6.8167        .68604E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    23.172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.5777        1.2817        .94648E-04   -1.5457    
   9  Prefactor     12.247        16.998        .11444E-03   -1.5008    
  10  Prefactor     16.706        12.761        .97994E-04   -1.4890    
  11  Prefactor     9.4380        18.954        .13042E-03   -1.5093    
  12  Prefactor     6.4421        5.0537        .15810E-03   -1.5200    
  13  norm          .10000E-03    3.0843        .32404E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.3632        11.033        .15905E-03   -1.5203    
  15  norm          7.8184        2.9819        .49750E-03   -1.5149    
  16  Prefactor     .10000E-03    12.033        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.6143        10.467        .12612E-02   -1.5385    
  18  Prefactor     85.977        39.646        .43319E-04   -1.3851    
  19  Normalizat    .82450        .22079        .37181E-03   -.99166    
  20  Prefactor     .96811        .11186        .17978E-03   -.93800    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.58033e-09
Minuit parameter uncertainties:
  1  1.65208
  2  2.77991e-06
  3  1.61056
  4  0.000720923
  5  8.90162
  6  0.000394859
  7  4.42653e-06
  8  1.28172
  9  17.0046
  10  12.7627
  11  18.9663
  12  5.054
  13  4.21816e-06
  14  11.0367
  15  2.982
  16  3.37716e-06
  17  10.4653
  18  39.6584
  19  0.221031
  20  0.111891
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
541    Prefactor:  9.681e-01  1.119e-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:  8.245e-01  2.210e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/733341/likelihoodResults_259804801_260064001_4FGL_J2317.7+2839_daily_bin79.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) = 9267.13472996
delta logL = 0.701654673774

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9267.12744558
delta logL = 0.708939053713

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .63780       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4753       1.0000          .0000       10.000    
     3 'Normalizat'    .76023       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98607       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=   9267.127     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      320 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .63786        7.7688        .11821E-01    .14181E-02
   2  Index         3.4755        1.7467        .76621E-01    .12597E-03
   3  Normalizat    .76042        .43352E-01    .87125E-01   -.14456E-03
   4  Prefactor     .98599        .22494E-01    .46093E-01   -.12260E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.637857
  Index      = 3.47546
  Normalizat = 0.760424
  Prefactor  = 0.985991
 **********
 **   18 **HESSE 
 **********

 FCN=   9267.127     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      353 TOTAL
                     EDM=   .56E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .63786        21.598        .64100E-03   -1.5548    
   2  Index         3.4755        3.4372        .43164E-02   -.30984    
   3  Normalizat    .76042        .16379        .38588E-03   -1.0155    
   4  Prefactor     .98599        .82719E-01    .17827E-03   -.93198    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.58776e-07
Minuit parameter uncertainties:
  1  7.42574
  2  3.84004
  3  0.163898
  4  0.0827292
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/733341': 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): 102
logL (Free Index) = 9267.12744456
delta logL = 0.708940078166

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  6.379e-01  7.426e+00  1.000e-04  1.000e+04 ( 1.000e-14)
413        Index:  3.475e+00  3.840e+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:  9.860e-01  8.273e-02  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:  7.604e-01  1.639e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.91
Ra Dec: 349.438 28.659
Photon Index (Free Index): 3.48 +/- 3.84
Photon Flux (Free Index): 6.40e-08 +/- 6.24e-08
Energy Flux (Free Index): 1.07e-05 +/- 1.01e-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/733341/cmap_HighResolution_259804801_260064001_4FGL_J2317.7+2839_daily_bin79.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.56e-03', comment='SUCCESS', energy_flux2='1.07e-05', dlogl='7.09e-01', photon_flux2='6.40e-08', job_status='DONE', time_completed='2021-09-29 10:51:32.369852', photon_index_error2='3.84', photon_index2='3.48', ts='0.32', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='7.41e-08', energy_flux_error2='1.01e-05', EG='0.82', time_epoch_completed='1632937892.37', return_code='0', job_id='733341', GAL2='0.99', EG2='0.76', return_code2='102', photon_flux_error2='6.24e-08', ts2='1.91', photon_index='2.00' WHERE bin_id='79' AND source_name='4FGL J2317.7+2839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 10:51:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 733341: <4FGL_J2317.7+2839_daily_bin79> in cluster <slac> Done

Job <4FGL_J2317.7+2839_daily_bin79> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Wed Sep 29 10:36:02 2021
Job was executed on host(s) <bullet0069>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 10:36:03 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:03 2021
Terminated at Wed Sep 29 10:51:33 2021
Results reported at Wed Sep 29 10:51:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2317.7+2839_daily_bin79 349.438 28.6589 259804801 260064001 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 :                                   734.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             255.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   929 sec.
    Turnaround time :                            931 sec.

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

