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


Performing analysis on: 4FGL_J2307.6+1451_daily_bin1225
RA = 346.922, Dec = 14.8644
tmin = 556848001, tmax = 557107201
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='671055', job_status='RUN', time_executed='2021-09-29 07:13:01.998820', time_epoch_executed='1632924782.0' WHERE source_name='4FGL J2307.6+1451' and cadence='daily' and bin_id='1225'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/671055

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/671055/ft1_4FGL_J2307.6+1451_daily_bin1225.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/671055/ft2_4FGL_J2307.6+1451_daily_bin1225.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/671055/ft1_4FGL_J2307.6+1451_daily_bin1225.fits outfile=/scratch/kocevski/671055/ft1_filteredMKT_4FGL_J2307.6+1451_daily_bin1225.fits ra=346.922 dec=14.8644 rad=12.0 tmin=556848001.0 tmax=557107201.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.63
user 3.36
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/671055/ft2_4FGL_J2307.6+1451_daily_bin1225.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/671055/ft1_filteredMKT_4FGL_J2307.6+1451_daily_bin1225.fits evtable="EVENTS" outfile="/scratch/kocevski/671055/ft1_filtered_4FGL_J2307.6+1451_daily_bin1225.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.48
user 0.32
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/671055/ft1_filtered_4FGL_J2307.6+1451_daily_bin1225.fits evtable="EVENTS" scfile=/scratch/kocevski/671055/ft2_4FGL_J2307.6+1451_daily_bin1225.fits sctable="SC_DATA" expcube=/scratch/kocevski/671055/ltcube_556848001_557107201_4FGL_J2307.6+1451_daily_bin1225.fits outfile=/scratch/kocevski/671055/expmap_556848001_557107201_4FGL_J2307.6+1451_daily_bin1225.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/671055/ltcube_556848001_557107201_4FGL_J2307.6+1451_daily_bin1225.fits
.....................!
real 190.34
user 185.14
sys 4.42

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/671055/ft1_filtered_4FGL_J2307.6+1451_daily_bin1225.fits scfile=/scratch/kocevski/671055/ft2_4FGL_J2307.6+1451_daily_bin1225.fits outfile=/scratch/kocevski/671055/cmap_556848001_557107201_4FGL_J2307.6+1451_daily_bin1225.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.58
user 0.36
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/671055/ft1_filtered_4FGL_J2307.6+1451_daily_bin1225.fits scfile=/scratch/kocevski/671055/ft2_4FGL_J2307.6+1451_daily_bin1225.fits outfile=/scratch/kocevski/671055/cmap_HighResolution_556848001_557107201_4FGL_J2307.6+1451_daily_bin1225.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/671055/ft1_filtered_4FGL_J2307.6+1451_daily_bin1225.fits evtable="EVENTS" scfile=/scratch/kocevski/671055/ft2_4FGL_J2307.6+1451_daily_bin1225.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/671055/Model_4FGL_J2307.6+1451_daily_bin1225.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/671055/ft1_filtered_4FGL_J2307.6+1451_daily_bin1225.fits.....................!
real 62.99
user 61.69
sys 1.10

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.1184       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .55968       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .61417       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.2673       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.9437       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.2384       1.0000         .10000E-03   10000.    
    13 'Prefactor '    30.187       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.6481       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    26.177       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12139E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10140E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    48.724       1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.9409       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .30430       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.3432       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=   5479.768     FROM MIGRAD    STATUS=CONVERGED    552 CALLS     2756 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.550        .15019E-05** at limit **
   2  Prefactor     8.1218        17.222        .44690E-06    .69746E-05
   3  Prefactor     .55981        .30953        .38519E-08   -.11977E-03
   4  Prefactor     .10000E-03    8.4260       -.20255E-07** at limit **
   5  norm          .61424        .77031        .19083E-07    .97973E-04
   6  Prefactor     .10000E-03    14.458       -.17718E-05** at limit **
   7  Prefactor     .10000E-03    3.7560        .12555E-07** at limit **
   8  Prefactor     .10000E-03    44.282       -.10594E-06** at limit **
   9  Prefactor     1.2673        .26519       -.68858E-09    .25447E-03
  10  Prefactor     6.9458        10.344       -.13974E-05   -.12049E-03
  11  Prefactor     .10000E-03    143.46       -.54707E-06** at limit **
  12  Prefactor     7.2374        7.2203        .39047E-06   -.62185E-03
  13  Prefactor     30.188        27.591        .77660E-07    .10866E-04
  14  Prefactor     7.6543        25.065        .36551E-07   -.50220E-05
  15  Prefactor     .10000E-03    4.8074        .29353E-07** at limit **
  16  Prefactor     26.178        33.158       -.94361E-06    .62576E-05
  17  Prefactor     .10000E-03    82.081        .49914E-06** at limit **
  18  norm          .10000E-03    8.1262        .12180E-06** at limit **
  19  Prefactor     .10000E-03    7.9313       -.61326E-07** at limit **
  20  Prefactor     48.730        75.692        .41058E-05    .40134E-04
  21  norm          .10000E-03    12.650        .25030E-07** at limit **
  22  Prefactor     7.9417        8.7303        .36809E-06   -.53314E-03
  23  Normalizat    .30406        .42868       -.10717E-05   -.21485E-04
  24  Prefactor     1.3432        .22672        .31776E-06    .15391E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 8.12184
  Prefactor  = 0.559811
  Prefactor  = 0.0001
  norm       = 0.614242
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.26727
  Prefactor  = 6.94576
  Prefactor  = 0.0001
  Prefactor  = 7.23742
  Prefactor  = 30.1877
  Prefactor  = 7.65432
  Prefactor  = 0.0001
  Prefactor  = 26.178
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 48.73
  norm       = 0.0001
  Prefactor  = 7.94165
  Normalizat = 0.304061
  Prefactor  = 1.34325
 **********
 **   18 **HESSE 
 **********

 FCN=   5479.768     FROM HESSE     STATUS=OK           399 CALLS     3155 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.1218        16.894        .14071E-03   -1.5138    
   3  Prefactor     .55981        .30341        .28930E-04   -1.5558    
   4  Prefactor     .10000E-03    8.4542        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .61424        .74216        .70972E-03   -1.5551    
   6  Prefactor     .10000E-03    14.519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.7610        .14009E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    44.433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.2673        .26050        .16050E-04   -1.5483    
  10  Prefactor     6.9458        10.392        .15225E-03   -1.5181    
  11  Prefactor     .10000E-03    143.71        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.2374        9.0206        .74544E-03   -1.5170    
  13  Prefactor     30.188        27.476        .72923E-04   -1.4609    
  14  Prefactor     7.6543        24.346        .14501E-03   -1.5155    
  15  Prefactor     .10000E-03    4.8573        .15831E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     26.178        33.114        .78298E-04   -1.4684    
  17  Prefactor     .10000E-03    83.858        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    8.1383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.9708        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     48.730        76.101        .57448E-04   -1.4311    
  21  norm          .10000E-03    12.686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     7.9417        10.371        .71144E-03   -1.5144    
  23  Normalizat    .30406        .32501        .62930E-03   -1.2260    
  24  Prefactor     1.3432        .18341        .18098E-03   -.82030    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.98425e-10
Minuit parameter uncertainties:
  1  5.86747e-05
  2  16.9041
  3  0.303408
  4  1.77032e-06
  5  0.742169
  6  7.22017e-05
  7  1.80083e-06
  8  1.50081e-05
  9  0.260496
  10  10.3947
  11  7.92322e-05
  12  9.0223
  13  27.4878
  14  24.3778
  15  1.41364e-07
  16  33.1373
  17  1.36174e-05
  18  8.56098e-07
  19  9.01514e-06
  20  76.2538
  21  1.52905e-06
  22  10.3731
  23  0.327049
  24  0.183501
Done.

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

Extracting fit parameters...

4FGL J2307.6+1451
   Spectrum: PowerLaw
343    Prefactor:  7.237e+00  9.022e+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.343e+00  1.835e-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:  3.041e-01  3.270e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/671055/likelihoodResults_556848001_557107201_4FGL_J2307.6+1451_daily_bin1225.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) = 5479.76791625
delta logL = 0.000177451534

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5479.76782647
delta logL = 0.000267226869255

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.3749       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1664       1.0000          .0000       10.000    
     3 'Normalizat'    .30417       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3434       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5479.768     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      272 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.3922        12.053        .73845E-03   -.14025E-04
   2  Index         2.1678        .72742        .79902E-02    .33604E-03
   3  Normalizat    .30451        .31046        .62886E-03   -.39591E-05
   4  Prefactor     1.3431        .18198        .18099E-03   -.26821E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.39224
  Index      = 2.16776
  Normalizat = 0.304512
  Prefactor  = 1.34306
 **********
 **   18 **HESSE 
 **********

 FCN=   5479.768     FROM HESSE     STATUS=OK            27 CALLS      299 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.3922        11.312        .29538E-04   -1.5164    
   2  Index         2.1678        .68325        .15980E-02   -.60219    
   3  Normalizat    .30451        .31004        .25154E-04   -1.2257    
   4  Prefactor     1.3431        .18174        .72397E-05   -.82035    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14286e-12
Minuit parameter uncertainties:
  1  11.3157
  2  0.686418
  3  0.311809
  4  0.181828
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/671055': 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) = 5479.76781707
delta logL = 0.000276628713436

Extracting fit parameters...

4FGL J2307.6+1451
   Spectrum: PowerLaw
343    Prefactor:  7.392e+00  1.132e+01  1.000e-04  1.000e+04 ( 1.000e-13)
344        Index:  2.168e+00  6.864e-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.343e+00  1.818e-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:  3.045e-01  3.118e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/671055/cmap_HighResolution_556848001_557107201_4FGL_J2307.6+1451_daily_bin1225.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.18e-02', job_status='DONE', photon_flux_upper_limit='1.56e-07', time_completed='2021-09-29 07:23:59.482385', job_id='671055', GAL2='1.34', fit_tolerance='1e-08', EG2='0.30', EG='0.30', time_epoch_completed='1632925439.48', return_code2='0', ts='0.92', comment='SUCCESS', return_code='0', GAL='1.34', dlogl='2.77e-04', ts2='0.92', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1225' AND source_name='4FGL J2307.6+1451' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 07:23:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 671055: <4FGL_J2307.6+1451_daily_bin1225> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2307.6+1451_daily_bin1225 346.922 14.8644 556848001 557107201 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 :                                   608.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             290.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   805 sec.
    Turnaround time :                            808 sec.

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

