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


Performing analysis on: 4FGL_J2313.5+3945_daily_bin1384
RA = 348.4, Dec = 39.7644
tmin = 598060801, tmax = 598320001
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='715929', job_status='RUN', time_executed='2021-09-29 09:35:44.607386', time_epoch_executed='1632933344.61' WHERE source_name='4FGL J2313.5+3945' and cadence='daily' and bin_id='1384'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/715929

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/715929/ft1_4FGL_J2313.5+3945_daily_bin1384.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/715929/ft2_4FGL_J2313.5+3945_daily_bin1384.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/715929/ft1_4FGL_J2313.5+3945_daily_bin1384.fits outfile=/scratch/kocevski/715929/ft1_filteredMKT_4FGL_J2313.5+3945_daily_bin1384.fits ra=348.4 dec=39.7644 rad=12.0 tmin=598060801.0 tmax=598320001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.99
user 4.72
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/715929/ft1_filtered_4FGL_J2313.5+3945_daily_bin1384.fits evtable="EVENTS" scfile=/scratch/kocevski/715929/ft2_4FGL_J2313.5+3945_daily_bin1384.fits sctable="SC_DATA" expcube=/scratch/kocevski/715929/ltcube_598060801_598320001_4FGL_J2313.5+3945_daily_bin1384.fits outfile=/scratch/kocevski/715929/expmap_598060801_598320001_4FGL_J2313.5+3945_daily_bin1384.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/715929/ltcube_598060801_598320001_4FGL_J2313.5+3945_daily_bin1384.fits
.....................!
real 193.55
user 187.49
sys 5.50

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/715929/ft1_filtered_4FGL_J2313.5+3945_daily_bin1384.fits scfile=/scratch/kocevski/715929/ft2_4FGL_J2313.5+3945_daily_bin1384.fits outfile=/scratch/kocevski/715929/cmap_598060801_598320001_4FGL_J2313.5+3945_daily_bin1384.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/715929/ft1_filtered_4FGL_J2313.5+3945_daily_bin1384.fits scfile=/scratch/kocevski/715929/ft2_4FGL_J2313.5+3945_daily_bin1384.fits outfile=/scratch/kocevski/715929/cmap_HighResolution_598060801_598320001_4FGL_J2313.5+3945_daily_bin1384.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.55
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    38.689       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    5.1227       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .64350       1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.871       1.0000         .10000E-03   10000.    
    11 'norm      '    .41733       1.0000         .10000E-03   10000.    
    12 'Prefactor '    25.836       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10382E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    9.0674       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.5911       1.0000         .10000E-03   10000.    
    17 'norm      '    2.2480       1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.895       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.0398       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.7260       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1868       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .99981       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=   10107.45     FROM MIGRAD    STATUS=CONVERGED    526 CALLS     2322 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.122        .45293E-05** at limit **
   2  Prefactor     .10000E-03    19.794       -.18632E-04** at limit **
   3  norm          .10000E-03    4.7778        .72003E-07** at limit **
   4  Prefactor     .10000E-03    2.3850        .29497E-06** at limit **
   5  Prefactor     38.696        44.636        .91588E-05    .65757E-05
   6  Prefactor     .10000E-03    2.3880       -.69995E-06** at limit **
   7  norm          5.1233        3.2939       -.18163E-06    .78728E-04
   8  Prefactor     .10000E-03    10.412       -.67883E-05** at limit **
   9  Prefactor     .64284        .94142        .23134E-06   -.25277E-02
  10  Prefactor     16.870        21.803       -.47871E-06    .95901E-05
  11  norm          .41797        1.3996       -.17936E-06   -.31988E-03
  12  Prefactor     25.836        13.875       -.43441E-07    .24433E-04
  13  Prefactor     .10000E-03    10.125        .43892E-05** at limit **
  14  norm          .10000E-03    6.6977       -.98627E-06** at limit **
  15  norm          9.0674        12.206        .48847E-09   -.46179E-04
  16  Prefactor     9.5962        21.746        .72152E-05    .55430E-04
  17  norm          2.2483        2.1531       -.21582E-07    .24794E-05
  18  Prefactor     11.896        16.715        .50567E-06    .20882E-04
  19  Prefactor     .10000E-03    26.175        .37084E-04** at limit **
  20  Prefactor     4.0231        61.343       -.49900E-04    .53726E-06
  21  Prefactor     .10000E-03    40.146       -.24366E-04** at limit **
  22  Prefactor     2.7269        6.2833        .16656E-06   -.31931E-03
  23  Normalizat    1.1866        .23691        .62777E-06    .10067E-03
  24  Prefactor     .99985        .80809E-01   -.64284E-07    .27895E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 38.696
  Prefactor  = 0.0001
  norm       = 5.12329
  Prefactor  = 0.0001
  Prefactor  = 0.642844
  Prefactor  = 16.87
  norm       = 0.417968
  Prefactor  = 25.836
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 9.06736
  Prefactor  = 9.59622
  norm       = 2.24835
  Prefactor  = 11.8957
  Prefactor  = 0.0001
  Prefactor  = 4.02312
  Prefactor  = 0.0001
  Prefactor  = 2.72685
  Normalizat = 1.18663
  Prefactor  = 0.999849
 **********
 **   18 **HESSE 
 **********

 FCN=   10107.45     FROM HESSE     STATUS=OK           397 CALLS     2719 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    19.881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    4.7807        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.3921        .15161E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     38.696        44.639        .64439E-04   -1.4463    
   6  Prefactor     .10000E-03    2.3964        .15161E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.1233        3.3184        .14174E-03   -1.5255    
   8  Prefactor     .10000E-03    10.464        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .64284        6.5447        .23687E-02   -1.5548    
  10  Prefactor     16.870        21.779        .97511E-04   -1.4886    
  11  norm          .41797        1.3816        .20393E-03   -1.5579    
  12  Prefactor     25.836        13.881        .78812E-04   -1.4691    
  13  Prefactor     .10000E-03    10.127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    6.7738        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          9.0674        12.206        .66550E-03   -1.5106    
  16  Prefactor     9.5962        21.737        .12940E-03   -1.5088    
  17  norm          2.2483        2.1475        .13927E-03   -1.5408    
  18  Prefactor     11.896        16.712        .11615E-03   -1.5018    
  19  Prefactor     .10000E-03    26.179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.0231        61.718        .20062E-03   -1.5307    
  21  Prefactor     .10000E-03    40.177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.7269        6.3371        .12332E-02   -1.5378    
  23  Normalizat    1.1866        .27636        .41664E-03   -.87017    
  24  Prefactor     .99985        .95101E-01    .16013E-03   -.92735    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61033e-08
Minuit parameter uncertainties:
  1  4.38805e-06
  2  1.51604e-05
  3  2.75323e-06
  4  4.66167e-07
  5  44.6772
  6  5.69962e-07
  7  3.3185
  8  3.69185e-06
  9  4.10256
  10  21.7887
  11  1.38171
  12  13.8822
  13  1.57558e-05
  14  0.000150048
  15  12.2091
  16  21.7548
  17  2.14758
  18  16.7188
  19  3.65538e-06
  20  31.5534
  21  1.17895e-05
  22  6.33862
  23  0.276695
  24  0.0951167
Done.

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

Extracting fit parameters...

4FGL J2313.5+3945
   Spectrum: PowerLaw
406    Prefactor:  2.584e+01  1.388e+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.998e-01  9.512e-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.187e+00  2.767e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.01
Ra Dec: 348.400 39.764
Photon Index (Fixed Index): 2.76 +/- 0.00
Photon Flux (Fixed Index): 1.15e-07 +/- 6.16e-08
Energy Flux (Fixed Index): 2.65e-05 +/- 1.42e-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) = 10107.1555371
delta logL = 0.294245492667

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10107.1553213
delta logL = 0.294461290119

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.445       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4179       1.0000          .0000       10.000    
     3 'Normalizat'    1.2051       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99452       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=   10107.16     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      272 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.408        423.67        .17863E-02    .21186E-03
   2  Index         2.4167        6.1900        .20833        .30485E-04
   3  Normalizat    1.2053        .15886        .93436E-01   -.17661E-04
   4  Prefactor     .99452        .67933E-01    .46199E-01   -.13505E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.4083
  Index      = 2.41669
  Normalizat = 1.20527
  Prefactor  = 0.994519
 **********
 **   18 **HESSE 
 **********

 FCN=   10107.16     FROM HESSE     STATUS=OK            31 CALLS      303 TOTAL
                     EDM=   .53E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.408        17.103        .35727E-03   -1.4587    
   2  Index         2.4167        .41799        .79186E-02   -.54295    
   3  Normalizat    1.2053        .26199        .41388E-03   -.86440    
   4  Prefactor     .99452        .93311E-01    .16049E-03   -.92912    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.27846e-12
Minuit parameter uncertainties:
  1  17.106
  2  0.418661
  3  0.262274
  4  0.0933258
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/715929': 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) = 10107.1553133
delta logL = 0.294469278677

Extracting fit parameters...

4FGL J2313.5+3945
   Spectrum: PowerLaw
406    Prefactor:  3.141e+01  1.711e+01  1.000e-04  1.000e+04 ( 1.000e-12)
407        Index:  2.417e+00  4.187e-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.945e-01  9.333e-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.205e+00  2.623e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.59
Ra Dec: 348.400 39.764
Photon Index (Free Index): 2.42 +/- 0.42
Photon Flux (Free Index): 1.01e-07 +/- 5.85e-08
Energy Flux (Free Index): 3.24e-05 +/- 1.97e-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/715929/cmap_HighResolution_598060801_598320001_4FGL_J2313.5+3945_daily_bin1384.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.15e-07', energy_flux2='3.24e-05', photon_flux_error='6.16e-08', dlogl='2.94e-01', energy_flux='2.65e-05', photon_flux2='1.01e-07', job_status='DONE', time_completed='2021-09-29 09:49:04.413674', photon_index_error2='0.42', photon_index2='2.42', ts='6.01', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='1.97e-05', EG='1.19', time_epoch_completed='1632934144.41', return_code='0', job_id='715929', GAL2='0.99', EG2='1.21', return_code2='0', energy_flux_error='1.42e-05', photon_flux_error2='5.85e-08', ts2='6.59', photon_index='2.76' WHERE bin_id='1384' AND source_name='4FGL J2313.5+3945' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 09:49:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 715929: <4FGL_J2313.5+3945_daily_bin1384> in cluster <slac> Done

Job <4FGL_J2313.5+3945_daily_bin1384> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 09:35:31 2021
Job was executed on host(s) <bullet0044>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 09:35:32 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:35:32 2021
Terminated at Wed Sep 29 09:49:05 2021
Results reported at Wed Sep 29 09:49:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2313.5+3945_daily_bin1384 348.4 39.7644 598060801 598320001 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 :                                   795.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             354.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   812 sec.
    Turnaround time :                            814 sec.

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

