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


Performing analysis on: 4FGL_J2307.6+1451_daily_bin1719
RA = 346.922, Dec = 14.8644
tmin = 684892801, tmax = 685152001
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='668278', job_status='RUN', time_executed='2022-09-18 01:24:14.985472', time_epoch_executed='1663489454.99' WHERE source_name='4FGL J2307.6+1451' and cadence='daily' and bin_id='1719'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/668278

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/668278/ft1_4FGL_J2307.6+1451_daily_bin1719.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/668278/ft2_4FGL_J2307.6+1451_daily_bin1719.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/668278/ft1_4FGL_J2307.6+1451_daily_bin1719.fits outfile=/scratch/kocevski/668278/ft1_filteredMKT_4FGL_J2307.6+1451_daily_bin1719.fits ra=346.922 dec=14.8644 rad=12.0 tmin=684892801.0 tmax=685152001.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.18
user 2.94
sys 0.21

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

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

Number of photons that the gtmktime cut: 482

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/668278/ft1_filtered_4FGL_J2307.6+1451_daily_bin1719.fits" evtable="EVENTS" scfile=/scratch/kocevski/668278/ft2_4FGL_J2307.6+1451_daily_bin1719.fits sctable="SC_DATA" outfile=/scratch/kocevski/668278/ltcube_684892801_685152001_4FGL_J2307.6+1451_daily_bin1719.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/668278/ft2_4FGL_J2307.6+1451_daily_bin1719.fits
.....................!
real 16.85
user 16.46
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/668278/ft1_filtered_4FGL_J2307.6+1451_daily_bin1719.fits evtable="EVENTS" scfile=/scratch/kocevski/668278/ft2_4FGL_J2307.6+1451_daily_bin1719.fits sctable="SC_DATA" expcube=/scratch/kocevski/668278/ltcube_684892801_685152001_4FGL_J2307.6+1451_daily_bin1719.fits outfile=/scratch/kocevski/668278/expmap_684892801_685152001_4FGL_J2307.6+1451_daily_bin1719.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/668278/ltcube_684892801_685152001_4FGL_J2307.6+1451_daily_bin1719.fits
.....................!
real 193.12
user 187.37
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/668278/ft1_filtered_4FGL_J2307.6+1451_daily_bin1719.fits scfile=/scratch/kocevski/668278/ft2_4FGL_J2307.6+1451_daily_bin1719.fits outfile=/scratch/kocevski/668278/cmap_684892801_685152001_4FGL_J2307.6+1451_daily_bin1719.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/668278/ft1_filtered_4FGL_J2307.6+1451_daily_bin1719.fits scfile=/scratch/kocevski/668278/ft2_4FGL_J2307.6+1451_daily_bin1719.fits outfile=/scratch/kocevski/668278/cmap_HighResolution_684892801_685152001_4FGL_J2307.6+1451_daily_bin1719.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=346.922 yref=14.8644 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .56656E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    3.0267       1.0000          .0000       .10000E+07
     3 'Prefactor '    .50836       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.6229       1.0000         .10000E-03   10000.    
     5 'norm      '    3.4002       1.0000          .0000       .10000E+07
     6 'Prefactor '    .43854E-08   1.0000          .0000       .10000E+07
     7 'Prefactor '    8.5800       1.0000          .0000       .10000E+07
     8 'Prefactor '    4.4278       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .78174E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    10.095       1.0000          .0000       .10000E+07
    11 'Prefactor '    36.619       1.0000          .0000       .10000E+07
    12 'Prefactor '    20.414       1.0000          .0000       .10000E+07
    13 'Prefactor '    33.771       1.0000          .0000       .10000E+07
    14 'Prefactor '    .32974E-07   1.0000          .0000       .10000E+07
    15 'norm      '    .39810E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    40.287       1.0000          .0000       .10000E+07
    17 'Prefactor '    .11611E-04   1.0000          .0000       .10000E+07
    18 'norm      '    .44409E-08   1.0000          .0000       .10000E+07
    19 'Prefactor '    .54678E-07   1.0000          .0000       .10000E+07
    20 'Normalizat'    .74022       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .86843       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=   5378.473     FROM MIGRAD    STATUS=CONVERGED    142 CALLS     1978 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .21064E-03    40.726       -.31936E-06** at limit **
   2  Prefactor     3.0232        5.2724       -.50133E-07   -.38521E-01
   3  Prefactor     .50842        .31099       -.15708E-06   -.19473E-02
   4  Prefactor     7.6118        2.5516       -.17078E-06   -.29137E-02
   5  norm          3.4003        2.1854       -.30490E-07   -.51894E-02
   6  Prefactor     .65281E-07    24.014        .28841E-06** at limit **
   7  Prefactor     8.5822        15.486        .53977E-07   -.23788E-03
   8  Prefactor     4.4278        .45195       -.11237E-06   -.52013E-02
   9  Prefactor     .62627E-04    132.65       -.30420E-06** at limit **
  10  Prefactor     10.096        9.9047        .36096E-07   -.90472E-03
  11  Prefactor     36.609        2.9312        .52917E-08    .30648E-01
  12  Prefactor     20.418        11.628        .18047E-07   -.86424E-02
  13  Prefactor     33.701        5.8980        .12106E-07   -.67310E-01
  14  Prefactor     .27756E-09    14.397        .18048E-06** at limit **
  15  norm          .40617E-04    58.531       -.33726E-06** at limit **
  16  Prefactor     40.259        20.606       -.11354E-06    .23667E-01
  17  Prefactor     .86819E-07    45.684        .28984E-06** at limit **
  18  norm          .43854E-08    11.673       -.31461E-07** at limit **
  19  Prefactor     .55511E-10    3.6851       -.62131E-07** at limit **
  20  Normalizat    .74027        .35910        .76397E-05   -.17976E-05
  21  Prefactor     .86835        .18808       -.34414E-05   -.17381E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000210644
  Prefactor  = 3.0232
  Prefactor  = 0.508419
  Prefactor  = 7.61182
  norm       = 3.40031
  Prefactor  = 6.52811e-08
  Prefactor  = 8.5822
  Prefactor  = 4.42775
  Prefactor  = 6.26266e-05
  Prefactor  = 10.0962
  Prefactor  = 36.6092
  Prefactor  = 20.4179
  Prefactor  = 33.7014
  Prefactor  = 2.77556e-10
  norm       = 4.06167e-05
  Prefactor  = 40.2585
  Prefactor  = 8.68194e-08
  norm       = 4.38538e-09
  Prefactor  = 5.55112e-11
  Normalizat = 0.740269
  Prefactor  = 0.868347
 **********
 **   18 **HESSE 
 **********

 FCN=   5378.473     FROM HESSE     STATUS=OK           361 CALLS     2339 TOTAL
                     EDM=   .32E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .21064E-03    112.59        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.0232        26.153        .58304E-03   -1.5673    
   3  Prefactor     .50842        .33509        .69377E-02   -1.5565    
   4  Prefactor     7.6118        17.373        .36312E-02   -1.5156    
   5  norm          3.4003        2.1874        .54841E-03   -1.5671    
   6  Prefactor     .65281E-07    24.052        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.5822        15.748        .34198E-03   -1.5649    
   8  Prefactor     4.4278        .45236        .33492E-02   -1.5287    
   9  Prefactor     .62627E-04    153.24        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.096        9.9113        .31512E-03   -1.5644    
  11  Prefactor     36.609        31.771        .16527E-03   -1.5587    
  12  Prefactor     20.418        11.737        .22140E-03   -1.5618    
  13  Prefactor     33.701        32.194        .17210E-03   -1.5592    
  14  Prefactor     .27756E-09    14.413        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .40617E-04    76.878        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     40.259        22.375        .15756E-03   -1.5581    
  17  Prefactor     .86819E-07    46.417        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .43854E-08    11.682        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .55511E-10    3.6846        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .74027        .33153        .10365       -1.0232    
  21  Prefactor     .86835        .16580        .44601E-01   -.97256    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.15091e-06
Minuit parameter uncertainties:
  1  0.308003
  2  17.784
  3  0.335096
  4  17.3842
  5  2.18745
  6  0.00250663
  7  15.748
  8  0.45236
  9  0.195935
  10  9.91135
  11  31.7711
  12  11.7372
  13  32.1946
  14  0.000125067
  15  0.111761
  16  22.3747
  17  0.00401507
  18  0.000454004
  19  3.49427e-05
  20  0.332437
  21  0.165892
Done.

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

Extracting fit parameters...

4FGL J2307.6+1451
   Spectrum: PowerLaw
343    Prefactor:  1.010e+01  9.911e+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

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  8.683e-01  1.659e-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:  7.403e-01  3.324e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.53
Ra Dec: 346.922 14.864
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 5.46e-08 +/- 5.36e-08
Energy Flux (Fixed Index): 2.53e-05 +/- 2.48e-05

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

Saving results to:
/scratch/kocevski/668278/likelihoodResults_684892801_685152001_4FGL_J2307.6+1451_daily_bin1719.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) = 5378.32749091
delta logL = 0.14506308918

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5378.32200586
delta logL = 0.15054813167

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.148       1.0000          .0000       .10000E+07
     2 'Index     '    1.7809       1.0000          .0000       10.000    
     3 'Normalizat'    .75469       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86364       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.

 FCN=   5378.322     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      274 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.163        655.39        .27599E-03   -.69467E-03
   2  Index         1.7820        5.8101        .19152        .58605E-05
   3  Normalizat    .75435        .30364        .10285        .44820E-04
   4  Prefactor     .86392        .10711        .44540E-01   -.75627E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.1625
  Index      = 1.78204
  Normalizat = 0.754352
  Prefactor  = 0.86392
 **********
 **   18 **HESSE 
 **********

 FCN=   5378.322     FROM HESSE     STATUS=OK            33 CALLS      307 TOTAL
                     EDM=   .65E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.163        13.310        .11040E-04   -1.5635    
   2  Index         1.7820        .68850        .10544E-01   -.69918    
   3  Normalizat    .75435        .34552        .45601E-03   -1.0178    
   4  Prefactor     .86392        .18742        .22952E-03   -.97413    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.49782e-11
Minuit parameter uncertainties:
  1  13.3104
  2  0.692271
  3  0.346526
  4  0.187557
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/668278': 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) = 5378.32200197
delta logL = 0.150552020828

Extracting fit parameters...

4FGL J2307.6+1451
   Spectrum: PowerLaw
343    Prefactor:  1.316e+01  1.331e+01  0.000e+00  1.000e+06 ( 1.000e-13)
344        Index:  1.782e+00  6.923e-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.639e-01  1.876e-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:  7.544e-01  3.465e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.85
Ra Dec: 346.922 14.864
Photon Index (Free Index): 1.78 +/- 0.69
Photon Flux (Free Index): 3.27e-08 +/- 4.60e-08
Energy Flux (Free Index): 4.13e-05 +/- 6.15e-05

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/668278/cmap_HighResolution_684892801_685152001_4FGL_J2307.6+1451_daily_bin1719.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.55e-02', comment='SUCCESS', photon_flux='5.46e-08', energy_flux2='4.13e-05', photon_flux_error='5.36e-08', dlogl='1.51e-01', energy_flux='2.53e-05', photon_flux2='3.27e-08', job_status='DONE', time_completed='2022-09-18 01:33:51.623537', photon_index_error2='0.69', photon_index2='1.78', ts='3.53', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='2.04e-07', energy_flux_error2='6.15e-05', EG='0.74', time_epoch_completed='1663490031.62', return_code='0', job_id='668278', GAL2='0.86', EG2='0.75', return_code2='0', energy_flux_error='2.48e-05', photon_flux_error2='4.60e-08', ts2='3.85', photon_index='2.18' WHERE bin_id='1719' AND source_name='4FGL J2307.6+1451' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 18 01:33:51 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0128>
Subject: Job 668278: <4FGL_J2307.6+1451_daily_bin1719> in cluster <slac> Done

Job <4FGL_J2307.6+1451_daily_bin1719> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Sep 18 01:20:23 2022
Job was executed on host(s) <bullet0128>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 18 01:21:01 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 18 01:21:01 2022
Terminated at Sun Sep 18 01:33:52 2022
Results reported at Sun Sep 18 01:33:52 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2307.6+1451_daily_bin1719 346.922 14.8644 684892801 685152001 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 :                                   578.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             253.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   770 sec.
    Turnaround time :                            809 sec.

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

