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


Performing analysis on: 4FGL_J2317.7+2839_daily_bin1364
RA = 349.438, Dec = 28.6589
tmin = 592876801, tmax = 593136001
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='741871', job_status='RUN', time_executed='2021-09-29 11:00:27.157896', time_epoch_executed='1632938427.16' WHERE source_name='4FGL J2317.7+2839' and cadence='daily' and bin_id='1364'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/741871

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/741871/ft1_4FGL_J2317.7+2839_daily_bin1364.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/741871/ft2_4FGL_J2317.7+2839_daily_bin1364.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/741871/ft1_4FGL_J2317.7+2839_daily_bin1364.fits outfile=/scratch/kocevski/741871/ft1_filteredMKT_4FGL_J2317.7+2839_daily_bin1364.fits ra=349.438 dec=28.6589 rad=12.0 tmin=592876801.0 tmax=593136001.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.88
user 3.65
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/741871/ft1_filtered_4FGL_J2317.7+2839_daily_bin1364.fits" evtable="EVENTS" scfile=/scratch/kocevski/741871/ft2_4FGL_J2317.7+2839_daily_bin1364.fits sctable="SC_DATA" outfile=/scratch/kocevski/741871/ltcube_592876801_593136001_4FGL_J2317.7+2839_daily_bin1364.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/741871/ft2_4FGL_J2317.7+2839_daily_bin1364.fits
.....................!
real 12.04
user 11.69
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/741871/ft1_filtered_4FGL_J2317.7+2839_daily_bin1364.fits evtable="EVENTS" scfile=/scratch/kocevski/741871/ft2_4FGL_J2317.7+2839_daily_bin1364.fits sctable="SC_DATA" expcube=/scratch/kocevski/741871/ltcube_592876801_593136001_4FGL_J2317.7+2839_daily_bin1364.fits outfile=/scratch/kocevski/741871/expmap_592876801_593136001_4FGL_J2317.7+2839_daily_bin1364.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/741871/ltcube_592876801_593136001_4FGL_J2317.7+2839_daily_bin1364.fits
.....................!
real 191.25
user 185.86
sys 4.99

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

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

This is gtbin version HEAD
real 0.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/741871/ft1_filtered_4FGL_J2317.7+2839_daily_bin1364.fits scfile=/scratch/kocevski/741871/ft2_4FGL_J2317.7+2839_daily_bin1364.fits outfile=/scratch/kocevski/741871/cmap_HighResolution_592876801_593136001_4FGL_J2317.7+2839_daily_bin1364.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.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/741871/ft1_filtered_4FGL_J2317.7+2839_daily_bin1364.fits evtable="EVENTS" scfile=/scratch/kocevski/741871/ft2_4FGL_J2317.7+2839_daily_bin1364.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/741871/Model_4FGL_J2317.7+2839_daily_bin1364.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/741871/ft1_filtered_4FGL_J2317.7+2839_daily_bin1364.fits.....................!
real 100.50
user 98.92
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.7625       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    116.91       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.7337       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.365       1.0000         .10000E-03   10000.    
     8 'norm      '    1.6157       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.180       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.115       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .33478E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    84.355       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .96315       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0159       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=   8892.869     FROM MIGRAD    STATUS=CONVERGED    423 CALLS     2062 TOTAL
                     EDM=   .58E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.7627        1.7420       -.15623E-07   -.39041E-04
   2  Prefactor     .10000E-03    9.6758        .66786E-07** at limit **
   3  norm          .10000E-03    .63919        .14447E-06** at limit **
   4  Prefactor     116.91        21.242       -.12370E-05   -.11457E-04
   5  Prefactor     .10000E-03    20.545       -.89599E-06** at limit **
   6  Prefactor     4.7338        6.3336       -.59739E-07   -.52942E-04
   7  Prefactor     11.363        16.838        .15218E-05   -.12350E-04
   8  norm          1.6157        1.3137       -.11079E-06   -.59199E-03
   9  Prefactor     10.179        22.903       -.25419E-05   -.16220E-04
  10  Prefactor     .10000E-03    7.5004       -.35042E-06** at limit **
  11  Prefactor     .10000E-03    10.639       -.55809E-06** at limit **
  12  Prefactor     .10000E-03    2.2752       -.17088E-06** at limit **
  13  norm          .10000E-03    1.5704        .12128E-06** at limit **
  14  Prefactor     .10000E-03    12.077       -.44541E-06** at limit **
  15  norm          .10000E-03    1.2655        .34698E-07** at limit **
  16  Prefactor     12.119        18.832       -.87306E-05   -.17049E-04
  17  Prefactor     .10000E-03    14.469        .38981E-06** at limit **
  18  Prefactor     84.347        50.407       -.46295E-05   -.40595E-05
  19  Normalizat    .96263        .21980        .18498E-05   -.92155E-04
  20  Prefactor     1.0162        .10752       -.52809E-06    .35240E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.76272
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 116.912
  Prefactor  = 0.0001
  Prefactor  = 4.73377
  Prefactor  = 11.3632
  norm       = 1.6157
  Prefactor  = 10.1794
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.1189
  Prefactor  = 0.000100002
  Prefactor  = 84.3465
  Normalizat = 0.962626
  Prefactor  = 1.01619
 **********
 **   18 **HESSE 
 **********

 FCN=   8892.869     FROM HESSE     STATUS=OK           295 CALLS     2357 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.7627        1.7421        .56700E-04   -1.5151    
   2  Prefactor     .10000E-03    9.6904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    .64286        .73631E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     116.91        21.223        .37213E-04   -1.3541    
   5  Prefactor     .10000E-03    20.727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.7338        6.3281        .18494E-03   -1.5273    
   7  Prefactor     11.363        16.836        .11884E-03   -1.5034    
   8  norm          1.6157        1.3044        .93094E-04   -1.5454    
   9  Prefactor     10.179        22.920        .12558E-03   -1.5070    
  10  Prefactor     .10000E-03    7.5604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    10.650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.2809        .13881E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.5745        .11539E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    12.139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.3056        .20713E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     12.119        18.849        .11509E-03   -1.5012    
  17  Prefactor     .10000E-03    16.323        .11150       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     84.347        50.518        .43737E-04   -1.3869    
  19  Normalizat    .96263        .25310        .38315E-03   -.94293    
  20  Prefactor     1.0162        .12473        .18899E-03   -.92192    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36669e-10
Minuit parameter uncertainties:
  1  1.7421
  2  2.93965e-07
  3  2.10784e-06
  4  21.2245
  5  1.1253e-06
  6  6.32898
  7  16.8431
  8  1.30446
  9  22.9398
  10  4.99988e-06
  11  7.01792e-06
  12  1.87511e-05
  13  8.99673e-07
  14  1.56973e-05
  15  2.21167e-07
  16  18.8585
  17  0.000371676
  18  50.5441
  19  0.253413
  20  0.124769
Done.

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

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  1.000e-04  7.018e-06  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.016e+00  1.248e-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:  9.626e-01  2.534e-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: 5.93e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.45e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/741871/likelihoodResults_592876801_593136001_4FGL_J2317.7+2839_daily_bin1364.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) = 8892.86955438
delta logL = -0.00044741802958

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8892.86910695
delta logL = 1.08684616862e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9832       1.0000          .0000       10.000    
     3 'Normalizat'    .96260       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0162       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=   8892.869     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      241 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10075E-03    70.739        .18142E-02** at limit **
   2  Index         1.9415        5.6626        .50000        .12271E-04
   3  Normalizat    .96263        .13811E-01    .38314E-03    .11513E-04
   4  Prefactor     1.0162        .70309E-02    .18899E-03    .28152E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100746
  Index      = 1.94152
  Normalizat = 0.962628
  Prefactor  = 1.01619
 **********
 **   18 **HESSE 
 **********

 FCN=   8892.869     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      270 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10075E-03    362.14        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9415        5.3194        .50000       -.65820    
   3  Normalizat    .96263        .32359E-01    .15326E-04   -.94293    
   4  Prefactor     1.0162        .16466E-01    .37799E-04   -.92192    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.31128e-08
Minuit parameter uncertainties:
  1  0.0330653
  2  521.305
  3  0.0323595
  4  0.0164658
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/741871': 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) = 8892.86910678
delta logL = 1.73991793417e-07

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  1.007e-04  3.307e-02  1.000e-04  1.000e+04 ( 1.000e-14)
413        Index:  1.942e+00  5.213e+02  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.016e+00  1.647e-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:  9.626e-01  3.236e-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/741871/cmap_HighResolution_592876801_593136001_4FGL_J2317.7+2839_daily_bin1364.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.45e-03', job_status='DONE', photon_flux_upper_limit='5.93e-08', time_completed='2021-09-29 11:12:45.682448', job_id='741871', GAL2='1.02', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1632939165.68', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='1.74e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1364' AND source_name='4FGL J2317.7+2839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:12:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 741871: <4FGL_J2317.7+2839_daily_bin1364> in cluster <slac> Done

Job <4FGL_J2317.7+2839_daily_bin1364> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep 29 11:00:17 2021
Job was executed on host(s) <bullet0058>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 11:00:19 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:19 2021
Terminated at Wed Sep 29 11:12:46 2021
Results reported at Wed Sep 29 11:12:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2317.7+2839_daily_bin1364 349.438 28.6589 592876801 593136001 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 :                                 1195 MB
    Average Memory :                             388.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   754 sec.
    Turnaround time :                            749 sec.

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

