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


Performing analysis on: 4FGL_J2304.6+3704_daily_bin1588
RA = 346.173, Dec = 37.0826
tmin = 650937601, tmax = 651196801
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='663673', job_status='RUN', time_executed='2021-09-29 06:49:31.041365', time_epoch_executed='1632923371.04' WHERE source_name='4FGL J2304.6+3704' and cadence='daily' and bin_id='1588'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/663673

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/663673/ft1_4FGL_J2304.6+3704_daily_bin1588.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/663673/ft2_4FGL_J2304.6+3704_daily_bin1588.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/663673/ft1_4FGL_J2304.6+3704_daily_bin1588.fits outfile=/scratch/kocevski/663673/ft1_filteredMKT_4FGL_J2304.6+3704_daily_bin1588.fits ra=346.173 dec=37.0826 rad=12.0 tmin=650937601.0 tmax=651196801.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 3.62
user 3.39
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/663673/ft2_4FGL_J2304.6+3704_daily_bin1588.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/663673/ft1_filteredMKT_4FGL_J2304.6+3704_daily_bin1588.fits evtable="EVENTS" outfile="/scratch/kocevski/663673/ft1_filtered_4FGL_J2304.6+3704_daily_bin1588.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.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/663673/ft1_filtered_4FGL_J2304.6+3704_daily_bin1588.fits" evtable="EVENTS" scfile=/scratch/kocevski/663673/ft2_4FGL_J2304.6+3704_daily_bin1588.fits sctable="SC_DATA" outfile=/scratch/kocevski/663673/ltcube_650937601_651196801_4FGL_J2304.6+3704_daily_bin1588.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/663673/ft2_4FGL_J2304.6+3704_daily_bin1588.fits
.....................!
real 12.81
user 12.39
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/663673/ft1_filtered_4FGL_J2304.6+3704_daily_bin1588.fits evtable="EVENTS" scfile=/scratch/kocevski/663673/ft2_4FGL_J2304.6+3704_daily_bin1588.fits sctable="SC_DATA" expcube=/scratch/kocevski/663673/ltcube_650937601_651196801_4FGL_J2304.6+3704_daily_bin1588.fits outfile=/scratch/kocevski/663673/expmap_650937601_651196801_4FGL_J2304.6+3704_daily_bin1588.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/663673/ltcube_650937601_651196801_4FGL_J2304.6+3704_daily_bin1588.fits
.....................!
real 193.52
user 186.74
sys 5.75

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/663673/ft1_filtered_4FGL_J2304.6+3704_daily_bin1588.fits scfile=/scratch/kocevski/663673/ft2_4FGL_J2304.6+3704_daily_bin1588.fits outfile=/scratch/kocevski/663673/cmap_650937601_651196801_4FGL_J2304.6+3704_daily_bin1588.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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/663673/ft1_filtered_4FGL_J2304.6+3704_daily_bin1588.fits scfile=/scratch/kocevski/663673/ft2_4FGL_J2304.6+3704_daily_bin1588.fits outfile=/scratch/kocevski/663673/cmap_HighResolution_650937601_651196801_4FGL_J2304.6+3704_daily_bin1588.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.54
user 0.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/663673/ft1_filtered_4FGL_J2304.6+3704_daily_bin1588.fits evtable="EVENTS" scfile=/scratch/kocevski/663673/ft2_4FGL_J2304.6+3704_daily_bin1588.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/663673/Model_4FGL_J2304.6+3704_daily_bin1588.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/663673/ft1_filtered_4FGL_J2304.6+3704_daily_bin1588.fits.....................!
real 108.12
user 106.45
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/663673/ft1_filtered_4FGL_J2304.6+3704_daily_bin1588.fits', '/scratch/kocevski/663673/ft2_4FGL_J2304.6+3704_daily_bin1588.fits', expMap='/scratch/kocevski/663673/expmap_650937601_651196801_4FGL_J2304.6+3704_daily_bin1588.fits', expCube='/scratch/kocevski/663673/ltcube_650937601_651196801_4FGL_J2304.6+3704_daily_bin1588.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/663673/Model_4FGL_J2304.6+3704_daily_bin1588.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/663673/ft1_filtered_4FGL_J2304.6+3704_daily_bin1588.fits
Spacecraft file(s): /scratch/kocevski/663673/ft2_4FGL_J2304.6+3704_daily_bin1588.fits
Exposure map: /scratch/kocevski/663673/expmap_650937601_651196801_4FGL_J2304.6+3704_daily_bin1588.fits
Exposure cube: /scratch/kocevski/663673/ltcube_650937601_651196801_4FGL_J2304.6+3704_daily_bin1588.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/663673/Model_4FGL_J2304.6+3704_daily_bin1588.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) = 9078.89293945

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.7778       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    51.645       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.0080       1.0000         .10000E-03   10000.    
     8 'Prefactor '    65.434       1.0000         .10000E-03   10000.    
     9 'norm      '    .72603       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.1584       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.5104       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.0492       1.0000         .10000E-03   10000.    
    14 'norm      '    .10252E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10274E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.4535       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    54.478       1.0000         .10000E-03   10000.    
    19 'Prefactor '    47.942       1.0000         .10000E-03   10000.    
    20 'Prefactor '    28.221       1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.4937       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .93024       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .96746       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=   9078.879     FROM MIGRAD    STATUS=CONVERGED    493 CALLS     2508 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .26237        .10564E-06** at limit **
   2  Prefactor     .10000E-03    20.015        .10728E-06** at limit **
   3  Prefactor     4.7779        5.4650        .22377E-06   -.28016E-04
   4  Prefactor     .10000E-03    7.3561       -.14753E-07** at limit **
   5  norm          .10000E-03    1.8428       -.47415E-07** at limit **
   6  Prefactor     51.644        23.560       -.66426E-07   -.13525E-04
   7  Prefactor     3.0077        2.9735       -.17253E-06   -.15291E-04
   8  Prefactor     65.423        37.550       -.10785E-05   -.81971E-04
   9  norm          .72586        1.0287       -.43750E-08   -.74353E-04
  10  Prefactor     4.1557        35.273        .13848E-05   -.58411E-05
  11  Prefactor     4.5073        10.129        .84025E-05   -.11686E-03
  12  Prefactor     .10000E-03    22.545        .13370E-06** at limit **
  13  norm          3.0489        4.6405        .56692E-06   -.15370E-04
  14  norm          .10000E-03    13.244       -.18083E-06** at limit **
  15  Prefactor     .10000E-03    15.642        .19178E-06** at limit **
  16  norm          1.4539        2.2573       -.96313E-07   -.20431E-03
  17  Prefactor     .10000E-03    7.6276        .81718E-07** at limit **
  18  Prefactor     54.476        78.843        .32060E-06   -.39902E-05
  19  Prefactor     47.942        32.932        .18505E-06   -.96639E-05
  20  Prefactor     28.119        53.622       -.13476E-05   -.17817E-03
  21  Prefactor     9.5000        9.8550        .21943E-06    .48816E-06
  22  Normalizat    .93009        .21270       -.23819E-05   -.30720E-04
  23  Prefactor     .96753        .81979E-01    .12538E-06   -.20382E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.77786
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 51.6441
  Prefactor  = 3.00774
  Prefactor  = 65.4227
  norm       = 0.725857
  Prefactor  = 4.15567
  Prefactor  = 4.50732
  Prefactor  = 0.0001
  norm       = 3.04887
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.45386
  Prefactor  = 0.0001
  Prefactor  = 54.4757
  Prefactor  = 47.9419
  Prefactor  = 28.1186
  Prefactor  = 9.49999
  Normalizat = 0.930089
  Prefactor  = 0.96753
 **********
 **   18 **HESSE 
 **********

 FCN=   9078.879     FROM HESSE     STATUS=OK           366 CALLS     2874 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .34917        .95100E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    20.017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.7779        5.4493        .18406E-03   -1.5271    
   4  Prefactor     .10000E-03    7.3902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.8885        .25200E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     51.644        23.559        .55808E-04   -1.4269    
   7  Prefactor     3.0077        2.9819        .15901E-03   -1.5361    
   8  Prefactor     65.423        37.554        .49613E-04   -1.4089    
   9  norm          .72586        1.0278        .48645E-04   -1.5538    
  10  Prefactor     4.1557        35.314        .19765E-03   -1.5300    
  11  Prefactor     4.5073        10.138        .94786E-03   -1.5283    
  12  Prefactor     .10000E-03    22.682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.0489        4.6175        .23234E-03   -1.5359    
  14  norm          .10000E-03    13.669        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    15.765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.4539        2.2296        .17141E-03   -1.5467    
  17  Prefactor     .10000E-03    7.6404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     54.476        78.877        .54344E-04   -1.4230    
  19  Prefactor     47.942        32.979        .57912E-04   -1.4322    
  20  Prefactor     28.119        53.558        .75414E-04   -1.4647    
  21  Prefactor     9.5000        9.8380        .13006E-03   -1.5091    
  22  Normalizat    .93009        .24123        .39442E-03   -.95411    
  23  Prefactor     .96753        .94143E-01    .15671E-03   -.93820    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.96653e-10
Minuit parameter uncertainties:
  1  1.01969e-07
  2  3.63617e-05
  3  5.44989
  4  1.62021e-05
  5  1.33984e-06
  6  23.563
  7  2.98204
  8  37.5675
  9  1.02784
  10  24.2474
  11  10.1414
  12  9.29316e-06
  13  4.61808
  14  4.12408e-05
  15  2.29113e-05
  16  2.22969
  17  2.6653e-05
  18  79.0288
  19  32.9915
  20  53.6493
  21  9.83966
  22  0.241512
  23  0.0941585
Done.

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

Extracting fit parameters...

4FGL J2304.6+3704
   Spectrum: PowerLaw
376    Prefactor:  6.542e+01  3.757e+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:  9.675e-01  9.416e-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:  9.301e-01  2.415e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.83
Ra Dec: 346.173 37.083
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 6.48e-08 +/- 3.72e-08
Energy Flux (Fixed Index): 6.71e-05 +/- 3.85e-05

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) = 9075.4675393
delta logL = 3.41098333562

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9075.44408551
delta logL = 3.43443712588

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.9999       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1843       1.0000          .0000       10.000    
     3 'Normalizat'    .76118       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0058       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=   9075.444     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      277 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.9927        16.774        .50413E-02    .40657E-03
   2  Index         3.1851        1.2352        .48782E-01    .40776E-03
   3  Normalizat    .76124        .95147E-01    .97040E-01    .48527E-04
   4  Prefactor     1.0059        .35998E-01    .44037E-01    .31774E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.99274
  Index      = 3.18515
  Normalizat = 0.761244
  Prefactor  = 1.00586
 **********
 **   18 **HESSE 
 **********

 FCN=   9075.444     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      310 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.9927        23.144        .62520E-04   -1.5308    
   2  Index         3.1851        1.5517        .20403E-02   -.37145    
   3  Normalizat    .76124        .24107        .43000E-03   -1.0152    
   4  Prefactor     1.0059        .94726E-01    .15371E-03   -.92534    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.82312e-10
Minuit parameter uncertainties:
  1  19.2369
  2  1.58191
  3  0.241412
  4  0.094742
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/663673': 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) = 9075.44407751
delta logL = 3.43444512861

Extracting fit parameters...

4FGL J2304.6+3704
   Spectrum: PowerLaw
376    Prefactor:  3.993e+00  1.924e+01  1.000e-04  1.000e+04 ( 1.000e-14)
377        Index:  3.185e+00  1.582e+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.006e+00  9.474e-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:  7.612e-01  2.414e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.26
Ra Dec: 346.173 37.083
Photon Index (Free Index): 3.19 +/- 1.58
Photon Flux (Free Index): 2.01e-07 +/- 8.34e-08
Energy Flux (Free Index): 3.70e-05 +/- 1.88e-05

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/663673/cmap_HighResolution_650937601_651196801_4FGL_J2304.6+3704_daily_bin1588.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.48e-08', energy_flux2='3.70e-05', photon_flux_error='3.72e-08', dlogl='3.43e+00', energy_flux='6.71e-05', photon_flux2='2.01e-07', job_status='DONE', time_completed='2021-09-29 07:01:54.972810', photon_index_error2='1.58', photon_index2='3.19', ts='5.83', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='1.88e-05', EG='0.93', time_epoch_completed='1632924114.97', return_code='0', job_id='663673', GAL2='1.01', EG2='0.76', return_code2='102', energy_flux_error='3.85e-05', photon_flux_error2='8.34e-08', ts2='13.26', photon_index='1.85' WHERE bin_id='1588' AND source_name='4FGL J2304.6+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 07:01:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 663673: <4FGL_J2304.6+3704_daily_bin1588> in cluster <slac> Done

Job <4FGL_J2304.6+3704_daily_bin1588> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 06:45:36 2021
Job was executed on host(s) <bullet0043>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 06:45:39 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:45:39 2021
Terminated at Wed Sep 29 07:01:57 2021
Results reported at Wed Sep 29 07:01:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2304.6+3704_daily_bin1588 346.173 37.0826 650937601 651196801 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 :                                   733.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   976 sec.
    Turnaround time :                            981 sec.

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

