/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 116 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 = 7395
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2317.7+2839_daily_bin94
RA = 349.438, Dec = 28.6589
tmin = 263692801, tmax = 263952001
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='733364', job_status='RUN', time_executed='2021-09-29 10:38:10.765999', time_epoch_executed='1632937090.77' WHERE source_name='4FGL J2317.7+2839' and cadence='daily' and bin_id='94'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/733364

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/733364/ft1_4FGL_J2317.7+2839_daily_bin94.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/733364/ft2_4FGL_J2317.7+2839_daily_bin94.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/733364/ft1_4FGL_J2317.7+2839_daily_bin94.fits outfile=/scratch/kocevski/733364/ft1_filteredMKT_4FGL_J2317.7+2839_daily_bin94.fits ra=349.438 dec=28.6589 rad=12.0 tmin=263692801.0 tmax=263952001.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 1.66
user 1.46
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/733364/ft1_filtered_4FGL_J2317.7+2839_daily_bin94.fits" evtable="EVENTS" scfile=/scratch/kocevski/733364/ft2_4FGL_J2317.7+2839_daily_bin94.fits sctable="SC_DATA" outfile=/scratch/kocevski/733364/ltcube_263692801_263952001_4FGL_J2317.7+2839_daily_bin94.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/733364/ft2_4FGL_J2317.7+2839_daily_bin94.fits
.....................!
real 12.07
user 11.67
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/733364/ft1_filtered_4FGL_J2317.7+2839_daily_bin94.fits evtable="EVENTS" scfile=/scratch/kocevski/733364/ft2_4FGL_J2317.7+2839_daily_bin94.fits sctable="SC_DATA" expcube=/scratch/kocevski/733364/ltcube_263692801_263952001_4FGL_J2317.7+2839_daily_bin94.fits outfile=/scratch/kocevski/733364/expmap_263692801_263952001_4FGL_J2317.7+2839_daily_bin94.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/733364/ltcube_263692801_263952001_4FGL_J2317.7+2839_daily_bin94.fits
.....................!
real 190.43
user 186.06
sys 4.06

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/733364/ft1_filtered_4FGL_J2317.7+2839_daily_bin94.fits scfile=/scratch/kocevski/733364/ft2_4FGL_J2317.7+2839_daily_bin94.fits outfile=/scratch/kocevski/733364/cmap_263692801_263952001_4FGL_J2317.7+2839_daily_bin94.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/733364/ft1_filtered_4FGL_J2317.7+2839_daily_bin94.fits scfile=/scratch/kocevski/733364/ft2_4FGL_J2317.7+2839_daily_bin94.fits outfile=/scratch/kocevski/733364/cmap_HighResolution_263692801_263952001_4FGL_J2317.7+2839_daily_bin94.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.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/733364/ft1_filtered_4FGL_J2317.7+2839_daily_bin94.fits evtable="EVENTS" scfile=/scratch/kocevski/733364/ft2_4FGL_J2317.7+2839_daily_bin94.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/733364/Model_4FGL_J2317.7+2839_daily_bin94.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/733364/ft1_filtered_4FGL_J2317.7+2839_daily_bin94.fits.....................!
real 115.51
user 114.11
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.978       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .59981       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.2401       1.0000         .10000E-03   10000.    
     5 'Prefactor '    32.749       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.2008       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.1485       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10312E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    17.733       1.0000         .10000E-03   10000.    
    15 'norm      '    3.2330       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.6235       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10742E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    54.715       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .70139       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0036       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=   11124.87     FROM MIGRAD    STATUS=CONVERGED    417 CALLS     2096 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.978        1.6616       -.79712E-07    .14744E-03
   2  Prefactor     .10000E-03    4.6164       -.16744E-06** at limit **
   3  norm          .60053        1.1865        .13746E-06   -.87572E-03
   4  Prefactor     1.2348        15.683       -.11494E-04   -.34397E-03
   5  Prefactor     32.748        15.392        .41240E-06   -.85999E-04
   6  Prefactor     .10000E-03    5.0986       -.11768E-05** at limit **
   7  Prefactor     .10000E-03    19.195       -.35121E-06** at limit **
   8  norm          2.2006        1.3964       -.10417E-06   -.70126E-03
   9  Prefactor     .10000E-03    6.4385       -.65183E-07** at limit **
  10  Prefactor     7.1487        12.027       -.89618E-06   -.84146E-04
  11  Prefactor     .10000E-03    7.7732       -.24010E-06** at limit **
  12  Prefactor     .10000E-03    4.9419        .12222E-05** at limit **
  13  norm          .10000E-03    2.7049        .94312E-07** at limit **
  14  Prefactor     17.735        17.287       -.34168E-05    .22280E-03
  15  norm          3.2325        2.4183       -.11474E-06   -.37050E-03
  16  Prefactor     1.6182        18.487        .77892E-06   -.34460E-03
  17  Prefactor     .10001E-03    5.8861        .50787E-06** at limit **
  18  Prefactor     54.692        35.966       -.11335E-04    .60385E-03
  19  Normalizat    .70120        .18254        .55916E-05    .75548E-06
  20  Prefactor     1.0037        .87426E-01   -.39535E-06    .36177E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.9779
  Prefactor  = 0.0001
  norm       = 0.600533
  Prefactor  = 1.23483
  Prefactor  = 32.7484
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.20059
  Prefactor  = 0.0001
  Prefactor  = 7.14869
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 17.7348
  norm       = 3.23248
  Prefactor  = 1.61818
  Prefactor  = 0.00010001
  Prefactor  = 54.6921
  Normalizat = 0.701198
  Prefactor  = 1.0037
 **********
 **   18 **HESSE 
 **********

 FCN=   11124.87     FROM HESSE     STATUS=OK           301 CALLS     2397 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.978        1.6616        .50515E-04   -1.5045    
   2  Prefactor     .10000E-03    4.6184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .60053        .95857        .14953E-02   -1.5553    
   4  Prefactor     1.2348        16.922        .40274E-03   -1.5486    
   5  Prefactor     32.748        15.392        .70020E-04   -1.4563    
   6  Prefactor     .10000E-03    5.1210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    19.365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.2006        1.3871        .92818E-04   -1.5411    
   9  Prefactor     .10000E-03    6.4569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.1487        11.996        .15003E-03   -1.5173    
  11  Prefactor     .10000E-03    7.8037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.0883        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.7223        .16882E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     17.735        17.223        .95111E-04   -1.4865    
  15  norm          3.2325        2.4109        .13514E-03   -1.5348    
  16  Prefactor     1.6182        18.593        .33207E-03   -1.5454    
  17  Prefactor     .10001E-03    8.0600        .97923E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     54.692        35.311        .54227E-04   -1.4228    
  19  Normalizat    .70120        .20319        .39879E-03   -1.0385    
  20  Prefactor     1.0037        .99059E-01    .17396E-03   -.92606    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.87654e-09
Minuit parameter uncertainties:
  1  1.66158
  2  7.54455e-07
  3  0.958594
  4  9.14508
  5  15.3941
  6  3.87646e-05
  7  8.35987e-06
  8  1.38707
  9  9.86043e-06
  10  12.0003
  11  1.42142e-05
  12  9.67133e-05
  13  3.35129e-05
  14  17.228
  15  2.41094
  16  10.9741
  17  0.000580466
  18  35.3248
  19  0.20341
  20  0.0990767
Done.

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

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  1.000e-04  1.421e-05  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.004e+00  9.908e-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:  7.012e-01  2.034e-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: 3.85e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.89e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/733364/likelihoodResults_263692801_263952001_4FGL_J2317.7+2839_daily_bin94.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) = 11124.8717865
delta logL = -0.000610732397035

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11124.8711754
delta logL = 3.36636730935e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9622       1.0000          .0000       10.000    
     3 'Normalizat'    .70118       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0037       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=   11124.87     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      211 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    55.079        .90712E-02** at limit **
   2  Index         1.9228        6.6030        .50000        .33788E-04
   3  Normalizat    .70120        .11047E-01    .90019E-01    .97257E-04
   4  Prefactor     1.0037        .57150E-02    .44481E-01    .21028E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 1.92281
  Normalizat = 0.7012
  Prefactor  = 1.0037
 **********
 **   18 **HESSE 
 **********

 FCN=   11124.87     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9228        5.9151        .50000       -.66294    
   3  Normalizat    .70120        .18836        .39878E-03   -1.0385    
   4  Prefactor     1.0037        .97783E-01    .17396E-03   -.92606    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.82925e-09
Minuit parameter uncertainties:
  1  0.000187376
  2  4.33787
  3  0.18853
  4  0.0978003
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/733364': 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) = 11124.871175
delta logL = 7.64535798226e-07

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  1.000e-04  1.874e-04  1.000e-04  1.000e+04 ( 1.000e-14)
413        Index:  1.923e+00  4.338e+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.004e+00  9.780e-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:  7.012e-01  1.885e-01  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/733364/cmap_HighResolution_263692801_263952001_4FGL_J2317.7+2839_daily_bin94.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.89e-03', job_status='DONE', photon_flux_upper_limit='3.85e-08', time_completed='2021-09-29 10:51:58.324876', job_id='733364', GAL2='1.00', fit_tolerance='1e-08', EG2='0.70', EG='0.70', time_epoch_completed='1632937918.32', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='7.65e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='94' AND source_name='4FGL J2317.7+2839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 10:51:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 733364: <4FGL_J2317.7+2839_daily_bin94> in cluster <slac> Done

Job <4FGL_J2317.7+2839_daily_bin94> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Wed Sep 29 10:36:04 2021
Job was executed on host(s) <bullet0281>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 10:36:05 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:36:05 2021
Terminated at Wed Sep 29 10:51:59 2021
Results reported at Wed Sep 29 10:51:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2317.7+2839_daily_bin94 349.438 28.6589 263692801 263952001 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 :                                   827.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             314.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   953 sec.
    Turnaround time :                            955 sec.

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

