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


Performing analysis on: 4FGL_J2304.3+0618_daily_bin693
RA = 346.078, Dec = 6.3071
tmin = 418953601, tmax = 419212801
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='650685', job_status='RUN', time_executed='2021-09-29 06:07:55.643016', time_epoch_executed='1632920875.64' WHERE source_name='4FGL J2304.3+0618' and cadence='daily' and bin_id='693'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/650685

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/650685/ft1_4FGL_J2304.3+0618_daily_bin693.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/650685/ft2_4FGL_J2304.3+0618_daily_bin693.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/650685/ft1_4FGL_J2304.3+0618_daily_bin693.fits outfile=/scratch/kocevski/650685/ft1_filteredMKT_4FGL_J2304.3+0618_daily_bin693.fits ra=346.078 dec=6.3071 rad=12.0 tmin=418953601.0 tmax=419212801.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 5.49
user 5.25
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/650685/ft1_filtered_4FGL_J2304.3+0618_daily_bin693.fits" evtable="EVENTS" scfile=/scratch/kocevski/650685/ft2_4FGL_J2304.3+0618_daily_bin693.fits sctable="SC_DATA" outfile=/scratch/kocevski/650685/ltcube_418953601_419212801_4FGL_J2304.3+0618_daily_bin693.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/650685/ft2_4FGL_J2304.3+0618_daily_bin693.fits
.....................!
real 12.02
user 11.61
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/650685/ft1_filtered_4FGL_J2304.3+0618_daily_bin693.fits evtable="EVENTS" scfile=/scratch/kocevski/650685/ft2_4FGL_J2304.3+0618_daily_bin693.fits sctable="SC_DATA" expcube=/scratch/kocevski/650685/ltcube_418953601_419212801_4FGL_J2304.3+0618_daily_bin693.fits outfile=/scratch/kocevski/650685/expmap_418953601_419212801_4FGL_J2304.3+0618_daily_bin693.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/650685/ltcube_418953601_419212801_4FGL_J2304.3+0618_daily_bin693.fits
.....................!
real 192.64
user 186.94
sys 5.30

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/650685/ft1_filtered_4FGL_J2304.3+0618_daily_bin693.fits scfile=/scratch/kocevski/650685/ft2_4FGL_J2304.3+0618_daily_bin693.fits outfile=/scratch/kocevski/650685/cmap_418953601_419212801_4FGL_J2304.3+0618_daily_bin693.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/650685/ft1_filtered_4FGL_J2304.3+0618_daily_bin693.fits scfile=/scratch/kocevski/650685/ft2_4FGL_J2304.3+0618_daily_bin693.fits outfile=/scratch/kocevski/650685/cmap_HighResolution_418953601_419212801_4FGL_J2304.3+0618_daily_bin693.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .86132       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .38706E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.7857       1.0000         .10000E-03   10000.    
     7 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .17098E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.3269       1.0000         .10000E-03   10000.    
    14 'Prefactor '    34.062       1.0000         .10000E-03   10000.    
    15 'norm      '    9.6368       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .14157E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    213.87       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10420E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    40.549       1.0000         .10000E-03   10000.    
    21 'norm      '    .10308E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    84.992       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1243       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .95485       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=   3711.044     FROM MIGRAD    STATUS=CONVERGED    551 CALLS     2855 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.443       -.61555E-06** at limit **
   2  Prefactor     .86120        .42185        .13691E-07    .13251E-02
   3  Prefactor     .10088E-03    13.223       -.44484E-05** at limit **
   4  Prefactor     .10000E-03    66.831        .36555E-05** at limit **
   5  Prefactor     .10000E-03    12.060       -.79703E-06** at limit **
   6  Prefactor     3.7856        .51932       -.36561E-08    .71744E-03
   7  norm          .10000E-03    12.308        .37882E-06** at limit **
   8  Prefactor     .10000E-03    40.227       -.13154E-05** at limit **
   9  Prefactor     .10012E-03    9.0098       -.34087E-05** at limit **
  10  Prefactor     .10000E-03    5.4045        .23459E-07** at limit **
  11  Prefactor     .10000E-03    13.483       -.30915E-06** at limit **
  12  norm          .10000E-03    .54576       -.24895E-06** at limit **
  13  Prefactor     1.3328        32.613        .19958E-04    .17265E-03
  14  Prefactor     33.927        88.120        .20830E-04    .18843E-04
  15  norm          9.6329        14.399       -.13924E-05   -.46534E-04
  16  Prefactor     .10000E-03    21.259        .58195E-06** at limit **
  17  Prefactor     213.69        292.90        .14283E-04    .19413E-04
  18  Prefactor     .10001E-03    46.853       -.75273E-05** at limit **
  19  Prefactor     .10000E-03    18.977       -.12541E-05** at limit **
  20  norm          40.546        33.436        .36405E-06   -.99325E-05
  21  norm          .10000E-03    52.980       -.39400E-05** at limit **
  22  Prefactor     84.988        64.513       -.28272E-06    .19997E-04
  23  Prefactor     .10000E-03    12.496        .70393E-06** at limit **
  24  Normalizat    1.1246        .34825        .54011E-05    .15965E-03
  25  Prefactor     .95459        .20236       -.54062E-05    .30336E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.861203
  Prefactor  = 0.000100877
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.78557
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010012
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.33282
  Prefactor  = 33.9271
  norm       = 9.63287
  Prefactor  = 0.000100001
  Prefactor  = 213.688
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  norm       = 40.5465
  norm       = 0.000100001
  Prefactor  = 84.9885
  Prefactor  = 0.0001
  Normalizat = 1.12465
  Prefactor  = 0.954592
 **********
 **   18 **HESSE 
 **********

 FCN=   3711.044     FROM HESSE     STATUS=OK           419 CALLS     3274 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .86120        .41577        .26140E-04   -1.5522    
   3  Prefactor     .10088E-03    79.276        .40223E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    66.931        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.060        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.7856        .51823        .15607E-04   -1.5319    
   7  norm          .10000E-03    12.332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    40.250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10012E-03    33.351        .33920E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.4061        .13832E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.491        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .55437        .43961E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.3328        33.646        .19075E-02   -1.5477    
  14  Prefactor     33.927        88.517        .34331E-03   -1.4542    
  15  norm          9.6329        14.400        .12909E-03   -1.5087    
  16  Prefactor     .10000E-03    21.474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     213.69        293.59        .13825E-03   -1.2774    
  18  Prefactor     .10001E-03    48.610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    19.017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          40.546        33.436        .62948E-04   -1.4434    
  21  norm          .10000E-03    53.356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     84.988        64.661        .43574E-04   -1.3862    
  23  Prefactor     .10000E-03    12.500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1246        .40837        .18137E-02   -.88964    
  25  Prefactor     .95459        .23485        .22707E-03   -.94259    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49519e-08
Minuit parameter uncertainties:
  1  1.32764e-05
  2  0.415771
  3  0.0166938
  4  4.24526e-05
  5  3.15118e-06
  6  0.518236
  7  6.10135e-07
  8  2.18997e-05
  9  0.00400653
  10  2.5546e-06
  11  3.13342e-05
  12  8.04376e-06
  13  13.4011
  14  88.8629
  15  14.4049
  16  0.000207845
  17  295.642
  18  0.00129922
  19  1.25422e-05
  20  33.4517
  21  0.000442239
  22  64.7143
  23  1.63197e-06
  24  0.409524
  25  0.235105
Done.

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

Extracting fit parameters...

4FGL J2304.3+0618
   Spectrum: PowerLaw
362    Prefactor:  1.000e-04  2.190e-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:  9.546e-01  2.351e-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.125e+00  4.095e-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.80e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.40e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/650685/likelihoodResults_418953601_419212801_4FGL_J2304.3+0618_daily_bin693.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) = 3711.04394818
delta logL = -0.000118292562092

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3711.04383072
delta logL = -8.34839283925e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10501E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9999       1.0000          .0000       10.000    
     3 'Normalizat'    1.1246       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95459       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=   3711.044     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      278 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10646E-03    26.213        .18142E-01** at limit **
   2  Index         2.8686        7.2066        .50000        .91141E-05
   3  Normalizat    1.1246        .80908E-02    .36273E-03   -.59441E-04
   4  Prefactor     .95459        .47395E-02    .22708E-03   -.10665E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000106464
  Index      = 2.86857
  Normalizat = 1.12465
  Prefactor  = 0.95459
 **********
 **   18 **HESSE 
 **********

 FCN=   3711.044     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      307 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10646E-03    175.17        .32233E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8686        5.5853        .50000       -.44038    
   3  Normalizat    1.1246        .21021E-01    .14509E-04   -.88964    
   4  Prefactor     .95459        .12314E-01    .45415E-04   -.94259    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.63003e-09
Minuit parameter uncertainties:
  1  0.0674958
  2  551.294
  3  0.0210207
  4  0.0123136
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/650685': 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) = 3711.04383045
delta logL = -5.63021785638e-07

Extracting fit parameters...

4FGL J2304.3+0618
   Spectrum: PowerLaw
362    Prefactor:  1.065e-04  6.750e-02  1.000e-04  1.000e+04 ( 1.000e-13)
363        Index:  2.869e+00  5.513e+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:  9.546e-01  1.231e-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:  1.125e+00  2.102e-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/650685/cmap_HighResolution_418953601_419212801_4FGL_J2304.3+0618_daily_bin693.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.40e-02', job_status='DONE', photon_flux_upper_limit='1.80e-07', time_completed='2021-09-29 06:17:04.708964', job_id='650685', GAL2='0.95', fit_tolerance='1e-08', EG2='1.12', EG='1.12', time_epoch_completed='1632921424.71', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='-5.63e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='693' AND source_name='4FGL J2304.3+0618' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 06:17:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 650685: <4FGL_J2304.3+0618_daily_bin693> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2304.3+0618_daily_bin693 346.078 6.3071 418953601 419212801 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 :                                   548.13 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             273.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   699 sec.
    Turnaround time :                            705 sec.

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

