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


Performing analysis on: 4FGL_J2307.6+1451_daily_bin68
RA = 346.922, Dec = 14.8644
tmin = 256953601, tmax = 257212801
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='664874', job_status='RUN', time_executed='2021-09-29 06:50:36.249427', time_epoch_executed='1632923436.25' WHERE source_name='4FGL J2307.6+1451' and cadence='daily' and bin_id='68'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/664874

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/664874/ft1_4FGL_J2307.6+1451_daily_bin68.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/664874/ft2_4FGL_J2307.6+1451_daily_bin68.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/664874/ft1_4FGL_J2307.6+1451_daily_bin68.fits outfile=/scratch/kocevski/664874/ft1_filteredMKT_4FGL_J2307.6+1451_daily_bin68.fits ra=346.922 dec=14.8644 rad=12.0 tmin=256953601.0 tmax=257212801.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.44
user 1.27
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/664874/ft2_4FGL_J2307.6+1451_daily_bin68.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/664874/ft1_filteredMKT_4FGL_J2307.6+1451_daily_bin68.fits evtable="EVENTS" outfile="/scratch/kocevski/664874/ft1_filtered_4FGL_J2307.6+1451_daily_bin68.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.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/664874/ft1_filtered_4FGL_J2307.6+1451_daily_bin68.fits" evtable="EVENTS" scfile=/scratch/kocevski/664874/ft2_4FGL_J2307.6+1451_daily_bin68.fits sctable="SC_DATA" outfile=/scratch/kocevski/664874/ltcube_256953601_257212801_4FGL_J2307.6+1451_daily_bin68.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/664874/ft2_4FGL_J2307.6+1451_daily_bin68.fits
.....................!
real 12.65
user 12.26
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/664874/ft1_filtered_4FGL_J2307.6+1451_daily_bin68.fits evtable="EVENTS" scfile=/scratch/kocevski/664874/ft2_4FGL_J2307.6+1451_daily_bin68.fits sctable="SC_DATA" expcube=/scratch/kocevski/664874/ltcube_256953601_257212801_4FGL_J2307.6+1451_daily_bin68.fits outfile=/scratch/kocevski/664874/expmap_256953601_257212801_4FGL_J2307.6+1451_daily_bin68.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/664874/ltcube_256953601_257212801_4FGL_J2307.6+1451_daily_bin68.fits
.....................!
real 190.35
user 185.39
sys 4.64

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/664874/ft1_filtered_4FGL_J2307.6+1451_daily_bin68.fits scfile=/scratch/kocevski/664874/ft2_4FGL_J2307.6+1451_daily_bin68.fits outfile=/scratch/kocevski/664874/cmap_256953601_257212801_4FGL_J2307.6+1451_daily_bin68.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/664874/ft1_filtered_4FGL_J2307.6+1451_daily_bin68.fits scfile=/scratch/kocevski/664874/ft2_4FGL_J2307.6+1451_daily_bin68.fits outfile=/scratch/kocevski/664874/cmap_HighResolution_256953601_257212801_4FGL_J2307.6+1451_daily_bin68.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/664874/ft1_filtered_4FGL_J2307.6+1451_daily_bin68.fits evtable="EVENTS" scfile=/scratch/kocevski/664874/ft2_4FGL_J2307.6+1451_daily_bin68.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/664874/Model_4FGL_J2307.6+1451_daily_bin68.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/664874/ft1_filtered_4FGL_J2307.6+1451_daily_bin68.fits.....................!
real 84.68
user 83.33
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/664874/ft1_filtered_4FGL_J2307.6+1451_daily_bin68.fits', '/scratch/kocevski/664874/ft2_4FGL_J2307.6+1451_daily_bin68.fits', expMap='/scratch/kocevski/664874/expmap_256953601_257212801_4FGL_J2307.6+1451_daily_bin68.fits', expCube='/scratch/kocevski/664874/ltcube_256953601_257212801_4FGL_J2307.6+1451_daily_bin68.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/664874/Model_4FGL_J2307.6+1451_daily_bin68.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/664874/ft1_filtered_4FGL_J2307.6+1451_daily_bin68.fits
Spacecraft file(s): /scratch/kocevski/664874/ft2_4FGL_J2307.6+1451_daily_bin68.fits
Exposure map: /scratch/kocevski/664874/expmap_256953601_257212801_4FGL_J2307.6+1451_daily_bin68.fits
Exposure cube: /scratch/kocevski/664874/ltcube_256953601_257212801_4FGL_J2307.6+1451_daily_bin68.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/664874/Model_4FGL_J2307.6+1451_daily_bin68.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) = 7854.32930084

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.1102       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.3499       1.0000         .10000E-03   10000.    
     5 'norm      '    2.7405       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11208E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.5075       1.0000         .10000E-03   10000.    
     8 'Prefactor '    28.145       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .24981E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10209E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.5757       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.0914       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .55256       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.3428       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    26.335       1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.053       1.0000         .10000E-03   10000.    
    20 'Prefactor '    50.241       1.0000         .10000E-03   10000.    
    21 'norm      '    .45146       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .84002       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0524       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=   7854.329     FROM MIGRAD    STATUS=CONVERGED    535 CALLS     3326 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.7608        .33716E-07** at limit **
   2  Prefactor     .10000E-03    12.563        .67199E-05** at limit **
   3  Prefactor     1.1102        .23351       -.92958E-09    .14900E-03
   4  Prefactor     6.3498        6.3288       -.95165E-07   -.79090E-05
   5  norm          2.7406        1.6807       -.32504E-07   -.13965E-04
   6  Prefactor     .10000E-03    13.103       -.79636E-05** at limit **
   7  Prefactor     3.5039        10.461        .50342E-06   -.74105E-03
   8  Prefactor     28.147        20.243        .34236E-06    .52157E-04
   9  Prefactor     .24981E-01    .88086E-01   -.37962E-07   -.77149E-03
  10  Prefactor     .10000E-03    7.4104       -.11640E-06** at limit **
  11  Prefactor     .10000E-03    34.642       -.49284E-05** at limit **
  12  Prefactor     9.5769        7.9552        .71495E-07   -.40462E-04
  13  Prefactor     .10000E-03    4.4081        .60899E-07** at limit **
  14  Prefactor     2.0905        9.4818        .96473E-06   -.78512E-03
  15  Prefactor     .54233        3.2989        .77297E-06   -.67500E-03
  16  Prefactor     5.3413        9.4547        .10241E-05   -.60754E-03
  17  Prefactor     .10000E-03    26.973        .37246E-05** at limit **
  18  norm          26.341        13.223        .61659E-06   -.52107E-04
  19  Prefactor     15.050        9.4918       -.50458E-06   -.11700E-03
  20  Prefactor     50.235        29.468       -.49348E-05   -.14293E-03
  21  norm          .36774        6.0897        .46941E-06   -.22117E-03
  22  Prefactor     .10000E-03    1.9673        .87687E-08** at limit **
  23  Normalizat    .84000        .20701       -.53923E-07   -.14066E-03
  24  Prefactor     1.0524        .11581        .79372E-07   -.18009E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.11016
  Prefactor  = 6.34977
  norm       = 2.74059
  Prefactor  = 0.0001
  Prefactor  = 3.50389
  Prefactor  = 28.1467
  Prefactor  = 0.0249812
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.5769
  Prefactor  = 0.0001
  Prefactor  = 2.0905
  Prefactor  = 0.542328
  Prefactor  = 5.34134
  Prefactor  = 0.0001
  norm       = 26.341
  Prefactor  = 15.0497
  Prefactor  = 50.2349
  norm       = 0.367737
  Prefactor  = 0.0001
  Normalizat = 0.839999
  Prefactor  = 1.05244
 **********
 **   18 **HESSE 
 **********

 FCN=   7854.329     FROM HESSE     STATUS=OK           405 CALLS     3731 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.7679        .16785E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.1102        .23374        .18811E-04   -1.5497    
   4  Prefactor     6.3498        6.3342        .15929E-03   -1.5204    
   5  norm          2.7406        1.6876        .85734E-04   -1.5377    
   6  Prefactor     .10000E-03    13.160        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.5039        11.933        .10794E-02   -1.5334    
   8  Prefactor     28.147        19.989        .75517E-04   -1.4646    
   9  Prefactor     .24981E-01    .13385        .43180E-03   -1.5676    
  10  Prefactor     .10000E-03    7.4709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    34.885        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9.5769        7.8870        .12950E-03   -1.5089    
  13  Prefactor     .10000E-03    4.4156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.0905        18.721        .14273E-02   -1.5419    
  15  Prefactor     .54233        18.504        .29306E-02   -1.5561    
  16  Prefactor     5.3413        9.8443        .86934E-03   -1.5246    
  17  Prefactor     .10000E-03    27.261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          26.341        13.218        .78063E-04   -1.4681    
  19  Prefactor     15.050        9.4952        .10323E-03   -1.4932    
  20  Prefactor     50.235        29.533        .56578E-04   -1.4289    
  21  norm          .36774        42.040        .42397E-02   -1.5587    
  22  Prefactor     .10000E-03    1.9707        .12139E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .84000        .23498        .35114E-03   -.98602    
  24  Prefactor     1.0524        .13328        .18989E-03   -.91001    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.47666e-08
Minuit parameter uncertainties:
  1  3.20123e-09
  2  8.98701e-05
  3  0.233737
  4  6.33486
  5  1.68764
  6  0.000128742
  7  11.9413
  8  19.9935
  9  0.11542
  10  3.90949e-06
  11  0.000110491
  12  7.88785
  13  3.55969e-07
  14  12.5168
  15  6.33724
  16  9.84724
  17  1.57321e-05
  18  13.2197
  19  9.49613
  20  29.5413
  21  7.86838
  22  3.48414e-07
  23  0.235265
  24  0.133326
Done.

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

Extracting fit parameters...

4FGL J2307.6+1451
   Spectrum: PowerLaw
343    Prefactor:  9.577e+00  7.888e+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.052e+00  1.333e-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:  8.400e-01  2.353e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.26
Ra Dec: 346.922 14.864
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 5.18e-08 +/- 4.27e-08
Energy Flux (Fixed Index): 2.40e-05 +/- 1.98e-05

TS (Fixed Index): 2.26
Ra Dec: 346.922 14.864
Photon Flux Upper Limit: 1.41e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.07e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/664874/likelihoodResults_256953601_257212801_4FGL_J2307.6+1451_daily_bin68.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) = 7853.31669949
delta logL = 1.01223514112

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7853.26532231
delta logL = 1.06361232291

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .70506       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6567       1.0000          .0000       10.000    
     3 'Normalizat'    .72642       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0972       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.

 FCN=   7853.265     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      267 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .70185        4.3647        .84975E-02    .34355E-03
   2  Index         3.6586        1.6274        .83839E-01    .18614E-03
   3  Normalizat    .72610        .54744E-01    .84636E-01    .27455E-04
   4  Prefactor     1.0974        .32226E-01    .37695E-01   -.47757E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.701845
  Index      = 3.65857
  Normalizat = 0.726103
  Prefactor  = 1.09742
 **********
 **   18 **HESSE 
 **********

 FCN=   7853.265     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      298 TOTAL
                     EDM=   .43E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .70185        9.2403        .38316E-04   -1.5540    
   2  Index         3.6586        2.7710        .31570E-02   -.27161    
   3  Normalizat    .72610        .22677        .37483E-03   -1.0287    
   4  Prefactor     1.0974        .13027        .18634E-03   -.89549    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.34601e-07
Minuit parameter uncertainties:
  1  5.09385
  2  2.95247
  3  0.227064
  4  0.130303
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/664874': 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) = 7853.26532008
delta logL = 1.06361454891

Extracting fit parameters...

4FGL J2307.6+1451
   Spectrum: PowerLaw
343    Prefactor:  7.018e-01  5.094e+00  1.000e-04  1.000e+04 ( 1.000e-13)
344        Index:  3.659e+00  2.952e+00  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.097e+00  1.303e-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:  7.261e-01  2.271e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.65
Ra Dec: 346.922 14.864
Photon Index (Free Index): 3.66 +/- 2.95
Photon Flux (Free Index): 1.33e-07 +/- 8.79e-08
Energy Flux (Free Index): 2.13e-05 +/- 1.29e-05

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/664874/cmap_HighResolution_256953601_257212801_4FGL_J2307.6+1451_daily_bin68.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.07e-02', comment='SUCCESS', photon_flux='5.18e-08', energy_flux2='2.13e-05', photon_flux_error='4.27e-08', dlogl='1.06e+00', energy_flux='2.40e-05', photon_flux2='1.33e-07', job_status='DONE', time_completed='2021-09-29 07:04:03.380485', photon_index_error2='2.95', photon_index2='3.66', ts='2.26', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='1.41e-07', energy_flux_error2='1.29e-05', EG='0.84', time_epoch_completed='1632924243.38', return_code='0', job_id='664874', GAL2='1.10', EG2='0.73', return_code2='102', energy_flux_error='1.98e-05', photon_flux_error2='8.79e-08', ts2='4.65', photon_index='2.18' WHERE bin_id='68' AND source_name='4FGL J2307.6+1451' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 07:04:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0110>
Subject: Job 664874: <4FGL_J2307.6+1451_daily_bin68> in cluster <slac> Done

Job <4FGL_J2307.6+1451_daily_bin68> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep 29 06:50:22 2021
Job was executed on host(s) <bullet0110>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 06:50:24 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:24 2021
Terminated at Wed Sep 29 07:04:04 2021
Results reported at Wed Sep 29 07:04:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2307.6+1451_daily_bin68 346.922 14.8644 256953601 257212801 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 :                                   805.14 sec.
    Max Memory :                                 1088 MB
    Average Memory :                             340.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   820 sec.
    Turnaround time :                            822 sec.

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

