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


Performing analysis on: 4FGL_J2313.5+3945_daily_bin689
RA = 348.4, Dec = 39.7644
tmin = 417916801, tmax = 418176001
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='711405', job_status='RUN', time_executed='2021-09-29 09:21:32.636439', time_epoch_executed='1632932492.64' WHERE source_name='4FGL J2313.5+3945' and cadence='daily' and bin_id='689'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/711405

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/711405/ft1_4FGL_J2313.5+3945_daily_bin689.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/711405/ft2_4FGL_J2313.5+3945_daily_bin689.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/711405/ft1_4FGL_J2313.5+3945_daily_bin689.fits outfile=/scratch/kocevski/711405/ft1_filteredMKT_4FGL_J2313.5+3945_daily_bin689.fits ra=348.4 dec=39.7644 rad=12.0 tmin=417916801.0 tmax=418176001.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 7.34
user 7.08
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/711405/ft1_filtered_4FGL_J2313.5+3945_daily_bin689.fits evtable="EVENTS" scfile=/scratch/kocevski/711405/ft2_4FGL_J2313.5+3945_daily_bin689.fits sctable="SC_DATA" expcube=/scratch/kocevski/711405/ltcube_417916801_418176001_4FGL_J2313.5+3945_daily_bin689.fits outfile=/scratch/kocevski/711405/expmap_417916801_418176001_4FGL_J2313.5+3945_daily_bin689.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/711405/ltcube_417916801_418176001_4FGL_J2313.5+3945_daily_bin689.fits
.....................!
real 190.89
user 186.25
sys 4.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/711405/ft1_filtered_4FGL_J2313.5+3945_daily_bin689.fits scfile=/scratch/kocevski/711405/ft2_4FGL_J2313.5+3945_daily_bin689.fits outfile=/scratch/kocevski/711405/cmap_417916801_418176001_4FGL_J2313.5+3945_daily_bin689.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=348.4 yref=39.7644 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/711405/ft1_filtered_4FGL_J2313.5+3945_daily_bin689.fits scfile=/scratch/kocevski/711405/ft2_4FGL_J2313.5+3945_daily_bin689.fits outfile=/scratch/kocevski/711405/cmap_HighResolution_417916801_418176001_4FGL_J2313.5+3945_daily_bin689.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=348.4 yref=39.7644 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.2751       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.235       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.4120       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    11.420       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.1162       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.5237       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .85987       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=   5897.715     FROM MIGRAD    STATUS=CONVERGED    529 CALLS     2697 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    30.580       -.35847E-05** at limit **
   2  Prefactor     .10000E-03    14.021       -.50832E-05** at limit **
   3  norm          .10000E-03    27.440       -.10148E-04** at limit **
   4  Prefactor     .10004E-03    4.9364        .14562E-05** at limit **
   5  Prefactor     .10000E-03    36.736        .13981E-04** at limit **
   6  Prefactor     .10000E-03    4.2843        .57473E-07** at limit **
   7  norm          2.2748        3.4526        .42815E-07   -.19237E-03
   8  Prefactor     .10000E-03    16.083        .95601E-05** at limit **
   9  Prefactor     13.235        11.001       -.13082E-05   -.13995E-02
  10  Prefactor     .10000E-03    9.1262        .52364E-06** at limit **
  11  norm          1.4121        1.9194        .86693E-08   -.71121E-03
  12  Prefactor     .10000E-03    5.4824       -.13422E-06** at limit **
  13  Prefactor     .10000E-03    25.700       -.11622E-04** at limit **
  14  norm          .10000E-03    3.7810        .15093E-06** at limit **
  15  norm          11.420        9.7508        .60965E-08    .18853E-04
  16  Prefactor     .10000E-03    14.206       -.23804E-05** at limit **
  17  norm          4.1162        3.2408        .37701E-08   -.46187E-04
  18  Prefactor     .10000E-03    29.017       -.73519E-05** at limit **
  19  Prefactor     .10000E-03    36.663        .13819E-04** at limit **
  20  Prefactor     .10000E-03    61.530       -.17545E-04** at limit **
  21  Prefactor     .10000E-03    36.599        .13661E-04** at limit **
  22  Prefactor     .10000E-03    4.7717        .17867E-06** at limit **
  23  Normalizat    1.5236        .26838        .55474E-06    .17497E-05
  24  Prefactor     .85989        .99423E-01    .12477E-07    .29492E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100044
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.27482
  Prefactor  = 0.0001
  Prefactor  = 13.2349
  Prefactor  = 0.0001
  norm       = 1.41208
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 11.4201
  Prefactor  = 0.0001
  norm       = 4.11619
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.52358
  Prefactor  = 0.859892
 **********
 **   18 **HESSE 
 **********

 FCN=   5897.715     FROM HESSE     STATUS=OK           389 CALLS     3086 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    30.634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    14.045        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    27.657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10004E-03    18.808        .32894E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    36.581        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.3066        .15513E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.2748        3.4267        .16813E-03   -1.5406    
   8  Prefactor     .10000E-03    16.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     13.235        11.266        .55052E-03   -1.4980    
  10  Prefactor     .10000E-03    9.1274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.4121        1.9018        .11792E-03   -1.5470    
  12  Prefactor     .10000E-03    5.4957        .17559E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    25.651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    3.8482        .14580E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          11.420        9.7515        .11855E-03   -1.5032    
  16  Prefactor     .10000E-03    14.281        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.1162        3.2412        .11890E-03   -1.5302    
  18  Prefactor     .10000E-03    29.122        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    36.527        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    61.466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    36.474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.8023        .16376E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.5236        .31214        .34107E-03   -.77118    
  24  Prefactor     .85989        .11653        .16355E-03   -.97557    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.27568e-09
Minuit parameter uncertainties:
  1  3.85048e-07
  2  1.16954e-06
  3  1.93021e-05
  4  0.00181824
  5  1.4832e-06
  6  5.76636e-06
  7  3.42698
  8  5.49437e-07
  9  11.2681
  10  2.09832e-07
  11  1.9019
  12  7.66723e-07
  13  1.13343e-05
  14  2.63511e-07
  15  9.7529
  16  2.67905e-06
  17  3.24132
  18  1.48155e-05
  19  1.22983e-05
  20  3.20938e-05
  21  1.26157e-05
  22  6.64711e-06
  23  0.312532
  24  0.116561
Done.

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

Extracting fit parameters...

4FGL J2313.5+3945
   Spectrum: PowerLaw
406    Prefactor:  1.000e-04  7.667e-07  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.599e-01  1.166e-01  0.000e+00  1.000e+01 ( 1.000e+00)
539        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
540        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
533   Normalization:  1.524e+00  3.125e-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.04e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.21e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/711405/likelihoodResults_417916801_418176001_4FGL_J2313.5+3945_daily_bin689.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) = 5897.71594677
delta logL = -0.000866508342369

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5897.71508089
delta logL = -6.22900188318e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10160E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7409       1.0000          .0000       10.000    
     3 'Normalizat'    1.5235       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85986       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=   5897.715     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      253 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.342        .17765E-01** at limit **
   2  Index         2.3231        8.4930        .50000        .70145E-07
   3  Normalizat    1.5236        .13598E-01    .34107E-03   -.32866E-04
   4  Prefactor     .85989        .51083E-02    .16355E-03   -.69027E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.32305
  Normalizat = 1.52358
  Prefactor  = 0.859892
 **********
 **   18 **HESSE 
 **********

 FCN=   5897.715     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      282 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    208.11        .19021E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3231        6.0390        .50000       -.56497    
   3  Normalizat    1.5236        .42810E-01    .13643E-04   -.77118    
   4  Prefactor     .85989        .16083E-01    .32709E-04   -.97557    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.62718e-10
Minuit parameter uncertainties:
  1  1.65347e-06
  2  775.063
  3  0.0428115
  4  0.0160832
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/711405': 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) = 5897.71507889
delta logL = 1.37834103953e-06

Extracting fit parameters...

4FGL J2313.5+3945
   Spectrum: PowerLaw
406    Prefactor:  1.000e-04  1.653e-06  1.000e-04  1.000e+04 ( 1.000e-12)
407        Index:  2.323e+00  7.751e+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.599e-01  1.608e-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.524e+00  4.281e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/711405/cmap_HighResolution_417916801_418176001_4FGL_J2313.5+3945_daily_bin689.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.21e-03', job_status='DONE', photon_flux_upper_limit='1.04e-07', time_completed='2021-09-29 09:33:07.776595', job_id='711405', GAL2='0.86', fit_tolerance='1e-08', EG2='1.52', EG='1.52', time_epoch_completed='1632933187.78', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='1.38e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='689' AND source_name='4FGL J2313.5+3945' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 09:33:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0232>
Subject: Job 711405: <4FGL_J2313.5+3945_daily_bin689> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2313.5+3945_daily_bin689 348.4 39.7644 417916801 418176001 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 :                                   692.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             316.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   758 sec.
    Turnaround time :                            760 sec.

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

