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


Performing analysis on: 4FGL_J2313.5+3945_daily_bin869
RA = 348.4, Dec = 39.7644
tmin = 464572801, tmax = 464832001
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='714215', job_status='RUN', time_executed='2021-09-29 09:30:31.511513', time_epoch_executed='1632933031.51' WHERE source_name='4FGL J2313.5+3945' and cadence='daily' and bin_id='869'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/714215

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/714215/ft1_4FGL_J2313.5+3945_daily_bin869.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/714215/ft2_4FGL_J2313.5+3945_daily_bin869.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/714215/ft1_4FGL_J2313.5+3945_daily_bin869.fits outfile=/scratch/kocevski/714215/ft1_filteredMKT_4FGL_J2313.5+3945_daily_bin869.fits ra=348.4 dec=39.7644 rad=12.0 tmin=464572801.0 tmax=464832001.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.36
user 3.16
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/714215/ft1_filtered_4FGL_J2313.5+3945_daily_bin869.fits evtable="EVENTS" scfile=/scratch/kocevski/714215/ft2_4FGL_J2313.5+3945_daily_bin869.fits sctable="SC_DATA" expcube=/scratch/kocevski/714215/ltcube_464572801_464832001_4FGL_J2313.5+3945_daily_bin869.fits outfile=/scratch/kocevski/714215/expmap_464572801_464832001_4FGL_J2313.5+3945_daily_bin869.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/714215/ltcube_464572801_464832001_4FGL_J2313.5+3945_daily_bin869.fits
.....................!
real 192.12
user 187.55
sys 4.24

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/714215/ft1_filtered_4FGL_J2313.5+3945_daily_bin869.fits scfile=/scratch/kocevski/714215/ft2_4FGL_J2313.5+3945_daily_bin869.fits outfile=/scratch/kocevski/714215/cmap_464572801_464832001_4FGL_J2313.5+3945_daily_bin869.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=348.4 yref=39.7644 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.36
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10980E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11055E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    35.530       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.9977       1.0000         .10000E-03   10000.    
     7 'norm      '    3.4572       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.7195       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.9704       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    23.580       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    7.9983       1.0000         .10000E-03   10000.    
    15 'norm      '    8.6747       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.1126       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.5794       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    37.302       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.6962       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0130       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .87875       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=   10297.00     FROM MIGRAD    STATUS=CONVERGED    966 CALLS     3154 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.655        .15816    ** at limit **
   2  Prefactor     .10000E-03    38.762        .18142E-02** at limit **
   3  norm          35.535        19.154        .67232E-04    .67638E-06
   4  Prefactor     .10000E-03    2.3061        .15000E-02** at limit **
   5  Prefactor     .10000E-03    40.061        .18142E-02** at limit **
   6  Prefactor     5.9985        7.1101        .81978E-03    .33394E-04
   7  norm          3.4570        3.6846        .16588E-03   -.13159E-04
   8  Prefactor     9.7196        12.373        .12854E-03   -.49530E-05
   9  Prefactor     5.9711        6.6397        .82168E-03    .26593E-04
  10  Prefactor     .10000E-03    8.9711        .18142E-02** at limit **
  11  norm          .10000E-03    .72629        .12615E-02** at limit **
  12  Prefactor     23.583        12.427        .82489E-04   -.26737E-04
  13  Prefactor     .10000E-03    11.215        .18142E-02** at limit **
  14  norm          7.9981        5.4266        .14177E-03    .90615E-04
  15  norm          8.6745        8.0589        .68048E-03    .38760E-05
  16  Prefactor     .10000E-03    31.565        .18142E-02** at limit **
  17  norm          4.1129        2.8217        .13480E-03   -.20241E-04
  18  Prefactor     7.5824        19.315        .14567E-03    .56193E-05
  19  Prefactor     .10000E-03    12.613        .18142E-02** at limit **
  20  Prefactor     37.293        37.752        .65621E-04   -.22869E-04
  21  Prefactor     .10000E-03    11.877        .18142E-02** at limit **
  22  Prefactor     2.6959        4.5302        .24810E-03   -.22636E-04
  23  Normalizat    1.0126        .23220        .38773E-03   -.48849E-04
  24  Prefactor     .87885        .83150E-01    .15264E-03   -.54221E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 35.5352
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.9985
  norm       = 3.45695
  Prefactor  = 9.71963
  Prefactor  = 5.97109
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 23.5828
  Prefactor  = 0.0001
  norm       = 7.9981
  norm       = 8.67447
  Prefactor  = 0.0001
  norm       = 4.11291
  Prefactor  = 7.58239
  Prefactor  = 0.0001
  Prefactor  = 37.2926
  Prefactor  = 0.0001
  Prefactor  = 2.69593
  Normalizat = 1.01258
  Prefactor  = 0.87885
 **********
 **   18 **HESSE 
 **********

 FCN=   10297.00     FROM HESSE     STATUS=OK           387 CALLS     3541 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    25.563        .15862       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    38.782        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          35.535        19.153        .26893E-05   -1.4515    
   4  Prefactor     .10000E-03    2.3065        .29999E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    40.062        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.9985        7.1036        .32791E-04   -1.5218    
   7  norm          3.4570        3.6825        .66353E-05   -1.5336    
   8  Prefactor     9.7196        12.372        .51415E-05   -1.5084    
   9  Prefactor     5.9711        6.6363        .32867E-04   -1.5219    
  10  Prefactor     .10000E-03    8.9714        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .72714        .25230E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     23.583        12.426        .32996E-05   -1.4736    
  13  Prefactor     .10000E-03    11.216        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          7.9981        5.4258        .56709E-05   -1.5142    
  15  norm          8.6745        8.0586        .27219E-04   -1.5119    
  16  Prefactor     .10000E-03    31.585        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.1129        2.8216        .53919E-05   -1.5302    
  18  Prefactor     7.5824        19.315        .58267E-05   -1.5157    
  19  Prefactor     .10000E-03    12.613        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     37.293        37.746        .26248E-05   -1.4486    
  21  Prefactor     .10000E-03    11.877        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.6959        4.5296        .99242E-05   -1.5380    
  23  Normalizat    1.0126        .23231        .15509E-04   -.92610    
  24  Prefactor     .87885        .83201E-01    .30529E-04   -.96884    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.74544e-11
Minuit parameter uncertainties:
  1  0.000100064
  2  9.07937e-05
  3  19.156
  4  5.70733e-07
  5  0.000149448
  6  7.10456
  7  3.68271
  8  12.3755
  9  6.63708
  10  4.48087e-06
  11  1.64836e-06
  12  12.4272
  13  2.01774e-05
  14  5.42617
  15  8.05962
  16  0.000239575
  17  2.82169
  18  19.3306
  19  3.41835e-05
  20  37.7701
  21  7.38792e-06
  22  4.53022
  23  0.232546
  24  0.083213
Done.

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

Extracting fit parameters...

4FGL J2313.5+3945
   Spectrum: PowerLaw
406    Prefactor:  2.358e+01  1.243e+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:  8.788e-01  8.321e-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.013e+00  2.325e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.54
Ra Dec: 348.400 39.764
Photon Index (Fixed Index): 2.76 +/- 0.00
Photon Flux (Fixed Index): 1.05e-07 +/- 5.52e-08
Energy Flux (Fixed Index): 2.42e-05 +/- 1.27e-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) = 10296.8311294
delta logL = 0.172902684664

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10296.8306593
delta logL = 0.17337272061

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.614       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4872       1.0000          .0000       10.000    
     3 'Normalizat'    1.0256       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87464       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=   10296.83     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      273 TOTAL
                     EDM=   .91E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.630        318.72        .18724E-02    .40098E-03
   2  Index         2.4877        6.2438        .19989        .47445E-04
   3  Normalizat    1.0256        .11268        .87064E-01    .33669E-04
   4  Prefactor     .87458        .47937E-01    .44681E-01   -.28661E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.6304
  Index      = 2.48769
  Normalizat = 1.02562
  Prefactor  = 0.874576
 **********
 **   18 **HESSE 
 **********

 FCN=   10296.83     FROM HESSE     STATUS=OK            33 CALLS      306 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.630        16.031        .37448E-03   -1.4637    
   2  Index         2.4877        .43137        .76335E-02   -.52644    
   3  Normalizat    1.0256        .22295        .38552E-03   -.92177    
   4  Prefactor     .87458        .82239E-01    .15295E-03   -.97035    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.68337e-10
Minuit parameter uncertainties:
  1  16.033
  2  0.432086
  3  0.223156
  4  0.0822508
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/714215': 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) = 10296.8306569
delta logL = 0.17337511661

Extracting fit parameters...

4FGL J2313.5+3945
   Spectrum: PowerLaw
406    Prefactor:  2.863e+01  1.603e+01  1.000e-04  1.000e+04 ( 1.000e-12)
407        Index:  2.488e+00  4.321e-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:  8.746e-01  8.225e-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.026e+00  2.232e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.88
Ra Dec: 348.400 39.764
Photon Index (Free Index): 2.49 +/- 0.43
Photon Flux (Free Index): 9.81e-08 +/- 5.21e-08
Energy Flux (Free Index): 2.89e-05 +/- 1.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/714215/cmap_HighResolution_464572801_464832001_4FGL_J2313.5+3945_daily_bin869.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.05e-07', energy_flux2='2.89e-05', photon_flux_error='5.52e-08', dlogl='1.73e-01', energy_flux='2.42e-05', photon_flux2='9.81e-08', job_status='DONE', time_completed='2021-09-29 09:45:28.677600', photon_index_error2='0.43', photon_index2='2.49', ts='5.54', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='1.75e-05', EG='1.01', time_epoch_completed='1632933928.68', return_code='0', job_id='714215', GAL2='0.87', EG2='1.03', return_code2='0', energy_flux_error='1.27e-05', photon_flux_error2='5.21e-08', ts2='5.88', photon_index='2.76' WHERE bin_id='869' AND source_name='4FGL J2313.5+3945' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 09:45:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0042>
Subject: Job 714215: <4FGL_J2313.5+3945_daily_bin869> in cluster <slac> Done

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

Your job looked like:

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

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

