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


Performing analysis on: 4FGL_J2313.5+3945_daily_bin686
RA = 348.4, Dec = 39.7644
tmin = 417139201, tmax = 417398401
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='711400', job_status='RUN', time_executed='2021-09-29 09:21:05.071496', time_epoch_executed='1632932465.07' WHERE source_name='4FGL J2313.5+3945' and cadence='daily' and bin_id='686'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/711400

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/711400/ft1_4FGL_J2313.5+3945_daily_bin686.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/711400/ft2_4FGL_J2313.5+3945_daily_bin686.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/711400/ft1_4FGL_J2313.5+3945_daily_bin686.fits outfile=/scratch/kocevski/711400/ft1_filteredMKT_4FGL_J2313.5+3945_daily_bin686.fits ra=348.4 dec=39.7644 rad=12.0 tmin=417139201.0 tmax=417398401.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 5.52
user 5.23
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/711400/ft2_4FGL_J2313.5+3945_daily_bin686.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/711400/ft1_filteredMKT_4FGL_J2313.5+3945_daily_bin686.fits evtable="EVENTS" outfile="/scratch/kocevski/711400/ft1_filtered_4FGL_J2313.5+3945_daily_bin686.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/711400/ft1_filtered_4FGL_J2313.5+3945_daily_bin686.fits" evtable="EVENTS" scfile=/scratch/kocevski/711400/ft2_4FGL_J2313.5+3945_daily_bin686.fits sctable="SC_DATA" outfile=/scratch/kocevski/711400/ltcube_417139201_417398401_4FGL_J2313.5+3945_daily_bin686.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/711400/ft2_4FGL_J2313.5+3945_daily_bin686.fits
.....................!
real 12.31
user 11.94
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/711400/ft1_filtered_4FGL_J2313.5+3945_daily_bin686.fits evtable="EVENTS" scfile=/scratch/kocevski/711400/ft2_4FGL_J2313.5+3945_daily_bin686.fits sctable="SC_DATA" expcube=/scratch/kocevski/711400/ltcube_417139201_417398401_4FGL_J2313.5+3945_daily_bin686.fits outfile=/scratch/kocevski/711400/expmap_417139201_417398401_4FGL_J2313.5+3945_daily_bin686.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/711400/ltcube_417139201_417398401_4FGL_J2313.5+3945_daily_bin686.fits
.....................!
real 190.33
user 184.98
sys 4.99

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/711400/ft1_filtered_4FGL_J2313.5+3945_daily_bin686.fits scfile=/scratch/kocevski/711400/ft2_4FGL_J2313.5+3945_daily_bin686.fits outfile=/scratch/kocevski/711400/cmap_417139201_417398401_4FGL_J2313.5+3945_daily_bin686.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/711400/ft1_filtered_4FGL_J2313.5+3945_daily_bin686.fits scfile=/scratch/kocevski/711400/ft2_4FGL_J2313.5+3945_daily_bin686.fits outfile=/scratch/kocevski/711400/cmap_HighResolution_417139201_417398401_4FGL_J2313.5+3945_daily_bin686.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.1251       1.0000         .10000E-03   10000.    
     3 'norm      '    .12723E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10191E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10264E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.2260       1.0000         .10000E-03   10000.    
     7 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.6997       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.5456       1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.442       1.0000         .10000E-03   10000.    
    13 'Prefactor '    59.667       1.0000         .10000E-03   10000.    
    14 'norm      '    1.8063       1.0000         .10000E-03   10000.    
    15 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    17.265       1.0000         .10000E-03   10000.    
    17 'norm      '    .10063E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    37.647       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    58.566       1.0000         .10000E-03   10000.    
    21 'Prefactor '    62.080       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .13806E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .35946       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .99611       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=   6013.544     FROM MIGRAD    STATUS=CONVERGED    556 CALLS     2746 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    30.959        .47616E-06** at limit **
   2  Prefactor     1.2290        171.96        .77514E-06   -.12412E-04
   3  norm          .10000E-03    28.421        .28139E-06** at limit **
   4  Prefactor     .10000E-03    6.8950       -.52604E-07** at limit **
   5  Prefactor     .10000E-03    79.591       -.42788E-06** at limit **
   6  Prefactor     1.2190        9.5235        .42344E-05   -.12206E-03
   7  norm          .10000E-03    1.4036       -.15816E-07** at limit **
   8  Prefactor     .10000E-03    11.292        .24696E-07** at limit **
   9  Prefactor     6.6937        9.7891       -.16600E-05   -.82637E-04
  10  Prefactor     .10000E-03    16.759       -.21658E-07** at limit **
  11  norm          1.5450        1.6192       -.25098E-06   -.20987E-03
  12  Prefactor     12.412        19.320       -.14820E-05   -.56930E-04
  13  Prefactor     59.646        45.532       -.68426E-06   -.28197E-04
  14  norm          1.8030        6.2352       -.81276E-07   -.53671E-05
  15  norm          .10000E-03    10.827       -.29225E-07** at limit **
  16  Prefactor     17.252        32.641       -.17959E-05   -.63833E-04
  17  norm          .10000E-03    1.5243        .47379E-07** at limit **
  18  Prefactor     37.635        41.218       -.82231E-06   -.30987E-04
  19  Prefactor     .10000E-03    26.288        .50789E-08** at limit **
  20  Prefactor     58.329        91.754       -.28453E-05    .10180E-03
  21  Prefactor     62.001        80.290       -.18766E-05    .44760E-04
  22  Prefactor     .10000E-03    10.528        .41699E-06** at limit **
  23  Normalizat    .36067        .31423        .17561E-04   -.93988E-06
  24  Prefactor     .99577        .10289       -.32861E-05   -.16378E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.22899
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.21903
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.69371
  Prefactor  = 0.0001
  norm       = 1.54497
  Prefactor  = 12.4119
  Prefactor  = 59.6458
  norm       = 1.80304
  norm       = 0.0001
  Prefactor  = 17.2517
  norm       = 0.0001
  Prefactor  = 37.6349
  Prefactor  = 0.0001
  Prefactor  = 58.3292
  Prefactor  = 62.0009
  Prefactor  = 0.0001
  Normalizat = 0.360666
  Prefactor  = 0.995774
 **********
 **   18 **HESSE 
 **********

 FCN=   6013.544     FROM HESSE     STATUS=OK           397 CALLS     3143 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    30.956        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.2290        180.90        .44169E-02   -1.5486    
   3  norm          .10000E-03    28.507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.9187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    79.643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.2190        9.5842        .20334E-02   -1.5487    
   7  norm          .10000E-03    1.4125        .89677E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    11.302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.6937        9.8590        .15502E-03   -1.5190    
  10  Prefactor     .10000E-03    16.778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.5450        1.6010        .96741E-04   -1.5459    
  12  Prefactor     12.412        19.337        .11356E-03   -1.5003    
  13  Prefactor     59.646        45.551        .51941E-04   -1.4162    
  14  norm          1.8030        6.1040        .31048E-03   -1.5439    
  15  norm          .10000E-03    10.849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     17.252        32.078        .96389E-04   -1.4877    
  17  norm          .10000E-03    1.5376        .93463E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     37.635        41.214        .65321E-04   -1.4480    
  19  Prefactor     .10000E-03    26.288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     58.329        91.161        .26212E-03   -1.4179    
  21  Prefactor     62.001        80.290        .25464E-03   -1.4132    
  22  Prefactor     .10000E-03    10.617        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .36067        .31452        .62830E-03   -1.1939    
  24  Prefactor     .99577        .10324        .13585E-03   -.92871    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.85209e-09
Minuit parameter uncertainties:
  1  0.000145196
  2  29.9121
  3  0.000202122
  4  2.3632e-05
  5  0.000196652
  6  6.83742
  7  1.85102e-06
  8  1.43443e-05
  9  9.86137
  10  4.04923e-06
  11  1.60109
  12  19.3465
  13  45.5773
  14  6.10614
  15  3.24951e-05
  16  32.11
  17  6.52666e-07
  18  41.2454
  19  2.02898e-05
  20  91.3804
  21  80.431
  22  0.000109923
  23  0.316075
  24  0.103261
Done.

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

Extracting fit parameters...

4FGL J2313.5+3945
   Spectrum: PowerLaw
406    Prefactor:  1.241e+01  1.935e+01  1.000e-04  1.000e+04 ( 1.000e-12)
407        Index:  2.758e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
408        Scale:  4.854e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
538    Prefactor:  9.958e-01  1.033e-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:  3.607e-01  3.161e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/711400/likelihoodResults_417139201_417398401_4FGL_J2313.5+3945_daily_bin686.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) = 6013.43169542
delta logL = 0.112085385981

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6012.38911241
delta logL = 1.15466839188

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12718E-02   1.0000         .10000E-03   10000.    
     2 'Index     '   10.0000       1.0000          .0000       10.000    
     3 'Normalizat'    .29205       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0175       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=   6012.389     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      409 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12717E-02    .56370E-01    .67248E-03** at limit **
   2  Index        10.0000        6.7952        .50000    ** at limit **
   3  Normalizat    .29209        .16055        .15739        .71140E-04
   4  Prefactor     1.0175        .51550E-01    .30428E-01    .23823E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00127175
  Index      = 10
  Normalizat = 0.292091
  Prefactor  = 1.0175
 **********
 **   18 **HESSE 
 **********

 FCN=   6012.389     FROM HESSE     STATUS=OK            35 CALLS      444 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12717E-02    .11234E-02    .26327E-04   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        6.5889        .42120E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .29209        .29145        .69431E-03   -1.2331    
   4  Prefactor     1.0175        .10224        .13448E-03   -.92148    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.8808e-10
Minuit parameter uncertainties:
  1  0.00112344
  2  1.60994e-06
  3  0.292983
  4  0.102261
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/711400': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6012.38911175
delta logL = 1.15466905346

Extracting fit parameters...

4FGL J2313.5+3945
   Spectrum: PowerLaw
406    Prefactor:  1.272e-03  1.123e-03  1.000e-04  1.000e+04 ( 1.000e-12)
407        Index:  1.000e+01  1.610e-06  0.000e+00  1.000e+01 (-1.000e+00)
408        Scale:  4.854e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
538    Prefactor:  1.018e+00  1.023e-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:  2.921e-01  2.930e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.96
Ra Dec: 348.400 39.764
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 1.06e-07 +/- 9.07e-08
Energy Flux (Free Index): 1.18e-05 +/- 1.02e-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/711400/cmap_HighResolution_417139201_417398401_4FGL_J2313.5+3945_daily_bin686.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.93e-02', comment='SUCCESS', energy_flux2='1.18e-05', dlogl='1.15e+00', photon_flux2='1.06e-07', job_status='DONE', time_completed='2021-09-29 09:32:19.319230', photon_index_error2='0.00', photon_index2='10.00', ts='0.53', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='2.44e-07', energy_flux_error2='1.02e-05', EG='0.36', time_epoch_completed='1632933139.32', return_code='0', job_id='711400', GAL2='1.02', EG2='0.29', return_code2='0', photon_flux_error2='9.07e-08', ts2='2.96', photon_index='2.76' WHERE bin_id='686' AND source_name='4FGL J2313.5+3945' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 09:32:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 711400: <4FGL_J2313.5+3945_daily_bin686> in cluster <slac> Done

Job <4FGL_J2313.5+3945_daily_bin686> 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) <bullet0225>, 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:32:20 2021
Results reported at Wed Sep 29 09:32:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2313.5+3945_daily_bin686 348.4 39.7644 417139201 417398401 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.27 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             335.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   709 sec.
    Turnaround time :                            712 sec.

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

