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


Performing analysis on: 4FGL_J2304.3+0618_daily_bin759
RA = 346.078, Dec = 6.3071
tmin = 436060801, tmax = 436320001
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='650782', job_status='RUN', time_executed='2021-09-29 06:07:40.377428', time_epoch_executed='1632920860.38' WHERE source_name='4FGL J2304.3+0618' and cadence='daily' and bin_id='759'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/650782

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/650782/ft1_4FGL_J2304.3+0618_daily_bin759.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/650782/ft2_4FGL_J2304.3+0618_daily_bin759.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/650782/ft1_4FGL_J2304.3+0618_daily_bin759.fits outfile=/scratch/kocevski/650782/ft1_filteredMKT_4FGL_J2304.3+0618_daily_bin759.fits ra=346.078 dec=6.3071 rad=12.0 tmin=436060801.0 tmax=436320001.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.75
user 5.50
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/650782/ft1_filtered_4FGL_J2304.3+0618_daily_bin759.fits" evtable="EVENTS" scfile=/scratch/kocevski/650782/ft2_4FGL_J2304.3+0618_daily_bin759.fits sctable="SC_DATA" outfile=/scratch/kocevski/650782/ltcube_436060801_436320001_4FGL_J2304.3+0618_daily_bin759.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/650782/ft2_4FGL_J2304.3+0618_daily_bin759.fits
.....................!
real 12.15
user 11.77
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/650782/ft1_filtered_4FGL_J2304.3+0618_daily_bin759.fits evtable="EVENTS" scfile=/scratch/kocevski/650782/ft2_4FGL_J2304.3+0618_daily_bin759.fits sctable="SC_DATA" expcube=/scratch/kocevski/650782/ltcube_436060801_436320001_4FGL_J2304.3+0618_daily_bin759.fits outfile=/scratch/kocevski/650782/expmap_436060801_436320001_4FGL_J2304.3+0618_daily_bin759.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/650782/ltcube_436060801_436320001_4FGL_J2304.3+0618_daily_bin759.fits
.....................!
real 190.80
user 185.40
sys 5.08

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/650782/ft1_filtered_4FGL_J2304.3+0618_daily_bin759.fits scfile=/scratch/kocevski/650782/ft2_4FGL_J2304.3+0618_daily_bin759.fits outfile=/scratch/kocevski/650782/cmap_436060801_436320001_4FGL_J2304.3+0618_daily_bin759.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/650782/ft1_filtered_4FGL_J2304.3+0618_daily_bin759.fits scfile=/scratch/kocevski/650782/ft2_4FGL_J2304.3+0618_daily_bin759.fits outfile=/scratch/kocevski/650782/cmap_HighResolution_436060801_436320001_4FGL_J2304.3+0618_daily_bin759.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/650782/ft1_filtered_4FGL_J2304.3+0618_daily_bin759.fits evtable="EVENTS" scfile=/scratch/kocevski/650782/ft2_4FGL_J2304.3+0618_daily_bin759.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/650782/Model_4FGL_J2304.3+0618_daily_bin759.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/650782/ft1_filtered_4FGL_J2304.3+0618_daily_bin759.fits.....................!
real 65.27
user 63.92
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    45.210       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.4257       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10979E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.1988       1.0000         .10000E-03   10000.    
     7 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.4894       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.0205       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10086E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.9784       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.3773       1.0000         .10000E-03   10000.    
    17 'Prefactor '    524.04       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    28.081       1.0000         .10000E-03   10000.    
    20 'norm      '    10.929       1.0000         .10000E-03   10000.    
    21 'norm      '    .27690E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    68.345       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.4751       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3077       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .93281       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=   5394.606     FROM MIGRAD    STATUS=CONVERGED    573 CALLS     2921 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     45.206        29.255        .13236E-06    .82201E-05
   2  Prefactor     2.4256        .45714        .50005E-08   -.38993E-04
   3  Prefactor     .10000E-03    4.4633        .21222E-08** at limit **
   4  Prefactor     .10000E-03    30.979        .87233E-06** at limit **
   5  Prefactor     .10000E-03    53.409       -.96015E-07** at limit **
   6  Prefactor     4.1986        .47417       -.10846E-07   -.83883E-04
   7  norm          .10000E-03    8.4446        .92780E-08** at limit **
   8  Prefactor     .10000E-03    88.017        .13996E-07** at limit **
   9  Prefactor     2.4911        7.4341        .34413E-05    .52699E-03
  10  Prefactor     6.0273        16.710        .13453E-07    .10194E-04
  11  Prefactor     .10000E-03    11.682        .11749E-07** at limit **
  12  norm          .10000E-03    .42135       -.17294E-06** at limit **
  13  Prefactor     3.9768        12.046        .18228E-05    .17803E-03
  14  Prefactor     .10000E-03    28.341       -.80741E-06** at limit **
  15  norm          .10000E-03    14.067        .47238E-06** at limit **
  16  Prefactor     9.3727        10.430       -.14116E-06   -.11829E-04
  17  Prefactor     523.53        395.46        .18238E-04    .13280E-03
  18  Prefactor     .10000E-03    15.938       -.54294E-06** at limit **
  19  Prefactor     28.077        40.907       -.43456E-06    .50681E-05
  20  norm          10.927        20.885        .12114E-06    .24823E-06
  21  norm          .10373E-03    52.318       -.11247E-04** at limit **
  22  Prefactor     68.322        64.651        .15881E-05    .10744E-03
  23  Prefactor     3.4613        97.157        .17925E-05    .95747E-05
  24  Normalizat    1.3078        .32102        .13903E-05    .16934E-03
  25  Prefactor     .93278        .17568       -.15712E-05    .18000E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 45.2059
  Prefactor  = 2.42564
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.19861
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.49107
  Prefactor  = 6.02725
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.97679
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.37266
  Prefactor  = 523.525
  Prefactor  = 0.0001
  Prefactor  = 28.077
  norm       = 10.9267
  norm       = 0.000103731
  Prefactor  = 68.3215
  Prefactor  = 3.46126
  Normalizat = 1.30779
  Prefactor  = 0.932785
 **********
 **   18 **HESSE 
 **********

 FCN=   5394.606     FROM HESSE     STATUS=OK           427 CALLS     3348 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     45.206        29.381        .59629E-04   -1.4362    
   2  Prefactor     2.4256        .45959        .19952E-04   -1.5396    
   3  Prefactor     .10000E-03    4.4748        .15153E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    30.997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    53.586        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.1986        .47508        .16266E-04   -1.5298    
   7  norm          .10000E-03    8.4627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    88.426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.4911        7.5315        .12954E-02   -1.5392    
  10  Prefactor     6.0273        16.711        .16364E-03   -1.5217    
  11  Prefactor     .10000E-03    11.698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .42433        .46616E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.9768        12.055        .10111E-02   -1.5309    
  14  Prefactor     .10000E-03    28.350        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    14.233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     9.3727        10.440        .13087E-03   -1.5096    
  17  Prefactor     523.53        402.21        .89751E-04   -1.1091    
  18  Prefactor     .10000E-03    16.030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     28.077        40.862        .75603E-04   -1.4648    
  20  norm          10.927        20.881        .12119E-03   -1.5047    
  21  norm          .10373E-03    217.27        .76419E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     68.322        64.857        .48552E-04   -1.4053    
  23  Prefactor     3.4613        96.912        .21692E-03   -1.5336    
  24  Normalizat    1.3078        .37998        .37952E-03   -.83334    
  25  Prefactor     .93278        .20660        .25032E-03   -.95005    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.73115e-08
Minuit parameter uncertainties:
  1  29.3903
  2  0.459587
  3  1.14664e-06
  4  6.95748e-05
  5  3.31777e-06
  6  0.475084
  7  2.68263e-06
  8  5.43054e-05
  9  7.53441
  10  16.7242
  11  6.30002e-07
  12  5.2488e-06
  13  12.0619
  14  6.69447e-05
  15  3.37466e-05
  16  10.4423
  17  404.431
  18  2.24107e-05
  19  40.9028
  20  20.8951
  21  0.0571508
  22  64.9244
  23  36.6951
  24  0.380794
  25  0.20677
Done.

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

Extracting fit parameters...

4FGL J2304.3+0618
   Spectrum: PowerLaw
362    Prefactor:  1.000e-04  5.431e-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.328e-01  2.068e-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.308e+00  3.808e-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.62e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.26e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/650782/likelihoodResults_436060801_436320001_4FGL_J2304.3+0618_daily_bin759.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) = 5394.60572725
delta logL = -5.37661080671e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5394.60567356
delta logL = -7.02830220689e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4843       1.0000          .0000       10.000    
     3 'Normalizat'    1.3078       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93279       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=   5394.606     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      239 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8649.4        .90712E-02** at limit **
   2  Index         2.5388        8.4250        .50000       -.63869E-05
   3  Normalizat    1.3078        .10398        .85714E-01   -.19733E-03
   4  Prefactor     .93279        .59218E-01    .45422E-01   -.61865E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.53879
  Normalizat = 1.30778
  Prefactor  = 0.932788
 **********
 **   18 **HESSE 
 **********

 FCN=   5394.606     FROM HESSE     STATUS=OK            31 CALLS      270 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    230.24        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5388        5.8707        .50000       -.51466    
   3  Normalizat    1.3078        .35498        .37951E-03   -.83335    
   4  Prefactor     .93279        .20342        .25033E-03   -.95005    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.50389e-10
Minuit parameter uncertainties:
  1  0.000242489
  2  7.08836
  3  0.355641
  4  0.203585
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/650782': 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) = 5394.60567347
delta logL = 1.20708136819e-08

Extracting fit parameters...

4FGL J2304.3+0618
   Spectrum: PowerLaw
362    Prefactor:  1.000e-04  2.425e-04  1.000e-04  1.000e+04 ( 1.000e-13)
363        Index:  2.539e+00  7.088e+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.328e-01  2.036e-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.308e+00  3.556e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/650782/cmap_HighResolution_436060801_436320001_4FGL_J2304.3+0618_daily_bin759.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.26e-02', job_status='DONE', photon_flux_upper_limit='1.62e-07', time_completed='2021-09-29 06:18:57.271820', job_id='650782', GAL2='0.93', fit_tolerance='1e-08', EG2='1.31', EG='1.31', time_epoch_completed='1632921537.27', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='1.21e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='759' AND source_name='4FGL J2304.3+0618' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 06:18:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 650782: <4FGL_J2304.3+0618_daily_bin759> in cluster <slac> Done

Job <4FGL_J2304.3+0618_daily_bin759> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 06:05:32 2021
Job was executed on host(s) <bullet0235>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 06:05:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 06:05:34 2021
Terminated at Wed Sep 29 06:18:58 2021
Results reported at Wed Sep 29 06:18:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2304.3+0618_daily_bin759 346.078 6.3071 436060801 436320001 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 :                                   676.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             252.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   803 sec.
    Turnaround time :                            806 sec.

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

