/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 97 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 = 7237
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2304.6+3704_daily_bin137
RA = 346.173, Dec = 37.0826
tmin = 274838401, tmax = 275097601
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='655532', job_status='RUN', time_executed='2021-09-29 06:22:40.690138', time_epoch_executed='1632921760.69' WHERE source_name='4FGL J2304.6+3704' and cadence='daily' and bin_id='137'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/655532

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/655532/ft1_4FGL_J2304.6+3704_daily_bin137.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/655532/ft2_4FGL_J2304.6+3704_daily_bin137.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/655532/ft1_4FGL_J2304.6+3704_daily_bin137.fits outfile=/scratch/kocevski/655532/ft1_filteredMKT_4FGL_J2304.6+3704_daily_bin137.fits ra=346.173 dec=37.0826 rad=12.0 tmin=274838401.0 tmax=275097601.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.21
user 3.98
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/655532/ft2_4FGL_J2304.6+3704_daily_bin137.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/655532/ft2_4FGL_J2304.6+3704_daily_bin137.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/655532/ft1_filteredMKT_4FGL_J2304.6+3704_daily_bin137.fits evtable="EVENTS" outfile="/scratch/kocevski/655532/ft1_filtered_4FGL_J2304.6+3704_daily_bin137.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/655532/ft1_filtered_4FGL_J2304.6+3704_daily_bin137.fits" evtable="EVENTS" scfile=/scratch/kocevski/655532/ft2_4FGL_J2304.6+3704_daily_bin137.fits sctable="SC_DATA" outfile=/scratch/kocevski/655532/ltcube_274838401_275097601_4FGL_J2304.6+3704_daily_bin137.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/655532/ft2_4FGL_J2304.6+3704_daily_bin137.fits
.....................!
real 11.65
user 11.29
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/655532/ft1_filtered_4FGL_J2304.6+3704_daily_bin137.fits evtable="EVENTS" scfile=/scratch/kocevski/655532/ft2_4FGL_J2304.6+3704_daily_bin137.fits sctable="SC_DATA" expcube=/scratch/kocevski/655532/ltcube_274838401_275097601_4FGL_J2304.6+3704_daily_bin137.fits outfile=/scratch/kocevski/655532/expmap_274838401_275097601_4FGL_J2304.6+3704_daily_bin137.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/655532/ltcube_274838401_275097601_4FGL_J2304.6+3704_daily_bin137.fits
.....................!
real 190.82
user 185.53
sys 4.85

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
Extended source FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Added 155 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2304.6+3704 @ 346.173 37.0826

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/655532/ft1_filtered_4FGL_J2304.6+3704_daily_bin137.fits scfile=/scratch/kocevski/655532/ft2_4FGL_J2304.6+3704_daily_bin137.fits outfile=/scratch/kocevski/655532/cmap_274838401_275097601_4FGL_J2304.6+3704_daily_bin137.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.173 yref=37.0826 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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/655532/ft1_filtered_4FGL_J2304.6+3704_daily_bin137.fits scfile=/scratch/kocevski/655532/ft2_4FGL_J2304.6+3704_daily_bin137.fits outfile=/scratch/kocevski/655532/cmap_HighResolution_274838401_275097601_4FGL_J2304.6+3704_daily_bin137.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.173 yref=37.0826 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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/655532/ft1_filtered_4FGL_J2304.6+3704_daily_bin137.fits evtable="EVENTS" scfile=/scratch/kocevski/655532/ft2_4FGL_J2304.6+3704_daily_bin137.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/655532/Model_4FGL_J2304.6+3704_daily_bin137.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 CTB 109
adding source EG_v02
adding source FHES J2304.0+5406
adding source GAL_V02
Working on...
/scratch/kocevski/655532/ft1_filtered_4FGL_J2304.6+3704_daily_bin137.fits.....................!
real 91.86
user 90.42
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/655532/ft1_filtered_4FGL_J2304.6+3704_daily_bin137.fits', '/scratch/kocevski/655532/ft2_4FGL_J2304.6+3704_daily_bin137.fits', expMap='/scratch/kocevski/655532/expmap_274838401_275097601_4FGL_J2304.6+3704_daily_bin137.fits', expCube='/scratch/kocevski/655532/ltcube_274838401_275097601_4FGL_J2304.6+3704_daily_bin137.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/655532/Model_4FGL_J2304.6+3704_daily_bin137.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2304.6+3704'

4FGL J2304.6+3704
   Spectrum: PowerLaw
376    Prefactor:  4.732e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
377        Index:  1.849e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
378        Scale:  3.823e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/655532/ft1_filtered_4FGL_J2304.6+3704_daily_bin137.fits
Spacecraft file(s): /scratch/kocevski/655532/ft2_4FGL_J2304.6+3704_daily_bin137.fits
Exposure map: /scratch/kocevski/655532/expmap_274838401_275097601_4FGL_J2304.6+3704_daily_bin137.fits
Exposure cube: /scratch/kocevski/655532/ltcube_274838401_275097601_4FGL_J2304.6+3704_daily_bin137.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/655532/Model_4FGL_J2304.6+3704_daily_bin137.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) = 7930.8045047

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .54856       1.0000         .10000E-03   10000.    
     2 'Prefactor '    25.733       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.9928       1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.544       1.0000         .10000E-03   10000.    
     5 'norm      '    6.4099       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.072       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.1410       1.0000         .10000E-03   10000.    
     9 'norm      '    .46122       1.0000         .10000E-03   10000.    
    10 'Prefactor '    47.592       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .83197       1.0000         .10000E-03   10000.    
    13 'norm      '    5.8037       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.0017       1.0000         .10000E-03   10000.    
    16 'norm      '    .11217E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10752E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.4302       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .64484       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0341       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7930.789     FROM MIGRAD    STATUS=CONVERGED    511 CALLS     2572 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .55103        1.2318        .19299E-06    .53073E-03
   2  Prefactor     25.731        37.119       -.30306E-06   -.93794E-05
   3  Prefactor     1.9909        15.993       -.64649E-05   -.26210E-03
   4  Prefactor     21.498        27.941       -.46148E-05   -.34092E-03
   5  norm          6.4102        6.2876        .30848E-05   -.76670E-03
   6  Prefactor     .10000E-03    5.2710       -.20267E-07** at limit **
   7  Prefactor     12.073        8.1621       -.38423E-06    .77589E-04
   8  Prefactor     2.1260        58.390       -.29870E-05   -.36407E-04
   9  norm          .46094        1.3905        .56447E-06   -.37695E-03
  10  Prefactor     47.580        27.146       -.97275E-06   -.13784E-03
  11  Prefactor     .10000E-03    24.501       -.93488E-06** at limit **
  12  Prefactor     .81544        12.656        .75778E-06   -.13483E-03
  13  norm          5.8048        5.1382        .48759E-07   -.54310E-04
  14  norm          .10000E-03    4.5330        .31215E-07** at limit **
  15  Prefactor     5.9912        19.594       -.12807E-05   -.67382E-04
  16  norm          .10000E-03    1.5928        .48163E-07** at limit **
  17  Prefactor     .10000E-03    10.557        .45913E-07** at limit **
  18  Prefactor     .10000E-03    20.631        .12361E-05** at limit **
  19  Prefactor     .10000E-03    47.928        .25592E-05** at limit **
  20  Prefactor     .10000E-03    23.136       -.11068E-05** at limit **
  21  Prefactor     4.4305        5.3829        .15113E-05   -.63231E-03
  22  Normalizat    .64456        .22998        .20317E-05   -.45163E-04
  23  Prefactor     1.0342        .88112E-01   -.38735E-06    .12253E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.551026
  Prefactor  = 25.7313
  Prefactor  = 1.99088
  Prefactor  = 21.4979
  norm       = 6.41023
  Prefactor  = 0.0001
  Prefactor  = 12.0728
  Prefactor  = 2.12599
  norm       = 0.46094
  Prefactor  = 47.5797
  Prefactor  = 0.0001
  Prefactor  = 0.815438
  norm       = 5.80484
  norm       = 0.0001
  Prefactor  = 5.99122
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.43046
  Normalizat = 0.64456
  Prefactor  = 1.03424
 **********
 **   18 **HESSE 
 **********

 FCN=   7930.789     FROM HESSE     STATUS=OK           374 CALLS     2946 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .55103        1.1778        .12602E-03   -1.5560    
   2  Prefactor     25.731        37.122        .78969E-04   -1.4693    
   3  Prefactor     1.9909        15.016        .29346E-03   -1.5426    
   4  Prefactor     21.498        28.953        .86294E-04   -1.4780    
   5  norm          6.4102        6.2700        .75802E-03   -1.5202    
   6  Prefactor     .10000E-03    5.2729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.073        8.1263        .11530E-03   -1.5013    
   8  Prefactor     2.1260        58.600        .28168E-03   -1.5416    
   9  norm          .46094        1.3739        .16899E-03   -1.5572    
  10  Prefactor     47.580        27.128        .58124E-04   -1.4327    
  11  Prefactor     .10000E-03    25.549        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .81544        62.126        .60230E-02   -1.5527    
  13  norm          5.8048        5.0966        .16671E-03   -1.5226    
  14  norm          .10000E-03    4.5440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.9912        19.402        .16390E-03   -1.5218    
  16  norm          .10000E-03    4.0670        .21796E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.573        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    20.655        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    48.572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    23.184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.4305        5.3864        .95661E-03   -1.5287    
  22  Normalizat    .64456        .24753        .44166E-03   -1.0612    
  23  Prefactor     1.0342        .97272E-01    .14697E-03   -.91597    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.60105e-09
Minuit parameter uncertainties:
  1  1.17783
  2  37.1552
  3  10.9388
  4  28.9721
  5  6.27061
  6  1.22127e-06
  7  8.12703
  8  22.3471
  9  1.37401
  10  27.1352
  11  0.000120981
  12  14.2497
  13  5.09696
  14  2.35092e-06
  15  19.4229
  16  4.91336e-05
  17  1.07281e-05
  18  9.0914e-05
  19  0.000153551
  20  0.000128352
  21  5.38701
  22  0.247955
  23  0.0972888
Done.

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

Extracting fit parameters...

4FGL J2304.6+3704
   Spectrum: PowerLaw
376    Prefactor:  2.126e+00  2.235e+01  1.000e-04  1.000e+04 ( 1.000e-14)
377        Index:  1.849e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
378        Scale:  3.823e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  1.034e+00  9.729e-02  0.000e+00  1.000e+01 ( 1.000e+00)
518        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
519        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
512   Normalization:  6.446e-01  2.480e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 346.173 37.083
Photon Flux Upper Limit: 6.95e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.15e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/655532/likelihoodResults_274838401_275097601_4FGL_J2304.6+3704_daily_bin137.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) = 7930.51034619
delta logL = 0.278623041904

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7930.4920739
delta logL = 0.296895333243

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1158       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0686       1.0000          .0000       10.000    
     3 'Normalizat'    .60939       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0390       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7930.492     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      255 TOTAL
                     EDM=   .54E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1109        32.899        .11145E-01    .86776E-03
   2  Index         3.0714        2.4487        .92372E-01    .18794E-03
   3  Normalizat    .60934        .48940E-01    .10228        .38616E-04
   4  Prefactor     1.0389        .19997E-01    .40605E-01   -.54239E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.11092
  Index      = 3.07142
  Normalizat = 0.609343
  Prefactor  = 1.03887
 **********
 **   18 **HESSE 
 **********

 FCN=   7930.492     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      288 TOTAL
                     EDM=   .19E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1109        101.16        .12453E-03   -1.5497    
   2  Index         3.0714        6.4848        .60668E-02   -.39598    
   3  Normalizat    .60934        .20688        .45340E-03   -1.0759    
   4  Prefactor     1.0389        .80952E-01    .14665E-03   -.91445    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.89895e-06
Minuit parameter uncertainties:
  1  21.2378
  2  6.3517
  3  0.207145
  4  0.0809617
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/655532': 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) = 7930.4920682
delta logL = 0.296901026471

Extracting fit parameters...

4FGL J2304.6+3704
   Spectrum: PowerLaw
376    Prefactor:  1.111e+00  2.124e+01  1.000e-04  1.000e+04 ( 1.000e-14)
377        Index:  3.071e+00  6.352e+00  0.000e+00  1.000e+01 (-1.000e+00)
378        Scale:  3.823e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  1.039e+00  8.096e-02  0.000e+00  1.000e+01 ( 1.000e+00)
518        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
519        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
512   Normalization:  6.093e-01  2.071e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
Ra Dec: 346.173 37.083

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/655532/cmap_HighResolution_274838401_275097601_4FGL_J2304.6+3704_daily_bin137.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.15e-03', job_status='DONE', photon_flux_upper_limit='6.95e-08', time_completed='2021-09-29 06:35:21.158351', job_id='655532', GAL2='1.04', fit_tolerance='1e-08', EG2='0.61', EG='0.64', time_epoch_completed='1632922521.16', return_code2='102', ts='0.01', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='2.97e-01', ts2='0.62', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='137' AND source_name='4FGL J2304.6+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 06:35:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 655532: <4FGL_J2304.6+3704_daily_bin137> in cluster <slac> Done

Job <4FGL_J2304.6+3704_daily_bin137> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 06:20:50 2021
Job was executed on host(s) <bullet0072>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 06:20:51 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:20:51 2021
Terminated at Wed Sep 29 06:35:21 2021
Results reported at Wed Sep 29 06:35:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2304.6+3704_daily_bin137 346.173 37.0826 274838401 275097601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2304.6+3704 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   758.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             303.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   870 sec.
    Turnaround time :                            871 sec.

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

