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


Performing analysis on: 4FGL_J2317.7+2839_daily_bin70
RA = 349.438, Dec = 28.6589
tmin = 257472001, tmax = 257731201
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='733326', job_status='RUN', time_executed='2021-09-29 10:40:01.933493', time_epoch_executed='1632937201.93' WHERE source_name='4FGL J2317.7+2839' and cadence='daily' and bin_id='70'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/733326

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/733326/ft1_4FGL_J2317.7+2839_daily_bin70.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/733326/ft2_4FGL_J2317.7+2839_daily_bin70.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/733326/ft1_4FGL_J2317.7+2839_daily_bin70.fits outfile=/scratch/kocevski/733326/ft1_filteredMKT_4FGL_J2317.7+2839_daily_bin70.fits ra=349.438 dec=28.6589 rad=12.0 tmin=257472001.0 tmax=257731201.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 2.00
user 1.80
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/733326/ft1_filtered_4FGL_J2317.7+2839_daily_bin70.fits" evtable="EVENTS" scfile=/scratch/kocevski/733326/ft2_4FGL_J2317.7+2839_daily_bin70.fits sctable="SC_DATA" outfile=/scratch/kocevski/733326/ltcube_257472001_257731201_4FGL_J2317.7+2839_daily_bin70.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/733326/ft2_4FGL_J2317.7+2839_daily_bin70.fits
.....................!
real 12.83
user 12.49
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/733326/ft1_filtered_4FGL_J2317.7+2839_daily_bin70.fits evtable="EVENTS" scfile=/scratch/kocevski/733326/ft2_4FGL_J2317.7+2839_daily_bin70.fits sctable="SC_DATA" expcube=/scratch/kocevski/733326/ltcube_257472001_257731201_4FGL_J2317.7+2839_daily_bin70.fits outfile=/scratch/kocevski/733326/expmap_257472001_257731201_4FGL_J2317.7+2839_daily_bin70.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/733326/ltcube_257472001_257731201_4FGL_J2317.7+2839_daily_bin70.fits
.....................!
real 190.72
user 186.21
sys 4.11

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/733326/ft1_filtered_4FGL_J2317.7+2839_daily_bin70.fits scfile=/scratch/kocevski/733326/ft2_4FGL_J2317.7+2839_daily_bin70.fits outfile=/scratch/kocevski/733326/cmap_257472001_257731201_4FGL_J2317.7+2839_daily_bin70.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/733326/ft1_filtered_4FGL_J2317.7+2839_daily_bin70.fits scfile=/scratch/kocevski/733326/ft2_4FGL_J2317.7+2839_daily_bin70.fits outfile=/scratch/kocevski/733326/cmap_HighResolution_257472001_257731201_4FGL_J2317.7+2839_daily_bin70.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.56
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.3071       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .73037E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    1.1569       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.334       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.0981       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10209E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .72836       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.2164       1.0000         .10000E-03   10000.    
    15 'norm      '    1.0509       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .88489E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    42.181       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .79025       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0663       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5440E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9029.209     FROM MIGRAD    STATUS=CONVERGED     90 CALLS     1748 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.3071        1.1840       -.32455E-06   -.28599E-02
   2  Prefactor     .35380E-03    117.99       -.35019E-06** at limit **
   3  norm          1.1566        1.2922       -.42761E-06   -.13508E-02
   4  Prefactor     .10000E-03    4.1338        .97264E-06** at limit **
   5  Prefactor     10.334        1.0030        .13003E-06   -.15155E-03
   6  Prefactor     .10000E-03    4.5817       -.51597E-05** at limit **
   7  Prefactor     .10003E-03    8.7054        .33599E-04** at limit **
   8  norm          2.0983        1.6996        .62376E-06    .19330E-02
   9  Prefactor     .10000E-03    17.433        .62887E-05** at limit **
  10  Prefactor     .10000E-03    7.3301       -.18708E-04** at limit **
  11  Prefactor     .10000E-03    5.0430        .45401E-05** at limit **
  12  Prefactor     .10000E-03    1.8514        .42530E-07** at limit **
  13  norm          .73168        5.0059        .74090E-06   -.39754E-03
  14  Prefactor     7.2064        1.1725        .10629E-05   -.13707E-02
  15  norm          1.0524        1.6916       -.72253E-07   -.25799E-03
  16  Prefactor     .27620E-03    171.10        .23212E-04** at limit **
  17  Prefactor     .10002E-03    10.414       -.23605E-04** at limit **
  18  Prefactor     42.178        1.1026       -.48768E-06    .43676E-02
  19  Normalizat    .79045        .20940       -.72745E-06   -.12011E-03
  20  Prefactor     1.0662        .11148        .76556E-06   -.11568E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.30711
  Prefactor  = 0.000353799
  norm       = 1.15664
  Prefactor  = 0.0001
  Prefactor  = 10.3343
  Prefactor  = 0.000100001
  Prefactor  = 0.000100026
  norm       = 2.09834
  Prefactor  = 0.000100001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.731684
  Prefactor  = 7.2064
  norm       = 1.05237
  Prefactor  = 0.000276197
  Prefactor  = 0.000100015
  Prefactor  = 42.1777
  Normalizat = 0.790452
  Prefactor  = 1.0662
 **********
 **   18 **HESSE 
 **********

 FCN=   9029.209     FROM HESSE     STATUS=OK           345 CALLS     2093 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.3071        1.2213        .67534E-02   -1.5404    
   2  Prefactor     .35380E-03    12.108        .11846       -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.1566        1.4991        .25873E-01   -1.5493    
   4  Prefactor     .10000E-03    4.1131        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.334        10.148        .31160E-02   -1.5065    
   6  Prefactor     .10000E-03    4.5541        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10003E-03    8.7258        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.0983        1.7322        .71232E-02   -1.5418    
   9  Prefactor     .10000E-03    17.147        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.2895        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.0471        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.8404        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .73168        6.0723        .12170E-01   -1.5537    
  14  Prefactor     7.2064        18.515        .37329E-02   -1.5171    
  15  norm          1.0524        2.1500        .35818E-01   -1.5503    
  16  Prefactor     .27620E-03    9.0520        .94562E-01   -1.5711    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10002E-03    10.377        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     42.178        33.963        .15431E-02   -1.4408    
  19  Normalizat    .79045        .19407        .82044E-01   -1.0042    
  20  Prefactor     1.0662        .98214E-01    .39039E-01   -.90554    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39377e-07
Minuit parameter uncertainties:
  1  1.22133
  2  0.11089
  3  1.49912
  4  8.62465e-05
  5  10.1494
  6  0.000111884
  7  0.000945742
  8  1.73225
  9  0.000270336
  10  0.000345591
  11  1.72633e-06
  12  1.74722e-05
  13  4.21598
  14  18.5302
  15  2.15011
  16  0.0798856
  17  0.000801461
  18  33.9786
  19  0.194237
  20  0.0982306
Done.

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

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  1.000e-04  1.726e-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.066e+00  9.823e-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.905e-01  1.942e-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.55e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.66e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/733326/likelihoodResults_257472001_257731201_4FGL_J2317.7+2839_daily_bin70.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) = 9029.21030527
delta logL = -0.000940301169976

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9029.20936596
delta logL = -9.92915374809e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10974E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9693       1.0000          .0000       10.000    
     3 'Normalizat'    .79054       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0661       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   9029.209     FROM MIGRAD    STATUS=FAILED        89 CALLS      228 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    671.52        .18142E-02** at limit **
   2  Index         1.9365        8.1898        .50000        .46186E-04
   3  Normalizat    .79045        .62975E-01    .36327E-03    .60275E-04
   4  Prefactor     1.0662        .33782E-01    .16878E-03    .15546E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   9029.209     FROM SIMPLEX   STATUS=UNCHANGED    169 CALLS      397 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    671.52        .41306E-03** at limit **
   2  Index         1.9365        8.1898        .28119E-05    .46186E-04
   3  Normalizat    .79045        .62975E-01    .12229E-06    .60275E-04
   4  Prefactor     1.0662        .33782E-01    .27566E-07    .15546E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9029.209     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      431 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    13.300        .36285E-03** at limit **
   2  Index         1.9362        5.4667        .50000        .46150E-04
   3  Normalizat    .79045        .20592        .14531E-04    .62591E-04
   4  Prefactor     1.0662        .11055        .33757E-04    .16031E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100012
  Index      = 1.93616
  Normalizat = 0.790453
  Prefactor  = 1.0662
 **********
 **   18 **HESSE 
 **********

 FCN=   9029.209     FROM HESSE     STATUS=OK            29 CALLS      460 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    5.6188        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9362        5.9556        .50000       -.65956    
   3  Normalizat    .79045        .20584        .29061E-05   -1.0042    
   4  Prefactor     1.0662        .11051        .67514E-05   -.90554    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.72558e-09
Minuit parameter uncertainties:
  1  0.000514754
  2  3.9948
  3  0.206043
  4  0.110534
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/733326': 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) = 9029.20936414
delta logL = 8.26616087579e-07

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  1.000e-04  5.148e-04  1.000e-04  1.000e+04 ( 1.000e-14)
413        Index:  1.936e+00  3.995e+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.066e+00  1.105e-01  0.000e+00  1.000e+01 ( 1.000e+00)
542        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
543        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
540   Normalization:  7.905e-01  2.060e-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/733326/cmap_HighResolution_257472001_257731201_4FGL_J2317.7+2839_daily_bin70.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.66e-03', job_status='DONE', photon_flux_upper_limit='3.55e-08', time_completed='2021-09-29 10:52:12.335106', job_id='733326', GAL2='1.07', fit_tolerance='1e-08', EG2='0.79', EG='0.79', time_epoch_completed='1632937932.34', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='8.27e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='70' AND source_name='4FGL J2317.7+2839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 10:52:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 733326: <4FGL_J2317.7+2839_daily_bin70> in cluster <slac> Done

Job <4FGL_J2317.7+2839_daily_bin70> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Wed Sep 29 10:36:00 2021
Job was executed on host(s) <bullet0041>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 10:36:02 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:02 2021
Terminated at Wed Sep 29 10:52:13 2021
Results reported at Wed Sep 29 10:52:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2317.7+2839_daily_bin70 349.438 28.6589 257472001 257731201 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 :                                   731.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             279.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   970 sec.
    Turnaround time :                            973 sec.

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

