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


Performing analysis on: 4FGL_J2313.5+3945_daily_bin654
RA = 348.4, Dec = 39.7644
tmin = 408844801, tmax = 409104001
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='711352', job_status='RUN', time_executed='2021-09-29 09:21:43.336518', time_epoch_executed='1632932503.34' WHERE source_name='4FGL J2313.5+3945' and cadence='daily' and bin_id='654'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/711352

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/711352/ft1_4FGL_J2313.5+3945_daily_bin654.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/711352/ft2_4FGL_J2313.5+3945_daily_bin654.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/711352/ft1_4FGL_J2313.5+3945_daily_bin654.fits outfile=/scratch/kocevski/711352/ft1_filteredMKT_4FGL_J2313.5+3945_daily_bin654.fits ra=348.4 dec=39.7644 rad=12.0 tmin=408844801.0 tmax=409104001.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.42
user 4.17
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/711352/ft1_filtered_4FGL_J2313.5+3945_daily_bin654.fits evtable="EVENTS" scfile=/scratch/kocevski/711352/ft2_4FGL_J2313.5+3945_daily_bin654.fits sctable="SC_DATA" expcube=/scratch/kocevski/711352/ltcube_408844801_409104001_4FGL_J2313.5+3945_daily_bin654.fits outfile=/scratch/kocevski/711352/expmap_408844801_409104001_4FGL_J2313.5+3945_daily_bin654.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/711352/ltcube_408844801_409104001_4FGL_J2313.5+3945_daily_bin654.fits
.....................!
real 190.55
user 185.28
sys 4.59

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/711352/ft1_filtered_4FGL_J2313.5+3945_daily_bin654.fits scfile=/scratch/kocevski/711352/ft2_4FGL_J2313.5+3945_daily_bin654.fits outfile=/scratch/kocevski/711352/cmap_408844801_409104001_4FGL_J2313.5+3945_daily_bin654.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.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .61667E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .14658E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    .14209E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    38.562       1.0000         .10000E-03   10000.    
     5 'Prefactor '    302.65       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10356E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .64766E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11414E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .84092E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    5.5513       1.0000         .10000E-03   10000.    
    12 'Prefactor '    62.391       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .22694E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    .22834E-01   1.0000         .10000E-03   10000.    
    15 'norm      '    .26372E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    106.01       1.0000         .10000E-03   10000.    
    17 'norm      '    7.3176       1.0000         .10000E-03   10000.    
    18 'Prefactor '    66.790       1.0000         .10000E-03   10000.    
    19 'Prefactor '    185.50       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .21873E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    112.96       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .10017E-01   1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.3297       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5410E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   701.1757     FROM MIGRAD    STATUS=CONVERGED    208 CALLS     2221 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    62.208        .24115E-05** at limit **
   2  Prefactor     .10000E-03    41.463        .21630E-04** at limit **
   3  norm          .10000E-03    58.505       -.40386E-07** at limit **
   4  Prefactor     38.692        40.125        .50888E-05    .23307E-02
   5  Prefactor     304.76        48.990       -.54314E-06   -.42667E-01
   6  Prefactor     .10000E-03    11.144       -.96187E-06** at limit **
   7  norm          .10000E-03    7.5021       -.50598E-05** at limit **
   8  Prefactor     .10015E-03    62.257       -.65502E-05** at limit **
   9  Prefactor     .10000E-03    12.783        .95601E-05** at limit **
  10  Prefactor     .10001E-03    84.513       -.41146E-04** at limit **
  11  norm          5.6131        7.7981        .59759E-06   -.71332E-04
  12  Prefactor     65.834        69.239        .94276E-05    .13993E-03
  13  Prefactor     .10081E-03    12.029       -.31832E-06** at limit **
  14  norm          .10002E-03    111.12       -.27093E-04** at limit **
  15  norm          .10000E-03    44.696       -.59424E-05** at limit **
  16  Prefactor     97.866        93.745       -.10987E-04    .23649E-02
  17  norm          7.2174        12.847        .11036E-04   -.19297E-04
  18  Prefactor     65.060        17.799       -.20664E-05   -.75258E-02
  19  Prefactor     176.72        190.07        .33432E-05    .36351E-02
  20  Prefactor     .10001E-03    103.60       -.60503E-06** at limit **
  21  Prefactor     108.35        96.313        .22733E-05   -.17902E-01
  22  Prefactor     .10000E-03    22.884        .37788E-05** at limit **
  23  Normalizat    .10000E-01    6.3668       -.67250E-03** at limit **
  24  Prefactor     1.3315        .21410       -.31804E-05   -.71041E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100028
  Prefactor  = 0.0001
  norm       = 0.000100003
  Prefactor  = 38.6919
  Prefactor  = 304.763
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100146
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  norm       = 5.61308
  Prefactor  = 65.8337
  Prefactor  = 0.000100806
  norm       = 0.000100018
  norm       = 0.0001
  Prefactor  = 97.8659
  norm       = 7.21736
  Prefactor  = 65.0599
  Prefactor  = 176.723
  Prefactor  = 0.000100012
  Prefactor  = 108.353
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.3315
 **********
 **   18 **HESSE 
 **********

 FCN=   701.1757     FROM HESSE     STATUS=OK           431 CALLS     2652 TOTAL
                     EDM=   .33E-03    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    69.545        .94492E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    41.496        .90961E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    58.696        .90939E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     38.692        40.747        .16136E-02   -1.4463    
   5  Prefactor     304.76        690.72        .58372E-03   -1.2198    
   6  Prefactor     .10000E-03    11.141        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    7.5009        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10015E-03    65.256        .94115E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.786        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    84.457        .91951E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.6131        7.8271        .42629E-02   -1.5234    
  12  Prefactor     65.834        70.444        .12700E-02   -1.4083    
  13  Prefactor     .10081E-03    77.410        .10056E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10002E-03    110.28        .91366E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    44.793        .91541E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     97.866        96.701        .97645E-03   -1.3726    
  17  norm          7.2174        12.863        .37068E-02   -1.5171    
  18  Prefactor     65.060        114.01        .12278E-02   -1.4093    
  19  Prefactor     176.72        220.21        .74112E-03   -1.3041    
  20  Prefactor     .10001E-03    103.60        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     108.35        192.14        .94626E-03   -1.3622    
  22  Prefactor     .10000E-03    23.064        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .10000E-01    1.7668        .32094       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     1.3315        .28263        .32112E-01   -.82375    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 0.000326337
Minuit parameter uncertainties:
  1  0.00280341
  2  5.01206e-05
  3  0.000796273
  4  40.7767
  5  710.8
  6  4.18193e-06
  7  6.00429e-06
  8  0.00617398
  9  7.23823e-08
  10  0.00176121
  11  7.8285
  12  70.5336
  13  0.015814
  14  0.00278719
  15  6.83499e-05
  16  96.8575
  17  12.8681
  18  114.4
  19  221.253
  20  0.00226194
  21  193.261
  22  1.95935e-05
  23  2.78439e-05
  24  0.282958
Done.

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

Extracting fit parameters...

4FGL J2313.5+3945
   Spectrum: PowerLaw
406    Prefactor:  6.583e+01  7.053e+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.331e+00  2.830e-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:  1.000e-02  2.784e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.39
Ra Dec: 348.400 39.764
Photon Index (Fixed Index): 2.76 +/- 0.00
Photon Flux (Fixed Index): 2.93e-07 +/- 3.13e-07
Energy Flux (Fixed Index): 6.74e-05 +/- 7.22e-05

TS (Fixed Index): 1.39
Ra Dec: 348.400 39.764
Photon Flux Upper Limit: 1.03e-06 ph cm-2 s-1
Energy Flux Upper Limit: 8.14e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/711352/likelihoodResults_408844801_409104001_4FGL_J2313.5+3945_daily_bin654.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) = 700.719277138
delta logL = 0.456441535711

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 700.690678128
delta logL = 0.485040545301

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.807       1.0000         .10000E-03   10000.    
     2 'Index     '    4.4168       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3217       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=   700.6907     FROM MIGRAD    STATUS=CONVERGED     78 CALLS      254 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.793        34.958        .77053E-04    .11063E-02
   2  Index         4.4176        2.0076        .32020E-03    .25481E-03
   3  Normalizat    .10000E-01    1.4742        .13658E-01** at limit **
   4  Prefactor     1.3217        .20332        .15269E-03   -.15380E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.7931
  Index      = 4.41757
  Normalizat = 0.01
  Prefactor  = 1.32173
 **********
 **   18 **HESSE 
 **********

 FCN=   700.6907     FROM HESSE     STATUS=OK            23 CALLS      277 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.793        33.931        .15411E-04   -1.4992    
   2  Index         4.4176        1.9517        .12808E-04   -.11675    
   3  Normalizat    .10000E-01    1.4748        .27316E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.3217        .20314        .30537E-04   -.82663    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32364e-09
Minuit parameter uncertainties:
  1  33.9819
  2  2.00581
  3  1.85277e-06
  4  0.203265
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/711352': 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) = 700.690678016
delta logL = 0.485040657849

Extracting fit parameters...

4FGL J2313.5+3945
   Spectrum: PowerLaw
406    Prefactor:  1.279e+01  3.398e+01  1.000e-04  1.000e+04 ( 1.000e-12)
407        Index:  4.418e+00  2.006e+00  0.000e+00  1.000e+01 (-1.000e+00)
408        Scale:  4.854e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
538    Prefactor:  1.322e+00  2.033e-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:  1.000e-02  1.853e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.36
Ra Dec: 348.400 39.764
Photon Index (Free Index): 4.42 +/- 2.01
Photon Flux (Free Index): 4.04e-07 +/- 3.41e-07
Energy Flux (Free Index): 5.70e-05 +/- 4.91e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/711352/cmap_HighResolution_408844801_409104001_4FGL_J2313.5+3945_daily_bin654.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.14e-02', comment='SUCCESS', photon_flux='2.93e-07', energy_flux2='5.70e-05', photon_flux_error='3.13e-07', dlogl='4.85e-01', energy_flux='6.74e-05', photon_flux2='4.04e-07', job_status='DONE', time_completed='2021-09-29 09:27:43.438741', photon_index_error2='2.01', photon_index2='4.42', ts='1.39', fit_tolerance='1e-08', GAL='1.33', photon_index_error='0.00', photon_flux_upper_limit='1.03e-06', energy_flux_error2='4.91e-05', EG='0.01', time_epoch_completed='1632932863.44', return_code='0', job_id='711352', GAL2='1.32', EG2='0.01', return_code2='0', energy_flux_error='7.22e-05', photon_flux_error2='3.41e-07', ts2='2.36', photon_index='2.76' WHERE bin_id='654' AND source_name='4FGL J2313.5+3945' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 09:27:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 711352: <4FGL_J2313.5+3945_daily_bin654> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2313.5+3945_daily_bin654 348.4 39.7644 408844801 409104001 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 :                                   358.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             274.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   438 sec.
    Turnaround time :                            441 sec.

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

