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


Performing analysis on: 4FGL_J2304.3+0618_daily_bin390
RA = 346.078, Dec = 6.3071
tmin = 340416001, tmax = 340675201
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='649187', job_status='RUN', time_executed='2021-09-29 06:03:29.707736', time_epoch_executed='1632920609.71' WHERE source_name='4FGL J2304.3+0618' and cadence='daily' and bin_id='390'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/649187

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

Retrieving the FT1 file...

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

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

Retrieving 53 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/649187/ft1_4FGL_J2304.3+0618_daily_bin390.fits


Retrieving the FT1 file...

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

Retrieving 53 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/649187/ft2_4FGL_J2304.3+0618_daily_bin390.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/649187/ft1_4FGL_J2304.3+0618_daily_bin390.fits outfile=/scratch/kocevski/649187/ft1_filteredMKT_4FGL_J2304.3+0618_daily_bin390.fits ra=346.078 dec=6.3071 rad=12.0 tmin=340416001.0 tmax=340675201.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.73
user 6.47
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/649187/ft1_filtered_4FGL_J2304.3+0618_daily_bin390.fits" evtable="EVENTS" scfile=/scratch/kocevski/649187/ft2_4FGL_J2304.3+0618_daily_bin390.fits sctable="SC_DATA" outfile=/scratch/kocevski/649187/ltcube_340416001_340675201_4FGL_J2304.3+0618_daily_bin390.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/649187/ft2_4FGL_J2304.3+0618_daily_bin390.fits
.....................!
real 11.35
user 11.01
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/649187/ft1_filtered_4FGL_J2304.3+0618_daily_bin390.fits evtable="EVENTS" scfile=/scratch/kocevski/649187/ft2_4FGL_J2304.3+0618_daily_bin390.fits sctable="SC_DATA" expcube=/scratch/kocevski/649187/ltcube_340416001_340675201_4FGL_J2304.3+0618_daily_bin390.fits outfile=/scratch/kocevski/649187/expmap_340416001_340675201_4FGL_J2304.3+0618_daily_bin390.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/649187/ltcube_340416001_340675201_4FGL_J2304.3+0618_daily_bin390.fits
.....................!
real 191.84
user 187.50
sys 4.01

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/649187/ft1_filtered_4FGL_J2304.3+0618_daily_bin390.fits scfile=/scratch/kocevski/649187/ft2_4FGL_J2304.3+0618_daily_bin390.fits outfile=/scratch/kocevski/649187/cmap_340416001_340675201_4FGL_J2304.3+0618_daily_bin390.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/649187/ft1_filtered_4FGL_J2304.3+0618_daily_bin390.fits scfile=/scratch/kocevski/649187/ft2_4FGL_J2304.3+0618_daily_bin390.fits outfile=/scratch/kocevski/649187/cmap_HighResolution_340416001_340675201_4FGL_J2304.3+0618_daily_bin390.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.54
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/649187/ft1_filtered_4FGL_J2304.3+0618_daily_bin390.fits evtable="EVENTS" scfile=/scratch/kocevski/649187/ft2_4FGL_J2304.3+0618_daily_bin390.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/649187/Model_4FGL_J2304.3+0618_daily_bin390.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/649187/ft1_filtered_4FGL_J2304.3+0618_daily_bin390.fits.....................!
real 64.50
user 63.16
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/649187/ft1_filtered_4FGL_J2304.3+0618_daily_bin390.fits', '/scratch/kocevski/649187/ft2_4FGL_J2304.3+0618_daily_bin390.fits', expMap='/scratch/kocevski/649187/expmap_340416001_340675201_4FGL_J2304.3+0618_daily_bin390.fits', expCube='/scratch/kocevski/649187/ltcube_340416001_340675201_4FGL_J2304.3+0618_daily_bin390.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/649187/Model_4FGL_J2304.3+0618_daily_bin390.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/649187/ft1_filtered_4FGL_J2304.3+0618_daily_bin390.fits
Spacecraft file(s): /scratch/kocevski/649187/ft2_4FGL_J2304.3+0618_daily_bin390.fits
Exposure map: /scratch/kocevski/649187/expmap_340416001_340675201_4FGL_J2304.3+0618_daily_bin390.fits
Exposure cube: /scratch/kocevski/649187/ltcube_340416001_340675201_4FGL_J2304.3+0618_daily_bin390.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/649187/Model_4FGL_J2304.3+0618_daily_bin390.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) = 6188.05039044

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .49753       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .42248       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .35598E-01   1.0000         .10000E-03   10000.    
     7 'norm      '    9.2925       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.9794       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.1781       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.8419       1.0000         .10000E-03   10000.    
    11 'Prefactor '    27.681       1.0000         .10000E-03   10000.    
    12 'norm      '    2.7748       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.0702       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.6290       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.2136       1.0000         .10000E-03   10000.    
    21 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11454E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    13.768       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .81383       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0902       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6187.952     FROM MIGRAD    STATUS=CONVERGED   1029 CALLS     3405 TOTAL
                     EDM=   .99E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.688        .18142E-02** at limit **
   2  Prefactor     .49748        .20866        .22324E-04    .43644E-03
   3  Prefactor     .10000E-03    2.3992        .11895E-02** at limit **
   4  Prefactor     .35856        250.22        .58592E-02    .26994E-04
   5  Prefactor     .10000E-03    19.044        .18142E-02** at limit **
   6  Prefactor     .35660E-01    .12001        .38472E-03    .35098E-02
   7  norm          9.2908        13.714        .13147E-03   -.17295E-05
   8  Prefactor     9.9604        29.735        .12684E-03    .79768E-05
   9  Prefactor     1.2033        11.181        .21078E-02   -.18503E-03
  10  Prefactor     1.8431        11.767        .15367E-02   -.69145E-04
  11  Prefactor     27.682        23.523        .76145E-04   -.24038E-04
  12  norm          2.7749        1.0719        .49042E-04   -.13468E-03
  13  Prefactor     6.0708        9.7581        .16296E-03    .23022E-05
  14  Prefactor     .10000E-03    29.126        .18142E-02** at limit **
  15  norm          .10000E-03    3.8515        .15034E-02** at limit **
  16  Prefactor     4.6285        7.2876        .18707E-03    .40839E-04
  17  Prefactor     .10000E-03    65.150        .18142E-02** at limit **
  18  Prefactor     .10000E-03    12.198        .18142E-02** at limit **
  19  Prefactor     .10000E-03    5.8236        .18142E-02** at limit **
  20  norm          2.2133        8.6407        .13822E-02   -.86938E-04
  21  norm          .10000E-03    16.991        .18142E-02** at limit **
  22  Prefactor     .10000E-03    89.482        .18142E-02** at limit **
  23  Prefactor     13.774        20.497        .10795E-03   -.92362E-04
  24  Normalizat    .81387        .25623        .34153E-03   -.98364E-04
  25  Prefactor     1.0903        .15192        .18231E-03   -.39407E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.497483
  Prefactor  = 0.0001
  Prefactor  = 0.358563
  Prefactor  = 0.0001
  Prefactor  = 0.0356598
  norm       = 9.29082
  Prefactor  = 9.96041
  Prefactor  = 1.20327
  Prefactor  = 1.84313
  Prefactor  = 27.6816
  norm       = 2.77486
  Prefactor  = 6.07081
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.62853
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.21332
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.7737
  Normalizat = 0.813871
  Prefactor  = 1.09026
 **********
 **   18 **HESSE 
 **********

 FCN=   6187.952     FROM HESSE     STATUS=OK           413 CALLS     3818 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.695        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .49748        .20864        .89294E-06   -1.5567    
   3  Prefactor     .10000E-03    2.3993        .23791E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .35856        257.67        .23437E-02   -1.5588    
   5  Prefactor     .10000E-03    19.054        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .35660E-01    .11925        .15389E-04   -1.5670    
   7  norm          9.2908        13.711        .52588E-05   -1.5098    
   8  Prefactor     9.9604        29.734        .50738E-05   -1.5077    
   9  Prefactor     1.2033        11.116        .84314E-04   -1.5489    
  10  Prefactor     1.8431        11.746        .61466E-04   -1.5436    
  11  Prefactor     27.682        23.516        .30458E-05   -1.4655    
  12  norm          2.7749        1.0718        .19617E-05   -1.5375    
  13  Prefactor     6.0708        9.7566        .65184E-05   -1.5215    
  14  Prefactor     .10000E-03    29.127        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.8519        .30068E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.6285        7.2858        .74827E-05   -1.5278    
  17  Prefactor     .10000E-03    65.150        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    12.206        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.8236        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.2133        8.6389        .55288E-04   -1.5410    
  21  norm          .10000E-03    16.994        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    89.507        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     13.774        20.493        .43179E-05   -1.4966    
  24  Normalizat    .81387        .25615        .13661E-04   -.99556    
  25  Prefactor     1.0903        .15183        .36463E-04   -.89778    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.22789e-10
Minuit parameter uncertainties:
  1  6.90513e-05
  2  0.208639
  3  1.19151e-06
  4  19.3054
  5  7.81113e-05
  6  0.119246
  7  13.7155
  8  29.7779
  9  7.3159
  10  9.30811
  11  23.524
  12  1.07184
  13  9.7592
  14  2.4584e-05
  15  2.53507e-05
  16  7.28721
  17  0.000261606
  18  5.50802e-05
  19  1.19401e-06
  20  8.64373
  21  3.23725e-05
  22  0.00013419
  23  20.5034
  24  0.256535
  25  0.151895
Done.

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

Extracting fit parameters...

4FGL J2304.3+0618
   Spectrum: PowerLaw
362    Prefactor:  9.960e+00  2.978e+01  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:  1.090e+00  1.519e-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:  8.139e-01  2.565e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.13
Ra Dec: 346.078 6.307
Photon Flux Upper Limit: 1.11e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.61e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/649187/likelihoodResults_340416001_340675201_4FGL_J2304.3+0618_daily_bin390.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): 0
logL (Free Index) = 6187.91486587
delta logL = 0.0367414159355

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6187.88521184
delta logL = 0.0663954444462

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9753       1.0000         .10000E-03   10000.    
     2 'Index     '    3.7301       1.0000          .0000       10.000    
     3 'Normalizat'    .79403       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0987       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=   6187.885     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      229 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9566        196.71        .58846E-02    .51707E-03
   2  Index         3.7350        6.8531        .20861        .77488E-04
   3  Normalizat    .79433        .48456E-01    .78030E-01    .20132E-04
   4  Prefactor     1.0986        .29220E-01    .37635E-01   -.14475E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.95657
  Index      = 3.735
  Normalizat = 0.794329
  Prefactor  = 1.0986
 **********
 **   18 **HESSE 
 **********

 FCN=   6187.885     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      262 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9566        598.02        .23538E-03   -1.5364    
   2  Index         3.7350        7.3573        .11394E-01   -.25578    
   3  Normalizat    .79433        .20953        .34543E-03   -1.0028    
   4  Prefactor     1.0986        .12458        .18171E-03   -.89511    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.58278e-09
Minuit parameter uncertainties:
  1  84.9705
  2  17.6426
  3  0.209743
  4  0.124615
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/649187': 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) = 6187.88520973
delta logL = 0.0663975612933

Extracting fit parameters...

4FGL J2304.3+0618
   Spectrum: PowerLaw
362    Prefactor:  2.957e+00  8.497e+01  1.000e-04  1.000e+04 ( 1.000e-13)
363        Index:  3.735e+00  1.764e+01  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:  1.099e+00  1.246e-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:  7.943e-01  2.097e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.13
Ra Dec: 346.078 6.307

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/649187/cmap_HighResolution_340416001_340675201_4FGL_J2304.3+0618_daily_bin390.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.61e-03', job_status='DONE', photon_flux_upper_limit='1.11e-07', time_completed='2021-09-29 06:15:41.132698', job_id='649187', GAL2='1.10', fit_tolerance='1e-08', EG2='0.79', EG='0.81', time_epoch_completed='1632921341.13', return_code2='102', ts='0.13', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='6.64e-02', ts2='0.28', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='390' AND source_name='4FGL J2304.3+0618' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 06:15:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0103>
Subject: Job 649187: <4FGL_J2304.3+0618_daily_bin390> in cluster <slac> Done

Job <4FGL_J2304.3+0618_daily_bin390> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 06:00:30 2021
Job was executed on host(s) <bullet0103>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 06:00:33 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:33 2021
Terminated at Wed Sep 29 06:15:41 2021
Results reported at Wed Sep 29 06:15:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2304.3+0618_daily_bin390 346.078 6.3071 340416001 340675201 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 :                                   728.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   908 sec.
    Turnaround time :                            911 sec.

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

