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


Performing analysis on: 4FGL_J2304.3+0618_daily_bin680
RA = 346.078, Dec = 6.3071
tmin = 415584001, tmax = 415843201
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='650666', job_status='RUN', time_executed='2021-09-29 06:05:43.650065', time_epoch_executed='1632920743.65' WHERE source_name='4FGL J2304.3+0618' and cadence='daily' and bin_id='680'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/650666

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/650666/ft1_4FGL_J2304.3+0618_daily_bin680.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/650666/ft2_4FGL_J2304.3+0618_daily_bin680.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/650666/ft1_4FGL_J2304.3+0618_daily_bin680.fits outfile=/scratch/kocevski/650666/ft1_filteredMKT_4FGL_J2304.3+0618_daily_bin680.fits ra=346.078 dec=6.3071 rad=12.0 tmin=415584001.0 tmax=415843201.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.30
user 6.02
sys 0.26

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/650666/ft1_filtered_4FGL_J2304.3+0618_daily_bin680.fits evtable="EVENTS" scfile=/scratch/kocevski/650666/ft2_4FGL_J2304.3+0618_daily_bin680.fits sctable="SC_DATA" expcube=/scratch/kocevski/650666/ltcube_415584001_415843201_4FGL_J2304.3+0618_daily_bin680.fits outfile=/scratch/kocevski/650666/expmap_415584001_415843201_4FGL_J2304.3+0618_daily_bin680.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/650666/ltcube_415584001_415843201_4FGL_J2304.3+0618_daily_bin680.fits
.....................!
real 192.06
user 187.29
sys 4.18

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/650666/ft1_filtered_4FGL_J2304.3+0618_daily_bin680.fits scfile=/scratch/kocevski/650666/ft2_4FGL_J2304.3+0618_daily_bin680.fits outfile=/scratch/kocevski/650666/cmap_415584001_415843201_4FGL_J2304.3+0618_daily_bin680.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/650666/ft1_filtered_4FGL_J2304.3+0618_daily_bin680.fits scfile=/scratch/kocevski/650666/ft2_4FGL_J2304.3+0618_daily_bin680.fits outfile=/scratch/kocevski/650666/cmap_HighResolution_415584001_415843201_4FGL_J2304.3+0618_daily_bin680.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/650666/ft1_filtered_4FGL_J2304.3+0618_daily_bin680.fits evtable="EVENTS" scfile=/scratch/kocevski/650666/ft2_4FGL_J2304.3+0618_daily_bin680.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/650666/Model_4FGL_J2304.3+0618_daily_bin680.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/650666/ft1_filtered_4FGL_J2304.3+0618_daily_bin680.fits.....................!
real 53.69
user 52.43
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .61096       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    29.175       1.0000         .10000E-03   10000.    
     5 'Prefactor '    36.382       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.7096       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    25.570       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10356E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    28.793       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.9669       1.0000         .10000E-03   10000.    
    12 'norm      '    .53110       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    36.101       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    15.052       1.0000         .10000E-03   10000.    
    21 'norm      '    64.198       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    18.066       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3411       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .83937       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=   4509.638     FROM MIGRAD    STATUS=CONVERGED    544 CALLS     2909 TOTAL
                     EDM=   .15E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.517        .34334E-07** at limit **
   2  Prefactor     .61093        .38875        .24709E-07   -.27788E-06
   3  Prefactor     .10000E-03    14.145       -.20682E-07** at limit **
   4  Prefactor     29.184        64.079        .30436E-06    .67209E-05
   5  Prefactor     36.380        34.893        .67808E-07   -.87742E-05
   6  Prefactor     1.7097        .39777       -.55524E-08   -.66420E-04
   7  norm          .10000E-03    10.814        .67078E-07** at limit **
   8  Prefactor     25.568        42.637       -.14600E-06   -.43834E-05
   9  Prefactor     .10000E-03    22.669        .32560E-06** at limit **
  10  Prefactor     28.803        21.114        .72227E-07    .77807E-05
  11  Prefactor     6.9676        15.251        .33004E-05   -.21177E-04
  12  norm          .53114        .83944        .13229E-07    .41235E-04
  13  Prefactor     .10000E-03    5.1947        .41424E-07** at limit **
  14  Prefactor     .10000E-03    62.032       -.30499E-06** at limit **
  15  norm          .10000E-03    14.427        .26406E-06** at limit **
  16  Prefactor     .10000E-03    18.513        .33886E-06** at limit **
  17  Prefactor     35.978        282.55       -.15368E-05   -.14100E-04
  18  Prefactor     .10000E-03    21.573       -.27247E-05** at limit **
  19  Prefactor     .10000E-03    14.468        .47418E-07** at limit **
  20  norm          15.054        20.938        .43626E-07   -.93261E-07
  21  norm          64.180        39.892       -.25205E-07   -.19465E-04
  22  Prefactor     .10000E-03    61.015       -.14224E-06** at limit **
  23  Prefactor     18.063        23.947        .46737E-07   -.19773E-05
  24  Normalizat    1.3411        .28501        .33727E-06   -.97920E-05
  25  Prefactor     .83937        .16643       -.54201E-06    .20054E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.610926
  Prefactor  = 0.0001
  Prefactor  = 29.1837
  Prefactor  = 36.3798
  Prefactor  = 1.70967
  norm       = 0.0001
  Prefactor  = 25.5685
  Prefactor  = 0.0001
  Prefactor  = 28.803
  Prefactor  = 6.96757
  norm       = 0.53114
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.9779
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 15.0543
  norm       = 64.1803
  Prefactor  = 0.0001
  Prefactor  = 18.0635
  Normalizat = 1.34108
  Prefactor  = 0.839374
 **********
 **   18 **HESSE 
 **********

 FCN=   4509.638     FROM HESSE     STATUS=OK           427 CALLS     3336 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .61093        .38157        .31367E-04   -1.5552    
   3  Prefactor     .10000E-03    14.303        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     29.184        64.479        .74174E-04   -1.4627    
   5  Prefactor     36.380        35.039        .66443E-04   -1.4501    
   6  Prefactor     1.7097        .40230        .18232E-04   -1.5446    
   7  norm          .10000E-03    10.862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     25.568        42.689        .79219E-04   -1.4696    
   9  Prefactor     .10000E-03    23.210        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     28.803        21.112        .74664E-04   -1.4634    
  11  Prefactor     6.9676        15.285        .75996E-03   -1.5180    
  12  norm          .53114        .83888        .45588E-04   -1.5562    
  13  Prefactor     .10000E-03    5.2028        .14948E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    62.120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    14.792        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    19.145        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     35.978        283.80        .33350E-03   -1.4508    
  18  Prefactor     .10000E-03    21.630        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    14.487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          15.054        20.937        .10324E-03   -1.4932    
  21  norm          64.180        39.869        .25043E-03   -1.4104    
  22  Prefactor     .10000E-03    61.241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     18.063        23.953        .94231E-04   -1.4858    
  24  Normalizat    1.3411        .33560        .31130E-03   -.82348    
  25  Prefactor     .83937        .19544        .22612E-03   -.98293    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.15503e-11
Minuit parameter uncertainties:
  1  8.18482e-06
  2  0.381574
  3  7.37717e-06
  4  64.634
  5  35.0592
  6  0.402302
  7  5.582e-07
  8  42.7396
  9  1.22877e-05
  10  21.1178
  11  15.2935
  12  0.838903
  13  6.29817e-09
  14  1.85402e-05
  15  4.70061e-06
  16  1.39933e-05
  17  203.438
  18  2.35838e-05
  19  3.77456e-07
  20  20.9475
  21  39.8856
  22  3.81739e-05
  23  23.9662
  24  0.336153
  25  0.195602
Done.

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

Extracting fit parameters...

4FGL J2304.3+0618
   Spectrum: PowerLaw
362    Prefactor:  2.557e+01  4.274e+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:  8.394e-01  1.956e-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.341e+00  3.362e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/650666/likelihoodResults_415584001_415843201_4FGL_J2304.3+0618_daily_bin680.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) = 4509.63739497
delta logL = 0.000699178474861

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4509.63706051
delta logL = 0.00103363608105

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.819       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4723       1.0000          .0000       10.000    
     3 'Normalizat'    1.3427       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83863       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=   4509.637     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      227 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.894        55.187        .77357E-04    .14696E-06
   2  Index         2.4762        1.2162        .10558E-01    .58360E-05
   3  Normalizat    1.3426        .33022        .31114E-03   -.20352E-04
   4  Prefactor     .83861        .19526        .22621E-03    .27240E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.894
  Index      = 2.47615
  Normalizat = 1.3426
  Prefactor  = 0.838613
 **********
 **   18 **HESSE 
 **********

 FCN=   4509.637     FROM HESSE     STATUS=OK            25 CALLS      252 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.894        52.426        .30943E-05   -1.4670    
   2  Index         2.4762        1.1559        .42233E-03   -.52911    
   3  Normalizat    1.3426        .33044        .12446E-04   -.82304    
   4  Prefactor     .83861        .19533        .90483E-05   -.98320    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42116e-11
Minuit parameter uncertainties:
  1  52.5158
  2  1.17021
  3  0.330963
  4  0.195488
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/650666': 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) = 4509.6370482
delta logL = 0.00104595328867

Extracting fit parameters...

4FGL J2304.3+0618
   Spectrum: PowerLaw
362    Prefactor:  2.689e+01  5.252e+01  1.000e-04  1.000e+04 ( 1.000e-13)
363        Index:  2.476e+00  1.170e+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:  8.386e-01  1.955e-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.343e+00  3.310e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.45
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/650666/cmap_HighResolution_415584001_415843201_4FGL_J2304.3+0618_daily_bin680.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.28e-02', job_status='DONE', photon_flux_upper_limit='1.64e-07', time_completed='2021-09-29 06:15:52.915183', job_id='650666', GAL2='0.84', fit_tolerance='1e-08', EG2='1.34', EG='1.34', time_epoch_completed='1632921352.92', return_code2='0', ts='0.45', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='1.05e-03', ts2='0.45', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='680' AND source_name='4FGL J2304.3+0618' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 06:15:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0112>
Subject: Job 650666: <4FGL_J2304.3+0618_daily_bin680> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2304.3+0618_daily_bin680 346.078 6.3071 415584001 415843201 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 :                                   606.03 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             361.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   628 sec.
    Turnaround time :                            631 sec.

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

