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


Performing analysis on: 4FGL_J2304.3+0618_daily_bin332
RA = 346.078, Dec = 6.3071
tmin = 325382401, tmax = 325641601
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='649091', job_status='RUN', time_executed='2021-09-29 06:02:58.410411', time_epoch_executed='1632920578.41' WHERE source_name='4FGL J2304.3+0618' and cadence='daily' and bin_id='332'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/649091

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/649091/ft1_4FGL_J2304.3+0618_daily_bin332.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/649091/ft2_4FGL_J2304.3+0618_daily_bin332.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/649091/ft1_4FGL_J2304.3+0618_daily_bin332.fits outfile=/scratch/kocevski/649091/ft1_filteredMKT_4FGL_J2304.3+0618_daily_bin332.fits ra=346.078 dec=6.3071 rad=12.0 tmin=325382401.0 tmax=325641601.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.52
user 3.30
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/649091/ft1_filtered_4FGL_J2304.3+0618_daily_bin332.fits" evtable="EVENTS" scfile=/scratch/kocevski/649091/ft2_4FGL_J2304.3+0618_daily_bin332.fits sctable="SC_DATA" outfile=/scratch/kocevski/649091/ltcube_325382401_325641601_4FGL_J2304.3+0618_daily_bin332.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/649091/ft2_4FGL_J2304.3+0618_daily_bin332.fits
.....................!
real 12.20
user 11.80
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/649091/ft1_filtered_4FGL_J2304.3+0618_daily_bin332.fits evtable="EVENTS" scfile=/scratch/kocevski/649091/ft2_4FGL_J2304.3+0618_daily_bin332.fits sctable="SC_DATA" expcube=/scratch/kocevski/649091/ltcube_325382401_325641601_4FGL_J2304.3+0618_daily_bin332.fits outfile=/scratch/kocevski/649091/expmap_325382401_325641601_4FGL_J2304.3+0618_daily_bin332.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/649091/ltcube_325382401_325641601_4FGL_J2304.3+0618_daily_bin332.fits
.....................!
real 190.48
user 184.52
sys 4.99

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/649091/ft1_filtered_4FGL_J2304.3+0618_daily_bin332.fits scfile=/scratch/kocevski/649091/ft2_4FGL_J2304.3+0618_daily_bin332.fits outfile=/scratch/kocevski/649091/cmap_325382401_325641601_4FGL_J2304.3+0618_daily_bin332.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=346.078 yref=6.3071 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/649091/ft1_filtered_4FGL_J2304.3+0618_daily_bin332.fits scfile=/scratch/kocevski/649091/ft2_4FGL_J2304.3+0618_daily_bin332.fits outfile=/scratch/kocevski/649091/cmap_HighResolution_325382401_325641601_4FGL_J2304.3+0618_daily_bin332.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.58
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    34.155       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .54370       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.5312       1.0000         .10000E-03   10000.    
     7 'norm      '    14.269       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.4296       1.0000         .10000E-03   10000.    
    11 'Prefactor '    42.727       1.0000         .10000E-03   10000.    
    12 'norm      '    1.5938       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10083E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.6152       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.0727       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.6551       1.0000         .10000E-03   10000.    
    20 'norm      '    48.063       1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    17.735       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .77046       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .98894       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7453.393     FROM MIGRAD    STATUS=CONVERGED    592 CALLS     2539 TOTAL
                     EDM=   .59E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     34.155        22.313         .0000       -.38645E-04
   2  Prefactor     .54369        .21190         .0000        .37679E-03
   3  Prefactor     .10000E-03    3.5888         .0000    ** at limit **
   4  Prefactor     .10000E-03    19.543         .0000    ** at limit **
   5  Prefactor     .10000E-03    19.199         .0000    ** at limit **
   6  Prefactor     2.5313        .26940         .0000        .36821E-02
   7  norm          14.268        11.477         .0000       -.52243E-03
   8  Prefactor     .10000E-03    44.948         .0000    ** at limit **
   9  Prefactor     .10000E-03    4.3095         .0000    ** at limit **
  10  Prefactor     8.4299        13.424         .0000        .14210E-03
  11  Prefactor     42.726        24.913         .0000       -.13651E-03
  12  norm          1.5937        1.0699         .0000       -.28690E-03
  13  Prefactor     .10000E-03    2.9956         .0000    ** at limit **
  14  Prefactor     .10000E-03    81.330         .0000    ** at limit **
  15  norm          .10000E-03    5.1586         .0000    ** at limit **
  16  Prefactor     1.6150        6.3279         .0000        .21800E-01
  17  Prefactor     .10000E-03    180.20         .0000    ** at limit **
  18  Prefactor     8.0726        13.402         .0000       -.77278E-04
  19  Prefactor     6.6539        22.926         .0000        .65569E-03
  20  norm          48.062        20.566         .0000       -.48998E-04
  21  norm          .10000E-03    17.023         .0000    ** at limit **
  22  Prefactor     .10000E-03    9.7952         .0000    ** at limit **
  23  Prefactor     17.734        18.217         .0000        .28722E-04
  24  Normalizat    .77051        .22346         .0000       -.19707E-03
  25  Prefactor     .98893        .12626         .0000       -.16558E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 34.1549
  Prefactor  = 0.543686
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  Prefactor  = 2.53128
  norm       = 14.2684
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.4299
  Prefactor  = 42.7263
  norm       = 1.59374
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 1.61505
  Prefactor  = 0.000100003
  Prefactor  = 8.07264
  Prefactor  = 6.65386
  norm       = 48.0625
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 17.7337
  Normalizat = 0.770515
  Prefactor  = 0.988935
 **********
 **   18 **HESSE 
 **********

 FCN=   7453.393     FROM HESSE     STATUS=OK           421 CALLS     2960 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     34.155        22.359        .68568E-04   -1.4538    
   2  Prefactor     .54369        .21118        .22539E-04   -1.5561    
   3  Prefactor     .10000E-03    3.5998        .15970E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    19.590        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    19.501        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.5313        .26867        .13941E-04   -1.5390    
   7  norm          14.268        11.482        .10603E-03   -1.4952    
   8  Prefactor     .10000E-03    45.164        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    13.752        .34351E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.4299        13.396        .13807E-03   -1.5127    
  11  Prefactor     42.726        24.963        .61329E-04   -1.4400    
  12  norm          1.5937        1.0688        .33601E-04   -1.5455    
  13  Prefactor     .10000E-03    2.9992        .14589E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    81.858        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    5.1986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.6150        6.3223        .16658E-02   -1.5454    
  17  Prefactor     .10000E-03    180.23        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.0726        13.423        .14111E-03   -1.5140    
  19  Prefactor     6.6539        22.874        .77774E-03   -1.5192    
  20  norm          48.062        20.558        .57839E-04   -1.4320    
  21  norm          .10000E-03    17.055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    9.7991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     17.734        18.215        .95106E-04   -1.4865    
  24  Normalizat    .77051        .25865        .36950E-03   -1.0117    
  25  Prefactor     .98893        .14730        .20235E-03   -.93099    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.7258e-09
Minuit parameter uncertainties:
  1  22.3646
  2  0.211178
  3  1.75015e-06
  4  0.000281828
  5  0.000397592
  6  0.268671
  7  11.4838
  8  0.000176325
  9  9.09867e-05
  10  13.4012
  11  24.9692
  12  1.06886
  13  2.10368e-05
  14  0.000610262
  15  3.8047e-05
  16  6.32489
  17  0.00153834
  18  13.4278
  19  22.9037
  20  20.5608
  21  2.89279e-05
  22  0.000159439
  23  18.2209
  24  0.259066
  25  0.147364
Done.

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

Extracting fit parameters...

4FGL J2304.3+0618
   Spectrum: PowerLaw
362    Prefactor:  1.000e-04  1.763e-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:  9.889e-01  1.474e-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:  7.705e-01  2.591e-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.00e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.79e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/649091/likelihoodResults_325382401_325641601_4FGL_J2304.3+0618_daily_bin332.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) = 7453.39321485
delta logL = -0.000105422655906

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7453.39310961
delta logL = -1.75372406375e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4715       1.0000          .0000       10.000    
     3 'Normalizat'    .77054       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98893       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=   7453.393     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      219 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    74.169        .90712E-02** at limit **
   2  Index         2.5251        6.1832        .23637       -.12487E-04
   3  Normalizat    .77051        .20152        .83440E-01   -.21703E-03
   4  Prefactor     .98894        .12448        .46129E-01   -.13459E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.52508
  Normalizat = 0.770514
  Prefactor  = 0.988935
 **********
 **   18 **HESSE 
 **********

 FCN=   7453.393     FROM HESSE     STATUS=OK            25 CALLS      244 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    44.020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5251        6.2594        .94548E-02   -.51782    
   3  Normalizat    .77051        .23256        .36950E-03   -1.0117    
   4  Prefactor     .98894        .14405        .20235E-03   -.93099    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.39321e-10
Minuit parameter uncertainties:
  1  0.00026845
  2  4.35712
  3  0.232863
  4  0.144101
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/649091': 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) = 7453.39310945
delta logL = -1.53931978275e-08

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  9.889e-01  1.441e-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:  7.705e-01  2.329e-01  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/649091/cmap_HighResolution_325382401_325641601_4FGL_J2304.3+0618_daily_bin332.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.79e-03', job_status='DONE', photon_flux_upper_limit='1.00e-07', time_completed='2021-09-29 06:15:23.660692', job_id='649091', GAL2='0.99', fit_tolerance='1e-08', EG2='0.77', EG='0.77', time_epoch_completed='1632921323.66', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='-1.54e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='332' AND source_name='4FGL J2304.3+0618' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 06:15:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 649091: <4FGL_J2304.3+0618_daily_bin332> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2304.3+0618_daily_bin332 346.078 6.3071 325382401 325641601 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 :                                   740.04 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             308.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   901 sec.
    Turnaround time :                            904 sec.

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

