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


Performing analysis on: 4FGL_J2304.6+3704_daily_bin951
RA = 346.173, Dec = 37.0826
tmin = 485827201, tmax = 486086401
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='659985', job_status='RUN', time_executed='2021-09-29 06:35:58.864560', time_epoch_executed='1632922558.86' WHERE source_name='4FGL J2304.6+3704' and cadence='daily' and bin_id='951'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/659985

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/659985/ft1_4FGL_J2304.6+3704_daily_bin951.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/659985/ft2_4FGL_J2304.6+3704_daily_bin951.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/659985/ft1_4FGL_J2304.6+3704_daily_bin951.fits outfile=/scratch/kocevski/659985/ft1_filteredMKT_4FGL_J2304.6+3704_daily_bin951.fits ra=346.173 dec=37.0826 rad=12.0 tmin=485827201.0 tmax=486086401.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.72
user 3.46
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/659985/ft2_4FGL_J2304.6+3704_daily_bin951.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/659985/ft1_filteredMKT_4FGL_J2304.6+3704_daily_bin951.fits evtable="EVENTS" outfile="/scratch/kocevski/659985/ft1_filtered_4FGL_J2304.6+3704_daily_bin951.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.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/659985/ft1_filtered_4FGL_J2304.6+3704_daily_bin951.fits" evtable="EVENTS" scfile=/scratch/kocevski/659985/ft2_4FGL_J2304.6+3704_daily_bin951.fits sctable="SC_DATA" outfile=/scratch/kocevski/659985/ltcube_485827201_486086401_4FGL_J2304.6+3704_daily_bin951.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/659985/ft2_4FGL_J2304.6+3704_daily_bin951.fits
.....................!
real 11.98
user 11.64
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/659985/ft1_filtered_4FGL_J2304.6+3704_daily_bin951.fits evtable="EVENTS" scfile=/scratch/kocevski/659985/ft2_4FGL_J2304.6+3704_daily_bin951.fits sctable="SC_DATA" expcube=/scratch/kocevski/659985/ltcube_485827201_486086401_4FGL_J2304.6+3704_daily_bin951.fits outfile=/scratch/kocevski/659985/expmap_485827201_486086401_4FGL_J2304.6+3704_daily_bin951.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/659985/ltcube_485827201_486086401_4FGL_J2304.6+3704_daily_bin951.fits
.....................!
real 191.32
user 186.90
sys 4.03

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/659985/ft1_filtered_4FGL_J2304.6+3704_daily_bin951.fits scfile=/scratch/kocevski/659985/ft2_4FGL_J2304.6+3704_daily_bin951.fits outfile=/scratch/kocevski/659985/cmap_485827201_486086401_4FGL_J2304.6+3704_daily_bin951.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/659985/ft1_filtered_4FGL_J2304.6+3704_daily_bin951.fits scfile=/scratch/kocevski/659985/ft2_4FGL_J2304.6+3704_daily_bin951.fits outfile=/scratch/kocevski/659985/cmap_HighResolution_485827201_486086401_4FGL_J2304.6+3704_daily_bin951.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.55
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5316       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    27.142       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    16.349       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10916E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    24.419       1.0000         .10000E-03   10000.    
     9 'norm      '    2.1373       1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.454       1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.240       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.4840       1.0000         .10000E-03   10000.    
    13 'norm      '    1.9339       1.0000         .10000E-03   10000.    
    14 'norm      '    9.0169       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10586E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .54586E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .89894       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0116       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=   11042.06     FROM MIGRAD    STATUS=CONVERGED    511 CALLS     2176 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5316        .99584       -.23085E-07    .85038E-04
   2  Prefactor     .10000E-03    15.350        .72011E-05** at limit **
   3  Prefactor     27.145        12.096       -.37678E-06   -.67098E-03
   4  Prefactor     .10000E-03    10.567       -.10002E-04** at limit **
   5  norm          16.353        7.1287       -.11715E-05   -.10689E-02
   6  Prefactor     .10000E-03    9.3884        .81607E-05** at limit **
   7  Prefactor     .10004E-03    3.0443        .18075E-05** at limit **
   8  Prefactor     24.420        20.481        .20015E-06   -.47745E-04
   9  norm          2.1373        1.3372       -.30819E-07   -.12239E-02
  10  Prefactor     10.452        15.683       -.59600E-07   -.50605E-04
  11  Prefactor     12.241        10.275       -.12028E-05   -.15453E-02
  12  Prefactor     8.4838        10.963       -.76398E-07   -.71019E-04
  13  norm          1.9332        3.1942       -.59572E-06   -.14733E-02
  14  norm          9.0168        7.3430        .73264E-07    .92718E-05
  15  Prefactor     .10000E-03    36.747        .18818E-04** at limit **
  16  norm          .10000E-03    1.2575       -.85795E-07** at limit **
  17  Prefactor     .10000E-03    8.4150       -.17800E-05** at limit **
  18  Prefactor     .10000E-03    59.923       -.26436E-04** at limit **
  19  Prefactor     .10000E-03    35.778        .13836E-04** at limit **
  20  Prefactor     .10000E-03    22.469       -.22806E-04** at limit **
  21  Prefactor     .10000E-03    4.0766        .36069E-06** at limit **
  22  Normalizat    .89892        .19997        .20606E-06   -.36340E-03
  23  Prefactor     1.0117        .77701E-01    .23946E-06   -.69737E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.5316
  Prefactor  = 0.0001
  Prefactor  = 27.1452
  Prefactor  = 0.0001
  norm       = 16.3532
  Prefactor  = 0.0001
  Prefactor  = 0.000100043
  Prefactor  = 24.4201
  norm       = 2.13725
  Prefactor  = 10.452
  Prefactor  = 12.2413
  Prefactor  = 8.48379
  norm       = 1.93322
  norm       = 9.01684
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Normalizat = 0.898917
  Prefactor  = 1.01166
 **********
 **   18 **HESSE 
 **********

 FCN=   11042.06     FROM HESSE     STATUS=OK           370 CALLS     2546 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5316        .99333        .81318E-04   -1.5460    
   2  Prefactor     .10000E-03    15.334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     27.145        12.119        .76895E-04   -1.4665    
   4  Prefactor     .10000E-03    10.566        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          16.353        7.0990        .99054E-04   -1.4899    
   6  Prefactor     .10000E-03    9.3965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10004E-03    15.709        .34594E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     24.420        20.477        .81062E-04   -1.4719    
   9  norm          2.1373        1.3280        .91405E-04   -1.5416    
  10  Prefactor     10.452        15.679        .12392E-03   -1.5061    
  11  Prefactor     12.241        10.402        .57249E-03   -1.5008    
  12  Prefactor     8.4838        10.960        .13763E-03   -1.5125    
  13  norm          1.9332        3.1832        .23434E-03   -1.5430    
  14  norm          9.0168        7.3438        .13348E-03   -1.5107    
  15  Prefactor     .10000E-03    37.862        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.2919        .22990E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.4300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    59.802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    35.839        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    22.293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    20.715        .40874E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .89892        .22159        .41935E-03   -.96498    
  23  Prefactor     1.0117        .87592E-01    .16027E-03   -.92342    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.01993e-09
Minuit parameter uncertainties:
  1  0.993339
  2  1.1088e-06
  3  12.1202
  4  1.49734e-05
  5  7.0994
  6  2.29758e-06
  7  0.00163484
  8  20.4827
  9  1.32804
  10  15.6848
  11  10.4039
  12  10.9624
  13  3.18344
  14  7.34457
  15  0.000443992
  16  3.27154e-06
  17  2.44551e-06
  18  4.59918e-05
  19  5.96873e-05
  20  1.63288e-06
  21  0.000520982
  22  0.221814
  23  0.0876039
Done.

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

Extracting fit parameters...

4FGL J2304.6+3704
   Spectrum: PowerLaw
376    Prefactor:  2.442e+01  2.048e+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.012e+00  8.760e-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:  8.989e-01  2.218e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.09
Ra Dec: 346.173 37.083
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 2.42e-08 +/- 2.03e-08
Energy Flux (Fixed Index): 2.51e-05 +/- 2.10e-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) = 11042.0562235
delta logL = 0.00204071533335

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11042.0552757
delta logL = 0.00298848279999

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.466       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7989       1.0000          .0000       10.000    
     3 'Normalizat'    .90029       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0116       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11042.06     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      287 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.480        26.777        .39691E-03    .89081E-04
   2  Index         1.7987        .68853        .11832E-01    .71766E-03
   3  Normalizat    .90044        .21520        .41904E-03   -.10071E-03
   4  Prefactor     1.0115        .87096E-01    .16028E-03   -.13655E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.4804
  Index      = 1.79867
  Normalizat = 0.90044
  Prefactor  = 1.01154
 **********
 **   18 **HESSE 
 **********

 FCN=   11042.06     FROM HESSE     STATUS=OK            25 CALLS      312 TOTAL
                     EDM=   .70E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.480        25.386        .15876E-04   -1.4698    
   2  Index         1.7987        .65351        .23664E-02   -.69485    
   3  Normalizat    .90044        .21508        .16762E-04   -.96445    
   4  Prefactor     1.0115        .87127E-01    .32056E-04   -.92346    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.98625e-11
Minuit parameter uncertainties:
  1  25.3963
  2  0.656701
  3  0.215282
  4  0.087139
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/659985': 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) = 11042.0552752
delta logL = 0.00298903120893

Extracting fit parameters...

4FGL J2304.6+3704
   Spectrum: PowerLaw
376    Prefactor:  2.548e+01  2.540e+01  1.000e-04  1.000e+04 ( 1.000e-14)
377        Index:  1.799e+00  6.567e-01  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.012e+00  8.714e-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.004e-01  2.153e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.09
Ra Dec: 346.173 37.083
Photon Index (Free Index): 1.80 +/- 0.66
Photon Flux (Free Index): 2.23e-08 +/- 3.03e-08
Energy Flux (Free Index): 2.68e-05 +/- 3.33e-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/659985/cmap_HighResolution_485827201_486086401_4FGL_J2304.6+3704_daily_bin951.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.42e-08', energy_flux2='2.68e-05', photon_flux_error='2.03e-08', dlogl='2.99e-03', energy_flux='2.51e-05', photon_flux2='2.23e-08', job_status='DONE', time_completed='2021-09-29 06:49:03.896170', photon_index_error2='0.66', photon_index2='1.80', ts='5.09', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='3.33e-05', EG='0.90', time_epoch_completed='1632923343.9', return_code='0', job_id='659985', GAL2='1.01', EG2='0.90', return_code2='0', energy_flux_error='2.10e-05', photon_flux_error2='3.03e-08', ts2='5.09', photon_index='1.85' WHERE bin_id='951' AND source_name='4FGL J2304.6+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 06:49:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 659985: <4FGL_J2304.6+3704_daily_bin951> in cluster <slac> Done

Job <4FGL_J2304.6+3704_daily_bin951> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 06:35:48 2021
Job was executed on host(s) <bullet0251>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 06:35:49 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:35:49 2021
Terminated at Wed Sep 29 06:49:04 2021
Results reported at Wed Sep 29 06:49:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2304.6+3704_daily_bin951 346.173 37.0826 485827201 486086401 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 :                                   780.01 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             398.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   795 sec.
    Turnaround time :                            796 sec.

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

