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


Performing analysis on: 4FGL_J2304.6+3704_daily_bin1699
RA = 346.173, Dec = 37.0826
tmin = 679708801, tmax = 679968001
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='1444', job_status='RUN', time_executed='2022-07-20 00:37:29.657438', time_epoch_executed='1658302649.66' WHERE source_name='4FGL J2304.6+3704' and cadence='daily' and bin_id='1699'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/1444

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/1444/ft1_4FGL_J2304.6+3704_daily_bin1699.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/1444/ft2_4FGL_J2304.6+3704_daily_bin1699.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/1444/ft1_4FGL_J2304.6+3704_daily_bin1699.fits outfile=/scratch/kocevski/1444/ft1_filteredMKT_4FGL_J2304.6+3704_daily_bin1699.fits ra=346.173 dec=37.0826 rad=12.0 tmin=679708801.0 tmax=679968001.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.83
user 3.59
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/1444/ft2_4FGL_J2304.6+3704_daily_bin1699.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/1444/ft1_filteredMKT_4FGL_J2304.6+3704_daily_bin1699.fits evtable="EVENTS" outfile="/scratch/kocevski/1444/ft1_filtered_4FGL_J2304.6+3704_daily_bin1699.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.32
sys 0.17

Number of photons that the gtmktime cut: 1083

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/1444/ft1_filtered_4FGL_J2304.6+3704_daily_bin1699.fits" evtable="EVENTS" scfile=/scratch/kocevski/1444/ft2_4FGL_J2304.6+3704_daily_bin1699.fits sctable="SC_DATA" outfile=/scratch/kocevski/1444/ltcube_679708801_679968001_4FGL_J2304.6+3704_daily_bin1699.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/1444/ft2_4FGL_J2304.6+3704_daily_bin1699.fits
.....................!
real 12.10
user 11.74
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/1444/ft1_filtered_4FGL_J2304.6+3704_daily_bin1699.fits evtable="EVENTS" scfile=/scratch/kocevski/1444/ft2_4FGL_J2304.6+3704_daily_bin1699.fits sctable="SC_DATA" expcube=/scratch/kocevski/1444/ltcube_679708801_679968001_4FGL_J2304.6+3704_daily_bin1699.fits outfile=/scratch/kocevski/1444/expmap_679708801_679968001_4FGL_J2304.6+3704_daily_bin1699.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/1444/ltcube_679708801_679968001_4FGL_J2304.6+3704_daily_bin1699.fits
.....................!
real 191.33
user 185.54
sys 5.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
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/1444/ft1_filtered_4FGL_J2304.6+3704_daily_bin1699.fits scfile=/scratch/kocevski/1444/ft2_4FGL_J2304.6+3704_daily_bin1699.fits outfile=/scratch/kocevski/1444/cmap_679708801_679968001_4FGL_J2304.6+3704_daily_bin1699.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.53
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/1444/ft1_filtered_4FGL_J2304.6+3704_daily_bin1699.fits scfile=/scratch/kocevski/1444/ft2_4FGL_J2304.6+3704_daily_bin1699.fits outfile=/scratch/kocevski/1444/cmap_HighResolution_679708801_679968001_4FGL_J2304.6+3704_daily_bin1699.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.54
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/1444/ft1_filtered_4FGL_J2304.6+3704_daily_bin1699.fits evtable="EVENTS" scfile=/scratch/kocevski/1444/ft2_4FGL_J2304.6+3704_daily_bin1699.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/1444/Model_4FGL_J2304.6+3704_daily_bin1699.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/1444/ft1_filtered_4FGL_J2304.6+3704_daily_bin1699.fits.....................!
real 131.47
user 130.01
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/1444/ft1_filtered_4FGL_J2304.6+3704_daily_bin1699.fits', '/scratch/kocevski/1444/ft2_4FGL_J2304.6+3704_daily_bin1699.fits', expMap='/scratch/kocevski/1444/expmap_679708801_679968001_4FGL_J2304.6+3704_daily_bin1699.fits', expCube='/scratch/kocevski/1444/ltcube_679708801_679968001_4FGL_J2304.6+3704_daily_bin1699.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/1444/Model_4FGL_J2304.6+3704_daily_bin1699.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/1444/ft1_filtered_4FGL_J2304.6+3704_daily_bin1699.fits
Spacecraft file(s): /scratch/kocevski/1444/ft2_4FGL_J2304.6+3704_daily_bin1699.fits
Exposure map: /scratch/kocevski/1444/expmap_679708801_679968001_4FGL_J2304.6+3704_daily_bin1699.fits
Exposure cube: /scratch/kocevski/1444/ltcube_679708801_679968001_4FGL_J2304.6+3704_daily_bin1699.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/1444/Model_4FGL_J2304.6+3704_daily_bin1699.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) = 11628.8032778

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .85531       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.7131       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.0386       1.0000         .10000E-03   10000.    
     4 'Prefactor '    27.378       1.0000         .10000E-03   10000.    
     5 'norm      '    4.6491       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    34.529       1.0000         .10000E-03   10000.    
     9 'norm      '    2.5839       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11383E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10198E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10326E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .12688E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    16.013       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.8956       1.0000         .10000E-03   10000.    
    16 'norm      '    .13068E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10182E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.151       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10824E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.135       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0767       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .95844       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11628.78     FROM MIGRAD    STATUS=CONVERGED     92 CALLS     2157 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .85517        1.1490       -.29586E-06   -.10353E-03
   2  Prefactor     4.6955        3.1503       -.44300E-05    .17509E-02
   3  Prefactor     2.0387        2.3195        .29466E-05    .16266E-02
   4  Prefactor     27.378        1.0075       -.93590E-07    .27854E-03
   5  norm          4.6475        2.7725       -.19603E-05   -.19041E-02
   6  Prefactor     .10000E-03    6.7540       -.35542E-06** at limit **
   7  Prefactor     .10000E-03    4.5756       -.69830E-05** at limit **
   8  Prefactor     34.504        3.2812        .11245E-05   -.51322E-02
   9  norm          2.5838        1.3066       -.97834E-07    .20478E-04
  10  Prefactor     .10000E-03    177.73       -.27269E-04** at limit **
  11  Prefactor     .10000E-03    3.9765       -.21555E-06** at limit **
  12  Prefactor     .10323E-03    28.351        .22814E-04** at limit **
  13  norm          .10000E-03    4.5031        .52911E-05** at limit **
  14  norm          16.015        1.5061        .13024E-05   -.54139E-03
  15  Prefactor     5.8793        1.5309        .17905E-05   -.63119E-03
  16  norm          .10000E-03    3.4770       -.31875E-06** at limit **
  17  Prefactor     .10000E-03    5.0458        .12496E-05** at limit **
  18  Prefactor     .10265E-03    28.277       -.19445E-04** at limit **
  19  Prefactor     12.094        7.3477       -.29004E-05    .10437E-02
  20  Prefactor     .10000E-03    21.915        .75677E-06** at limit **
  21  Prefactor     12.135        6.3060       -.83849E-05   -.84207E-02
  22  Normalizat    1.0767        .21791        .38291E-05   -.98934E-04
  23  Prefactor     .95848        .84610E-01   -.40436E-06   -.17355E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.855168
  Prefactor  = 4.69547
  Prefactor  = 2.0387
  Prefactor  = 27.3784
  norm       = 4.6475
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 34.5038
  norm       = 2.58379
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.00010323
  norm       = 0.000100001
  norm       = 16.0146
  Prefactor  = 5.87932
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000102649
  Prefactor  = 12.0944
  Prefactor  = 0.000100001
  Prefactor  = 12.1352
  Normalizat = 1.07669
  Prefactor  = 0.958484
 **********
 **   18 **HESSE 
 **********

 FCN=   11628.78     FROM HESSE     STATUS=OK           432 CALLS     2589 TOTAL
                     EDM=   .43E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .85517        1.2262        .12644E-01   -1.5523    
   2  Prefactor     4.6955        161.98        .46338E-02   -1.5275    
   3  Prefactor     2.0387        5.5126        .72413E-02   -1.5422    
   4  Prefactor     27.378        18.803        .19141E-02   -1.4661    
   5  norm          4.6475        4.2329        .46664E-02   -1.5277    
   6  Prefactor     .10000E-03    6.7471        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.5049        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     34.504        22.459        .17049E-02   -1.4532    
   9  norm          2.5838        1.3165        .63468E-02   -1.5386    
  10  Prefactor     .10000E-03    15.440        .13026       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.9595        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10323E-03    46.713        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    4.3883        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          16.015        11.148        .25022E-02   -1.4907    
  15  Prefactor     5.8793        16.158        .41347E-02   -1.5223    
  16  norm          .10000E-03    1.3631        .39420E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.0450        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10265E-03    43.651        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     12.094        31.967        .28730E-02   -1.5012    
  20  Prefactor     .10000E-03    21.932        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     12.135        7.5853        .28748E-02   -1.5011    
  22  Normalizat    1.0767        .20055        .88787E-01   -.90504    
  23  Prefactor     .95848        .73935E-01    .45746E-01   -.94126    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.25585e-07
Minuit parameter uncertainties:
  1  1.22626
  2  55.32
  3  5.51395
  4  18.8066
  5  4.23321
  6  5.05356e-06
  7  0.000216707
  8  22.4643
  9  1.31649
  10  0.000304522
  11  2.67239e-06
  12  0.0245874
  13  0.000144358
  14  11.1499
  15  16.1698
  16  8.2005e-06
  17  8.99275e-05
  18  0.0215211
  19  32.0123
  20  0.000274324
  21  7.58586
  22  0.200692
  23  0.0739432
Done.

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

Extracting fit parameters...

4FGL J2304.6+3704
   Spectrum: PowerLaw
376    Prefactor:  3.450e+01  2.246e+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:  9.585e-01  7.394e-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.077e+00  2.007e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.72
Ra Dec: 346.173 37.083
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 3.42e-08 +/- 2.22e-08
Energy Flux (Fixed Index): 3.54e-05 +/- 2.30e-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) = 11628.7389503
delta logL = 0.0446891917418

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11628.7294818
delta logL = 0.0541576984615

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    39.250       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7068       1.0000          .0000       10.000    
     3 'Normalizat'    1.0810       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95837       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11628.73     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      297 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     39.253        29.439        .63978E-04    .14003E-04
   2  Index         1.7068        .44513        .84333E-02    .61392E-03
   3  Normalizat    1.0811        .21452        .39254E-03   -.70030E-04
   4  Prefactor     .95837        .83984E-01    .16109E-03   -.14470E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 39.2532
  Index      = 1.70677
  Normalizat = 1.08107
  Prefactor  = 0.958366
 **********
 **   18 **HESSE 
 **********

 FCN=   11628.73     FROM HESSE     STATUS=OK            25 CALLS      322 TOTAL
                     EDM=   .82E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     39.253        28.858        .12796E-04   -1.4454    
   2  Index         1.7068        .43648        .16867E-02   -.71902    
   3  Normalizat    1.0811        .21460        .15701E-04   -.90362    
   4  Prefactor     .95837        .84033E-01    .32219E-04   -.94130    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.21778e-12
Minuit parameter uncertainties:
  1  28.8685
  2  0.437469
  3  0.214771
  4  0.0840446
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/1444': 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) = 11628.7294818
delta logL = 0.0541577147851

Extracting fit parameters...

4FGL J2304.6+3704
   Spectrum: PowerLaw
376    Prefactor:  3.925e+01  2.887e+01  1.000e-04  1.000e+04 ( 1.000e-14)
377        Index:  1.707e+00  4.375e-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:  9.584e-01  8.404e-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.081e+00  2.148e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.83
Ra Dec: 346.173 37.083
Photon Index (Free Index): 1.71 +/- 0.44
Photon Flux (Free Index): 2.77e-08 +/- 2.67e-08
Energy Flux (Free Index): 4.42e-05 +/- 4.28e-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/1444/cmap_HighResolution_679708801_679968001_4FGL_J2304.6+3704_daily_bin1699.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.42e-08', energy_flux2='4.42e-05', photon_flux_error='2.22e-08', dlogl='5.42e-02', energy_flux='3.54e-05', photon_flux2='2.77e-08', job_status='DONE', time_completed='2022-07-20 00:50:51.617452', photon_index_error2='0.44', photon_index2='1.71', ts='10.72', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='4.28e-05', EG='1.08', time_epoch_completed='1658303451.62', return_code='0', job_id='1444', GAL2='0.96', EG2='1.08', return_code2='0', energy_flux_error='2.30e-05', photon_flux_error2='2.67e-08', ts2='10.83', photon_index='1.85' WHERE bin_id='1699' AND source_name='4FGL J2304.6+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jul 20 00:50:51 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 1444: <4FGL_J2304.6+3704_daily_bin1699> in cluster <slac> Done

Job <4FGL_J2304.6+3704_daily_bin1699> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Jul 20 00:35:45 2022
Job was executed on host(s) <bullet0076>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jul 20 00:35:47 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jul 20 00:35:47 2022
Terminated at Wed Jul 20 00:50:52 2022
Results reported at Wed Jul 20 00:50:52 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2304.6+3704_daily_bin1699 346.173 37.0826 679708801 679968001 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 :                                   804.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             365.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   904 sec.
    Turnaround time :                            907 sec.

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

