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


Performing analysis on: 4FGL_J2313.5+3945_daily_bin558
RA = 348.4, Dec = 39.7644
tmin = 383961601, tmax = 384220801
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='710043', job_status='RUN', time_executed='2021-09-29 09:15:44.813095', time_epoch_executed='1632932144.81' WHERE source_name='4FGL J2313.5+3945' and cadence='daily' and bin_id='558'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/710043

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/710043/ft1_4FGL_J2313.5+3945_daily_bin558.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/710043/ft2_4FGL_J2313.5+3945_daily_bin558.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/710043/ft1_4FGL_J2313.5+3945_daily_bin558.fits outfile=/scratch/kocevski/710043/ft1_filteredMKT_4FGL_J2313.5+3945_daily_bin558.fits ra=348.4 dec=39.7644 rad=12.0 tmin=383961601.0 tmax=384220801.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 8.74
user 8.42
sys 0.29

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/710043/ft1_filtered_4FGL_J2313.5+3945_daily_bin558.fits" evtable="EVENTS" scfile=/scratch/kocevski/710043/ft2_4FGL_J2313.5+3945_daily_bin558.fits sctable="SC_DATA" outfile=/scratch/kocevski/710043/ltcube_383961601_384220801_4FGL_J2313.5+3945_daily_bin558.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/710043/ft2_4FGL_J2313.5+3945_daily_bin558.fits
.....................!
real 11.31
user 10.93
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/710043/ft1_filtered_4FGL_J2313.5+3945_daily_bin558.fits evtable="EVENTS" scfile=/scratch/kocevski/710043/ft2_4FGL_J2313.5+3945_daily_bin558.fits sctable="SC_DATA" expcube=/scratch/kocevski/710043/ltcube_383961601_384220801_4FGL_J2313.5+3945_daily_bin558.fits outfile=/scratch/kocevski/710043/expmap_383961601_384220801_4FGL_J2313.5+3945_daily_bin558.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/710043/ltcube_383961601_384220801_4FGL_J2313.5+3945_daily_bin558.fits
.....................!
real 190.59
user 185.32
sys 4.94

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/710043/ft1_filtered_4FGL_J2313.5+3945_daily_bin558.fits scfile=/scratch/kocevski/710043/ft2_4FGL_J2313.5+3945_daily_bin558.fits outfile=/scratch/kocevski/710043/cmap_383961601_384220801_4FGL_J2313.5+3945_daily_bin558.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/710043/ft1_filtered_4FGL_J2313.5+3945_daily_bin558.fits scfile=/scratch/kocevski/710043/ft2_4FGL_J2313.5+3945_daily_bin558.fits outfile=/scratch/kocevski/710043/cmap_HighResolution_383961601_384220801_4FGL_J2313.5+3945_daily_bin558.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    80.780       1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.504       1.0000         .10000E-03   10000.    
     3 'norm      '    .10182E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.9812       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.7579       1.0000         .10000E-03   10000.    
     7 'norm      '    .11286       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.4554       1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.364       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.8431       1.0000         .10000E-03   10000.    
    14 'norm      '    22.569       1.0000         .10000E-03   10000.    
    15 'norm      '    12.871       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    25.079       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10696E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    35.427       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.6485       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .83560       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=   10298.47     FROM MIGRAD    STATUS=CONVERGED    561 CALLS     2795 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     80.781        46.538        .29489E-06    .73823E-05
   2  Prefactor     15.505        18.733        .19313E-07    .55896E-05
   3  norm          .10000E-03    17.010        .75003E-05** at limit **
   4  Prefactor     1.9796        1.1953        .11452E-06   -.16145E-02
   5  Prefactor     .10000E-03    66.826        .41794E-05** at limit **
   6  Prefactor     5.7788        6.9688        .76025E-06    .42350E-03
   7  norm          .88809E-01    2.0985       -.78325E-06    .80035E-03
   8  Prefactor     .10000E-03    10.166       -.41892E-07** at limit **
   9  Prefactor     .10000E-03    1.6299       -.28895E-08** at limit **
  10  Prefactor     .10000E-03    7.1104        .22974E-07** at limit **
  11  norm          1.4554        1.4550       -.15228E-06   -.24406E-03
  12  Prefactor     14.366        12.034        .28432E-07    .17169E-04
  13  Prefactor     1.8237        74.423        .76061E-05   -.11785E-04
  14  norm          22.569        8.1655        .18104E-05   -.87129E-04
  15  norm          12.871        11.660       -.13760E-06    .14173E-05
  16  Prefactor     .10000E-03    23.267        .32103E-05** at limit **
  17  norm          .10000E-03    .88159        .83895E-08** at limit **
  18  Prefactor     25.078        21.444        .16281E-06   -.32022E-05
  19  Prefactor     .10000E-03    17.705       -.92649E-05** at limit **
  20  Prefactor     .10000E-03    158.16       -.69856E-05** at limit **
  21  Prefactor     35.422        33.556       -.13106E-05   -.54763E-04
  22  Prefactor     .10000E-03    3.0983       -.44133E-07** at limit **
  23  Normalizat    1.6483        .22926       -.11232E-05    .73965E-04
  24  Prefactor     .83569        .77859E-01    .12086E-06    .36611E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 80.7815
  Prefactor  = 15.5048
  norm       = 0.0001
  Prefactor  = 1.9796
  Prefactor  = 0.0001
  Prefactor  = 5.77876
  norm       = 0.0888093
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.45542
  Prefactor  = 14.3664
  Prefactor  = 1.82369
  norm       = 22.5687
  norm       = 12.8708
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 25.0777
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.4219
  Prefactor  = 0.0001
  Normalizat = 1.64826
  Prefactor  = 0.835692
 **********
 **   18 **HESSE 
 **********

 FCN=   10298.47     FROM HESSE     STATUS=OK           399 CALLS     3194 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     80.781        46.541        .44687E-04   -1.3908    
   2  Prefactor     15.505        18.729        .10172E-03   -1.4920    
   3  norm          .10000E-03    17.302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.9796        4.6162        .14723E-02   -1.5427    
   5  Prefactor     .10000E-03    66.911        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.7788        7.5575        .16738E-03   -1.5227    
   7  norm          .88809E-01    39.206        .24859E-02   -1.5648    
   8  Prefactor     .10000E-03    10.190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.6321        .12651E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.1127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.4554        1.4341        .11694E-03   -1.5467    
  12  Prefactor     14.366        12.058        .10568E-03   -1.4950    
  13  Prefactor     1.8237        75.151        .30721E-03   -1.5438    
  14  norm          22.569        8.1321        .84314E-04   -1.4757    
  15  norm          12.871        11.662        .11165E-03   -1.4990    
  16  Prefactor     .10000E-03    23.148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .88546        .93013E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     25.078        21.454        .79990E-04   -1.4706    
  19  Prefactor     .10000E-03    17.753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    160.49        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     35.422        33.654        .67330E-04   -1.4517    
  22  Prefactor     .10000E-03    3.1209        .17436E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.6483        .26591        .36877E-03   -.73693    
  24  Prefactor     .83569        .90690E-01    .17324E-03   -.98426    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33024e-08
Minuit parameter uncertainties:
  1  46.5618
  2  18.7356
  3  6.23903e-06
  4  4.61707
  5  2.86749e-05
  6  7.55874
  7  3.7323
  8  3.13635e-06
  9  9.92526e-07
  10  6.90188e-07
  11  1.43411
  12  12.0605
  13  23.4447
  14  8.1325
  15  11.6639
  16  0.000258159
  17  6.45799e-07
  18  21.4602
  19  1.39829e-05
  20  0.000107737
  21  33.6719
  22  3.49565e-06
  23  0.266144
  24  0.0907063
Done.

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

Extracting fit parameters...

4FGL J2313.5+3945
   Spectrum: PowerLaw
406    Prefactor:  1.437e+01  1.206e+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.357e-01  9.071e-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.648e+00  2.661e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.29
Ra Dec: 348.400 39.764
Photon Index (Fixed Index): 2.76 +/- 0.00
Photon Flux (Fixed Index): 6.39e-08 +/- 5.35e-08
Energy Flux (Fixed Index): 1.47e-05 +/- 1.24e-05

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

Saving results to:
/scratch/kocevski/710043/likelihoodResults_383961601_384220801_4FGL_J2313.5+3945_daily_bin558.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) = 10297.5817687
delta logL = 0.891928128334

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10297.5720022
delta logL = 0.901694669146

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.067       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8487       1.0000          .0000       10.000    
     3 'Normalizat'    1.6885       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82850       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=   10297.57     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      216 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.058        10.975        .28829E-02    .17558E-03
   2  Index         1.8483        .36023        .26740       -.14304E-03
   3  Normalizat    1.6887        .22017        .82516E-01    .12125E-04
   4  Prefactor     .82846        .77290E-01    .44087E-01   -.45935E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.0575
  Index      = 1.84829
  Normalizat = 1.68867
  Prefactor  = 0.828462
 **********
 **   18 **HESSE 
 **********

 FCN=   10297.57     FROM HESSE     STATUS=OK            29 CALLS      245 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.058        15.422        .11532E-03   -1.5013    
   2  Index         1.8483        .66379        .91838E-02   -.68199    
   3  Normalizat    1.6887        .25520        .36521E-03   -.72606    
   4  Prefactor     .82846        .89416E-01    .17391E-03   -.98688    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.10576e-10
Minuit parameter uncertainties:
  1  15.4267
  2  0.667066
  3  0.255395
  4  0.0894313
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/710043': 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) = 10297.5720018
delta logL = 0.901695026127

Extracting fit parameters...

4FGL J2313.5+3945
   Spectrum: PowerLaw
406    Prefactor:  1.206e+01  1.543e+01  1.000e-04  1.000e+04 ( 1.000e-12)
407        Index:  1.848e+00  6.671e-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.285e-01  8.943e-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.689e+00  2.554e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.07
Ra Dec: 348.400 39.764
Photon Index (Free Index): 1.85 +/- 0.67
Photon Flux (Free Index): 2.63e-08 +/- 3.92e-08
Energy Flux (Free Index): 2.73e-05 +/- 3.21e-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/710043/cmap_HighResolution_383961601_384220801_4FGL_J2313.5+3945_daily_bin558.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.41e-02', comment='SUCCESS', photon_flux='6.39e-08', energy_flux2='2.73e-05', photon_flux_error='5.35e-08', dlogl='9.02e-01', energy_flux='1.47e-05', photon_flux2='2.63e-08', job_status='DONE', time_completed='2021-09-29 09:31:52.693343', photon_index_error2='0.67', photon_index2='1.85', ts='2.29', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='1.78e-07', energy_flux_error2='3.21e-05', EG='1.65', time_epoch_completed='1632933112.69', return_code='0', job_id='710043', GAL2='0.83', EG2='1.69', return_code2='0', energy_flux_error='1.24e-05', photon_flux_error2='3.92e-08', ts2='4.07', photon_index='2.76' WHERE bin_id='558' AND source_name='4FGL J2313.5+3945' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 09:31:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 710043: <4FGL_J2313.5+3945_daily_bin558> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2313.5+3945_daily_bin558 348.4 39.7644 383961601 384220801 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 :                                   959.49 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             358.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   978 sec.
    Turnaround time :                            980 sec.

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

