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


Performing analysis on: 4FGL_J2304.3+0618_daily_bin760
RA = 346.078, Dec = 6.3071
tmin = 436320001, tmax = 436579201
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='650783', job_status='RUN', time_executed='2021-09-29 06:09:14.239545', time_epoch_executed='1632920954.24' WHERE source_name='4FGL J2304.3+0618' and cadence='daily' and bin_id='760'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/650783

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/650783/ft1_4FGL_J2304.3+0618_daily_bin760.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/650783/ft2_4FGL_J2304.3+0618_daily_bin760.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/650783/ft1_4FGL_J2304.3+0618_daily_bin760.fits outfile=/scratch/kocevski/650783/ft1_filteredMKT_4FGL_J2304.3+0618_daily_bin760.fits ra=346.078 dec=6.3071 rad=12.0 tmin=436320001.0 tmax=436579201.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.20
user 4.98
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/650783/ft1_filtered_4FGL_J2304.3+0618_daily_bin760.fits evtable="EVENTS" scfile=/scratch/kocevski/650783/ft2_4FGL_J2304.3+0618_daily_bin760.fits sctable="SC_DATA" expcube=/scratch/kocevski/650783/ltcube_436320001_436579201_4FGL_J2304.3+0618_daily_bin760.fits outfile=/scratch/kocevski/650783/expmap_436320001_436579201_4FGL_J2304.3+0618_daily_bin760.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/650783/ltcube_436320001_436579201_4FGL_J2304.3+0618_daily_bin760.fits
.....................!
real 190.26
user 185.23
sys 4.66

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/650783/ft1_filtered_4FGL_J2304.3+0618_daily_bin760.fits scfile=/scratch/kocevski/650783/ft2_4FGL_J2304.3+0618_daily_bin760.fits outfile=/scratch/kocevski/650783/cmap_436320001_436579201_4FGL_J2304.3+0618_daily_bin760.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.56
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/650783/ft1_filtered_4FGL_J2304.3+0618_daily_bin760.fits scfile=/scratch/kocevski/650783/ft2_4FGL_J2304.3+0618_daily_bin760.fits outfile=/scratch/kocevski/650783/cmap_HighResolution_436320001_436579201_4FGL_J2304.3+0618_daily_bin760.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.56
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/650783/ft1_filtered_4FGL_J2304.3+0618_daily_bin760.fits evtable="EVENTS" scfile=/scratch/kocevski/650783/ft2_4FGL_J2304.3+0618_daily_bin760.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/650783/Model_4FGL_J2304.3+0618_daily_bin760.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/650783/ft1_filtered_4FGL_J2304.3+0618_daily_bin760.fits.....................!
real 61.79
user 60.41
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/650783/ft1_filtered_4FGL_J2304.3+0618_daily_bin760.fits', '/scratch/kocevski/650783/ft2_4FGL_J2304.3+0618_daily_bin760.fits', expMap='/scratch/kocevski/650783/expmap_436320001_436579201_4FGL_J2304.3+0618_daily_bin760.fits', expCube='/scratch/kocevski/650783/ltcube_436320001_436579201_4FGL_J2304.3+0618_daily_bin760.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/650783/Model_4FGL_J2304.3+0618_daily_bin760.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/650783/ft1_filtered_4FGL_J2304.3+0618_daily_bin760.fits
Spacecraft file(s): /scratch/kocevski/650783/ft2_4FGL_J2304.3+0618_daily_bin760.fits
Exposure map: /scratch/kocevski/650783/expmap_436320001_436579201_4FGL_J2304.3+0618_daily_bin760.fits
Exposure cube: /scratch/kocevski/650783/ltcube_436320001_436579201_4FGL_J2304.3+0618_daily_bin760.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/650783/Model_4FGL_J2304.3+0618_daily_bin760.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) = 4926.77378622

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.4808       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.7046       1.0000         .10000E-03   10000.    
     7 'norm      '    30.212       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.0745       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    14.256       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.1031       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10578E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .65663       1.0000         .10000E-03   10000.    
    19 'Prefactor '    106.62       1.0000         .10000E-03   10000.    
    20 'norm      '    14.430       1.0000         .10000E-03   10000.    
    21 'norm      '    .10076E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    17.121       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .38244       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1906       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=   4926.721     FROM MIGRAD    STATUS=CONVERGED    570 CALLS     2891 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    33.237        .81017E-06** at limit **
   2  Prefactor     3.4809        .60469       -.37494E-08   -.93606E-03
   3  Prefactor     .10000E-03    8.2562        .29192E-07** at limit **
   4  Prefactor     .10000E-03    23.641       -.26930E-06** at limit **
   5  Prefactor     .10000E-03    21.727       -.71821E-07** at limit **
   6  Prefactor     8.7047        .69172        .15273E-07    .83406E-03
   7  norm          30.221        30.646        .82983E-06   -.64814E-04
   8  Prefactor     .10000E-03    36.278       -.32137E-07** at limit **
   9  Prefactor     .10000E-03    11.618        .99715E-07** at limit **
  10  Prefactor     .10000E-03    9.8951        .54471E-07** at limit **
  11  Prefactor     .10000E-03    21.807       -.85893E-07** at limit **
  12  norm          2.0754        1.9720        .72415E-07    .30806E-04
  13  Prefactor     .10000E-03    14.188       -.12640E-06** at limit **
  14  Prefactor     .10000E-03    36.886       -.48398E-06** at limit **
  15  norm          14.258        17.746       -.21256E-05    .14389E-04
  16  Prefactor     3.1054        10.649        .68384E-05   -.45350E-04
  17  Prefactor     .10000E-03    346.97        .49608E-06** at limit **
  18  Prefactor     .64792        10.077       -.85614E-06    .65972E-05
  19  Prefactor     106.63        54.217        .14901E-06    .78975E-04
  20  norm          14.432        20.445       -.91809E-07   -.22168E-04
  21  norm          .10000E-03    21.462       -.77102E-08** at limit **
  22  Prefactor     .10000E-03    20.437        .37723E-06** at limit **
  23  Prefactor     17.127        28.166        .54439E-06   -.65414E-04
  24  Normalizat    .38207        .43724       -.78500E-05   -.55983E-04
  25  Prefactor     1.1908        .24124        .19505E-05    .51350E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Prefactor  = 3.48091
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.7047
  norm       = 30.2212
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.07545
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 14.2581
  Prefactor  = 3.10545
  Prefactor  = 0.000100001
  Prefactor  = 0.647923
  Prefactor  = 106.629
  norm       = 14.4322
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 17.1267
  Normalizat = 0.382069
  Prefactor  = 1.19076
 **********
 **   18 **HESSE 
 **********

 FCN=   4926.721     FROM HESSE     STATUS=OK           423 CALLS     3314 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    33.635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.4809        .60137        .21465E-04   -1.5335    
   3  Prefactor     .10000E-03    8.2682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    23.680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    21.744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.7047        .68865        .15701E-04   -1.5118    
   7  norm          30.221        30.422        .72893E-04   -1.4608    
   8  Prefactor     .10000E-03    36.310        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.736        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.9069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    21.845        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.0754        1.9477        .90873E-04   -1.5420    
  13  Prefactor     .10000E-03    14.220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    37.013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          14.258        17.612        .10608E-03   -1.4953    
  16  Prefactor     3.1054        10.680        .11510E-02   -1.5356    
  17  Prefactor     .10000E-03    347.16        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .64792        55.230        .42120E-02   -1.5547    
  19  Prefactor     106.63        53.748        .38947E-04   -1.3639    
  20  norm          14.432        20.451        .10544E-03   -1.4948    
  21  norm          .10000E-03    21.489        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    20.503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     17.127        28.143        .96795E-04   -1.4880    
  24  Normalizat    .38207        .41369        .67244E-03   -1.1824    
  25  Prefactor     1.1908        .23665        .23747E-03   -.86616    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.99293e-10
Minuit parameter uncertainties:
  1  0.000738253
  2  0.601366
  3  6.6135e-06
  4  0.000209211
  5  7.66152e-05
  6  0.688646
  7  30.4374
  8  0.000193863
  9  1.22524e-05
  10  1.26235e-05
  11  0.000104868
  12  1.94773
  13  2.51315e-06
  14  0.000512502
  15  17.6184
  16  10.6861
  17  0.00122867
  18  11.9746
  19  53.7723
  20  20.461
  21  2.87688e-05
  22  0.000239751
  23  28.1652
  24  0.417063
  25  0.236863
Done.

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

Extracting fit parameters...

4FGL J2304.3+0618
   Spectrum: PowerLaw
362    Prefactor:  1.000e-04  1.939e-04  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:  1.191e+00  2.369e-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:  3.821e-01  4.171e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/650783/likelihoodResults_436320001_436579201_4FGL_J2304.3+0618_daily_bin760.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): 102
logL (Free Index) = 4926.72123331
delta logL = -0.000131082143525

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4926.72110254
delta logL = -3.09985807689e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.3257       1.0000          .0000       10.000    
     3 'Normalizat'    .38206       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1908       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=   4926.721     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      280 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10112E-03    296.38        .18142E-02** at limit **
   2  Index         3.2757        8.1797        .50000        .38473E-05
   3  Normalizat    .38207        .26077E-01    .67244E-03   -.15461E-03
   4  Prefactor     1.1908        .15819E-01    .23747E-03   -.25476E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101124
  Index      = 3.27569
  Normalizat = 0.382068
  Prefactor  = 1.19076
 **********
 **   18 **HESSE 
 **********

 FCN=   4926.721     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      309 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10112E-03    1270.2        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.2757        6.5495        .50000       -.35209    
   3  Normalizat    .38207        .57081E-01    .26898E-04   -1.1824    
   4  Prefactor     1.1908        .34626E-01    .47494E-04   -.86616    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.27223e-09
Minuit parameter uncertainties:
  1  0.0772813
  2  1599.36
  3  0.0570895
  4  0.0346263
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/650783': 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): 102
logL (Free Index) = 4926.7211025
delta logL = -2.73291334452e-07

Extracting fit parameters...

4FGL J2304.3+0618
   Spectrum: PowerLaw
362    Prefactor:  1.011e-04  7.728e-02  1.000e-04  1.000e+04 ( 1.000e-13)
363        Index:  3.276e+00  1.599e+03  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:  1.191e+00  3.463e-02  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:  3.821e-01  5.709e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/650783/cmap_HighResolution_436320001_436579201_4FGL_J2304.3+0618_daily_bin760.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.29e-02', job_status='DONE', photon_flux_upper_limit='1.66e-07', time_completed='2021-09-29 06:20:11.202908', job_id='650783', GAL2='1.19', fit_tolerance='1e-08', EG2='0.38', EG='0.38', time_epoch_completed='1632921611.2', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.19', dlogl='-2.73e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='760' AND source_name='4FGL J2304.3+0618' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 06:20:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 650783: <4FGL_J2304.3+0618_daily_bin760> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2304.3+0618_daily_bin760 346.078 6.3071 436320001 436579201 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 :                                   655.08 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             289.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   877 sec.
    Turnaround time :                            879 sec.

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

