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


Performing analysis on: 4FGL_J2304.3+0618_daily_bin362
RA = 346.078, Dec = 6.3071
tmin = 333158401, tmax = 333417601
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='649142', job_status='RUN', time_executed='2021-09-29 06:03:38.192289', time_epoch_executed='1632920618.19' WHERE source_name='4FGL J2304.3+0618' and cadence='daily' and bin_id='362'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/649142

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

Retrieving the FT1 file...

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

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

Retrieving 51 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/649142/ft1_4FGL_J2304.3+0618_daily_bin362.fits


Retrieving the FT1 file...

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

Retrieving 51 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/649142/ft2_4FGL_J2304.3+0618_daily_bin362.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/649142/ft1_4FGL_J2304.3+0618_daily_bin362.fits outfile=/scratch/kocevski/649142/ft1_filteredMKT_4FGL_J2304.3+0618_daily_bin362.fits ra=346.078 dec=6.3071 rad=12.0 tmin=333158401.0 tmax=333417601.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 6.06
user 5.81
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/649142/ft1_filtered_4FGL_J2304.3+0618_daily_bin362.fits" evtable="EVENTS" scfile=/scratch/kocevski/649142/ft2_4FGL_J2304.3+0618_daily_bin362.fits sctable="SC_DATA" outfile=/scratch/kocevski/649142/ltcube_333158401_333417601_4FGL_J2304.3+0618_daily_bin362.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/649142/ft2_4FGL_J2304.3+0618_daily_bin362.fits
.....................!
real 11.43
user 11.09
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/649142/ft1_filtered_4FGL_J2304.3+0618_daily_bin362.fits evtable="EVENTS" scfile=/scratch/kocevski/649142/ft2_4FGL_J2304.3+0618_daily_bin362.fits sctable="SC_DATA" expcube=/scratch/kocevski/649142/ltcube_333158401_333417601_4FGL_J2304.3+0618_daily_bin362.fits outfile=/scratch/kocevski/649142/expmap_333158401_333417601_4FGL_J2304.3+0618_daily_bin362.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/649142/ltcube_333158401_333417601_4FGL_J2304.3+0618_daily_bin362.fits
.....................!
real 190.84
user 185.60
sys 4.91

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 165 point sources and 0 extended sources

Setting source of interest to:
4FGL J2304.3+0618 @ 346.078 6.3071

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/649142/ft1_filtered_4FGL_J2304.3+0618_daily_bin362.fits scfile=/scratch/kocevski/649142/ft2_4FGL_J2304.3+0618_daily_bin362.fits outfile=/scratch/kocevski/649142/cmap_333158401_333417601_4FGL_J2304.3+0618_daily_bin362.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=346.078 yref=6.3071 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.52
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/649142/ft1_filtered_4FGL_J2304.3+0618_daily_bin362.fits scfile=/scratch/kocevski/649142/ft2_4FGL_J2304.3+0618_daily_bin362.fits outfile=/scratch/kocevski/649142/cmap_HighResolution_333158401_333417601_4FGL_J2304.3+0618_daily_bin362.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=346.078 yref=6.3071 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/649142/ft1_filtered_4FGL_J2304.3+0618_daily_bin362.fits evtable="EVENTS" scfile=/scratch/kocevski/649142/ft2_4FGL_J2304.3+0618_daily_bin362.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/649142/Model_4FGL_J2304.3+0618_daily_bin362.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/649142/ft1_filtered_4FGL_J2304.3+0618_daily_bin362.fits.....................!
real 73.72
user 72.44
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/649142/ft1_filtered_4FGL_J2304.3+0618_daily_bin362.fits', '/scratch/kocevski/649142/ft2_4FGL_J2304.3+0618_daily_bin362.fits', expMap='/scratch/kocevski/649142/expmap_333158401_333417601_4FGL_J2304.3+0618_daily_bin362.fits', expCube='/scratch/kocevski/649142/ltcube_333158401_333417601_4FGL_J2304.3+0618_daily_bin362.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/649142/Model_4FGL_J2304.3+0618_daily_bin362.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2304.3+0618'

4FGL J2304.3+0618
   Spectrum: PowerLaw
362    Prefactor:  4.761e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
363        Index:  2.530e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
364        Scale:  8.008e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/649142/ft1_filtered_4FGL_J2304.3+0618_daily_bin362.fits
Spacecraft file(s): /scratch/kocevski/649142/ft2_4FGL_J2304.3+0618_daily_bin362.fits
Exposure map: /scratch/kocevski/649142/expmap_333158401_333417601_4FGL_J2304.3+0618_daily_bin362.fits
Exposure cube: /scratch/kocevski/649142/ltcube_333158401_333417601_4FGL_J2304.3+0618_daily_bin362.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/649142/Model_4FGL_J2304.3+0618_daily_bin362.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) = 7464.92082523

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.779       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .28360       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.043       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.732       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .47074       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11230E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.137       1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.838       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.781       1.0000         .10000E-03   10000.    
    12 'norm      '    1.7399       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    36.275       1.0000         .10000E-03   10000.    
    15 'norm      '    .10301E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .26187E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    63.794       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .31084E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.239       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    9.7594       1.0000         .10000E-03   10000.    
    22 'Prefactor '    97.901       1.0000         .10000E-03   10000.    
    23 'Prefactor '    39.539       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .90984       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .92892       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7464.912     FROM MIGRAD    STATUS=CONVERGED    100 CALLS     2531 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.786        3.7811       -.36023E-06   -.16245E-04
   2  Prefactor     .28364        .19671        .91759E-08   -.27666E-03
   3  Prefactor     10.043        2.2548        .37867E-06   -.20502E-02
   4  Prefactor     .10000E-03    13.675        .56068E-07** at limit **
   5  Prefactor     16.731        1.0140        .65485E-08    .45313E-04
   6  Prefactor     .47079        .16593        .60344E-09    .31478E-03
   7  norm          .10000E-03    2.6550        .23758E-06** at limit **
   8  Prefactor     .10025E-03    122.90        .88587E-05** at limit **
   9  Prefactor     13.139        7.4096        .92132E-06    .12442E-02
  10  Prefactor     15.838        1.3491        .24255E-06    .14830E-02
  11  Prefactor     11.777        1.2881        .29283E-07    .38819E-03
  12  norm          1.7399        .89435       -.19090E-08    .10362E-04
  13  Prefactor     .10000E-03    4.2852       -.15197E-07** at limit **
  14  Prefactor     36.268        1.4121       -.13504E-08    .11253E-02
  15  norm          .10000E-03    10.693       -.53999E-07** at limit **
  16  Prefactor     .12400E-03    147.20        .72724E-05** at limit **
  17  Prefactor     63.780        2.2935       -.15405E-07    .41715E-02
  18  Prefactor     .11759E-03    170.23        .62966E-05** at limit **
  19  Prefactor     13.248        2.1329        .65932E-07    .69101E-03
  20  norm          .10000E-03    6.2677       -.24147E-06** at limit **
  21  norm          9.7934        13.262        .41593E-05   -.23742E-03
  22  Prefactor     97.906        1.1161       -.13747E-07    .91273E-03
  23  Prefactor     39.549        1.7273       -.11258E-06    .15498E-02
  24  Normalizat    .90941        .22699       -.14343E-07    .35267E-05
  25  Prefactor     .92901        .13679       -.27435E-07    .25655E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.7864
  Prefactor  = 0.283638
  Prefactor  = 10.0428
  Prefactor  = 0.0001
  Prefactor  = 16.7313
  Prefactor  = 0.47079
  norm       = 0.0001
  Prefactor  = 0.000100246
  Prefactor  = 13.1393
  Prefactor  = 15.8375
  Prefactor  = 11.7769
  norm       = 1.73991
  Prefactor  = 0.0001
  Prefactor  = 36.2677
  norm       = 0.0001
  Prefactor  = 0.000124003
  Prefactor  = 63.7797
  Prefactor  = 0.000117594
  Prefactor  = 13.2476
  norm       = 0.0001
  norm       = 9.79343
  Prefactor  = 97.9057
  Prefactor  = 39.5491
  Normalizat = 0.90941
  Prefactor  = 0.929006
 **********
 **   18 **HESSE 
 **********

 FCN=   7464.912     FROM HESSE     STATUS=OK           495 CALLS     3026 TOTAL
                     EDM=   .40E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.786        23.031        .23747E-02   -1.4864    
   2  Prefactor     .28364        .22918        .68693E-02   -1.5601    
   3  Prefactor     10.043        8.8447        .31611E-02   -1.5074    
   4  Prefactor     .10000E-03    13.696        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     16.731        19.015        .24478E-02   -1.4890    
   6  Prefactor     .47079        .17152        .45081E-02   -1.5571    
   7  norm          .10000E-03    2.6516        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10025E-03    125.01        .10342E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     13.139        7.6352        .27628E-02   -1.4983    
  10  Prefactor     15.838        13.170        .25160E-02   -1.4912    
  11  Prefactor     11.777        18.133        .29179E-02   -1.5021    
  12  norm          1.7399        .90446        .79518E-02   -1.5444    
  13  Prefactor     .10000E-03    4.2651        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     36.268        46.816        .16635E-02   -1.4503    
  15  norm          .10000E-03    10.331        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .12400E-03    5.4968        .70243E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     63.780        115.62        .12561E-02   -1.4109    
  18  Prefactor     .11759E-03    4.9650        .91774E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     13.248        21.583        .27522E-02   -1.4980    
  20  norm          .10000E-03    6.2658        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          9.7934        14.579        .32068E-02   -1.5082    
  22  Prefactor     97.906        51.158        .10157E-02   -1.3726    
  23  Prefactor     39.549        29.233        .15936E-02   -1.4449    
  24  Normalizat    .90941        .20728        .74713E-01   -.96130    
  25  Prefactor     .92901        .11742        .45373E-01   -.95135    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.95366e-07
Minuit parameter uncertainties:
  1  23.0424
  2  0.229177
  3  8.84583
  4  3.35219e-05
  5  19.0221
  6  0.171516
  7  1.84493e-06
  8  0.0111152
  9  7.63574
  10  13.1729
  11  18.1418
  12  0.904469
  13  3.30248e-06
  14  46.8632
  15  2.24426e-06
  16  0.0229752
  17  116.028
  18  0.0186941
  19  21.5954
  20  1.12922e-06
  21  14.584
  22  51.1811
  23  29.2432
  24  0.207464
  25  0.117456
Done.

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

Extracting fit parameters...

4FGL J2304.3+0618
   Spectrum: PowerLaw
362    Prefactor:  1.002e-04  1.112e-02  1.000e-04  1.000e+04 ( 1.000e-13)
363        Index:  2.530e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
364        Scale:  8.008e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  9.290e-01  1.175e-01  0.000e+00  1.000e+01 ( 1.000e+00)
538        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
539        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
536   Normalization:  9.094e-01  2.075e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 346.078 6.307
Photon Flux Upper Limit: 9.37e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.30e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/649142/likelihoodResults_333158401_333417601_4FGL_J2304.3+0618_daily_bin362.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) = 7464.91181181
delta logL = -3.67247621398e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7464.91177501
delta logL = 7.57381712901e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7464.912     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      255 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .65863        .12043    ** at limit **
   2  Index         2.7305        6.3547        .50000       -.70404E-06
   3  Normalizat    .90941        .92862E-03    .74713E-01    .68490E-04
   4  Prefactor     .92901        .55902E-03    .45374E-01    .67750E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Index      = 2.73048
  Normalizat = 0.909411
  Prefactor  = 0.929006
 **********
 **   18 **HESSE 
 **********

 FCN=   7464.912     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      292 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    137.12        .73849E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7305        8.2320        .50000       -.47114    
   3  Normalizat    .90941        .44621E-02    .33063E-03   -.96130    
   4  Prefactor     .92901        .26902E-02    .19605E-03   -.95135    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.06328e-10
Minuit parameter uncertainties:
  1  0.00133506
  2  156.297
  3  0.00446211
  4  0.00269021
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/649142': 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) = 7464.91177498
delta logL = 1.08392669063e-07

Extracting fit parameters...

4FGL J2304.3+0618
   Spectrum: PowerLaw
362    Prefactor:  1.000e-04  1.335e-03  1.000e-04  1.000e+04 ( 1.000e-13)
363        Index:  2.730e+00  1.563e+02  0.000e+00  1.000e+01 (-1.000e+00)
364        Scale:  8.008e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  9.290e-01  2.690e-03  0.000e+00  1.000e+01 ( 1.000e+00)
538        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
539        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
536   Normalization:  9.094e-01  4.462e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 346.078 6.307

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/649142/cmap_HighResolution_333158401_333417601_4FGL_J2304.3+0618_daily_bin362.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.30e-03', job_status='DONE', photon_flux_upper_limit='9.37e-08', time_completed='2021-09-29 06:15:58.047269', job_id='649142', GAL2='0.93', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1632921358.05', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='1.08e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='362' AND source_name='4FGL J2304.3+0618' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 06:15:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 649142: <4FGL_J2304.3+0618_daily_bin362> in cluster <slac> Done

Job <4FGL_J2304.3+0618_daily_bin362> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 06:00:25 2021
Job was executed on host(s) <bullet0259>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 06:00:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 06:00:27 2021
Terminated at Wed Sep 29 06:15:58 2021
Results reported at Wed Sep 29 06:15:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2304.3+0618_daily_bin362 346.078 6.3071 333158401 333417601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2304.3+0618 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   738.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             314.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   931 sec.
    Turnaround time :                            933 sec.

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

