/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 161 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 = 7476
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2307.6+1451_daily_bin81
RA = 346.922, Dec = 14.8644
tmin = 260323201, tmax = 260582401
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='664892', job_status='RUN', time_executed='2021-09-29 06:53:16.844291', time_epoch_executed='1632923596.84' WHERE source_name='4FGL J2307.6+1451' and cadence='daily' and bin_id='81'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/664892

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/664892/ft1_4FGL_J2307.6+1451_daily_bin81.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/664892/ft2_4FGL_J2307.6+1451_daily_bin81.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/664892/ft1_4FGL_J2307.6+1451_daily_bin81.fits outfile=/scratch/kocevski/664892/ft1_filteredMKT_4FGL_J2307.6+1451_daily_bin81.fits ra=346.922 dec=14.8644 rad=12.0 tmin=260323201.0 tmax=260582401.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 1.54
user 1.33
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/664892/ft2_4FGL_J2307.6+1451_daily_bin81.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/664892/ft2_4FGL_J2307.6+1451_daily_bin81.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/664892/ft1_filteredMKT_4FGL_J2307.6+1451_daily_bin81.fits evtable="EVENTS" outfile="/scratch/kocevski/664892/ft1_filtered_4FGL_J2307.6+1451_daily_bin81.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/664892/ft1_filtered_4FGL_J2307.6+1451_daily_bin81.fits" evtable="EVENTS" scfile=/scratch/kocevski/664892/ft2_4FGL_J2307.6+1451_daily_bin81.fits sctable="SC_DATA" outfile=/scratch/kocevski/664892/ltcube_260323201_260582401_4FGL_J2307.6+1451_daily_bin81.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/664892/ft2_4FGL_J2307.6+1451_daily_bin81.fits
.....................!
real 12.85
user 12.51
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/664892/ft1_filtered_4FGL_J2307.6+1451_daily_bin81.fits evtable="EVENTS" scfile=/scratch/kocevski/664892/ft2_4FGL_J2307.6+1451_daily_bin81.fits sctable="SC_DATA" expcube=/scratch/kocevski/664892/ltcube_260323201_260582401_4FGL_J2307.6+1451_daily_bin81.fits outfile=/scratch/kocevski/664892/expmap_260323201_260582401_4FGL_J2307.6+1451_daily_bin81.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/664892/ltcube_260323201_260582401_4FGL_J2307.6+1451_daily_bin81.fits
.....................!
real 190.00
user 185.27
sys 4.34

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
Added 160 point sources and 0 extended sources

Setting source of interest to:
4FGL J2307.6+1451 @ 346.922 14.8644

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/664892/ft1_filtered_4FGL_J2307.6+1451_daily_bin81.fits scfile=/scratch/kocevski/664892/ft2_4FGL_J2307.6+1451_daily_bin81.fits outfile=/scratch/kocevski/664892/cmap_260323201_260582401_4FGL_J2307.6+1451_daily_bin81.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=346.922 yref=14.8644 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.52
user 0.36
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/664892/ft1_filtered_4FGL_J2307.6+1451_daily_bin81.fits scfile=/scratch/kocevski/664892/ft2_4FGL_J2307.6+1451_daily_bin81.fits outfile=/scratch/kocevski/664892/cmap_HighResolution_260323201_260582401_4FGL_J2307.6+1451_daily_bin81.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=346.922 yref=14.8644 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/664892/ft1_filtered_4FGL_J2307.6+1451_daily_bin81.fits evtable="EVENTS" scfile=/scratch/kocevski/664892/ft2_4FGL_J2307.6+1451_daily_bin81.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/664892/Model_4FGL_J2307.6+1451_daily_bin81.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 EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/664892/ft1_filtered_4FGL_J2307.6+1451_daily_bin81.fits.....................!
real 83.41
user 81.68
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/664892/ft1_filtered_4FGL_J2307.6+1451_daily_bin81.fits', '/scratch/kocevski/664892/ft2_4FGL_J2307.6+1451_daily_bin81.fits', expMap='/scratch/kocevski/664892/expmap_260323201_260582401_4FGL_J2307.6+1451_daily_bin81.fits', expCube='/scratch/kocevski/664892/ltcube_260323201_260582401_4FGL_J2307.6+1451_daily_bin81.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/664892/Model_4FGL_J2307.6+1451_daily_bin81.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2307.6+1451'

4FGL J2307.6+1451
   Spectrum: PowerLaw
343    Prefactor:  1.115e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
344        Index:  2.184e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
345        Scale:  1.928e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/664892/ft1_filtered_4FGL_J2307.6+1451_daily_bin81.fits
Spacecraft file(s): /scratch/kocevski/664892/ft2_4FGL_J2307.6+1451_daily_bin81.fits
Exposure map: /scratch/kocevski/664892/expmap_260323201_260582401_4FGL_J2307.6+1451_daily_bin81.fits
Exposure cube: /scratch/kocevski/664892/ltcube_260323201_260582401_4FGL_J2307.6+1451_daily_bin81.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/664892/Model_4FGL_J2307.6+1451_daily_bin81.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) = 8123.81610125

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0241       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .17559E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .42575       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12330E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.9089       1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.543       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .36540       1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.221       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.3786       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.9521       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.130       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .71808E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    24.142       1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.565       1.0000         .10000E-03   10000.    
    20 'Prefactor '    23.996       1.0000         .10000E-03   10000.    
    21 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .61650       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2361       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8123.809     FROM MIGRAD    STATUS=CONVERGED    574 CALLS     2800 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0245        7.6731        .82942E-05    .31037E-04
   2  Prefactor     .10005E-03    10.144        .24132E-05** at limit **
   3  Prefactor     .42574        .18976       -.60473E-07    .33340E-03
   4  Prefactor     .10000E-03    3.1111       -.39599E-06** at limit **
   5  norm          1.9089        1.4110        .52421E-08   -.12132E-04
   6  Prefactor     11.543        17.815       -.92227E-08    .34878E-05
   7  Prefactor     .10000E-03    3.3495       -.29958E-07** at limit **
   8  Prefactor     .10000E-03    7.4883       -.38081E-06** at limit **
   9  Prefactor     .36537        .15120       -.22420E-08    .55939E-03
  10  Prefactor     17.221        10.284       -.11462E-06    .16986E-04
  11  Prefactor     8.3439        31.014       -.29320E-05    .88108E-05
  12  Prefactor     6.9519        4.7942        .84421E-07    .52275E-04
  13  Prefactor     11.130        10.865        .66287E-07    .32900E-04
  14  Prefactor     .10000E-03    6.5110       -.58544E-07** at limit **
  15  Prefactor     .10000E-03    4.9317       -.18006E-06** at limit **
  16  Prefactor     .10000E-03    13.129        .20726E-05** at limit **
  17  Prefactor     .10194E-03    12.597       -.22849E-05** at limit **
  18  norm          24.147        11.678       -.10484E-05   -.99597E-05
  19  Prefactor     10.563        8.3738        .66275E-06    .30432E-04
  20  Prefactor     23.999        25.520        .72790E-06   -.19105E-04
  21  norm          .10000E-03    7.3177        .18565E-06** at limit **
  22  Prefactor     .10000E-03    2.4922       -.70874E-07** at limit **
  23  Normalizat    .61660        .21969        .14973E-05    .19719E-03
  24  Prefactor     1.2361        .12616       -.38562E-06    .41280E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.02451
  Prefactor  = 0.000100054
  Prefactor  = 0.425743
  Prefactor  = 0.0001
  norm       = 1.90891
  Prefactor  = 11.5426
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.36537
  Prefactor  = 17.221
  Prefactor  = 8.34391
  Prefactor  = 6.95194
  Prefactor  = 11.1296
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.00010194
  norm       = 24.1466
  Prefactor  = 10.5633
  Prefactor  = 23.9986
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.616597
  Prefactor  = 1.23608
 **********
 **   18 **HESSE 
 **********

 FCN=   8123.809     FROM HESSE     STATUS=OK           413 CALLS     3213 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0245        7.7258        .14542E-02   -1.5423    
   2  Prefactor     .10005E-03    60.188        .53037E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .42574        .18603        .24572E-04   -1.5577    
   4  Prefactor     .10000E-03    11.109        .30786E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.9089        1.4120        .89502E-04   -1.5432    
   6  Prefactor     11.543        17.811        .11791E-03   -1.5028    
   7  Prefactor     .10000E-03    3.3568        .16107E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.4963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .36537        .14924        .20930E-04   -1.5587    
  10  Prefactor     17.221        10.288        .96513E-04   -1.4878    
  11  Prefactor     8.3439        30.995        .13850E-03   -1.5130    
  12  Prefactor     6.9519        4.7920        .15216E-03   -1.5181    
  13  Prefactor     11.130        10.855        .12008E-03   -1.5041    
  14  Prefactor     .10000E-03    6.5175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.0565        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    13.682        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10194E-03    15.996        .89878E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          24.147        11.682        .81526E-04   -1.4725    
  19  Prefactor     10.563        8.3527        .12327E-03   -1.5058    
  20  Prefactor     23.999        25.449        .81772E-04   -1.4728    
  21  norm          .10000E-03    7.3315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    2.5033        .13896E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .61660        .23548        .40971E-03   -1.0728    
  24  Prefactor     1.2361        .13828        .18180E-03   -.85228    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39337e-09
Minuit parameter uncertainties:
  1  7.72956
  2  0.00360728
  3  0.186027
  4  4.30587e-05
  5  1.41204
  6  17.8191
  7  5.78439e-06
  8  2.61045e-06
  9  0.149238
  10  10.289
  11  31.055
  12  4.79222
  13  10.8572
  14  6.34542e-06
  15  1.69704e-05
  16  0.000463194
  17  0.0111438
  18  11.6832
  19  8.35363
  20  25.4605
  21  2.7198e-05
  22  7.16791e-06
  23  0.23586
  24  0.138316
Done.

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

Extracting fit parameters...

4FGL J2307.6+1451
   Spectrum: PowerLaw
343    Prefactor:  6.952e+00  4.792e+00  1.000e-04  1.000e+04 ( 1.000e-13)
344        Index:  2.184e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
345        Scale:  1.928e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  1.236e+00  1.383e-01  0.000e+00  1.000e+01 ( 1.000e+00)
524        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
525        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
522   Normalization:  6.166e-01  2.359e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.76
Ra Dec: 346.922 14.864
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 3.76e-08 +/- 2.59e-08
Energy Flux (Fixed Index): 1.74e-05 +/- 1.20e-05

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) = 8121.84625213
delta logL = 1.96274405099

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8121.74340563
delta logL = 2.06559054254

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.6092       1.0000         .10000E-03   10000.    
     2 'Index     '    1.2319       1.0000          .0000       10.000    
     3 'Normalizat'    .63781       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2313       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8121.743     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      213 TOTAL
                     EDM=   .84E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 11.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.6071        7.5685       -.23091E-05   -.21298E-03
   2  Index         1.2316        .42641       -.19911E-04    .34894E-04
   3  Normalizat    .63771        .20275        .93389E-06    .23143E-03
   4  Prefactor     1.2313        .12440       -.20303E-07    .40948E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.60714
  Index      = 1.2316
  Normalizat = 0.637706
  Prefactor  = 1.23133
 **********
 **   18 **HESSE 
 **********

 FCN=   8121.743     FROM HESSE     STATUS=OK            31 CALLS      244 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.6071        7.4561        .12928E-03   -1.5088    
   2  Index         1.2316        .42013        .93981E-02   -.85364    
   3  Normalizat    .63771        .22307        .40338E-03   -1.0641    
   4  Prefactor     1.2313        .13711        .18211E-03   -.85372    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38489e-10
Minuit parameter uncertainties:
  1  7.45684
  2  0.421287
  3  0.223383
  4  0.137147
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/664892': 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) = 8121.74340526
delta logL = 2.06559091635

Extracting fit parameters...

4FGL J2307.6+1451
   Spectrum: PowerLaw
343    Prefactor:  9.607e+00  7.457e+00  1.000e-04  1.000e+04 ( 1.000e-13)
344        Index:  1.232e+00  4.213e-01  0.000e+00  1.000e+01 (-1.000e+00)
345        Scale:  1.928e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  1.231e+00  1.371e-01  0.000e+00  1.000e+01 ( 1.000e+00)
524        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
525        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
522   Normalization:  6.377e-01  2.234e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.91
Ra Dec: 346.922 14.864
Photon Index (Free Index): 1.23 +/- 0.42
Photon Flux (Free Index): 1.27e-08 +/- 1.09e-08
Energy Flux (Free Index): 9.61e-05 +/- 1.02e-04

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/664892/cmap_HighResolution_260323201_260582401_4FGL_J2307.6+1451_daily_bin81.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.76e-08', energy_flux2='9.61e-05', photon_flux_error='2.59e-08', dlogl='2.07e+00', energy_flux='1.74e-05', photon_flux2='1.27e-08', job_status='DONE', time_completed='2021-09-29 07:04:41.454550', photon_index_error2='0.42', photon_index2='1.23', ts='7.76', fit_tolerance='1e-08', GAL='1.24', photon_index_error='0.00', energy_flux_error2='1.02e-04', EG='0.62', time_epoch_completed='1632924281.45', return_code='0', job_id='664892', GAL2='1.23', EG2='0.64', return_code2='0', energy_flux_error='1.20e-05', photon_flux_error2='1.09e-08', ts2='11.91', photon_index='2.18' WHERE bin_id='81' AND source_name='4FGL J2307.6+1451' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 07:04:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 664892: <4FGL_J2307.6+1451_daily_bin81> in cluster <slac> Done

Job <4FGL_J2307.6+1451_daily_bin81> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep 29 06:50:23 2021
Job was executed on host(s) <bullet0098>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 06:50:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 06:50:25 2021
Terminated at Wed Sep 29 07:04:42 2021
Results reported at Wed Sep 29 07:04:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2307.6+1451_daily_bin81 346.922 14.8644 260323201 260582401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2307.6+1451 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   683.02 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             285.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   856 sec.
    Turnaround time :                            859 sec.

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

