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


Performing analysis on: 4FGL_J2307.6+1451_daily_bin1707
RA = 346.922, Dec = 14.8644
tmin = 681782401, tmax = 682041601
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='551565', job_status='RUN', time_executed='2022-08-13 00:39:02.794853', time_epoch_executed='1660376342.79' WHERE source_name='4FGL J2307.6+1451' and cadence='daily' and bin_id='1707'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/551565

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/551565/ft1_4FGL_J2307.6+1451_daily_bin1707.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/551565/ft2_4FGL_J2307.6+1451_daily_bin1707.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/551565/ft1_4FGL_J2307.6+1451_daily_bin1707.fits outfile=/scratch/kocevski/551565/ft1_filteredMKT_4FGL_J2307.6+1451_daily_bin1707.fits ra=346.922 dec=14.8644 rad=12.0 tmin=681782401.0 tmax=682041601.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 5.50
user 5.22
sys 0.23

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

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

Number of photons that the gtmktime cut: 608

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/551565/ft1_filtered_4FGL_J2307.6+1451_daily_bin1707.fits" evtable="EVENTS" scfile=/scratch/kocevski/551565/ft2_4FGL_J2307.6+1451_daily_bin1707.fits sctable="SC_DATA" outfile=/scratch/kocevski/551565/ltcube_681782401_682041601_4FGL_J2307.6+1451_daily_bin1707.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/551565/ft2_4FGL_J2307.6+1451_daily_bin1707.fits
.....................!
real 11.66
user 11.24
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/551565/ft1_filtered_4FGL_J2307.6+1451_daily_bin1707.fits evtable="EVENTS" scfile=/scratch/kocevski/551565/ft2_4FGL_J2307.6+1451_daily_bin1707.fits sctable="SC_DATA" expcube=/scratch/kocevski/551565/ltcube_681782401_682041601_4FGL_J2307.6+1451_daily_bin1707.fits outfile=/scratch/kocevski/551565/expmap_681782401_682041601_4FGL_J2307.6+1451_daily_bin1707.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/551565/ltcube_681782401_682041601_4FGL_J2307.6+1451_daily_bin1707.fits
.....................!
real 190.74
user 185.06
sys 5.33

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/551565/ft1_filtered_4FGL_J2307.6+1451_daily_bin1707.fits scfile=/scratch/kocevski/551565/ft2_4FGL_J2307.6+1451_daily_bin1707.fits outfile=/scratch/kocevski/551565/cmap_681782401_682041601_4FGL_J2307.6+1451_daily_bin1707.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/551565/ft1_filtered_4FGL_J2307.6+1451_daily_bin1707.fits scfile=/scratch/kocevski/551565/ft2_4FGL_J2307.6+1451_daily_bin1707.fits outfile=/scratch/kocevski/551565/cmap_HighResolution_681782401_682041601_4FGL_J2307.6+1451_daily_bin1707.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .84111       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.6122       1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    41.116       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.1211       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .90372       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.6722       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.7462       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.8643       1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.3356       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.8440       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10123E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.891       1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.582       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0039       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .91698       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=   6636.917     FROM MIGRAD    STATUS=CONVERGED    535 CALLS     2361 TOTAL
                     EDM=   .39E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.7211       -.25580E-05** at limit **
   2  Prefactor     .10000E-03    5.5680        .25797E-05** at limit **
   3  Prefactor     .84110        .27864        .21569E-07    .76223E-04
   4  Prefactor     4.6133        12.458       -.87817E-07    .35609E-05
   5  norm          .10000E-03    .87606        .33420E-07** at limit **
   6  Prefactor     .10000E-03    16.050        .98660E-06** at limit **
   7  Prefactor     41.117        15.895        .12801E-07   -.32868E-04
   8  Prefactor     4.1228        24.006        .14338E-05   -.15746E-05
   9  Prefactor     .90372        .21492        .70651E-08   -.30663E-03
  10  Prefactor     7.6725        10.400        .14326E-07   -.11867E-04
  11  Prefactor     .10000E-03    11.619       -.46218E-05** at limit **
  12  Prefactor     6.7460        8.7854        .17597E-06   -.13254E-03
  13  Prefactor     3.8639        7.7359       -.19030E-08   -.18007E-04
  14  Prefactor     9.3390        24.767        .38432E-05   -.26907E-05
  15  Prefactor     1.8443        1.3360       -.16942E-07   -.58411E-03
  16  Prefactor     .10000E-03    4.9703       -.32004E-06** at limit **
  17  Prefactor     .10000E-03    54.637       -.67481E-06** at limit **
  18  norm          .10000E-03    11.055        .35469E-05** at limit **
  19  Prefactor     10.893        8.1551       -.34142E-06   -.21369E-03
  20  Prefactor     11.587        32.990        .95764E-05   -.31640E-04
  21  norm          .10000E-03    3.6352       -.23369E-07** at limit **
  22  Prefactor     .10000E-03    7.1521        .24429E-06** at limit **
  23  Normalizat    1.0039        .22893       -.14299E-05   -.39605E-04
  24  Prefactor     .91699        .12847       -.16987E-06   -.84920E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.841103
  Prefactor  = 4.61328
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 41.117
  Prefactor  = 4.1228
  Prefactor  = 0.903719
  Prefactor  = 7.67248
  Prefactor  = 0.0001
  Prefactor  = 6.74604
  Prefactor  = 3.86393
  Prefactor  = 9.33901
  Prefactor  = 1.84427
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.8927
  Prefactor  = 11.5871
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.00391
  Prefactor  = 0.916995
 **********
 **   18 **HESSE 
 **********

 FCN=   6636.917     FROM HESSE     STATUS=OK           403 CALLS     2764 TOTAL
                     EDM=   .94E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.7329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.5865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .84110        .27908        .22435E-04   -1.5525    
   4  Prefactor     4.6133        12.510        .18742E-03   -1.5278    
   5  norm          .10000E-03    2.0194        .14747E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    16.067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     41.117        15.783        .62514E-04   -1.4425    
   8  Prefactor     4.1228        24.025        .19857E-03   -1.5302    
   9  Prefactor     .90372        .21500        .16969E-04   -1.5518    
  10  Prefactor     7.6725        10.397        .14478E-03   -1.5154    
  11  Prefactor     .10000E-03    11.646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.7460        8.8309        .77242E-03   -1.5188    
  13  Prefactor     3.8639        7.7209        .20528E-03   -1.5315    
  14  Prefactor     9.3390        24.796        .13117E-03   -1.5097    
  15  Prefactor     1.8443        7.1574        .15356E-02   -1.5436    
  16  Prefactor     .10000E-03    4.9855        .17742E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    56.859        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    11.026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.893        8.2040        .12140E-03   -1.5048    
  20  Prefactor     11.587        32.934        .11772E-03   -1.5027    
  21  norm          .10000E-03    3.6358        .15170E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    7.3023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0039        .27630        .33382E-03   -.92900    
  24  Prefactor     .91699        .15239        .20006E-03   -.95550    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.38387e-10
Minuit parameter uncertainties:
  1  2.00902e-06
  2  2.60719e-06
  3  0.27908
  4  12.5175
  5  3.68892e-06
  6  2.96682e-06
  7  15.7849
  8  19.9167
  9  0.215001
  10  10.3989
  11  1.16945e-06
  12  8.83265
  13  7.72285
  14  24.8235
  15  7.16075
  16  1.96261e-05
  17  0.000185019
  18  0.000101186
  19  8.20484
  20  32.9856
  21  7.41506e-07
  22  1.28346e-05
  23  0.276696
  24  0.152459
Done.

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

Extracting fit parameters...

4FGL J2307.6+1451
   Spectrum: PowerLaw
343    Prefactor:  6.746e+00  8.833e+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:  9.170e-01  1.525e-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.004e+00  2.767e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/551565/likelihoodResults_681782401_682041601_4FGL_J2307.6+1451_daily_bin1707.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) = 6636.88177083
delta logL = 0.0350189540241

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6636.87678308
delta logL = 0.0400067042983

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.9744       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9608       1.0000          .0000       10.000    
     3 'Normalizat'    1.0137       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91237       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=   6636.877     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      279 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.9751        13.075        .13379E-03   -.49683E-03
   2  Index         1.9607        .76008        .96088E-02   -.16751E-03
   3  Normalizat    1.0137        .25822        .33244E-03    .14247E-03
   4  Prefactor     .91237        .15021        .20052E-03    .34066E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.97509
  Index      = 1.96073
  Normalizat = 1.01372
  Prefactor  = 0.912368
 **********
 **   18 **HESSE 
 **********

 FCN=   6636.877     FROM HESSE     STATUS=OK            25 CALLS      304 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.9751        12.551        .53517E-05   -1.5109    
   2  Index         1.9607        .72970        .38435E-03   -.65336    
   3  Normalizat    1.0137        .25804        .13298E-04   -.92572    
   4  Prefactor     .91237        .15016        .40103E-04   -.95710    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05813e-09
Minuit parameter uncertainties:
  1  12.5546
  2  0.733872
  3  0.25836
  4  0.150232
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/551565': 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) = 6636.87678308
delta logL = 0.0400067061255

Extracting fit parameters...

4FGL J2307.6+1451
   Spectrum: PowerLaw
343    Prefactor:  8.975e+00  1.255e+01  1.000e-04  1.000e+04 ( 1.000e-13)
344        Index:  1.961e+00  7.339e-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:  9.124e-01  1.502e-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.014e+00  2.584e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/551565/cmap_HighResolution_681782401_682041601_4FGL_J2307.6+1451_daily_bin1707.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.08e-02', job_status='DONE', photon_flux_upper_limit='1.42e-07', time_completed='2022-08-13 00:50:14.649853', job_id='551565', GAL2='0.91', fit_tolerance='1e-08', EG2='1.01', EG='1.00', time_epoch_completed='1660377014.65', return_code2='0', ts='0.78', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='4.00e-02', ts2='0.87', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1707' AND source_name='4FGL J2307.6+1451' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 13 00:50:14 PDT 2022


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

Job <4FGL_J2307.6+1451_daily_bin1707> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Aug 13 00:35:25 2022
Job was executed on host(s) <bullet0073>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 13 00:35:26 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 13 00:35:26 2022
Terminated at Sat Aug 13 00:50:15 2022
Results reported at Sat Aug 13 00:50:15 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2307.6+1451_daily_bin1707 346.922 14.8644 681782401 682041601 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 :                                   674.03 sec.
    Max Memory :                                 1071 MB
    Average Memory :                             263.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   888 sec.
    Turnaround time :                            890 sec.

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

