/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 7 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.3+0618_daily_bin524
RA = 346.078, Dec = 6.3071
tmin = 375148801, tmax = 375408001
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='649395', job_status='RUN', time_executed='2021-09-29 06:01:05.576025', time_epoch_executed='1632920465.58' WHERE source_name='4FGL J2304.3+0618' and cadence='daily' and bin_id='524'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/649395

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/649395/ft1_4FGL_J2304.3+0618_daily_bin524.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/649395/ft2_4FGL_J2304.3+0618_daily_bin524.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/649395/ft1_4FGL_J2304.3+0618_daily_bin524.fits outfile=/scratch/kocevski/649395/ft1_filteredMKT_4FGL_J2304.3+0618_daily_bin524.fits ra=346.078 dec=6.3071 rad=12.0 tmin=375148801.0 tmax=375408001.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.36
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/649395/ft1_filtered_4FGL_J2304.3+0618_daily_bin524.fits evtable="EVENTS" scfile=/scratch/kocevski/649395/ft2_4FGL_J2304.3+0618_daily_bin524.fits sctable="SC_DATA" expcube=/scratch/kocevski/649395/ltcube_375148801_375408001_4FGL_J2304.3+0618_daily_bin524.fits outfile=/scratch/kocevski/649395/expmap_375148801_375408001_4FGL_J2304.3+0618_daily_bin524.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/649395/ltcube_375148801_375408001_4FGL_J2304.3+0618_daily_bin524.fits
.....................!
real 190.32
user 184.98
sys 4.84

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/649395/ft1_filtered_4FGL_J2304.3+0618_daily_bin524.fits scfile=/scratch/kocevski/649395/ft2_4FGL_J2304.3+0618_daily_bin524.fits outfile=/scratch/kocevski/649395/cmap_375148801_375408001_4FGL_J2304.3+0618_daily_bin524.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.53
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/649395/ft1_filtered_4FGL_J2304.3+0618_daily_bin524.fits scfile=/scratch/kocevski/649395/ft2_4FGL_J2304.3+0618_daily_bin524.fits outfile=/scratch/kocevski/649395/cmap_HighResolution_375148801_375408001_4FGL_J2304.3+0618_daily_bin524.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.708       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.8018       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10518E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10327E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .26849       1.0000         .10000E-03   10000.    
     7 'norm      '    37.970       1.0000         .10000E-03   10000.    
     8 'Prefactor '    32.797       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .82824       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .17523E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.921       1.0000         .10000E-03   10000.    
    12 'norm      '    .97622       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10799E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    112.03       1.0000         .10000E-03   10000.    
    15 'norm      '    3.9886       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .16818E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10197E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    25.041       1.0000         .10000E-03   10000.    
    20 'norm      '    13.968       1.0000         .10000E-03   10000.    
    21 'norm      '    6.8962       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.6210       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .65445       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=   6661.880     FROM MIGRAD    STATUS=CONVERGED    572 CALLS     2973 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.702        21.388        .83084E-07   -.58767E-05
   2  Prefactor     1.8019        .33778       -.27872E-07   -.10577E-02
   3  Prefactor     .10000E-03    9.6318        .39791E-06** at limit **
   4  Prefactor     .10000E-03    16.086        .21199E-06** at limit **
   5  Prefactor     .10000E-03    13.073        .36234E-06** at limit **
   6  Prefactor     .26836        .15505       -.43247E-07   -.27598E-02
   7  norm          37.960        18.911       -.37559E-06   -.11217E-04
   8  Prefactor     32.746        44.096       -.20000E-05   -.87745E-04
   9  Prefactor     .83355        5.1856        .11176E-05   -.27308E-03
  10  Prefactor     .10000E-03    30.560        .15990E-06** at limit **
  11  Prefactor     12.917        15.973       -.23709E-06   -.95666E-05
  12  norm          .97609        .90363       -.11555E-06   -.26759E-03
  13  Prefactor     .10000E-03    11.726       -.72052E-06** at limit **
  14  Prefactor     111.98        79.923       -.12026E-05   -.51272E-04
  15  norm          3.9821        7.3568        .31662E-07    .26203E-03
  16  Prefactor     .10002E-03    4.9397       -.14265E-05** at limit **
  17  Prefactor     .10000E-03    90.367       -.11004E-07** at limit **
  18  Prefactor     .10000E-03    11.629       -.57895E-06** at limit **
  19  Prefactor     25.020        29.474       -.12085E-06    .28181E-04
  20  norm          13.956        22.543       -.48428E-06    .26947E-04
  21  norm          6.8931        13.133        .37522E-06    .50705E-04
  22  Prefactor     .10000E-03    12.515       -.22759E-06** at limit **
  23  Prefactor     .10000E-03    7.1447        .19465E-07** at limit **
  24  Normalizat    1.6217        .28885        .62832E-05   -.36932E-04
  25  Prefactor     .65411        .15402       -.50782E-05   -.94605E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.7019
  Prefactor  = 1.80191
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.268362
  norm       = 37.9597
  Prefactor  = 32.7458
  Prefactor  = 0.833551
  Prefactor  = 0.0001
  Prefactor  = 12.9171
  norm       = 0.976087
  Prefactor  = 0.0001
  Prefactor  = 111.976
  norm       = 3.98211
  Prefactor  = 0.000100018
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.0197
  norm       = 13.9564
  norm       = 6.89314
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.62167
  Prefactor  = 0.654109
 **********
 **   18 **HESSE 
 **********

 FCN=   6661.880     FROM HESSE     STATUS=OK           437 CALLS     3410 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.702        21.499        .88018E-04   -1.4798    
   2  Prefactor     1.8019        .34008        .18991E-04   -1.5439    
   3  Prefactor     .10000E-03    9.9537        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    16.128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    87.244        .56620E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .26836        .15097        .22758E-04   -1.5604    
   7  norm          37.960        18.918        .65044E-04   -1.4475    
   8  Prefactor     32.746        44.455        .69969E-04   -1.4563    
   9  Prefactor     .83355        18.636        .32645E-02   -1.5525    
  10  Prefactor     .10000E-03    31.631        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     12.917        15.970        .11143E-03   -1.4989    
  12  norm          .97609        .89889        .71997E-04   -1.5510    
  13  Prefactor     .10000E-03    11.862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     111.98        80.142        .19003E-03   -1.3588    
  15  norm          3.9821        7.1008        .20195E-03   -1.5309    
  16  Prefactor     .10002E-03    21.502        .31002E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    90.374        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    11.733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     25.020        29.384        .80051E-04   -1.4707    
  20  norm          13.956        22.454        .10717E-03   -1.4961    
  21  norm          6.8931        13.125        .15278E-03   -1.5183    
  22  Prefactor     .10000E-03    12.534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    7.1495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.6217        .29258        .29224E-03   -.74415    
  25  Prefactor     .65411        .15546        .24481E-03   -1.0535    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37756e-09
Minuit parameter uncertainties:
  1  21.5068
  2  0.340084
  3  6.24039e-05
  4  5.28496e-05
  5  0.000744896
  6  0.150968
  7  18.9212
  8  44.4999
  9  7.88492
  10  1.77671e-05
  11  15.9757
  12  0.898906
  13  5.55341e-05
  14  80.2198
  15  7.10235
  16  0.00125398
  17  8.32864e-06
  18  6.81028e-05
  19  29.4006
  20  22.468
  21  13.1302
  22  4.9178e-05
  23  8.19159e-07
  24  0.292889
  25  0.155562
Done.

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

Extracting fit parameters...

4FGL J2304.3+0618
   Spectrum: PowerLaw
362    Prefactor:  3.275e+01  4.450e+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:  6.541e-01  1.556e-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:  1.622e+00  2.929e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/649395/likelihoodResults_375148801_375408001_4FGL_J2304.3+0618_daily_bin524.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) = 6659.75289167
delta logL = 2.12751725411

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6659.64012934
delta logL = 2.24027958747

Fit tolerance = 1e-08

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

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

 FCN=   6659.640     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      329 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .62728        4.6506        .72154E-02    .91367E-03
   2  Index         5.6470        2.4855        .97368E-01    .17371E-03
   3  Normalizat    1.4512        .75227E-01    .68972E-01    .93993E-05
   4  Prefactor     .72401        .42357E-01    .42713E-01    .17644E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.627285
  Index      = 5.64698
  Normalizat = 1.45121
  Prefactor  = 0.724011
 **********
 **   18 **HESSE 
 **********

 FCN=   6659.640     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      362 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .62728        8.5351        .32521E-04   -1.5550    
   2  Index         5.6470        3.5238        .39578E-02    .12976    
   3  Normalizat    1.4512        .25357        .30514E-03   -.79159    
   4  Prefactor     .72401        .14016        .23376E-03   -1.0259    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.94589e-10
Minuit parameter uncertainties:
  1  4.62814
  2  3.91948
  3  0.253796
  4  0.140225
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/649395': 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) = 6659.6401202
delta logL = 2.24028872749

Extracting fit parameters...

4FGL J2304.3+0618
   Spectrum: PowerLaw
362    Prefactor:  6.273e-01  4.628e+00  1.000e-04  1.000e+04 ( 1.000e-13)
363        Index:  5.647e+00  3.919e+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:  7.240e-01  1.402e-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:  1.451e+00  2.538e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.60
Ra Dec: 346.078 6.307
Photon Index (Free Index): 5.65 +/- 3.92
Photon Flux (Free Index): 1.72e-07 +/- 8.90e-08
Energy Flux (Free Index): 2.19e-05 +/- 1.28e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/649395/cmap_HighResolution_375148801_375408001_4FGL_J2304.3+0618_daily_bin524.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.24e-02', comment='SUCCESS', energy_flux2='2.19e-05', dlogl='2.24e+00', photon_flux2='1.72e-07', job_status='DONE', time_completed='2021-09-29 06:13:31.432261', photon_index_error2='3.92', photon_index2='5.65', ts='0.69', fit_tolerance='1e-08', GAL='0.65', photon_index_error='0.00', photon_flux_upper_limit='1.60e-07', energy_flux_error2='1.28e-05', EG='1.62', time_epoch_completed='1632921211.43', return_code='0', job_id='649395', GAL2='0.72', EG2='1.45', return_code2='102', photon_flux_error2='8.90e-08', ts2='5.60', photon_index='2.53' WHERE bin_id='524' AND source_name='4FGL J2304.3+0618' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 06:13:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 649395: <4FGL_J2304.3+0618_daily_bin524> in cluster <slac> Done

Job <4FGL_J2304.3+0618_daily_bin524> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 06:00:50 2021
Job was executed on host(s) <bullet0245>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 06:00:52 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:00:52 2021
Terminated at Wed Sep 29 06:13:32 2021
Results reported at Wed Sep 29 06:13:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2304.3+0618_daily_bin524 346.078 6.3071 375148801 375408001 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 :                                   737.21 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             283.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   759 sec.
    Turnaround time :                            762 sec.

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

