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


Performing analysis on: 4FGL_J2304.6+3704_monthly_bin168
RA = 346.173, Dec = 37.0826
tmin = 672451201, tmax = 675043201
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='653813', job_status='RUN', time_executed='2022-05-24 04:50:27.812164', time_epoch_executed='1653393027.81' WHERE source_name='4FGL J2304.6+3704' and cadence='monthly' and bin_id='168'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/653813

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

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=672451201.0 && nMetStart<675043201.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<675043201.0' /Data/Flight/Level1/LPA

Retrieving 455 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/653813/ft1_4FGL_J2304.6+3704_monthly_bin168.fits


Retrieving the FT1 file...

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

Retrieving 455 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/653813/ft2_4FGL_J2304.6+3704_monthly_bin168.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/653813/ft1_4FGL_J2304.6+3704_monthly_bin168.fits outfile=/scratch/kocevski/653813/ft1_filteredMKT_4FGL_J2304.6+3704_monthly_bin168.fits ra=346.173 dec=37.0826 rad=12.0 tmin=672451201.0 tmax=675043201.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 28.78
user 27.74
sys 0.85

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

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

Number of photons that the gtmktime cut: 10688

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/653813/ft1_filtered_4FGL_J2304.6+3704_monthly_bin168.fits" evtable="EVENTS" scfile=/scratch/kocevski/653813/ft2_4FGL_J2304.6+3704_monthly_bin168.fits sctable="SC_DATA" outfile=/scratch/kocevski/653813/ltcube_672451201_675043201_4FGL_J2304.6+3704_monthly_bin168.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/653813/ft2_4FGL_J2304.6+3704_monthly_bin168.fits
.....................!
real 127.33
user 126.73
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/653813/ft1_filtered_4FGL_J2304.6+3704_monthly_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/653813/ft2_4FGL_J2304.6+3704_monthly_bin168.fits sctable="SC_DATA" expcube=/scratch/kocevski/653813/ltcube_672451201_675043201_4FGL_J2304.6+3704_monthly_bin168.fits outfile=/scratch/kocevski/653813/expmap_672451201_675043201_4FGL_J2304.6+3704_monthly_bin168.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/653813/ltcube_672451201_675043201_4FGL_J2304.6+3704_monthly_bin168.fits
.....................!
real 191.92
user 186.35
sys 5.10

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/653813/ft1_filtered_4FGL_J2304.6+3704_monthly_bin168.fits scfile=/scratch/kocevski/653813/ft2_4FGL_J2304.6+3704_monthly_bin168.fits outfile=/scratch/kocevski/653813/cmap_672451201_675043201_4FGL_J2304.6+3704_monthly_bin168.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.80
user 0.62
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/653813/ft1_filtered_4FGL_J2304.6+3704_monthly_bin168.fits scfile=/scratch/kocevski/653813/ft2_4FGL_J2304.6+3704_monthly_bin168.fits outfile=/scratch/kocevski/653813/cmap_HighResolution_672451201_675043201_4FGL_J2304.6+3704_monthly_bin168.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.81
user 0.63
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4262       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10227E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10390E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.8814       1.0000         .10000E-03   10000.    
     5 'norm      '    .23901       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.6867       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .67274       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.5709       1.0000         .10000E-03   10000.    
     9 'norm      '    1.1480       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.0976       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.3221       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.196       1.0000         .10000E-03   10000.    
    13 'norm      '    2.0050       1.0000         .10000E-03   10000.    
    14 'norm      '    4.2893       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .69144       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.1333       1.0000         .10000E-03   10000.    
    18 'Prefactor '    22.045       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.2337       1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.247       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.4749       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1865       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .93180       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   112238.2     FROM MIGRAD    STATUS=CONVERGED    526 CALLS     2267 TOTAL
                     EDM=   .49E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4262        .33954         .0000        .33951E-02
   2  Prefactor     .10000E-03    3.5032         .0000    ** at limit **
   3  Prefactor     .10000E-03    .34833         .0000    ** at limit **
   4  Prefactor     1.8822        2.8973         .0000        .30939E-02
   5  norm          .23895        .40643         .0000        .19467E-01
   6  Prefactor     1.6871        1.4514         .0000       -.23420E-02
   7  Prefactor     .67203        1.0171         .0000        .75397E-02
   8  Prefactor     7.5686        4.0181         .0000        .12845E-02
   9  norm          1.1480        .35672         .0000        .98276E-02
  10  Prefactor     2.0995        4.0053         .0000       -.41973E-02
  11  Prefactor     3.3216        2.6377         .0000       -.19901E-02
  12  Prefactor     11.201        5.8444         .0000        .30081E-02
  13  norm          2.0049        1.1942         .0000        .10779E-01
  14  norm          4.2887        2.0356         .0000        .54672E-03
  15  Prefactor     .10000E-03    2.0442         .0000    ** at limit **
  16  norm          .69146        .45231         .0000        .66168E-02
  17  Prefactor     3.1264        2.9691         .0000        .17871E-02
  18  Prefactor     22.024        14.478         .0000        .90585E-02
  19  Prefactor     7.2652        8.3004         .0000       -.17293E-02
  20  Prefactor     14.315        10.322         .0000        .36791E-02
  21  Prefactor     1.4724        1.7629         .0000        .21625    
  22  Normalizat    1.1865        .61675E-01     .0000        .22753E-03
  23  Prefactor     .93180        .23167E-01     .0000       -.26848E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.42617
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.88216
  norm       = 0.238953
  Prefactor  = 1.68709
  Prefactor  = 0.672031
  Prefactor  = 7.56855
  norm       = 1.14801
  Prefactor  = 2.09946
  Prefactor  = 3.32159
  Prefactor  = 11.2009
  norm       = 2.00494
  norm       = 4.28872
  Prefactor  = 0.0001
  norm       = 0.691456
  Prefactor  = 3.12643
  Prefactor  = 22.0236
  Prefactor  = 7.26524
  Prefactor  = 14.315
  Prefactor  = 1.47239
  Normalizat = 1.18648
  Prefactor  = 0.931805
 **********
 **   18 **HESSE 
 **********

 FCN=   112238.2     FROM HESSE     STATUS=OK           390 CALLS     2657 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4262        .33859        .69850E-04   -1.5396    
   2  Prefactor     .10000E-03    3.5097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    .39287        .54563E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.8822        2.8770        .30349E-03   -1.5434    
   5  norm          .23895        .49592        .24456E-02   -1.5610    
   6  Prefactor     1.6871        1.4613        .32422E-03   -1.5448    
   7  Prefactor     .67203        1.0104        .23914E-03   -1.5544    
   8  Prefactor     7.5686        4.0170        .14575E-03   -1.5158    
   9  norm          1.1480        .35042        .10647E-03   -1.5494    
  10  Prefactor     2.0995        3.9942        .28497E-03   -1.5418    
  11  Prefactor     3.3216        2.6276        .22209E-03   -1.5343    
  12  Prefactor     11.201        5.8413        .11973E-03   -1.5038    
  13  norm          2.0049        1.1844        .27176E-03   -1.5425    
  14  norm          4.2887        2.0353        .19453E-03   -1.5294    
  15  Prefactor     .10000E-03    2.0802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .69146        .43948        .17597E-03   -1.5542    
  17  Prefactor     3.1264        2.9643        .22903E-03   -1.5354    
  18  Prefactor     22.024        14.478        .85309E-04   -1.4769    
  19  Prefactor     7.2652        8.3085        .14914E-03   -1.5169    
  20  Prefactor     14.315        10.243        .10611E-03   -1.4951    
  21  Prefactor     1.4724        1.7369        .17683E-02   -1.5465    
  22  Normalizat    1.1865        .71195E-01    .37040E-03   -.87022    
  23  Prefactor     .93180        .26951E-01    .15981E-03   -.95038    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30996e-07
Minuit parameter uncertainties:
  1  0.338589
  2  1.52548e-05
  3  9.87957e-06
  4  2.87724
  5  0.495928
  6  1.46131
  7  1.01039
  8  4.0171
  9  0.350421
  10  3.99475
  11  2.62772
  12  5.84159
  13  1.18437
  14  2.03528
  15  6.19395e-06
  16  0.439486
  17  2.96445
  18  14.4805
  19  8.3098
  20  10.2444
  21  1.73696
  22  0.0712012
  23  0.0269517
Done.

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

Extracting fit parameters...

4FGL J2304.6+3704
   Spectrum: PowerLaw
376    Prefactor:  7.569e+00  4.017e+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

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  9.318e-01  2.695e-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.186e+00  7.120e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 16.39
Ra Dec: 346.173 37.083
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 7.49e-09 +/- 3.98e-09
Energy Flux (Fixed Index): 7.77e-06 +/- 4.12e-06

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) = 112235.689287
delta logL = 2.47007771743

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 112235.367562
delta logL = 2.7918029454

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3095       1.0000         .10000E-03   10000.    
     2 'Index     '    .67923       1.0000          .0000       10.000    
     3 'Normalizat'    1.1888       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93284       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=   112235.4     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      221 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3029        2.0666        .55633E-02   -.16829E-02
   2  Index         .67824        .35539        .42124       -.36700E-03
   3  Normalizat    1.1888        .58957E-01    .83587E-01    .27427E-03
   4  Prefactor     .93284        .22964E-01    .45422E-01   -.96110E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.30294
  Index      = 0.67824
  Normalizat = 1.18881
  Prefactor  = 0.932841
 **********
 **   18 **HESSE 
 **********

 FCN=   112235.4     FROM HESSE     STATUS=OK            33 CALLS      254 TOTAL
                     EDM=   .83E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3029        3.2533        .22253E-03   -1.5344    
   2  Index         .67824        .46868        .44502E-01   -1.0439    
   3  Normalizat    1.1888        .68308E-01    .37008E-03   -.86949    
   4  Prefactor     .93284        .26655E-01    .15974E-03   -.95003    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.29633e-08
Minuit parameter uncertainties:
  1  3.25343
  2  0.471434
  3  0.068313
  4  0.0266554
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/653813': 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) = 112235.367561
delta logL = 2.79180439125

Extracting fit parameters...

4FGL J2304.6+3704
   Spectrum: PowerLaw
376    Prefactor:  3.303e+00  3.253e+00  1.000e-04  1.000e+04 ( 1.000e-14)
377        Index:  6.782e-01  4.714e-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.328e-01  2.666e-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.189e+00  6.831e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 21.95
Ra Dec: 346.173 37.083
Photon Index (Free Index): 0.68 +/- 0.47
Photon Flux (Free Index): 1.00e-09 +/- 6.77e-10
Energy Flux (Free Index): 2.73e-05 +/- 1.98e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/653813/cmap_HighResolution_672451201_675043201_4FGL_J2304.6+3704_monthly_bin168.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.49e-09', energy_flux2='2.73e-05', photon_flux_error='3.98e-09', dlogl='2.79e+00', energy_flux='7.77e-06', photon_flux2='1.00e-09', job_status='DONE', time_completed='2022-05-24 06:21:51.856958', photon_index_error2='0.47', photon_index2='0.68', ts='16.39', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='1.98e-05', EG='1.19', time_epoch_completed='1653398511.86', return_code='0', job_id='653813', GAL2='0.93', EG2='1.19', return_code2='0', energy_flux_error='4.12e-06', photon_flux_error2='6.77e-10', ts2='21.95', photon_index='1.85' WHERE bin_id='168' AND source_name='4FGL J2304.6+3704' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Tue May 24 06:21:51 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0157>
Subject: Job 653813: <4FGL_J2304.6+3704_monthly_bin168> in cluster <slac> Done

Job <4FGL_J2304.6+3704_monthly_bin168> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue May 24 04:20:41 2022
Job was executed on host(s) <bullet0157>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May 24 04:49:31 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May 24 04:49:31 2022
Terminated at Tue May 24 06:21:52 2022
Results reported at Tue May 24 06:21:52 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2304.6+3704_monthly_bin168 346.173 37.0826 672451201 675043201 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 :                                   5446.89 sec.
    Max Memory :                                 644 MB
    Average Memory :                             448.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2957 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   5541 sec.
    Turnaround time :                            7271 sec.

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

