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


Performing analysis on: 4FGL_J2317.7+2839_daily_bin770
RA = 349.438, Dec = 28.6589
tmin = 438912001, tmax = 439171201
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='738918', job_status='RUN', time_executed='2021-09-29 10:50:40.958822', time_epoch_executed='1632937840.96' WHERE source_name='4FGL J2317.7+2839' and cadence='daily' and bin_id='770'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/738918

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/738918/ft1_4FGL_J2317.7+2839_daily_bin770.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/738918/ft2_4FGL_J2317.7+2839_daily_bin770.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/738918/ft1_4FGL_J2317.7+2839_daily_bin770.fits outfile=/scratch/kocevski/738918/ft1_filteredMKT_4FGL_J2317.7+2839_daily_bin770.fits ra=349.438 dec=28.6589 rad=12.0 tmin=438912001.0 tmax=439171201.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 6.15
user 5.87
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/738918/ft1_filtered_4FGL_J2317.7+2839_daily_bin770.fits" evtable="EVENTS" scfile=/scratch/kocevski/738918/ft2_4FGL_J2317.7+2839_daily_bin770.fits sctable="SC_DATA" outfile=/scratch/kocevski/738918/ltcube_438912001_439171201_4FGL_J2317.7+2839_daily_bin770.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/738918/ft2_4FGL_J2317.7+2839_daily_bin770.fits
.....................!
real 12.50
user 12.16
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/738918/ft1_filtered_4FGL_J2317.7+2839_daily_bin770.fits evtable="EVENTS" scfile=/scratch/kocevski/738918/ft2_4FGL_J2317.7+2839_daily_bin770.fits sctable="SC_DATA" expcube=/scratch/kocevski/738918/ltcube_438912001_439171201_4FGL_J2317.7+2839_daily_bin770.fits outfile=/scratch/kocevski/738918/expmap_438912001_439171201_4FGL_J2317.7+2839_daily_bin770.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/738918/ltcube_438912001_439171201_4FGL_J2317.7+2839_daily_bin770.fits
.....................!
real 190.89
user 185.37
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/738918/ft1_filtered_4FGL_J2317.7+2839_daily_bin770.fits scfile=/scratch/kocevski/738918/ft2_4FGL_J2317.7+2839_daily_bin770.fits outfile=/scratch/kocevski/738918/cmap_438912001_439171201_4FGL_J2317.7+2839_daily_bin770.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/738918/ft1_filtered_4FGL_J2317.7+2839_daily_bin770.fits scfile=/scratch/kocevski/738918/ft2_4FGL_J2317.7+2839_daily_bin770.fits outfile=/scratch/kocevski/738918/cmap_HighResolution_438912001_439171201_4FGL_J2317.7+2839_daily_bin770.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/738918/ft1_filtered_4FGL_J2317.7+2839_daily_bin770.fits evtable="EVENTS" scfile=/scratch/kocevski/738918/ft2_4FGL_J2317.7+2839_daily_bin770.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/738918/Model_4FGL_J2317.7+2839_daily_bin770.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/738918/ft1_filtered_4FGL_J2317.7+2839_daily_bin770.fits.....................!
real 49.93
user 48.61
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9676       1.0000         .10000E-03   10000.    
     2 'Prefactor '    26.074       1.0000         .10000E-03   10000.    
     3 'norm      '    2.0311       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11518E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.8432       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.1714       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.4959       1.0000         .10000E-03   10000.    
    13 'norm      '    14.183       1.0000         .10000E-03   10000.    
    14 'Prefactor '    31.999       1.0000         .10000E-03   10000.    
    15 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    40.910       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    100.07       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .71568       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1449       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=   3928.607     FROM MIGRAD    STATUS=CONVERGED    425 CALLS     2045 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9663        1.8161        .35648E-06    .18270E-03
   2  Prefactor     25.978        39.935        .10290E-05    .39119E-04
   3  norm          2.0305        3.2508        .13595E-06    .12467E-03
   4  Prefactor     .10000E-03    150.39        .14783E-04** at limit **
   5  Prefactor     .10000E-03    43.894       -.88382E-06** at limit **
   6  Prefactor     7.8349        16.067       -.36951E-07    .31390E-04
   7  Prefactor     .10000E-03    26.269       -.13426E-05** at limit **
   8  norm          2.1701        2.5806       -.97181E-06   -.34049E-04
   9  Prefactor     .10000E-03    22.317       -.11739E-05** at limit **
  10  Prefactor     .10000E-03    27.999       -.32110E-05** at limit **
  11  Prefactor     .10000E-03    12.824       -.32020E-06** at limit **
  12  Prefactor     5.5040        12.244       -.14619E-06    .25053E-04
  13  norm          14.180        11.289       -.24025E-06    .62366E-04
  14  Prefactor     32.000        38.722        .93390E-06    .44557E-04
  15  norm          .10000E-03    2.4923       -.80836E-06** at limit **
  16  Prefactor     40.832        41.245        .78333E-06    .41419E-04
  17  Prefactor     .10000E-03    16.790        .40493E-07** at limit **
  18  Prefactor     100.01        70.322        .14976E-05    .40340E-04
  19  Normalizat    .71477        .35558       -.40666E-05    .13656E-03
  20  Prefactor     1.1455        .17781        .33149E-05    .81523E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.96627
  Prefactor  = 25.9778
  norm       = 2.03048
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 7.83488
  Prefactor  = 0.0001
  norm       = 2.1701
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.50398
  norm       = 14.1805
  Prefactor  = 31.9995
  norm       = 0.0001
  Prefactor  = 40.8315
  Prefactor  = 0.0001
  Prefactor  = 100.007
  Normalizat = 0.714771
  Prefactor  = 1.14553
 **********
 **   18 **HESSE 
 **********

 FCN=   3928.607     FROM HESSE     STATUS=OK           293 CALLS     2338 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9663        1.8069        .77008E-04   -1.5428    
   2  Prefactor     25.978        39.946        .78452E-04   -1.4688    
   3  norm          2.0305        3.1525        .13585E-03   -1.5423    
   4  Prefactor     .10000E-03    147.11        .55469E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    44.270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.8349        16.024        .14318E-03   -1.5148    
   7  Prefactor     .10000E-03    26.302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.1701        2.5683        .10351E-03   -1.5413    
   9  Prefactor     .10000E-03    22.421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    28.454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    12.830        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.5040        12.182        .17139E-03   -1.5239    
  13  norm          14.180        11.282        .10635E-03   -1.4955    
  14  Prefactor     32.000        38.692        .70834E-04   -1.4576    
  15  norm          .10000E-03    2.5253        .96854E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     40.832        41.150        .62671E-04   -1.4429    
  17  Prefactor     .10000E-03    16.817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     100.01        70.220        .20094E-03   -1.3705    
  19  Normalizat    .71477        .37168        .44074E-03   -1.0331    
  20  Prefactor     1.1455        .18645        .18418E-03   -.88024    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.60448e-10
Minuit parameter uncertainties:
  1  1.80699
  2  39.9873
  3  3.15275
  4  0.000652133
  5  0.000102145
  6  16.033
  7  3.75809e-05
  8  2.56845
  9  3.69347e-05
  10  0.000129027
  11  9.16813e-06
  12  12.1878
  13  11.2834
  14  38.7226
  15  1.01586e-05
  16  41.179
  17  1.77653e-05
  18  70.2781
  19  0.373001
  20  0.186555
Done.

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

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  1.000e-04  9.168e-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.146e+00  1.866e-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.148e-01  3.730e-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: 8.47e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.35e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/738918/likelihoodResults_438912001_439171201_4FGL_J2317.7+2839_daily_bin770.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) = 3928.60747285
delta logL = -0.0003687618605

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3928.60710414
delta logL = -5.32718331669e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10383E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9784       1.0000          .0000       10.000    
     3 'Normalizat'    .71474       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1455       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=   3928.607     FROM MIGRAD    STATUS=FAILED        91 CALLS      245 TOTAL
                     EDM=   .84E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1278.8        .18142E-02** at limit **
   2  Index         1.9533        8.8656        .50000        .14552E-04
   3  Normalizat    .71477        .93320E-01    .44071E-03    .12303E-03
   4  Prefactor     1.1455        .48826E-01    .18418E-03    .12870E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3928.607     FROM SIMPLEX   STATUS=UNCHANGED    182 CALLS      427 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1278.8        .68576E-03** at limit **
   2  Index         1.9533        8.8656        .10111E-05    .14552E-04
   3  Normalizat    .71477        .93320E-01    .76372E-07    .12303E-03
   4  Prefactor     1.1455        .48826E-01    .10529E-07    .12870E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3928.607     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      461 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    64.681        .36285E-03** at limit **
   2  Index         1.9532        5.8120        .50000        .14549E-04
   3  Normalizat    .71477        .34425        .17628E-04    .12292E-03
   4  Prefactor     1.1455        .18054        .73671E-05    .12808E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Index      = 1.95315
  Normalizat = 0.714772
  Prefactor  = 1.14553
 **********
 **   18 **HESSE 
 **********

 FCN=   3928.607     FROM HESSE     STATUS=OK            29 CALLS      490 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.836        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9532        5.9641        .50000       -.65527    
   3  Normalizat    .71477        .34455        .35257E-05   -1.0331    
   4  Prefactor     1.1455        .18068        .14734E-05   -.88024    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.16502e-10
Minuit parameter uncertainties:
  1  0.000398657
  2  4.02628
  3  0.345603
  4  0.180775
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/738918': 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) = 3928.6071039
delta logL = 1.8955233827e-07

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  1.000e-04  3.987e-04  1.000e-04  1.000e+04 ( 1.000e-14)
413        Index:  1.953e+00  4.026e+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.146e+00  1.808e-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.148e-01  3.456e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/738918/cmap_HighResolution_438912001_439171201_4FGL_J2317.7+2839_daily_bin770.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.35e-03', job_status='DONE', photon_flux_upper_limit='8.47e-08', time_completed='2021-09-29 10:59:22.029469', job_id='738918', GAL2='1.15', fit_tolerance='1e-08', EG2='0.71', EG='0.71', time_epoch_completed='1632938362.03', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='1.90e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='770' AND source_name='4FGL J2317.7+2839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 10:59:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 738918: <4FGL_J2317.7+2839_daily_bin770> in cluster <slac> Done

Job <4FGL_J2317.7+2839_daily_bin770> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep 29 10:50:28 2021
Job was executed on host(s) <bullet0104>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 10:50:29 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:29 2021
Terminated at Wed Sep 29 10:59:22 2021
Results reported at Wed Sep 29 10:59:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2317.7+2839_daily_bin770 349.438 28.6589 438912001 439171201 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 :                                   517.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             391.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   533 sec.
    Turnaround time :                            534 sec.

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

