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


Performing analysis on: 4FGL_J2307.6+1451_daily_bin1133
RA = 346.922, Dec = 14.8644
tmin = 533001601, tmax = 533260801
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='670917', job_status='RUN', time_executed='2021-09-29 07:12:36.831035', time_epoch_executed='1632924756.83' WHERE source_name='4FGL J2307.6+1451' and cadence='daily' and bin_id='1133'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/670917

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/670917/ft1_4FGL_J2307.6+1451_daily_bin1133.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/670917/ft2_4FGL_J2307.6+1451_daily_bin1133.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/670917/ft1_4FGL_J2307.6+1451_daily_bin1133.fits outfile=/scratch/kocevski/670917/ft1_filteredMKT_4FGL_J2307.6+1451_daily_bin1133.fits ra=346.922 dec=14.8644 rad=12.0 tmin=533001601.0 tmax=533260801.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.54
user 3.28
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/670917/ft1_filtered_4FGL_J2307.6+1451_daily_bin1133.fits evtable="EVENTS" scfile=/scratch/kocevski/670917/ft2_4FGL_J2307.6+1451_daily_bin1133.fits sctable="SC_DATA" expcube=/scratch/kocevski/670917/ltcube_533001601_533260801_4FGL_J2307.6+1451_daily_bin1133.fits outfile=/scratch/kocevski/670917/expmap_533001601_533260801_4FGL_J2307.6+1451_daily_bin1133.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/670917/ltcube_533001601_533260801_4FGL_J2307.6+1451_daily_bin1133.fits
.....................!
real 190.50
user 185.14
sys 5.03

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/670917/ft1_filtered_4FGL_J2307.6+1451_daily_bin1133.fits scfile=/scratch/kocevski/670917/ft2_4FGL_J2307.6+1451_daily_bin1133.fits outfile=/scratch/kocevski/670917/cmap_533001601_533260801_4FGL_J2307.6+1451_daily_bin1133.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/670917/ft1_filtered_4FGL_J2307.6+1451_daily_bin1133.fits scfile=/scratch/kocevski/670917/ft2_4FGL_J2307.6+1451_daily_bin1133.fits outfile=/scratch/kocevski/670917/cmap_HighResolution_533001601_533260801_4FGL_J2307.6+1451_daily_bin1133.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.55
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.536       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.3233       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.6721       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.5931       1.0000         .10000E-03   10000.    
     5 'norm      '    1.9154       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.0853       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.7502       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.8443       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.7226       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.3897       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11449E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.1733       1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.2274       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10228E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10310E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .74711E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10096E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0112       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .95643       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8685.967     FROM MIGRAD    STATUS=CONVERGED    943 CALLS     2732 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.529        18.247        .93029E-04   -.26885E-05
   2  Prefactor     9.3212        10.925        .13125E-03    .48506E-06
   3  Prefactor     3.6722        .43658        .19611E-04   -.25275E-03
   4  Prefactor     5.5938        6.1889        .16987E-03    .80312E-06
   5  norm          1.9157        1.3089        .84408E-04   -.11583E-04
   6  Prefactor     .10000E-03    15.648        .18142E-02** at limit **
   7  Prefactor     4.0794        10.434        .19947E-03    .19378E-05
   8  Prefactor     4.7602        28.101        .18461E-03    .65277E-05
   9  Prefactor     2.8443        .30768        .15696E-04    .40562E-03
  10  Prefactor     7.7243        7.5841        .14430E-03   -.16230E-04
  11  Prefactor     .10000E-03    11.651        .18142E-02** at limit **
  12  Prefactor     6.3913        7.2566        .15878E-03   -.10597E-04
  13  Prefactor     .10000E-03    7.3819        .18142E-02** at limit **
  14  Prefactor     .10000E-03    48.991        .18142E-02** at limit **
  15  Prefactor     1.1738        4.0475        .33844E-03    .14243E-04
  16  Prefactor     8.2254        9.1915        .69885E-03   -.26191E-04
  17  Prefactor     .10000E-03    5.1158        .18142E-02** at limit **
  18  norm          .10000E-03    6.2915        .18142E-02** at limit **
  19  Prefactor     .10000E-03    5.0538        .18142E-02** at limit **
  20  Prefactor     .10000E-03    137.23        .56816E-02** at limit **
  21  norm          .10000E-03    10.483        .18142E-02** at limit **
  22  Prefactor     .10000E-03    6.8917        .18142E-02** at limit **
  23  Normalizat    1.0111        .25902        .38659E-03   -.60638E-04
  24  Prefactor     .95643        .14686        .22718E-03   -.13349E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.5289
  Prefactor  = 9.32116
  Prefactor  = 3.67222
  Prefactor  = 5.5938
  norm       = 1.91569
  Prefactor  = 0.0001
  Prefactor  = 4.07938
  Prefactor  = 4.76016
  Prefactor  = 2.84433
  Prefactor  = 7.72427
  Prefactor  = 0.0001
  Prefactor  = 6.39128
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.17385
  Prefactor  = 8.22544
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.01109
  Prefactor  = 0.956429
 **********
 **   18 **HESSE 
 **********

 FCN=   8685.967     FROM HESSE     STATUS=OK           373 CALLS     3105 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.529        18.247        .37211E-05   -1.4847    
   2  Prefactor     9.3212        10.925        .26250E-04   -1.5097    
   3  Prefactor     3.6722        .43657        .39223E-05   -1.5325    
   4  Prefactor     5.5938        6.1889        .67947E-05   -1.5235    
   5  norm          1.9157        1.3088        .33763E-05   -1.5431    
   6  Prefactor     .10000E-03    15.648        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.0794        10.433        .79787E-05   -1.5304    
   8  Prefactor     4.7602        28.102        .73845E-05   -1.5272    
   9  Prefactor     2.8443        .30766        .62783E-06   -1.5371    
  10  Prefactor     7.7243        7.5837        .57720E-05   -1.5152    
  11  Prefactor     .10000E-03    11.651        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.3913        7.2564        .63513E-05   -1.5202    
  13  Prefactor     .10000E-03    7.3841        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    49.029        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.1738        4.0469        .13538E-04   -1.5491    
  16  Prefactor     8.2254        9.1891        .27954E-04   -1.5134    
  17  Prefactor     .10000E-03    5.1159        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    6.2932        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.0556        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    141.98        .22726E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    10.485        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6.8957        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0111        .25920        .15464E-04   -.92660    
  24  Prefactor     .95643        .14697        .45437E-04   -.94196    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65292e-11
Minuit parameter uncertainties:
  1  18.2524
  2  10.9276
  3  0.436573
  4  6.18964
  5  1.30883
  6  8.55058e-06
  7  10.4378
  8  23.1478
  9  0.307658
  10  7.58467
  11  1.29762e-06
  12  7.25743
  13  1.09285e-06
  14  9.65604e-05
  15  4.04785
  16  9.19064
  17  1.3197e-06
  18  1.59253e-06
  19  1.93683e-06
  20  7.75691e-05
  21  2.50752e-06
  22  2.73825e-06
  23  0.259523
  24  0.147032
Done.

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

Extracting fit parameters...

4FGL J2307.6+1451
   Spectrum: PowerLaw
343    Prefactor:  6.391e+00  7.257e+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:  9.564e-01  1.470e-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:  1.011e+00  2.595e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.14
Ra Dec: 346.922 14.864
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 3.46e-08 +/- 3.92e-08
Energy Flux (Fixed Index): 1.60e-05 +/- 1.82e-05

TS (Fixed Index): 1.14
Ra Dec: 346.922 14.864
Photon Flux Upper Limit: 1.28e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.72e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/670917/likelihoodResults_533001601_533260801_4FGL_J2307.6+1451_daily_bin1133.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) = 8685.92901772
delta logL = 0.03798758413

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8685.92760265
delta logL = 0.039402657043

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8685.928     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      269 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.8010        9.2766        .14357E-03   -.66200E-04
   2  Index         1.9138        .93821        .96632E-02   -.19127E-04
   3  Normalizat    1.0186        .25402        .38544E-03    .49376E-04
   4  Prefactor     .95455        .14643        .22742E-03    .10818E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.801
  Index      = 1.91375
  Normalizat = 1.01862
  Prefactor  = 0.954552
 **********
 **   18 **HESSE 
 **********

 FCN=   8685.928     FROM HESSE     STATUS=OK            25 CALLS      294 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.8010        9.1147        .57428E-05   -1.5149    
   2  Index         1.9138        .92219        .38653E-03   -.66524    
   3  Normalizat    1.0186        .25409        .15417E-04   -.92409    
   4  Prefactor     .95455        .14654        .90967E-05   -.94260    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.29655e-11
Minuit parameter uncertainties:
  1  9.11636
  2  0.930849
  3  0.254396
  4  0.146603
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/670917': 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) = 8685.92760237
delta logL = 0.0394029388717

Extracting fit parameters...

4FGL J2307.6+1451
   Spectrum: PowerLaw
343    Prefactor:  7.801e+00  9.116e+00  1.000e-04  1.000e+04 ( 1.000e-13)
344        Index:  1.914e+00  9.308e-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:  9.546e-01  1.466e-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:  1.019e+00  2.544e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.22
Ra Dec: 346.922 14.864
Photon Index (Free Index): 1.91 +/- 0.93
Photon Flux (Free Index): 2.46e-08 +/- 4.55e-08
Energy Flux (Free Index): 2.12e-05 +/- 3.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/670917/cmap_HighResolution_533001601_533260801_4FGL_J2307.6+1451_daily_bin1133.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.72e-03', comment='SUCCESS', photon_flux='3.46e-08', energy_flux2='2.12e-05', photon_flux_error='3.92e-08', dlogl='3.94e-02', energy_flux='1.60e-05', photon_flux2='2.46e-08', job_status='DONE', time_completed='2021-09-29 07:26:44.194423', photon_index_error2='0.93', photon_index2='1.91', ts='1.14', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='1.28e-07', energy_flux_error2='3.29e-05', EG='1.01', time_epoch_completed='1632925604.19', return_code='0', job_id='670917', GAL2='0.95', EG2='1.02', return_code2='0', energy_flux_error='1.82e-05', photon_flux_error2='4.55e-08', ts2='1.22', photon_index='2.18' WHERE bin_id='1133' AND source_name='4FGL J2307.6+1451' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 07:26:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 670917: <4FGL_J2307.6+1451_daily_bin1133> in cluster <slac> Done

Job <4FGL_J2307.6+1451_daily_bin1133> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep 29 07:10:22 2021
Job was executed on host(s) <bullet0036>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 07:10: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 07:10:25 2021
Terminated at Wed Sep 29 07:26:44 2021
Results reported at Wed Sep 29 07:26:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2307.6+1451_daily_bin1133 346.922 14.8644 533001601 533260801 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 :                                   837.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             339.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   979 sec.
    Turnaround time :                            982 sec.

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

