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


Performing analysis on: 4FGL_J2317.7+2839_daily_bin792
RA = 349.438, Dec = 28.6589
tmin = 444614401, tmax = 444873601
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='738951', job_status='RUN', time_executed='2021-09-29 10:50:40.531177', time_epoch_executed='1632937840.53' WHERE source_name='4FGL J2317.7+2839' and cadence='daily' and bin_id='792'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/738951

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/738951/ft1_4FGL_J2317.7+2839_daily_bin792.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/738951/ft2_4FGL_J2317.7+2839_daily_bin792.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/738951/ft1_4FGL_J2317.7+2839_daily_bin792.fits outfile=/scratch/kocevski/738951/ft1_filteredMKT_4FGL_J2317.7+2839_daily_bin792.fits ra=349.438 dec=28.6589 rad=12.0 tmin=444614401.0 tmax=444873601.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.53
user 3.29
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/738951/ft1_filtered_4FGL_J2317.7+2839_daily_bin792.fits" evtable="EVENTS" scfile=/scratch/kocevski/738951/ft2_4FGL_J2317.7+2839_daily_bin792.fits sctable="SC_DATA" outfile=/scratch/kocevski/738951/ltcube_444614401_444873601_4FGL_J2317.7+2839_daily_bin792.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/738951/ft2_4FGL_J2317.7+2839_daily_bin792.fits
.....................!
real 12.05
user 11.68
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/738951/ft1_filtered_4FGL_J2317.7+2839_daily_bin792.fits evtable="EVENTS" scfile=/scratch/kocevski/738951/ft2_4FGL_J2317.7+2839_daily_bin792.fits sctable="SC_DATA" expcube=/scratch/kocevski/738951/ltcube_444614401_444873601_4FGL_J2317.7+2839_daily_bin792.fits outfile=/scratch/kocevski/738951/expmap_444614401_444873601_4FGL_J2317.7+2839_daily_bin792.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/738951/ltcube_444614401_444873601_4FGL_J2317.7+2839_daily_bin792.fits
.....................!
real 190.64
user 185.98
sys 4.33

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/738951/ft1_filtered_4FGL_J2317.7+2839_daily_bin792.fits scfile=/scratch/kocevski/738951/ft2_4FGL_J2317.7+2839_daily_bin792.fits outfile=/scratch/kocevski/738951/cmap_444614401_444873601_4FGL_J2317.7+2839_daily_bin792.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/738951/ft1_filtered_4FGL_J2317.7+2839_daily_bin792.fits scfile=/scratch/kocevski/738951/ft2_4FGL_J2317.7+2839_daily_bin792.fits outfile=/scratch/kocevski/738951/cmap_HighResolution_444614401_444873601_4FGL_J2317.7+2839_daily_bin792.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/738951/ft1_filtered_4FGL_J2317.7+2839_daily_bin792.fits evtable="EVENTS" scfile=/scratch/kocevski/738951/ft2_4FGL_J2317.7+2839_daily_bin792.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/738951/Model_4FGL_J2317.7+2839_daily_bin792.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/738951/ft1_filtered_4FGL_J2317.7+2839_daily_bin792.fits.....................!
real 90.13
user 88.78
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .77558       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.5527       1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.346       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.1233       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .76983       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10111E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    25.245       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.8672       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.3969       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.9124       1.0000         .10000E-03   10000.    
    13 'norm      '    10.115       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.7459       1.0000         .10000E-03   10000.    
    15 'norm      '    2.0530       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .80246       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0329       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=   8158.857     FROM MIGRAD    STATUS=CONVERGED    398 CALLS     2032 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .77557        .70477        .26263E-07   -.63805E-04
   2  Prefactor     .10000E-03    10.664       -.35030E-06** at limit **
   3  norm          3.5528        2.2991       -.11216E-07   -.26719E-04
   4  Prefactor     14.347        14.462        .13955E-06    .16205E-04
   5  Prefactor     9.1232        9.9068        .16066E-07    .89836E-05
   6  Prefactor     .77019        9.7866        .23227E-05   -.29093E-03
   7  Prefactor     .10000E-03    18.456        .14389E-06** at limit **
   8  norm          .10000E-03    .45754       -.29325E-08** at limit **
   9  Prefactor     25.247        18.642        .69564E-06    .12160E-03
  10  Prefactor     9.8645        13.579       -.47923E-06   -.11120E-03
  11  Prefactor     5.3928        12.850       -.14620E-05   -.14027E-03
  12  Prefactor     4.9134        7.7708        .16763E-06   -.83734E-04
  13  norm          10.113        6.5410       -.38111E-06   -.14469E-03
  14  Prefactor     3.7491        20.068        .35019E-05    .82702E-04
  15  norm          2.0530        1.9939        .24092E-07    .34041E-04
  16  Prefactor     .10000E-03    9.7998        .13358E-06** at limit **
  17  Prefactor     .10000E-03    4.4655        .63374E-07** at limit **
  18  Prefactor     .10000E-03    11.098        .29310E-06** at limit **
  19  Normalizat    .80253        .20218       -.95620E-06   -.31547E-04
  20  Prefactor     1.0329        .10268        .14635E-06   -.11933E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.775566
  Prefactor  = 0.0001
  norm       = 3.55282
  Prefactor  = 14.3469
  Prefactor  = 9.12321
  Prefactor  = 0.770188
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 25.2466
  Prefactor  = 9.86452
  Prefactor  = 5.39282
  Prefactor  = 4.9134
  norm       = 10.1135
  Prefactor  = 3.74914
  norm       = 2.05303
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.802534
  Prefactor  = 1.03291
 **********
 **   18 **HESSE 
 **********

 FCN=   8158.857     FROM HESSE     STATUS=OK           301 CALLS     2333 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .77557        .67202        .70152E-03   -1.5532    
   2  Prefactor     .10000E-03    10.828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.5528        2.2973        .10234E-03   -1.5331    
   4  Prefactor     14.347        14.463        .10575E-03   -1.4950    
   5  Prefactor     9.1232        9.9091        .13269E-03   -1.5104    
   6  Prefactor     .77019        14.929        .49308E-03   -1.5532    
   7  Prefactor     .10000E-03    18.545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .75356        .11752E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     25.247        18.807        .79728E-04   -1.4703    
  10  Prefactor     9.8645        13.662        .12757E-03   -1.5080    
  11  Prefactor     5.3928        13.180        .17298E-03   -1.5243    
  12  Prefactor     4.9134        7.7858        .18147E-03   -1.5265    
  13  norm          10.113        6.5594        .12599E-03   -1.5072    
  14  Prefactor     3.7491        20.840        .20862E-03   -1.5321    
  15  norm          2.0530        1.9972        .12101E-03   -1.5421    
  16  Prefactor     .10000E-03    9.8201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.4676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    11.126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .80253        .22717        .36550E-03   -.99975    
  20  Prefactor     1.0329        .11729        .17367E-03   -.91640    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.65972e-10
Minuit parameter uncertainties:
  1  0.672022
  2  2.71268e-05
  3  2.2974
  4  14.4662
  5  9.91088
  6  6.7832
  7  2.49376e-05
  8  1.72099e-06
  9  18.8111
  10  13.6661
  11  13.1866
  12  7.78737
  13  6.55985
  14  17.6879
  15  1.99731
  16  1.35422e-05
  17  3.29385e-06
  18  2.54532e-05
  19  0.227439
  20  0.117316
Done.

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

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  5.393e+00  1.319e+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.033e+00  1.173e-01  0.000e+00  1.000e+01 ( 1.000e+00)
542        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
543        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
540   Normalization:  8.025e-01  2.274e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/738951/likelihoodResults_444614401_444873601_4FGL_J2317.7+2839_daily_bin792.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) = 8158.85468592
delta logL = 0.00245089313194

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8158.85322729
delta logL = 0.0039095193406

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.3307       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9000       1.0000          .0000       10.000    
     3 'Normalizat'    .80329       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0327       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=   8158.853     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      204 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.3307        469.43        .39883E-02    .25625E-03
   2  Index         1.8999        2.8403        .26398        .35440E-04
   3  Normalizat    .80330        .41784E-01    .82511E-01    .14267E-03
   4  Prefactor     1.0327        .20957E-01    .41051E-01    .25032E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.33066
  Index      = 1.89989
  Normalizat = 0.803296
  Prefactor  = 1.0327
 **********
 **   18 **HESSE 
 **********

 FCN=   8158.853     FROM HESSE     STATUS=OK            31 CALLS      235 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.3307        19.202        .15953E-03   -1.5205    
   2  Index         1.8999        1.2034        .98640E-02   -.66877    
   3  Normalizat    .80330        .21556        .36534E-03   -.99947    
   4  Prefactor     1.0327        .11588        .17369E-03   -.91647    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.87027e-09
Minuit parameter uncertainties:
  1  19.2212
  2  1.22312
  3  0.215786
  4  0.115904
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/738951': 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) = 8158.85322727
delta logL = 0.00390953905389

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  6.331e+00  1.922e+01  1.000e-04  1.000e+04 ( 1.000e-14)
413        Index:  1.900e+00  1.223e+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.033e+00  1.159e-01  0.000e+00  1.000e+01 ( 1.000e+00)
542        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
543        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
540   Normalization:  8.033e-01  2.158e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.21
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/738951/cmap_HighResolution_444614401_444873601_4FGL_J2317.7+2839_daily_bin792.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.35e-03', job_status='DONE', photon_flux_upper_limit='5.80e-08', time_completed='2021-09-29 11:02:24.628019', job_id='738951', GAL2='1.03', fit_tolerance='1e-08', EG2='0.80', EG='0.80', time_epoch_completed='1632938544.63', return_code2='0', ts='0.21', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='3.91e-03', ts2='0.22', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='792' AND source_name='4FGL J2317.7+2839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:02:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0289>
Subject: Job 738951: <4FGL_J2317.7+2839_daily_bin792> in cluster <slac> Done

Job <4FGL_J2317.7+2839_daily_bin792> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep 29 10:50:30 2021
Job was executed on host(s) <bullet0289>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 10:50:31 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:50:31 2021
Terminated at Wed Sep 29 11:02:25 2021
Results reported at Wed Sep 29 11:02:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2317.7+2839_daily_bin792 349.438 28.6589 444614401 444873601 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 :                                   701.48 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             356.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   713 sec.
    Turnaround time :                            715 sec.

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

