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


Performing analysis on: 4FGL_J2307.6+1451_daily_bin1009
RA = 346.922, Dec = 14.8644
tmin = 500860801, tmax = 501120001
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='669645', job_status='RUN', time_executed='2021-09-29 07:07:49.308851', time_epoch_executed='1632924469.31' WHERE source_name='4FGL J2307.6+1451' and cadence='daily' and bin_id='1009'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/669645

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/669645/ft1_4FGL_J2307.6+1451_daily_bin1009.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/669645/ft2_4FGL_J2307.6+1451_daily_bin1009.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/669645/ft1_4FGL_J2307.6+1451_daily_bin1009.fits outfile=/scratch/kocevski/669645/ft1_filteredMKT_4FGL_J2307.6+1451_daily_bin1009.fits ra=346.922 dec=14.8644 rad=12.0 tmin=500860801.0 tmax=501120001.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 4.60
user 4.30
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/669645/ft1_filtered_4FGL_J2307.6+1451_daily_bin1009.fits" evtable="EVENTS" scfile=/scratch/kocevski/669645/ft2_4FGL_J2307.6+1451_daily_bin1009.fits sctable="SC_DATA" outfile=/scratch/kocevski/669645/ltcube_500860801_501120001_4FGL_J2307.6+1451_daily_bin1009.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/669645/ft2_4FGL_J2307.6+1451_daily_bin1009.fits
.....................!
real 11.76
user 11.40
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/669645/ft1_filtered_4FGL_J2307.6+1451_daily_bin1009.fits evtable="EVENTS" scfile=/scratch/kocevski/669645/ft2_4FGL_J2307.6+1451_daily_bin1009.fits sctable="SC_DATA" expcube=/scratch/kocevski/669645/ltcube_500860801_501120001_4FGL_J2307.6+1451_daily_bin1009.fits outfile=/scratch/kocevski/669645/expmap_500860801_501120001_4FGL_J2307.6+1451_daily_bin1009.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/669645/ltcube_500860801_501120001_4FGL_J2307.6+1451_daily_bin1009.fits
.....................!
real 189.68
user 184.48
sys 4.89

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/669645/ft1_filtered_4FGL_J2307.6+1451_daily_bin1009.fits scfile=/scratch/kocevski/669645/ft2_4FGL_J2307.6+1451_daily_bin1009.fits outfile=/scratch/kocevski/669645/cmap_500860801_501120001_4FGL_J2307.6+1451_daily_bin1009.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/669645/ft1_filtered_4FGL_J2307.6+1451_daily_bin1009.fits scfile=/scratch/kocevski/669645/ft2_4FGL_J2307.6+1451_daily_bin1009.fits outfile=/scratch/kocevski/669645/cmap_HighResolution_500860801_501120001_4FGL_J2307.6+1451_daily_bin1009.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .55500E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.2479       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .19402E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .90510E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10171E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.0928       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.1299       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .19725E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.2227       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.7814       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .18261E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.0518       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10238E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.8307       1.0000         .10000E-03   10000.    
    18 'norm      '    .10120E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.4437       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.1795       1.0000         .10000E-03   10000.    
    21 'norm      '    .11929E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .72081       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0721       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1282       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=   7387.187     FROM MIGRAD    STATUS=CONVERGED    568 CALLS     2758 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.432        .11646E-08** at limit **
   2  Prefactor     .10079E-03    11.303        .21578E-05** at limit **
   3  Prefactor     7.2475        .65550        .59042E-08   -.43748E-03
   4  Prefactor     .10000E-03    14.408        .37900E-06** at limit **
   5  norm          .87978E-01    .99801        .18622E-06   -.41123E-03
   6  Prefactor     .10000E-03    25.442        .79533E-06** at limit **
   7  Prefactor     .10000E-03    8.8503        .67106E-07** at limit **
   8  Prefactor     .10000E-03    16.341       -.42883E-06** at limit **
   9  Prefactor     3.0927        .36731       -.36345E-08   -.91833E-03
  10  Prefactor     7.1283        15.520        .43178E-06   -.52382E-04
  11  Prefactor     .10000E-03    38.585       -.10855E-05** at limit **
  12  Prefactor     5.2218        11.028        .24287E-06   -.23656E-04
  13  Prefactor     5.7954        11.913        .33981E-05   -.41232E-04
  14  Prefactor     .10001E-03    97.337        .65655E-05** at limit **
  15  Prefactor     9.0496        9.9969        .17679E-06   -.43957E-04
  16  Prefactor     .10000E-03    7.1927       -.43772E-06** at limit **
  17  Prefactor     5.8245        19.665        .16538E-06   -.11918E-04
  18  norm          .10000E-03    2.5134       -.16704E-06** at limit **
  19  Prefactor     2.4466        4.4867        .21201E-06   -.11654E-05
  20  Prefactor     2.0674        90.989       -.85948E-05   -.11728E-03
  21  norm          .10000E-03    5.8627        .18844E-07** at limit **
  22  Prefactor     .72165        9.3000        .53166E-05   -.87670E-04
  23  Normalizat    1.0723        .28286       -.11759E-06   -.18560E-03
  24  Prefactor     1.1279        .15809       -.84335E-06   -.19533E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100794
  Prefactor  = 7.24752
  Prefactor  = 0.0001
  norm       = 0.0879778
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.09275
  Prefactor  = 7.12826
  Prefactor  = 0.000100001
  Prefactor  = 5.22177
  Prefactor  = 5.79536
  Prefactor  = 0.00010001
  Prefactor  = 9.0496
  Prefactor  = 0.0001
  Prefactor  = 5.82448
  norm       = 0.0001
  Prefactor  = 2.44663
  Prefactor  = 2.06735
  norm       = 0.0001
  Prefactor  = 0.721654
  Normalizat = 1.0723
  Prefactor  = 1.12794
 **********
 **   18 **HESSE 
 **********

 FCN=   7387.187     FROM HESSE     STATUS=OK           399 CALLS     3157 TOTAL
                     EDM=   .61E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.494        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10079E-03    108.76        .53885E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.2475        .65567        .20076E-04   -1.5169    
   4  Prefactor     .10000E-03    14.603        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .87978E-01    2.9148        .16692E-02   -1.5649    
   6  Prefactor     .10000E-03    25.508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.8903        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    16.371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.0927        .36789        .16928E-04   -1.5356    
  10  Prefactor     7.1283        15.531        .15023E-03   -1.5174    
  11  Prefactor     .10000E-03    38.847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.2218        11.037        .17589E-03   -1.5251    
  13  Prefactor     5.7954        12.006        .83519E-03   -1.5226    
  14  Prefactor     .10001E-03    102.15        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.0496        9.9662        .13322E-03   -1.5106    
  16  Prefactor     .10000E-03    7.2333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.8245        19.578        .16632E-03   -1.5225    
  18  norm          .10000E-03    2.5143        .13304E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.4466        4.4635        .23884E-03   -1.5395    
  20  Prefactor     2.0674        99.724        .27886E-03   -1.5420    
  21  norm          .10000E-03    5.8662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .72165        9.5916        .48566E-03   -1.5538    
  23  Normalizat    1.0723        .33077        .43002E-03   -.90646    
  24  Prefactor     1.1279        .18754        .24397E-03   -.88578    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.08293e-08
Minuit parameter uncertainties:
  1  8.05492e-06
  2  0.0186149
  3  0.655673
  4  5.74272e-05
  5  1.01226
  6  0.000179258
  7  4.09901e-06
  8  8.5923e-05
  9  0.367894
  10  15.5397
  11  0.000328661
  12  11.0413
  13  12.0112
  14  0.00198741
  15  9.96803
  16  1.85748e-05
  17  19.5994
  18  2.30691e-06
  19  4.46406
  20  28.7671
  21  2.62861e-07
  22  5.26253
  23  0.331406
  24  0.187654
Done.

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

Extracting fit parameters...

4FGL J2307.6+1451
   Spectrum: PowerLaw
343    Prefactor:  5.222e+00  1.104e+01  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.128e+00  1.877e-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.072e+00  3.314e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/669645/likelihoodResults_500860801_501120001_4FGL_J2307.6+1451_daily_bin1009.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) = 7387.18568531
delta logL = 0.00141954138871

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7387.18505861
delta logL = 0.00204624060643

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.6924       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1219       1.0000          .0000       10.000    
     3 'Normalizat'    1.0739       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1271       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=   7387.185     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      244 TOTAL
                     EDM=   .89E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6881        14.619        .16836E-03    .96205E-03
   2  Index         2.1239        .98650        .11033E-01    .34856E-03
   3  Normalizat    1.0739        .31748        .42976E-03   -.67803E-03
   4  Prefactor     1.1272        .18710        .24404E-03   -.17659E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.68808
  Index      = 2.1239
  Normalizat = 1.07385
  Prefactor  = 1.12718
 **********
 **   18 **HESSE 
 **********

 FCN=   7387.185     FROM HESSE     STATUS=OK            23 CALLS      267 TOTAL
                     EDM=   .90E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.6881        13.552        .67343E-05   -1.5231    
   2  Index         2.1239        .91618        .44133E-03   -.61287    
   3  Normalizat    1.0739        .31737        .85953E-04   -.90596    
   4  Prefactor     1.1272        .18700        .48808E-04   -.88602    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.969e-09
Minuit parameter uncertainties:
  1  13.5591
  2  0.924021
  3  0.317937
  4  0.187106
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/669645': 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) = 7387.18505598
delta logL = 0.00204887137534

Extracting fit parameters...

4FGL J2307.6+1451
   Spectrum: PowerLaw
343    Prefactor:  5.688e+00  1.356e+01  1.000e-04  1.000e+04 ( 1.000e-13)
344        Index:  2.124e+00  9.240e-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.127e+00  1.871e-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.074e+00  3.179e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.26
Ra Dec: 346.922 14.864

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/669645/cmap_HighResolution_500860801_501120001_4FGL_J2307.6+1451_daily_bin1009.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.24e-02', job_status='DONE', photon_flux_upper_limit='1.63e-07', time_completed='2021-09-29 07:20:42.373062', job_id='669645', GAL2='1.13', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1632925242.37', return_code2='0', ts='0.26', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='2.05e-03', ts2='0.26', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1009' AND source_name='4FGL J2307.6+1451' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 07:20:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 669645: <4FGL_J2307.6+1451_daily_bin1009> in cluster <slac> Done

Job <4FGL_J2307.6+1451_daily_bin1009> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 07:05:32 2021
Job was executed on host(s) <bullet0047>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 07:05:34 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:05:34 2021
Terminated at Wed Sep 29 07:20:43 2021
Results reported at Wed Sep 29 07:20:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2307.6+1451_daily_bin1009 346.922 14.8644 500860801 501120001 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 :                                   770.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             334.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   908 sec.
    Turnaround time :                            911 sec.

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

