/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 36 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 = 7384
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2304.3+0618_daily_bin898
RA = 346.078, Dec = 6.3071
tmin = 472089601, tmax = 472348801
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='652132', job_status='RUN', time_executed='2021-09-29 06:11:19.447039', time_epoch_executed='1632921079.45' WHERE source_name='4FGL J2304.3+0618' and cadence='daily' and bin_id='898'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/652132

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/652132/ft1_4FGL_J2304.3+0618_daily_bin898.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/652132/ft2_4FGL_J2304.3+0618_daily_bin898.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/652132/ft1_4FGL_J2304.3+0618_daily_bin898.fits outfile=/scratch/kocevski/652132/ft1_filteredMKT_4FGL_J2304.3+0618_daily_bin898.fits ra=346.078 dec=6.3071 rad=12.0 tmin=472089601.0 tmax=472348801.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.48
user 3.26
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/652132/ft1_filtered_4FGL_J2304.3+0618_daily_bin898.fits" evtable="EVENTS" scfile=/scratch/kocevski/652132/ft2_4FGL_J2304.3+0618_daily_bin898.fits sctable="SC_DATA" outfile=/scratch/kocevski/652132/ltcube_472089601_472348801_4FGL_J2304.3+0618_daily_bin898.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/652132/ft2_4FGL_J2304.3+0618_daily_bin898.fits
.....................!
real 12.03
user 11.69
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/652132/ft1_filtered_4FGL_J2304.3+0618_daily_bin898.fits evtable="EVENTS" scfile=/scratch/kocevski/652132/ft2_4FGL_J2304.3+0618_daily_bin898.fits sctable="SC_DATA" expcube=/scratch/kocevski/652132/ltcube_472089601_472348801_4FGL_J2304.3+0618_daily_bin898.fits outfile=/scratch/kocevski/652132/expmap_472089601_472348801_4FGL_J2304.3+0618_daily_bin898.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/652132/ltcube_472089601_472348801_4FGL_J2304.3+0618_daily_bin898.fits
.....................!
real 190.05
user 184.46
sys 5.24

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/652132/ft1_filtered_4FGL_J2304.3+0618_daily_bin898.fits scfile=/scratch/kocevski/652132/ft2_4FGL_J2304.3+0618_daily_bin898.fits outfile=/scratch/kocevski/652132/cmap_472089601_472348801_4FGL_J2304.3+0618_daily_bin898.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/652132/ft1_filtered_4FGL_J2304.3+0618_daily_bin898.fits scfile=/scratch/kocevski/652132/ft2_4FGL_J2304.3+0618_daily_bin898.fits outfile=/scratch/kocevski/652132/cmap_HighResolution_472089601_472348801_4FGL_J2304.3+0618_daily_bin898.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.55
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.848       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.8447       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.7572       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .63617       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.3347       1.0000         .10000E-03   10000.    
     7 'norm      '    3.4252       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.1992       1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.703       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.678       1.0000         .10000E-03   10000.    
    12 'norm      '    5.2742       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.9798       1.0000         .10000E-03   10000.    
    14 'Prefactor '    53.206       1.0000         .10000E-03   10000.    
    15 'norm      '    24.312       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.3815       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11899E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11130E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.7602       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10142E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .39367E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.508       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1440       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .97740       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=   8370.654     FROM MIGRAD    STATUS=CONVERGED   1020 CALLS     3384 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.850        23.366        .87722E-04   -.25920E-05
   2  Prefactor     2.8448        .37925        .18726E-04   -.37519E-03
   3  Prefactor     9.7571        8.0056        .64144E-03   -.12726E-04
   4  Prefactor     .10000E-03    12.747        .18142E-02** at limit **
   5  Prefactor     .63705        37.464        .50739E-02    .14812E-03
   6  Prefactor     2.3347        .27297        .15419E-04   -.16035E-02
   7  norm          3.4268        10.237        .21856E-03   -.26840E-04
   8  Prefactor     2.2006        38.460        .27745E-03   -.17537E-04
   9  Prefactor     15.705        9.2089        .10107E-03   -.35094E-04
  10  Prefactor     .10000E-03    11.856        .18142E-02** at limit **
  11  Prefactor     10.688        24.500        .12261E-03   -.94021E-04
  12  norm          5.2751        1.6614        .63287E-04   -.33736E-03
  13  Prefactor     6.9803        7.9371        .15185E-03   -.46717E-04
  14  Prefactor     53.140        87.068        .54986E-04   -.12066E-03
  15  norm          24.312        10.939        .81240E-04   -.10719E-03
  16  Prefactor     1.3827        6.3448        .18513E-02    .56030E-04
  17  Prefactor     .10000E-03    221.10        .18142E-02** at limit **
  18  Prefactor     .10000E-03    24.848        .18142E-02** at limit **
  19  Prefactor     8.7585        20.680        .13543E-03   -.37776E-04
  20  norm          .10000E-03    5.6780        .18142E-02** at limit **
  21  norm          .10000E-03    24.464        .18142E-02** at limit **
  22  Prefactor     .10001E-03    43.630        .15893    ** at limit **
  23  Prefactor     10.479        28.949        .12360E-03   -.12656E-03
  24  Normalizat    1.1439        .30458        .37770E-03   -.41799E-03
  25  Prefactor     .97740        .16702        .24000E-03   -.44426E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.8496
  Prefactor  = 2.8448
  Prefactor  = 9.75709
  Prefactor  = 0.0001
  Prefactor  = 0.637054
  Prefactor  = 2.33472
  norm       = 3.42676
  Prefactor  = 2.20056
  Prefactor  = 15.7047
  Prefactor  = 0.0001
  Prefactor  = 10.6881
  norm       = 5.27506
  Prefactor  = 6.98026
  Prefactor  = 53.14
  norm       = 24.312
  Prefactor  = 1.38274
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 8.75851
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.00010001
  Prefactor  = 10.4795
  Normalizat = 1.14386
  Prefactor  = 0.977403
 **********
 **   18 **HESSE 
 **********

 FCN=   8370.654     FROM HESSE     STATUS=OK           415 CALLS     3799 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.850        23.362        .35089E-05   -1.4794    
   2  Prefactor     2.8448        .37923        .74904E-06   -1.5371    
   3  Prefactor     9.7571        8.0054        .25657E-04   -1.5083    
   4  Prefactor     .10000E-03    12.748        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .63705        37.824        .20296E-03   -1.5548    
   6  Prefactor     2.3347        .27267        .30839E-05   -1.5402    
   7  norm          3.4268        10.236        .87425E-05   -1.5338    
   8  Prefactor     2.2006        38.453        .11098E-04   -1.5411    
   9  Prefactor     15.705        9.2085        .40429E-05   -1.4915    
  10  Prefactor     .10000E-03    11.859        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.688        24.492        .49044E-05   -1.5054    
  12  norm          5.2751        1.6614        .25315E-05   -1.5249    
  13  Prefactor     6.9803        7.9368        .60740E-05   -1.5180    
  14  Prefactor     53.140        87.075        .10997E-04   -1.4249    
  15  norm          24.312        10.898        .32496E-05   -1.4721    
  16  Prefactor     1.3827        6.2818        .74052E-04   -1.5473    
  17  Prefactor     .10000E-03    221.10        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    24.861        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.7585        20.678        .54171E-05   -1.5116    
  20  norm          .10000E-03    5.6784        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    24.468        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10001E-03    45.117        .15538       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     10.479        28.946        .49440E-05   -1.5060    
  24  Normalizat    1.1439        .30478        .75541E-04   -.88356    
  25  Prefactor     .97740        .16716        .48001E-04   -.93487    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.96612e-10
Minuit parameter uncertainties:
  1  23.3725
  2  0.379227
  3  8.00631
  4  1.75312e-05
  5  9.82326
  6  0.272669
  7  10.2417
  8  18.411
  9  9.20929
  10  0.000110069
  11  24.5152
  12  1.66142
  13  7.93803
  14  87.284
  15  10.8989
  16  5.89524
  17  0.000456953
  18  0.000677149
  19  20.6948
  20  2.17389e-05
  21  0.000207463
  22  0.00137205
  23  28.9843
  24  0.305257
  25  0.167247
Done.

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

Extracting fit parameters...

4FGL J2304.3+0618
   Spectrum: PowerLaw
362    Prefactor:  2.201e+00  1.841e+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:  9.774e-01  1.672e-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.144e+00  3.053e-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: 8.33e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.49e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/652132/likelihoodResults_472089601_472348801_4FGL_J2304.3+0618_daily_bin898.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) = 8370.22824498
delta logL = 0.425430426636

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8370.22824427
delta logL = 0.42543113688

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.214       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5016       1.0000          .0000       10.000    
     3 'Normalizat'    1.1542       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96852       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=   8370.228     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      244 TOTAL
                     EDM=   .71E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.923        20.541        .27548E-02   -.95842E-04
   2  Index         1.4973        .59299        .29790       -.12480E-04
   3  Normalizat    1.1542        .23348        .84957E-01    .83945E-04
   4  Prefactor     .96857        .13907        .45872E-01   -.12897E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.9232
  Index      = 1.4973
  Normalizat = 1.15417
  Prefactor  = 0.968573
 **********
 **   18 **HESSE 
 **********

 FCN=   8370.228     FROM HESSE     STATUS=OK            31 CALLS      275 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.923        20.896        .11019E-03   -1.4989    
   2  Index         1.4973        .76871        .14006E-01   -.77615    
   3  Normalizat    1.1542        .27461        .37618E-03   -.88031    
   4  Prefactor     .96857        .16389        .24083E-03   -.93785    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15151e-10
Minuit parameter uncertainties:
  1  20.9081
  2  0.774786
  3  0.274948
  4  0.163977
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/652132': 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) = 8370.22815379
delta logL = 0.425521618843

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  9.686e-01  1.640e-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.154e+00  2.749e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/652132/cmap_HighResolution_472089601_472348801_4FGL_J2304.3+0618_daily_bin898.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.49e-03', job_status='DONE', photon_flux_upper_limit='8.33e-08', time_completed='2021-09-29 06:26:26.222098', job_id='652132', GAL2='0.97', fit_tolerance='1e-08', EG2='1.15', EG='1.14', time_epoch_completed='1632921986.22', return_code2='0', ts='0.02', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='4.26e-01', ts2='0.87', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='898' AND source_name='4FGL J2304.3+0618' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 06:26:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 652132: <4FGL_J2304.3+0618_daily_bin898> in cluster <slac> Done

Job <4FGL_J2304.3+0618_daily_bin898> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep 29 06:10:23 2021
Job was executed on host(s) <bullet0242>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 06:10:25 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:10:25 2021
Terminated at Wed Sep 29 06:26:26 2021
Results reported at Wed Sep 29 06:26:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2304.3+0618_daily_bin898 346.078 6.3071 472089601 472348801 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 :                                   900.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             336.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   961 sec.
    Turnaround time :                            963 sec.

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

