/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 3 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7538
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2313.5+3945_daily_bin830
RA = 348.4, Dec = 39.7644
tmin = 454464001, tmax = 454723201
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='712762', job_status='RUN', time_executed='2021-09-29 09:25:33.396440', time_epoch_executed='1632932733.4' WHERE source_name='4FGL J2313.5+3945' and cadence='daily' and bin_id='830'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/712762

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/712762/ft1_4FGL_J2313.5+3945_daily_bin830.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/712762/ft2_4FGL_J2313.5+3945_daily_bin830.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/712762/ft1_4FGL_J2313.5+3945_daily_bin830.fits outfile=/scratch/kocevski/712762/ft1_filteredMKT_4FGL_J2313.5+3945_daily_bin830.fits ra=348.4 dec=39.7644 rad=12.0 tmin=454464001.0 tmax=454723201.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.61
user 3.40
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/712762/ft2_4FGL_J2313.5+3945_daily_bin830.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/712762/ft1_filteredMKT_4FGL_J2313.5+3945_daily_bin830.fits evtable="EVENTS" outfile="/scratch/kocevski/712762/ft1_filtered_4FGL_J2313.5+3945_daily_bin830.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/712762/ft1_filtered_4FGL_J2313.5+3945_daily_bin830.fits" evtable="EVENTS" scfile=/scratch/kocevski/712762/ft2_4FGL_J2313.5+3945_daily_bin830.fits sctable="SC_DATA" outfile=/scratch/kocevski/712762/ltcube_454464001_454723201_4FGL_J2313.5+3945_daily_bin830.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/712762/ft2_4FGL_J2313.5+3945_daily_bin830.fits
.....................!
real 12.25
user 11.90
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/712762/ft1_filtered_4FGL_J2313.5+3945_daily_bin830.fits evtable="EVENTS" scfile=/scratch/kocevski/712762/ft2_4FGL_J2313.5+3945_daily_bin830.fits sctable="SC_DATA" expcube=/scratch/kocevski/712762/ltcube_454464001_454723201_4FGL_J2313.5+3945_daily_bin830.fits outfile=/scratch/kocevski/712762/expmap_454464001_454723201_4FGL_J2313.5+3945_daily_bin830.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/712762/ltcube_454464001_454723201_4FGL_J2313.5+3945_daily_bin830.fits
.....................!
real 191.62
user 186.25
sys 5.00

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/712762/ft1_filtered_4FGL_J2313.5+3945_daily_bin830.fits scfile=/scratch/kocevski/712762/ft2_4FGL_J2313.5+3945_daily_bin830.fits outfile=/scratch/kocevski/712762/cmap_454464001_454723201_4FGL_J2313.5+3945_daily_bin830.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/712762/ft1_filtered_4FGL_J2313.5+3945_daily_bin830.fits scfile=/scratch/kocevski/712762/ft2_4FGL_J2313.5+3945_daily_bin830.fits outfile=/scratch/kocevski/712762/cmap_HighResolution_454464001_454723201_4FGL_J2313.5+3945_daily_bin830.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.54
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.527       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10076E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11691E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.5053       1.0000         .10000E-03   10000.    
     7 'norm      '    7.5781       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.6418       1.0000         .10000E-03   10000.    
    10 'Prefactor '    22.314       1.0000         .10000E-03   10000.    
    11 'norm      '    2.2070       1.0000         .10000E-03   10000.    
    12 'Prefactor '    20.838       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    6.8983       1.0000         .10000E-03   10000.    
    15 'norm      '    1.9296       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.5051       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.5561       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.976       1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.424       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.5288       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0967       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .94000       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=   9985.469     FROM MIGRAD    STATUS=CONVERGED    549 CALLS     2715 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.530        31.310        .38196E-06    .25104E-04
   2  Prefactor     .10000E-03    9.5450       -.52705E-05** at limit **
   3  norm          .10000E-03    26.517       -.38876E-05** at limit **
   4  Prefactor     .10000E-03    5.7874       -.41109E-07** at limit **
   5  Prefactor     .10000E-03    257.24       -.19346E-04** at limit **
   6  Prefactor     3.5047        5.8825       -.11915E-05   -.17077E-03
   7  norm          7.5778        4.3827       -.24213E-06   -.84152E-04
   8  Prefactor     .10000E-03    14.760        .27885E-05** at limit **
   9  Prefactor     4.6414        5.1818        .30243E-05    .20522E-03
  10  Prefactor     22.314        19.064        .44172E-07   -.35798E-05
  11  norm          2.2072        1.2900        .32926E-07   -.16959E-03
  12  Prefactor     20.840        11.782        .63148E-07   -.15091E-04
  13  Prefactor     .10000E-03    9.9317        .83552E-05** at limit **
  14  norm          6.8976        4.4829        .76493E-07   -.12050E-02
  15  norm          1.9297        4.0197        .13306E-05   -.16635E-02
  16  Prefactor     .10000E-03    34.619        .43558E-05** at limit **
  17  norm          1.5053        2.0171       -.32897E-07   -.13286E-03
  18  Prefactor     3.5565        9.8309       -.97503E-07   -.29303E-04
  19  Prefactor     .10000E-03    11.545       -.48269E-05** at limit **
  20  Prefactor     10.982        40.921        .54596E-05    .74228E-05
  21  Prefactor     13.418        60.193       -.76087E-05   -.13726E-04
  22  Prefactor     1.5254        10.771        .14795E-05   -.13827E-04
  23  Normalizat    1.0965        .21322       -.88327E-06   -.79884E-05
  24  Prefactor     .93999        .76750E-01    .94143E-07   -.62427E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.5302
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 3.50474
  norm       = 7.57784
  Prefactor  = 0.0001
  Prefactor  = 4.64142
  Prefactor  = 22.3144
  norm       = 2.20716
  Prefactor  = 20.8395
  Prefactor  = 0.0001
  norm       = 6.89758
  norm       = 1.92974
  Prefactor  = 0.0001
  norm       = 1.50528
  Prefactor  = 3.55654
  Prefactor  = 0.0001
  Prefactor  = 10.9824
  Prefactor  = 13.418
  Prefactor  = 1.52539
  Normalizat = 1.09654
  Prefactor  = 0.939991
 **********
 **   18 **HESSE 
 **********

 FCN=   9985.469     FROM HESSE     STATUS=OK           403 CALLS     3118 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.530        31.315        .86328E-04   -1.4780    
   2  Prefactor     .10000E-03    9.5628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    26.866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.9363        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    260.51        .20656E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.5047        5.8496        .21594E-03   -1.5334    
   7  norm          7.5778        4.3611        .14016E-03   -1.5157    
   8  Prefactor     .10000E-03    14.816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.6414        5.1796        .18680E-03   -1.5277    
  10  Prefactor     22.314        19.062        .84794E-04   -1.4763    
  11  norm          2.2072        1.2858        .83166E-04   -1.5411    
  12  Prefactor     20.840        11.789        .87743E-04   -1.4795    
  13  Prefactor     .10000E-03    9.9572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.8976        4.5199        .76377E-03   -1.5183    
  15  norm          1.9297        9.3652        .14951E-02   -1.5430    
  16  Prefactor     .10000E-03    35.430        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.5053        1.9932        .15836E-03   -1.5463    
  18  Prefactor     3.5565        9.8131        .21433E-03   -1.5331    
  19  Prefactor     .10000E-03    11.553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     10.982        41.365        .12093E-03   -1.5045    
  21  Prefactor     13.418        53.242        .10932E-03   -1.4975    
  22  Prefactor     1.5254        9.5009        .34525E-03   -1.5461    
  23  Normalizat    1.0965        .24713        .38561E-03   -.89863    
  24  Prefactor     .93999        .89420E-01    .15680E-03   -.94757    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07598e-08
Minuit parameter uncertainties:
  1  31.3392
  2  6.61844e-05
  3  8.98002e-05
  4  1.01982e-05
  5  0.000877545
  6  5.8506
  7  4.36124
  8  2.05882e-05
  9  5.18009
  10  19.0675
  11  1.28586
  12  11.7904
  13  0.00011072
  14  4.5201
  15  8.50423
  16  2.20882e-07
  17  1.99333
  18  9.81749
  19  6.92543e-05
  20  41.4735
  21  53.4312
  22  7.61536
  23  0.247387
  24  0.0894341
Done.

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

Extracting fit parameters...

4FGL J2313.5+3945
   Spectrum: PowerLaw
406    Prefactor:  2.084e+01  1.179e+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.400e-01  8.943e-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.097e+00  2.474e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.89
Ra Dec: 348.400 39.764
Photon Index (Fixed Index): 2.76 +/- 0.00
Photon Flux (Fixed Index): 9.26e-08 +/- 5.23e-08
Energy Flux (Fixed Index): 2.13e-05 +/- 1.21e-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) = 9985.46557198
delta logL = 0.00293666405923

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9985.46406947
delta logL = 0.00443916781842

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.130       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8161       1.0000          .0000       10.000    
     3 'Normalizat'    1.0932       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94089       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=   9985.464     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      247 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.126        14.355        .89271E-04    .32118E-03
   2  Index         2.8163        .64900        .83799E-02    .31401E-04
   3  Normalizat    1.0934        .23323        .38608E-03    .88397E-04
   4  Prefactor     .94080        .87787E-01    .15674E-03    .43449E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.126
  Index      = 2.81634
  Normalizat = 1.09342
  Prefactor  = 0.940798
 **********
 **   18 **HESSE 
 **********

 FCN=   9985.464     FROM HESSE     STATUS=OK            25 CALLS      272 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.126        13.800        .35708E-05   -1.4810    
   2  Index         2.8163        .62356        .33520E-03   -.45196    
   3  Normalizat    1.0934        .23329        .15443E-04   -.89963    
   4  Prefactor     .94080        .87800E-01    .31349E-04   -.94730    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34172e-10
Minuit parameter uncertainties:
  1  13.8018
  2  0.625573
  3  0.233507
  4  0.0878131
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/712762': 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) = 9985.46406884
delta logL = 0.00443980483396

Extracting fit parameters...

4FGL J2313.5+3945
   Spectrum: PowerLaw
406    Prefactor:  2.013e+01  1.380e+01  1.000e-04  1.000e+04 ( 1.000e-12)
407        Index:  2.816e+00  6.256e-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.408e-01  8.781e-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.093e+00  2.335e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.92
Ra Dec: 348.400 39.764
Photon Index (Free Index): 2.82 +/- 0.63
Photon Flux (Free Index): 9.49e-08 +/- 5.79e-08
Energy Flux (Free Index): 2.10e-05 +/- 1.22e-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/712762/cmap_HighResolution_454464001_454723201_4FGL_J2313.5+3945_daily_bin830.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.26e-08', energy_flux2='2.10e-05', photon_flux_error='5.23e-08', dlogl='4.44e-03', energy_flux='2.13e-05', photon_flux2='9.49e-08', job_status='DONE', time_completed='2021-09-29 09:39:08.975042', photon_index_error2='0.63', photon_index2='2.82', ts='4.89', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='1.22e-05', EG='1.10', time_epoch_completed='1632933548.98', return_code='0', job_id='712762', GAL2='0.94', EG2='1.09', return_code2='0', energy_flux_error='1.21e-05', photon_flux_error2='5.79e-08', ts2='4.92', photon_index='2.76' WHERE bin_id='830' AND source_name='4FGL J2313.5+3945' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 09:39:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 712762: <4FGL_J2313.5+3945_daily_bin830> in cluster <slac> Done

Job <4FGL_J2313.5+3945_daily_bin830> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 09:25:17 2021
Job was executed on host(s) <bullet0093>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 09:25:18 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:25:18 2021
Terminated at Wed Sep 29 09:39:09 2021
Results reported at Wed Sep 29 09:39:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2313.5+3945_daily_bin830 348.4 39.7644 454464001 454723201 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 :                                   814.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             362.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   831 sec.
    Turnaround time :                            832 sec.

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

