/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 233 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 = 7468
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2304.3+0618_daily_bin423
RA = 346.078, Dec = 6.3071
tmin = 348969601, tmax = 349228801
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='649238', job_status='RUN', time_executed='2021-09-29 06:04:38.946223', time_epoch_executed='1632920678.95' WHERE source_name='4FGL J2304.3+0618' and cadence='daily' and bin_id='423'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/649238

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/649238/ft1_4FGL_J2304.3+0618_daily_bin423.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/649238/ft2_4FGL_J2304.3+0618_daily_bin423.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/649238/ft1_4FGL_J2304.3+0618_daily_bin423.fits outfile=/scratch/kocevski/649238/ft1_filteredMKT_4FGL_J2304.3+0618_daily_bin423.fits ra=346.078 dec=6.3071 rad=12.0 tmin=348969601.0 tmax=349228801.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.75
user 3.54
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/649238/ft1_filtered_4FGL_J2304.3+0618_daily_bin423.fits" evtable="EVENTS" scfile=/scratch/kocevski/649238/ft2_4FGL_J2304.3+0618_daily_bin423.fits sctable="SC_DATA" outfile=/scratch/kocevski/649238/ltcube_348969601_349228801_4FGL_J2304.3+0618_daily_bin423.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/649238/ft2_4FGL_J2304.3+0618_daily_bin423.fits
.....................!
real 11.90
user 11.54
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/649238/ft1_filtered_4FGL_J2304.3+0618_daily_bin423.fits evtable="EVENTS" scfile=/scratch/kocevski/649238/ft2_4FGL_J2304.3+0618_daily_bin423.fits sctable="SC_DATA" expcube=/scratch/kocevski/649238/ltcube_348969601_349228801_4FGL_J2304.3+0618_daily_bin423.fits outfile=/scratch/kocevski/649238/expmap_348969601_349228801_4FGL_J2304.3+0618_daily_bin423.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/649238/ltcube_348969601_349228801_4FGL_J2304.3+0618_daily_bin423.fits
.....................!
real 191.45
user 186.18
sys 4.93

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/649238/ft1_filtered_4FGL_J2304.3+0618_daily_bin423.fits scfile=/scratch/kocevski/649238/ft2_4FGL_J2304.3+0618_daily_bin423.fits outfile=/scratch/kocevski/649238/cmap_348969601_349228801_4FGL_J2304.3+0618_daily_bin423.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.34
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.0375       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.6632       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.9238       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10580       1.0000         .10000E-03   10000.    
     7 'norm      '    4.2262       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.8938       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.1245       1.0000         .10000E-03   10000.    
    12 'norm      '    2.1917       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.9719       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.517       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.3537       1.0000         .10000E-03   10000.    
    20 'norm      '    10.478       1.0000         .10000E-03   10000.    
    21 'norm      '    43.220       1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.5817       1.0000         .10000E-03   10000.    
    23 'Prefactor '    27.199       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .64958       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0916       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=   5372.572     FROM MIGRAD    STATUS=CONVERGED    572 CALLS     2505 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.0320       -.18829E-06** at limit **
   2  Prefactor     1.0375        .26990        .24832E-07   -.58155E-05
   3  Prefactor     4.6627        5.8099        .57438E-07    .65390E-05
   4  Prefactor     7.8639        28.768       -.93241E-05   -.27205E-03
   5  Prefactor     .10000E-03    9.1577        .56541E-06** at limit **
   6  Prefactor     .10578        .87688E-01    .38569E-07    .74633E-03
   7  norm          4.2095        15.040        .68486E-05    .34376E-03
   8  Prefactor     .10000E-03    10.897       -.38557E-06** at limit **
   9  Prefactor     .10000E-03    8.0173       -.34003E-06** at limit **
  10  Prefactor     4.8933        11.997        .38432E-06   -.44381E-05
  11  Prefactor     6.1236        18.496       -.56929E-06   -.49564E-04
  12  norm          2.1917        1.3156        .41990E-07   -.10131E-03
  13  Prefactor     3.9678        8.3568        .42680E-05   -.12184E-02
  14  Prefactor     .10000E-03    17.484        .42116E-06** at limit **
  15  norm          .10000E-03    7.0893       -.36661E-06** at limit **
  16  Prefactor     11.513        8.6405        .40010E-06   -.70286E-03
  17  Prefactor     .10000E-03    149.78        .37729E-05** at limit **
  18  Prefactor     .10000E-03    26.466       -.91142E-06** at limit **
  19  Prefactor     7.3520        15.325       -.20555E-06    .10803E-04
  20  norm          10.478        11.929        .68790E-07    .13807E-04
  21  norm          43.201        31.415       -.18300E-05   -.24467E-03
  22  Prefactor     9.5792        22.277        .44167E-06    .11020E-04
  23  Prefactor     27.196        25.422       -.38573E-06   -.64414E-04
  24  Normalizat    .64942        .23804       -.19864E-05   -.48232E-05
  25  Prefactor     1.0918        .14167        .25854E-06   -.62615E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.03745
  Prefactor  = 4.66268
  Prefactor  = 7.86392
  Prefactor  = 0.0001
  Prefactor  = 0.105781
  norm       = 4.20947
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.89329
  Prefactor  = 6.12363
  norm       = 2.19167
  Prefactor  = 3.96779
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.5132
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 7.35201
  norm       = 10.4779
  norm       = 43.2009
  Prefactor  = 9.57923
  Prefactor  = 27.1961
  Normalizat = 0.649425
  Prefactor  = 1.09181
 **********
 **   18 **HESSE 
 **********

 FCN=   5372.572     FROM HESSE     STATUS=OK           427 CALLS     2932 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.0399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.0375        .26957        .18367E-04   -1.5504    
   3  Prefactor     4.6627        5.8098        .18637E-03   -1.5276    
   4  Prefactor     7.8639        29.941        .14244E-03   -1.5147    
   5  Prefactor     .10000E-03    9.1993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10578        .88747E-01    .18919E-04   -1.5643    
   7  norm          4.2095        15.311        .19601E-03   -1.5298    
   8  Prefactor     .10000E-03    10.906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.3498        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.8933        11.981        .18182E-03   -1.5266    
  11  Prefactor     6.1236        18.520        .16223E-03   -1.5213    
  12  norm          2.1917        1.3095        .62447E-04   -1.5412    
  13  Prefactor     3.9678        10.009        .10119E-02   -1.5310    
  14  Prefactor     .10000E-03    17.493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    7.1543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     11.513        8.6631        .59024E-03   -1.5029    
  17  Prefactor     .10000E-03    150.14        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    26.857        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.3520        15.344        .14790E-03   -1.5166    
  20  norm          10.478        11.928        .12378E-03   -1.5060    
  21  norm          43.201        31.463        .60980E-04   -1.4392    
  22  Prefactor     9.5792        22.269        .12946E-03   -1.5089    
  23  Prefactor     27.196        25.432        .76816E-04   -1.4664    
  24  Normalizat    .64942        .26583        .36540E-03   -1.0592    
  25  Prefactor     1.0918        .16067        .17974E-03   -.89729    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.45788e-09
Minuit parameter uncertainties:
  1  1.36626e-05
  2  0.269572
  3  5.81054
  4  29.998
  5  7.198e-05
  6  0.0887466
  7  15.3251
  8  3.80361e-05
  9  1.76201e-05
  10  11.9866
  11  18.5375
  12  1.30947
  13  10.0133
  14  5.97246e-05
  15  2.81404e-05
  16  8.664
  17  0.00151122
  18  0.000209383
  19  15.3526
  20  11.9306
  21  31.4747
  22  22.2883
  23  25.4424
  24  0.266353
  25  0.160739
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  1.092e+00  1.607e-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:  6.494e-01  2.664e-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: 6.88e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.36e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/649238/likelihoodResults_348969601_349228801_4FGL_J2304.3+0618_daily_bin423.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) = 5372.57263751
delta logL = -0.00043611410274

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5372.57220141
delta logL = -1.72094587469e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10141E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5105       1.0000          .0000       10.000    
     3 'Normalizat'    .64948       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0918       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=   5372.572     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      258 TOTAL
                     EDM=   .69E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    38.481        .18142E-01** at limit **
   2  Index         1.9730        8.7702        .50000        .12294E-06
   3  Normalizat    .64942        .92801E-02    .36540E-03    .10258E-03
   4  Prefactor     1.0918        .58369E-02    .17974E-03    .21013E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.97296
  Normalizat = 0.649424
  Prefactor  = 1.09181
 **********
 **   18 **HESSE 
 **********

 FCN=   5372.572     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      287 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    260.52        .26706E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9730        7.2178        .50000       -.65028    
   3  Normalizat    .64942        .24643E-01    .14616E-04   -1.0592    
   4  Prefactor     1.0918        .15499E-01    .35948E-04   -.89729    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.66777e-10
Minuit parameter uncertainties:
  1  0.00016241
  2  886.205
  3  0.024643
  4  0.0154995
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/649238': 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) = 5372.5722004
delta logL = 9.93699359242e-07

Extracting fit parameters...

4FGL J2304.3+0618
   Spectrum: PowerLaw
362    Prefactor:  1.000e-04  1.624e-04  1.000e-04  1.000e+04 ( 1.000e-13)
363        Index:  1.973e+00  8.862e+02  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:  1.092e+00  1.550e-02  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:  6.494e-01  2.464e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 346.078 6.307

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/649238/cmap_HighResolution_348969601_349228801_4FGL_J2304.3+0618_daily_bin423.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.36e-03', job_status='DONE', photon_flux_upper_limit='6.88e-08', time_completed='2021-09-29 06:14:54.667207', job_id='649238', GAL2='1.09', fit_tolerance='1e-08', EG2='0.65', EG='0.65', time_epoch_completed='1632921294.67', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='9.94e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='423' AND source_name='4FGL J2304.3+0618' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 06:14:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 649238: <4FGL_J2304.3+0618_daily_bin423> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2304.3+0618_daily_bin423 346.078 6.3071 348969601 349228801 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 :                                   615.46 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             258.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   857 sec.
    Turnaround time :                            859 sec.

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

