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


Performing analysis on: 4FGL_J2317.7+2839_daily_bin1519
RA = 349.438, Dec = 28.6589
tmin = 633052801, tmax = 633312001
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='742136', job_status='RUN', time_executed='2021-09-29 11:03:42.148216', time_epoch_executed='1632938622.15' WHERE source_name='4FGL J2317.7+2839' and cadence='daily' and bin_id='1519'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/742136

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/742136/ft1_4FGL_J2317.7+2839_daily_bin1519.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/742136/ft2_4FGL_J2317.7+2839_daily_bin1519.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/742136/ft1_4FGL_J2317.7+2839_daily_bin1519.fits outfile=/scratch/kocevski/742136/ft1_filteredMKT_4FGL_J2317.7+2839_daily_bin1519.fits ra=349.438 dec=28.6589 rad=12.0 tmin=633052801.0 tmax=633312001.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 3.68
user 3.43
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/742136/ft2_4FGL_J2317.7+2839_daily_bin1519.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/742136/ft1_filteredMKT_4FGL_J2317.7+2839_daily_bin1519.fits evtable="EVENTS" outfile="/scratch/kocevski/742136/ft1_filtered_4FGL_J2317.7+2839_daily_bin1519.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.54
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/742136/ft1_filtered_4FGL_J2317.7+2839_daily_bin1519.fits" evtable="EVENTS" scfile=/scratch/kocevski/742136/ft2_4FGL_J2317.7+2839_daily_bin1519.fits sctable="SC_DATA" outfile=/scratch/kocevski/742136/ltcube_633052801_633312001_4FGL_J2317.7+2839_daily_bin1519.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/742136/ft2_4FGL_J2317.7+2839_daily_bin1519.fits
.....................!
real 11.88
user 11.50
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/742136/ft1_filtered_4FGL_J2317.7+2839_daily_bin1519.fits evtable="EVENTS" scfile=/scratch/kocevski/742136/ft2_4FGL_J2317.7+2839_daily_bin1519.fits sctable="SC_DATA" expcube=/scratch/kocevski/742136/ltcube_633052801_633312001_4FGL_J2317.7+2839_daily_bin1519.fits outfile=/scratch/kocevski/742136/expmap_633052801_633312001_4FGL_J2317.7+2839_daily_bin1519.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/742136/ltcube_633052801_633312001_4FGL_J2317.7+2839_daily_bin1519.fits
.....................!
real 194.15
user 188.13
sys 5.66

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/742136/ft1_filtered_4FGL_J2317.7+2839_daily_bin1519.fits scfile=/scratch/kocevski/742136/ft2_4FGL_J2317.7+2839_daily_bin1519.fits outfile=/scratch/kocevski/742136/cmap_633052801_633312001_4FGL_J2317.7+2839_daily_bin1519.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/742136/ft1_filtered_4FGL_J2317.7+2839_daily_bin1519.fits scfile=/scratch/kocevski/742136/ft2_4FGL_J2317.7+2839_daily_bin1519.fits outfile=/scratch/kocevski/742136/cmap_HighResolution_633052801_633312001_4FGL_J2317.7+2839_daily_bin1519.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10062E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10223E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.1413       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10422E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .24502E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.5129       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.3367       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .20799E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.9428       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.0709       1.0000         .10000E-03   10000.    
    13 'norm      '    .10484E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10415E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.9442       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10428E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    108.75       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .40880       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2428       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5440E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8666.716     FROM MIGRAD    STATUS=CONVERGED    436 CALLS     2109 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .27992        .19960E-01** at limit **
   2  Prefactor     .10000E-03    3.0228        .90712E-02** at limit **
   3  norm          3.1419        1.8098        .57180E-02    .46408E-04
   4  Prefactor     .10000E-03    5.1583        .90712E-02** at limit **
   5  Prefactor     .10000E-03    3.5441        .90712E-02** at limit **
   6  Prefactor     .10000E-03    10.385        .90712E-02** at limit **
   7  Prefactor     .10000E-03    12.798        .12247    ** at limit **
   8  norm          1.5132        1.0596        .86914E-02    .35537E-03
   9  Prefactor     9.3464        19.330        .32789E-02    .61187E-03
  10  Prefactor     .10000E-03    14.489        .90712E-02** at limit **
  11  Prefactor     9.9371        16.709        .31770E-02   -.72798E-03
  12  Prefactor     3.0654        7.5736        .57869E-02    .66675E-03
  13  norm          .10000E-03    3.1760        .53329E-01** at limit **
  14  Prefactor     .10000E-03    6.7029        .90712E-02** at limit **
  15  norm          .10000E-03    .58959        .90712E-02** at limit **
  16  Prefactor     1.9581        66.682        .74425E-02    .28001E-03
  17  Prefactor     .10000E-03    6.4883        .90712E-02** at limit **
  18  Prefactor     108.75        44.138        .96419E-03    .33026E-03
  19  Normalizat    .40819        .21577        .10772        .68709E-04
  20  Prefactor     1.2431        .11118        .33689E-01   -.28233E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.14186
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 1.51318
  Prefactor  = 9.34639
  Prefactor  = 0.0001
  Prefactor  = 9.93711
  Prefactor  = 3.06538
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.95806
  Prefactor  = 0.0001
  Prefactor  = 108.75
  Normalizat = 0.408186
  Prefactor  = 1.2431
 **********
 **   18 **HESSE 
 **********

 FCN=   8666.716     FROM HESSE     STATUS=OK           295 CALLS     2404 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .55908        .95855E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.0234        .15808E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.1419        1.8090        .92620E-04   -1.5353    
   4  Prefactor     .10000E-03    5.2364        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.5446        .17116E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.859        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    97.553        .64425E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.5132        1.0441        .76444E-04   -1.5462    
   9  Prefactor     9.3464        19.206        .13116E-03   -1.5096    
  10  Prefactor     .10000E-03    15.056        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.9371        16.687        .12708E-03   -1.5077    
  12  Prefactor     3.0654        7.1206        .23147E-03   -1.5358    
  13  norm          .10000E-03    18.881        .31771E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.7226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .59310        .69805E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.9581        59.088        .29770E-03   -1.5428    
  17  Prefactor     .10000E-03    6.4957        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     108.75        43.789        .38568E-04   -1.3618    
  19  Normalizat    .40819        .21228        .47733E-03   -1.1688    
  20  Prefactor     1.2431        .11216        .15692E-03   -.85015    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.28711e-09
Minuit parameter uncertainties:
  1  1.18061e-07
  2  9.13057e-07
  3  1.80903
  4  5.63023e-07
  5  5.8546e-07
  6  5.1256e-06
  7  0.000982036
  8  1.04414
  9  19.2182
  10  3.18399e-05
  11  16.6945
  12  7.12254
  13  2.37006e-05
  14  1.20476e-05
  15  1.09514e-07
  16  21.5355
  17  9.21873e-06
  18  43.8023
  19  0.212702
  20  0.112184
Done.

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

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  9.937e+00  1.669e+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:  1.243e+00  1.122e-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:  4.082e-01  2.127e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/742136/likelihoodResults_633052801_633312001_4FGL_J2317.7+2839_daily_bin1519.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) = 8666.57948221
delta logL = 0.136930814802

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8666.57504724
delta logL = 0.141365789214

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.9273       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5025       1.0000          .0000       10.000    
     3 'Normalizat'    .39603       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2454       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=   8666.575     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      297 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.9227        27.740        .18119E-03   -.66847E-03
   2  Index         2.5027        1.8000        .80265E-02   -.15111E-03
   3  Normalizat    .39605        .20522        .48436E-03    .30330E-03
   4  Prefactor     1.2454        .11224        .15677E-03    .62083E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.92269
  Index      = 2.50272
  Normalizat = 0.396055
  Prefactor  = 1.24537
 **********
 **   18 **HESSE 
 **********

 FCN=   8666.575     FROM HESSE     STATUS=OK            25 CALLS      322 TOTAL
                     EDM=   .99E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.9227        12.265        .72477E-05   -1.5264    
   2  Index         2.5027        .96477        .32106E-03   -.52297    
   3  Normalizat    .39605        .20172        .19374E-04   -1.1751    
   4  Prefactor     1.2454        .11131        .31354E-04   -.84946    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.94969e-10
Minuit parameter uncertainties:
  1  12.271
  2  0.972932
  3  0.202088
  4  0.111329
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/742136': 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) = 8666.57504715
delta logL = 0.141365871896

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  4.923e+00  1.227e+01  1.000e-04  1.000e+04 ( 1.000e-14)
413        Index:  2.503e+00  9.729e-01  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.245e+00  1.113e-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:  3.961e-01  2.021e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.48
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/742136/cmap_HighResolution_633052801_633312001_4FGL_J2317.7+2839_daily_bin1519.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.20e-03', job_status='DONE', photon_flux_upper_limit='6.93e-08', time_completed='2021-09-29 11:16:21.838283', job_id='742136', GAL2='1.25', fit_tolerance='1e-08', EG2='0.40', EG='0.41', time_epoch_completed='1632939381.84', return_code2='0', ts='0.48', comment='SUCCESS', return_code='0', GAL='1.24', dlogl='1.41e-01', ts2='0.78', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1519' AND source_name='4FGL J2317.7+2839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:16:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 742136: <4FGL_J2317.7+2839_daily_bin1519> in cluster <slac> Done

Job <4FGL_J2317.7+2839_daily_bin1519> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep 29 11:00:43 2021
Job was executed on host(s) <bullet0222>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 11:00:44 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 11:00:44 2021
Terminated at Wed Sep 29 11:16:22 2021
Results reported at Wed Sep 29 11:16:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2317.7+2839_daily_bin1519 349.438 28.6589 633052801 633312001 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 :                                   732.21 sec.
    Max Memory :                                 1112 MB
    Average Memory :                             256.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   938 sec.
    Turnaround time :                            939 sec.

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

