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


Performing analysis on: 4FGL_J2313.5+3945_daily_bin731
RA = 348.4, Dec = 39.7644
tmin = 428803201, tmax = 429062401
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='711470', job_status='RUN', time_executed='2021-09-29 09:23:51.494927', time_epoch_executed='1632932631.49' WHERE source_name='4FGL J2313.5+3945' and cadence='daily' and bin_id='731'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/711470

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/711470/ft1_4FGL_J2313.5+3945_daily_bin731.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/711470/ft2_4FGL_J2313.5+3945_daily_bin731.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/711470/ft1_4FGL_J2313.5+3945_daily_bin731.fits outfile=/scratch/kocevski/711470/ft1_filteredMKT_4FGL_J2313.5+3945_daily_bin731.fits ra=348.4 dec=39.7644 rad=12.0 tmin=428803201.0 tmax=429062401.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 6.51
user 6.20
sys 0.27

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/711470/ft1_filtered_4FGL_J2313.5+3945_daily_bin731.fits evtable="EVENTS" scfile=/scratch/kocevski/711470/ft2_4FGL_J2313.5+3945_daily_bin731.fits sctable="SC_DATA" expcube=/scratch/kocevski/711470/ltcube_428803201_429062401_4FGL_J2313.5+3945_daily_bin731.fits outfile=/scratch/kocevski/711470/expmap_428803201_429062401_4FGL_J2313.5+3945_daily_bin731.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/711470/ltcube_428803201_429062401_4FGL_J2313.5+3945_daily_bin731.fits
.....................!
real 196.27
user 191.37
sys 4.56

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/711470/ft1_filtered_4FGL_J2313.5+3945_daily_bin731.fits scfile=/scratch/kocevski/711470/ft2_4FGL_J2313.5+3945_daily_bin731.fits outfile=/scratch/kocevski/711470/cmap_428803201_429062401_4FGL_J2313.5+3945_daily_bin731.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/711470/ft1_filtered_4FGL_J2313.5+3945_daily_bin731.fits scfile=/scratch/kocevski/711470/ft2_4FGL_J2313.5+3945_daily_bin731.fits outfile=/scratch/kocevski/711470/cmap_HighResolution_428803201_429062401_4FGL_J2313.5+3945_daily_bin731.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    27.973       1.0000         .10000E-03   10000.    
     3 'norm      '    23.103       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .14016E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    20.140       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.5896       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    16.227       1.0000         .10000E-03   10000.    
    15 'norm      '    11.935       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.4229       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    18.622       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2592       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .82648       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=   4908.965     FROM MIGRAD    STATUS=CONVERGED    537 CALLS     2700 TOTAL
                     EDM=   .93E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    60.107        .46644E-05** at limit **
   2  Prefactor     27.985        34.291        .59555E-05   -.11404E-04
   3  norm          23.104        23.316        .51130E-06    .30810E-05
   4  Prefactor     .10000E-03    9.4075       -.17243E-05** at limit **
   5  Prefactor     .10000E-03    146.12       -.13879E-05** at limit **
   6  Prefactor     .10000E-03    18.425        .11522E-04** at limit **
   7  norm          .10008E-03    5.3469       -.32823E-05** at limit **
   8  Prefactor     .10000E-03    10.470       -.76080E-05** at limit **
   9  Prefactor     20.136        15.436        .14934E-05    .54671E-03
  10  Prefactor     .10000E-03    10.010        .74237E-05** at limit **
  11  norm          .10000E-03    .39730        .10266E-07** at limit **
  12  Prefactor     6.5969        18.772        .81168E-06   -.37048E-04
  13  Prefactor     .10000E-03    12.831        .40284E-05** at limit **
  14  norm          16.227        9.7828       -.11291E-06   -.12867E-03
  15  norm          11.934        15.225        .17056E-06   -.15964E-04
  16  Prefactor     .10000E-03    27.725        .53354E-05** at limit **
  17  norm          3.4227        3.2738        .70481E-07    .24081E-05
  18  Prefactor     .10000E-03    12.345        .84780E-06** at limit **
  19  Prefactor     .10000E-03    29.208       -.10171E-04** at limit **
  20  Prefactor     18.664        53.585        .55217E-04   -.95430E-05
  21  Prefactor     .10000E-03    17.464       -.28262E-05** at limit **
  22  Prefactor     .10000E-03    3.0837        .12237E-07** at limit **
  23  Normalizat    1.2585        .31995       -.79079E-05    .16169E-03
  24  Prefactor     .82669        .10620        .11708E-05   -.13387E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 27.9852
  norm       = 23.1039
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100082
  Prefactor  = 0.0001
  Prefactor  = 20.136
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.59688
  Prefactor  = 0.0001
  norm       = 16.2274
  norm       = 11.9337
  Prefactor  = 0.0001
  norm       = 3.42273
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.6637
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.25852
  Prefactor  = 0.826688
 **********
 **   18 **HESSE 
 **********

 FCN=   4908.965     FROM HESSE     STATUS=OK           391 CALLS     3091 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    60.231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     27.985        34.385        .75748E-04   -1.4649    
   3  norm          23.104        23.381        .83336E-04   -1.4746    
   4  Prefactor     .10000E-03    9.5411        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    146.25        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    18.916        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10008E-03    16.232        .29380E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    10.476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     20.136        14.643        .89248E-04   -1.4810    
  10  Prefactor     .10000E-03    10.016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .39767        .43124E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.5969        18.844        .15633E-03   -1.5194    
  13  Prefactor     .10000E-03    12.834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          16.227        9.7966        .99428E-04   -1.4902    
  15  norm          11.934        15.223        .11596E-03   -1.5017    
  16  Prefactor     .10000E-03    27.809        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.4227        3.2714        .11918E-03   -1.5338    
  18  Prefactor     .10000E-03    12.350        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    29.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     18.664        53.641        .92812E-04   -1.4844    
  21  Prefactor     .10000E-03    17.465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.0875        .12014E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2585        .37493        .37624E-03   -.84813    
  24  Prefactor     .82669        .12486        .15954E-03   -.98752    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.7642e-09
Minuit parameter uncertainties:
  1  0.000155928
  2  34.409
  3  23.3907
  4  2.46227e-05
  5  0.00016106
  6  0.000107778
  7  0.00230288
  8  3.1036e-06
  9  14.6461
  10  2.27342e-06
  11  3.46677e-07
  12  18.8611
  13  1.54591e-06
  14  9.79753
  15  15.2277
  16  6.55791e-05
  17  3.27158
  18  2.0172e-05
  19  1.14457e-05
  20  53.7802
  21  2.55103e-07
  22  2.03412e-06
  23  0.375741
  24  0.1249
Done.

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

Extracting fit parameters...

4FGL J2313.5+3945
   Spectrum: PowerLaw
406    Prefactor:  6.597e+00  1.886e+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:  8.267e-01  1.249e-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.259e+00  3.757e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/711470/likelihoodResults_428803201_429062401_4FGL_J2313.5+3945_daily_bin731.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) = 4907.92011366
delta logL = 1.04483032653

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4907.88218861
delta logL = 1.08275538265

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15730       1.0000         .10000E-03   10000.    
     2 'Index     '    6.7869       1.0000          .0000       10.000    
     3 'Normalizat'    1.1484       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85239       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=   4907.882     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      290 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .15478        2.3265        .48454E-02    .11221E-02
   2  Index         6.8001        3.8908        .18212        .10139E-03
   3  Normalizat    1.1488        .86003E-01    .88220E-01   -.56487E-04
   4  Prefactor     .85228        .30414E-01    .44395E-01   -.51935E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.154783
  Index      = 6.80005
  Normalizat = 1.14885
  Prefactor  = 0.852276
 **********
 **   18 **HESSE 
 **********

 FCN=   4907.882     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      323 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .15478        5.2596        .22133E-03   -1.5629    
   2  Index         6.8001        8.3435        .71565E-02    .36828    
   3  Normalizat    1.1488        .28434        .39069E-03   -.88199    
   4  Prefactor     .85228        .99128E-01    .15729E-03   -.97829    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.39955e-08
Minuit parameter uncertainties:
  1  1.80413
  2  8.0512
  3  0.284723
  4  0.0991487
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/711470': 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) = 4907.88217745
delta logL = 1.08276653863

Extracting fit parameters...

4FGL J2313.5+3945
   Spectrum: PowerLaw
406    Prefactor:  1.548e-01  1.804e+00  1.000e-04  1.000e+04 ( 1.000e-12)
407        Index:  6.800e+00  8.051e+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:  8.523e-01  9.915e-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.149e+00  2.847e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.46
Ra Dec: 348.400 39.764
Photon Index (Free Index): 6.80 +/- 8.05
Photon Flux (Free Index): 1.25e-07 +/- 1.03e-07
Energy Flux (Free Index): 1.51e-05 +/- 1.46e-05

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/711470/cmap_HighResolution_428803201_429062401_4FGL_J2313.5+3945_daily_bin731.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.72e-02', comment='SUCCESS', energy_flux2='1.51e-05', dlogl='1.08e+00', photon_flux2='1.25e-07', job_status='DONE', time_completed='2021-09-29 09:34:17.614592', photon_index_error2='8.05', photon_index2='6.80', ts='0.15', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='2.18e-07', energy_flux_error2='1.46e-05', EG='1.26', time_epoch_completed='1632933257.61', return_code='0', job_id='711470', GAL2='0.85', EG2='1.15', return_code2='102', photon_flux_error2='1.03e-07', ts2='2.46', photon_index='2.76' WHERE bin_id='731' AND source_name='4FGL J2313.5+3945' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 09:34:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 711470: <4FGL_J2313.5+3945_daily_bin731> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2313.5+3945_daily_bin731 348.4 39.7644 428803201 429062401 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 :                                   625.42 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   821 sec.
    Turnaround time :                            824 sec.

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

