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


Performing analysis on: 4FGL_J2313.5+3945_daily_bin625
RA = 348.4, Dec = 39.7644
tmin = 401328001, tmax = 401587201
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='711308', job_status='RUN', time_executed='2021-09-29 09:21:02.052867', time_epoch_executed='1632932462.05' WHERE source_name='4FGL J2313.5+3945' and cadence='daily' and bin_id='625'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/711308

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/711308/ft1_4FGL_J2313.5+3945_daily_bin625.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/711308/ft2_4FGL_J2313.5+3945_daily_bin625.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/711308/ft1_4FGL_J2313.5+3945_daily_bin625.fits outfile=/scratch/kocevski/711308/ft1_filteredMKT_4FGL_J2313.5+3945_daily_bin625.fits ra=348.4 dec=39.7644 rad=12.0 tmin=401328001.0 tmax=401587201.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.40
user 3.18
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/711308/ft2_4FGL_J2313.5+3945_daily_bin625.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/711308/ft1_filteredMKT_4FGL_J2313.5+3945_daily_bin625.fits evtable="EVENTS" outfile="/scratch/kocevski/711308/ft1_filtered_4FGL_J2313.5+3945_daily_bin625.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/711308/ft1_filtered_4FGL_J2313.5+3945_daily_bin625.fits" evtable="EVENTS" scfile=/scratch/kocevski/711308/ft2_4FGL_J2313.5+3945_daily_bin625.fits sctable="SC_DATA" outfile=/scratch/kocevski/711308/ltcube_401328001_401587201_4FGL_J2313.5+3945_daily_bin625.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/711308/ft2_4FGL_J2313.5+3945_daily_bin625.fits
.....................!
real 11.88
user 11.53
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/711308/ft1_filtered_4FGL_J2313.5+3945_daily_bin625.fits evtable="EVENTS" scfile=/scratch/kocevski/711308/ft2_4FGL_J2313.5+3945_daily_bin625.fits sctable="SC_DATA" expcube=/scratch/kocevski/711308/ltcube_401328001_401587201_4FGL_J2313.5+3945_daily_bin625.fits outfile=/scratch/kocevski/711308/expmap_401328001_401587201_4FGL_J2313.5+3945_daily_bin625.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/711308/ltcube_401328001_401587201_4FGL_J2313.5+3945_daily_bin625.fits
.....................!
real 190.85
user 185.58
sys 4.91

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/711308/ft1_filtered_4FGL_J2313.5+3945_daily_bin625.fits scfile=/scratch/kocevski/711308/ft2_4FGL_J2313.5+3945_daily_bin625.fits outfile=/scratch/kocevski/711308/cmap_401328001_401587201_4FGL_J2313.5+3945_daily_bin625.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/711308/ft1_filtered_4FGL_J2313.5+3945_daily_bin625.fits scfile=/scratch/kocevski/711308/ft2_4FGL_J2313.5+3945_daily_bin625.fits outfile=/scratch/kocevski/711308/cmap_HighResolution_401328001_401587201_4FGL_J2313.5+3945_daily_bin625.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10164E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.587       1.0000         .10000E-03   10000.    
     3 'norm      '    14.731       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.909       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .18448E-02   1.0000         .10000E-03   10000.    
     7 'norm      '    7.3300       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.639       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10523E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.5682       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    29.411       1.0000         .10000E-03   10000.    
    14 'norm      '    15.953       1.0000         .10000E-03   10000.    
    15 'norm      '    4.4661       1.0000         .10000E-03   10000.    
    16 'Prefactor '    35.653       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.5664       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    28.094       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .12527E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .40163       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3296       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .77591       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=   10325.32     FROM MIGRAD    STATUS=CONVERGED    544 CALLS     2714 TOTAL
                     EDM=   .99E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.565        .15776E-05** at limit **
   2  Prefactor     16.597        23.571       -.28573E-06   -.12852E-04
   3  norm          14.809        23.769        .19622E-05    .13136E-03
   4  Prefactor     10.921        8.2151        .69961E-06    .31484E-03
   5  Prefactor     .10000E-03    20.111       -.12558E-05** at limit **
   6  Prefactor     .10000E-03    11.603       -.71108E-05** at limit **
   7  norm          7.3283        4.4494       -.17996E-06    .70790E-03
   8  Prefactor     .10000E-03    5.1113       -.41446E-07** at limit **
   9  Prefactor     11.637        8.0425       -.11364E-06    .29470E-03
  10  Prefactor     .10000E-03    9.3731       -.57877E-07** at limit **
  11  norm          1.5680        1.5089       -.80625E-07    .79761E-04
  12  Prefactor     .10000E-03    4.3346       -.19442E-06** at limit **
  13  Prefactor     29.420        25.149       -.40592E-06   -.87791E-05
  14  norm          15.953        7.8135       -.48093E-07    .17649E-03
  15  norm          4.4661        6.0605        .11657E-07    .55742E-04
  16  Prefactor     35.642        25.283        .67835E-06    .16300E-03
  17  norm          .10000E-03    .61196       -.55063E-07** at limit **
  18  Prefactor     3.5648        13.185       -.97437E-07    .40394E-04
  19  Prefactor     .10000E-03    36.301       -.96688E-06** at limit **
  20  Prefactor     28.117        39.124       -.14781E-05   -.34081E-04
  21  Prefactor     .10000E-03    68.242       -.36070E-05** at limit **
  22  Prefactor     .36802        20.999       -.99609E-05    .29692E-03
  23  Normalizat    1.3297        .22279       -.20136E-05    .13758E-03
  24  Prefactor     .77589        .70766E-01    .14441E-05    .16244E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 16.5968
  norm       = 14.8089
  Prefactor  = 10.9214
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.32827
  Prefactor  = 0.0001
  Prefactor  = 11.6373
  Prefactor  = 0.0001
  norm       = 1.568
  Prefactor  = 0.0001
  Prefactor  = 29.4203
  norm       = 15.9529
  norm       = 4.46611
  Prefactor  = 35.6417
  norm       = 0.0001
  Prefactor  = 3.56478
  Prefactor  = 0.0001
  Prefactor  = 28.1167
  Prefactor  = 0.0001
  Prefactor  = 0.368016
  Normalizat = 1.32974
  Prefactor  = 0.775887
 **********
 **   18 **HESSE 
 **********

 FCN=   10325.32     FROM HESSE     STATUS=OK           403 CALLS     3117 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    25.648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     16.597        23.583        .98341E-04   -1.4893    
   3  norm          14.809        24.722        .10436E-03   -1.4938    
   4  Prefactor     10.921        8.2400        .12130E-03   -1.5047    
   5  Prefactor     .10000E-03    20.157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    19.546        .39132E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          7.3283        4.1222        .14414E-03   -1.5166    
   8  Prefactor     .10000E-03    5.1131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.637        8.0057        .11742E-03   -1.5026    
  10  Prefactor     .10000E-03    9.3977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.5680        1.4930        .11561E-03   -1.5458    
  12  Prefactor     .10000E-03    4.3588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     29.420        25.151        .73877E-04   -1.4623    
  14  norm          15.953        7.8098        .10028E-03   -1.4909    
  15  norm          4.4661        6.0550        .19053E-03   -1.5285    
  16  Prefactor     35.642        25.479        .67116E-04   -1.4513    
  17  norm          .10000E-03    .61445        .77641E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.5648        13.172        .21401E-03   -1.5330    
  19  Prefactor     .10000E-03    36.420        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     28.117        39.134        .75585E-04   -1.4647    
  21  Prefactor     .10000E-03    68.434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .36802        41.016        .42245E-02   -1.5587    
  23  Normalizat    1.3297        .25103        .37014E-03   -.82683    
  24  Prefactor     .77589        .82824E-01    .16338E-03   -1.0062    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.06773e-09
Minuit parameter uncertainties:
  1  0.000125327
  2  23.5959
  3  24.7395
  4  8.24082
  5  0.000131747
  6  0.000119982
  7  4.12237
  8  6.85549e-06
  9  8.00647
  10  1.4111e-05
  11  1.49301
  12  3.31452e-05
  13  25.16
  14  7.8103
  15  6.05585
  16  25.4865
  17  3.58943e-06
  18  13.1832
  19  0.00019149
  20  39.1694
  21  0.000302595
  22  7.77479
  23  0.251261
  24  0.0828373
Done.

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

Extracting fit parameters...

4FGL J2313.5+3945
   Spectrum: PowerLaw
406    Prefactor:  1.000e-04  3.315e-05  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:  7.759e-01  8.284e-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.330e+00  2.513e-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: 7.66e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.05e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/711308/likelihoodResults_401328001_401587201_4FGL_J2313.5+3945_daily_bin625.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) = 10325.3165133
delta logL = -0.00109338998845

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10325.31542
delta logL = -1.01576006273e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7623       1.0000          .0000       10.000    
     3 'Normalizat'    1.3297       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77587       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=   10325.32     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      253 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    705.22        .18142E-02** at limit **
   2  Index         3.1615        8.4169        .50000       -.21100E-07
   3  Normalizat    1.3298        .94129E-01    .37015E-03    .35985E-03
   4  Prefactor     .77588        .32899E-01    .16338E-03    .79692E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 3.16147
  Normalizat = 1.32975
  Prefactor  = 0.775884
 **********
 **   18 **HESSE 
 **********

 FCN=   10325.32     FROM HESSE     STATUS=OK            29 CALLS      282 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.9433        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.1615        8.3753        .50000       -.37654    
   3  Normalizat    1.3298        .23181        .14806E-04   -.82683    
   4  Prefactor     .77588        .81089E-01    .32677E-04   -1.0062    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.94561e-10
Minuit parameter uncertainties:
  1  1.23842e-05
  2  342.398
  3  0.231987
  4  0.0811013
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/711308': 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) = 10325.3154195
delta logL = 3.72188878828e-07

Extracting fit parameters...

4FGL J2313.5+3945
   Spectrum: PowerLaw
406    Prefactor:  1.000e-04  1.238e-05  1.000e-04  1.000e+04 ( 1.000e-12)
407        Index:  3.161e+00  3.424e+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:  7.759e-01  8.110e-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.330e+00  2.320e-01  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/711308/cmap_HighResolution_401328001_401587201_4FGL_J2313.5+3945_daily_bin625.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.05e-03', job_status='DONE', photon_flux_upper_limit='7.66e-08', time_completed='2021-09-29 09:36:20.398392', job_id='711308', GAL2='0.78', fit_tolerance='1e-08', EG2='1.33', EG='1.33', time_epoch_completed='1632933380.4', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='3.72e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='625' AND source_name='4FGL J2313.5+3945' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 09:36:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 711308: <4FGL_J2313.5+3945_daily_bin625> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2313.5+3945_daily_bin625 348.4 39.7644 401328001 401587201 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 :                                   917.06 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             379.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   959 sec.
    Turnaround time :                            961 sec.

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

