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


Performing analysis on: 4FGL_J2304.3+0618_daily_bin735
RA = 346.078, Dec = 6.3071
tmin = 429840001, tmax = 430099201
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='650748', job_status='RUN', time_executed='2021-09-29 06:07:45.387804', time_epoch_executed='1632920865.39' WHERE source_name='4FGL J2304.3+0618' and cadence='daily' and bin_id='735'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/650748

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/650748/ft1_4FGL_J2304.3+0618_daily_bin735.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/650748/ft2_4FGL_J2304.3+0618_daily_bin735.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/650748/ft1_4FGL_J2304.3+0618_daily_bin735.fits outfile=/scratch/kocevski/650748/ft1_filteredMKT_4FGL_J2304.3+0618_daily_bin735.fits ra=346.078 dec=6.3071 rad=12.0 tmin=429840001.0 tmax=430099201.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.84
user 5.59
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/650748/ft2_4FGL_J2304.3+0618_daily_bin735.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/650748/ft2_4FGL_J2304.3+0618_daily_bin735.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/650748/ft1_filteredMKT_4FGL_J2304.3+0618_daily_bin735.fits evtable="EVENTS" outfile="/scratch/kocevski/650748/ft1_filtered_4FGL_J2304.3+0618_daily_bin735.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.48
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/650748/ft1_filtered_4FGL_J2304.3+0618_daily_bin735.fits" evtable="EVENTS" scfile=/scratch/kocevski/650748/ft2_4FGL_J2304.3+0618_daily_bin735.fits sctable="SC_DATA" outfile=/scratch/kocevski/650748/ltcube_429840001_430099201_4FGL_J2304.3+0618_daily_bin735.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/650748/ft2_4FGL_J2304.3+0618_daily_bin735.fits
.....................!
real 12.53
user 12.17
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/650748/ft1_filtered_4FGL_J2304.3+0618_daily_bin735.fits evtable="EVENTS" scfile=/scratch/kocevski/650748/ft2_4FGL_J2304.3+0618_daily_bin735.fits sctable="SC_DATA" expcube=/scratch/kocevski/650748/ltcube_429840001_430099201_4FGL_J2304.3+0618_daily_bin735.fits outfile=/scratch/kocevski/650748/expmap_429840001_430099201_4FGL_J2304.3+0618_daily_bin735.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/650748/ltcube_429840001_430099201_4FGL_J2304.3+0618_daily_bin735.fits
.....................!
real 191.11
user 185.80
sys 4.94

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 165 point sources and 0 extended sources

Setting source of interest to:
4FGL J2304.3+0618 @ 346.078 6.3071

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/650748/ft1_filtered_4FGL_J2304.3+0618_daily_bin735.fits scfile=/scratch/kocevski/650748/ft2_4FGL_J2304.3+0618_daily_bin735.fits outfile=/scratch/kocevski/650748/cmap_429840001_430099201_4FGL_J2304.3+0618_daily_bin735.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.078 yref=6.3071 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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/650748/ft1_filtered_4FGL_J2304.3+0618_daily_bin735.fits scfile=/scratch/kocevski/650748/ft2_4FGL_J2304.3+0618_daily_bin735.fits outfile=/scratch/kocevski/650748/cmap_HighResolution_429840001_430099201_4FGL_J2304.3+0618_daily_bin735.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.078 yref=6.3071 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/650748/ft1_filtered_4FGL_J2304.3+0618_daily_bin735.fits evtable="EVENTS" scfile=/scratch/kocevski/650748/ft2_4FGL_J2304.3+0618_daily_bin735.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/650748/Model_4FGL_J2304.3+0618_daily_bin735.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/650748/ft1_filtered_4FGL_J2304.3+0618_daily_bin735.fits.....................!
real 60.46
user 59.22
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/650748/ft1_filtered_4FGL_J2304.3+0618_daily_bin735.fits', '/scratch/kocevski/650748/ft2_4FGL_J2304.3+0618_daily_bin735.fits', expMap='/scratch/kocevski/650748/expmap_429840001_430099201_4FGL_J2304.3+0618_daily_bin735.fits', expCube='/scratch/kocevski/650748/ltcube_429840001_430099201_4FGL_J2304.3+0618_daily_bin735.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/650748/Model_4FGL_J2304.3+0618_daily_bin735.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2304.3+0618'

4FGL J2304.3+0618
   Spectrum: PowerLaw
362    Prefactor:  4.761e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
363        Index:  2.530e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
364        Scale:  8.008e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/650748/ft1_filtered_4FGL_J2304.3+0618_daily_bin735.fits
Spacecraft file(s): /scratch/kocevski/650748/ft2_4FGL_J2304.3+0618_daily_bin735.fits
Exposure map: /scratch/kocevski/650748/expmap_429840001_430099201_4FGL_J2304.3+0618_daily_bin735.fits
Exposure cube: /scratch/kocevski/650748/ltcube_429840001_430099201_4FGL_J2304.3+0618_daily_bin735.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/650748/Model_4FGL_J2304.3+0618_daily_bin735.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) = 4808.09365558

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    84.252       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .20489       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .61448       1.0000         .10000E-03   10000.    
     4 'Prefactor '    166.06       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10713E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.878       1.0000         .10000E-03   10000.    
     7 'norm      '    5.0957       1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.397       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.3795       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10538E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.0983       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10272E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.7935       1.0000         .10000E-03   10000.    
    16 'Prefactor '    17.797       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10488E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10179E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    69.765       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10405E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .60696       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .94952       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4808.093     FROM MIGRAD    STATUS=CONVERGED    562 CALLS     3400 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     84.231        60.779        .64269E-06   -.54785E-04
   2  Prefactor     .20508        .50614       -.17670E-06   -.17722E-05
   3  Prefactor     .61357        13.082        .17457E-07    .81527E-04
   4  Prefactor     166.07        111.83        .84509E-06    .21767E-04
   5  Prefactor     .10000E-03    47.776        .38419E-05** at limit **
   6  Prefactor     12.878        .98116        .25528E-07    .25980E-03
   7  norm          5.0941        16.200        .69208E-05   -.39361E-04
   8  Prefactor     20.375        67.392       -.19146E-05   -.30195E-04
   9  Prefactor     5.4043        18.499        .29538E-07   -.13741E-04
  10  Prefactor     .10000E-03    31.037       -.25762E-05** at limit **
  11  Prefactor     .10000E-03    8.6419       -.28366E-07** at limit **
  12  norm          1.0986        1.3522        .79571E-07    .12774E-04
  13  Prefactor     .10020E-03    20.370       -.52577E-06** at limit **
  14  Prefactor     .10000E-03    25.947        .14363E-05** at limit **
  15  norm          5.7668        18.597       -.61397E-06    .71507E-04
  16  Prefactor     17.800        16.599        .13986E-06    .36929E-04
  17  Prefactor     .10000E-03    110.63       -.25135E-05** at limit **
  18  Prefactor     .10000E-03    15.177       -.75270E-07** at limit **
  19  Prefactor     .10000E-03    11.732        .90475E-07** at limit **
  20  norm          .10000E-03    8.0896        .21517E-07** at limit **
  21  norm          .10000E-03    31.139       -.22240E-05** at limit **
  22  Prefactor     69.773        62.776        .10610E-05    .37697E-04
  23  Prefactor     .10000E-03    25.875        .16434E-05** at limit **
  24  Normalizat    .60721        .35587       -.24963E-05    .30571E-04
  25  Prefactor     .94937        .19255       -.18073E-06    .37665E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 84.2312
  Prefactor  = 0.205082
  Prefactor  = 0.61357
  Prefactor  = 166.071
  Prefactor  = 0.000100003
  Prefactor  = 12.8781
  norm       = 5.09411
  Prefactor  = 20.3755
  Prefactor  = 5.40426
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 1.09862
  Prefactor  = 0.000100197
  Prefactor  = 0.0001
  norm       = 5.7668
  Prefactor  = 17.8003
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 69.7732
  Prefactor  = 0.0001
  Normalizat = 0.607212
  Prefactor  = 0.949371
 **********
 **   18 **HESSE 
 **********

 FCN=   4808.093     FROM HESSE     STATUS=OK           429 CALLS     3829 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     84.231        57.864        .43764E-04   -1.3870    
   2  Prefactor     .20508        .48491        .55164E-04   -1.5617    
   3  Prefactor     .61357        59.918        .43835E-02   -1.5551    
   4  Prefactor     166.07        112.12        .15651E-03   -1.3123    
   5  Prefactor     .10000E-03    48.814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     12.878        .98279        .17291E-04   -1.4990    
   7  norm          5.0941        16.272        .89056E-03   -1.5257    
   8  Prefactor     20.375        67.793        .88685E-04   -1.4805    
   9  Prefactor     5.4043        18.481        .17327E-03   -1.5243    
  10  Prefactor     .10000E-03    31.487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.6446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.0986        1.2416        .85550E-03   -1.5498    
  13  Prefactor     .10020E-03    105.66        .54735E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    26.081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.7668        17.141        .16686E-03   -1.5228    
  16  Prefactor     17.800        16.428        .94939E-04   -1.4864    
  17  Prefactor     .10000E-03    111.08        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    15.451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.736        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    8.0905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    31.611        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     69.773        63.024        .48059E-04   -1.4035    
  23  Prefactor     .10000E-03    26.100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .60721        .39721        .50841E-03   -1.0768    
  25  Prefactor     .94937        .22144        .24506E-03   -.94437    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.40438e-09
Minuit parameter uncertainties:
  1  57.9028
  2  0.484916
  3  12.1382
  4  112.259
  5  0.000792874
  6  0.982789
  7  16.2859
  8  68.0514
  9  18.5006
  10  0.000313083
  11  7.13763e-07
  12  1.24166
  13  0.00914327
  14  0.000214007
  15  17.1557
  16  16.4317
  17  0.000808787
  18  9.71185e-06
  19  9.47479e-06
  20  2.85013e-06
  21  0.00037982
  22  63.0844
  23  0.000215694
  24  0.399093
  25  0.221655
Done.

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

Extracting fit parameters...

4FGL J2304.3+0618
   Spectrum: PowerLaw
362    Prefactor:  2.038e+01  6.805e+01  1.000e-04  1.000e+04 ( 1.000e-13)
363        Index:  2.530e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
364        Scale:  8.008e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  9.494e-01  2.217e-01  0.000e+00  1.000e+01 ( 1.000e+00)
538        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
539        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
536   Normalization:  6.072e-01  3.991e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.11
Ra Dec: 346.078 6.307
Photon Flux Upper Limit: 2.25e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.75e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/650748/likelihoodResults_429840001_430099201_4FGL_J2304.3+0618_daily_bin735.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4808.05545499
delta logL = 0.0371109536454

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4808.05296104
delta logL = 0.039604904634

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.166       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9413       1.0000          .0000       10.000    
     3 'Normalizat'    .59215       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95394       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5400E+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=   4808.053     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      261 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.173        60.654        .96668E-04    .57391E-04
   2  Index         2.9366        1.6485        .11391E-01    .26788E-04
   3  Normalizat    .59330        .36659        .51395E-03    .45588E-03
   4  Prefactor     .95330        .21600        .24459E-03    .82146E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.1732
  Index      = 2.93659
  Normalizat = 0.593298
  Prefactor  = 0.953297
 **********
 **   18 **HESSE 
 **********

 FCN=   4808.053     FROM HESSE     STATUS=OK            25 CALLS      286 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.173        53.627        .38667E-05   -1.4879    
   2  Index         2.9366        1.4626        .45564E-03   -.42540    
   3  Normalizat    .59330        .36705        .20558E-04   -1.0827    
   4  Prefactor     .95330        .21603        .48917E-04   -.94303    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2277e-09
Minuit parameter uncertainties:
  1  53.7779
  2  1.48896
  3  0.368573
  4  0.216221
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/650748': 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) = 4808.05294984
delta logL = 0.0396161018707

Extracting fit parameters...

4FGL J2304.3+0618
   Spectrum: PowerLaw
362    Prefactor:  1.717e+01  5.378e+01  1.000e-04  1.000e+04 ( 1.000e-13)
363        Index:  2.937e+00  1.489e+00  0.000e+00  1.000e+01 (-1.000e+00)
364        Scale:  8.008e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  9.533e-01  2.162e-01  0.000e+00  1.000e+01 ( 1.000e+00)
538        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
539        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
536   Normalization:  5.933e-01  3.686e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.11
Ra Dec: 346.078 6.307

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/650748/cmap_HighResolution_429840001_430099201_4FGL_J2304.3+0618_daily_bin735.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.75e-02', job_status='DONE', photon_flux_upper_limit='2.25e-07', time_completed='2021-09-29 06:19:01.236547', job_id='650748', GAL2='0.95', fit_tolerance='1e-08', EG2='0.59', EG='0.61', time_epoch_completed='1632921541.24', return_code2='0', ts='0.11', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='3.96e-02', ts2='0.18', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='735' AND source_name='4FGL J2304.3+0618' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 06:19:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 650748: <4FGL_J2304.3+0618_daily_bin735> in cluster <slac> Done

Job <4FGL_J2304.3+0618_daily_bin735> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 06:05:30 2021
Job was executed on host(s) <bullet0051>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 06:05:31 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:05:31 2021
Terminated at Wed Sep 29 06:19:02 2021
Results reported at Wed Sep 29 06:19:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2304.3+0618_daily_bin735 346.078 6.3071 429840001 430099201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2304.3+0618 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   673.09 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             291.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   810 sec.
    Turnaround time :                            812 sec.

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

