aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 160 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 7721
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2307.6+1451_daily_bin1720
RA = 346.922, Dec = 14.8644
tmin = 685152001, tmax = 685411201
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='849952', job_status='RUN', time_executed='2022-09-21 01:00:03.022830', time_epoch_executed='1663747203.02' WHERE source_name='4FGL J2307.6+1451' and cadence='daily' and bin_id='1720'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/849952

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/849952/ft1_4FGL_J2307.6+1451_daily_bin1720.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/849952/ft2_4FGL_J2307.6+1451_daily_bin1720.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/849952/ft1_4FGL_J2307.6+1451_daily_bin1720.fits outfile=/scratch/kocevski/849952/ft1_filteredMKT_4FGL_J2307.6+1451_daily_bin1720.fits ra=346.922 dec=14.8644 rad=12.0 tmin=685152001.0 tmax=685411201.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.73
user 3.47
sys 0.23

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

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

Number of photons that the gtmktime cut: 570

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/849952/ft1_filtered_4FGL_J2307.6+1451_daily_bin1720.fits" evtable="EVENTS" scfile=/scratch/kocevski/849952/ft2_4FGL_J2307.6+1451_daily_bin1720.fits sctable="SC_DATA" outfile=/scratch/kocevski/849952/ltcube_685152001_685411201_4FGL_J2307.6+1451_daily_bin1720.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/849952/ft2_4FGL_J2307.6+1451_daily_bin1720.fits
.....................!
real 15.12
user 14.76
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/849952/ft1_filtered_4FGL_J2307.6+1451_daily_bin1720.fits evtable="EVENTS" scfile=/scratch/kocevski/849952/ft2_4FGL_J2307.6+1451_daily_bin1720.fits sctable="SC_DATA" expcube=/scratch/kocevski/849952/ltcube_685152001_685411201_4FGL_J2307.6+1451_daily_bin1720.fits outfile=/scratch/kocevski/849952/expmap_685152001_685411201_4FGL_J2307.6+1451_daily_bin1720.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/849952/ltcube_685152001_685411201_4FGL_J2307.6+1451_daily_bin1720.fits
.....................!
real 191.02
user 186.19
sys 4.46

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/849952/ft1_filtered_4FGL_J2307.6+1451_daily_bin1720.fits scfile=/scratch/kocevski/849952/ft2_4FGL_J2307.6+1451_daily_bin1720.fits outfile=/scratch/kocevski/849952/cmap_685152001_685411201_4FGL_J2307.6+1451_daily_bin1720.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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/849952/ft1_filtered_4FGL_J2307.6+1451_daily_bin1720.fits scfile=/scratch/kocevski/849952/ft2_4FGL_J2307.6+1451_daily_bin1720.fits outfile=/scratch/kocevski/849952/cmap_HighResolution_685152001_685411201_4FGL_J2307.6+1451_daily_bin1720.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.56
user 0.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/849952/ft1_filtered_4FGL_J2307.6+1451_daily_bin1720.fits', '/scratch/kocevski/849952/ft2_4FGL_J2307.6+1451_daily_bin1720.fits', expMap='/scratch/kocevski/849952/expmap_685152001_685411201_4FGL_J2307.6+1451_daily_bin1720.fits', expCube='/scratch/kocevski/849952/ltcube_685152001_685411201_4FGL_J2307.6+1451_daily_bin1720.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/849952/Model_4FGL_J2307.6+1451_daily_bin1720.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  0.000e+00  1.000e+06 ( 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/849952/ft1_filtered_4FGL_J2307.6+1451_daily_bin1720.fits
Spacecraft file(s): /scratch/kocevski/849952/ft2_4FGL_J2307.6+1451_daily_bin1720.fits
Exposure map: /scratch/kocevski/849952/expmap_685152001_685411201_4FGL_J2307.6+1451_daily_bin1720.fits
Exposure cube: /scratch/kocevski/849952/ltcube_685152001_685411201_4FGL_J2307.6+1451_daily_bin1720.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/849952/Model_4FGL_J2307.6+1451_daily_bin1720.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) = 6362.29340319

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .67924E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .25944E-01   1.0000          .0000       .10000E+07
     3 'Prefactor '    .39518       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.8526       1.0000          .0000       .10000E+07
     6 'Prefactor '    .11845       1.0000          .0000       .10000E+07
     7 'Prefactor '    59.538       1.0000          .0000       .10000E+07
     8 'Prefactor '    2.6184       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.2257       1.0000          .0000       .10000E+07
    10 'Prefactor '    .12176E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    15.809       1.0000          .0000       .10000E+07
    12 'Prefactor '    .96350E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    12.388       1.0000          .0000       .10000E+07
    14 'Prefactor '    .62688E-03   1.0000          .0000       .10000E+07
    15 'norm      '    .31655E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    20.026       1.0000          .0000       .10000E+07
    17 'Prefactor '    .19307E-03   1.0000          .0000       .10000E+07
    18 'norm      '    .72979E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    .54164E-04   1.0000          .0000       .10000E+07
    20 'Normalizat'    .95960       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0577       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6362.275     FROM MIGRAD    STATUS=CONVERGED    149 CALLS     1591 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .27286E-04    125.01       -.97693E-06** at limit **
   2  Prefactor      .0000        21.465        .20275E-06** at limit **
   3  Prefactor     .39556        .24829        .96514E-06    .78309E-04
   4  Prefactor     .10000E-03    3.2642        .83145E-06** at limit **
   5  norm          5.8513        2.5711        .74326E-07   -.38330E-02
   6  Prefactor      .0000        30.625        .91547E-06** at limit **
   7  Prefactor     59.658        6.1514       -.12943E-07    .32608    
   8  Prefactor     2.6187        .35556       -.15617E-07    .37044E-03
   9  Prefactor     6.5954        34.796        .25158E-06   -.41442E-01
  10  Prefactor      .0000        2.1743       -.83717E-07** at limit **
  11  Prefactor     16.442        10.676        .10671E-06    .27446E-01
  12  Prefactor     .55511E-10    7.5397        .32936E-06** at limit **
  13  Prefactor     12.349        16.464       -.13216E-06   -.28283E-01
  14  Prefactor     .65531E-06    51.082       -.11786E-05** at limit **
  15  norm           .0000        4.8676        .51297E-06** at limit **
  16  Prefactor     19.899        13.524       -.35678E-07    .63703E-02
  17  Prefactor     .14704E-05    41.086       -.13463E-05** at limit **
  18  norm          .22204E-08    11.501       -.43099E-06** at limit **
  19  Prefactor      .0000        2.0086       -.21441E-07** at limit **
  20  Normalizat    .95862        .33189        .18854E-04    .10616E-04
  21  Prefactor     1.0576        .17610       -.74855E-05    .28182E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.72861e-05
  Prefactor  = 0
  Prefactor  = 0.395565
  Prefactor  = 0.0001
  norm       = 5.85125
  Prefactor  = 0
  Prefactor  = 59.6582
  Prefactor  = 2.61872
  Prefactor  = 6.59536
  Prefactor  = 0
  Prefactor  = 16.4417
  Prefactor  = 5.55112e-11
  Prefactor  = 12.3493
  Prefactor  = 6.55309e-07
  norm       = 0
  Prefactor  = 19.8986
  Prefactor  = 1.47038e-06
  norm       = 2.22045e-09
  Prefactor  = 0
  Normalizat = 0.958621
  Prefactor  = 1.05756
 **********
 **   18 **HESSE 
 **********

 FCN=   6362.275     FROM HESSE     STATUS=OK           355 CALLS     1946 TOTAL
                     EDM=   .21E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .27286E-04    153.09        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        21.078        .16673E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .39556        .25566        .68580E-02   -1.5582    
   4  Prefactor     .10000E-03    3.2671        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.8513        2.6196        .41489E-03   -1.5660    
   6  Prefactor      .0000        30.580        .13458E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     59.658        22.435        .12961E-03   -1.5553    
   8  Prefactor     2.6187        .35664        .37249E-02   -1.5384    
   9  Prefactor     6.5954        162.76        .43948E-03   -1.5657    
  10  Prefactor      .0000        2.1783        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     16.442        31.815        .25163E-03   -1.5627    
  12  Prefactor     .55511E-10    7.5439        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     12.349        16.585        .28435E-03   -1.5638    
  14  Prefactor     .65531E-06    55.627        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm           .0000        4.8690        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     19.899        13.531        .22353E-03   -1.5619    
  17  Prefactor     .14704E-05    44.904        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .22204E-08    11.517        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor      .0000        2.0154        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .95862        .29660        .93899E-01   -.94430    
  21  Prefactor     1.0576        .15304        .39477E-01   -.90835    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.13378e-06
Minuit parameter uncertainties:
  1  0.129267
  2  7.18839e-06
  3  0.255659
  4  1.70187e-06
  5  2.61958
  6  3.59712e-05
  7  22.4348
  8  0.356637
  9  65.5302
  10  1.29417e-06
  11  31.8158
  12  3.34885e-05
  13  16.5848
  14  0.0120756
  15  5.3246e-06
  16  13.5315
  17  0.0162512
  18  0.000318222
  19  1.97747e-06
  20  0.297114
  21  0.153104
Done.

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

Extracting fit parameters...

4FGL J2307.6+1451
   Spectrum: PowerLaw
343    Prefactor:  0.000e+00  1.294e-06  0.000e+00  1.000e+06 ( 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.058e+00  1.531e-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:  9.586e-01  2.971e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 346.922 14.864
Photon Flux Upper Limit: 6.72e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.11e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/849952/likelihoodResults_685152001_685411201_4FGL_J2307.6+1451_daily_bin1720.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): 102
logL (Free Index) = 6362.27827674
delta logL = -0.00340102008431

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6362.27487574
delta logL = -2.4439941626e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19484E-07   1.0000          .0000       .10000E+07
     2 'Index     '    .69506       1.0000          .0000       10.000    
     3 'Normalizat'    .95856       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0576       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6362.275     FROM MIGRAD    STATUS=CONVERGED     39 CALLS      237 TOTAL
                     EDM=   .68E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.4335        .42118E-03** at limit **
   2  Index         2.0737        1.6656       -.64297E-04     .0000    
   3  Normalizat    .95862        1.2908        .37125E-04   -.13799E-04
   4  Prefactor     1.0576        1.1829       -.12599E-04   -.35677E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.07371
  Normalizat = 0.958621
  Prefactor  = 1.05756
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6362.275     FROM HESSE     STATUS=FAILED         9 CALLS      246 TOTAL
                     EDM=   .68E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.4335        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .46691        1.8651       -.64297E-04   -.62520    
   3  Normalizat    .95862        1.2908        .37125E-04   -.94430    
   4  Prefactor     1.0576        1.1829       -.12599E-04   -.90835    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 6.78963e-13
Minuit parameter uncertainties:
  1  1.08941e-06
  2  1.71637
  3  1.33679
  4  1.21425
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/849952': 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): 101
logL (Free Index) = 6362.27487572
delta logL = 0.0

Extracting fit parameters...

4FGL J2307.6+1451
   Spectrum: PowerLaw
343    Prefactor:  0.000e+00  1.089e-06  0.000e+00  1.000e+06 ( 1.000e-13)
344        Index:  2.074e+00  1.716e+00  0.000e+00  1.000e+01 (-1.000e+00)
345        Scale:  1.928e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  1.058e+00  1.214e+00  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:  9.586e-01  1.337e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
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/849952/cmap_HighResolution_685152001_685411201_4FGL_J2307.6+1451_daily_bin1720.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.11e-03', job_status='DONE', photon_flux_upper_limit='6.72e-08', time_completed='2022-09-21 01:09:30.811067', job_id='849952', GAL2='1.06', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1663747770.81', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1720' AND source_name='4FGL J2307.6+1451' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 21 01:09:30 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 849952: <4FGL_J2307.6+1451_daily_bin1720> in cluster <slac> Done

Job <4FGL_J2307.6+1451_daily_bin1720> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Wed Sep 21 00:55:21 2022
Job was executed on host(s) <bullet0239>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 21 00:57:09 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 21 00:57:09 2022
Terminated at Wed Sep 21 01:09:31 2022
Results reported at Wed Sep 21 01:09:31 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2307.6+1451_daily_bin1720 346.922 14.8644 685152001 685411201 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 :                                   568.20 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             334.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   742 sec.
    Turnaround time :                            850 sec.

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

