/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 3 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 = 7389
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2304.6+3704_daily_bin509
RA = 346.173, Dec = 37.0826
tmin = 371260801, tmax = 371520001
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='657999', job_status='RUN', time_executed='2021-09-29 06:30:46.353641', time_epoch_executed='1632922246.35' WHERE source_name='4FGL J2304.6+3704' and cadence='daily' and bin_id='509'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/657999

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/657999/ft1_4FGL_J2304.6+3704_daily_bin509.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/657999/ft2_4FGL_J2304.6+3704_daily_bin509.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/657999/ft1_4FGL_J2304.6+3704_daily_bin509.fits outfile=/scratch/kocevski/657999/ft1_filteredMKT_4FGL_J2304.6+3704_daily_bin509.fits ra=346.173 dec=37.0826 rad=12.0 tmin=371260801.0 tmax=371520001.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.40
user 5.07
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/657999/ft2_4FGL_J2304.6+3704_daily_bin509.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/657999/ft1_filteredMKT_4FGL_J2304.6+3704_daily_bin509.fits evtable="EVENTS" outfile="/scratch/kocevski/657999/ft1_filtered_4FGL_J2304.6+3704_daily_bin509.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/657999/ft1_filtered_4FGL_J2304.6+3704_daily_bin509.fits" evtable="EVENTS" scfile=/scratch/kocevski/657999/ft2_4FGL_J2304.6+3704_daily_bin509.fits sctable="SC_DATA" outfile=/scratch/kocevski/657999/ltcube_371260801_371520001_4FGL_J2304.6+3704_daily_bin509.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/657999/ft2_4FGL_J2304.6+3704_daily_bin509.fits
.....................!
real 11.54
user 11.15
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/657999/ft1_filtered_4FGL_J2304.6+3704_daily_bin509.fits evtable="EVENTS" scfile=/scratch/kocevski/657999/ft2_4FGL_J2304.6+3704_daily_bin509.fits sctable="SC_DATA" expcube=/scratch/kocevski/657999/ltcube_371260801_371520001_4FGL_J2304.6+3704_daily_bin509.fits outfile=/scratch/kocevski/657999/expmap_371260801_371520001_4FGL_J2304.6+3704_daily_bin509.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/657999/ltcube_371260801_371520001_4FGL_J2304.6+3704_daily_bin509.fits
.....................!
real 191.75
user 186.08
sys 5.27

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/657999/ft1_filtered_4FGL_J2304.6+3704_daily_bin509.fits scfile=/scratch/kocevski/657999/ft2_4FGL_J2304.6+3704_daily_bin509.fits outfile=/scratch/kocevski/657999/cmap_371260801_371520001_4FGL_J2304.6+3704_daily_bin509.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/657999/ft1_filtered_4FGL_J2304.6+3704_daily_bin509.fits scfile=/scratch/kocevski/657999/ft2_4FGL_J2304.6+3704_daily_bin509.fits outfile=/scratch/kocevski/657999/cmap_HighResolution_371260801_371520001_4FGL_J2304.6+3704_daily_bin509.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .52422       1.0000         .10000E-03   10000.    
     2 'Prefactor '    27.684       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .41475E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.602       1.0000         .10000E-03   10000.    
     5 'norm      '    .93848E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.5726       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.4774       1.0000         .10000E-03   10000.    
     8 'Prefactor '    23.902       1.0000         .10000E-03   10000.    
     9 'norm      '    .54601       1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.101       1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.732       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    11.765       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12979E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    1.7290       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.2516       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    18.613       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .82791       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0209       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=   10200.56     FROM MIGRAD    STATUS=CONVERGED    548 CALLS     2653 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .52323        .65682       -.68216E-06   -.15727E-02
   2  Prefactor     27.676        61.924       -.16809E-05   -.29623E-04
   3  Prefactor     .14524        13.540       -.41604E-05   -.52114E-03
   4  Prefactor     19.615        20.218        .12256E-05    .74802E-04
   5  norm          .43292E-01    27.407       -.81185E-05    .48601E-03
   6  Prefactor     1.5755        51.079       -.18496E-05   -.48880E-04
   7  Prefactor     5.4762        7.8756        .75972E-06   -.45485E-04
   8  Prefactor     23.903        20.367       -.47345E-07   -.84826E-05
   9  norm          .54605        1.0993       -.20860E-06   -.44210E-03
  10  Prefactor     15.107        23.222        .93158E-06    .21144E-04
  11  Prefactor     14.731        13.257       -.67851E-06   -.17001E-03
  12  Prefactor     .10000E-03    7.9804        .63531E-07** at limit **
  13  norm          11.769        5.9785        .58382E-06   -.10009E-02
  14  norm          .10000E-03    3.3852       -.69085E-07** at limit **
  15  Prefactor     .10023E-03    22.579       -.59734E-05** at limit **
  16  norm          1.7293        2.7496       -.25880E-06   -.10636E-03
  17  Prefactor     4.2523        7.9301        .10489E-06    .13291E-04
  18  Prefactor     .10000E-03    17.585        .30203E-06** at limit **
  19  Prefactor     .10000E-03    83.752       -.36005E-05** at limit **
  20  Prefactor     18.637        39.958        .31184E-05   -.13502E-04
  21  Prefactor     .10000E-03    4.1434        .14769E-05** at limit **
  22  Normalizat    .82782        .20864        .56152E-06   -.25570E-03
  23  Prefactor     1.0208        .79884E-01    .42439E-06   -.76594E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.523232
  Prefactor  = 27.6764
  Prefactor  = 0.145245
  Prefactor  = 19.6151
  norm       = 0.0432918
  Prefactor  = 1.57553
  Prefactor  = 5.47625
  Prefactor  = 23.9031
  norm       = 0.546052
  Prefactor  = 15.1067
  Prefactor  = 14.7313
  Prefactor  = 0.0001
  norm       = 11.7687
  norm       = 0.0001
  Prefactor  = 0.00010023
  norm       = 1.72928
  Prefactor  = 4.25225
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.6374
  Prefactor  = 0.0001
  Normalizat = 0.827825
  Prefactor  = 1.02083
 **********
 **   18 **HESSE 
 **********

 FCN=   10200.56     FROM HESSE     STATUS=OK           392 CALLS     3045 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .52323        .60580        .10013E-02   -1.5563    
   2  Prefactor     27.676        61.993        .76142E-04   -1.4655    
   3  Prefactor     .14524        120.09        .36418E-02   -1.5632    
   4  Prefactor     19.615        20.097        .90464E-04   -1.4822    
   5  norm          .43292E-01    7.8616        .40938E-01   -1.5666    
   6  Prefactor     1.5755        51.365        .16947E-02   -1.5457    
   7  Prefactor     5.4762        7.6776        .17168E-03   -1.5240    
   8  Prefactor     23.903        20.346        .81933E-04   -1.4730    
   9  norm          .54605        1.0631        .14236E-03   -1.5560    
  10  Prefactor     15.107        23.290        .10307E-03   -1.4930    
  11  Prefactor     14.731        13.262        .10435E-03   -1.4940    
  12  Prefactor     .10000E-03    7.9869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          11.769        5.5682        .11679E-03   -1.5022    
  14  norm          .10000E-03    3.3947        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10023E-03    106.08        .64108E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.7293        2.7219        .19760E-03   -1.5445    
  17  Prefactor     4.2523        7.9181        .19541E-03   -1.5296    
  18  Prefactor     .10000E-03    17.593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    86.452        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     18.637        39.676        .92837E-04   -1.4844    
  21  Prefactor     .10000E-03    4.1465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .82782        .23077        .41540E-03   -.99045    
  23  Prefactor     1.0208        .89633E-01    .15240E-03   -.92038    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.48783e-08
Minuit parameter uncertainties:
  1  0.605802
  2  62.1381
  3  8.36688
  4  20.1041
  5  1.16559
  6  18.0081
  7  7.67899
  8  20.3515
  9  1.06311
  10  23.3039
  11  13.2651
  12  1.54753e-06
  13  5.56848
  14  2.52929e-06
  15  0.00989861
  16  2.72208
  17  7.92001
  18  3.72187e-05
  19  0.000292759
  20  39.7324
  21  8.67826e-07
  22  0.231045
  23  0.0896458
Done.

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

Extracting fit parameters...

4FGL J2304.6+3704
   Spectrum: PowerLaw
376    Prefactor:  2.390e+01  2.035e+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:  1.021e+00  8.965e-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:  8.278e-01  2.310e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.36
Ra Dec: 346.173 37.083
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 2.37e-08 +/- 2.01e-08
Energy Flux (Fixed Index): 2.45e-05 +/- 2.09e-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) = 10198.5217252
delta logL = 2.03659464316

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10197.6720375
delta logL = 2.88628235625

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9579       1.0000         .10000E-03   10000.    
     2 'Index     '    .77826E-07   1.0000          .0000       10.000    
     3 'Normalizat'    .83880       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0227       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=   10197.67     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      235 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9581        3.5140        .59030E-02   -.43882E-02
   2  Index         .33307E-14    .42895        .50000    ** at limit **
   3  Normalizat    .83884        .19121        .93214E-01    .44568E-04
   4  Prefactor     1.0227        .77600E-01    .41879E-01   -.15402E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.95809
  Index      = 3.33067e-15
  Normalizat = 0.838841
  Prefactor  = 1.02272
 **********
 **   18 **HESSE 
 **********

 FCN=   10197.67     FROM HESSE     STATUS=OK            31 CALLS      266 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9581        2.9829        .16906E-03   -1.5364    
   2  Index         .33307E-14    .97165        .34516E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .83884        .21506        .41293E-03   -.98644    
   4  Prefactor     1.0227        .87536E-01    .15229E-03   -.91976    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.62743e-09
Minuit parameter uncertainties:
  1  2.9831
  2  1.15925e-07
  3  0.215275
  4  0.0875486
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/657999': 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) = 10197.6720374
delta logL = 2.88628242026

Extracting fit parameters...

4FGL J2304.6+3704
   Spectrum: PowerLaw
376    Prefactor:  2.958e+00  2.983e+00  1.000e-04  1.000e+04 ( 1.000e-14)
377        Index:  3.331e-15  1.159e-07  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:  1.023e+00  8.755e-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:  8.388e-01  2.153e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.10
Ra Dec: 346.173 37.083
Photon Index (Free Index): 0.00 +/- 0.00
Photon Flux (Free Index): 2.96e-09 +/- 2.98e-09
Energy Flux (Free Index): 1.48e-04 +/- 1.49e-04

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/657999/cmap_HighResolution_371260801_371520001_4FGL_J2304.6+3704_daily_bin509.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.37e-08', energy_flux2='1.48e-04', photon_flux_error='2.01e-08', dlogl='2.89e+00', energy_flux='2.45e-05', photon_flux2='2.96e-09', job_status='DONE', time_completed='2021-09-29 06:44:04.367406', photon_index_error2='0.00', photon_index2='0.00', ts='8.36', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='1.49e-04', EG='0.83', time_epoch_completed='1632923044.37', return_code='0', job_id='657999', GAL2='1.02', EG2='0.84', return_code2='0', energy_flux_error='2.09e-05', photon_flux_error2='2.98e-09', ts2='14.10', photon_index='1.85' WHERE bin_id='509' AND source_name='4FGL J2304.6+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 06:44:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0286>
Subject: Job 657999: <4FGL_J2304.6+3704_daily_bin509> in cluster <slac> Done

Job <4FGL_J2304.6+3704_daily_bin509> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep 29 06:30:29 2021
Job was executed on host(s) <bullet0286>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 06:30:32 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 06:30:32 2021
Terminated at Wed Sep 29 06:44:05 2021
Results reported at Wed Sep 29 06:44:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2304.6+3704_daily_bin509 346.173 37.0826 371260801 371520001 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 :                                   790.47 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             346.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   812 sec.
    Turnaround time :                            816 sec.

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

