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


Performing analysis on: 4FGL_J2317.7+2839_daily_bin1561
RA = 349.438, Dec = 28.6589
tmin = 643939201, tmax = 644198401
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='742201', job_status='RUN', time_executed='2021-09-29 11:01:05.605299', time_epoch_executed='1632938465.61' WHERE source_name='4FGL J2317.7+2839' and cadence='daily' and bin_id='1561'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/742201

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/742201/ft1_4FGL_J2317.7+2839_daily_bin1561.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/742201/ft2_4FGL_J2317.7+2839_daily_bin1561.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/742201/ft1_4FGL_J2317.7+2839_daily_bin1561.fits outfile=/scratch/kocevski/742201/ft1_filteredMKT_4FGL_J2317.7+2839_daily_bin1561.fits ra=349.438 dec=28.6589 rad=12.0 tmin=643939201.0 tmax=644198401.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 4.42
user 4.17
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/742201/ft1_filtered_4FGL_J2317.7+2839_daily_bin1561.fits" evtable="EVENTS" scfile=/scratch/kocevski/742201/ft2_4FGL_J2317.7+2839_daily_bin1561.fits sctable="SC_DATA" outfile=/scratch/kocevski/742201/ltcube_643939201_644198401_4FGL_J2317.7+2839_daily_bin1561.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/742201/ft2_4FGL_J2317.7+2839_daily_bin1561.fits
.....................!
real 11.65
user 11.32
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/742201/ft1_filtered_4FGL_J2317.7+2839_daily_bin1561.fits evtable="EVENTS" scfile=/scratch/kocevski/742201/ft2_4FGL_J2317.7+2839_daily_bin1561.fits sctable="SC_DATA" expcube=/scratch/kocevski/742201/ltcube_643939201_644198401_4FGL_J2317.7+2839_daily_bin1561.fits outfile=/scratch/kocevski/742201/expmap_643939201_644198401_4FGL_J2317.7+2839_daily_bin1561.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/742201/ltcube_643939201_644198401_4FGL_J2317.7+2839_daily_bin1561.fits
.....................!
real 190.97
user 186.05
sys 4.61

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/742201/ft1_filtered_4FGL_J2317.7+2839_daily_bin1561.fits scfile=/scratch/kocevski/742201/ft2_4FGL_J2317.7+2839_daily_bin1561.fits outfile=/scratch/kocevski/742201/cmap_643939201_644198401_4FGL_J2317.7+2839_daily_bin1561.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/742201/ft1_filtered_4FGL_J2317.7+2839_daily_bin1561.fits scfile=/scratch/kocevski/742201/ft2_4FGL_J2317.7+2839_daily_bin1561.fits outfile=/scratch/kocevski/742201/cmap_HighResolution_643939201_644198401_4FGL_J2317.7+2839_daily_bin1561.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/742201/ft1_filtered_4FGL_J2317.7+2839_daily_bin1561.fits evtable="EVENTS" scfile=/scratch/kocevski/742201/ft2_4FGL_J2317.7+2839_daily_bin1561.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/742201/Model_4FGL_J2317.7+2839_daily_bin1561.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/742201/ft1_filtered_4FGL_J2317.7+2839_daily_bin1561.fits.....................!
real 98.57
user 97.17
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .51973       1.0000         .10000E-03   10000.    
     3 'norm      '    .90632       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.9965       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.6447       1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.172       1.0000         .10000E-03   10000.    
     8 'norm      '    7.0045       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    21.434       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.376       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.5398       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .78242       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.9312       1.0000         .10000E-03   10000.    
    18 'Prefactor '    23.868       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .75394       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0427       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=   9022.919     FROM MIGRAD    STATUS=CONVERGED    421 CALLS     2068 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .31235        .83461E-07** at limit **
   2  Prefactor     .41018        10.572       -.19394E-06   -.20097E-04
   3  norm          .90628        .80854       -.23704E-07    .81626E-04
   4  Prefactor     2.9963        5.9733        .26587E-06   -.95094E-04
   5  Prefactor     .10000E-03    4.9928       -.19140E-07** at limit **
   6  Prefactor     3.6447        4.3204        .23284E-06    .23459E-03
   7  Prefactor     20.170        33.825       -.11086E-05   -.65708E-04
   8  norm          7.0041        2.1246        .97140E-07   -.98692E-03
   9  Prefactor     .10000E-03    8.2626        .43371E-08** at limit **
  10  Prefactor     21.425        14.672       -.24102E-06   -.36755E-04
  11  Prefactor     11.359        24.493       -.43512E-05   -.28433E-03
  12  Prefactor     .10000E-03    4.0696        .20871E-06** at limit **
  13  norm          4.5383        4.5077        .29337E-05   -.15110E-02
  14  Prefactor     .10000E-03    26.811       -.16715E-05** at limit **
  15  norm          .78552        1.8981        .80896E-06    .18617E-03
  16  Prefactor     .10000E-03    5.0678        .65233E-07** at limit **
  17  Prefactor     3.9247        29.951       -.21511E-05   -.10778E-03
  18  Prefactor     23.842        40.990       -.80574E-05   -.42748E-03
  19  Normalizat    .75403        .19842        .92267E-06   -.40193E-04
  20  Prefactor     1.0427        .10178       -.26905E-06    .18880E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.410177
  norm       = 0.906281
  Prefactor  = 2.99629
  Prefactor  = 0.0001
  Prefactor  = 3.64474
  Prefactor  = 20.1701
  norm       = 7.00406
  Prefactor  = 0.0001
  Prefactor  = 21.4245
  Prefactor  = 11.3591
  Prefactor  = 0.0001
  norm       = 4.5383
  Prefactor  = 0.0001
  norm       = 0.785522
  Prefactor  = 0.0001
  Prefactor  = 3.92472
  Prefactor  = 23.8418
  Normalizat = 0.754031
  Prefactor  = 1.04267
 **********
 **   18 **HESSE 
 **********

 FCN=   9022.919     FROM HESSE     STATUS=OK           305 CALLS     2373 TOTAL
                     EDM=   .59E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .53934        .10123E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .41018        113.58        .58455E-02   -1.5580    
   3  norm          .90628        .84476        .78667E-03   -1.5518    
   4  Prefactor     2.9963        5.9642        .23450E-03   -1.5362    
   5  Prefactor     .10000E-03    4.9945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.6447        4.3215        .20967E-03   -1.5326    
   7  Prefactor     20.170        33.955        .89177E-04   -1.4809    
   8  norm          7.0041        2.1240        .35417E-03   -1.5179    
   9  Prefactor     .10000E-03    8.2765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     21.425        14.503        .86515E-04   -1.4782    
  11  Prefactor     11.359        24.918        .11878E-03   -1.5034    
  12  Prefactor     .10000E-03    4.1647        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.5383        4.7092        .94471E-03   -1.5282    
  14  Prefactor     .10000E-03    27.243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .78552        1.6751        .19697E-02   -1.5531    
  16  Prefactor     .10000E-03    5.0740        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.9247        30.219        .20346E-03   -1.5312    
  18  Prefactor     23.842        43.447        .81992E-04   -1.4731    
  19  Normalizat    .75403        .22476        .38769E-03   -1.0180    
  20  Prefactor     1.0427        .11735        .17321E-03   -.91320    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.86747e-08
Minuit parameter uncertainties:
  1  7.10119e-06
  2  13.6759
  3  0.844768
  4  5.96543
  5  3.92877e-06
  6  4.32184
  7  33.9876
  8  2.12399
  9  2.47656e-06
  10  14.5051
  11  24.941
  12  8.52649e-06
  13  4.70954
  14  0.000162076
  15  1.67517
  16  2.98057e-06
  17  21.796
  18  43.505
  19  0.225038
  20  0.117383
Done.

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

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  1.136e+01  2.494e+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.043e+00  1.174e-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.540e-01  2.250e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/742201/likelihoodResults_643939201_644198401_4FGL_J2317.7+2839_daily_bin1561.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) = 9022.7735241
delta logL = 0.144993197595

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9022.76873266
delta logL = 0.149784633984

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.5693       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5718       1.0000          .0000       10.000    
     3 'Normalizat'    .73464       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0464       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5440E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9022.769     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      332 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.5672        525.27        .17024E-03   -.74207E-03
   2  Index         2.5717        5.8292        .84635E-02   -.18206E-03
   3  Normalizat    .73408        .28221        .39253E-03   -.33017E-03
   4  Prefactor     1.0467        .13457        .17289E-03   -.95132E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.56719
  Index      = 2.5717
  Normalizat = 0.73408
  Prefactor  = 1.04675
 **********
 **   18 **HESSE 
 **********

 FCN=   9022.769     FROM HESSE     STATUS=OK            25 CALLS      357 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.5672        17.225        .68095E-05   -1.5236    
   2  Index         2.5717        1.1440        .33854E-03   -.50712    
   3  Normalizat    .73408        .22360        .15701E-04   -1.0256    
   4  Prefactor     1.0467        .11482        .34577E-04   -.91187    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.22437e-10
Minuit parameter uncertainties:
  1  17.2402
  2  1.15746
  3  0.223874
  4  0.114846
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/742201': 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) = 9022.76872879
delta logL = 0.149788498908

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  5.567e+00  1.724e+01  1.000e-04  1.000e+04 ( 1.000e-14)
413        Index:  2.572e+00  1.157e+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.047e+00  1.148e-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.341e-01  2.239e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.25
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/742201/cmap_HighResolution_643939201_644198401_4FGL_J2317.7+2839_daily_bin1561.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.65e-03', job_status='DONE', photon_flux_upper_limit='8.86e-08', time_completed='2021-09-29 11:13:30.025718', job_id='742201', GAL2='1.05', fit_tolerance='1e-08', EG2='0.73', EG='0.75', time_epoch_completed='1632939210.03', return_code2='0', ts='0.25', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='1.50e-01', ts2='0.58', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1561' AND source_name='4FGL J2317.7+2839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:13:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 742201: <4FGL_J2317.7+2839_daily_bin1561> in cluster <slac> Done

Job <4FGL_J2317.7+2839_daily_bin1561> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep 29 11:00:49 2021
Job was executed on host(s) <bullet0245>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 11:00:50 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 11:00:50 2021
Terminated at Wed Sep 29 11:13:30 2021
Results reported at Wed Sep 29 11:13:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2317.7+2839_daily_bin1561 349.438 28.6589 643939201 644198401 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 :                                   740.20 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             350.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   760 sec.
    Turnaround time :                            761 sec.

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

