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


Performing analysis on: 4FGL_J2313.5+3945_daily_bin736
RA = 348.4, Dec = 39.7644
tmin = 430099201, tmax = 430358401
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='711477', job_status='RUN', time_executed='2021-09-29 09:20:59.085752', time_epoch_executed='1632932459.09' WHERE source_name='4FGL J2313.5+3945' and cadence='daily' and bin_id='736'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/711477

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/711477/ft1_4FGL_J2313.5+3945_daily_bin736.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/711477/ft2_4FGL_J2313.5+3945_daily_bin736.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/711477/ft1_4FGL_J2313.5+3945_daily_bin736.fits outfile=/scratch/kocevski/711477/ft1_filteredMKT_4FGL_J2313.5+3945_daily_bin736.fits ra=348.4 dec=39.7644 rad=12.0 tmin=430099201.0 tmax=430358401.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 11.16
user 10.85
sys 0.29

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/711477/ft1_filtered_4FGL_J2313.5+3945_daily_bin736.fits evtable="EVENTS" scfile=/scratch/kocevski/711477/ft2_4FGL_J2313.5+3945_daily_bin736.fits sctable="SC_DATA" expcube=/scratch/kocevski/711477/ltcube_430099201_430358401_4FGL_J2313.5+3945_daily_bin736.fits outfile=/scratch/kocevski/711477/expmap_430099201_430358401_4FGL_J2313.5+3945_daily_bin736.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/711477/ltcube_430099201_430358401_4FGL_J2313.5+3945_daily_bin736.fits
.....................!
real 190.66
user 185.28
sys 5.00

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/711477/ft1_filtered_4FGL_J2313.5+3945_daily_bin736.fits scfile=/scratch/kocevski/711477/ft2_4FGL_J2313.5+3945_daily_bin736.fits outfile=/scratch/kocevski/711477/cmap_430099201_430358401_4FGL_J2313.5+3945_daily_bin736.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/711477/ft1_filtered_4FGL_J2313.5+3945_daily_bin736.fits scfile=/scratch/kocevski/711477/ft2_4FGL_J2313.5+3945_daily_bin736.fits outfile=/scratch/kocevski/711477/cmap_HighResolution_430099201_430358401_4FGL_J2313.5+3945_daily_bin736.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.55
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.4320       1.0000         .10000E-03   10000.    
     3 'norm      '    11.525       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.4664       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.7763       1.0000         .10000E-03   10000.    
     7 'norm      '    10.265       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.986       1.0000         .10000E-03   10000.    
    10 'Prefactor '    22.483       1.0000         .10000E-03   10000.    
    11 'norm      '    .75793E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.2281       1.0000         .10000E-03   10000.    
    13 'Prefactor '    23.103       1.0000         .10000E-03   10000.    
    14 'norm      '    18.880       1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    6.1272       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .54466E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    49.797       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.3817       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .76808       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .99903       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=   8155.538     FROM MIGRAD    STATUS=CONVERGED    530 CALLS     2701 TOTAL
                     EDM=   .30E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.917       -.54396E-06** at limit **
   2  Prefactor     5.4324        17.741       -.26958E-06   -.19866E-04
   3  norm          11.527        26.651       -.75184E-06   -.10195E-04
   4  Prefactor     4.4644        10.336        .16331E-05   -.26247E-04
   5  Prefactor     .10000E-03    30.803       -.17266E-05** at limit **
   6  Prefactor     6.7758        9.1802        .17276E-06    .14123E-04
   7  norm          10.265        6.0839        .16318E-06    .32778E-04
   8  Prefactor     .10000E-03    5.7530       -.19683E-07** at limit **
   9  Prefactor     14.984        7.3509        .29110E-07    .67353E-05
  10  Prefactor     22.486        22.648       -.96587E-07    .25764E-05
  11  norm          .10004E-03    .75891       -.82115E-07** at limit **
  12  Prefactor     8.2306        16.150        .66858E-06   -.24365E-05
  13  Prefactor     23.109        31.575       -.49577E-06   -.42300E-05
  14  norm          18.882        8.9144        .52497E-07    .25346E-04
  15  norm          .10000E-03    9.7747        .28225E-06** at limit **
  16  Prefactor     .10000E-03    12.888        .27057E-06** at limit **
  17  norm          6.1261        4.6497        .18932E-07   -.11213E-04
  18  Prefactor     .10000E-03    22.927        .64188E-06** at limit **
  19  Prefactor     .10000E-03    377.87        .18830E-04** at limit **
  20  Prefactor     49.797        41.013        .62714E-07   -.15858E-05
  21  Prefactor     .10000E-03    40.223        .75591E-06** at limit **
  22  Prefactor     9.3810        12.480       -.13399E-06   -.21625E-04
  23  Normalizat    .76816        .26936       -.10666E-05   -.44663E-04
  24  Prefactor     .99904        .89067E-01    .56268E-08   -.13863E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 5.43237
  norm       = 11.5273
  Prefactor  = 4.46441
  Prefactor  = 0.0001
  Prefactor  = 6.77578
  norm       = 10.2649
  Prefactor  = 0.0001
  Prefactor  = 14.9845
  Prefactor  = 22.4855
  norm       = 0.000100041
  Prefactor  = 8.23057
  Prefactor  = 23.1092
  norm       = 18.8822
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 6.12605
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 49.7972
  Prefactor  = 0.0001
  Prefactor  = 9.38099
  Normalizat = 0.768157
  Prefactor  = 0.999037
 **********
 **   18 **HESSE 
 **********

 FCN=   8155.538     FROM HESSE     STATUS=OK           409 CALLS     3110 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.923        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.4324        17.735        .17241E-03   -1.5242    
   3  norm          11.527        26.454        .11801E-03   -1.5029    
   4  Prefactor     4.4644        10.362        .95263E-03   -1.5285    
   5  Prefactor     .10000E-03    30.847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.7758        9.1794        .15414E-03   -1.5187    
   7  norm          10.265        6.0908        .12506E-03   -1.5067    
   8  Prefactor     .10000E-03    5.7538        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     14.984        7.3479        .10346E-03   -1.4934    
  10  Prefactor     22.486        22.644        .84475E-04   -1.4759    
  11  norm          .10004E-03    1.8012        .27683E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.2306        16.086        .69882E-03   -1.5134    
  13  Prefactor     23.109        31.564        .83335E-04   -1.4746    
  14  norm          18.882        8.9191        .92176E-04   -1.4839    
  15  norm          .10000E-03    9.8244        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    12.918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          6.1261        4.6309        .15495E-03   -1.5213    
  18  Prefactor     .10000E-03    23.074        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    378.84        .42229E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     49.797        41.054        .56829E-04   -1.4295    
  21  Prefactor     .10000E-03    40.239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     9.3810        12.400        .13084E-03   -1.5095    
  23  Normalizat    .76816        .29163        .47585E-03   -1.0126    
  24  Prefactor     .99904        .97426E-01    .15173E-03   -.92762    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12185e-10
Minuit parameter uncertainties:
  1  6.61745e-06
  2  17.7517
  3  26.4812
  4  10.366
  5  3.60158e-05
  6  9.18135
  7  6.09115
  8  2.8912e-07
  9  7.34833
  10  22.6528
  11  0.000540602
  12  16.0946
  13  31.5871
  14  8.91968
  15  2.71846e-06
  16  8.6721e-06
  17  4.63114
  18  1.41444e-05
  19  0.000256958
  20  41.0771
  21  1.50196e-05
  22  12.4033
  23  0.292223
  24  0.0974433
Done.

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

Extracting fit parameters...

4FGL J2313.5+3945
   Spectrum: PowerLaw
406    Prefactor:  8.231e+00  1.609e+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:  9.990e-01  9.744e-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:  7.682e-01  2.922e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/711477/likelihoodResults_430099201_430358401_4FGL_J2313.5+3945_daily_bin736.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) = 8155.43147292
delta logL = 0.106262004

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8155.42130222
delta logL = 0.11643269997

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.9451       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3902       1.0000          .0000       10.000    
     3 'Normalizat'    .74146       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0043       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=   8155.421     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      252 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9437        14.766        .15223E-03   -.26362E-03
   2  Index         3.3904        1.5154        .10652E-01   -.75542E-04
   3  Normalizat    .74152        .27525        .48359E-03   -.37315E-03
   4  Prefactor     1.0043        .96795E-01    .15137E-03   -.80795E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.94366
  Index      = 3.39045
  Normalizat = 0.74152
  Prefactor  = 1.0043
 **********
 **   18 **HESSE 
 **********

 FCN=   8155.421     FROM HESSE     STATUS=OK            25 CALLS      277 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9437        13.112        .60893E-05   -1.5181    
   2  Index         3.3904        1.3482        .42610E-03   -.32775    
   3  Normalizat    .74152        .27556        .19344E-04   -1.0228    
   4  Prefactor     1.0043        .96799E-01    .30273E-04   -.92586    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.53659e-10
Minuit parameter uncertainties:
  1  13.1171
  2  1.36714
  3  0.276081
  4  0.0968158
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/711477': 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) = 8155.42130218
delta logL = 0.116432749229

Extracting fit parameters...

4FGL J2313.5+3945
   Spectrum: PowerLaw
406    Prefactor:  6.944e+00  1.312e+01  1.000e-04  1.000e+04 ( 1.000e-12)
407        Index:  3.390e+00  1.367e+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.004e+00  9.682e-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:  7.415e-01  2.761e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.35
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/711477/cmap_HighResolution_430099201_430358401_4FGL_J2313.5+3945_daily_bin736.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.46e-02', job_status='DONE', photon_flux_upper_limit='1.85e-07', time_completed='2021-09-29 09:34:48.124414', job_id='711477', GAL2='1.00', fit_tolerance='1e-08', EG2='0.74', EG='0.77', time_epoch_completed='1632933288.12', return_code2='0', ts='0.35', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='1.16e-01', ts2='0.61', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='736' AND source_name='4FGL J2313.5+3945' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 09:34:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0304>
Subject: Job 711477: <4FGL_J2313.5+3945_daily_bin736> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2313.5+3945_daily_bin736 348.4 39.7644 430099201 430358401 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 :                                   823.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             353.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   851 sec.
    Turnaround time :                            856 sec.

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

