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


Performing analysis on: 4FGL_J1304.6-0348_daily_bin519
RA = 196.172, Dec = -3.8139
tmin = 373852801, tmax = 374112001
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='211155', job_status='RUN', time_executed='2021-09-06 21:03:19.596328', time_epoch_executed='1630987399.6' WHERE source_name='4FGL J1304.6-0348' and cadence='daily' and bin_id='519'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/211155

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/211155/ft1_4FGL_J1304.6-0348_daily_bin519.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/211155/ft2_4FGL_J1304.6-0348_daily_bin519.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/211155/ft1_4FGL_J1304.6-0348_daily_bin519.fits outfile=/scratch/kocevski/211155/ft1_filteredMKT_4FGL_J1304.6-0348_daily_bin519.fits ra=196.172 dec=-3.8139 rad=12.0 tmin=373852801.0 tmax=374112001.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 4.54
user 4.27
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/211155/ft2_4FGL_J1304.6-0348_daily_bin519.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/211155/ft2_4FGL_J1304.6-0348_daily_bin519.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/211155/ft1_filteredMKT_4FGL_J1304.6-0348_daily_bin519.fits evtable="EVENTS" outfile="/scratch/kocevski/211155/ft1_filtered_4FGL_J1304.6-0348_daily_bin519.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.55
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/211155/ft1_filtered_4FGL_J1304.6-0348_daily_bin519.fits" evtable="EVENTS" scfile=/scratch/kocevski/211155/ft2_4FGL_J1304.6-0348_daily_bin519.fits sctable="SC_DATA" outfile=/scratch/kocevski/211155/ltcube_373852801_374112001_4FGL_J1304.6-0348_daily_bin519.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/211155/ft2_4FGL_J1304.6-0348_daily_bin519.fits
.....................!
real 13.87
user 13.32
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/211155/ft1_filtered_4FGL_J1304.6-0348_daily_bin519.fits evtable="EVENTS" scfile=/scratch/kocevski/211155/ft2_4FGL_J1304.6-0348_daily_bin519.fits sctable="SC_DATA" expcube=/scratch/kocevski/211155/ltcube_373852801_374112001_4FGL_J1304.6-0348_daily_bin519.fits outfile=/scratch/kocevski/211155/expmap_373852801_374112001_4FGL_J1304.6-0348_daily_bin519.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/211155/ltcube_373852801_374112001_4FGL_J1304.6-0348_daily_bin519.fits
.....................!
real 194.17
user 186.99
sys 4.96

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 185 point sources and 0 extended sources

Setting source of interest to:
4FGL J1304.6-0348 @ 196.172 -3.8139

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/211155/ft1_filtered_4FGL_J1304.6-0348_daily_bin519.fits scfile=/scratch/kocevski/211155/ft2_4FGL_J1304.6-0348_daily_bin519.fits outfile=/scratch/kocevski/211155/cmap_373852801_374112001_4FGL_J1304.6-0348_daily_bin519.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=196.172 yref=-3.8139 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.58
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/211155/ft1_filtered_4FGL_J1304.6-0348_daily_bin519.fits scfile=/scratch/kocevski/211155/ft2_4FGL_J1304.6-0348_daily_bin519.fits outfile=/scratch/kocevski/211155/cmap_HighResolution_373852801_374112001_4FGL_J1304.6-0348_daily_bin519.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=196.172 yref=-3.8139 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.56
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/211155/ft1_filtered_4FGL_J1304.6-0348_daily_bin519.fits evtable="EVENTS" scfile=/scratch/kocevski/211155/ft2_4FGL_J1304.6-0348_daily_bin519.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/211155/Model_4FGL_J1304.6-0348_daily_bin519.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/211155/ft1_filtered_4FGL_J1304.6-0348_daily_bin519.fits.....................!
real 52.05
user 50.16
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/211155/ft1_filtered_4FGL_J1304.6-0348_daily_bin519.fits', '/scratch/kocevski/211155/ft2_4FGL_J1304.6-0348_daily_bin519.fits', expMap='/scratch/kocevski/211155/expmap_373852801_374112001_4FGL_J1304.6-0348_daily_bin519.fits', expCube='/scratch/kocevski/211155/ltcube_373852801_374112001_4FGL_J1304.6-0348_daily_bin519.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/211155/Model_4FGL_J1304.6-0348_daily_bin519.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1304.6-0348'

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  2.667e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  2.176e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  2.075e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/211155/ft1_filtered_4FGL_J1304.6-0348_daily_bin519.fits
Spacecraft file(s): /scratch/kocevski/211155/ft2_4FGL_J1304.6-0348_daily_bin519.fits
Exposure map: /scratch/kocevski/211155/expmap_373852801_374112001_4FGL_J1304.6-0348_daily_bin519.fits
Exposure cube: /scratch/kocevski/211155/ltcube_373852801_374112001_4FGL_J1304.6-0348_daily_bin519.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/211155/Model_4FGL_J1304.6-0348_daily_bin519.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) = 6219.4159148

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10588E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.2005       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.4215       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11246E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    14.757       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11854E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10050E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .17647       1.0000         .10000E-03   10000.    
    11 'Prefactor '    85.289       1.0000         .10000E-03   10000.    
    12 'norm      '    21.134       1.0000         .10000E-03   10000.    
    13 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.3600       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    19.743       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.5710       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .98255       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6070E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6219.409     FROM MIGRAD    STATUS=CONVERGED    495 CALLS     2386 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.3194       -.22990E-06** at limit **
   2  norm          1.2005        .63724       -.56704E-07   -.32470E-03
   3  Prefactor     2.4213        3.6482        .67480E-06   -.11437E-02
   4  Prefactor     .10184E-03    12.240       -.36797E-05** at limit **
   5  norm          14.758        3.1559       -.17528E-07   -.14395E-03
   6  Prefactor     .10000E-03    4.3589        .88933E-07** at limit **
   7  Prefactor     .10001E-03    97.473        .25745E-04** at limit **
   8  Prefactor     .10000E-03    34.349       -.21668E-05** at limit **
   9  norm          .10000E-03    15.133       -.34261E-06** at limit **
  10  norm          .17659        .18701       -.13304E-06   -.12798E-02
  11  Prefactor     85.298        67.229        .60093E-05    .14272E-03
  12  norm          21.135        13.915       -.48415E-06    .44915E-04
  13  norm          .10000E-03    8.1070        .13190E-06** at limit **
  14  Prefactor     6.3607        8.9467        .54077E-07   -.32916E-03
  15  Prefactor     .10000E-03    12.860        .13696E-06** at limit **
  16  Prefactor     .10000E-03    6.0352        .10756E-06** at limit **
  17  Prefactor     .10000E-03    23.866        .40197E-06** at limit **
  18  norm          .10000E-03    .66555        .45172E-08** at limit **
  19  norm          .10000E-03    3.5916        .57627E-07** at limit **
  20  norm          19.746        23.197        .90731E-07    .71395E-05
  21  Normalizat    1.5706        .25812        .11276E-05    .35669E-03
  22  Prefactor     .98263        .17735        .22800E-06    .41925E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 1.2005
  Prefactor  = 2.42127
  Prefactor  = 0.000101845
  norm       = 14.7585
  Prefactor  = 0.0001
  Prefactor  = 0.000100013
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.176593
  Prefactor  = 85.2975
  norm       = 21.1353
  norm       = 0.0001
  Prefactor  = 6.36067
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 19.7465
  Normalizat = 1.57064
  Prefactor  = 0.982631
 **********
 **   18 **HESSE 
 **********

 FCN=   6219.409     FROM HESSE     STATUS=OK           340 CALLS     2726 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.4153        .23454E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.2005        .63124        .43565E-04   -1.5489    
   3  Prefactor     2.4213        8.1595        .13151E-02   -1.5397    
   4  Prefactor     .10184E-03    105.20        .50007E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          14.758        3.1573        .61514E-04   -1.4939    
   6  Prefactor     .10000E-03    4.3851        .16077E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    97.150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    34.393        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    15.152        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .17659        .17852        .33523E-03   -1.5624    
  11  Prefactor     85.298        67.433        .43499E-04   -1.3858    
  12  norm          21.135        13.911        .87127E-04   -1.4788    
  13  norm          .10000E-03    8.1586        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.3607        9.1500        .79579E-03   -1.5204    
  15  Prefactor     .10000E-03    12.980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.0674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    24.007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .68120        .12554E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    3.6556        .14589E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          19.746        23.199        .90141E-04   -1.4819    
  21  Normalizat    1.5706        .30976        .30112E-03   -.75812    
  22  Prefactor     .98263        .21473        .25792E-03   -.93311    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.06005e-08
Minuit parameter uncertainties:
  1  5.53306e-06
  2  0.631248
  3  8.16329
  4  0.0279117
  5  3.15735
  6  3.91142e-06
  7  0.00225841
  8  0.000136274
  9  2.61889e-05
  10  0.17852
  11  67.4932
  12  13.9135
  13  1.3395e-06
  14  9.15199
  15  1.29846e-05
  16  5.94745e-06
  17  4.37349e-06
  18  1.99522e-06
  19  5.29471e-06
  20  23.2097
  21  0.310138
  22  0.214912
Done.

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

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  8.530e+01  6.749e+01  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  2.176e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  2.075e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
604    Prefactor:  9.826e-01  2.149e-01  0.000e+00  1.000e+01 ( 1.000e+00)
605        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
606        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
603   Normalization:  1.571e+00  3.101e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.00
Ra Dec: 196.172 -3.814
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 5.33e-08 +/- 4.22e-08
Energy Flux (Fixed Index): 2.50e-05 +/- 1.98e-05

TS (Fixed Index): 3.00
Ra Dec: 196.172 -3.814
Photon Flux Upper Limit: 1.50e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.14e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/211155/likelihoodResults_373852801_374112001_4FGL_J1304.6-0348_daily_bin519.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) = 6219.4050733
delta logL = 0.00442114777161

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6219.40095055
delta logL = 0.0085438977485

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    77.512       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2486       1.0000          .0000       10.000    
     3 'Normalizat'    1.5667       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98435       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6070E+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=   6219.401     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      272 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     77.577        91.785        .22806E-03    .41824E-04
   2  Index         2.2483        .60040        .59539E-02    .49374E-03
   3  Normalizat    1.5665        .30465        .30144E-03   -.57477E-04
   4  Prefactor     .98448        .21280        .25771E-03    .12749E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 77.5769
  Index      = 2.24829
  Normalizat = 1.56645
  Prefactor  = 0.984483
 **********
 **   18 **HESSE 
 **********

 FCN=   6219.401     FROM HESSE     STATUS=OK            25 CALLS      297 TOTAL
                     EDM=   .66E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     77.577        86.127        .91223E-05   -1.3944    
   2  Index         2.2483        .56331        .11908E-02   -.58277    
   3  Normalizat    1.5665        .30480        .12058E-04   -.75928    
   4  Prefactor     .98448        .21296        .10308E-04   -.93249    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.64121e-11
Minuit parameter uncertainties:
  1  86.2663
  2  0.565037
  3  0.305164
  4  0.21314
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/211155': 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) = 6219.40094999
delta logL = 0.00854445505865

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  7.758e+01  8.627e+01  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  2.248e+00  5.650e-01  0.000e+00  1.000e+01 (-1.000e+00)
316        Scale:  2.075e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
604    Prefactor:  9.845e-01  2.131e-01  0.000e+00  1.000e+01 ( 1.000e+00)
605        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
606        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
603   Normalization:  1.566e+00  3.052e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.03
Ra Dec: 196.172 -3.814
Photon Index (Free Index): 2.25 +/- 0.57
Photon Flux (Free Index): 5.69e-08 +/- 5.09e-08
Energy Flux (Free Index): 2.34e-05 +/- 2.16e-05

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/211155/cmap_HighResolution_373852801_374112001_4FGL_J1304.6-0348_daily_bin519.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.14e-02', comment='SUCCESS', photon_flux='5.33e-08', energy_flux2='2.34e-05', photon_flux_error='4.22e-08', dlogl='8.54e-03', energy_flux='2.50e-05', photon_flux2='5.69e-08', job_status='DONE', time_completed='2021-09-06 21:14:39.931870', photon_index_error2='0.57', photon_index2='2.25', ts='3.00', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.50e-07', energy_flux_error2='2.16e-05', EG='1.57', time_epoch_completed='1630988079.93', return_code='0', job_id='211155', GAL2='0.98', EG2='1.57', return_code2='0', energy_flux_error='1.98e-05', photon_flux_error2='5.09e-08', ts2='3.03', photon_index='2.18' WHERE bin_id='519' AND source_name='4FGL J1304.6-0348' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 21:14:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 211155: <4FGL_J1304.6-0348_daily_bin519> in cluster <slac> Done

Job <4FGL_J1304.6-0348_daily_bin519> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 21:00:33 2021
Job was executed on host(s) <bullet0075>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 21:00:37 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 21:00:37 2021
Terminated at Mon Sep  6 21:14:40 2021
Results reported at Mon Sep  6 21:14:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.6-0348_daily_bin519 196.172 -3.8139 373852801 374112001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1304.6-0348 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   672.03 sec.
    Max Memory :                                 1129 MB
    Average Memory :                             277.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   843 sec.
    Turnaround time :                            847 sec.

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

