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


Performing analysis on: 4FGL_J2304.3+0618_daily_bin660
RA = 346.078, Dec = 6.3071
tmin = 410400001, tmax = 410659201
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='650636', job_status='RUN', time_executed='2021-09-29 06:08:18.354795', time_epoch_executed='1632920898.35' WHERE source_name='4FGL J2304.3+0618' and cadence='daily' and bin_id='660'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/650636

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/650636/ft1_4FGL_J2304.3+0618_daily_bin660.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/650636/ft2_4FGL_J2304.3+0618_daily_bin660.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/650636/ft1_4FGL_J2304.3+0618_daily_bin660.fits outfile=/scratch/kocevski/650636/ft1_filteredMKT_4FGL_J2304.3+0618_daily_bin660.fits ra=346.078 dec=6.3071 rad=12.0 tmin=410400001.0 tmax=410659201.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.64
user 6.27
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/650636/ft2_4FGL_J2304.3+0618_daily_bin660.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/650636/ft1_filteredMKT_4FGL_J2304.3+0618_daily_bin660.fits evtable="EVENTS" outfile="/scratch/kocevski/650636/ft1_filtered_4FGL_J2304.3+0618_daily_bin660.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/650636/ft1_filtered_4FGL_J2304.3+0618_daily_bin660.fits" evtable="EVENTS" scfile=/scratch/kocevski/650636/ft2_4FGL_J2304.3+0618_daily_bin660.fits sctable="SC_DATA" outfile=/scratch/kocevski/650636/ltcube_410400001_410659201_4FGL_J2304.3+0618_daily_bin660.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/650636/ft2_4FGL_J2304.3+0618_daily_bin660.fits
.....................!
real 12.59
user 12.17
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/650636/ft1_filtered_4FGL_J2304.3+0618_daily_bin660.fits evtable="EVENTS" scfile=/scratch/kocevski/650636/ft2_4FGL_J2304.3+0618_daily_bin660.fits sctable="SC_DATA" expcube=/scratch/kocevski/650636/ltcube_410400001_410659201_4FGL_J2304.3+0618_daily_bin660.fits outfile=/scratch/kocevski/650636/expmap_410400001_410659201_4FGL_J2304.3+0618_daily_bin660.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/650636/ltcube_410400001_410659201_4FGL_J2304.3+0618_daily_bin660.fits
.....................!
real 191.94
user 186.25
sys 5.27

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/650636/ft1_filtered_4FGL_J2304.3+0618_daily_bin660.fits scfile=/scratch/kocevski/650636/ft2_4FGL_J2304.3+0618_daily_bin660.fits outfile=/scratch/kocevski/650636/cmap_410400001_410659201_4FGL_J2304.3+0618_daily_bin660.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/650636/ft1_filtered_4FGL_J2304.3+0618_daily_bin660.fits scfile=/scratch/kocevski/650636/ft2_4FGL_J2304.3+0618_daily_bin660.fits outfile=/scratch/kocevski/650636/cmap_HighResolution_410400001_410659201_4FGL_J2304.3+0618_daily_bin660.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/650636/ft1_filtered_4FGL_J2304.3+0618_daily_bin660.fits evtable="EVENTS" scfile=/scratch/kocevski/650636/ft2_4FGL_J2304.3+0618_daily_bin660.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/650636/Model_4FGL_J2304.3+0618_daily_bin660.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/650636/ft1_filtered_4FGL_J2304.3+0618_daily_bin660.fits.....................!
real 45.13
user 43.71
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    154.72       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.3401       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    96.259       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.3627       1.0000         .10000E-03   10000.    
     7 'norm      '    78.706       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.787       1.0000         .10000E-03   10000.    
    10 'Prefactor '    21.685       1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.481       1.0000         .10000E-03   10000.    
    12 'norm      '    .10061E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.7558       1.0000         .10000E-03   10000.    
    14 'Prefactor '    78.113       1.0000         .10000E-03   10000.    
    15 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .81639       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.375       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    25.832       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2067       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .72647       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=   3786.102     FROM MIGRAD    STATUS=CONVERGED    586 CALLS     2913 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     154.65        78.282       -.38705E-04    .20860E-03
   2  Prefactor     1.3406        .67046        .17918E-05   -.37135E-02
   3  Prefactor     .10000E-03    7.8186       -.62154E-07** at limit **
   4  Prefactor     96.267        77.130        .51114E-05   -.61162E-05
   5  Prefactor     .10000E-03    63.886        .43411E-07** at limit **
   6  Prefactor     2.3625        .50399       -.31799E-07    .11444E-03
   7  norm          78.701        28.516        .74586E-06    .24731E-04
   8  Prefactor     .10000E-03    73.207       -.27193E-05** at limit **
   9  Prefactor     14.788        14.124       -.81175E-06   -.19648E-04
  10  Prefactor     21.683        21.510        .20154E-06    .14686E-05
  11  Prefactor     19.480        22.092       -.99363E-07    .36404E-05
  12  norm          .10000E-03    1.5079       -.22103E-06** at limit **
  13  Prefactor     7.7554        8.7688       -.37663E-06    .41379E-04
  14  Prefactor     78.116        67.247        .11915E-05    .87348E-05
  15  norm          .10000E-03    8.2319       -.38991E-08** at limit **
  16  Prefactor     .81974        6.6703       -.68198E-06   -.94644E-04
  17  Prefactor     .10000E-03    302.70        .17559E-04** at limit **
  18  Prefactor     .10000E-03    20.802       -.26290E-08** at limit **
  19  Prefactor     10.375        25.342       -.32274E-07   -.77759E-06
  20  norm          .10000E-03    6.8455       -.10643E-07** at limit **
  21  norm          .10000E-03    63.081        .18326E-05** at limit **
  22  Prefactor     .10000E-03    15.590       -.25474E-07** at limit **
  23  Prefactor     25.827        33.424        .70918E-06    .39377E-05
  24  Normalizat    1.2073        .32817        .18947E-05    .87675E-04
  25  Prefactor     .72618        .18073       -.17842E-06    .16605E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 154.646
  Prefactor  = 1.34064
  Prefactor  = 0.0001
  Prefactor  = 96.2673
  Prefactor  = 0.0001
  Prefactor  = 2.36253
  norm       = 78.7009
  Prefactor  = 0.0001
  Prefactor  = 14.7884
  Prefactor  = 21.6829
  Prefactor  = 19.48
  norm       = 0.0001
  Prefactor  = 7.75537
  Prefactor  = 78.1158
  norm       = 0.0001
  Prefactor  = 0.819744
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.3746
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.8267
  Normalizat = 1.20735
  Prefactor  = 0.726182
 **********
 **   18 **HESSE 
 **********

 FCN=   3786.102     FROM HESSE     STATUS=OK           427 CALLS     3340 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     154.65        78.238        .16205E-03   -1.3214    
   2  Prefactor     1.3406        .66611        .28546E-04   -1.5476    
   3  Prefactor     .10000E-03    7.8270        .16803E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     96.267        77.426        .20484E-03   -1.3742    
   5  Prefactor     .10000E-03    64.046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.3625        .50666        .18598E-04   -1.5401    
   7  norm          78.701        28.611        .45267E-04   -1.3931    
   8  Prefactor     .10000E-03    73.422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     14.788        14.139        .10416E-03   -1.4939    
  10  Prefactor     21.683        21.507        .86014E-04   -1.4776    
  11  Prefactor     19.480        22.097        .90745E-04   -1.4825    
  12  norm          .10000E-03    3.2103        .14248E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.7554        8.7662        .14399E-03   -1.5151    
  14  Prefactor     78.116        67.438        .22719E-03   -1.3938    
  15  norm          .10000E-03    8.2662        .17212E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .81974        25.386        .29937E-02   -1.5527    
  17  Prefactor     .10000E-03    302.86        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    21.024        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.375        25.310        .12440E-03   -1.5064    
  20  norm          .10000E-03    6.8461        .15724E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    63.683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    15.595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     25.827        33.434        .78818E-04   -1.4691    
  24  Normalizat    1.2073        .37131        .33656E-03   -.86376    
  25  Prefactor     .72618        .20944        .24389E-03   -1.0251    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14724e-09
Minuit parameter uncertainties:
  1  78.2905
  2  0.666112
  3  1.49576e-05
  4  77.5074
  5  8.51988e-05
  6  0.506657
  7  28.6165
  8  6.93023e-05
  9  14.1418
  10  21.5149
  11  22.1066
  12  4.36534e-05
  13  8.76761
  14  67.5036
  15  5.39647e-06
  16  9.12734
  17  7.00473e-05
  18  4.93998e-05
  19  25.336
  20  1.79867e-07
  21  8.77419e-05
  22  8.45498e-06
  23  33.4582
  24  0.37213
  25  0.209667
Done.

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

Extracting fit parameters...

4FGL J2304.3+0618
   Spectrum: PowerLaw
362    Prefactor:  1.000e-04  6.930e-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:  7.262e-01  2.097e-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.207e+00  3.721e-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.71e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.33e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/650636/likelihoodResults_410400001_410659201_4FGL_J2304.3+0618_daily_bin660.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) = 3786.10196309
delta logL = -6.47836077405e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3786.10189838
delta logL = -7.22980075807e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4801       1.0000          .0000       10.000    
     3 'Normalizat'    1.2074       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72618       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=   3786.102     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      237 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8447.9        .90712E-02** at limit **
   2  Index         2.5235        7.1250        .50000       -.60987E-05
   3  Normalizat    1.2073        .11714        .76046E-01   -.19174E-04
   4  Prefactor     .72618        .67694E-01    .42749E-01   -.12757E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.52353
  Normalizat = 1.20735
  Prefactor  = 0.726181
 **********
 **   18 **HESSE 
 **********

 FCN=   3786.102     FROM HESSE     STATUS=OK            33 CALLS      270 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    123.34        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5235        6.1695        .50000       -.51817    
   3  Normalizat    1.2073        .35264        .33656E-03   -.86376    
   4  Prefactor     .72618        .20494        .24389E-03   -1.0251    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18934e-10
Minuit parameter uncertainties:
  1  0.000522159
  2  5.75624
  3  0.353337
  4  0.205154
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/650636': 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) = 3786.10189832
delta logL = -9.64200808085e-09

Extracting fit parameters...

4FGL J2304.3+0618
   Spectrum: PowerLaw
362    Prefactor:  1.000e-04  5.222e-04  1.000e-04  1.000e+04 ( 1.000e-13)
363        Index:  2.524e+00  5.756e+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.262e-01  2.052e-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.207e+00  3.533e-01  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/650636/cmap_HighResolution_410400001_410659201_4FGL_J2304.3+0618_daily_bin660.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.33e-02', job_status='DONE', photon_flux_upper_limit='1.71e-07', time_completed='2021-09-29 06:17:41.393937', job_id='650636', GAL2='0.73', fit_tolerance='1e-08', EG2='1.21', EG='1.21', time_epoch_completed='1632921461.39', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='-9.64e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='660' AND source_name='4FGL J2304.3+0618' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 06:17:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 650636: <4FGL_J2304.3+0618_daily_bin660> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2304.3+0618_daily_bin660 346.078 6.3071 410400001 410659201 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 :                                   561.52 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             262.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   749 sec.
    Turnaround time :                            742 sec.

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

