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


Performing analysis on: 4FGL_J2304.3+0618_daily_bin352
RA = 346.078, Dec = 6.3071
tmin = 330566401, tmax = 330825601
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='649125', job_status='RUN', time_executed='2021-09-29 06:04:12.093254', time_epoch_executed='1632920652.09' WHERE source_name='4FGL J2304.3+0618' and cadence='daily' and bin_id='352'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/649125

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/649125/ft1_4FGL_J2304.3+0618_daily_bin352.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/649125/ft2_4FGL_J2304.3+0618_daily_bin352.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/649125/ft1_4FGL_J2304.3+0618_daily_bin352.fits outfile=/scratch/kocevski/649125/ft1_filteredMKT_4FGL_J2304.3+0618_daily_bin352.fits ra=346.078 dec=6.3071 rad=12.0 tmin=330566401.0 tmax=330825601.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 4.00
user 3.75
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/649125/ft1_filtered_4FGL_J2304.3+0618_daily_bin352.fits evtable="EVENTS" scfile=/scratch/kocevski/649125/ft2_4FGL_J2304.3+0618_daily_bin352.fits sctable="SC_DATA" expcube=/scratch/kocevski/649125/ltcube_330566401_330825601_4FGL_J2304.3+0618_daily_bin352.fits outfile=/scratch/kocevski/649125/expmap_330566401_330825601_4FGL_J2304.3+0618_daily_bin352.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/649125/ltcube_330566401_330825601_4FGL_J2304.3+0618_daily_bin352.fits
.....................!
real 191.55
user 185.65
sys 5.52

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/649125/ft1_filtered_4FGL_J2304.3+0618_daily_bin352.fits scfile=/scratch/kocevski/649125/ft2_4FGL_J2304.3+0618_daily_bin352.fits outfile=/scratch/kocevski/649125/cmap_330566401_330825601_4FGL_J2304.3+0618_daily_bin352.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/649125/ft1_filtered_4FGL_J2304.3+0618_daily_bin352.fits scfile=/scratch/kocevski/649125/ft2_4FGL_J2304.3+0618_daily_bin352.fits outfile=/scratch/kocevski/649125/cmap_HighResolution_330566401_330825601_4FGL_J2304.3+0618_daily_bin352.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.56
user 0.38
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .50916       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.5900       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .84306E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .62902       1.0000         .10000E-03   10000.    
     7 'norm      '    9.7147       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.2659       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.2267       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.070       1.0000         .10000E-03   10000.    
    12 'norm      '    .19907       1.0000         .10000E-03   10000.    
    13 'Prefactor '    16.423       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.2848       1.0000         .10000E-03   10000.    
    20 'norm      '    19.097       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1454       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .82477       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=   5770.519     FROM MIGRAD    STATUS=CONVERGED    587 CALLS     2495 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.4824       -.11264E-06** at limit **
   2  Prefactor     .50909        .22644       -.90651E-07   -.38930E-03
   3  Prefactor     7.5901        7.6664        .21620E-06   -.36629E-05
   4  Prefactor     .10002E-03    130.71        .47766E-04** at limit **
   5  Prefactor     .10000E-03    9.0743       -.37405E-08** at limit **
   6  Prefactor     .62885        .18681       -.62964E-07   -.25502E-02
   7  norm          9.7144        13.669       -.94810E-06    .49643E-04
   8  Prefactor     2.1737        149.50       -.12085E-03    .25200E-05
   9  Prefactor     6.2267        8.8224       -.11344E-06   -.14973E-03
  10  Prefactor     .10000E-03    5.3410        .79823E-07** at limit **
  11  Prefactor     17.068        20.223        .19505E-05    .19280E-03
  12  norm          .19957        .76103       -.90855E-06   -.67192E-03
  13  Prefactor     16.423        10.542        .20038E-06    .17296E-03
  14  Prefactor     .10000E-03    31.901       -.93551E-05** at limit **
  15  norm          .10000E-03    3.3692        .10591E-07** at limit **
  16  Prefactor     .10000E-03    1.6299       -.98309E-08** at limit **
  17  Prefactor     .10000E-03    88.627       -.14936E-04** at limit **
  18  Prefactor     .10000E-03    3.3693        .59659E-08** at limit **
  19  Prefactor     8.2797        21.325       -.20844E-05    .16190E-05
  20  norm          19.097        14.360       -.31314E-07    .13223E-04
  21  norm          .10000E-03    6.3354       -.14639E-07** at limit **
  22  Prefactor     .10000E-03    16.948       -.28317E-06** at limit **
  23  Prefactor     .10000E-03    31.166        .88235E-05** at limit **
  24  Normalizat    1.1455        .22504        .59965E-05    .19525E-03
  25  Prefactor     .82473        .12835        .38420E-06    .47892E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.509093
  Prefactor  = 7.59015
  Prefactor  = 0.000100017
  Prefactor  = 0.0001
  Prefactor  = 0.628854
  norm       = 9.71436
  Prefactor  = 2.17374
  Prefactor  = 6.22666
  Prefactor  = 0.0001
  Prefactor  = 17.0683
  norm       = 0.199567
  Prefactor  = 16.423
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.27969
  norm       = 19.097
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.14549
  Prefactor  = 0.824732
 **********
 **   18 **HESSE 
 **********

 FCN=   5770.519     FROM HESSE     STATUS=OK           427 CALLS     2922 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.5035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .50909        .22464        .22691E-04   -1.5565    
   3  Prefactor     7.5901        7.6697        .14556E-03   -1.5157    
   4  Prefactor     .10002E-03    134.26        .36771E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.0865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .62885        .18628        .16804E-04   -1.5549    
   7  norm          9.7144        13.683        .12857E-03   -1.5085    
   8  Prefactor     2.1737        153.19        .27286E-03   -1.5413    
   9  Prefactor     6.2267        8.8066        .16087E-03   -1.5209    
  10  Prefactor     .10000E-03    5.3648        .17144E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     17.068        20.268        .96940E-04   -1.4881    
  12  norm          .19957        1.2476        .12286E-02   -1.5619    
  13  Prefactor     16.423        10.534        .98831E-04   -1.4897    
  14  Prefactor     .10000E-03    31.955        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.3868        .13608E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.6334        .94695E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    88.624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.3718        .13616E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.2797        21.316        .13928E-03   -1.5132    
  20  norm          19.097        14.361        .91652E-04   -1.4834    
  21  norm          .10000E-03    6.3363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    16.965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    31.574        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1455        .26331        .28978E-03   -.88304    
  25  Prefactor     .82473        .15080        .20189E-03   -.98823    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.83664e-10
Minuit parameter uncertainties:
  1  1.44315e-05
  2  0.224645
  3  7.67068
  4  0.00300059
  5  1.11325e-05
  6  0.18628
  7  13.6875
  8  36.5929
  9  8.80844
  10  1.28744e-05
  11  20.2758
  12  0.997747
  13  10.5353
  14  2.6004e-05
  15  1.79489e-06
  16  2.53578e-06
  17  8.20639e-06
  18  1.79099e-06
  19  21.3358
  20  14.3636
  21  2.20033e-06
  22  3.14692e-05
  23  0.000233591
  24  0.263613
  25  0.150876
Done.

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

Extracting fit parameters...

4FGL J2304.3+0618
   Spectrum: PowerLaw
362    Prefactor:  2.174e+00  3.659e+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.247e-01  1.509e-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.145e+00  2.636e-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.16e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.04e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/649125/likelihoodResults_330566401_330825601_4FGL_J2304.3+0618_daily_bin352.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) = 5770.50726897
delta logL = 0.011412280066

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5770.50316876
delta logL = 0.0155124909243

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8514       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0902       1.0000          .0000       10.000    
     3 'Normalizat'    1.1355       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82727       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=   5770.503     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      268 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8468        48.352        .20563E-03   -.21202E-03
   2  Index         3.0915        2.9786        .66611E-02   -.18972E-03
   3  Normalizat    1.1360        .25635        .29087E-03   -.17140E-02
   4  Prefactor     .82711        .15096        .20164E-03   -.20388E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.84678
  Index      = 3.09153
  Normalizat = 1.13602
  Prefactor  = 0.827114
 **********
 **   18 **HESSE 
 **********

 FCN=   5770.503     FROM HESSE     STATUS=OK            23 CALLS      291 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8468        42.052        .82253E-05   -1.5316    
   2  Index         3.0915        2.8059        .26644E-03   -.39163    
   3  Normalizat    1.1360        .25672        .58174E-04   -.88604    
   4  Prefactor     .82711        .15107        .40327E-04   -.98736    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54491e-08
Minuit parameter uncertainties:
  1  25.4598
  2  3.01537
  3  0.257004
  4  0.151142
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/649125': 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) = 5770.50316543
delta logL = 0.0155158176503

Extracting fit parameters...

4FGL J2304.3+0618
   Spectrum: PowerLaw
362    Prefactor:  3.847e+00  2.546e+01  1.000e-04  1.000e+04 ( 1.000e-13)
363        Index:  3.092e+00  3.015e+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.271e-01  1.511e-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.136e+00  2.570e-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/649125/cmap_HighResolution_330566401_330825601_4FGL_J2304.3+0618_daily_bin352.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.04e-03', job_status='DONE', photon_flux_upper_limit='1.16e-07', time_completed='2021-09-29 06:14:57.469822', job_id='649125', GAL2='0.83', fit_tolerance='1e-08', EG2='1.14', EG='1.15', time_epoch_completed='1632921297.47', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='1.55e-02', ts2='0.04', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='352' AND source_name='4FGL J2304.3+0618' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 06:14:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 649125: <4FGL_J2304.3+0618_daily_bin352> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2304.3+0618_daily_bin352 346.078 6.3071 330566401 330825601 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 :                                   644.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             275.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   872 sec.
    Turnaround time :                            875 sec.

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

