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


Performing analysis on: 4FGL_J2304.6+3704_daily_bin1671
RA = 346.173, Dec = 37.0826
tmin = 672451201, tmax = 672710401
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='43814', job_status='RUN', time_executed='2022-04-27 01:06:46.078596', time_epoch_executed='1651046806.08' WHERE source_name='4FGL J2304.6+3704' and cadence='daily' and bin_id='1671'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/43814

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/43814/ft1_4FGL_J2304.6+3704_daily_bin1671.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/43814/ft2_4FGL_J2304.6+3704_daily_bin1671.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/43814/ft1_4FGL_J2304.6+3704_daily_bin1671.fits outfile=/scratch/kocevski/43814/ft1_filteredMKT_4FGL_J2304.6+3704_daily_bin1671.fits ra=346.173 dec=37.0826 rad=12.0 tmin=672451201.0 tmax=672710401.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 2.98
user 2.76
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/43814/ft2_4FGL_J2304.6+3704_daily_bin1671.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/43814/ft2_4FGL_J2304.6+3704_daily_bin1671.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/43814/ft1_filteredMKT_4FGL_J2304.6+3704_daily_bin1671.fits evtable="EVENTS" outfile="/scratch/kocevski/43814/ft1_filtered_4FGL_J2304.6+3704_daily_bin1671.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.50
user 0.34
sys 0.15

Number of photons that the gtmktime cut: 1195

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/43814/ft1_filtered_4FGL_J2304.6+3704_daily_bin1671.fits" evtable="EVENTS" scfile=/scratch/kocevski/43814/ft2_4FGL_J2304.6+3704_daily_bin1671.fits sctable="SC_DATA" outfile=/scratch/kocevski/43814/ltcube_672451201_672710401_4FGL_J2304.6+3704_daily_bin1671.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/43814/ft2_4FGL_J2304.6+3704_daily_bin1671.fits
.....................!
real 13.00
user 12.67
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/43814/ft1_filtered_4FGL_J2304.6+3704_daily_bin1671.fits evtable="EVENTS" scfile=/scratch/kocevski/43814/ft2_4FGL_J2304.6+3704_daily_bin1671.fits sctable="SC_DATA" expcube=/scratch/kocevski/43814/ltcube_672451201_672710401_4FGL_J2304.6+3704_daily_bin1671.fits outfile=/scratch/kocevski/43814/expmap_672451201_672710401_4FGL_J2304.6+3704_daily_bin1671.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/43814/ltcube_672451201_672710401_4FGL_J2304.6+3704_daily_bin1671.fits
.....................!
real 189.61
user 185.52
sys 3.76

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
Extended source FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Added 155 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2304.6+3704 @ 346.173 37.0826

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/43814/ft1_filtered_4FGL_J2304.6+3704_daily_bin1671.fits scfile=/scratch/kocevski/43814/ft2_4FGL_J2304.6+3704_daily_bin1671.fits outfile=/scratch/kocevski/43814/cmap_672451201_672710401_4FGL_J2304.6+3704_daily_bin1671.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.173 yref=37.0826 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.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/43814/ft1_filtered_4FGL_J2304.6+3704_daily_bin1671.fits scfile=/scratch/kocevski/43814/ft2_4FGL_J2304.6+3704_daily_bin1671.fits outfile=/scratch/kocevski/43814/cmap_HighResolution_672451201_672710401_4FGL_J2304.6+3704_daily_bin1671.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.173 yref=37.0826 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/43814/ft1_filtered_4FGL_J2304.6+3704_daily_bin1671.fits evtable="EVENTS" scfile=/scratch/kocevski/43814/ft2_4FGL_J2304.6+3704_daily_bin1671.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/43814/Model_4FGL_J2304.6+3704_daily_bin1671.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 CTB 109
adding source EG_v02
adding source FHES J2304.0+5406
adding source GAL_V02
Working on...
/scratch/kocevski/43814/ft1_filtered_4FGL_J2304.6+3704_daily_bin1671.fits.....................!
real 144.58
user 143.13
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/43814/ft1_filtered_4FGL_J2304.6+3704_daily_bin1671.fits', '/scratch/kocevski/43814/ft2_4FGL_J2304.6+3704_daily_bin1671.fits', expMap='/scratch/kocevski/43814/expmap_672451201_672710401_4FGL_J2304.6+3704_daily_bin1671.fits', expCube='/scratch/kocevski/43814/ltcube_672451201_672710401_4FGL_J2304.6+3704_daily_bin1671.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/43814/Model_4FGL_J2304.6+3704_daily_bin1671.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2304.6+3704'

4FGL J2304.6+3704
   Spectrum: PowerLaw
376    Prefactor:  4.732e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
377        Index:  1.849e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
378        Scale:  3.823e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/43814/ft1_filtered_4FGL_J2304.6+3704_daily_bin1671.fits
Spacecraft file(s): /scratch/kocevski/43814/ft2_4FGL_J2304.6+3704_daily_bin1671.fits
Exposure map: /scratch/kocevski/43814/expmap_672451201_672710401_4FGL_J2304.6+3704_daily_bin1671.fits
Exposure cube: /scratch/kocevski/43814/ltcube_672451201_672710401_4FGL_J2304.6+3704_daily_bin1671.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/43814/Model_4FGL_J2304.6+3704_daily_bin1671.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) = 12851.3110117

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3359       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10386E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.0983       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.1871       1.0000         .10000E-03   10000.    
     8 'Prefactor '    19.486       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.8007       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.2718       1.0000         .10000E-03   10000.    
    13 'norm      '    2.5927       1.0000         .10000E-03   10000.    
    14 'norm      '    6.6901       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .92181E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    44.509       1.0000         .10000E-03   10000.    
    19 'Prefactor '    44.971       1.0000         .10000E-03   10000.    
    20 'Prefactor '    35.405       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .29264E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.3411       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .88722       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   12851.29     FROM MIGRAD    STATUS=CONVERGED    538 CALLS     2577 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3359        .70166        .15111E-07   -.43985E-04
   2  Prefactor     .10000E-03    28.344       -.85540E-07** at limit **
   3  Prefactor     .10000E-03    5.4394       -.10169E-05** at limit **
   4  Prefactor     .10000E-03    3.7636        .19143E-08** at limit **
   5  norm          1.0975        3.2828        .18072E-05   -.32970E-03
   6  Prefactor     .10000E-03    3.7157       -.61496E-08** at limit **
   7  Prefactor     3.1874        5.3344       -.48300E-06   -.25075E-03
   8  Prefactor     19.485        16.245       -.44737E-07   -.99322E-05
   9  norm          .10000E-03    .49913        .20245E-07** at limit **
  10  Prefactor     .10000E-03    5.4918        .11376E-06** at limit **
  11  Prefactor     7.7965        9.9688        .95710E-06    .15295E-03
  12  Prefactor     6.2712        12.230        .62424E-07   -.22187E-04
  13  norm          2.5926        3.5845        .35843E-06   -.18981E-03
  14  norm          6.6896        7.3420       -.23285E-06   -.77221E-04
  15  Prefactor     .10000E-03    5.9958        .29391E-06** at limit **
  16  norm          .10000E-03    1.2034        .10681E-06** at limit **
  17  Prefactor     .10001E-03    7.8766        .38699E-06** at limit **
  18  Prefactor     44.444        57.943       -.23889E-05   -.79037E-04
  19  Prefactor     44.939        55.669       -.48097E-06   -.43228E-04
  20  Prefactor     35.270        52.234        .45345E-06    .36367E-04
  21  Prefactor     .10000E-03    8.9647       -.48516E-06** at limit **
  22  Normalizat    1.3413        .18697       -.32098E-06   -.58522E-04
  23  Prefactor     .88715        .69056E-01   -.17682E-06   -.10033E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.33594
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.09754
  Prefactor  = 0.0001
  Prefactor  = 3.18741
  Prefactor  = 19.4854
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.79652
  Prefactor  = 6.27121
  norm       = 2.59261
  norm       = 6.68961
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 44.4439
  Prefactor  = 44.9389
  Prefactor  = 35.2703
  Prefactor  = 0.0001
  Normalizat = 1.3413
  Prefactor  = 0.887152
 **********
 **   18 **HESSE 
 **********

 FCN=   12851.29     FROM HESSE     STATUS=OK           368 CALLS     2945 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3359        .69600        .66883E-04   -1.5477    
   2  Prefactor     .10000E-03    28.378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.7877        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.7676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.0975        3.4172        .32878E-03   -1.5498    
   6  Prefactor     .10000E-03    3.7186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.1874        5.2395        .22698E-03   -1.5351    
   8  Prefactor     19.485        16.246        .90734E-04   -1.4825    
   9  norm          .10000E-03    .52042        .15619E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.5033        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.7965        10.094        .14357E-03   -1.5149    
  12  Prefactor     6.2712        12.226        .16029E-03   -1.5207    
  13  norm          2.5926        3.5765        .24450E-03   -1.5386    
  14  norm          6.6896        7.3484        .15514E-03   -1.5191    
  15  Prefactor     .10000E-03    6.0270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.0340        .23901E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    52.143        .61132E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     44.444        59.262        .60094E-04   -1.4374    
  19  Prefactor     44.939        56.020        .59786E-04   -1.4366    
  20  Prefactor     35.270        52.272        .67351E-04   -1.4519    
  21  Prefactor     .10000E-03    9.1577        .21400E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.3413        .21780        .36398E-03   -.82342    
  23  Prefactor     .88715        .80626E-01    .16502E-03   -.96592    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.17508e-10
Minuit parameter uncertainties:
  1  0.696009
  2  1.06593e-05
  3  7.7906e-05
  4  4.51183e-07
  5  3.41777
  6  1.00639e-06
  7  5.24028
  8  16.2496
  9  2.8081e-07
  10  7.38568e-06
  11  10.096
  12  12.2309
  13  3.57679
  14  7.34938
  15  1.86965e-05
  16  5.4775e-05
  17  0.00124684
  18  59.3404
  19  56.0855
  20  52.3401
  21  5.44541e-05
  22  0.217946
  23  0.0806366
Done.

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

Extracting fit parameters...

4FGL J2304.6+3704
   Spectrum: PowerLaw
376    Prefactor:  1.949e+01  1.625e+01  1.000e-04  1.000e+04 ( 1.000e-14)
377        Index:  1.849e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
378        Scale:  3.823e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  8.872e-01  8.064e-02  0.000e+00  1.000e+01 ( 1.000e+00)
518        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
519        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
512   Normalization:  1.341e+00  2.179e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.27
Ra Dec: 346.173 37.083
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 1.93e-08 +/- 1.61e-08
Energy Flux (Fixed Index): 2.00e-05 +/- 1.67e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12850.3088784
delta logL = 0.979188071517

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12850.2601671
delta logL = 1.02789935096

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.452       1.0000         .10000E-03   10000.    
     2 'Index     '    .80646       1.0000          .0000       10.000    
     3 'Normalizat'    1.3483       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88907       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   12850.26     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      212 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.452        13.250        .28380E-02   -.28791E-02
   2  Index         .80620        .57092        .43801       -.48434E-04
   3  Normalizat    1.3484        .17921        .82045E-01    .18984E-04
   4  Prefactor     .88905        .67898E-01    .44866E-01   -.65363E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.4518
  Index      = 0.806199
  Normalizat = 1.3484
  Prefactor  = 0.889048
 **********
 **   18 **HESSE 
 **********

 FCN=   12850.26     FROM HESSE     STATUS=OK            31 CALLS      243 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.452        18.996        .11352E-03   -1.5002    
   2  Index         .80620        .76974        .21446E-01   -.99500    
   3  Normalizat    1.3484        .20701        .36320E-03   -.82133    
   4  Prefactor     .88905        .78772E-01    .16489E-03   -.96525    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.42784e-08
Minuit parameter uncertainties:
  1  19.0054
  2  0.780385
  3  0.207142
  4  0.0787825
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/43814': 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) = 12850.2601669
delta logL = 1.02789959113

Extracting fit parameters...

4FGL J2304.6+3704
   Spectrum: PowerLaw
376    Prefactor:  1.245e+01  1.901e+01  1.000e-04  1.000e+04 ( 1.000e-14)
377        Index:  8.062e-01  7.804e-01  0.000e+00  1.000e+01 (-1.000e+00)
378        Scale:  3.823e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  8.890e-01  7.878e-02  0.000e+00  1.000e+01 ( 1.000e+00)
518        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
519        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
512   Normalization:  1.348e+00  2.071e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.33
Ra Dec: 346.173 37.083
Photon Index (Free Index): 0.81 +/- 0.78
Photon Flux (Free Index): 3.41e-09 +/- 4.18e-09
Energy Flux (Free Index): 7.51e-05 +/- 9.17e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/43814/cmap_HighResolution_672451201_672710401_4FGL_J2304.6+3704_daily_bin1671.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.93e-08', energy_flux2='7.51e-05', photon_flux_error='1.61e-08', dlogl='1.03e+00', energy_flux='2.00e-05', photon_flux2='3.41e-09', job_status='DONE', time_completed='2022-04-27 01:21:34.885151', photon_index_error2='0.78', photon_index2='0.81', ts='12.27', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='9.17e-05', EG='1.34', time_epoch_completed='1651047694.89', return_code='0', job_id='43814', GAL2='0.89', EG2='1.35', return_code2='0', energy_flux_error='1.67e-05', photon_flux_error2='4.18e-09', ts2='14.33', photon_index='1.85' WHERE bin_id='1671' AND source_name='4FGL J2304.6+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Apr 27 01:21:34 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 43814: <4FGL_J2304.6+3704_daily_bin1671> in cluster <slac> Done

Job <4FGL_J2304.6+3704_daily_bin1671> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Apr 27 01:05:38 2022
Job was executed on host(s) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Apr 27 01:05:46 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Apr 27 01:05:46 2022
Terminated at Wed Apr 27 01:21:35 2022
Results reported at Wed Apr 27 01:21:35 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2304.6+3704_daily_bin1671 346.173 37.0826 672451201 672710401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2304.6+3704 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   891.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             373.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   951 sec.
    Turnaround time :                            957 sec.

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

