/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 28 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 = 7365
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2313.5+3945_daily_bin103
RA = 348.4, Dec = 39.7644
tmin = 266025601, tmax = 266284801
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='708306', job_status='RUN', time_executed='2021-09-29 09:10:57.347938', time_epoch_executed='1632931857.35' WHERE source_name='4FGL J2313.5+3945' and cadence='daily' and bin_id='103'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/708306

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/708306/ft1_4FGL_J2313.5+3945_daily_bin103.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/708306/ft2_4FGL_J2313.5+3945_daily_bin103.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/708306/ft1_4FGL_J2313.5+3945_daily_bin103.fits outfile=/scratch/kocevski/708306/ft1_filteredMKT_4FGL_J2313.5+3945_daily_bin103.fits ra=348.4 dec=39.7644 rad=12.0 tmin=266025601.0 tmax=266284801.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 1.41
user 1.21
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/708306/ft1_filtered_4FGL_J2313.5+3945_daily_bin103.fits" evtable="EVENTS" scfile=/scratch/kocevski/708306/ft2_4FGL_J2313.5+3945_daily_bin103.fits sctable="SC_DATA" outfile=/scratch/kocevski/708306/ltcube_266025601_266284801_4FGL_J2313.5+3945_daily_bin103.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/708306/ft2_4FGL_J2313.5+3945_daily_bin103.fits
.....................!
real 12.60
user 12.23
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/708306/ft1_filtered_4FGL_J2313.5+3945_daily_bin103.fits evtable="EVENTS" scfile=/scratch/kocevski/708306/ft2_4FGL_J2313.5+3945_daily_bin103.fits sctable="SC_DATA" expcube=/scratch/kocevski/708306/ltcube_266025601_266284801_4FGL_J2313.5+3945_daily_bin103.fits outfile=/scratch/kocevski/708306/expmap_266025601_266284801_4FGL_J2313.5+3945_daily_bin103.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/708306/ltcube_266025601_266284801_4FGL_J2313.5+3945_daily_bin103.fits
.....................!
real 191.69
user 185.94
sys 5.37

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/708306/ft1_filtered_4FGL_J2313.5+3945_daily_bin103.fits scfile=/scratch/kocevski/708306/ft2_4FGL_J2313.5+3945_daily_bin103.fits outfile=/scratch/kocevski/708306/cmap_266025601_266284801_4FGL_J2313.5+3945_daily_bin103.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/708306/ft1_filtered_4FGL_J2313.5+3945_daily_bin103.fits scfile=/scratch/kocevski/708306/ft2_4FGL_J2313.5+3945_daily_bin103.fits outfile=/scratch/kocevski/708306/cmap_HighResolution_266025601_266284801_4FGL_J2313.5+3945_daily_bin103.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.3287       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.6377       1.0000         .10000E-03   10000.    
     3 'norm      '    29.854       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    40.092       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.5608       1.0000         .10000E-03   10000.    
     7 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .54422E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10074E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.047       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .12409E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    7.7401       1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.172       1.0000         .10000E-03   10000.    
    17 'norm      '    3.1073       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.9996       1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.2822       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .99273       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0095       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=   9173.998     FROM MIGRAD    STATUS=CONVERGED    559 CALLS     2766 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.3891        71.971        .50079E-05    .64882E-04
   2  Prefactor     9.6312        24.553       -.29618E-05   -.16019E-03
   3  norm          29.854        18.232        .73528E-08    .11589E-03
   4  Prefactor     .10000E-03    1.7737        .28249E-07** at limit **
   5  Prefactor     40.119        64.916        .35345E-05    .13971E-03
   6  Prefactor     6.5636        6.4678        .41760E-07   -.24004E-03
   7  norm          .10000E-03    2.1582       -.89780E-07** at limit **
   8  Prefactor     .10000E-03    12.390       -.54806E-06** at limit **
   9  Prefactor     .10005E-03    4.7800        .24212E-05** at limit **
  10  Prefactor     .10000E-03    21.293        .56085E-07** at limit **
  11  norm          .10000E-03    .67565       -.29769E-06** at limit **
  12  Prefactor     12.049        12.700       -.30619E-06    .28626E-04
  13  Prefactor     .10000E-03    8.0723       -.25212E-06** at limit **
  14  norm          .10008E-03    4.4811       -.27578E-05** at limit **
  15  norm          7.7394        8.9842        .26766E-07    .58324E-05
  16  Prefactor     12.179        16.913        .27332E-05    .74551E-03
  17  norm          3.1071        3.2173        .22779E-06    .17446E-03
  18  Prefactor     .10000E-03    6.8030       -.11731E-07** at limit **
  19  Prefactor     7.0017        128.91       -.94564E-06   -.37586E-05
  20  Prefactor     7.2816        50.232       -.91925E-06    .31191E-04
  21  Prefactor     .10000E-03    14.675        .92233E-06** at limit **
  22  Prefactor     .10000E-03    2.1093        .40018E-07** at limit **
  23  Normalizat    .99265        .24047        .38216E-05    .38561E-03
  24  Prefactor     1.0096        .84106E-01   -.88596E-06    .78936E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.38913
  Prefactor  = 9.63116
  norm       = 29.8537
  Prefactor  = 0.0001
  Prefactor  = 40.1189
  Prefactor  = 6.56355
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100048
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.0489
  Prefactor  = 0.0001
  norm       = 0.000100081
  norm       = 7.7394
  Prefactor  = 12.1788
  norm       = 3.10708
  Prefactor  = 0.0001
  Prefactor  = 7.00168
  Prefactor  = 7.28158
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.992655
  Prefactor  = 1.00958
 **********
 **   18 **HESSE 
 **********

 FCN=   9173.998     FROM HESSE     STATUS=OK           399 CALLS     3165 TOTAL
                     EDM=   .96E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.3891        72.664        .17410E-03   -1.5244    
   2  Prefactor     9.6312        24.821        .12908E-03   -1.5087    
   3  norm          29.854        18.256        .73327E-04   -1.4615    
   4  Prefactor     .10000E-03    1.7764        .12454E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     40.119        65.350        .63305E-04   -1.4440    
   6  Prefactor     6.5636        6.4045        .15667E-03   -1.5196    
   7  norm          .10000E-03    2.1736        .13682E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    12.447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10005E-03    12.229        .35313E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    21.349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.4078        .14923E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     12.049        12.692        .11541E-03   -1.5014    
  13  Prefactor     .10000E-03    8.0848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10008E-03    18.800        .32612E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          7.7394        8.9802        .14414E-03   -1.5151    
  16  Prefactor     12.179        17.662        .11482E-03   -1.5010    
  17  norm          3.1071        3.1977        .16419E-03   -1.5355    
  18  Prefactor     .10000E-03    6.8132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.0017        128.31        .15163E-03   -1.5179    
  20  Prefactor     7.2816        50.640        .14864E-03   -1.5168    
  21  Prefactor     .10000E-03    14.698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    2.1150        .13579E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .99265        .26504        .40873E-03   -.93277    
  24  Prefactor     1.0096        .94421E-01    .15450E-03   -.92411    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.62958e-09
Minuit parameter uncertainties:
  1  39.6361
  2  24.8474
  3  18.2598
  4  2.49745e-07
  5  65.4673
  6  6.40513
  7  1.25218e-05
  8  0.00010177
  9  0.00153391
  10  1.85998e-06
  11  7.01155e-06
  12  12.6944
  13  2.60446e-05
  14  0.00246862
  15  8.98174
  16  17.67
  17  3.19791
  18  3.7701e-06
  19  60.0951
  20  38.4514
  21  0.000138807
  22  8.61682e-07
  23  0.265395
  24  0.0944361
Done.

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

Extracting fit parameters...

4FGL J2313.5+3945
   Spectrum: PowerLaw
406    Prefactor:  1.205e+01  1.269e+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:  1.010e+00  9.444e-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:  9.927e-01  2.654e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.18
Ra Dec: 348.400 39.764
Photon Index (Fixed Index): 2.76 +/- 0.00
Photon Flux (Fixed Index): 5.36e-08 +/- 5.64e-08
Energy Flux (Fixed Index): 1.23e-05 +/- 1.30e-05

TS (Fixed Index): 1.18
Ra Dec: 348.400 39.764
Photon Flux Upper Limit: 1.66e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.31e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/708306/likelihoodResults_266025601_266284801_4FGL_J2313.5+3945_daily_bin103.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9173.56741681
delta logL = 0.43080661217

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9173.55522976
delta logL = 0.442993664041

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5257       1.0000         .10000E-03   10000.    
     2 'Index     '    3.9486       1.0000          .0000       10.000    
     3 'Normalizat'    .95586       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0195       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=   9173.555     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      318 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.5199        70.855        .47311E-02    .63553E-03
   2  Index         3.9505        3.9916        .20624        .14399E-03
   3  Normalizat    .95559        .70700E-01    .93830E-01    .47335E-04
   4  Prefactor     1.0195        .26658E-01    .42190E-01    .21860E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.51986
  Index      = 3.95053
  Normalizat = 0.955585
  Prefactor  = 1.01946
 **********
 **   18 **HESSE 
 **********

 FCN=   9173.555     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      351 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.5199        142.50        .15340E-03   -1.5283    
   2  Index         3.9505        6.7990        .86859E-02   -.21147    
   3  Normalizat    .95559        .24158        .41562E-03   -.94534    
   4  Prefactor     1.0195        .94494E-01    .15382E-03   -.92084    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.41871e-09
Minuit parameter uncertainties:
  1  50.8903
  2  8.49218
  3  0.241853
  4  0.0945094
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/708306': 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): 102
logL (Free Index) = 9173.55522474
delta logL = 0.442998678227

Extracting fit parameters...

4FGL J2313.5+3945
   Spectrum: PowerLaw
406    Prefactor:  4.520e+00  5.089e+01  1.000e-04  1.000e+04 ( 1.000e-12)
407        Index:  3.951e+00  8.492e+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:  1.019e+00  9.451e-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:  9.556e-01  2.419e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.15
Ra Dec: 348.400 39.764
Photon Index (Free Index): 3.95 +/- 8.49
Photon Flux (Free Index): 7.89e-08 +/- 8.33e-08
Energy Flux (Free Index): 1.19e-05 +/- 2.75e-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/708306/cmap_HighResolution_266025601_266284801_4FGL_J2313.5+3945_daily_bin103.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.31e-02', comment='SUCCESS', photon_flux='5.36e-08', energy_flux2='1.19e-05', photon_flux_error='5.64e-08', dlogl='4.43e-01', energy_flux='1.23e-05', photon_flux2='7.89e-08', job_status='DONE', time_completed='2021-09-29 09:25:29.333887', photon_index_error2='8.49', photon_index2='3.95', ts='1.18', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='1.66e-07', energy_flux_error2='2.75e-05', EG='0.99', time_epoch_completed='1632932729.33', return_code='0', job_id='708306', GAL2='1.02', EG2='0.96', return_code2='102', energy_flux_error='1.30e-05', photon_flux_error2='8.33e-08', ts2='2.15', photon_index='2.76' WHERE bin_id='103' AND source_name='4FGL J2313.5+3945' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 09:25:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0016>
Subject: Job 708306: <4FGL_J2313.5+3945_daily_bin103> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2313.5+3945_daily_bin103 348.4 39.7644 266025601 266284801 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 :                                   865.25 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             330.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   910 sec.
    Turnaround time :                            914 sec.

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

