/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 158 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 = 7169
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2317.7+2839_daily_bin260
RA = 349.438, Dec = 28.6589
tmin = 306720001, tmax = 306979201
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='734699', job_status='RUN', time_executed='2021-09-29 10:43:43.288179', time_epoch_executed='1632937423.29' WHERE source_name='4FGL J2317.7+2839' and cadence='daily' and bin_id='260'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/734699

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/734699/ft1_4FGL_J2317.7+2839_daily_bin260.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/734699/ft2_4FGL_J2317.7+2839_daily_bin260.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/734699/ft1_4FGL_J2317.7+2839_daily_bin260.fits outfile=/scratch/kocevski/734699/ft1_filteredMKT_4FGL_J2317.7+2839_daily_bin260.fits ra=349.438 dec=28.6589 rad=12.0 tmin=306720001.0 tmax=306979201.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 5.08
user 4.80
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/734699/ft2_4FGL_J2317.7+2839_daily_bin260.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/734699/ft1_filteredMKT_4FGL_J2317.7+2839_daily_bin260.fits evtable="EVENTS" outfile="/scratch/kocevski/734699/ft1_filtered_4FGL_J2317.7+2839_daily_bin260.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/734699/ft1_filtered_4FGL_J2317.7+2839_daily_bin260.fits" evtable="EVENTS" scfile=/scratch/kocevski/734699/ft2_4FGL_J2317.7+2839_daily_bin260.fits sctable="SC_DATA" outfile=/scratch/kocevski/734699/ltcube_306720001_306979201_4FGL_J2317.7+2839_daily_bin260.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/734699/ft2_4FGL_J2317.7+2839_daily_bin260.fits
.....................!
real 11.84
user 11.43
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/734699/ft1_filtered_4FGL_J2317.7+2839_daily_bin260.fits evtable="EVENTS" scfile=/scratch/kocevski/734699/ft2_4FGL_J2317.7+2839_daily_bin260.fits sctable="SC_DATA" expcube=/scratch/kocevski/734699/ltcube_306720001_306979201_4FGL_J2317.7+2839_daily_bin260.fits outfile=/scratch/kocevski/734699/expmap_306720001_306979201_4FGL_J2317.7+2839_daily_bin260.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/734699/ltcube_306720001_306979201_4FGL_J2317.7+2839_daily_bin260.fits
.....................!
real 190.93
user 185.30
sys 5.12

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/734699/ft1_filtered_4FGL_J2317.7+2839_daily_bin260.fits scfile=/scratch/kocevski/734699/ft2_4FGL_J2317.7+2839_daily_bin260.fits outfile=/scratch/kocevski/734699/cmap_306720001_306979201_4FGL_J2317.7+2839_daily_bin260.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/734699/ft1_filtered_4FGL_J2317.7+2839_daily_bin260.fits scfile=/scratch/kocevski/734699/ft2_4FGL_J2317.7+2839_daily_bin260.fits outfile=/scratch/kocevski/734699/cmap_HighResolution_306720001_306979201_4FGL_J2317.7+2839_daily_bin260.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 1.02
user 0.38
sys 0.23

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/734699/ft1_filtered_4FGL_J2317.7+2839_daily_bin260.fits evtable="EVENTS" scfile=/scratch/kocevski/734699/ft2_4FGL_J2317.7+2839_daily_bin260.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/734699/Model_4FGL_J2317.7+2839_daily_bin260.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/734699/ft1_filtered_4FGL_J2317.7+2839_daily_bin260.fits.....................!
real 100.21
user 98.78
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.3934       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.2087       1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.289       1.0000         .10000E-03   10000.    
     5 'Prefactor '    28.557       1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.664       1.0000         .10000E-03   10000.    
     7 'Prefactor '    30.265       1.0000         .10000E-03   10000.    
     8 'norm      '    6.2633       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.8896       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.7195       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11741E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.9617       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    30.711       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'    1.1841       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .98332       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=   8976.816     FROM MIGRAD    STATUS=CONVERGED    405 CALLS     1720 TOTAL
                     EDM=   .29E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.3935        1.5502        .38922E-09   -.12428E-04
   2  Prefactor     .10000E-03    9.8599        .24147E-07** at limit **
   3  norm          1.2090        1.2139       -.13531E-07    .12970E-05
   4  Prefactor     14.288        15.162        .33081E-07   -.13697E-05
   5  Prefactor     28.553        19.994       -.11314E-07   -.36261E-04
   6  Prefactor     11.664        10.186       -.47660E-07   -.97500E-06
   7  Prefactor     30.261        25.280       -.45181E-07   -.38437E-04
   8  norm          6.2635        1.8349        .45450E-08   -.16372E-04
   9  Prefactor     6.8900        15.872        .34147E-05   -.36328E-04
  10  Prefactor     8.7194        12.675        .15321E-06   -.60077E-05
  11  Prefactor     .10000E-03    5.7862        .54762E-08** at limit **
  12  Prefactor     .10000E-03    17.979       -.24911E-05** at limit **
  13  norm          5.9620        4.7789        .57517E-07   -.56680E-04
  14  Prefactor     .10000E-03    7.0525       -.10919E-07** at limit **
  15  norm          .10000E-03    .87343        .14044E-07** at limit **
  16  Prefactor     30.687        21.358       -.35015E-06   -.15448E-03
  17  Prefactor     .10000E-03    9.6657        .92269E-07** at limit **
  18  Prefactor     .10000E-03    22.976        .30150E-06** at limit **
  19  Normalizat    1.1836        .21642        .13774E-06    .22804E-04
  20  Prefactor     .98355        .11118       -.29802E-06    .75823E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.39348
  Prefactor  = 0.0001
  norm       = 1.20899
  Prefactor  = 14.2877
  Prefactor  = 28.5531
  Prefactor  = 11.6644
  Prefactor  = 30.2609
  norm       = 6.26354
  Prefactor  = 6.89005
  Prefactor  = 8.71937
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.96205
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 30.6866
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.18355
  Prefactor  = 0.983555
 **********
 **   18 **HESSE 
 **********

 FCN=   8976.816     FROM HESSE     STATUS=OK           291 CALLS     2011 TOTAL
                     EDM=   .60E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.3935        1.5506        .55919E-04   -1.5202    
   2  Prefactor     .10000E-03    9.8812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.2090        1.2085        .10131E-03   -1.5488    
   4  Prefactor     14.288        15.139        .10596E-03   -1.4952    
   5  Prefactor     28.553        20.031        .74971E-04   -1.4639    
   6  Prefactor     11.664        10.184        .11730E-03   -1.5025    
   7  Prefactor     30.261        25.323        .72829E-04   -1.4607    
   8  norm          6.2635        1.8340        .66194E-04   -1.5207    
   9  Prefactor     6.8900        15.994        .76426E-03   -1.5183    
  10  Prefactor     8.7194        12.667        .13575E-03   -1.5117    
  11  Prefactor     .10000E-03    5.7892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    18.253        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.9620        4.7755        .16446E-03   -1.5220    
  14  Prefactor     .10000E-03    7.0781        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .87840        .86445E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     30.687        21.381        .72300E-04   -1.4599    
  17  Prefactor     .10000E-03    9.6991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    23.076        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1836        .25145        .35841E-03   -.87113    
  20  Prefactor     .98355        .12950        .20090E-03   -.93280    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.02346e-11
Minuit parameter uncertainties:
  1  1.55064
  2  2.79615e-06
  3  1.20854
  4  15.1428
  5  20.0358
  6  10.1859
  7  25.3321
  8  1.83402
  9  16.004
  10  12.6704
  11  8.20015e-07
  12  4.61559e-05
  13  4.77582
  14  3.93633e-06
  15  1.82222e-08
  16  21.3859
  17  9.54916e-06
  18  7.03112e-05
  19  0.251704
  20  0.129537
Done.

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

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  1.000e-04  8.200e-07  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:  9.836e-01  1.295e-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:  1.184e+00  2.517e-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.98e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.98e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/734699/likelihoodResults_306720001_306979201_4FGL_J2317.7+2839_daily_bin260.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) = 8976.81663884
delta logL = -0.000820604394903

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8976.81581775
delta logL = 4.82355972053e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9617       1.0000          .0000       10.000    
     3 'Normalizat'    1.1836       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98357       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=   8976.816     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      242 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10082E-03    23.044        .18142E-02** at limit **
   2  Index         1.9102        7.3051        .50000        .44700E-04
   3  Normalizat    1.1836        .10333E-01    .35841E-03    .26010E-04
   4  Prefactor     .98355        .53703E-02    .20090E-03   -.22868E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100821
  Index      = 1.91024
  Normalizat = 1.18356
  Prefactor  = 0.983553
 **********
 **   18 **HESSE 
 **********

 FCN=   8976.816     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10082E-03    104.83        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9102        5.6892        .50000       -.66614    
   3  Normalizat    1.1836        .22354E-01    .14336E-04   -.87112    
   4  Prefactor     .98355        .11618E-01    .40181E-04   -.93280    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.07848e-08
Minuit parameter uncertainties:
  1  0.0185902
  2  128.884
  3  0.0223543
  4  0.0116178
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/734699': 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) = 8976.8158171
delta logL = 1.1272404663e-06

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  1.008e-04  1.859e-02  1.000e-04  1.000e+04 ( 1.000e-14)
413        Index:  1.910e+00  1.289e+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:  9.836e-01  1.162e-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:  1.184e+00  2.235e-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/734699/cmap_HighResolution_306720001_306979201_4FGL_J2317.7+2839_daily_bin260.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.98e-03', job_status='DONE', photon_flux_upper_limit='3.98e-08', time_completed='2021-09-29 10:55:49.423505', job_id='734699', GAL2='0.98', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1632938149.42', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='1.13e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='260' AND source_name='4FGL J2317.7+2839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 10:55:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 734699: <4FGL_J2317.7+2839_daily_bin260> in cluster <slac> Done

Job <4FGL_J2317.7+2839_daily_bin260> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep 29 10:40:36 2021
Job was executed on host(s) <bullet0035>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 10:40:37 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:40:37 2021
Terminated at Wed Sep 29 10:55:50 2021
Results reported at Wed Sep 29 10:55:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2317.7+2839_daily_bin260 349.438 28.6589 306720001 306979201 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 :                                   723.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             266.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   912 sec.
    Turnaround time :                            914 sec.

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

