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


Performing analysis on: 4FGL_J2304.3+0618_daily_bin731
RA = 346.078, Dec = 6.3071
tmin = 428803201, tmax = 429062401
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='650742', job_status='RUN', time_executed='2021-09-29 06:08:07.105091', time_epoch_executed='1632920887.11' WHERE source_name='4FGL J2304.3+0618' and cadence='daily' and bin_id='731'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/650742

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/650742/ft1_4FGL_J2304.3+0618_daily_bin731.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/650742/ft2_4FGL_J2304.3+0618_daily_bin731.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/650742/ft1_4FGL_J2304.3+0618_daily_bin731.fits outfile=/scratch/kocevski/650742/ft1_filteredMKT_4FGL_J2304.3+0618_daily_bin731.fits ra=346.078 dec=6.3071 rad=12.0 tmin=428803201.0 tmax=429062401.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.70
user 6.43
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/650742/ft1_filtered_4FGL_J2304.3+0618_daily_bin731.fits" evtable="EVENTS" scfile=/scratch/kocevski/650742/ft2_4FGL_J2304.3+0618_daily_bin731.fits sctable="SC_DATA" outfile=/scratch/kocevski/650742/ltcube_428803201_429062401_4FGL_J2304.3+0618_daily_bin731.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/650742/ft2_4FGL_J2304.3+0618_daily_bin731.fits
.....................!
real 12.14
user 11.60
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/650742/ft1_filtered_4FGL_J2304.3+0618_daily_bin731.fits evtable="EVENTS" scfile=/scratch/kocevski/650742/ft2_4FGL_J2304.3+0618_daily_bin731.fits sctable="SC_DATA" expcube=/scratch/kocevski/650742/ltcube_428803201_429062401_4FGL_J2304.3+0618_daily_bin731.fits outfile=/scratch/kocevski/650742/expmap_428803201_429062401_4FGL_J2304.3+0618_daily_bin731.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/650742/ltcube_428803201_429062401_4FGL_J2304.3+0618_daily_bin731.fits
.....................!
real 191.65
user 187.00
sys 4.32

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/650742/ft1_filtered_4FGL_J2304.3+0618_daily_bin731.fits scfile=/scratch/kocevski/650742/ft2_4FGL_J2304.3+0618_daily_bin731.fits outfile=/scratch/kocevski/650742/cmap_428803201_429062401_4FGL_J2304.3+0618_daily_bin731.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/650742/ft1_filtered_4FGL_J2304.3+0618_daily_bin731.fits scfile=/scratch/kocevski/650742/ft2_4FGL_J2304.3+0618_daily_bin731.fits outfile=/scratch/kocevski/650742/cmap_HighResolution_428803201_429062401_4FGL_J2304.3+0618_daily_bin731.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.53
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.998       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10279E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    24.066       1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.596       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.2146       1.0000         .10000E-03   10000.    
     9 'Prefactor '    54.851       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10253E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10199E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    63.957       1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    367.05       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.015       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    29.769       1.0000         .10000E-03   10000.    
    23 'Prefactor '    18.541       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3121       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .55504       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=   4620.421     FROM MIGRAD    STATUS=CONVERGED    566 CALLS     2901 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.986        50.340       -.17412E-04   -.16391E-03
   2  Prefactor     .10000E-03    .18794        .47577E-06** at limit **
   3  Prefactor     .10000E-03    60.334       -.63994E-08** at limit **
   4  Prefactor     .10000E-03    26.514       -.11213E-04** at limit **
   5  Prefactor     24.067        64.172        .22422E-05   -.14813E-04
   6  Prefactor     13.596        1.0616        .18029E-07   -.11425E-02
   7  norm          .10000E-03    5.3664        .77536E-06** at limit **
   8  Prefactor     7.2506        135.41        .10846E-03   -.14580E-04
   9  Prefactor     54.852        25.587        .56461E-06   -.44300E-04
  10  Prefactor     .10000E-03    8.0598        .31426E-06** at limit **
  11  Prefactor     .10000E-03    8.2127        .36353E-06** at limit **
  12  norm          .10000E-03    .92424        .64627E-06** at limit **
  13  Prefactor     .10000E-03    30.804        .85057E-05** at limit **
  14  Prefactor     63.960        82.345        .32132E-05   -.41295E-04
  15  norm          .10000E-03    5.2218       -.15830E-06** at limit **
  16  Prefactor     .10000E-03    5.3591       -.73488E-06** at limit **
  17  Prefactor     367.02        340.49       -.17653E-04   -.40418E-04
  18  Prefactor     .10000E-03    7.9184       -.55433E-06** at limit **
  19  Prefactor     16.019        34.700        .57492E-05   -.86745E-04
  20  norm          .10000E-03    19.846        .36015E-05** at limit **
  21  norm          .10000E-03    11.556       -.35858E-06** at limit **
  22  Prefactor     29.772        39.986        .25085E-05   -.32420E-04
  23  Prefactor     18.541        28.872        .43303E-06   -.34670E-04
  24  Normalizat    1.3121        .30535       -.63921E-05   -.21667E-03
  25  Prefactor     .55498        .16581       -.15127E-05   -.47570E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.9855
  Prefactor  = 0.000100001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 24.0675
  Prefactor  = 13.5964
  norm       = 0.0001
  Prefactor  = 7.25055
  Prefactor  = 54.8524
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.000100002
  Prefactor  = 63.9602
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 367.02
  Prefactor  = 0.0001
  Prefactor  = 16.0193
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 29.7715
  Prefactor  = 18.5413
  Normalizat = 1.31213
  Prefactor  = 0.554978
 **********
 **   18 **HESSE 
 **********

 FCN=   4620.421     FROM HESSE     STATUS=OK           415 CALLS     3316 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.986        49.439        .80119E-04   -1.4708    
   2  Prefactor     .10000E-03    .35696        .55782E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    62.195        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    26.487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     24.067        64.145        .81653E-04   -1.4726    
   6  Prefactor     13.596        1.0613        .10863E-04   -1.4970    
   7  norm          .10000E-03    5.3695        .15379E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.2506        133.62        .14934E-03   -1.5169    
   9  Prefactor     54.852        25.575        .54160E-04   -1.4225    
  10  Prefactor     .10000E-03    8.0631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.2151        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.6631        .12453E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    31.931        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     63.960        82.674        .50179E-04   -1.4107    
  15  norm          .10000E-03    5.2309        .15165E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.3777        .15364E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     367.02        337.22        .10636E-03   -1.1853    
  18  Prefactor     .10000E-03    7.9315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     16.019        34.744        .10008E-03   -1.4907    
  20  norm          .10000E-03    19.907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    11.559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     29.772        40.053        .73432E-04   -1.4616    
  23  Prefactor     18.541        28.873        .93017E-04   -1.4847    
  24  Normalizat    1.3121        .36516        .35475E-03   -.83205    
  25  Prefactor     .55498        .19683        .29807E-03   -1.0952    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.20119e-09
Minuit parameter uncertainties:
  1  49.5203
  2  2.81073e-05
  3  0.000853696
  4  6.42184e-06
  5  64.3295
  6  1.06128
  7  6.0773e-06
  8  62.4132
  9  25.5797
  10  2.37986e-05
  11  2.46816e-05
  12  8.21509e-05
  13  0.000535974
  14  82.8225
  15  2.16735e-05
  16  7.52273e-07
  17  339.055
  18  4.30094e-05
  19  34.7877
  20  4.59569e-05
  21  2.23957e-05
  22  40.0893
  23  28.8946
  24  0.365883
  25  0.197072
Done.

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

Extracting fit parameters...

4FGL J2304.3+0618
   Spectrum: PowerLaw
362    Prefactor:  7.251e+00  6.241e+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:  5.550e-01  1.971e-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.312e+00  3.659e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/650742/likelihoodResults_428803201_429062401_4FGL_J2304.3+0618_daily_bin731.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) = 4620.33007669
delta logL = 0.0908082370324

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4620.10394565
delta logL = 0.316939281946

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11432       1.0000         .10000E-03   10000.    
     2 'Index     '    6.2207       1.0000          .0000       10.000    
     3 'Normalizat'    1.2190       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .59049       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=   4620.104     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      269 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11299        3.0062        .66409E-02   -.51753E-02
   2  Index         6.2296        3.6278        .14187       -.13228E-03
   3  Normalizat    1.2192        .64040E-01    .82643E-01   -.21783E-03
   4  Prefactor     .59028        .36662E-01    .65465E-01   -.16298E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.112986
  Index      = 6.22956
  Normalizat = 1.2192
  Prefactor  = 0.590278
 **********
 **   18 **HESSE 
 **********

 FCN=   4620.104     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      302 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11299        9.9153        .30840E-03   -1.5641    
   2  Index         6.2296        8.0752        .75227E-02    .24846    
   3  Normalizat    1.2192        .25151        .36586E-03   -.86012    
   4  Prefactor     .59028        .14027        .28970E-03   -1.0800    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.43165e-10
Minuit parameter uncertainties:
  1  2.1163
  2  9.68002
  3  0.251762
  4  0.140354
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/650742': 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) = 4620.10393481
delta logL = 0.316950121132

Extracting fit parameters...

4FGL J2304.3+0618
   Spectrum: PowerLaw
362    Prefactor:  1.130e-01  2.116e+00  1.000e-04  1.000e+04 ( 1.000e-13)
363        Index:  6.230e+00  9.680e+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:  5.903e-01  1.404e-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.219e+00  2.518e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
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/650742/cmap_HighResolution_428803201_429062401_4FGL_J2304.3+0618_daily_bin731.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.64e-02', job_status='DONE', photon_flux_upper_limit='2.10e-07', time_completed='2021-09-29 06:18:47.936997', job_id='650742', GAL2='0.59', fit_tolerance='1e-08', EG2='1.22', EG='1.31', time_epoch_completed='1632921527.94', return_code2='102', ts='0.02', comment='SUCCESS', return_code='0', GAL='0.55', dlogl='3.17e-01', ts2='0.71', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='731' AND source_name='4FGL J2304.3+0618' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 06:18:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 650742: <4FGL_J2304.3+0618_daily_bin731> in cluster <slac> Done

Job <4FGL_J2304.3+0618_daily_bin731> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 06:05:29 2021
Job was executed on host(s) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 06:05:31 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:31 2021
Terminated at Wed Sep 29 06:18:48 2021
Results reported at Wed Sep 29 06:18:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2304.3+0618_daily_bin731 346.078 6.3071 428803201 429062401 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 :                                   639.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             312.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   797 sec.
    Turnaround time :                            799 sec.

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

