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


Performing analysis on: 4FGL_J2313.5+3945_daily_bin553
RA = 348.4, Dec = 39.7644
tmin = 382665601, tmax = 382924801
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='710035', job_status='RUN', time_executed='2021-09-29 09:16:57.118652', time_epoch_executed='1632932217.12' WHERE source_name='4FGL J2313.5+3945' and cadence='daily' and bin_id='553'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/710035

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/710035/ft1_4FGL_J2313.5+3945_daily_bin553.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/710035/ft2_4FGL_J2313.5+3945_daily_bin553.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/710035/ft1_4FGL_J2313.5+3945_daily_bin553.fits outfile=/scratch/kocevski/710035/ft1_filteredMKT_4FGL_J2313.5+3945_daily_bin553.fits ra=348.4 dec=39.7644 rad=12.0 tmin=382665601.0 tmax=382924801.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.60
user 2.41
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/710035/ft1_filtered_4FGL_J2313.5+3945_daily_bin553.fits" evtable="EVENTS" scfile=/scratch/kocevski/710035/ft2_4FGL_J2313.5+3945_daily_bin553.fits sctable="SC_DATA" outfile=/scratch/kocevski/710035/ltcube_382665601_382924801_4FGL_J2313.5+3945_daily_bin553.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/710035/ft2_4FGL_J2313.5+3945_daily_bin553.fits
.....................!
real 8.85
user 8.56
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/710035/ft1_filtered_4FGL_J2313.5+3945_daily_bin553.fits evtable="EVENTS" scfile=/scratch/kocevski/710035/ft2_4FGL_J2313.5+3945_daily_bin553.fits sctable="SC_DATA" expcube=/scratch/kocevski/710035/ltcube_382665601_382924801_4FGL_J2313.5+3945_daily_bin553.fits outfile=/scratch/kocevski/710035/expmap_382665601_382924801_4FGL_J2313.5+3945_daily_bin553.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/710035/ltcube_382665601_382924801_4FGL_J2313.5+3945_daily_bin553.fits
.....................!
real 145.37
user 141.70
sys 3.44

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/710035/ft1_filtered_4FGL_J2313.5+3945_daily_bin553.fits scfile=/scratch/kocevski/710035/ft2_4FGL_J2313.5+3945_daily_bin553.fits outfile=/scratch/kocevski/710035/cmap_382665601_382924801_4FGL_J2313.5+3945_daily_bin553.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.45
user 0.30
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/710035/ft1_filtered_4FGL_J2313.5+3945_daily_bin553.fits scfile=/scratch/kocevski/710035/ft2_4FGL_J2313.5+3945_daily_bin553.fits outfile=/scratch/kocevski/710035/cmap_HighResolution_382665601_382924801_4FGL_J2313.5+3945_daily_bin553.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.45
user 0.30
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12068E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10083E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    90.675       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10054E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.8013       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.5745       1.0000         .10000E-03   10000.    
    11 'norm      '    .16175       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .65551E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    25.291       1.0000         .10000E-03   10000.    
    14 'norm      '    10.671       1.0000         .10000E-03   10000.    
    15 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.294       1.0000         .10000E-03   10000.    
    17 'norm      '    2.3874       1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.414       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    34.823       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.4517       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3070       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .88698       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=   10433.18     FROM MIGRAD    STATUS=CONVERGED    108 CALLS     2325 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10008E-03    95.707       -.58194E-04** at limit **
   2  Prefactor     .10170E-03    33.637       -.30024E-04** at limit **
   3  norm          .10038E-03    21.518        .32627E-04** at limit **
   4  Prefactor     .10000E-03    1.9333        .24855E-07** at limit **
   5  Prefactor     90.690        4.4644        .27218E-05   -.71544E-02
   6  Prefactor     .10000E-03    4.7077       -.15414E-06** at limit **
   7  norm          .10000E-03    3.0761       -.11943E-05** at limit **
   8  Prefactor     .10000E-03    6.3706       -.12667E-06** at limit **
   9  Prefactor     1.8025        6.0750       -.36404E-05   -.20704E-02
  10  Prefactor     1.5812        1.2859       -.23591E-05   -.34635E-04
  11  norm          .16184        1.3126        .20988E-05    .32750E-03
  12  Prefactor     .10629E-03    41.527        .29556E-04** at limit **
  13  Prefactor     25.291        1.0575        .36283E-06   -.45983E-03
  14  norm          10.670        5.2594       -.74556E-05   -.74948E-02
  15  norm          .10000E-03    6.6039        .13698E-05** at limit **
  16  Prefactor     13.284        1.4562       -.90819E-06   -.10817E-02
  17  norm          2.3879        1.7795       -.22283E-06    .67019E-04
  18  Prefactor     14.412        1.0195       -.29846E-06    .14196E-03
  19  Prefactor     .10765E-03    68.683        .35744E-04** at limit **
  20  Prefactor     34.890        15.484        .14885E-04   -.12364E-01
  21  Prefactor     .10011E-03    20.523       -.21835E-04** at limit **
  22  Prefactor     4.4565        5.4253       -.23761E-05    .33827E-02
  23  Normalizat    1.3073        .24330       -.35106E-06    .90549E-04
  24  Prefactor     .88687        .85769E-01    .16120E-05    .23034E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010008
  Prefactor  = 0.000101698
  norm       = 0.000100379
  Prefactor  = 0.0001
  Prefactor  = 90.6902
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.80246
  Prefactor  = 1.58117
  norm       = 0.161845
  Prefactor  = 0.000106291
  Prefactor  = 25.2907
  norm       = 10.6705
  norm       = 0.0001
  Prefactor  = 13.2838
  norm       = 2.38785
  Prefactor  = 14.4122
  Prefactor  = 0.000107654
  Prefactor  = 34.8899
  Prefactor  = 0.000100107
  Prefactor  = 4.4565
  Normalizat = 1.30734
  Prefactor  = 0.886869
 **********
 **   18 **HESSE 
 **********

 FCN=   10433.18     FROM HESSE     STATUS=OK           451 CALLS     2776 TOTAL
                     EDM=   .19E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10008E-03    151.53        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10170E-03    36.418        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10038E-03    22.745        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.9304        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     90.690        94.843        .10550E-02   -1.3800    
   6  Prefactor     .10000E-03    4.6532        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.9844        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.3691        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.8025        7.0554        .77866E-02   -1.5439    
  10  Prefactor     1.5812        72.351        .84668E-02   -1.5456    
  11  norm          .16184        1.2940        .98016E-02   -1.5628    
  12  Prefactor     .10629E-03    6.0788        .94021E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     25.291        33.674        .19914E-02   -1.4702    
  14  norm          10.670        6.6881        .30662E-02   -1.5055    
  15  norm          .10000E-03    6.5131        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     13.284        23.959        .27464E-02   -1.4979    
  17  norm          2.3879        1.7840        .66271E-02   -1.5399    
  18  Prefactor     14.412        13.544        .26375E-02   -1.4949    
  19  Prefactor     .10765E-03    112.51        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     34.890        49.758        .16977E-02   -1.4526    
  21  Prefactor     .10011E-03    21.257        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.4565        7.1298        .47712E-02   -1.5286    
  23  Normalizat    1.3073        .22036        .85712E-01   -.83347    
  24  Prefactor     .88687        .74332E-01    .44839E-01   -.96601    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.91342e-06
Minuit parameter uncertainties:
  1  0.00696822
  2  0.0157365
  3  0.00587699
  4  2.89602e-05
  5  95.0022
  6  1.337e-05
  7  2.54522e-05
  8  5.21571e-05
  9  7.0587
  10  21.4184
  11  0.915005
  12  0.0123696
  13  33.6996
  14  6.68861
  15  2.34381e-05
  16  23.9763
  17  1.78408
  18  13.5467
  19  0.0588
  20  49.8177
  21  0.00301866
  22  7.13113
  23  0.220514
  24  0.0743401
Done.

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

Extracting fit parameters...

4FGL J2313.5+3945
   Spectrum: PowerLaw
406    Prefactor:  1.063e-04  1.237e-02  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.869e-01  7.434e-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.307e+00  2.205e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/710035/likelihoodResults_382665601_382924801_4FGL_J2313.5+3945_daily_bin553.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): 102
logL (Free Index) = 10433.1759647
delta logL = -9.13870444492e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10433.1759646
delta logL = -9.12876184884e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96221E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7581       1.0000          .0000       10.000    
     3 'Normalizat'    1.3072       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88689       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=   10433.18     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      223 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .65041        .90726E-01** at limit **
   2  Index         2.7182        7.5068        .50000        .57273E-05
   3  Normalizat    1.3073        .18341E-02    .85712E-01   -.32739E-03
   4  Prefactor     .88687        .65474E-03    .44838E-01   -.56772E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.71823
  Normalizat = 1.30734
  Prefactor  = 0.886869
 **********
 **   18 **HESSE 
 **********

 FCN=   10433.18     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      258 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    137.06        .50091E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7182        7.5234        .50000       -.47389    
   3  Normalizat    1.3073        .91258E-02    .37951E-03   -.83347    
   4  Prefactor     .88687        .32632E-02    .16003E-03   -.96601    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.99189e-07
Minuit parameter uncertainties:
  1  0.000463489
  2  349.922
  3  0.00912578
  4  0.00326316
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/710035': 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): 102
logL (Free Index) = 10433.1758732
delta logL = 1.17233867059e-07

Extracting fit parameters...

4FGL J2313.5+3945
   Spectrum: PowerLaw
406    Prefactor:  1.000e-04  4.635e-04  1.000e-04  1.000e+04 ( 1.000e-12)
407        Index:  2.718e+00  3.499e+02  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.869e-01  3.263e-03  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.307e+00  9.126e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/710035/cmap_HighResolution_382665601_382924801_4FGL_J2313.5+3945_daily_bin553.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.41e-03', job_status='DONE', photon_flux_upper_limit='1.06e-07', time_completed='2021-09-29 09:28:10.285844', job_id='710035', GAL2='0.89', fit_tolerance='1e-08', EG2='1.31', EG='1.31', time_epoch_completed='1632932890.29', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='1.17e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='553' AND source_name='4FGL J2313.5+3945' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 09:28:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 710035: <4FGL_J2313.5+3945_daily_bin553> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2313.5+3945_daily_bin553 348.4 39.7644 382665601 382924801 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 :                                   670.43 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             320.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   757 sec.
    Turnaround time :                            759 sec.

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

