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


Performing analysis on: 4FGL_J2313.5+3945_daily_bin1068
RA = 348.4, Dec = 39.7644
tmin = 516153601, tmax = 516412801
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='714503', job_status='RUN', time_executed='2021-09-29 09:30:55.380140', time_epoch_executed='1632933055.38' WHERE source_name='4FGL J2313.5+3945' and cadence='daily' and bin_id='1068'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/714503

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/714503/ft1_4FGL_J2313.5+3945_daily_bin1068.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/714503/ft2_4FGL_J2313.5+3945_daily_bin1068.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/714503/ft1_4FGL_J2313.5+3945_daily_bin1068.fits outfile=/scratch/kocevski/714503/ft1_filteredMKT_4FGL_J2313.5+3945_daily_bin1068.fits ra=348.4 dec=39.7644 rad=12.0 tmin=516153601.0 tmax=516412801.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.51
user 3.30
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/714503/ft2_4FGL_J2313.5+3945_daily_bin1068.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/714503/ft2_4FGL_J2313.5+3945_daily_bin1068.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/714503/ft1_filteredMKT_4FGL_J2313.5+3945_daily_bin1068.fits evtable="EVENTS" outfile="/scratch/kocevski/714503/ft1_filtered_4FGL_J2313.5+3945_daily_bin1068.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/714503/ft1_filtered_4FGL_J2313.5+3945_daily_bin1068.fits" evtable="EVENTS" scfile=/scratch/kocevski/714503/ft2_4FGL_J2313.5+3945_daily_bin1068.fits sctable="SC_DATA" outfile=/scratch/kocevski/714503/ltcube_516153601_516412801_4FGL_J2313.5+3945_daily_bin1068.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/714503/ft2_4FGL_J2313.5+3945_daily_bin1068.fits
.....................!
real 11.90
user 11.50
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/714503/ft1_filtered_4FGL_J2313.5+3945_daily_bin1068.fits evtable="EVENTS" scfile=/scratch/kocevski/714503/ft2_4FGL_J2313.5+3945_daily_bin1068.fits sctable="SC_DATA" expcube=/scratch/kocevski/714503/ltcube_516153601_516412801_4FGL_J2313.5+3945_daily_bin1068.fits outfile=/scratch/kocevski/714503/expmap_516153601_516412801_4FGL_J2313.5+3945_daily_bin1068.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/714503/ltcube_516153601_516412801_4FGL_J2313.5+3945_daily_bin1068.fits
.....................!
real 192.74
user 187.30
sys 5.08

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
Extended source FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Added 161 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2313.5+3945 @ 348.4 39.7644

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/714503/ft1_filtered_4FGL_J2313.5+3945_daily_bin1068.fits scfile=/scratch/kocevski/714503/ft2_4FGL_J2313.5+3945_daily_bin1068.fits outfile=/scratch/kocevski/714503/cmap_516153601_516412801_4FGL_J2313.5+3945_daily_bin1068.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=348.4 yref=39.7644 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.59
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/714503/ft1_filtered_4FGL_J2313.5+3945_daily_bin1068.fits scfile=/scratch/kocevski/714503/ft2_4FGL_J2313.5+3945_daily_bin1068.fits outfile=/scratch/kocevski/714503/cmap_HighResolution_516153601_516412801_4FGL_J2313.5+3945_daily_bin1068.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=348.4 yref=39.7644 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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/714503/ft1_filtered_4FGL_J2313.5+3945_daily_bin1068.fits evtable="EVENTS" scfile=/scratch/kocevski/714503/ft2_4FGL_J2313.5+3945_daily_bin1068.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/714503/Model_4FGL_J2313.5+3945_daily_bin1068.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 CTB 109
adding source EG_v02
adding source FHES J2304.0+5406
adding source GAL_V02
Working on...
/scratch/kocevski/714503/ft1_filtered_4FGL_J2313.5+3945_daily_bin1068.fits.....................!
real 147.84
user 146.30
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/714503/ft1_filtered_4FGL_J2313.5+3945_daily_bin1068.fits', '/scratch/kocevski/714503/ft2_4FGL_J2313.5+3945_daily_bin1068.fits', expMap='/scratch/kocevski/714503/expmap_516153601_516412801_4FGL_J2313.5+3945_daily_bin1068.fits', expCube='/scratch/kocevski/714503/ltcube_516153601_516412801_4FGL_J2313.5+3945_daily_bin1068.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/714503/Model_4FGL_J2313.5+3945_daily_bin1068.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2313.5+3945'

4FGL J2313.5+3945
   Spectrum: PowerLaw
406    Prefactor:  4.195e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
407        Index:  2.758e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
408        Scale:  4.854e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/714503/ft1_filtered_4FGL_J2313.5+3945_daily_bin1068.fits
Spacecraft file(s): /scratch/kocevski/714503/ft2_4FGL_J2313.5+3945_daily_bin1068.fits
Exposure map: /scratch/kocevski/714503/expmap_516153601_516412801_4FGL_J2313.5+3945_daily_bin1068.fits
Exposure cube: /scratch/kocevski/714503/ltcube_516153601_516412801_4FGL_J2313.5+3945_daily_bin1068.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/714503/Model_4FGL_J2313.5+3945_daily_bin1068.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) = 12459.3800324

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10102E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.1336       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.2301       1.0000         .10000E-03   10000.    
     7 'norm      '    16.585       1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.938       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    6.1199       1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.037       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.2581       1.0000         .10000E-03   10000.    
    14 'norm      '    10.356       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    37.556       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    21.183       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2334       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .90479       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5410E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   12459.38     FROM MIGRAD    STATUS=CONVERGED    520 CALLS     2643 TOTAL
                     EDM=   .63E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.9309       -.12151E-05** at limit **
   2  Prefactor     .10000E-03    6.7518        .26447E-06** at limit **
   3  norm          .10000E-03    23.780        .22849E-06** at limit **
   4  Prefactor     1.1318        .62606        .20554E-07   -.56378E-03
   5  Prefactor     .10000E-03    15.988        .25006E-05** at limit **
   6  Prefactor     7.2297        9.0132        .99019E-07   -.11344E-04
   7  norm          16.585        6.0428        .34039E-06   -.77440E-05
   8  Prefactor     13.938        12.233       -.84626E-07   -.25807E-05
   9  Prefactor     .10000E-03    2.4933       -.36939E-07** at limit **
  10  Prefactor     .10000E-03    10.770        .61245E-06** at limit **
  11  norm          6.1196        1.8949       -.47261E-07   -.38670E-04
  12  Prefactor     16.035        10.628       -.24743E-06   -.24091E-05
  13  Prefactor     6.2546        15.089       -.23223E-05   -.59674E-05
  14  norm          10.357        5.3801        .11535E-06   -.70651E-04
  15  norm          .10000E-03    15.218        .15805E-05** at limit **
  16  Prefactor     .10000E-03    9.7767        .32151E-05** at limit **
  17  norm          .10000E-03    .96481       -.18483E-07** at limit **
  18  Prefactor     .10000E-03    12.100       -.26036E-05** at limit **
  19  Prefactor     .10000E-03    12.636       -.32638E-05** at limit **
  20  Prefactor     37.545        45.640       -.15681E-04    .52592E-05
  21  Prefactor     .10000E-03    24.335       -.13176E-05** at limit **
  22  Prefactor     21.176        9.8316       -.57811E-07    .28275E-04
  23  Normalizat    1.2336        .21387        .23467E-05   -.10657E-03
  24  Prefactor     .90471        .71492E-01   -.40376E-06    .16071E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.13176
  Prefactor  = 0.0001
  Prefactor  = 7.22968
  norm       = 16.5846
  Prefactor  = 13.9379
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.11961
  Prefactor  = 16.0348
  Prefactor  = 6.25456
  norm       = 10.3567
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.5448
  Prefactor  = 0.0001
  Prefactor  = 21.1765
  Normalizat = 1.23362
  Prefactor  = 0.904705
 **********
 **   18 **HESSE 
 **********

 FCN=   12459.38     FROM HESSE     STATUS=OK           393 CALLS     3036 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.9329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.7609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    24.032        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.1318        5.9295        .21907E-02   -1.5495    
   5  Prefactor     .10000E-03    15.989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.2297        8.9938        .14917E-03   -1.5170    
   7  norm          16.585        6.0348        .98348E-04   -1.4893    
   8  Prefactor     13.938        12.232        .10729E-03   -1.4961    
   9  Prefactor     .10000E-03    2.5052        .17207E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.785        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.1196        1.8983        .80827E-04   -1.5213    
  12  Prefactor     16.035        10.661        .10001E-03   -1.4907    
  13  Prefactor     6.2546        15.083        .16046E-03   -1.5208    
  14  norm          10.357        5.3781        .12451E-03   -1.5064    
  15  norm          .10000E-03    15.711        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.8250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .98580        .10702E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    12.121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    12.645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     37.545        45.687        .65400E-04   -1.4482    
  21  Prefactor     .10000E-03    24.341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     21.176        10.085        .87026E-04   -1.4787    
  23  Normalizat    1.2336        .24684        .40748E-03   -.85570    
  24  Prefactor     .90471        .82787E-01    .16603E-03   -.95977    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.46431e-10
Minuit parameter uncertainties:
  1  1.68627e-06
  2  3.70004e-06
  3  2.58222e-09
  4  5.1816
  5  3.41077e-06
  6  8.99548
  7  6.035
  8  12.2337
  9  5.55087e-06
  10  4.32999e-06
  11  1.89837
  12  10.6619
  13  15.0924
  14  5.37835
  15  3.48666e-05
  16  7.11765e-06
  17  9.37875e-07
  18  3.08611e-05
  19  3.79778e-06
  20  45.7294
  21  2.0545e-06
  22  10.0861
  23  0.24707
  24  0.0827987
Done.

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

Extracting fit parameters...

4FGL J2313.5+3945
   Spectrum: PowerLaw
406    Prefactor:  1.603e+01  1.066e+01  1.000e-04  1.000e+04 ( 1.000e-12)
407        Index:  2.758e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
408        Scale:  4.854e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
538    Prefactor:  9.047e-01  8.280e-02  0.000e+00  1.000e+01 ( 1.000e+00)
539        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
540        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
533   Normalization:  1.234e+00  2.471e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.87
Ra Dec: 348.400 39.764
Photon Index (Fixed Index): 2.76 +/- 0.00
Photon Flux (Fixed Index): 7.13e-08 +/- 4.73e-08
Energy Flux (Fixed Index): 1.64e-05 +/- 1.09e-05

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) = 12459.3167062
delta logL = 0.0613560260317

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12459.3109087
delta logL = 0.0671534398589

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.880       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1840       1.0000          .0000       10.000    
     3 'Normalizat'    1.1935       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91297       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5410E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   12459.31     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      216 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.851        133.27        .25958E-02    .47981E-03
   2  Index         3.1889        6.5851        .21716        .21331E-03
   3  Normalizat    1.1933        .99428E-01    .93284E-01   -.24247E-04
   4  Prefactor     .91303        .26115E-01    .45170E-01   -.15696E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.8514
  Index      = 3.18889
  Normalizat = 1.19325
  Prefactor  = 0.913026
 **********
 **   18 **HESSE 
 **********

 FCN=   12459.31     FROM HESSE     STATUS=OK            31 CALLS      247 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.851        14.503        .10383E-03   -1.4937    
   2  Index         3.1889        1.4270        .11045E-01   -.37065    
   3  Normalizat    1.1933        .26204        .41321E-03   -.86812    
   4  Prefactor     .91303        .86321E-01    .16534E-03   -.95687    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.50875e-10
Minuit parameter uncertainties:
  1  14.5063
  2  1.45027
  3  0.26233
  4  0.0863335
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/714503': 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) = 12459.3108996
delta logL = 0.0671625762752

Extracting fit parameters...

4FGL J2313.5+3945
   Spectrum: PowerLaw
406    Prefactor:  1.485e+01  1.451e+01  1.000e-04  1.000e+04 ( 1.000e-12)
407        Index:  3.189e+00  1.450e+00  0.000e+00  1.000e+01 (-1.000e+00)
408        Scale:  4.854e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
538    Prefactor:  9.130e-01  8.633e-02  0.000e+00  1.000e+01 ( 1.000e+00)
539        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
540        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
533   Normalization:  1.193e+00  2.623e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.10
Ra Dec: 348.400 39.764
Photon Index (Free Index): 3.19 +/- 1.45
Photon Flux (Free Index): 1.05e-07 +/- 1.06e-07
Energy Flux (Free Index): 1.93e-05 +/- 1.23e-05

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/714503/cmap_HighResolution_516153601_516412801_4FGL_J2313.5+3945_daily_bin1068.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.13e-08', energy_flux2='1.93e-05', photon_flux_error='4.73e-08', dlogl='6.72e-02', energy_flux='1.64e-05', photon_flux2='1.05e-07', job_status='DONE', time_completed='2021-09-29 09:46:26.521056', photon_index_error2='1.45', photon_index2='3.19', ts='4.87', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', energy_flux_error2='1.23e-05', EG='1.23', time_epoch_completed='1632933986.52', return_code='0', job_id='714503', GAL2='0.91', EG2='1.19', return_code2='0', energy_flux_error='1.09e-05', photon_flux_error2='1.06e-07', ts2='5.10', photon_index='2.76' WHERE bin_id='1068' AND source_name='4FGL J2313.5+3945' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 09:46:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 714503: <4FGL_J2313.5+3945_daily_bin1068> in cluster <slac> Done

Job <4FGL_J2313.5+3945_daily_bin1068> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 09:30:37 2021
Job was executed on host(s) <bullet0202>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 09:30:39 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 09:30:39 2021
Terminated at Wed Sep 29 09:46:26 2021
Results reported at Wed Sep 29 09:46:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2313.5+3945_daily_bin1068 348.4 39.7644 516153601 516412801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2313.5+3945 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   925.00 sec.
    Max Memory :                                 618 MB
    Average Memory :                             335.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   947 sec.
    Turnaround time :                            949 sec.

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

