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


Performing analysis on: 4FGL_J2317.7+2839_daily_bin1010
RA = 349.438, Dec = 28.6589
tmin = 501120001, tmax = 501379201
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='740307', job_status='RUN', time_executed='2021-09-29 10:58:54.601885', time_epoch_executed='1632938334.6' WHERE source_name='4FGL J2317.7+2839' and cadence='daily' and bin_id='1010'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/740307

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/740307/ft1_4FGL_J2317.7+2839_daily_bin1010.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/740307/ft2_4FGL_J2317.7+2839_daily_bin1010.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/740307/ft1_4FGL_J2317.7+2839_daily_bin1010.fits outfile=/scratch/kocevski/740307/ft1_filteredMKT_4FGL_J2317.7+2839_daily_bin1010.fits ra=349.438 dec=28.6589 rad=12.0 tmin=501120001.0 tmax=501379201.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.49
user 3.28
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/740307/ft1_filtered_4FGL_J2317.7+2839_daily_bin1010.fits" evtable="EVENTS" scfile=/scratch/kocevski/740307/ft2_4FGL_J2317.7+2839_daily_bin1010.fits sctable="SC_DATA" outfile=/scratch/kocevski/740307/ltcube_501120001_501379201_4FGL_J2317.7+2839_daily_bin1010.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/740307/ft2_4FGL_J2317.7+2839_daily_bin1010.fits
.....................!
real 12.40
user 11.60
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/740307/ft1_filtered_4FGL_J2317.7+2839_daily_bin1010.fits evtable="EVENTS" scfile=/scratch/kocevski/740307/ft2_4FGL_J2317.7+2839_daily_bin1010.fits sctable="SC_DATA" expcube=/scratch/kocevski/740307/ltcube_501120001_501379201_4FGL_J2317.7+2839_daily_bin1010.fits outfile=/scratch/kocevski/740307/expmap_501120001_501379201_4FGL_J2317.7+2839_daily_bin1010.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/740307/ltcube_501120001_501379201_4FGL_J2317.7+2839_daily_bin1010.fits
.....................!
real 193.20
user 187.43
sys 5.36

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/740307/ft1_filtered_4FGL_J2317.7+2839_daily_bin1010.fits scfile=/scratch/kocevski/740307/ft2_4FGL_J2317.7+2839_daily_bin1010.fits outfile=/scratch/kocevski/740307/cmap_501120001_501379201_4FGL_J2317.7+2839_daily_bin1010.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.56
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/740307/ft1_filtered_4FGL_J2317.7+2839_daily_bin1010.fits scfile=/scratch/kocevski/740307/ft2_4FGL_J2317.7+2839_daily_bin1010.fits outfile=/scratch/kocevski/740307/cmap_HighResolution_501120001_501379201_4FGL_J2317.7+2839_daily_bin1010.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/740307/ft1_filtered_4FGL_J2317.7+2839_daily_bin1010.fits evtable="EVENTS" scfile=/scratch/kocevski/740307/ft2_4FGL_J2317.7+2839_daily_bin1010.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/740307/Model_4FGL_J2317.7+2839_daily_bin1010.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/740307/ft1_filtered_4FGL_J2317.7+2839_daily_bin1010.fits.....................!
real 91.05
user 89.61
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2387       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.3698       1.0000         .10000E-03   10000.    
     3 'norm      '    1.7231       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .21170       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.4439       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.0708       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .56531       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.2843       1.0000         .10000E-03   10000.    
    15 'norm      '    .76152       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    51.674       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .79481       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1131       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=   8161.674     FROM MIGRAD    STATUS=CONVERGED    440 CALLS     2086 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2385        1.1914        .27992E-07    .23643E-04
   2  Prefactor     1.3670        30.252        .13979E-05    .46793E-04
   3  norm          1.7232        1.1999       -.62651E-08   -.88534E-04
   4  Prefactor     .10000E-03    3.2128       -.86529E-08** at limit **
   5  Prefactor     .10000E-03    33.707       -.11037E-07** at limit **
   6  Prefactor     .98288E-01    7.0916        .12982E-06   -.25552E-04
   7  Prefactor     .10000E-03    7.6226       -.29192E-06** at limit **
   8  norm          1.4434        1.2011        .52214E-07    .20655E-03
   9  Prefactor     .10000E-03    22.049        .31819E-07** at limit **
  10  Prefactor     .10000E-03    7.8104        .45225E-06** at limit **
  11  Prefactor     8.0627        21.361       -.29520E-06   -.26548E-05
  12  Prefactor     .54973        7.5244        .34572E-05   -.81718E-03
  13  norm          .10000E-03    1.6776        .14527E-06** at limit **
  14  Prefactor     4.2815        13.431        .37468E-05    .41701E-03
  15  norm          .76122        1.6105       -.44367E-06   -.11546E-02
  16  Prefactor     .10000E-03    5.3742        .18202E-07** at limit **
  17  Prefactor     .10000E-03    5.7989       -.81630E-07** at limit **
  18  Prefactor     51.649        41.033        .34612E-05    .15892E-03
  19  Normalizat    .79467        .21201       -.96981E-06   -.51742E-04
  20  Prefactor     1.1134        .10659       -.17253E-06   -.27898E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.2385
  Prefactor  = 1.36695
  norm       = 1.7232
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0982878
  Prefactor  = 0.0001
  norm       = 1.44336
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.06271
  Prefactor  = 0.54973
  norm       = 0.0001
  Prefactor  = 4.28147
  norm       = 0.761217
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 51.6489
  Normalizat = 0.794672
  Prefactor  = 1.11338
 **********
 **   18 **HESSE 
 **********

 FCN=   8161.674     FROM HESSE     STATUS=OK           303 CALLS     2389 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2385        1.1822        .67458E-04   -1.5409    
   2  Prefactor     1.3670        30.294        .37257E-03   -1.5474    
   3  norm          1.7232        1.2124        .80616E-04   -1.5445    
   4  Prefactor     .10000E-03    3.2179        .15814E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    34.512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .98288E-01    10.932        .73727E-01   -1.5645    
   7  Prefactor     .10000E-03    7.6250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.4434        1.1860        .86354E-04   -1.5468    
   9  Prefactor     .10000E-03    22.225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.9256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.0627        21.365        .14113E-03   -1.5140    
  12  Prefactor     .54973        14.793        .29825E-02   -1.5560    
  13  norm          .10000E-03    1.6869        .11425E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.2815        14.209        .97321E-03   -1.5294    
  15  norm          .76122        1.3724        .17358E-02   -1.5533    
  16  Prefactor     .10000E-03    5.3789        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.8033        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     51.649        40.209        .55792E-04   -1.4269    
  19  Normalizat    .79467        .23852        .37584E-03   -1.0027    
  20  Prefactor     1.1134        .12123        .16952E-03   -.89040    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.42507e-09
Minuit parameter uncertainties:
  1  1.18224
  2  12.877
  3  1.21245
  4  4.73736e-07
  5  1.23699e-05
  6  2.07248
  7  9.98796e-06
  8  1.18606
  9  1.68102e-05
  10  3.07416e-05
  11  21.3856
  12  5.70441
  13  2.27893e-06
  14  14.2204
  15  1.37248
  16  3.65826e-06
  17  9.27495e-06
  18  40.2305
  19  0.238832
  20  0.121257
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
541    Prefactor:  1.113e+00  1.213e-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:  7.947e-01  2.388e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/740307/likelihoodResults_501120001_501379201_4FGL_J2317.7+2839_daily_bin1010.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) = 8161.56728908
delta logL = 0.107193228244

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8161.55379498
delta logL = 0.120687327752

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3399       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7706       1.0000          .0000       10.000    
     3 'Normalizat'    .77511       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1185       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8161.554     FROM MIGRAD    STATUS=FAILED        93 CALLS      305 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3390        309.94        .22102E-03   -.14968E-02
   2  Index         2.7708        5.6613        .88461E-02   -.35749E-03
   3  Normalizat    .77509        .20829        .38021E-03   -.46977E-03
   4  Prefactor     1.1185        .98677E-01    .16917E-03   -.11245E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8161.554     FROM SIMPLEX   STATUS=UNCHANGED     94 CALLS      399 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3390        309.94        .42764E-03   -.14968E-02
   2  Index         2.7708        5.6613        .23413E-02   -.35749E-03
   3  Normalizat    .77509        .20829        .29430E-03   -.46977E-03
   4  Prefactor     1.1185        .98677E-01    .11535E-03   -.11245E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8161.554     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      428 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3384        17.871        .88410E-05   -.17632E-02
   2  Index         2.7709        1.9599        .35385E-03   -.32829E-03
   3  Normalizat    .77509        .23346        .15209E-04   -.46869E-03
   4  Prefactor     1.1185        .12134        .33834E-04   -.11972E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.33836
  Index      = 2.77089
  Normalizat = 0.775085
  Prefactor  = 1.11854
 **********
 **   18 **HESSE 
 **********

 FCN=   8161.554     FROM HESSE     STATUS=OK            23 CALLS      451 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3384        15.793        .17682E-05   -1.5402    
   2  Index         2.7709        1.8494        .14154E-04   -.46209    
   3  Normalizat    .77509        .23306        .30417E-05   -1.0100    
   4  Prefactor     1.1185        .12120        .67667E-05   -.88876    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.23552e-09
Minuit parameter uncertainties:
  1  12.1582
  2  1.90654
  3  0.233364
  4  0.121233
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/740307': 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) = 8161.55379485
delta logL = 0.120687455453

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  2.338e+00  1.216e+01  1.000e-04  1.000e+04 ( 1.000e-14)
413        Index:  2.771e+00  1.907e+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:  1.119e+00  1.212e-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:  7.751e-01  2.334e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.17
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/740307/cmap_HighResolution_501120001_501379201_4FGL_J2317.7+2839_daily_bin1010.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.93e-03', job_status='DONE', photon_flux_upper_limit='7.91e-08', time_completed='2021-09-29 11:11:03.939109', job_id='740307', GAL2='1.12', fit_tolerance='1e-08', EG2='0.78', EG='0.79', time_epoch_completed='1632939063.94', return_code2='0', ts='0.17', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='1.21e-01', ts2='0.43', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1010' AND source_name='4FGL J2317.7+2839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:11:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 740307: <4FGL_J2317.7+2839_daily_bin1010> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2317.7+2839_daily_bin1010 349.438 28.6589 501120001 501379201 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 :                                   724.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             247.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   941 sec.
    Turnaround time :                            943 sec.

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

