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


Performing analysis on: 4FGL_J2313.5+3945_daily_bin244
RA = 348.4, Dec = 39.7644
tmin = 302572801, tmax = 302832001
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='708510', job_status='RUN', time_executed='2021-09-29 09:11:49.235826', time_epoch_executed='1632931909.24' WHERE source_name='4FGL J2313.5+3945' and cadence='daily' and bin_id='244'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/708510

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/708510/ft1_4FGL_J2313.5+3945_daily_bin244.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/708510/ft2_4FGL_J2313.5+3945_daily_bin244.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/708510/ft1_4FGL_J2313.5+3945_daily_bin244.fits outfile=/scratch/kocevski/708510/ft1_filteredMKT_4FGL_J2313.5+3945_daily_bin244.fits ra=348.4 dec=39.7644 rad=12.0 tmin=302572801.0 tmax=302832001.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 3.75
user 3.25
sys 0.48

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/708510/ft1_filtered_4FGL_J2313.5+3945_daily_bin244.fits evtable="EVENTS" scfile=/scratch/kocevski/708510/ft2_4FGL_J2313.5+3945_daily_bin244.fits sctable="SC_DATA" expcube=/scratch/kocevski/708510/ltcube_302572801_302832001_4FGL_J2313.5+3945_daily_bin244.fits outfile=/scratch/kocevski/708510/expmap_302572801_302832001_4FGL_J2313.5+3945_daily_bin244.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/708510/ltcube_302572801_302832001_4FGL_J2313.5+3945_daily_bin244.fits
.....................!
real 191.05
user 185.05
sys 5.61

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/708510/ft1_filtered_4FGL_J2313.5+3945_daily_bin244.fits scfile=/scratch/kocevski/708510/ft2_4FGL_J2313.5+3945_daily_bin244.fits outfile=/scratch/kocevski/708510/cmap_302572801_302832001_4FGL_J2313.5+3945_daily_bin244.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/708510/ft1_filtered_4FGL_J2313.5+3945_daily_bin244.fits scfile=/scratch/kocevski/708510/ft2_4FGL_J2313.5+3945_daily_bin244.fits outfile=/scratch/kocevski/708510/cmap_HighResolution_302572801_302832001_4FGL_J2313.5+3945_daily_bin244.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.56
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.4469       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10356E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10779E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.1005       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .89802       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.2952       1.0000         .10000E-03   10000.    
    11 'norm      '    7.3596       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10885       1.0000         .10000E-03   10000.    
    15 'norm      '    .75319       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.5289       1.0000         .10000E-03   10000.    
    17 'norm      '    3.7182       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    39.191       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10694E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0417       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .87468       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=   9456.186     FROM MIGRAD    STATUS=CONVERGED    550 CALLS     2763 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.4372        41.137       -.15588E-04   -.94622E-06
   2  Prefactor     .10000E-03    19.568       -.11449E-06** at limit **
   3  norm          .10000E-03    19.208        .24157E-05** at limit **
   4  Prefactor     .10000E-03    3.7483        .12404E-07** at limit **
   5  Prefactor     .10004E-03    101.63       -.67529E-04** at limit **
   6  Prefactor     .10000E-03    4.2643        .10846E-06** at limit **
   7  norm          2.1003        2.5564       -.31045E-06   -.55160E-03
   8  Prefactor     .89623        7.0764       -.11646E-05   -.17565E-03
   9  Prefactor     .10000E-03    2.7847       -.30415E-07** at limit **
  10  Prefactor     8.2944        14.671       -.44566E-07   -.18444E-04
  11  norm          7.3596        1.8466        .10401E-06   -.28651E-03
  12  Prefactor     .10000E-03    3.1790       -.99162E-08** at limit **
  13  Prefactor     .10000E-03    8.0594        .30928E-06** at limit **
  14  norm          .12798        3.2775        .29194E-05   -.83412E-04
  15  norm          .77200        5.7498       -.49599E-06   -.28797E-03
  16  Prefactor     1.5034        25.693       -.30499E-04   -.37779E-03
  17  norm          3.7183        2.5534       -.11326E-06   -.19811E-03
  18  Prefactor     .10000E-03    12.644       -.15370E-05** at limit **
  19  Prefactor     .10004E-03    65.339        .65282E-04** at limit **
  20  Prefactor     .10000E-03    42.846       -.15360E-04** at limit **
  21  Prefactor     39.190        50.331       -.14464E-05   -.89044E-05
  22  Prefactor     .10000E-03    6.0314       -.13402E-06** at limit **
  23  Normalizat    1.0416        .20527        .46776E-05   -.99993E-04
  24  Prefactor     .87471        .74888E-01   -.67610E-06    .37995E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.43718
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010004
  Prefactor  = 0.0001
  norm       = 2.10025
  Prefactor  = 0.896235
  Prefactor  = 0.0001
  Prefactor  = 8.29435
  norm       = 7.35962
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.127977
  norm       = 0.771997
  Prefactor  = 1.50336
  norm       = 3.71829
  Prefactor  = 0.0001
  Prefactor  = 0.000100035
  Prefactor  = 0.000100002
  Prefactor  = 39.1895
  Prefactor  = 0.0001
  Normalizat = 1.04162
  Prefactor  = 0.874709
 **********
 **   18 **HESSE 
 **********

 FCN=   9456.186     FROM HESSE     STATUS=OK           403 CALLS     3166 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.4372        41.275        .13039E-03   -1.5093    
   2  Prefactor     .10000E-03    19.648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    19.498        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.7946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10004E-03    100.84        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.3353        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.1003        2.5398        .16592E-03   -1.5418    
   8  Prefactor     .89623        32.098        .50273E-02   -1.5519    
   9  Prefactor     .10000E-03    2.9053        .31682E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.2944        14.665        .13919E-03   -1.5132    
  11  norm          7.3596        1.8471        .63010E-04   -1.5165    
  12  Prefactor     .10000E-03    3.1911        .16929E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    8.0797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .12798        21.230        .30874E-02   -1.5636    
  15  norm          .77200        38.149        .44709E-02   -1.5532    
  16  Prefactor     1.5034        25.987        .34524E-03   -1.5463    
  17  norm          3.7183        2.5455        .12386E-03   -1.5322    
  18  Prefactor     .10000E-03    12.698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10004E-03    64.343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    43.076        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     39.190        50.222        .64025E-04   -1.4455    
  22  Prefactor     .10000E-03    6.1212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0416        .23289        .36759E-03   -.91649    
  24  Prefactor     .87471        .86055E-01    .15049E-03   -.97031    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01243e-07
Minuit parameter uncertainties:
  1  39.5184
  2  0.000162086
  3  0.000115149
  4  1.00564e-05
  5  0.00402367
  6  6.83223e-06
  7  2.53998
  8  10.7327
  9  2.22868e-06
  10  14.6712
  11  1.84712
  12  5.02075e-06
  13  2.43732e-05
  14  3.29652
  15  10.8604
  16  12.5068
  17  2.54559
  18  2.84517e-05
  19  0.00301718
  20  0.000587993
  21  50.2761
  22  9.83129e-06
  23  0.233119
  24  0.0860685
Done.

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

Extracting fit parameters...

4FGL J2313.5+3945
   Spectrum: PowerLaw
406    Prefactor:  1.000e-04  5.021e-06  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.747e-01  8.607e-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.042e+00  2.331e-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: 6.20e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.90e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/708510/likelihoodResults_302572801_302832001_4FGL_J2313.5+3945_daily_bin244.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) = 9456.18743969
delta logL = -0.0014929989029

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9456.18594665
delta logL = 3.81551217288e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7434       1.0000          .0000       10.000    
     3 'Normalizat'    1.0416       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87472       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=   9456.186     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      265 TOTAL
                     EDM=   .94E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    31.869        .17081E-01** at limit **
   2  Index         2.1531        8.8386        .50000       -.10718E-06
   3  Normalizat    1.0416        .15081E-01    .36759E-03   -.21340E-04
   4  Prefactor     .87471        .57500E-02    .15049E-03   -.15864E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.15305
  Normalizat = 1.04163
  Prefactor  = 0.874708
 **********
 **   18 **HESSE 
 **********

 FCN=   9456.186     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      294 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    316.50        .18814E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1531        8.7744        .50000       -.60576    
   3  Normalizat    1.0416        .52161E-01    .14703E-04   -.91649    
   4  Prefactor     .87471        .19888E-01    .60195E-05   -.97031    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.34862e-10
Minuit parameter uncertainties:
  1  4.69864e-05
  2  945.19
  3  0.0521641
  4  0.0198886
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/708510': 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) = 9456.18594364
delta logL = 3.04581953969e-06

Extracting fit parameters...

4FGL J2313.5+3945
   Spectrum: PowerLaw
406    Prefactor:  1.000e-04  4.699e-05  1.000e-04  1.000e+04 ( 1.000e-12)
407        Index:  2.153e+00  9.452e+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.747e-01  1.989e-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.042e+00  5.216e-02  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/708510/cmap_HighResolution_302572801_302832001_4FGL_J2313.5+3945_daily_bin244.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.90e-03', job_status='DONE', photon_flux_upper_limit='6.20e-08', time_completed='2021-09-29 09:26:57.848214', job_id='708510', GAL2='0.87', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1632932817.85', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='3.05e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='244' AND source_name='4FGL J2313.5+3945' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 09:26:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 708510: <4FGL_J2313.5+3945_daily_bin244> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2313.5+3945_daily_bin244 348.4 39.7644 302572801 302832001 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 :                                   903.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             337.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   983 sec.
    Turnaround time :                            984 sec.

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

