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


Performing analysis on: 4FGL_J2304.3+0618_daily_bin836
RA = 346.078, Dec = 6.3071
tmin = 456019201, tmax = 456278401
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='650898', job_status='RUN', time_executed='2021-09-29 06:09:29.322160', time_epoch_executed='1632920969.32' WHERE source_name='4FGL J2304.3+0618' and cadence='daily' and bin_id='836'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/650898

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/650898/ft1_4FGL_J2304.3+0618_daily_bin836.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/650898/ft2_4FGL_J2304.3+0618_daily_bin836.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/650898/ft1_4FGL_J2304.3+0618_daily_bin836.fits outfile=/scratch/kocevski/650898/ft1_filteredMKT_4FGL_J2304.3+0618_daily_bin836.fits ra=346.078 dec=6.3071 rad=12.0 tmin=456019201.0 tmax=456278401.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.91
user 6.56
sys 0.33

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/650898/ft1_filtered_4FGL_J2304.3+0618_daily_bin836.fits" evtable="EVENTS" scfile=/scratch/kocevski/650898/ft2_4FGL_J2304.3+0618_daily_bin836.fits sctable="SC_DATA" outfile=/scratch/kocevski/650898/ltcube_456019201_456278401_4FGL_J2304.3+0618_daily_bin836.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/650898/ft2_4FGL_J2304.3+0618_daily_bin836.fits
.....................!
real 11.58
user 11.23
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/650898/ft1_filtered_4FGL_J2304.3+0618_daily_bin836.fits evtable="EVENTS" scfile=/scratch/kocevski/650898/ft2_4FGL_J2304.3+0618_daily_bin836.fits sctable="SC_DATA" expcube=/scratch/kocevski/650898/ltcube_456019201_456278401_4FGL_J2304.3+0618_daily_bin836.fits outfile=/scratch/kocevski/650898/expmap_456019201_456278401_4FGL_J2304.3+0618_daily_bin836.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/650898/ltcube_456019201_456278401_4FGL_J2304.3+0618_daily_bin836.fits
.....................!
real 190.73
user 184.91
sys 5.46

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/650898/ft1_filtered_4FGL_J2304.3+0618_daily_bin836.fits scfile=/scratch/kocevski/650898/ft2_4FGL_J2304.3+0618_daily_bin836.fits outfile=/scratch/kocevski/650898/cmap_456019201_456278401_4FGL_J2304.3+0618_daily_bin836.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/650898/ft1_filtered_4FGL_J2304.3+0618_daily_bin836.fits scfile=/scratch/kocevski/650898/ft2_4FGL_J2304.3+0618_daily_bin836.fits outfile=/scratch/kocevski/650898/cmap_HighResolution_456019201_456278401_4FGL_J2304.3+0618_daily_bin836.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/650898/ft1_filtered_4FGL_J2304.3+0618_daily_bin836.fits evtable="EVENTS" scfile=/scratch/kocevski/650898/ft2_4FGL_J2304.3+0618_daily_bin836.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/650898/Model_4FGL_J2304.3+0618_daily_bin836.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/650898/ft1_filtered_4FGL_J2304.3+0618_daily_bin836.fits.....................!
real 76.95
user 75.44
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .19271       1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.821       1.0000         .10000E-03   10000.    
     4 'Prefactor '    23.662       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.4845       1.0000         .10000E-03   10000.    
     7 'norm      '    11.259       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.0131       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.6088       1.0000         .10000E-03   10000.    
    10 'Prefactor '    28.877       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.0597       1.0000         .10000E-03   10000.    
    13 'Prefactor '    20.381       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10062E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .14075E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .15231E-02   1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4019       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .71094       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=   6843.792     FROM MIGRAD    STATUS=CONVERGED    589 CALLS     2915 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.7994       -.28513E-07** at limit **
   2  Prefactor     .19270        .17513        .57072E-07    .51007E-03
   3  Prefactor     12.821        9.6967       -.17980E-06    .33669E-05
   4  Prefactor     23.645        34.685       -.39711E-06    .16544E-04
   5  Prefactor     .10000E-03    25.890        .27011E-06** at limit **
   6  Prefactor     4.4846        .41245        .95290E-08   -.40624E-03
   7  norm          11.255        12.501        .38060E-06   -.11548E-04
   8  Prefactor     3.9601        103.75        .28335E-05    .22748E-04
   9  Prefactor     2.6094        7.9443       -.55041E-06   -.12036E-03
  10  Prefactor     28.874        20.129        .36394E-06    .39640E-04
  11  Prefactor     .10000E-03    9.3748        .35056E-06** at limit **
  12  norm          1.0595        .87247        .70872E-07   -.47174E-04
  13  Prefactor     20.384        13.194       -.25656E-06   -.40913E-04
  14  Prefactor     .10000E-03    39.571        .21164E-07** at limit **
  15  norm          .10000E-03    11.778        .62973E-06** at limit **
  16  Prefactor     .10004E-03    7.1509       -.22571E-06** at limit **
  17  Prefactor     .10000E-03    69.784        .48642E-06** at limit **
  18  Prefactor     .10000E-03    4.0298        .85766E-08** at limit **
  19  Prefactor     .10000E-03    155.12       -.60676E-05** at limit **
  20  norm          .10000E-03    6.3452        .27770E-07** at limit **
  21  norm          .10000E-03    5.4651        .40988E-08** at limit **
  22  Prefactor     .10000E-03    25.844        .15058E-06** at limit **
  23  Prefactor     .10000E-03    9.3213        .56584E-07** at limit **
  24  Normalizat    1.4022        .27309       -.59877E-05   -.12518E-05
  25  Prefactor     .71080        .15248        .35833E-05   -.51730E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.192699
  Prefactor  = 12.8206
  Prefactor  = 23.6452
  Prefactor  = 0.0001
  Prefactor  = 4.48456
  norm       = 11.2555
  Prefactor  = 3.9601
  Prefactor  = 2.60943
  Prefactor  = 28.8739
  Prefactor  = 0.0001
  norm       = 1.0595
  Prefactor  = 20.3837
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100039
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.40223
  Prefactor  = 0.710805
 **********
 **   18 **HESSE 
 **********

 FCN=   6843.792     FROM HESSE     STATUS=OK           435 CALLS     3350 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.8112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .19270        .16863        .31794E-03   -1.5620    
   3  Prefactor     12.821        9.6857        .11187E-03   -1.4992    
   4  Prefactor     23.645        34.733        .82346E-04   -1.4735    
   5  Prefactor     .10000E-03    25.961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.4846        .41300        .15205E-04   -1.5284    
   7  norm          11.255        12.503        .11939E-03   -1.5037    
   8  Prefactor     3.9601        105.33        .20131E-03   -1.5310    
   9  Prefactor     2.6094        7.9642        .25256E-03   -1.5385    
  10  Prefactor     28.874        20.107        .74555E-04   -1.4633    
  11  Prefactor     .10000E-03    9.4070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.0595        .85321        .67733E-04   -1.5502    
  13  Prefactor     20.384        13.123        .88720E-04   -1.4805    
  14  Prefactor     .10000E-03    39.674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    12.092        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10004E-03    47.064        .40494E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    69.833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.0383        .16219E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    150.47        .65186E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    6.3516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    5.4657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    25.916        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    9.3326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.4022        .27304        .31443E-03   -.80564    
  25  Prefactor     .71080        .15248        .24627E-03   -1.0310    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.84212e-10
Minuit parameter uncertainties:
  1  2.04801e-06
  2  0.168634
  3  9.68684
  4  34.7629
  5  8.22511e-06
  6  0.413001
  7  12.5056
  8  40.9259
  9  7.96747
  10  20.1121
  11  3.64133e-05
  12  0.853217
  13  13.1247
  14  8.93209e-05
  15  5.12698e-05
  16  0.00272254
  17  0.00019209
  18  2.215e-06
  19  0.000388025
  20  9.63396e-07
  21  4.91451e-07
  22  2.59855e-06
  23  2.11931e-06
  24  0.273321
  25  0.152572
Done.

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

Extracting fit parameters...

4FGL J2304.3+0618
   Spectrum: PowerLaw
362    Prefactor:  3.960e+00  4.093e+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:  7.108e-01  1.526e-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.402e+00  2.733e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/650898/likelihoodResults_456019201_456278401_4FGL_J2304.3+0618_daily_bin836.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) = 6841.56871057
delta logL = 2.22344619693

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6841.52170744
delta logL = 2.2704493291

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .74763       1.0000         .10000E-03   10000.    
     2 'Index     '    5.5470       1.0000          .0000       10.000    
     3 'Normalizat'    1.2111       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77771       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=   6841.522     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      241 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .74528        5.6681        .83723E-02    .91081E-03
   2  Index         5.5485        2.4728        .10346        .17982E-03
   3  Normalizat    1.2112        .71227E-01    .75358E-01    .67931E-05
   4  Prefactor     .77769        .41374E-01    .43426E-01    .23096E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.745282
  Index      = 5.5485
  Normalizat = 1.21119
  Prefactor  = 0.777688
 **********
 **   18 **HESSE 
 **********

 FCN=   6841.522     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      274 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .74528        11.006        .37778E-04   -1.5535    
   2  Index         5.5485        3.6411        .41298E-02    .10992    
   3  Normalizat    1.2112        .24590        .33351E-03   -.86258    
   4  Prefactor     .77769        .13961        .23627E-03   -1.0056    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.42324e-10
Minuit parameter uncertainties:
  1  5.72886
  2  4.08621
  3  0.246133
  4  0.139676
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/650898': 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) = 6841.52170673
delta logL = 2.27045003741

Extracting fit parameters...

4FGL J2304.3+0618
   Spectrum: PowerLaw
362    Prefactor:  7.453e-01  5.729e+00  1.000e-04  1.000e+04 ( 1.000e-13)
363        Index:  5.549e+00  4.086e+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:  7.777e-01  1.397e-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.211e+00  2.461e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.97
Ra Dec: 346.078 6.307
Photon Index (Free Index): 5.55 +/- 4.09
Photon Flux (Free Index): 1.70e-07 +/- 9.36e-08
Energy Flux (Free Index): 2.18e-05 +/- 1.38e-05

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/650898/cmap_HighResolution_456019201_456278401_4FGL_J2304.3+0618_daily_bin836.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.04e-02', comment='SUCCESS', energy_flux2='2.18e-05', dlogl='2.27e+00', photon_flux2='1.70e-07', job_status='DONE', time_completed='2021-09-29 06:22:15.904980', photon_index_error2='4.09', photon_index2='5.55', ts='0.01', fit_tolerance='1e-08', GAL='0.71', photon_index_error='0.00', photon_flux_upper_limit='1.33e-07', energy_flux_error2='1.38e-05', EG='1.40', time_epoch_completed='1632921735.91', return_code='0', job_id='650898', GAL2='0.78', EG2='1.21', return_code2='102', photon_flux_error2='9.36e-08', ts2='4.97', photon_index='2.53' WHERE bin_id='836' AND source_name='4FGL J2304.3+0618' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 06:22:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 650898: <4FGL_J2304.3+0618_daily_bin836> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2304.3+0618_daily_bin836 346.078 6.3071 456019201 456278401 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 :                                   765.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             301.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   991 sec.
    Turnaround time :                            993 sec.

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

