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


Performing analysis on: 4FGL_J2313.5+3945_daily_bin805
RA = 348.4, Dec = 39.7644
tmin = 447984001, tmax = 448243201
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='712711', job_status='RUN', time_executed='2021-09-29 09:26:24.022626', time_epoch_executed='1632932784.02' WHERE source_name='4FGL J2313.5+3945' and cadence='daily' and bin_id='805'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/712711

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/712711/ft1_4FGL_J2313.5+3945_daily_bin805.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/712711/ft2_4FGL_J2313.5+3945_daily_bin805.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/712711/ft1_4FGL_J2313.5+3945_daily_bin805.fits outfile=/scratch/kocevski/712711/ft1_filteredMKT_4FGL_J2313.5+3945_daily_bin805.fits ra=348.4 dec=39.7644 rad=12.0 tmin=447984001.0 tmax=448243201.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.03
user 3.80
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/712711/ft1_filtered_4FGL_J2313.5+3945_daily_bin805.fits" evtable="EVENTS" scfile=/scratch/kocevski/712711/ft2_4FGL_J2313.5+3945_daily_bin805.fits sctable="SC_DATA" outfile=/scratch/kocevski/712711/ltcube_447984001_448243201_4FGL_J2313.5+3945_daily_bin805.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/712711/ft2_4FGL_J2313.5+3945_daily_bin805.fits
.....................!
real 11.53
user 11.19
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/712711/ft1_filtered_4FGL_J2313.5+3945_daily_bin805.fits evtable="EVENTS" scfile=/scratch/kocevski/712711/ft2_4FGL_J2313.5+3945_daily_bin805.fits sctable="SC_DATA" expcube=/scratch/kocevski/712711/ltcube_447984001_448243201_4FGL_J2313.5+3945_daily_bin805.fits outfile=/scratch/kocevski/712711/expmap_447984001_448243201_4FGL_J2313.5+3945_daily_bin805.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/712711/ltcube_447984001_448243201_4FGL_J2313.5+3945_daily_bin805.fits
.....................!
real 189.29
user 185.19
sys 3.75

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/712711/ft1_filtered_4FGL_J2313.5+3945_daily_bin805.fits scfile=/scratch/kocevski/712711/ft2_4FGL_J2313.5+3945_daily_bin805.fits outfile=/scratch/kocevski/712711/cmap_447984001_448243201_4FGL_J2313.5+3945_daily_bin805.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.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/712711/ft1_filtered_4FGL_J2313.5+3945_daily_bin805.fits scfile=/scratch/kocevski/712711/ft2_4FGL_J2313.5+3945_daily_bin805.fits outfile=/scratch/kocevski/712711/cmap_HighResolution_447984001_448243201_4FGL_J2313.5+3945_daily_bin805.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    36.083       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12370E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.1712       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.321       1.0000         .10000E-03   10000.    
     7 'norm      '    6.3350       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.539       1.0000         .10000E-03   10000.    
    11 'norm      '    1.8063       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.9109       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.7780       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .41285       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    31.706       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.2709       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.7898       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .91589       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .97982       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=   10688.62     FROM MIGRAD    STATUS=CONVERGED    542 CALLS     2700 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     36.073        38.255       -.62256E-06   -.62814E-04
   2  Prefactor     .10000E-03    27.289        .29431E-06** at limit **
   3  norm          4.1700        14.911        .28670E-06   -.31431E-04
   4  Prefactor     .10000E-03    2.6346       -.62149E-07** at limit **
   5  Prefactor     .10000E-03    93.655       -.19265E-05** at limit **
   6  Prefactor     14.321        8.9888        .11502E-05   -.80607E-04
   7  norm          6.3349        4.6762       -.39145E-06   -.38951E-04
   8  Prefactor     .10000E-03    5.3742       -.40798E-08** at limit **
   9  Prefactor     .10000E-03    2.0684        .15291E-07** at limit **
  10  Prefactor     11.539        16.327       -.13138E-07   -.62661E-05
  11  norm          1.8068        1.6578        .11669E-06    .15778E-04
  12  Prefactor     3.9108        8.2434       -.16699E-06   -.72233E-04
  13  Prefactor     .10000E-03    10.019        .22483E-07** at limit **
  14  norm          3.7755        5.9057       -.27956E-06    .25687E-04
  15  norm          .10000E-03    2.8659       -.18024E-07** at limit **
  16  Prefactor     .10000E-03    40.554       -.41868E-05** at limit **
  17  norm          .41338        2.0021        .23699E-05   -.15812E-03
  18  Prefactor     .10000E-03    6.6339       -.24491E-07** at limit **
  19  Prefactor     31.704        38.316       -.41691E-07   -.17902E-04
  20  Prefactor     3.2351        91.748       -.89732E-05   -.64548E-04
  21  Prefactor     .10000E-03    50.624        .41785E-05** at limit **
  22  Prefactor     5.7839        7.2551        .16101E-06   -.18920E-03
  23  Normalizat    .91610        .21601        .63556E-06   -.75721E-04
  24  Prefactor     .97974        .75485E-01   -.63565E-06   -.29904E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 36.0732
  Prefactor  = 0.0001
  norm       = 4.16996
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 14.3211
  norm       = 6.33486
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.5388
  norm       = 1.80676
  Prefactor  = 3.91077
  Prefactor  = 0.0001
  norm       = 3.7755
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.413375
  Prefactor  = 0.0001
  Prefactor  = 31.7038
  Prefactor  = 3.23509
  Prefactor  = 0.000100005
  Prefactor  = 5.78395
  Normalizat = 0.916098
  Prefactor  = 0.97974
 **********
 **   18 **HESSE 
 **********

 FCN=   10688.62     FROM HESSE     STATUS=OK           397 CALLS     3097 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     36.073        38.354        .66717E-04   -1.4506    
   2  Prefactor     .10000E-03    27.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.1700        14.819        .19734E-03   -1.5300    
   4  Prefactor     .10000E-03    2.6424        .16380E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    94.136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     14.321        9.0499        .52920E-03   -1.4951    
   7  norm          6.3349        4.6774        .15927E-03   -1.5205    
   8  Prefactor     .10000E-03    5.3765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.0779        .14517E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.539        16.318        .11793E-03   -1.5028    
  11  norm          1.8068        1.6394        .11851E-03   -1.5439    
  12  Prefactor     3.9108        8.2136        .20401E-03   -1.5312    
  13  Prefactor     .10000E-03    10.028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.7755        5.8480        .20769E-03   -1.5319    
  15  norm          .10000E-03    2.8688        .17093E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    41.428        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .41338        2.0916        .28465E-03   -1.5579    
  18  Prefactor     .10000E-03    6.6399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     31.704        38.327        .71160E-04   -1.4581    
  20  Prefactor     3.2351        97.625        .22390E-03   -1.5348    
  21  Prefactor     .10000E-03    52.346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     5.7839        7.2353        .16692E-03   -1.5227    
  23  Normalizat    .91610        .23873        .42663E-03   -.95897    
  24  Prefactor     .97974        .83827E-01    .15187E-03   -.93408    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.63193e-10
Minuit parameter uncertainties:
  1  38.38
  2  8.71939e-05
  3  14.8322
  4  5.63846e-07
  5  0.000545766
  6  9.05076
  7  4.67768
  8  1.57319e-06
  9  8.22518e-07
  10  16.3244
  11  1.63941
  12  8.21593
  13  4.17843e-06
  14  5.84889
  15  2.74076e-06
  16  0.000438124
  17  1.85959
  18  4.98815e-06
  19  38.3567
  20  35.6064
  21  0.00098461
  22  7.23642
  23  0.239002
  24  0.0838379
Done.

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

Extracting fit parameters...

4FGL J2313.5+3945
   Spectrum: PowerLaw
406    Prefactor:  3.911e+00  8.216e+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

GAL_V02
   Spectrum: PowerLaw
538    Prefactor:  9.797e-01  8.384e-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.161e-01  2.390e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.28
Ra Dec: 348.400 39.764
Photon Flux Upper Limit: 1.08e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.52e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/712711/likelihoodResults_447984001_448243201_4FGL_J2313.5+3945_daily_bin805.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) = 10688.2517389
delta logL = 0.368961532131

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10688.2254406
delta logL = 0.395259875026

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.6196       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8017       1.0000          .0000       10.000    
     3 'Normalizat'    .92939       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97534       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=   10688.23     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      227 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6452        7.5495        .42366E-02    .70457E-04
   2  Index         1.8048        .49266        .27072       -.99010E-04
   3  Normalizat    .92931        .20096        .95675E-01    .42038E-04
   4  Prefactor     .97536        .74161E-01    .34429E-01   -.22658E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.64518
  Index      = 1.80477
  Normalizat = 0.929305
  Prefactor  = 0.97536
 **********
 **   18 **HESSE 
 **********

 FCN=   10688.23     FROM HESSE     STATUS=OK            33 CALLS      260 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.6452        8.2413        .16946E-03   -1.5233    
   2  Index         1.8048        .75059        .12768E-01   -.69326    
   3  Normalizat    .92931        .22306        .42385E-03   -.95438    
   4  Prefactor     .97536        .82539E-01    .15213E-03   -.93555    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01587e-11
Minuit parameter uncertainties:
  1  8.243
  2  0.75544
  3  0.223278
  4  0.0825497
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/712711': 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) = 10688.225432
delta logL = 0.395268484723

Extracting fit parameters...

4FGL J2313.5+3945
   Spectrum: PowerLaw
406    Prefactor:  5.645e+00  8.243e+00  1.000e-04  1.000e+04 ( 1.000e-12)
407        Index:  1.805e+00  7.554e-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.754e-01  8.255e-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.293e-01  2.233e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.07
Ra Dec: 348.400 39.764
Photon Index (Free Index): 1.80 +/- 0.76
Photon Flux (Free Index): 1.21e-08 +/- 1.93e-08
Energy Flux (Free Index): 1.43e-05 +/- 2.70e-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/712711/cmap_HighResolution_447984001_448243201_4FGL_J2313.5+3945_daily_bin805.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.52e-03', comment='SUCCESS', energy_flux2='1.43e-05', dlogl='3.95e-01', photon_flux2='1.21e-08', job_status='DONE', time_completed='2021-09-29 09:41:52.324325', photon_index_error2='0.76', photon_index2='1.80', ts='0.28', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.08e-07', energy_flux_error2='2.70e-05', EG='0.92', time_epoch_completed='1632933712.32', return_code='0', job_id='712711', GAL2='0.98', EG2='0.93', return_code2='0', photon_flux_error2='1.93e-08', ts2='1.07', photon_index='2.76' WHERE bin_id='805' AND source_name='4FGL J2313.5+3945' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 09:41:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0256>
Subject: Job 712711: <4FGL_J2313.5+3945_daily_bin805> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2313.5+3945_daily_bin805 348.4 39.7644 447984001 448243201 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 :                                   927.18 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             295.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   996 sec.
    Turnaround time :                            997 sec.

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

