/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 0 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 = 7473
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2313.5+3945_daily_bin269
RA = 348.4, Dec = 39.7644
tmin = 309052801, tmax = 309312001
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='708558', job_status='RUN', time_executed='2021-09-29 09:10:47.134100', time_epoch_executed='1632931847.13' WHERE source_name='4FGL J2313.5+3945' and cadence='daily' and bin_id='269'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/708558

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/708558/ft1_4FGL_J2313.5+3945_daily_bin269.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/708558/ft2_4FGL_J2313.5+3945_daily_bin269.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/708558/ft1_4FGL_J2313.5+3945_daily_bin269.fits outfile=/scratch/kocevski/708558/ft1_filteredMKT_4FGL_J2313.5+3945_daily_bin269.fits ra=348.4 dec=39.7644 rad=12.0 tmin=309052801.0 tmax=309312001.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 2.57
user 2.35
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/708558/ft1_filtered_4FGL_J2313.5+3945_daily_bin269.fits" evtable="EVENTS" scfile=/scratch/kocevski/708558/ft2_4FGL_J2313.5+3945_daily_bin269.fits sctable="SC_DATA" outfile=/scratch/kocevski/708558/ltcube_309052801_309312001_4FGL_J2313.5+3945_daily_bin269.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/708558/ft2_4FGL_J2313.5+3945_daily_bin269.fits
.....................!
real 8.87
user 8.45
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/708558/ft1_filtered_4FGL_J2313.5+3945_daily_bin269.fits evtable="EVENTS" scfile=/scratch/kocevski/708558/ft2_4FGL_J2313.5+3945_daily_bin269.fits sctable="SC_DATA" expcube=/scratch/kocevski/708558/ltcube_309052801_309312001_4FGL_J2313.5+3945_daily_bin269.fits outfile=/scratch/kocevski/708558/expmap_309052801_309312001_4FGL_J2313.5+3945_daily_bin269.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/708558/ltcube_309052801_309312001_4FGL_J2313.5+3945_daily_bin269.fits
.....................!
real 141.05
user 137.07
sys 3.76

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/708558/ft1_filtered_4FGL_J2313.5+3945_daily_bin269.fits scfile=/scratch/kocevski/708558/ft2_4FGL_J2313.5+3945_daily_bin269.fits outfile=/scratch/kocevski/708558/cmap_309052801_309312001_4FGL_J2313.5+3945_daily_bin269.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.47
user 0.29
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/708558/ft1_filtered_4FGL_J2313.5+3945_daily_bin269.fits scfile=/scratch/kocevski/708558/ft2_4FGL_J2313.5+3945_daily_bin269.fits outfile=/scratch/kocevski/708558/cmap_HighResolution_309052801_309312001_4FGL_J2313.5+3945_daily_bin269.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.44
user 0.29
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    31.175       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.7896       1.0000         .10000E-03   10000.    
     8 'Prefactor '    42.570       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.9668       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.6467       1.0000         .10000E-03   10000.    
    13 'Prefactor '    30.021       1.0000         .10000E-03   10000.    
    14 'norm      '    5.7685       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    24.449       1.0000         .10000E-03   10000.    
    17 'norm      '    .10417E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    20.007       1.0000         .10000E-03   10000.    
    19 'Prefactor '    72.333       1.0000         .10000E-03   10000.    
    20 'Prefactor '    39.406       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1907       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .89843       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=   11872.69     FROM MIGRAD    STATUS=CONVERGED    541 CALLS     2781 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    11.609        .90712E-02** at limit **
   2  Prefactor     .10000E-03    26.228        .90712E-02** at limit **
   3  norm          31.174        17.603        .17940E-02    .63416E-03
   4  Prefactor     .10000E-03    1.7253        .90712E-02** at limit **
   5  Prefactor     .10000E-03    20.438        .90712E-02** at limit **
   6  Prefactor     .10000E-03    3.1049        .90712E-02** at limit **
   7  norm          1.7895        2.2336        .78169E-02    .56755E-03
   8  Prefactor     42.570        21.932        .15360E-02   -.12234E-03
   9  Prefactor     .10000E-03    1.9155        .90712E-02** at limit **
  10  Prefactor     .10000E-03    5.4633        .90712E-02** at limit **
  11  norm          5.9667        1.6438        .41096E-02    .93172E-04
  12  Prefactor     4.6462        9.2473        .46676E-02    .16441E-03
  13  Prefactor     30.021        31.191        .18281E-02    .63533E-03
  14  norm          5.7679        5.1288        .41807E-02    .24052E-03
  15  norm          .10000E-03    2.4364        .90712E-02** at limit **
  16  Prefactor     24.448        20.780        .20253E-02    .66530E-03
  17  norm          .10000E-03    .86995        .52451E-01** at limit **
  18  Prefactor     20.006        19.114        .22386E-02    .17453E-03
  19  Prefactor     72.332        51.893        .11801E-02    .61251E-03
  20  Prefactor     39.406        49.996        .15963E-02    .98309E-03
  21  Prefactor     .10001E-03    11.847        .90712E-02** at limit **
  22  Prefactor     .10000E-03    2.4105        .90712E-02** at limit **
  23  Normalizat    1.1907        .20842        .90427E-01    .28858E-04
  24  Prefactor     .89841        .70423E-01    .44985E-01   -.65480E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  norm       = 31.1735
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.7895
  Prefactor  = 42.5704
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.96673
  Prefactor  = 4.6462
  Prefactor  = 30.0206
  norm       = 5.76791
  norm       = 0.0001
  Prefactor  = 24.448
  norm       = 0.0001
  Prefactor  = 20.0065
  Prefactor  = 72.3322
  Prefactor  = 39.4058
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Normalizat = 1.19074
  Prefactor  = 0.898411
 **********
 **   18 **HESSE 
 **********

 FCN=   11872.69     FROM HESSE     STATUS=OK           387 CALLS     3168 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    11.614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    26.533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          31.174        17.628        .71761E-04   -1.4591    
   4  Prefactor     .10000E-03    1.7283        .13975E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    20.444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.1341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.7895        2.2144        .17614E-03   -1.5440    
   8  Prefactor     42.570        21.930        .61442E-04   -1.4402    
   9  Prefactor     .10000E-03    1.9268        .14723E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.4656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.9667        1.6449        .70341E-04   -1.5219    
  12  Prefactor     4.6462        9.1944        .18670E-03   -1.5277    
  13  Prefactor     30.021        31.192        .73124E-04   -1.4612    
  14  norm          5.7679        5.1114        .16723E-03   -1.5228    
  15  norm          .10000E-03    2.4376        .16610E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     24.448        20.803        .81013E-04   -1.4719    
  17  norm          .10000E-03    4.1764        .19628E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     20.006        19.114        .89545E-04   -1.4813    
  19  Prefactor     72.332        51.931        .47204E-04   -1.4005    
  20  Prefactor     39.406        50.235        .63851E-04   -1.4452    
  21  Prefactor     .10001E-03    11.848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    2.4219        .16514E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1907        .24062        .40050E-03   -.86889    
  24  Prefactor     .89841        .81391E-01    .16181E-03   -.96197    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12606e-08
Minuit parameter uncertainties:
  1  0.000521913
  2  4.76271e-05
  3  17.6308
  4  5.49199e-07
  5  8.60485e-05
  6  8.57226e-07
  7  2.21445
  8  21.934
  9  2.79284e-07
  10  3.77747e-06
  11  1.64487
  12  9.19718
  13  31.2093
  14  5.1118
  15  4.19222e-06
  16  20.8087
  17  1.65985e-06
  18  19.1197
  19  51.9631
  20  50.2887
  21  0.00056125
  22  4.13172e-06
  23  0.240843
  24  0.0814015
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
538    Prefactor:  8.984e-01  8.140e-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.191e+00  2.408e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/708558/likelihoodResults_309052801_309312001_4FGL_J2313.5+3945_daily_bin269.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) = 11872.6279109
delta logL = 0.0622477991583

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11872.6248957
delta logL = 0.0652629740507

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.1144       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3655       1.0000          .0000       10.000    
     3 'Normalizat'    1.1953       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89677       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=   11872.62     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      290 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.1137        10.559        .16236E-03    .46438E-03
   2  Index         2.3657        .95184        .13577E-01    .18535E-03
   3  Normalizat    1.1954        .22358        .39980E-03   -.50616E-05
   4  Prefactor     .89675        .80041E-01    .16194E-03   -.32990E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.11372
  Index      = 2.36574
  Normalizat = 1.1954
  Prefactor  = 0.896747
 **********
 **   18 **HESSE 
 **********

 FCN=   11872.62     FROM HESSE     STATUS=OK            23 CALLS      313 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.1137        10.523        .64945E-05   -1.5213    
   2  Index         2.3657        .94900        .54309E-03   -.55489    
   3  Normalizat    1.1954        .22372        .15992E-04   -.86745    
   4  Prefactor     .89675        .80075E-01    .32388E-04   -.96255    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.19158e-09
Minuit parameter uncertainties:
  1  10.5261
  2  0.957067
  3  0.223895
  4  0.0800859
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/708558': 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) = 11872.6248956
delta logL = 0.0652630897275

Extracting fit parameters...

4FGL J2313.5+3945
   Spectrum: PowerLaw
406    Prefactor:  6.114e+00  1.053e+01  1.000e-04  1.000e+04 ( 1.000e-12)
407        Index:  2.366e+00  9.571e-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.967e-01  8.009e-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.195e+00  2.239e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.31
Ra Dec: 348.400 39.764

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/708558/cmap_HighResolution_309052801_309312001_4FGL_J2313.5+3945_daily_bin269.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.33e-03', job_status='DONE', photon_flux_upper_limit='1.18e-07', time_completed='2021-09-29 09:23:37.638785', job_id='708558', GAL2='0.90', fit_tolerance='1e-08', EG2='1.20', EG='1.19', time_epoch_completed='1632932617.64', return_code2='0', ts='0.31', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='6.53e-02', ts2='0.44', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='269' AND source_name='4FGL J2313.5+3945' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 09:23:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 708558: <4FGL_J2313.5+3945_daily_bin269> in cluster <slac> Done

Job <4FGL_J2313.5+3945_daily_bin269> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Wed Sep 29 09:10:37 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 09:10:39 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:10:39 2021
Terminated at Wed Sep 29 09:23:38 2021
Results reported at Wed Sep 29 09:23:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2313.5+3945_daily_bin269 348.4 39.7644 309052801 309312001 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 :                                   759.32 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             364.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   778 sec.
    Turnaround time :                            781 sec.

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

