/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 24 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 = 7388
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2313.5+3945_daily_bin169
RA = 348.4, Dec = 39.7644
tmin = 283132801, tmax = 283392001
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='708402', job_status='RUN', time_executed='2021-09-29 09:11:02.872108', time_epoch_executed='1632931862.87' WHERE source_name='4FGL J2313.5+3945' and cadence='daily' and bin_id='169'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/708402

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/708402/ft1_4FGL_J2313.5+3945_daily_bin169.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/708402/ft2_4FGL_J2313.5+3945_daily_bin169.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/708402/ft1_4FGL_J2313.5+3945_daily_bin169.fits outfile=/scratch/kocevski/708402/ft1_filteredMKT_4FGL_J2313.5+3945_daily_bin169.fits ra=348.4 dec=39.7644 rad=12.0 tmin=283132801.0 tmax=283392001.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.79
user 3.55
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/708402/ft2_4FGL_J2313.5+3945_daily_bin169.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/708402/ft1_filteredMKT_4FGL_J2313.5+3945_daily_bin169.fits evtable="EVENTS" outfile="/scratch/kocevski/708402/ft1_filtered_4FGL_J2313.5+3945_daily_bin169.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/708402/ft1_filtered_4FGL_J2313.5+3945_daily_bin169.fits" evtable="EVENTS" scfile=/scratch/kocevski/708402/ft2_4FGL_J2313.5+3945_daily_bin169.fits sctable="SC_DATA" outfile=/scratch/kocevski/708402/ltcube_283132801_283392001_4FGL_J2313.5+3945_daily_bin169.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/708402/ft2_4FGL_J2313.5+3945_daily_bin169.fits
.....................!
real 11.72
user 11.32
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/708402/ft1_filtered_4FGL_J2313.5+3945_daily_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/708402/ft2_4FGL_J2313.5+3945_daily_bin169.fits sctable="SC_DATA" expcube=/scratch/kocevski/708402/ltcube_283132801_283392001_4FGL_J2313.5+3945_daily_bin169.fits outfile=/scratch/kocevski/708402/expmap_283132801_283392001_4FGL_J2313.5+3945_daily_bin169.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/708402/ltcube_283132801_283392001_4FGL_J2313.5+3945_daily_bin169.fits
.....................!
real 190.91
user 185.39
sys 5.13

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/708402/ft1_filtered_4FGL_J2313.5+3945_daily_bin169.fits scfile=/scratch/kocevski/708402/ft2_4FGL_J2313.5+3945_daily_bin169.fits outfile=/scratch/kocevski/708402/cmap_283132801_283392001_4FGL_J2313.5+3945_daily_bin169.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/708402/ft1_filtered_4FGL_J2313.5+3945_daily_bin169.fits scfile=/scratch/kocevski/708402/ft2_4FGL_J2313.5+3945_daily_bin169.fits outfile=/scratch/kocevski/708402/cmap_HighResolution_283132801_283392001_4FGL_J2313.5+3945_daily_bin169.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/708402/ft1_filtered_4FGL_J2313.5+3945_daily_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/708402/ft2_4FGL_J2313.5+3945_daily_bin169.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/708402/Model_4FGL_J2313.5+3945_daily_bin169.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/708402/ft1_filtered_4FGL_J2313.5+3945_daily_bin169.fits.....................!
real 133.10
user 131.58
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/708402/ft1_filtered_4FGL_J2313.5+3945_daily_bin169.fits', '/scratch/kocevski/708402/ft2_4FGL_J2313.5+3945_daily_bin169.fits', expMap='/scratch/kocevski/708402/expmap_283132801_283392001_4FGL_J2313.5+3945_daily_bin169.fits', expCube='/scratch/kocevski/708402/ltcube_283132801_283392001_4FGL_J2313.5+3945_daily_bin169.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/708402/Model_4FGL_J2313.5+3945_daily_bin169.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/708402/ft1_filtered_4FGL_J2313.5+3945_daily_bin169.fits
Spacecraft file(s): /scratch/kocevski/708402/ft2_4FGL_J2313.5+3945_daily_bin169.fits
Exposure map: /scratch/kocevski/708402/expmap_283132801_283392001_4FGL_J2313.5+3945_daily_bin169.fits
Exposure cube: /scratch/kocevski/708402/ltcube_283132801_283392001_4FGL_J2313.5+3945_daily_bin169.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/708402/Model_4FGL_J2313.5+3945_daily_bin169.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) = 11485.9666902

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.052       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10247E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    29.894       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.533       1.0000         .10000E-03   10000.    
     7 'norm      '    3.5003       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10377E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.0709       1.0000         .10000E-03   10000.    
    11 'norm      '    2.8768       1.0000         .10000E-03   10000.    
    12 'Prefactor '    19.341       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.4337       1.0000         .10000E-03   10000.    
    15 'norm      '    10.122       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.4991       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.6996       1.0000         .10000E-03   10000.    
    19 'Prefactor '    41.499       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    33.690       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .16893E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0183       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .96024       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=   11485.96     FROM MIGRAD    STATUS=CONVERGED    538 CALLS     2708 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.054        28.448        .17752E-05   -.10324E-04
   2  Prefactor     .10000E-03    15.191        .43556E-05** at limit **
   3  norm          29.881        17.977        .44946E-05   -.33666E-04
   4  Prefactor     .10000E-03    6.8621       -.50696E-06** at limit **
   5  Prefactor     .10000E-03    43.515        .95306E-05** at limit **
   6  Prefactor     11.533        8.7391       -.45044E-06   -.89823E-04
   7  norm          3.5003        3.8372       -.18482E-06   -.56022E-03
   8  Prefactor     .10000E-03    24.119       -.82352E-05** at limit **
   9  Prefactor     .10000E-03    1.7305       -.40884E-07** at limit **
  10  Prefactor     6.0711        12.786       -.33591E-06   -.37279E-04
  11  norm          2.8769        1.4651       -.14693E-06   -.54265E-03
  12  Prefactor     19.340        11.384       -.43673E-06   -.46285E-05
  13  Prefactor     .10000E-03    28.049        .11471E-05** at limit **
  14  norm          2.4344        3.5019       -.65273E-06   -.88721E-03
  15  norm          10.122        6.9651        .78926E-06    .17049E-02
  16  Prefactor     .10000E-03    9.0491        .17772E-05** at limit **
  17  norm          1.4991        1.5358       -.17888E-07    .12048E-03
  18  Prefactor     4.6970        15.351       -.66224E-06   -.56945E-04
  19  Prefactor     41.483        44.406       -.17730E-04   -.77833E-05
  20  Prefactor     .10000E-03    10.851       -.34408E-05** at limit **
  21  Prefactor     33.645        36.526       -.43467E-04   -.48052E-04
  22  Prefactor     .10001E-03    6.5858        .24586E-05** at limit **
  23  Normalizat    1.0183        .20118        .38273E-05   -.98020E-04
  24  Prefactor     .96025        .71702E-01    .12542E-06    .12735E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.0541
  Prefactor  = 0.0001
  norm       = 29.8805
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.5331
  norm       = 3.50026
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.07106
  norm       = 2.87688
  Prefactor  = 19.3404
  Prefactor  = 0.0001
  norm       = 2.43442
  norm       = 10.1223
  Prefactor  = 0.0001
  norm       = 1.49908
  Prefactor  = 4.69698
  Prefactor  = 41.4831
  Prefactor  = 0.0001
  Prefactor  = 33.6454
  Prefactor  = 0.000100009
  Normalizat = 1.01826
  Prefactor  = 0.960245
 **********
 **   18 **HESSE 
 **********

 FCN=   11485.96     FROM HESSE     STATUS=OK           395 CALLS     3103 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.054        28.445        .71903E-04   -1.4593    
   2  Prefactor     .10000E-03    15.286        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          29.881        17.980        .73279E-04   -1.4614    
   4  Prefactor     .10000E-03    6.9900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    43.543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.533        8.7099        .11796E-03   -1.5029    
   7  norm          3.5003        3.8199        .18083E-03   -1.5334    
   8  Prefactor     .10000E-03    25.146        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.7399        .13765E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.0711        12.776        .16295E-03   -1.5215    
  11  norm          2.8769        1.4626        .87853E-04   -1.5369    
  12  Prefactor     19.340        11.383        .91073E-04   -1.4828    
  13  Prefactor     .10000E-03    28.550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.4344        3.4882        .23236E-03   -1.5396    
  15  norm          10.122        6.9906        .62972E-03   -1.5072    
  16  Prefactor     .10000E-03    9.1050        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.4991        1.5395        .13022E-03   -1.5463    
  18  Prefactor     4.6970        15.347        .18563E-03   -1.5274    
  19  Prefactor     41.483        44.391        .62227E-04   -1.4419    
  20  Prefactor     .10000E-03    10.858        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     33.645        36.444        .69038E-04   -1.4547    
  22  Prefactor     .10001E-03    6.7363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0183        .22922        .40623E-03   -.92421    
  24  Prefactor     .96025        .82332E-01    .15595E-03   -.94067    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.42079e-09
Minuit parameter uncertainties:
  1  28.457
  2  4.02277e-05
  3  17.9837
  4  6.62639e-05
  5  4.40702e-05
  6  8.71082
  7  3.82021
  8  0.000127768
  9  1.50714e-06
  10  12.7822
  11  1.46261
  12  11.384
  13  8.59457e-05
  14  3.48851
  15  6.99115
  16  1.57731e-05
  17  1.53954
  18  15.36
  19  44.4264
  20  3.6914e-06
  21  36.4678
  22  0.000500846
  23  0.229446
  24  0.0823428
Done.

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

Extracting fit parameters...

4FGL J2313.5+3945
   Spectrum: PowerLaw
406    Prefactor:  1.934e+01  1.138e+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.602e-01  8.234e-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.018e+00  2.294e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.41
Ra Dec: 348.400 39.764
Photon Index (Fixed Index): 2.76 +/- 0.00
Photon Flux (Fixed Index): 8.60e-08 +/- 5.05e-08
Energy Flux (Fixed Index): 1.98e-05 +/- 1.17e-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) = 11485.9027522
delta logL = 0.054646353834

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11485.8971973
delta logL = 0.0602012121544

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.739       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5768       1.0000          .0000       10.000    
     3 'Normalizat'    1.0265       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95781       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11485.90     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      276 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.735        14.092        .85906E-04    .10984E-03
   2  Index         2.5771        .50813        .86843E-02    .23068E-03
   3  Normalizat    1.0266        .21948        .40479E-03   -.31961E-04
   4  Prefactor     .95782        .81786E-01    .15612E-03    .23437E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.7351
  Index      = 2.57711
  Normalizat = 1.02659
  Prefactor  = 0.957819
 **********
 **   18 **HESSE 
 **********

 FCN=   11485.90     FROM HESSE     STATUS=OK            25 CALLS      301 TOTAL
                     EDM=   .89E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.735        13.862        .34363E-05   -1.4775    
   2  Index         2.5771        .49970        .17369E-02   -.50588    
   3  Normalizat    1.0266        .21960        .16191E-04   -.92145    
   4  Prefactor     .95782        .81813E-01    .31223E-04   -.94149    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.94455e-11
Minuit parameter uncertainties:
  1  13.8643
  2  0.500796
  3  0.219795
  4  0.0818238
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/708402': 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) = 11485.8971968
delta logL = 0.0602017740221

Extracting fit parameters...

4FGL J2313.5+3945
   Spectrum: PowerLaw
406    Prefactor:  2.174e+01  1.386e+01  1.000e-04  1.000e+04 ( 1.000e-12)
407        Index:  2.577e+00  5.008e-01  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.578e-01  8.182e-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.027e+00  2.198e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.52
Ra Dec: 348.400 39.764
Photon Index (Free Index): 2.58 +/- 0.50
Photon Flux (Free Index): 8.09e-08 +/- 5.07e-08
Energy Flux (Free Index): 2.17e-05 +/- 1.39e-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/708402/cmap_HighResolution_283132801_283392001_4FGL_J2313.5+3945_daily_bin169.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.60e-08', energy_flux2='2.17e-05', photon_flux_error='5.05e-08', dlogl='6.02e-02', energy_flux='1.98e-05', photon_flux2='8.09e-08', job_status='DONE', time_completed='2021-09-29 09:26:12.579050', photon_index_error2='0.50', photon_index2='2.58', ts='4.41', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='1.39e-05', EG='1.02', time_epoch_completed='1632932772.58', return_code='0', job_id='708402', GAL2='0.96', EG2='1.03', return_code2='0', energy_flux_error='1.17e-05', photon_flux_error2='5.07e-08', ts2='4.52', photon_index='2.76' WHERE bin_id='169' AND source_name='4FGL J2313.5+3945' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 09:26:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 708402: <4FGL_J2313.5+3945_daily_bin169> in cluster <slac> Done

Job <4FGL_J2313.5+3945_daily_bin169> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Wed Sep 29 09:10:26 2021
Job was executed on host(s) <bullet0078>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 09:10:27 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:10:27 2021
Terminated at Wed Sep 29 09:26:13 2021
Results reported at Wed Sep 29 09:26:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2313.5+3945_daily_bin169 348.4 39.7644 283132801 283392001 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 :                                   900.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             343.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   945 sec.
    Turnaround time :                            947 sec.

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

