/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 167 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 = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2304.3+0618_daily_bin456
RA = 346.078, Dec = 6.3071
tmin = 357523201, tmax = 357782401
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='649288', job_status='RUN', time_executed='2021-09-29 06:03:37.360591', time_epoch_executed='1632920617.36' WHERE source_name='4FGL J2304.3+0618' and cadence='daily' and bin_id='456'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/649288

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/649288/ft1_4FGL_J2304.3+0618_daily_bin456.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/649288/ft2_4FGL_J2304.3+0618_daily_bin456.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/649288/ft1_4FGL_J2304.3+0618_daily_bin456.fits outfile=/scratch/kocevski/649288/ft1_filteredMKT_4FGL_J2304.3+0618_daily_bin456.fits ra=346.078 dec=6.3071 rad=12.0 tmin=357523201.0 tmax=357782401.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 3.57
user 3.33
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/649288/ft2_4FGL_J2304.3+0618_daily_bin456.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/649288/ft1_filteredMKT_4FGL_J2304.3+0618_daily_bin456.fits evtable="EVENTS" outfile="/scratch/kocevski/649288/ft1_filtered_4FGL_J2304.3+0618_daily_bin456.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/649288/ft1_filtered_4FGL_J2304.3+0618_daily_bin456.fits" evtable="EVENTS" scfile=/scratch/kocevski/649288/ft2_4FGL_J2304.3+0618_daily_bin456.fits sctable="SC_DATA" outfile=/scratch/kocevski/649288/ltcube_357523201_357782401_4FGL_J2304.3+0618_daily_bin456.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/649288/ft2_4FGL_J2304.3+0618_daily_bin456.fits
.....................!
real 12.26
user 11.88
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/649288/ft1_filtered_4FGL_J2304.3+0618_daily_bin456.fits evtable="EVENTS" scfile=/scratch/kocevski/649288/ft2_4FGL_J2304.3+0618_daily_bin456.fits sctable="SC_DATA" expcube=/scratch/kocevski/649288/ltcube_357523201_357782401_4FGL_J2304.3+0618_daily_bin456.fits outfile=/scratch/kocevski/649288/expmap_357523201_357782401_4FGL_J2304.3+0618_daily_bin456.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/649288/ltcube_357523201_357782401_4FGL_J2304.3+0618_daily_bin456.fits
.....................!
real 190.57
user 185.32
sys 4.76

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/649288/ft1_filtered_4FGL_J2304.3+0618_daily_bin456.fits scfile=/scratch/kocevski/649288/ft2_4FGL_J2304.3+0618_daily_bin456.fits outfile=/scratch/kocevski/649288/cmap_357523201_357782401_4FGL_J2304.3+0618_daily_bin456.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/649288/ft1_filtered_4FGL_J2304.3+0618_daily_bin456.fits scfile=/scratch/kocevski/649288/ft2_4FGL_J2304.3+0618_daily_bin456.fits outfile=/scratch/kocevski/649288/cmap_HighResolution_357523201_357782401_4FGL_J2304.3+0618_daily_bin456.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.563       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .75058       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.2719       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .83932E-01   1.0000         .10000E-03   10000.    
     7 'norm      '    10.849       1.0000         .10000E-03   10000.    
     8 'Prefactor '    64.394       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.5566       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.6524       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .97731       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    47.532       1.0000         .10000E-03   10000.    
    15 'norm      '    .11166E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.843       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .13655E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .94279E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .38887E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    29.621       1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.115       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0427       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .81147       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=   6260.567     FROM MIGRAD    STATUS=CONVERGED    597 CALLS     2993 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.561        16.826        .46055E-07   -.42013E-05
   2  Prefactor     .75049        .21188        .39195E-08    .77334E-04
   3  Prefactor     .10000E-03    4.7354        .14326E-06** at limit **
   4  Prefactor     3.2687        51.557        .60095E-06    .35495E-05
   5  Prefactor     .10000E-03    9.3220       -.12225E-06** at limit **
   6  Prefactor     .83909E-01    .86243E-01   -.68720E-07   -.27399E-02
   7  norm          10.841        15.050        .35609E-06   -.21223E-04
   8  Prefactor     64.371        42.523       -.15333E-08   -.36338E-04
   9  Prefactor     1.5561        4.8873        .39071E-06   -.18466E-03
  10  Prefactor     1.6518        8.1302        .29923E-06   -.12741E-03
  11  Prefactor     .10000E-03    5.7673       -.49684E-07** at limit **
  12  norm          .97646        1.0419        .17662E-06    .33302E-03
  13  Prefactor     .10000E-03    3.4779        .84694E-08** at limit **
  14  Prefactor     47.400        59.716       -.19547E-05   -.80133E-04
  15  norm          .10000E-03    19.539        .13622E-05** at limit **
  16  Prefactor     14.854        8.1345       -.79710E-06   -.61488E-03
  17  Prefactor     .10000E-03    81.028        .48340E-06** at limit **
  18  Prefactor     .10000E-03    20.809       -.39340E-06** at limit **
  19  Prefactor     .10000E-03    13.692        .10591E-06** at limit **
  20  norm          .10000E-03    82.320       -.10534E-04** at limit **
  21  norm          .10000E-03    47.382        .68084E-05** at limit **
  22  Prefactor     29.578        40.524        .81000E-06   -.28732E-04
  23  Prefactor     10.115        15.464        .50767E-07   -.15857E-04
  24  Normalizat    1.0433        .25323       -.55410E-05   -.15099E-03
  25  Prefactor     .81124        .14167        .32789E-05   -.43441E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.5611
  Prefactor  = 0.75049
  Prefactor  = 0.0001
  Prefactor  = 3.26866
  Prefactor  = 0.0001
  Prefactor  = 0.083909
  norm       = 10.8413
  Prefactor  = 64.371
  Prefactor  = 1.55612
  Prefactor  = 1.65178
  Prefactor  = 0.0001
  norm       = 0.976462
  Prefactor  = 0.0001
  Prefactor  = 47.3996
  norm       = 0.0001
  Prefactor  = 14.8536
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 29.5784
  Prefactor  = 10.115
  Normalizat = 1.04325
  Prefactor  = 0.811239
 **********
 **   18 **HESSE 
 **********

 FCN=   6260.567     FROM HESSE     STATUS=OK           447 CALLS     3440 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.561        16.850        .86256E-04   -1.4779    
   2  Prefactor     .75049        .21202        .18120E-04   -1.5535    
   3  Prefactor     .10000E-03    4.7972        .16809E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.2687        50.526        .22387E-03   -1.5346    
   5  Prefactor     .10000E-03    9.3705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .83909E-01    .81499E-01    .22101E-03   -1.5650    
   7  norm          10.841        15.067        .12164E-03   -1.5049    
   8  Prefactor     64.371        42.634        .50010E-04   -1.4102    
   9  Prefactor     1.5561        4.8621        .29599E-03   -1.5458    
  10  Prefactor     1.6518        8.0562        .32841E-03   -1.5451    
  11  Prefactor     .10000E-03    5.7750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .97646        1.0009        .79767E-03   -1.5510    
  13  Prefactor     .10000E-03    3.4854        .14408E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     47.400        60.437        .29080E-03   -1.4330    
  15  norm          .10000E-03    20.377        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     14.854        8.3725        .10396E-03   -1.4937    
  17  Prefactor     .10000E-03    81.037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    21.169        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    13.732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    88.157        .41469E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    22.916        .10965       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     29.578        40.520        .73615E-04   -1.4620    
  23  Prefactor     10.115        15.457        .12599E-03   -1.5072    
  24  Normalizat    1.0433        .25732        .29147E-03   -.91595    
  25  Prefactor     .81124        .14339        .19491E-03   -.99315    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.93705e-10
Minuit parameter uncertainties:
  1  16.8541
  2  0.212018
  3  7.28843e-06
  4  25.7279
  5  6.84839e-06
  6  0.0814993
  7  15.0723
  8  42.6547
  9  4.86334
  10  7.29715
  11  1.48125e-05
  12  1.00092
  13  2.03146e-06
  14  60.5149
  15  0.000120021
  16  8.37316
  17  6.41527e-05
  18  0.000255508
  19  1.4445e-05
  20  0.000546575
  21  0.000154369
  22  40.5572
  23  15.4636
  24  0.257633
  25  0.143452
Done.

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

Extracting fit parameters...

4FGL J2304.3+0618
   Spectrum: PowerLaw
362    Prefactor:  6.437e+01  4.265e+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:  8.112e-01  1.435e-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.043e+00  2.576e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.46
Ra Dec: 346.078 6.307
Photon Index (Fixed Index): 2.53 +/- 0.00
Photon Flux (Fixed Index): 8.14e-08 +/- 5.39e-08
Energy Flux (Fixed Index): 2.29e-05 +/- 1.51e-05

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

Saving results to:
/scratch/kocevski/649288/likelihoodResults_357523201_357782401_4FGL_J2304.3+0618_daily_bin456.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) = 6260.36468202
delta logL = 0.202235165765

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6260.34458129
delta logL = 0.222335895202

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    40.960       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9757       1.0000          .0000       10.000    
     3 'Normalizat'    1.0105       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82591       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=   6260.345     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      301 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     40.938        55.583        .62633E-04   -.15465E-03
   2  Index         2.9766        .87655        .52326E-02   -.49678E-04
   3  Normalizat    1.0098        .24685        .29568E-03    .13319E-03
   4  Prefactor     .82628        .14504        .19332E-03   -.91856E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 40.9376
  Index      = 2.97656
  Normalizat = 1.00981
  Prefactor  = 0.826283
 **********
 **   18 **HESSE 
 **********

 FCN=   6260.345     FROM HESSE     STATUS=OK            25 CALLS      326 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     40.938        47.300        .12527E-04   -1.4427    
   2  Index         2.9766        .74593        .20930E-03   -.41664    
   3  Normalizat    1.0098        .24627        .11827E-04   -.92703    
   4  Prefactor     .82628        .14458        .77329E-05   -.98767    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.16337e-10
Minuit parameter uncertainties:
  1  47.3432
  2  0.749276
  3  0.246551
  4  0.144645
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/649288': 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) = 6260.344577
delta logL = 0.222340181163

Extracting fit parameters...

4FGL J2304.3+0618
   Spectrum: PowerLaw
362    Prefactor:  4.094e+01  4.734e+01  1.000e-04  1.000e+04 ( 1.000e-13)
363        Index:  2.977e+00  7.493e-01  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:  8.263e-01  1.446e-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.010e+00  2.466e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.94
Ra Dec: 346.078 6.307
Photon Index (Free Index): 2.98 +/- 0.75
Photon Flux (Free Index): 1.01e-07 +/- 6.51e-08
Energy Flux (Free Index): 2.05e-05 +/- 1.31e-05

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/649288/cmap_HighResolution_357523201_357782401_4FGL_J2304.3+0618_daily_bin456.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.46e-02', comment='SUCCESS', photon_flux='8.14e-08', energy_flux2='2.05e-05', photon_flux_error='5.39e-08', dlogl='2.22e-01', energy_flux='2.29e-05', photon_flux2='1.01e-07', job_status='DONE', time_completed='2021-09-29 06:15:30.396534', photon_index_error2='0.75', photon_index2='2.98', ts='3.46', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='1.87e-07', energy_flux_error2='1.31e-05', EG='1.04', time_epoch_completed='1632921330.4', return_code='0', job_id='649288', GAL2='0.83', EG2='1.01', return_code2='0', energy_flux_error='1.51e-05', photon_flux_error2='6.51e-08', ts2='3.94', photon_index='2.53' WHERE bin_id='456' AND source_name='4FGL J2304.3+0618' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 06:15:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 649288: <4FGL_J2304.3+0618_daily_bin456> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2304.3+0618_daily_bin456 346.078 6.3071 357523201 357782401 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 :                                   711.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             310.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   887 sec.
    Turnaround time :                            891 sec.

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

