/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 4 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 = 7385
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2304.3+0618_daily_bin433
RA = 346.078, Dec = 6.3071
tmin = 351561601, tmax = 351820801
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='649253', job_status='RUN', time_executed='2021-09-29 06:00:53.839302', time_epoch_executed='1632920453.84' WHERE source_name='4FGL J2304.3+0618' and cadence='daily' and bin_id='433'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/649253

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

Retrieving the FT1 file...

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

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

Retrieving 52 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/649253/ft1_4FGL_J2304.3+0618_daily_bin433.fits


Retrieving the FT1 file...

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

Retrieving 52 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/649253/ft2_4FGL_J2304.3+0618_daily_bin433.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/649253/ft1_4FGL_J2304.3+0618_daily_bin433.fits outfile=/scratch/kocevski/649253/ft1_filteredMKT_4FGL_J2304.3+0618_daily_bin433.fits ra=346.078 dec=6.3071 rad=12.0 tmin=351561601.0 tmax=351820801.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 6.85
user 6.55
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/649253/ft1_filtered_4FGL_J2304.3+0618_daily_bin433.fits" evtable="EVENTS" scfile=/scratch/kocevski/649253/ft2_4FGL_J2304.3+0618_daily_bin433.fits sctable="SC_DATA" outfile=/scratch/kocevski/649253/ltcube_351561601_351820801_4FGL_J2304.3+0618_daily_bin433.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/649253/ft2_4FGL_J2304.3+0618_daily_bin433.fits
.....................!
real 11.35
user 11.00
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/649253/ft1_filtered_4FGL_J2304.3+0618_daily_bin433.fits evtable="EVENTS" scfile=/scratch/kocevski/649253/ft2_4FGL_J2304.3+0618_daily_bin433.fits sctable="SC_DATA" expcube=/scratch/kocevski/649253/ltcube_351561601_351820801_4FGL_J2304.3+0618_daily_bin433.fits outfile=/scratch/kocevski/649253/expmap_351561601_351820801_4FGL_J2304.3+0618_daily_bin433.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/649253/ltcube_351561601_351820801_4FGL_J2304.3+0618_daily_bin433.fits
.....................!
real 191.72
user 185.90
sys 5.37

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/649253/ft1_filtered_4FGL_J2304.3+0618_daily_bin433.fits scfile=/scratch/kocevski/649253/ft2_4FGL_J2304.3+0618_daily_bin433.fits outfile=/scratch/kocevski/649253/cmap_351561601_351820801_4FGL_J2304.3+0618_daily_bin433.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/649253/ft1_filtered_4FGL_J2304.3+0618_daily_bin433.fits scfile=/scratch/kocevski/649253/ft2_4FGL_J2304.3+0618_daily_bin433.fits outfile=/scratch/kocevski/649253/cmap_HighResolution_351561601_351820801_4FGL_J2304.3+0618_daily_bin433.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/649253/ft1_filtered_4FGL_J2304.3+0618_daily_bin433.fits evtable="EVENTS" scfile=/scratch/kocevski/649253/ft2_4FGL_J2304.3+0618_daily_bin433.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/649253/Model_4FGL_J2304.3+0618_daily_bin433.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/649253/ft1_filtered_4FGL_J2304.3+0618_daily_bin433.fits.....................!
real 79.85
user 78.38
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3537       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .21411       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10174E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    33.506       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    52.402       1.0000         .10000E-03   10000.    
    12 'norm      '    1.9034       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.8338       1.0000         .10000E-03   10000.    
    14 'Prefactor '    56.133       1.0000         .10000E-03   10000.    
    15 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.9920       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10356E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.644       1.0000         .10000E-03   10000.    
    20 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    50.653       1.0000         .10000E-03   10000.    
    22 'Prefactor '    80.906       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .37025       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3990       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .90258       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7720.546     FROM MIGRAD    STATUS=CONVERGED    125 CALLS     3060 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3506        27.552        .64408E-04    .25523E-03
   2  Prefactor     .21431        .15244       -.35111E-06    .10337E-02
   3  Prefactor     .10000E-03    1.9187       -.29651E-06** at limit **
   4  Prefactor     .10001E-03    13.500       -.24347E-04** at limit **
   5  Prefactor     .10000E-03    6.2247       -.29784E-06** at limit **
   6  Prefactor     .10000E-03    .39006E-01   -.21763E-07** at limit **
   7  norm          .10000E-03    20.349       -.84689E-05** at limit **
   8  Prefactor     .10000E-03    10.299        .15629E-05** at limit **
   9  Prefactor     33.517        2.7167        .22909E-05   -.78336E-03
  10  Prefactor     .10000E-03    11.540       -.53957E-06** at limit **
  11  Prefactor     52.430        6.5614        .18601E-05    .59026E-02
  12  norm          1.9036        1.0572       -.17559E-06   -.10232E-02
  13  Prefactor     7.8366        1.7021        .15163E-05   -.10064E-02
  14  Prefactor     56.138        2.9497        .17981E-05   -.20492E-02
  15  norm          .10001E-03    14.945        .68455E-05** at limit **
  16  Prefactor     1.9923        2.5204       -.78495E-05   -.18255E-02
  17  Prefactor     .10023E-03    114.71       -.29917E-04** at limit **
  18  Prefactor     .10003E-03    12.831        .14045E-04** at limit **
  19  Prefactor     17.563        24.679       -.21401E-04   -.46820E-02
  20  norm          .10003E-03    7.5074        .75509E-05** at limit **
  21  norm          50.623        6.1043        .18268E-05    .38006E-02
  22  Prefactor     80.822        30.793       -.15274E-04    .96473E-02
  23  Prefactor     .98760        243.05        .14408E-04   -.39140E-06
  24  Normalizat    1.3984        .25885        .55207E-05   -.93155E-03
  25  Prefactor     .90267        .14926       -.29139E-05   -.10818E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.35057
  Prefactor  = 0.214311
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 33.5167
  Prefactor  = 0.0001
  Prefactor  = 52.4303
  norm       = 1.90357
  Prefactor  = 7.83663
  Prefactor  = 56.1383
  norm       = 0.000100006
  Prefactor  = 1.99228
  Prefactor  = 0.000100227
  Prefactor  = 0.000100025
  Prefactor  = 17.5625
  norm       = 0.000100034
  norm       = 50.6226
  Prefactor  = 80.8225
  Prefactor  = 0.987601
  Normalizat = 1.39835
  Prefactor  = 0.902674
 **********
 **   18 **HESSE 
 **********

 FCN=   7720.546     FROM HESSE     STATUS=OK           485 CALLS     3545 TOTAL
                     EDM=   .64E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3506        30.025        .93956E-02   -1.5476    
   2  Prefactor     .21431        .16122        .62500E-02   -1.5615    
   3  Prefactor     .10000E-03    1.9171        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    16.020        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.2197        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    .34350E-01    .76590E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    20.000        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    10.276        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     33.517        11.682        .17307E-02   -1.4549    
  10  Prefactor     .10000E-03    11.474        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     52.430        29.099        .13851E-02   -1.4259    
  12  norm          1.9036        1.0597        .75356E-03   -1.5432    
  13  Prefactor     7.8366        10.178        .35816E-02   -1.5148    
  14  Prefactor     56.138        69.111        .13385E-02   -1.4208    
  15  norm          .10001E-03    14.985        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.9923        9.1005        .73384E-02   -1.5426    
  17  Prefactor     .10023E-03    115.59        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10003E-03    17.655        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     17.563        36.098        .23837E-02   -1.4870    
  20  norm          .10003E-03    16.945        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          50.623        27.581        .14087E-02   -1.4284    
  22  Prefactor     80.822        51.161        .11163E-02   -1.3908    
  23  Prefactor     .98760        26.668        .13555       -1.5509    
  24  Normalizat    1.3984        .22979        .70291E-01   -.80676    
  25  Prefactor     .90267        .12678        .45038E-01   -.96048    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.35811e-07
Minuit parameter uncertainties:
  1  12.7427
  2  0.161218
  3  1.20667e-05
  4  0.000768498
  5  1.87248e-05
  6  1.26686e-07
  7  0.000259986
  8  1.32497e-05
  9  11.6832
  10  0.000112731
  11  29.1072
  12  1.05967
  13  10.1807
  14  69.2097
  15  0.000602906
  16  8.51795
  17  0.0102532
  18  0.00133134
  19  36.1433
  20  0.00152068
  21  27.5875
  22  51.1888
  23  10.2685
  24  0.22996
  25  0.126823
Done.

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

Extracting fit parameters...

4FGL J2304.3+0618
   Spectrum: PowerLaw
362    Prefactor:  1.000e-04  1.325e-05  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.027e-01  1.268e-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.398e+00  2.300e-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: 6.64e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.18e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/649253/likelihoodResults_351561601_351820801_4FGL_J2304.3+0618_daily_bin433.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) = 7720.54685569
delta logL = -0.000456328886685

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7720.54640002
delta logL = -6.56023985357e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11397E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5189       1.0000          .0000       10.000    
     3 'Normalizat'    1.3984       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90266       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=   7720.546     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      255 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    50.289        .18142E-01** at limit **
   2  Index         2.0742        8.9618        .50000        .45020E-08
   3  Normalizat    1.3984        .11688E-01    .31100E-03    .33741E-04
   4  Prefactor     .90267        .68465E-02    .21953E-03    .49819E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.07425
  Normalizat = 1.39836
  Prefactor  = 0.902673
 **********
 **   18 **HESSE 
 **********

 FCN=   7720.546     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      284 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    328.96        .29250E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0742        6.1511        .50000       -.62507    
   3  Normalizat    1.3984        .30827E-01    .12440E-04   -.80676    
   4  Prefactor     .90267        .18057E-01    .87811E-05   -.96048    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.42646e-10
Minuit parameter uncertainties:
  1  0.000461854
  2  1220.82
  3  0.0308279
  4  0.0180576
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/649253': 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) = 7720.5463988
delta logL = 5.62217792321e-07

Extracting fit parameters...

4FGL J2304.3+0618
   Spectrum: PowerLaw
362    Prefactor:  1.000e-04  4.619e-04  1.000e-04  1.000e+04 ( 1.000e-13)
363        Index:  2.074e+00  1.221e+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:  9.027e-01  1.806e-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:  1.398e+00  3.083e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/649253/cmap_HighResolution_351561601_351820801_4FGL_J2304.3+0618_daily_bin433.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.18e-03', job_status='DONE', photon_flux_upper_limit='6.64e-08', time_completed='2021-09-29 06:14:42.676956', job_id='649253', GAL2='0.90', fit_tolerance='1e-08', EG2='1.40', EG='1.40', time_epoch_completed='1632921282.68', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='5.62e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='433' AND source_name='4FGL J2304.3+0618' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 06:14:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 649253: <4FGL_J2304.3+0618_daily_bin433> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2304.3+0618_daily_bin433 346.078 6.3071 351561601 351820801 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 :                                   820.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             343.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   843 sec.
    Turnaround time :                            846 sec.

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

