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


Performing analysis on: 4FGL_J2304.3+0618_daily_bin543
RA = 346.078, Dec = 6.3071
tmin = 380073601, tmax = 380332801
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='649425', job_status='RUN', time_executed='2021-09-29 06:02:45.005693', time_epoch_executed='1632920565.01' WHERE source_name='4FGL J2304.3+0618' and cadence='daily' and bin_id='543'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/649425

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/649425/ft1_4FGL_J2304.3+0618_daily_bin543.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/649425/ft2_4FGL_J2304.3+0618_daily_bin543.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/649425/ft1_4FGL_J2304.3+0618_daily_bin543.fits outfile=/scratch/kocevski/649425/ft1_filteredMKT_4FGL_J2304.3+0618_daily_bin543.fits ra=346.078 dec=6.3071 rad=12.0 tmin=380073601.0 tmax=380332801.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 4.48
user 4.23
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/649425/ft2_4FGL_J2304.3+0618_daily_bin543.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/649425/ft1_filteredMKT_4FGL_J2304.3+0618_daily_bin543.fits evtable="EVENTS" outfile="/scratch/kocevski/649425/ft1_filtered_4FGL_J2304.3+0618_daily_bin543.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/649425/ft1_filtered_4FGL_J2304.3+0618_daily_bin543.fits" evtable="EVENTS" scfile=/scratch/kocevski/649425/ft2_4FGL_J2304.3+0618_daily_bin543.fits sctable="SC_DATA" outfile=/scratch/kocevski/649425/ltcube_380073601_380332801_4FGL_J2304.3+0618_daily_bin543.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/649425/ft2_4FGL_J2304.3+0618_daily_bin543.fits
.....................!
real 12.05
user 11.69
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/649425/ft1_filtered_4FGL_J2304.3+0618_daily_bin543.fits evtable="EVENTS" scfile=/scratch/kocevski/649425/ft2_4FGL_J2304.3+0618_daily_bin543.fits sctable="SC_DATA" expcube=/scratch/kocevski/649425/ltcube_380073601_380332801_4FGL_J2304.3+0618_daily_bin543.fits outfile=/scratch/kocevski/649425/expmap_380073601_380332801_4FGL_J2304.3+0618_daily_bin543.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/649425/ltcube_380073601_380332801_4FGL_J2304.3+0618_daily_bin543.fits
.....................!
real 189.57
user 184.99
sys 4.22

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/649425/ft1_filtered_4FGL_J2304.3+0618_daily_bin543.fits scfile=/scratch/kocevski/649425/ft2_4FGL_J2304.3+0618_daily_bin543.fits outfile=/scratch/kocevski/649425/cmap_380073601_380332801_4FGL_J2304.3+0618_daily_bin543.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.56
user 0.40
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/649425/ft1_filtered_4FGL_J2304.3+0618_daily_bin543.fits scfile=/scratch/kocevski/649425/ft2_4FGL_J2304.3+0618_daily_bin543.fits outfile=/scratch/kocevski/649425/cmap_HighResolution_380073601_380332801_4FGL_J2304.3+0618_daily_bin543.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.9474       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.8024       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.9492       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.9728       1.0000         .10000E-03   10000.    
     7 'norm      '    15.957       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.2269       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.3027       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.8152       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.5375       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    20.463       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    13.976       1.0000         .10000E-03   10000.    
    22 'Prefactor '    27.056       1.0000         .10000E-03   10000.    
    23 'Prefactor '    18.109       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .88112       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .90194       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=   6723.152     FROM MIGRAD    STATUS=CONVERGED    583 CALLS     2504 TOTAL
                     EDM=   .68E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.114        .37027E-06** at limit **
   2  Prefactor     1.9473        .32740        .59667E-08   -.37583E-03
   3  Prefactor     .10000E-03    13.099        .20861E-06** at limit **
   4  Prefactor     1.7945        90.385        .26731E-05   -.17350E-05
   5  Prefactor     8.9364        26.191        .18449E-06   -.12198E-04
   6  Prefactor     1.9729        .27100       -.11401E-07   -.31799E-03
   7  norm          15.957        11.460        .10294E-07   -.19569E-05
   8  Prefactor     2.1577        175.07       -.35808E-05   -.32433E-04
   9  Prefactor     .10000E-03    2.1653        .19391E-07** at limit **
  10  Prefactor     7.3005        14.612        .37329E-05   -.38384E-04
  11  Prefactor     .10000E-03    44.802       -.79711E-06** at limit **
  12  norm          1.8150        1.2436        .55511E-07   -.20825E-04
  13  Prefactor     .10000E-03    5.1243       -.20981E-07** at limit **
  14  Prefactor     .10000E-03    23.595        .28961E-07** at limit **
  15  norm          .10000E-03    3.1549        .80082E-08** at limit **
  16  Prefactor     8.5367        6.5408       -.71716E-07   -.41765E-05
  17  Prefactor     .10000E-03    106.93        .36172E-06** at limit **
  18  Prefactor     .10000E-03    3.9259        .38710E-07** at limit **
  19  Prefactor     20.462        21.251       -.11642E-07   -.44252E-05
  20  norm          .10000E-03    3.6970        .29240E-07** at limit **
  21  norm          13.973        17.764        .97847E-07   -.18988E-05
  22  Prefactor     27.055        26.769        .65274E-08   -.40846E-05
  23  Prefactor     18.107        21.217        .89323E-07   -.46515E-05
  24  Normalizat    .88125        .24288        .11102E-05   -.65700E-04
  25  Prefactor     .90187        .14009       -.16652E-05    .85667E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.94725
  Prefactor  = 0.0001
  Prefactor  = 1.79445
  Prefactor  = 8.9364
  Prefactor  = 1.97291
  norm       = 15.9565
  Prefactor  = 2.15774
  Prefactor  = 0.0001
  Prefactor  = 7.3005
  Prefactor  = 0.0001
  norm       = 1.815
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.53674
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.4622
  norm       = 0.0001
  norm       = 13.9727
  Prefactor  = 27.055
  Prefactor  = 18.1073
  Normalizat = 0.881249
  Prefactor  = 0.901869
 **********
 **   18 **HESSE 
 **********

 FCN=   6723.152     FROM HESSE     STATUS=OK           429 CALLS     2933 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    28.348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.9473        .32731        .18335E-04   -1.5429    
   3  Prefactor     .10000E-03    13.348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.7945        91.080        .31134E-03   -1.5440    
   5  Prefactor     8.9364        26.266        .13398E-03   -1.5110    
   6  Prefactor     1.9729        .27211        .14457E-04   -1.5427    
   7  norm          15.957        11.466        .10027E-03   -1.4909    
   8  Prefactor     2.1577        179.72        .27551E-03   -1.5414    
   9  Prefactor     .10000E-03    2.1691        .11781E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.3005        14.832        .74212E-03   -1.5168    
  11  Prefactor     .10000E-03    45.619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.8150        1.2369        .72601E-04   -1.5439    
  13  Prefactor     .10000E-03    5.1869        .18122E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    23.634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.1621        .14211E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.5367        6.5521        .13719E-03   -1.5124    
  17  Prefactor     .10000E-03    106.96        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.9298        .15863E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     20.462        21.259        .88543E-04   -1.4803    
  20  norm          .10000E-03    3.6978        .15398E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          13.973        17.756        .10714E-03   -1.4960    
  22  Prefactor     27.055        26.782        .77018E-04   -1.4667    
  23  Prefactor     18.107        21.227        .94118E-04   -1.4857    
  24  Normalizat    .88125        .28273        .35735E-03   -.97122    
  25  Prefactor     .90187        .15990        .21074E-03   -.96076    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.67946e-10
Minuit parameter uncertainties:
  1  5.63047e-05
  2  0.327312
  3  2.27214e-05
  4  25.6092
  5  26.2994
  6  0.272111
  7  11.4675
  8  39.5075
  9  1.41242e-06
  10  14.8393
  11  3.59438e-05
  12  1.23688
  13  2.70278e-06
  14  9.24725e-06
  15  1.16486e-07
  16  6.55269
  17  0.000347343
  18  2.69852e-07
  19  21.2666
  20  3.3386e-07
  21  17.7631
  22  26.7943
  23  21.2362
  24  0.283208
  25  0.159986
Done.

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

Extracting fit parameters...

4FGL J2304.3+0618
   Spectrum: PowerLaw
362    Prefactor:  2.158e+00  3.951e+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.019e-01  1.600e-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:  8.812e-01  2.832e-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.22e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.48e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/649425/likelihoodResults_380073601_380332801_4FGL_J2304.3+0618_daily_bin543.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) = 6722.61817391
delta logL = 0.533927137017

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6722.61409905
delta logL = 0.538001996005

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5125       1.0000         .10000E-03   10000.    
     2 'Index     '    4.6538       1.0000          .0000       10.000    
     3 'Normalizat'    .78581       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93783       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=   6722.614     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      239 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5155        35.876        .86930E-02    .24761E-02
   2  Index         4.6523        3.7043        .13144        .36178E-03
   3  Normalizat    .78568        .60299E-01    .85116E-01   -.35064E-04
   4  Prefactor     .93782        .36003E-01    .45485E-01   -.30837E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.51551
  Index      = 4.65234
  Normalizat = 0.785682
  Prefactor  = 0.937818
 **********
 **   18 **HESSE 
 **********

 FCN=   6722.614     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      270 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5155        80.937        .10171E-03   -1.5462    
   2  Index         4.6523        7.3227        .71001E-02   -.69588E-01
   3  Normalizat    .78568        .22632        .37696E-03   -1.0060    
   4  Prefactor     .93782        .13237        .20714E-03   -.94832    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.19513e-09
Minuit parameter uncertainties:
  1  22.1814
  2  7.75189
  3  0.22659
  4  0.132414
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/649425': 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) = 6722.61409776
delta logL = 0.53800328431

Extracting fit parameters...

4FGL J2304.3+0618
   Spectrum: PowerLaw
362    Prefactor:  1.516e+00  2.218e+01  1.000e-04  1.000e+04 ( 1.000e-13)
363        Index:  4.652e+00  7.752e+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.378e-01  1.324e-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.857e-01  2.266e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.19
Ra Dec: 346.078 6.307
Photon Index (Free Index): 4.65 +/- 7.75
Photon Flux (Free Index): 6.67e-08 +/- 7.99e-08
Energy Flux (Free Index): 9.15e-06 +/- 1.59e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/649425/cmap_HighResolution_380073601_380332801_4FGL_J2304.3+0618_daily_bin543.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.48e-03', comment='SUCCESS', energy_flux2='9.15e-06', dlogl='5.38e-01', photon_flux2='6.67e-08', job_status='DONE', time_completed='2021-09-29 06:14:26.744645', photon_index_error2='7.75', photon_index2='4.65', ts='0.00', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='1.22e-07', energy_flux_error2='1.59e-05', EG='0.88', time_epoch_completed='1632921266.74', return_code='0', job_id='649425', GAL2='0.94', EG2='0.79', return_code2='102', photon_flux_error2='7.99e-08', ts2='1.19', photon_index='2.53' WHERE bin_id='543' AND source_name='4FGL J2304.3+0618' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 06:14:26 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2304.3+0618_daily_bin543 346.078 6.3071 380073601 380332801 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 :                                   699.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             339.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   812 sec.
    Turnaround time :                            814 sec.

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

