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


Performing analysis on: 4FGL_J2304.6+3704_daily_bin1494
RA = 346.173, Dec = 37.0826
tmin = 626572801, tmax = 626832001
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='663537', job_status='RUN', time_executed='2021-09-29 06:45:42.776485', time_epoch_executed='1632923142.78' WHERE source_name='4FGL J2304.6+3704' and cadence='daily' and bin_id='1494'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/663537

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/663537/ft1_4FGL_J2304.6+3704_daily_bin1494.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/663537/ft2_4FGL_J2304.6+3704_daily_bin1494.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/663537/ft1_4FGL_J2304.6+3704_daily_bin1494.fits outfile=/scratch/kocevski/663537/ft1_filteredMKT_4FGL_J2304.6+3704_daily_bin1494.fits ra=346.173 dec=37.0826 rad=12.0 tmin=626572801.0 tmax=626832001.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 2.96
user 2.74
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/663537/ft1_filtered_4FGL_J2304.6+3704_daily_bin1494.fits" evtable="EVENTS" scfile=/scratch/kocevski/663537/ft2_4FGL_J2304.6+3704_daily_bin1494.fits sctable="SC_DATA" outfile=/scratch/kocevski/663537/ltcube_626572801_626832001_4FGL_J2304.6+3704_daily_bin1494.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/663537/ft2_4FGL_J2304.6+3704_daily_bin1494.fits
.....................!
real 12.42
user 12.00
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/663537/ft1_filtered_4FGL_J2304.6+3704_daily_bin1494.fits evtable="EVENTS" scfile=/scratch/kocevski/663537/ft2_4FGL_J2304.6+3704_daily_bin1494.fits sctable="SC_DATA" expcube=/scratch/kocevski/663537/ltcube_626572801_626832001_4FGL_J2304.6+3704_daily_bin1494.fits outfile=/scratch/kocevski/663537/expmap_626572801_626832001_4FGL_J2304.6+3704_daily_bin1494.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/663537/ltcube_626572801_626832001_4FGL_J2304.6+3704_daily_bin1494.fits
.....................!
real 190.62
user 184.82
sys 5.44

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/663537/ft1_filtered_4FGL_J2304.6+3704_daily_bin1494.fits scfile=/scratch/kocevski/663537/ft2_4FGL_J2304.6+3704_daily_bin1494.fits outfile=/scratch/kocevski/663537/cmap_626572801_626832001_4FGL_J2304.6+3704_daily_bin1494.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/663537/ft1_filtered_4FGL_J2304.6+3704_daily_bin1494.fits scfile=/scratch/kocevski/663537/ft2_4FGL_J2304.6+3704_daily_bin1494.fits outfile=/scratch/kocevski/663537/cmap_HighResolution_626572801_626832001_4FGL_J2304.6+3704_daily_bin1494.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.8008       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.5096       1.0000         .10000E-03   10000.    
     4 'Prefactor '    25.985       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .36896       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.1415       1.0000         .10000E-03   10000.    
    12 'Prefactor '    29.249       1.0000         .10000E-03   10000.    
    13 'norm      '    2.5956       1.0000         .10000E-03   10000.    
    14 'norm      '    9.0115       1.0000         .10000E-03   10000.    
    15 'Prefactor '    39.869       1.0000         .10000E-03   10000.    
    16 'norm      '    2.8418       1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.748       1.0000         .10000E-03   10000.    
    18 'Prefactor '    69.975       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    62.699       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0263       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .96812       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=   9056.817     FROM MIGRAD    STATUS=CONVERGED    504 CALLS     2552 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8008        1.2360        .28299E-07   -.53858E-04
   2  Prefactor     .10000E-03    32.022       -.12376E-05** at limit **
   3  Prefactor     2.5097        3.1788        .26712E-07   -.18007E-04
   4  Prefactor     25.985        19.753        .81306E-07   -.10183E-04
   5  norm          .10000E-03    .91037        .12982E-07** at limit **
   6  Prefactor     .10000E-03    7.7223       -.76777E-07** at limit **
   7  Prefactor     .10000E-03    3.0399       -.40251E-07** at limit **
   8  Prefactor     .10001E-03    56.418       -.52301E-05** at limit **
   9  norm          .36855        .89319        .25759E-06   -.42901E-03
  10  Prefactor     .10000E-03    10.249        .10419E-06** at limit **
  11  Prefactor     5.1406        15.426        .66297E-05   -.22629E-03
  12  Prefactor     29.250        25.672        .15803E-06   -.25636E-05
  13  norm          2.5952        4.5791        .22372E-06   -.15119E-03
  14  norm          9.0123        13.247        .11163E-05   -.13578E-03
  15  Prefactor     39.868        26.553       -.18158E-06   -.67161E-04
  16  norm          2.8418        2.9585       -.34551E-06   -.17363E-03
  17  Prefactor     14.746        25.041        .44910E-08   -.36336E-04
  18  Prefactor     69.965        80.104       -.12648E-05   -.66442E-04
  19  Prefactor     .10001E-03    44.090        .54274E-05** at limit **
  20  Prefactor     62.681        58.015       -.23108E-05   -.19368E-03
  21  Prefactor     .10000E-03    6.9852       -.30857E-06** at limit **
  22  Normalizat    1.0265        .23749       -.10649E-05   -.44152E-04
  23  Prefactor     .96807        .83601E-01   -.21155E-06   -.31216E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.80077
  Prefactor  = 0.000100001
  Prefactor  = 2.50971
  Prefactor  = 25.9846
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  norm       = 0.368547
  Prefactor  = 0.0001
  Prefactor  = 5.1406
  Prefactor  = 29.2496
  norm       = 2.59524
  norm       = 9.0123
  Prefactor  = 39.8684
  norm       = 2.84181
  Prefactor  = 14.7457
  Prefactor  = 69.9653
  Prefactor  = 0.000100014
  Prefactor  = 62.6812
  Prefactor  = 0.0001
  Normalizat = 1.02646
  Prefactor  = 0.968069
 **********
 **   18 **HESSE 
 **********

 FCN=   9056.817     FROM HESSE     STATUS=OK           372 CALLS     2924 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8008        1.2356        .66808E-04   -1.5373    
   2  Prefactor     .10000E-03    32.169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.5097        3.1702        .18528E-03   -1.5391    
   4  Prefactor     25.985        19.763        .78586E-04   -1.4688    
   5  norm          .10000E-03    .91286        .88654E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.7327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.0575        .16201E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    59.069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .36855        .89773        .13373E-03   -1.5587    
  10  Prefactor     .10000E-03    10.266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.1406        15.784        .88651E-03   -1.5254    
  12  Prefactor     29.250        25.670        .74080E-04   -1.4626    
  13  norm          2.5952        4.5465        .25280E-03   -1.5386    
  14  norm          9.0123        13.242        .66757E-03   -1.5107    
  15  Prefactor     39.868        26.615        .63481E-04   -1.4444    
  16  norm          2.8418        2.9495        .15810E-03   -1.5371    
  17  Prefactor     14.746        25.065        .10430E-03   -1.4940    
  18  Prefactor     69.965        80.426        .47987E-04   -1.4033    
  19  Prefactor     .10001E-03    46.622        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     62.681        59.138        .25338E-03   -1.4123    
  21  Prefactor     .10000E-03    7.0071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0265        .27275        .41640E-03   -.92149    
  23  Prefactor     .96807        .96524E-01    .15978E-03   -.93802    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05556e-09
Minuit parameter uncertainties:
  1  1.23561
  2  0.000311619
  3  3.17042
  4  19.7677
  5  1.60817e-07
  6  1.04929e-05
  7  4.59657e-06
  8  0.00158136
  9  0.897764
  10  1.16635e-05
  11  15.7963
  12  25.6796
  13  4.54714
  14  13.2463
  15  26.6233
  16  2.94966
  17  25.0825
  18  80.5514
  19  0.00160054
  20  59.1935
  21  3.06036e-05
  22  0.273119
  23  0.0965415
Done.

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

Extracting fit parameters...

4FGL J2304.6+3704
   Spectrum: PowerLaw
376    Prefactor:  1.000e-04  1.581e-03  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.681e-01  9.654e-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:  1.026e+00  2.731e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/663537/likelihoodResults_626572801_626832001_4FGL_J2304.6+3704_daily_bin1494.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) = 9056.81751243
delta logL = -8.05739036878e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9056.81743182
delta logL = 2.8505382943e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9189       1.0000          .0000       10.000    
     3 'Normalizat'    1.0265       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96807       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=   9056.817     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      246 TOTAL
                     EDM=   .36E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.390        .90712E-02** at limit **
   2  Index         1.9250        7.8352        .50000       -.36748E-06
   3  Normalizat    1.0265        .25018E-02    .94002E-01    .34183E-04
   4  Prefactor     .96807        .93992E-03    .45867E-01    .88455E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.92501
  Normalizat = 1.02646
  Prefactor  = 0.968069
 **********
 **   18 **HESSE 
 **********

 FCN=   9056.817     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      279 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    100.52        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9250        7.9515        .50000       -.66238    
   3  Normalizat    1.0265        .77020E-02    .41640E-03   -.92149    
   4  Prefactor     .96807        .29009E-02    .15978E-03   -.93802    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.39934e-11
Minuit parameter uncertainties:
  1  9.94848e-06
  2  61.6895
  3  0.00770203
  4  0.00290089
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/663537': 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) = 9056.81743181
delta logL = 3.86753526982e-08

Extracting fit parameters...

4FGL J2304.6+3704
   Spectrum: PowerLaw
376    Prefactor:  1.000e-04  9.948e-06  1.000e-04  1.000e+04 ( 1.000e-14)
377        Index:  1.925e+00  6.169e+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:  9.681e-01  2.901e-03  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:  1.026e+00  7.702e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/663537/cmap_HighResolution_626572801_626832001_4FGL_J2304.6+3704_daily_bin1494.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.90e-03', job_status='DONE', photon_flux_upper_limit='6.62e-08', time_completed='2021-09-29 06:59:58.366608', job_id='663537', GAL2='0.97', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1632923998.37', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='3.87e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='1494' AND source_name='4FGL J2304.6+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 06:59:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 663537: <4FGL_J2304.6+3704_daily_bin1494> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2304.6+3704_daily_bin1494 346.173 37.0826 626572801 626832001 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 :                                   798.21 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             308.50 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.

