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


Performing analysis on: 4FGL_J2313.5+3945_daily_bin725
RA = 348.4, Dec = 39.7644
tmin = 427248001, tmax = 427507201
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='711460', job_status='RUN', time_executed='2021-09-29 09:21:49.695722', time_epoch_executed='1632932509.7' WHERE source_name='4FGL J2313.5+3945' and cadence='daily' and bin_id='725'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/711460

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/711460/ft1_4FGL_J2313.5+3945_daily_bin725.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/711460/ft2_4FGL_J2313.5+3945_daily_bin725.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/711460/ft1_4FGL_J2313.5+3945_daily_bin725.fits outfile=/scratch/kocevski/711460/ft1_filteredMKT_4FGL_J2313.5+3945_daily_bin725.fits ra=348.4 dec=39.7644 rad=12.0 tmin=427248001.0 tmax=427507201.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 5.48
user 5.22
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/711460/ft2_4FGL_J2313.5+3945_daily_bin725.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/711460/ft1_filteredMKT_4FGL_J2313.5+3945_daily_bin725.fits evtable="EVENTS" outfile="/scratch/kocevski/711460/ft1_filtered_4FGL_J2313.5+3945_daily_bin725.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/711460/ft1_filtered_4FGL_J2313.5+3945_daily_bin725.fits evtable="EVENTS" scfile=/scratch/kocevski/711460/ft2_4FGL_J2313.5+3945_daily_bin725.fits sctable="SC_DATA" expcube=/scratch/kocevski/711460/ltcube_427248001_427507201_4FGL_J2313.5+3945_daily_bin725.fits outfile=/scratch/kocevski/711460/expmap_427248001_427507201_4FGL_J2313.5+3945_daily_bin725.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/711460/ltcube_427248001_427507201_4FGL_J2313.5+3945_daily_bin725.fits
.....................!
real 190.39
user 184.93
sys 5.10

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/711460/ft1_filtered_4FGL_J2313.5+3945_daily_bin725.fits scfile=/scratch/kocevski/711460/ft2_4FGL_J2313.5+3945_daily_bin725.fits outfile=/scratch/kocevski/711460/cmap_427248001_427507201_4FGL_J2313.5+3945_daily_bin725.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/711460/ft1_filtered_4FGL_J2313.5+3945_daily_bin725.fits scfile=/scratch/kocevski/711460/ft2_4FGL_J2313.5+3945_daily_bin725.fits outfile=/scratch/kocevski/711460/cmap_HighResolution_427248001_427507201_4FGL_J2313.5+3945_daily_bin725.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/711460/ft1_filtered_4FGL_J2313.5+3945_daily_bin725.fits evtable="EVENTS" scfile=/scratch/kocevski/711460/ft2_4FGL_J2313.5+3945_daily_bin725.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/711460/Model_4FGL_J2313.5+3945_daily_bin725.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/711460/ft1_filtered_4FGL_J2313.5+3945_daily_bin725.fits.....................!
real 81.29
user 79.90
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.549       1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.618       1.0000         .10000E-03   10000.    
     3 'norm      '    32.884       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    111.62       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10815E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    8.6694       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.2672       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.9547       1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.406       1.0000         .10000E-03   10000.    
    13 'Prefactor '    32.049       1.0000         .10000E-03   10000.    
    14 'norm      '    .15123E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.4049       1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.643       1.0000         .10000E-03   10000.    
    17 'norm      '    .74314       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    24.389       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .78270       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0116       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=   6630.758     FROM MIGRAD    STATUS=CONVERGED    543 CALLS     2752 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.511        31.842       -.76527E-05   -.35023E-03
   2  Prefactor     16.617        28.639        .31324E-05    .14081E-03
   3  norm          32.884        18.899        .98401E-07    .34661E-04
   4  Prefactor     .10000E-03    3.5900        .30681E-07** at limit **
   5  Prefactor     111.58        99.980       -.81013E-05   -.30565E-03
   6  Prefactor     .10000E-03    13.797       -.49410E-06** at limit **
   7  norm          8.6650        5.3433        .72322E-06   -.71139E-03
   8  Prefactor     .10000E-03    10.645        .96665E-07** at limit **
   9  Prefactor     8.2671        6.5251       -.83135E-07   -.27687E-06
  10  Prefactor     .10000E-03    10.652        .14594E-06** at limit **
  11  norm          4.9549        2.1948        .20470E-06   -.88236E-03
  12  Prefactor     12.406        11.986       -.19573E-06   -.58163E-05
  13  Prefactor     32.046        37.033       -.15323E-05   -.14900E-03
  14  norm          .10036E-03    6.0970        .38544E-06** at limit **
  15  norm          3.4045        9.8704        .65797E-05   -.76305E-03
  16  Prefactor     10.662        22.652        .25458E-06   -.13603E-03
  17  norm          .74327        2.2600        .27262E-06   -.36445E-03
  18  Prefactor     .10000E-03    8.8097       -.71766E-07** at limit **
  19  Prefactor     .10000E-03    38.767        .40456E-06** at limit **
  20  Prefactor     24.386        41.607       -.69752E-06   -.41075E-04
  21  Prefactor     .10000E-03    11.930       -.13444E-07** at limit **
  22  Prefactor     .10000E-03    1.9749        .28153E-07** at limit **
  23  Normalizat    .78270        .27553        .20916E-06   -.48986E-04
  24  Prefactor     1.0116        .97750E-01   -.24609E-06   -.62518E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.5107
  Prefactor  = 16.6169
  norm       = 32.8845
  Prefactor  = 0.0001
  Prefactor  = 111.582
  Prefactor  = 0.0001
  norm       = 8.66502
  Prefactor  = 0.0001
  Prefactor  = 8.26708
  Prefactor  = 0.0001
  norm       = 4.95494
  Prefactor  = 12.4058
  Prefactor  = 32.046
  norm       = 0.00010036
  norm       = 3.40455
  Prefactor  = 10.6623
  norm       = 0.743267
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.3863
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.782698
  Prefactor  = 1.01158
 **********
 **   18 **HESSE 
 **********

 FCN=   6630.758     FROM HESSE     STATUS=OK           407 CALLS     3159 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.511        33.335        .10501E-03   -1.4946    
   2  Prefactor     16.617        28.864        .98251E-04   -1.4892    
   3  norm          32.884        18.942        .69877E-04   -1.4560    
   4  Prefactor     .10000E-03    3.6066        .15062E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     111.58        103.87        .19037E-03   -1.3591    
   6  Prefactor     .10000E-03    14.084        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          8.6650        5.3643        .68069E-03   -1.5119    
   8  Prefactor     .10000E-03    10.675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.2671        6.5229        .13943E-03   -1.5133    
  10  Prefactor     .10000E-03    10.655        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.9549        2.2025        .38168E-03   -1.5263    
  12  Prefactor     12.406        11.954        .11373E-03   -1.5003    
  13  Prefactor     32.046        37.165        .70779E-04   -1.4575    
  14  norm          .10036E-03    7.0194        .54848E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.4045        10.722        .10962E-02   -1.5339    
  16  Prefactor     10.662        22.889        .12281E-03   -1.5055    
  17  norm          .74327        2.1956        .20463E-03   -1.5536    
  18  Prefactor     .10000E-03    8.8165        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    38.803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     24.386        41.734        .81113E-04   -1.4720    
  21  Prefactor     .10000E-03    11.931        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    1.9766        .11174E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .78270        .30929        .44398E-03   -1.0071    
  24  Prefactor     1.0116        .11089        .15008E-03   -.92344    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.60895e-09
Minuit parameter uncertainties:
  1  33.3775
  2  28.888
  3  18.9456
  4  2.89968e-06
  5  104.038
  6  7.13706e-05
  7  5.36462
  8  1.76974e-05
  9  6.52346
  10  1.64474e-05
  11  2.20252
  12  11.9559
  13  37.1921
  14  0.00317787
  15  10.7284
  16  22.9082
  17  2.19585
  18  9.67605e-06
  19  7.37543e-05
  20  41.7841
  21  4.18128e-06
  22  2.04986e-07
  23  0.309991
  24  0.11091
Done.

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

Extracting fit parameters...

4FGL J2313.5+3945
   Spectrum: PowerLaw
406    Prefactor:  1.241e+01  1.196e+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.012e+00  1.109e-01  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:  7.827e-01  3.100e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.65
Ra Dec: 348.400 39.764
Photon Index (Fixed Index): 2.76 +/- 0.00
Photon Flux (Fixed Index): 5.51e-08 +/- 5.31e-08
Energy Flux (Fixed Index): 1.27e-05 +/- 1.22e-05

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

Saving results to:
/scratch/kocevski/711460/likelihoodResults_427248001_427507201_4FGL_J2313.5+3945_daily_bin725.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) = 6630.34208503
delta logL = 0.416400924921

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6630.32934956
delta logL = 0.429136393444

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.288       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0646       1.0000          .0000       10.000    
     3 'Normalizat'    .80810       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0059       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=   6630.329     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      246 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.290        14.956        .10596E-03   -.23880E-03
   2  Index         2.0647        .70553        .98614E-02   -.14699E-03
   3  Normalizat    .80818        .28408        .43754E-03   -.30904E-03
   4  Prefactor     1.0059        .10826        .15044E-03   -.78741E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.2903
  Index      = 2.06468
  Normalizat = 0.808183
  Prefactor  = 1.0059
 **********
 **   18 **HESSE 
 **********

 FCN=   6630.329     FROM HESSE     STATUS=OK            25 CALLS      271 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.290        15.177        .21193E-04   -1.4952    
   2  Index         2.0647        .71600        .19723E-02   -.62743    
   3  Normalizat    .80818        .28426        .17502E-04   -.99766    
   4  Prefactor     1.0059        .10830        .30087E-04   -.92533    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.31813e-10
Minuit parameter uncertainties:
  1  15.1808
  2  0.719783
  3  0.284783
  4  0.108324
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/711460': 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) = 6630.32934948
delta logL = 0.429136476232

Extracting fit parameters...

4FGL J2313.5+3945
   Spectrum: PowerLaw
406    Prefactor:  1.429e+01  1.518e+01  1.000e-04  1.000e+04 ( 1.000e-12)
407        Index:  2.065e+00  7.198e-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:  1.006e+00  1.083e-01  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:  8.082e-01  2.848e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.50
Ra Dec: 348.400 39.764
Photon Index (Free Index): 2.06 +/- 0.72
Photon Flux (Free Index): 3.50e-08 +/- 4.65e-08
Energy Flux (Free Index): 2.08e-05 +/- 2.48e-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/711460/cmap_HighResolution_427248001_427507201_4FGL_J2313.5+3945_daily_bin725.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.36e-02', comment='SUCCESS', photon_flux='5.51e-08', energy_flux2='2.08e-05', photon_flux_error='5.31e-08', dlogl='4.29e-01', energy_flux='1.27e-05', photon_flux2='3.50e-08', job_status='DONE', time_completed='2021-09-29 09:34:14.445189', photon_index_error2='0.72', photon_index2='2.06', ts='1.65', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='1.73e-07', energy_flux_error2='2.48e-05', EG='0.78', time_epoch_completed='1632933254.45', return_code='0', job_id='711460', GAL2='1.01', EG2='0.81', return_code2='0', energy_flux_error='1.22e-05', photon_flux_error2='4.65e-08', ts2='2.50', photon_index='2.76' WHERE bin_id='725' AND source_name='4FGL J2313.5+3945' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 09:34:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 711460: <4FGL_J2313.5+3945_daily_bin725> in cluster <slac> Done

Job <4FGL_J2313.5+3945_daily_bin725> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Wed Sep 29 09:20:34 2021
Job was executed on host(s) <bullet0076>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 09:20:35 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:20:35 2021
Terminated at Wed Sep 29 09:34:15 2021
Results reported at Wed Sep 29 09:34:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2313.5+3945_daily_bin725 348.4 39.7644 427248001 427507201 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 :                                   744.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             328.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   819 sec.
    Turnaround time :                            821 sec.

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

