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


Performing analysis on: 4FGL_J2317.7+2839_daily_bin1055
RA = 349.438, Dec = 28.6589
tmin = 512784001, tmax = 513043201
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='740372', job_status='RUN', time_executed='2021-09-29 10:58:16.449595', time_epoch_executed='1632938296.45' WHERE source_name='4FGL J2317.7+2839' and cadence='daily' and bin_id='1055'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/740372

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/740372/ft1_4FGL_J2317.7+2839_daily_bin1055.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/740372/ft2_4FGL_J2317.7+2839_daily_bin1055.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/740372/ft1_4FGL_J2317.7+2839_daily_bin1055.fits outfile=/scratch/kocevski/740372/ft1_filteredMKT_4FGL_J2317.7+2839_daily_bin1055.fits ra=349.438 dec=28.6589 rad=12.0 tmin=512784001.0 tmax=513043201.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 4.40
user 4.11
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/740372/ft2_4FGL_J2317.7+2839_daily_bin1055.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/740372/ft1_filteredMKT_4FGL_J2317.7+2839_daily_bin1055.fits evtable="EVENTS" outfile="/scratch/kocevski/740372/ft1_filtered_4FGL_J2317.7+2839_daily_bin1055.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.52
user 0.30
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/740372/ft1_filtered_4FGL_J2317.7+2839_daily_bin1055.fits" evtable="EVENTS" scfile=/scratch/kocevski/740372/ft2_4FGL_J2317.7+2839_daily_bin1055.fits sctable="SC_DATA" outfile=/scratch/kocevski/740372/ltcube_512784001_513043201_4FGL_J2317.7+2839_daily_bin1055.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/740372/ft2_4FGL_J2317.7+2839_daily_bin1055.fits
.....................!
real 12.03
user 11.64
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/740372/ft1_filtered_4FGL_J2317.7+2839_daily_bin1055.fits evtable="EVENTS" scfile=/scratch/kocevski/740372/ft2_4FGL_J2317.7+2839_daily_bin1055.fits sctable="SC_DATA" expcube=/scratch/kocevski/740372/ltcube_512784001_513043201_4FGL_J2317.7+2839_daily_bin1055.fits outfile=/scratch/kocevski/740372/expmap_512784001_513043201_4FGL_J2317.7+2839_daily_bin1055.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/740372/ltcube_512784001_513043201_4FGL_J2317.7+2839_daily_bin1055.fits
.....................!
real 191.37
user 185.82
sys 5.22

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/740372/ft1_filtered_4FGL_J2317.7+2839_daily_bin1055.fits scfile=/scratch/kocevski/740372/ft2_4FGL_J2317.7+2839_daily_bin1055.fits outfile=/scratch/kocevski/740372/cmap_512784001_513043201_4FGL_J2317.7+2839_daily_bin1055.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/740372/ft1_filtered_4FGL_J2317.7+2839_daily_bin1055.fits scfile=/scratch/kocevski/740372/ft2_4FGL_J2317.7+2839_daily_bin1055.fits outfile=/scratch/kocevski/740372/cmap_HighResolution_512784001_513043201_4FGL_J2317.7+2839_daily_bin1055.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/740372/ft1_filtered_4FGL_J2317.7+2839_daily_bin1055.fits evtable="EVENTS" scfile=/scratch/kocevski/740372/ft2_4FGL_J2317.7+2839_daily_bin1055.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/740372/Model_4FGL_J2317.7+2839_daily_bin1055.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/740372/ft1_filtered_4FGL_J2317.7+2839_daily_bin1055.fits.....................!
real 88.11
user 86.73
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .93372       1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.112       1.0000         .10000E-03   10000.    
     3 'norm      '    6.1168       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10240E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.7875       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.5739       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.186       1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.754       1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.267       1.0000         .10000E-03   10000.    
    13 'norm      '    .45970       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10419E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .98198       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10981E-02   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.4003       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .81517       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=   7666.704     FROM MIGRAD    STATUS=CONVERGED    727 CALLS     2353 TOTAL
                     EDM=   .94E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .93401        .75968        .67568E-04   -.69490E-04
   2  Prefactor     12.113        11.425        .11510E-03    .78028E-05
   3  norm          6.1173        2.5611        .88351E-04   -.14926E-04
   4  Prefactor     .10000E-03    6.4830        .18142E-02** at limit **
   5  Prefactor     .10000E-03    26.815        .18142E-02** at limit **
   6  Prefactor     9.7890        10.489        .12809E-03    .14734E-04
   7  Prefactor     .10000E-03    17.466        .18142E-02** at limit **
   8  norm          1.5741        1.1530        .77447E-04    .20991E-03
   9  Prefactor     .10000E-03    6.7662        .18142E-02** at limit **
  10  Prefactor     15.187        12.946        .10278E-03   -.12709E-03
  11  Prefactor     13.751        18.124        .10800E-03    .14811E-03
  12  Prefactor     10.267        6.9084        .12505E-03   -.13819E-04
  13  norm          .46099        4.0643        .34064E-03    .17889E-03
  14  Prefactor     .10000E-03    15.807        .18142E-02** at limit **
  15  norm          .98239        1.9853        .19038E-02    .11732E-02
  16  Prefactor     .10000E-03    11.914        .18142E-02** at limit **
  17  Prefactor     .10000E-03    12.604        .18142E-02** at limit **
  18  Prefactor     .10002E-03    36.766        .13458    ** at limit **
  19  Normalizat    1.3999        .24523        .30405E-03    .88840E-04
  20  Prefactor     .81524        .12181        .19531E-03   -.15541E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.934011
  Prefactor  = 12.1127
  norm       = 6.11732
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.78899
  Prefactor  = 0.0001
  norm       = 1.57415
  Prefactor  = 0.0001
  Prefactor  = 15.1866
  Prefactor  = 13.751
  Prefactor  = 10.2674
  norm       = 0.460988
  Prefactor  = 0.000100002
  norm       = 0.982391
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100018
  Normalizat = 1.39989
  Prefactor  = 0.815244
 **********
 **   18 **HESSE 
 **********

 FCN=   7666.704     FROM HESSE     STATUS=OK           283 CALLS     2636 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .93401        .75967        .27027E-05   -1.5515    
   2  Prefactor     12.113        11.425        .46041E-05   -1.5012    
   3  norm          6.1173        2.5611        .35340E-05   -1.5213    
   4  Prefactor     .10000E-03    6.4838        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    26.829        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.7890        10.488        .51235E-05   -1.5082    
   7  Prefactor     .10000E-03    17.474        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.5741        1.1529        .30979E-05   -1.5457    
   9  Prefactor     .10000E-03    6.7664        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     15.187        12.942        .41112E-05   -1.4928    
  11  Prefactor     13.751        18.124        .43201E-05   -1.4966    
  12  Prefactor     10.267        6.9083        .50019E-05   -1.5067    
  13  norm          .46099        4.0630        .13626E-04   -1.5572    
  14  Prefactor     .10000E-03    15.812        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .98239        1.9829        .76153E-04   -1.5510    
  16  Prefactor     .10000E-03    11.915        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    12.606        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10002E-03    36.215        .13592       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.3999        .24544        .12162E-04   -.80632    
  20  Prefactor     .81524        .12191        .78125E-05   -.99169    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.68655e-10
Minuit parameter uncertainties:
  1  0.759675
  2  11.4271
  3  2.56118
  4  2.33827e-05
  5  8.5681e-05
  6  10.4903
  7  0.000181898
  8  1.15294
  9  8.85597e-06
  10  12.9447
  11  18.131
  12  6.9088
  13  2.73711
  14  0.000311549
  15  1.983
  16  0.000135552
  17  0.000103868
  18  0.00162662
  19  0.24565
  20  0.121953
Done.

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

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  1.375e+01  1.813e+01  1.000e-04  1.000e+04 ( 1.000e-14)
413        Index:  2.003e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
414        Scale:  3.565e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
541    Prefactor:  8.152e-01  1.220e-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.400e+00  2.456e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/740372/likelihoodResults_512784001_513043201_4FGL_J2317.7+2839_daily_bin1055.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7666.70360534
delta logL = 0.000553824388589

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7666.70305352
delta logL = 0.0011056406438

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.562       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9508       1.0000          .0000       10.000    
     3 'Normalizat'    1.4011       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81499       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=   7666.703     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      286 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.576        30.061        .10496E-03    .16247E-04
   2  Index         1.9506        1.2653        .14244E-01    .29559E-04
   3  Normalizat    1.4014        .23862        .30392E-03   -.45150E-04
   4  Prefactor     .81491        .12021        .19535E-03    .14794E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.5757
  Index      = 1.95062
  Normalizat = 1.40137
  Prefactor  = 0.814913
 **********
 **   18 **HESSE 
 **********

 FCN=   7666.703     FROM HESSE     STATUS=OK            25 CALLS      311 TOTAL
                     EDM=   .91E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.576        25.726        .41984E-05   -1.4944    
   2  Index         1.9506        1.0879        .56978E-03   -.65590    
   3  Normalizat    1.4014        .23760        .12157E-04   -.80589    
   4  Prefactor     .81491        .12014        .78139E-05   -.99181    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.12197e-11
Minuit parameter uncertainties:
  1  25.7452
  2  1.10209
  3  0.237792
  4  0.120176
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/740372': 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) = 7666.70305265
delta logL = 0.00110651671366

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  1.458e+01  2.575e+01  1.000e-04  1.000e+04 ( 1.000e-14)
413        Index:  1.951e+00  1.102e+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:  8.149e-01  1.202e-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.401e+00  2.378e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.94
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/740372/cmap_HighResolution_512784001_513043201_4FGL_J2317.7+2839_daily_bin1055.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.06e-03', job_status='DONE', photon_flux_upper_limit='8.07e-08', time_completed='2021-09-29 11:10:43.295210', job_id='740372', GAL2='0.81', fit_tolerance='1e-08', EG2='1.40', EG='1.40', time_epoch_completed='1632939043.3', return_code2='0', ts='0.94', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='1.11e-03', ts2='0.95', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1055' AND source_name='4FGL J2317.7+2839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:10:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0119>
Subject: Job 740372: <4FGL_J2317.7+2839_daily_bin1055> in cluster <slac> Done

Job <4FGL_J2317.7+2839_daily_bin1055> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 10:55:27 2021
Job was executed on host(s) <bullet0119>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 10:55:28 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:55:28 2021
Terminated at Wed Sep 29 11:10:44 2021
Results reported at Wed Sep 29 11:10:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2317.7+2839_daily_bin1055 349.438 28.6589 512784001 513043201 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 :                                   715.30 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             298.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   915 sec.
    Turnaround time :                            917 sec.

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

