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


Performing analysis on: 4FGL_J2317.7+2839_daily_bin952
RA = 349.438, Dec = 28.6589
tmin = 486086401, tmax = 486345601
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='740220', job_status='RUN', time_executed='2021-09-29 10:55:32.506795', time_epoch_executed='1632938132.51' WHERE source_name='4FGL J2317.7+2839' and cadence='daily' and bin_id='952'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/740220

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/740220/ft1_4FGL_J2317.7+2839_daily_bin952.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/740220/ft2_4FGL_J2317.7+2839_daily_bin952.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/740220/ft1_4FGL_J2317.7+2839_daily_bin952.fits outfile=/scratch/kocevski/740220/ft1_filteredMKT_4FGL_J2317.7+2839_daily_bin952.fits ra=349.438 dec=28.6589 rad=12.0 tmin=486086401.0 tmax=486345601.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.80
user 3.58
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/740220/ft2_4FGL_J2317.7+2839_daily_bin952.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/740220/ft1_filteredMKT_4FGL_J2317.7+2839_daily_bin952.fits evtable="EVENTS" outfile="/scratch/kocevski/740220/ft1_filtered_4FGL_J2317.7+2839_daily_bin952.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/740220/ft1_filtered_4FGL_J2317.7+2839_daily_bin952.fits" evtable="EVENTS" scfile=/scratch/kocevski/740220/ft2_4FGL_J2317.7+2839_daily_bin952.fits sctable="SC_DATA" outfile=/scratch/kocevski/740220/ltcube_486086401_486345601_4FGL_J2317.7+2839_daily_bin952.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/740220/ft2_4FGL_J2317.7+2839_daily_bin952.fits
.....................!
real 11.83
user 11.48
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/740220/ft1_filtered_4FGL_J2317.7+2839_daily_bin952.fits evtable="EVENTS" scfile=/scratch/kocevski/740220/ft2_4FGL_J2317.7+2839_daily_bin952.fits sctable="SC_DATA" expcube=/scratch/kocevski/740220/ltcube_486086401_486345601_4FGL_J2317.7+2839_daily_bin952.fits outfile=/scratch/kocevski/740220/expmap_486086401_486345601_4FGL_J2317.7+2839_daily_bin952.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/740220/ltcube_486086401_486345601_4FGL_J2317.7+2839_daily_bin952.fits
.....................!
real 190.03
user 184.97
sys 4.74

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/740220/ft1_filtered_4FGL_J2317.7+2839_daily_bin952.fits scfile=/scratch/kocevski/740220/ft2_4FGL_J2317.7+2839_daily_bin952.fits outfile=/scratch/kocevski/740220/cmap_486086401_486345601_4FGL_J2317.7+2839_daily_bin952.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/740220/ft1_filtered_4FGL_J2317.7+2839_daily_bin952.fits scfile=/scratch/kocevski/740220/ft2_4FGL_J2317.7+2839_daily_bin952.fits outfile=/scratch/kocevski/740220/cmap_HighResolution_486086401_486345601_4FGL_J2317.7+2839_daily_bin952.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.55
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .94039       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.9170       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .62689       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10611E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.4443       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.083       1.0000         .10000E-03   10000.    
     8 'norm      '    1.3609       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.7706       1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.032       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.0973       1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .88279       1.0000         .10000E-03   10000.    
    16 'Prefactor '    41.422       1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.577       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.3203       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .98308       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=   8802.035     FROM MIGRAD    STATUS=CONVERGED    395 CALLS     1755 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .94060        .78020        .10647E-07    .80264E-03
   2  Prefactor     .10000E-03    7.7022       -.23962E-06** at limit **
   3  norm          1.9160        1.8101        .29352E-06    .31218E-03
   4  Prefactor     .65057        42.706       -.13670E-04    .11731E-03
   5  Prefactor     .10000E-03    32.360        .10903E-06** at limit **
   6  Prefactor     7.4425        10.872        .25796E-06    .59018E-05
   7  Prefactor     14.084        13.688       -.43783E-07   -.12200E-04
   8  norm          1.3611        1.4023        .79848E-07    .21640E-02
   9  Prefactor     4.7694        14.845        .73523E-07    .80293E-04
  10  Prefactor     11.032        11.189        .37162E-06    .22560E-03
  11  Prefactor     .10000E-03    10.285        .40939E-06** at limit **
  12  Prefactor     7.0933        8.0881       -.24516E-07    .43850E-03
  13  norm          .10000E-03    1.7903       -.81087E-08** at limit **
  14  Prefactor     .10000E-03    7.7578        .21271E-06** at limit **
  15  norm          .88331        1.3247       -.11383E-05   -.14368E-02
  16  Prefactor     41.418        23.213        .72674E-07   -.12556E-03
  17  Prefactor     12.577        12.356       -.19174E-07   -.17446E-05
  18  Prefactor     .10000E-03    10.614       -.47679E-06** at limit **
  19  Normalizat    1.3205        .20789        .26274E-06   -.15071E-03
  20  Prefactor     .98298        .10607        .31694E-07   -.35851E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.9406
  Prefactor  = 0.000100001
  norm       = 1.91604
  Prefactor  = 0.650572
  Prefactor  = 0.000100001
  Prefactor  = 7.44249
  Prefactor  = 14.0836
  norm       = 1.36113
  Prefactor  = 4.76936
  Prefactor  = 11.0317
  Prefactor  = 0.000100003
  Prefactor  = 7.09332
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.883312
  Prefactor  = 41.4182
  Prefactor  = 12.5771
  Prefactor  = 0.000100003
  Normalizat = 1.32054
  Prefactor  = 0.982983
 **********
 **   18 **HESSE 
 **********

 FCN=   8802.035     FROM HESSE     STATUS=OK           299 CALLS     2054 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .94060        .78241        .73078E-04   -1.5514    
   2  Prefactor     .10000E-03    7.7507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.9160        1.7974        .11372E-03   -1.5431    
   4  Prefactor     .65057        43.139        .42067E-02   -1.5547    
   5  Prefactor     .10000E-03    32.829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.4425        10.853        .14699E-03   -1.5162    
   7  Prefactor     14.084        13.691        .10673E-03   -1.4957    
   8  norm          1.3611        1.4013        .10836E-03   -1.5475    
   9  Prefactor     4.7694        14.857        .18421E-03   -1.5271    
  10  Prefactor     11.032        11.206        .12062E-03   -1.5044    
  11  Prefactor     .10000E-03    10.420        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.0933        8.0730        .15058E-03   -1.5175    
  13  norm          .10000E-03    1.8009        .12256E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.8179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .88331        1.3236        .16991E-02   -1.5520    
  16  Prefactor     41.418        23.208        .62284E-04   -1.4420    
  17  Prefactor     12.577        12.358        .11295E-03   -1.4999    
  18  Prefactor     .10000E-03    10.729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.3205        .24199        .33031E-03   -.82955    
  20  Prefactor     .98298        .12429        .19452E-03   -.93299    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.92433e-09
Minuit parameter uncertainties:
  1  0.782418
  2  0.000153762
  3  1.79743
  4  10.6024
  5  0.000299424
  6  10.8563
  7  13.6936
  8  1.40135
  9  14.8686
  10  11.2085
  11  0.000339748
  12  8.0742
  13  3.75914e-06
  14  0.000157737
  15  1.32364
  16  23.2129
  17  12.3602
  18  0.0003297
  19  0.242196
  20  0.12433
Done.

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

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  1.000e-04  3.397e-04  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.830e-01  1.243e-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.321e+00  2.422e-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: 4.89e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.67e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/740220/likelihoodResults_486086401_486345601_4FGL_J2317.7+2839_daily_bin952.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) = 8802.03518092
delta logL = -0.000457266449303

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8802.03472353
delta logL = 1.26981831272e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9766       1.0000          .0000       10.000    
     3 'Normalizat'    1.3205       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98298       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=   8802.035     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      209 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    4.1067        .90712E-02** at limit **
   2  Index         1.9518        5.9340        .50000        .17056E-04
   3  Normalizat    1.3205        .33317E-02    .74640E-01   -.22694E-04
   4  Prefactor     .98298        .17320E-02    .46054E-01   -.59426E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100006
  Index      = 1.95176
  Normalizat = 1.32054
  Prefactor  = 0.982981
 **********
 **   18 **HESSE 
 **********

 FCN=   8802.035     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      240 TOTAL
                     EDM=   .17E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    39.192        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9518        7.2928        .50000       -.65562    
   3  Normalizat    1.3205        .10297E-01    .33031E-03   -.82955    
   4  Prefactor     .98298        .53588E-02    .19452E-03   -.93299    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.70243e-07
Minuit parameter uncertainties:
  1  0.000952228
  2  85.7993
  3  0.0102973
  4  0.00535875
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/740220': 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) = 8802.03472342
delta logL = 2.38049324253e-07

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  1.000e-04  9.522e-04  1.000e-04  1.000e+04 ( 1.000e-14)
413        Index:  1.952e+00  8.580e+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:  9.830e-01  5.359e-03  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.321e+00  1.030e-02  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/740220/cmap_HighResolution_486086401_486345601_4FGL_J2317.7+2839_daily_bin952.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.67e-03', job_status='DONE', photon_flux_upper_limit='4.89e-08', time_completed='2021-09-29 11:07:20.849031', job_id='740220', GAL2='0.98', fit_tolerance='1e-08', EG2='1.32', EG='1.32', time_epoch_completed='1632938840.85', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='2.38e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='952' AND source_name='4FGL J2317.7+2839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:07:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 740220: <4FGL_J2317.7+2839_daily_bin952> in cluster <slac> Done

Job <4FGL_J2317.7+2839_daily_bin952> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 10:55:15 2021
Job was executed on host(s) <bullet0260>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 10:55:16 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:55:16 2021
Terminated at Wed Sep 29 11:07:21 2021
Results reported at Wed Sep 29 11:07:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2317.7+2839_daily_bin952 349.438 28.6589 486086401 486345601 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 :                                   706.08 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             360.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   725 sec.
    Turnaround time :                            726 sec.

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

