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


Performing analysis on: 4FGL_J2307.6+1451_daily_bin28
RA = 346.922, Dec = 14.8644
tmin = 246585601, tmax = 246844801
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='664816', job_status='RUN', time_executed='2021-09-29 06:53:22.702808', time_epoch_executed='1632923602.7' WHERE source_name='4FGL J2307.6+1451' and cadence='daily' and bin_id='28'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/664816

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/664816/ft1_4FGL_J2307.6+1451_daily_bin28.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/664816/ft2_4FGL_J2307.6+1451_daily_bin28.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/664816/ft1_4FGL_J2307.6+1451_daily_bin28.fits outfile=/scratch/kocevski/664816/ft1_filteredMKT_4FGL_J2307.6+1451_daily_bin28.fits ra=346.922 dec=14.8644 rad=12.0 tmin=246585601.0 tmax=246844801.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.26
sys 0.16

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

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

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/664816/ft1_filtered_4FGL_J2307.6+1451_daily_bin28.fits evtable="EVENTS" scfile=/scratch/kocevski/664816/ft2_4FGL_J2307.6+1451_daily_bin28.fits sctable="SC_DATA" expcube=/scratch/kocevski/664816/ltcube_246585601_246844801_4FGL_J2307.6+1451_daily_bin28.fits outfile=/scratch/kocevski/664816/expmap_246585601_246844801_4FGL_J2307.6+1451_daily_bin28.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/664816/ltcube_246585601_246844801_4FGL_J2307.6+1451_daily_bin28.fits
.....................!
real 190.63
user 185.04
sys 5.22

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/664816/ft1_filtered_4FGL_J2307.6+1451_daily_bin28.fits scfile=/scratch/kocevski/664816/ft2_4FGL_J2307.6+1451_daily_bin28.fits outfile=/scratch/kocevski/664816/cmap_246585601_246844801_4FGL_J2307.6+1451_daily_bin28.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/664816/ft1_filtered_4FGL_J2307.6+1451_daily_bin28.fits scfile=/scratch/kocevski/664816/ft2_4FGL_J2307.6+1451_daily_bin28.fits outfile=/scratch/kocevski/664816/cmap_HighResolution_246585601_246844801_4FGL_J2307.6+1451_daily_bin28.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/664816/ft1_filtered_4FGL_J2307.6+1451_daily_bin28.fits evtable="EVENTS" scfile=/scratch/kocevski/664816/ft2_4FGL_J2307.6+1451_daily_bin28.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/664816/Model_4FGL_J2307.6+1451_daily_bin28.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/664816/ft1_filtered_4FGL_J2307.6+1451_daily_bin28.fits.....................!
real 108.12
user 106.63
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.0051       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.4323       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.6989       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.8667       1.0000         .10000E-03   10000.    
    12 'Prefactor '    21.254       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.508       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .86366       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.0164       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.6701       1.0000         .10000E-03   10000.    
    18 'norm      '    84.209       1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.0656       1.0000         .10000E-03   10000.    
    20 'Prefactor '    18.872       1.0000         .10000E-03   10000.    
    21 'norm      '    13.377       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.7298       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2021       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .78880       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=   9797.083     FROM MIGRAD    STATUS=CONVERGED    524 CALLS     2356 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.0108        .43053E-06** at limit **
   2  Prefactor     .10000E-03    11.345        .93332E-06** at limit **
   3  Prefactor     1.0050        .24402       -.11231E-08    .29075E-05
   4  Prefactor     .10000E-03    2.8839       -.77124E-08** at limit **
   5  norm          1.4323        1.1557       -.16901E-07   -.57572E-05
   6  Prefactor     .10000E-03    19.826       -.30642E-07** at limit **
   7  Prefactor     .10000E-03    4.0181        .44392E-08** at limit **
   8  Prefactor     .10000E-03    10.220       -.12279E-05** at limit **
   9  Prefactor     3.6989        .30906       -.43545E-08    .62280E-03
  10  Prefactor     .10000E-03    2.3623       -.19017E-08** at limit **
  11  Prefactor     2.8614        52.300       -.67472E-05   -.98787E-04
  12  Prefactor     21.254        9.7903       -.44137E-07    .17764E-04
  13  Prefactor     .10000E-03    2.7262       -.21441E-07** at limit **
  14  Prefactor     12.507        20.598       -.31613E-06   -.19302E-04
  15  Prefactor     .86170        3.2097       -.14389E-06   -.41910E-04
  16  Prefactor     5.0159        7.5525        .20473E-05   -.68957E-03
  17  Prefactor     5.6751        11.756        .53152E-06    .79391E-04
  18  norm          84.211        18.977        .24002E-06    .19374E-03
  19  Prefactor     8.0651        11.693       -.21284E-06   -.42199E-04
  20  Prefactor     18.867        30.719       -.35238E-05   -.16847E-03
  21  norm          13.375        13.066       -.30611E-06   -.63625E-04
  22  Prefactor     1.7297        6.8048        .68665E-06   -.15973E-03
  23  Normalizat    1.2021        .22951        .48080E-06    .14192E-04
  24  Prefactor     .78883        .11885       -.15137E-06    .69772E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.00501
  Prefactor  = 0.0001
  norm       = 1.43235
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.69893
  Prefactor  = 0.0001
  Prefactor  = 2.86144
  Prefactor  = 21.2543
  Prefactor  = 0.0001
  Prefactor  = 12.5071
  Prefactor  = 0.861695
  Prefactor  = 5.01589
  Prefactor  = 5.67506
  norm       = 84.2114
  Prefactor  = 8.06508
  Prefactor  = 18.867
  norm       = 13.3754
  Prefactor  = 1.72968
  Normalizat = 1.20211
  Prefactor  = 0.788831
 **********
 **   18 **HESSE 
 **********

 FCN=   9797.083     FROM HESSE     STATUS=OK           403 CALLS     2759 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.0535        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.0050        .24418        .22744E-04   -1.5507    
   4  Prefactor     .10000E-03    2.8928        .16414E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.4323        1.1615        .93122E-04   -1.5469    
   6  Prefactor     .10000E-03    19.856        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.0321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    10.339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.6989        .31047        .14900E-04   -1.5323    
  10  Prefactor     .10000E-03    2.3639        .14857E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.8614        57.024        .24009E-03   -1.5370    
  12  Prefactor     21.254        9.7906        .86881E-04   -1.4786    
  13  Prefactor     .10000E-03    2.7284        .15960E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     12.507        20.644        .11326E-03   -1.5001    
  15  Prefactor     .86170        12.140        .31410E-02   -1.5522    
  16  Prefactor     5.0159        8.6463        .89771E-03   -1.5260    
  17  Prefactor     5.6751        11.820        .16869E-03   -1.5231    
  18  norm          84.211        19.400        .43775E-04   -1.3870    
  19  Prefactor     8.0651        11.704        .14117E-03   -1.5140    
  20  Prefactor     18.867        31.407        .92196E-04   -1.4839    
  21  norm          13.375        13.084        .10952E-03   -1.4976    
  22  Prefactor     1.7297        6.9094        .31921E-03   -1.5445    
  23  Normalizat    1.2021        .27197        .36511E-03   -.86538    
  24  Prefactor     .78883        .13992        .24425E-03   -1.0014    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.7033e-08
Minuit parameter uncertainties:
  1  3.29636e-05
  2  8.03167e-05
  3  0.244184
  4  1.2203e-06
  5  1.16157
  6  5.7406e-06
  7  1.61513e-06
  8  0.00011594
  9  0.310468
  10  6.40455e-07
  11  25.5752
  12  9.79138
  13  1.13775e-06
  14  20.6558
  15  6.46995
  16  8.64843
  17  11.8253
  18  19.4012
  19  11.7069
  20  31.4343
  21  13.0873
  22  6.91256
  23  0.272292
  24  0.139983
Done.

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

Extracting fit parameters...

4FGL J2307.6+1451
   Spectrum: PowerLaw
343    Prefactor:  2.125e+01  9.791e+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:  7.888e-01  1.400e-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.202e+00  2.723e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.18
Ra Dec: 346.922 14.864
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 1.15e-07 +/- 5.30e-08
Energy Flux (Fixed Index): 5.32e-05 +/- 2.45e-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) = 9796.43845837
delta logL = 0.644149830134

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9796.43015644
delta logL = 0.65245175879

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.183       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6442       1.0000          .0000       10.000    
     3 'Normalizat'    1.1482       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80872       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=   9796.430     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      278 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.183        12.168        .11980E-03    .51054E-04
   2  Index         2.6442        .53549        .35646E-02    .10977E-02
   3  Normalizat    1.1482        .25546        .37154E-03    .14137E-04
   4  Prefactor     .80875        .14070        .24134E-03    .14189E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.1832
  Index      = 2.64422
  Normalizat = 1.14817
  Prefactor  = 0.808746
 **********
 **   18 **HESSE 
 **********

 FCN=   9796.430     FROM HESSE     STATUS=OK            25 CALLS      303 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.183        10.068        .47920E-05   -1.5039    
   2  Index         2.6442        .44313        .71293E-03   -.49060    
   3  Normalizat    1.1482        .25377        .14862E-04   -.88220    
   4  Prefactor     .80875        .14000        .96535E-05   -.99407    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.15795e-11
Minuit parameter uncertainties:
  1  10.0694
  2  0.443881
  3  0.254044
  4  0.140058
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/664816': 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) = 9796.43015642
delta logL = 0.652451780777

Extracting fit parameters...

4FGL J2307.6+1451
   Spectrum: PowerLaw
343    Prefactor:  1.118e+01  1.007e+01  1.000e-04  1.000e+04 ( 1.000e-13)
344        Index:  2.644e+00  4.439e-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:  8.087e-01  1.401e-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.148e+00  2.540e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.59
Ra Dec: 346.922 14.864
Photon Index (Free Index): 2.64 +/- 0.44
Photon Flux (Free Index): 1.70e-07 +/- 7.92e-08
Energy Flux (Free Index): 4.29e-05 +/- 1.83e-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/664816/cmap_HighResolution_246585601_246844801_4FGL_J2307.6+1451_daily_bin28.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.15e-07', energy_flux2='4.29e-05', photon_flux_error='5.30e-08', dlogl='6.52e-01', energy_flux='5.32e-05', photon_flux2='1.70e-07', job_status='DONE', time_completed='2021-09-29 07:06:03.578131', photon_index_error2='0.44', photon_index2='2.64', ts='9.18', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', energy_flux_error2='1.83e-05', EG='1.20', time_epoch_completed='1632924363.58', return_code='0', job_id='664816', GAL2='0.81', EG2='1.15', return_code2='0', energy_flux_error='2.45e-05', photon_flux_error2='7.92e-08', ts2='10.59', photon_index='2.18' WHERE bin_id='28' AND source_name='4FGL J2307.6+1451' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 07:06:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0286>
Subject: Job 664816: <4FGL_J2307.6+1451_daily_bin28> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2307.6+1451_daily_bin28 346.922 14.8644 246585601 246844801 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 :                                   760.34 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             298.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   944 sec.
    Turnaround time :                            946 sec.

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

