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


Performing analysis on: 4FGL_J1304.6-0348_daily_bin1008
RA = 196.172, Dec = -3.8139
tmin = 500601601, tmax = 500860801
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='214954', job_status='RUN', time_executed='2021-09-06 21:14:56.114220', time_epoch_executed='1630988096.11' WHERE source_name='4FGL J1304.6-0348' and cadence='daily' and bin_id='1008'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/214954

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/214954/ft1_4FGL_J1304.6-0348_daily_bin1008.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/214954/ft2_4FGL_J1304.6-0348_daily_bin1008.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/214954/ft1_4FGL_J1304.6-0348_daily_bin1008.fits outfile=/scratch/kocevski/214954/ft1_filteredMKT_4FGL_J1304.6-0348_daily_bin1008.fits ra=196.172 dec=-3.8139 rad=12.0 tmin=500601601.0 tmax=500860801.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 5.19
user 4.89
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/214954/ft1_filtered_4FGL_J1304.6-0348_daily_bin1008.fits" evtable="EVENTS" scfile=/scratch/kocevski/214954/ft2_4FGL_J1304.6-0348_daily_bin1008.fits sctable="SC_DATA" outfile=/scratch/kocevski/214954/ltcube_500601601_500860801_4FGL_J1304.6-0348_daily_bin1008.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/214954/ft2_4FGL_J1304.6-0348_daily_bin1008.fits
.....................!
real 15.63
user 15.19
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/214954/ft1_filtered_4FGL_J1304.6-0348_daily_bin1008.fits evtable="EVENTS" scfile=/scratch/kocevski/214954/ft2_4FGL_J1304.6-0348_daily_bin1008.fits sctable="SC_DATA" expcube=/scratch/kocevski/214954/ltcube_500601601_500860801_4FGL_J1304.6-0348_daily_bin1008.fits outfile=/scratch/kocevski/214954/expmap_500601601_500860801_4FGL_J1304.6-0348_daily_bin1008.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/214954/ltcube_500601601_500860801_4FGL_J1304.6-0348_daily_bin1008.fits
.....................!
real 191.10
user 185.93
sys 4.57

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/214954/ft1_filtered_4FGL_J1304.6-0348_daily_bin1008.fits scfile=/scratch/kocevski/214954/ft2_4FGL_J1304.6-0348_daily_bin1008.fits outfile=/scratch/kocevski/214954/cmap_500601601_500860801_4FGL_J1304.6-0348_daily_bin1008.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/214954/ft1_filtered_4FGL_J1304.6-0348_daily_bin1008.fits scfile=/scratch/kocevski/214954/ft2_4FGL_J1304.6-0348_daily_bin1008.fits outfile=/scratch/kocevski/214954/cmap_HighResolution_500601601_500860801_4FGL_J1304.6-0348_daily_bin1008.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/214954/ft1_filtered_4FGL_J1304.6-0348_daily_bin1008.fits evtable="EVENTS" scfile=/scratch/kocevski/214954/ft2_4FGL_J1304.6-0348_daily_bin1008.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/214954/Model_4FGL_J1304.6-0348_daily_bin1008.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/214954/ft1_filtered_4FGL_J1304.6-0348_daily_bin1008.fits.....................!
real 60.28
user 58.91
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/214954/ft1_filtered_4FGL_J1304.6-0348_daily_bin1008.fits', '/scratch/kocevski/214954/ft2_4FGL_J1304.6-0348_daily_bin1008.fits', expMap='/scratch/kocevski/214954/expmap_500601601_500860801_4FGL_J1304.6-0348_daily_bin1008.fits', expCube='/scratch/kocevski/214954/ltcube_500601601_500860801_4FGL_J1304.6-0348_daily_bin1008.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/214954/Model_4FGL_J1304.6-0348_daily_bin1008.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/214954/ft1_filtered_4FGL_J1304.6-0348_daily_bin1008.fits
Spacecraft file(s): /scratch/kocevski/214954/ft2_4FGL_J1304.6-0348_daily_bin1008.fits
Exposure map: /scratch/kocevski/214954/expmap_500601601_500860801_4FGL_J1304.6-0348_daily_bin1008.fits
Exposure cube: /scratch/kocevski/214954/ltcube_500601601_500860801_4FGL_J1304.6-0348_daily_bin1008.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/214954/Model_4FGL_J1304.6-0348_daily_bin1008.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) = 7415.73188276

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.0665       1.0000         .10000E-03   10000.    
     2 'norm      '    .55102       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11187E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.9959       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 '    .10996E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .33218       1.0000         .10000E-03   10000.    
    11 'Prefactor '    85.005       1.0000         .10000E-03   10000.    
    12 'norm      '    20.114       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.8051       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12038E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .18505E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.8026       1.0000         .10000E-03   10000.    
    19 'norm      '    12.352       1.0000         .10000E-03   10000.    
    20 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.4063       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0431       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=   7415.728     FROM MIGRAD    STATUS=CONVERGED    501 CALLS     2409 TOTAL
                     EDM=   .87E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.0666        3.5306        .16398E-06   -.41143E-06
   2  norm          .55109        .58938       -.77639E-09    .36128E-03
   3  Prefactor     .10001E-03    35.708        .11113E-04** at limit **
   4  Prefactor     .10000E-03    4.6331        .10831E-06** at limit **
   5  norm          5.9961        2.4033        .30783E-07   -.11220E-03
   6  Prefactor     .10000E-03    5.5758        .20496E-06** at limit **
   7  Prefactor     .10000E-03    9.9156        .13889E-07** at limit **
   8  Prefactor     .10000E-03    124.76       -.33042E-05** at limit **
   9  norm          .10000E-03    8.8919        .93012E-07** at limit **
  10  norm          .33184        .24757       -.49258E-07   -.20180E-02
  11  Prefactor     85.013        70.175       -.33384E-07    .11222E-04
  12  norm          20.115        12.530       -.43673E-07   -.86058E-04
  13  norm          .10000E-03    3.3272        .28878E-07** at limit **
  14  Prefactor     7.8036        6.7401       -.41856E-07   -.16169E-03
  15  Prefactor     .10000E-03    19.644        .24861E-06** at limit **
  16  Prefactor     .10001E-03    77.581        .91040E-05** at limit **
  17  Prefactor     .10005E-03    86.519        .56033E-05** at limit **
  18  norm          2.8027        1.6565        .10359E-07   -.42917E-03
  19  norm          12.337        4.6608       -.21372E-06    .21792E-03
  20  norm          .10000E-03    19.164        .22718E-06** at limit **
  21  Normalizat    1.4062        .24622        .15123E-05   -.27082E-03
  22  Prefactor     1.0431        .15877       -.18934E-05   -.77480E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.06664
  norm       = 0.551086
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  norm       = 5.9961
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 0.0001
  norm       = 0.331841
  Prefactor  = 85.0134
  norm       = 20.1151
  norm       = 0.0001
  Prefactor  = 7.80355
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 0.000100047
  norm       = 2.80267
  norm       = 12.3365
  norm       = 0.0001
  Normalizat = 1.40618
  Prefactor  = 1.04313
 **********
 **   18 **HESSE 
 **********

 FCN=   7415.728     FROM HESSE     STATUS=OK           344 CALLS     2753 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.0666        3.5173        .16799E-03   -1.5358    
   2  norm          .55109        .55914        .64888E-03   -1.5560    
   3  Prefactor     .10001E-03    36.094        .38081E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.6477        .18106E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.9961        2.3988        .80965E-04   -1.5218    
   6  Prefactor     .10000E-03    5.6205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.9187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    123.69        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    8.8982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .33184        .23956        .34583E-03   -1.5593    
  11  Prefactor     85.013        70.100        .43571E-04   -1.3861    
  12  norm          20.115        12.526        .89307E-04   -1.4811    
  13  norm          .10000E-03    3.3293        .15341E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.8036        6.7299        .14353E-03   -1.5149    
  15  Prefactor     .10000E-03    19.833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    75.456        .37176E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10005E-03    95.344        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.8027        1.6530        .80048E-04   -1.5373    
  19  norm          12.337        4.7155        .11107E-03   -1.5005    
  20  norm          .10000E-03    19.307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.4062        .28587        .31343E-03   -.80450    
  22  Prefactor     1.0431        .19055        .24516E-03   -.91305    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.88012e-09
Minuit parameter uncertainties:
  1  3.51749
  2  0.559149
  3  0.000926262
  4  2.99144e-05
  5  2.39884
  6  6.72017e-05
  7  4.97906e-06
  8  0.00113682
  9  3.53719e-05
  10  0.239556
  11  70.168
  12  12.5278
  13  6.31238e-06
  14  6.73051
  15  0.000130231
  16  0.00167702
  17  0.00422946
  18  1.65307
  19  4.71561
  20  6.58162e-05
  21  0.286198
  22  0.190678
Done.

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

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  8.501e+01  7.017e+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:  1.043e+00  1.907e-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.406e+00  2.862e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.80
Ra Dec: 196.172 -3.814
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 5.31e-08 +/- 4.38e-08
Energy Flux (Fixed Index): 2.50e-05 +/- 2.06e-05

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

Saving results to:
/scratch/kocevski/214954/likelihoodResults_500601601_500860801_4FGL_J1304.6-0348_daily_bin1008.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) = 7415.72582074
delta logL = 0.00224683258602

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7415.72417965
delta logL = 0.00388791973273

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    80.589       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2388       1.0000          .0000       10.000    
     3 'Normalizat'    1.4009       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0452       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=   7415.724     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      291 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     80.583        89.922        .44739E-04    .40251E-04
   2  Index         2.2391        .77335        .78699E-02    .73104E-04
   3  Normalizat    1.4006        .28488        .31393E-03   -.58485E-04
   4  Prefactor     1.0454        .19182        .24493E-03   -.14231E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 80.5826
  Index      = 2.2391
  Normalizat = 1.40061
  Prefactor  = 1.04537
 **********
 **   18 **HESSE 
 **********

 FCN=   7415.724     FROM HESSE     STATUS=OK            25 CALLS      316 TOTAL
                     EDM=   .79E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     80.583        83.343        .89478E-05   -1.3910    
   2  Index         2.2391        .71509        .31480E-03   -.58498    
   3  Normalizat    1.4006        .28363        .12557E-04   -.80611    
   4  Prefactor     1.0454        .19155        .97970E-05   -.91232    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.92211e-11
Minuit parameter uncertainties:
  1  83.4641
  2  0.718649
  3  0.283949
  4  0.191676
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/214954': 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) = 7415.72417912
delta logL = 0.0038884556634

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  8.058e+01  8.346e+01  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  2.239e+00  7.186e-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:  1.045e+00  1.917e-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.401e+00  2.839e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.81
Ra Dec: 196.172 -3.814
Photon Index (Free Index): 2.24 +/- 0.72
Photon Flux (Free Index): 5.79e-08 +/- 7.11e-08
Energy Flux (Free Index): 2.42e-05 +/- 2.07e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/214954/cmap_HighResolution_500601601_500860801_4FGL_J1304.6-0348_daily_bin1008.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.15e-02', comment='SUCCESS', photon_flux='5.31e-08', energy_flux2='2.42e-05', photon_flux_error='4.38e-08', dlogl='3.89e-03', energy_flux='2.50e-05', photon_flux2='5.79e-08', job_status='DONE', time_completed='2021-09-06 21:27:16.597840', photon_index_error2='0.72', photon_index2='2.24', ts='2.80', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='1.51e-07', energy_flux_error2='2.07e-05', EG='1.41', time_epoch_completed='1630988836.6', return_code='0', job_id='214954', GAL2='1.05', EG2='1.40', return_code2='0', energy_flux_error='2.06e-05', photon_flux_error2='7.11e-08', ts2='2.81', photon_index='2.18' WHERE bin_id='1008' AND source_name='4FGL J1304.6-0348' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 21:27:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0303>
Subject: Job 214954: <4FGL_J1304.6-0348_daily_bin1008> in cluster <slac> Done

Job <4FGL_J1304.6-0348_daily_bin1008> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Sep  6 21:10:48 2021
Job was executed on host(s) <bullet0303>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 21:11:50 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:11:50 2021
Terminated at Mon Sep  6 21:27:17 2021
Results reported at Mon Sep  6 21:27:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.6-0348_daily_bin1008 196.172 -3.8139 500601601 500860801 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 :                                   734.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             260.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   926 sec.
    Turnaround time :                            989 sec.

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

