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


Performing analysis on: 4FGL_J1304.3-4353_daily_bin734
RA = 196.088, Dec = -43.8957
tmin = 429580801, tmax = 429840001
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='200203', job_status='RUN', time_executed='2021-09-06 20:21:19.368866', time_epoch_executed='1630984879.37' WHERE source_name='4FGL J1304.3-4353' and cadence='daily' and bin_id='734'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/200203

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/200203/ft1_4FGL_J1304.3-4353_daily_bin734.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/200203/ft2_4FGL_J1304.3-4353_daily_bin734.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/200203/ft1_4FGL_J1304.3-4353_daily_bin734.fits outfile=/scratch/kocevski/200203/ft1_filteredMKT_4FGL_J1304.3-4353_daily_bin734.fits ra=196.088 dec=-43.8957 rad=12.0 tmin=429580801.0 tmax=429840001.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.28
user 4.97
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/200203/ft2_4FGL_J1304.3-4353_daily_bin734.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/200203/ft2_4FGL_J1304.3-4353_daily_bin734.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/200203/ft1_filteredMKT_4FGL_J1304.3-4353_daily_bin734.fits evtable="EVENTS" outfile="/scratch/kocevski/200203/ft1_filtered_4FGL_J1304.3-4353_daily_bin734.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.45
user 0.28
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/200203/ft1_filtered_4FGL_J1304.3-4353_daily_bin734.fits" evtable="EVENTS" scfile=/scratch/kocevski/200203/ft2_4FGL_J1304.3-4353_daily_bin734.fits sctable="SC_DATA" outfile=/scratch/kocevski/200203/ltcube_429580801_429840001_4FGL_J1304.3-4353_daily_bin734.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/200203/ft2_4FGL_J1304.3-4353_daily_bin734.fits
.....................!
real 15.21
user 14.86
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/200203/ft1_filtered_4FGL_J1304.3-4353_daily_bin734.fits evtable="EVENTS" scfile=/scratch/kocevski/200203/ft2_4FGL_J1304.3-4353_daily_bin734.fits sctable="SC_DATA" expcube=/scratch/kocevski/200203/ltcube_429580801_429840001_4FGL_J1304.3-4353_daily_bin734.fits outfile=/scratch/kocevski/200203/expmap_429580801_429840001_4FGL_J1304.3-4353_daily_bin734.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/200203/ltcube_429580801_429840001_4FGL_J1304.3-4353_daily_bin734.fits
.....................!
real 157.42
user 152.62
sys 4.48

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Extended source CenA Lobes in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/CenALobes.fits is the correct path to the extended template.
Extended source G296.5+10.0 in ROI with RadialDisk spatial model.
Extended source FGES J1213.3-6240 in ROI with RadialDisk spatial model.
Extended source HESS J1303-631 in ROI with RadialGaussian spatial model.
Extended source HESS J1356-645 in ROI with RadialDisk spatial model.
Extended source FGES J1409.1-6121 in ROI with RadialDisk spatial model.
Extended source HESS J1420-607 in ROI with RadialDisk spatial model.
Added 282 point sources and 7 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1304.3-4353 @ 196.088 -43.8957

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/200203/ft1_filtered_4FGL_J1304.3-4353_daily_bin734.fits scfile=/scratch/kocevski/200203/ft2_4FGL_J1304.3-4353_daily_bin734.fits outfile=/scratch/kocevski/200203/cmap_429580801_429840001_4FGL_J1304.3-4353_daily_bin734.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.088 yref=-43.8957 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.48
user 0.32
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/200203/ft1_filtered_4FGL_J1304.3-4353_daily_bin734.fits scfile=/scratch/kocevski/200203/ft2_4FGL_J1304.3-4353_daily_bin734.fits outfile=/scratch/kocevski/200203/cmap_HighResolution_429580801_429840001_4FGL_J1304.3-4353_daily_bin734.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.088 yref=-43.8957 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.49
user 0.33
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/200203/ft1_filtered_4FGL_J1304.3-4353_daily_bin734.fits evtable="EVENTS" scfile=/scratch/kocevski/200203/ft2_4FGL_J1304.3-4353_daily_bin734.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/200203/Model_4FGL_J1304.3-4353_daily_bin734.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 CenA Lobes
adding source EG_v02
adding source FGES J1213.3-6240
adding source FGES J1409.1-6121
adding source G296.5+10.0
adding source GAL_V02
adding source HESS J1303-631
adding source HESS J1356-645
adding source HESS J1420-607
Working on...
/scratch/kocevski/200203/ft1_filtered_4FGL_J1304.3-4353_daily_bin734.fits.....................!
real 153.13
user 151.68
sys 1.09

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/200203/ft1_filtered_4FGL_J1304.3-4353_daily_bin734.fits', '/scratch/kocevski/200203/ft2_4FGL_J1304.3-4353_daily_bin734.fits', expMap='/scratch/kocevski/200203/expmap_429580801_429840001_4FGL_J1304.3-4353_daily_bin734.fits', expCube='/scratch/kocevski/200203/ltcube_429580801_429840001_4FGL_J1304.3-4353_daily_bin734.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/200203/Model_4FGL_J1304.3-4353_daily_bin734.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1304.3-4353'

4FGL J1304.3-4353
   Spectrum: LogParabola
429         norm:  6.740e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
430        alpha:  1.738e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
431         beta:  9.492e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
432           Eb:  1.934e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/200203/ft1_filtered_4FGL_J1304.3-4353_daily_bin734.fits
Spacecraft file(s): /scratch/kocevski/200203/ft2_4FGL_J1304.3-4353_daily_bin734.fits
Exposure map: /scratch/kocevski/200203/expmap_429580801_429840001_4FGL_J1304.3-4353_daily_bin734.fits
Exposure cube: /scratch/kocevski/200203/ltcube_429580801_429840001_4FGL_J1304.3-4353_daily_bin734.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/200203/Model_4FGL_J1304.3-4353_daily_bin734.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) = 9650.7402781

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10202E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    117.63       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .14289E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    48.661       1.0000         .10000E-03   10000.    
     9 'norm      '    4.3599       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    25.402       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    36.204       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .58152E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    28.328       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .80696       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0943       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1014E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9650.613     FROM MIGRAD    STATUS=CONVERGED    474 CALLS     2209 TOTAL
                     EDM=   .70E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.2594        .72401E-07** at limit **
   2  Prefactor     .10000E-03    24.097       -.31102E-06** at limit **
   3  Prefactor     117.57        137.20        .46107E-06   -.14472E-05
   4  Prefactor     .10000E-03    4.0971       -.25001E-06** at limit **
   5  Prefactor     .10000E-03    24.276       -.98903E-08** at limit **
   6  Prefactor     .10000E-03    4.2469       -.11548E-06** at limit **
   7  Prefactor     .10000E-03    8.7741       -.18395E-05** at limit **
   8  Prefactor     48.822        60.715        .56385E-06    .47873E-06
   9  norm          4.3584        5.4542        .39820E-06    .92911E-05
  10  Prefactor     .10000E-03    3.6424        .11801E-06** at limit **
  11  Prefactor     .10000E-03    7.9374       -.23620E-06** at limit **
  12  norm          25.401        16.224        .70030E-07   -.28542E-05
  13  Prefactor     .10000E-03    7.0467       -.17872E-06** at limit **
  14  norm          .10000E-03    6.3994        .15896E-06** at limit **
  15  norm          .10000E-03    2.0617        .11622E-06** at limit **
  16  norm          36.207        10.019        .13058E-06    .80738E-05
  17  Prefactor     .10000E-03    6657.8       -.40105E-04** at limit **
  18  norm          28.417        36.691        .51567E-08    .34352E-05
  19  Prefactor     .10000E-03    15.252        .32796E-07** at limit **
  20  Normalizat    .80758        .32271       -.27730E-05   -.10124E-06
  21  Prefactor     1.0941        .91288E-01   -.40649E-06    .19788E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 117.575
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 48.8223
  norm       = 4.35837
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 25.4009
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 36.2066
  Prefactor  = 0.000100001
  norm       = 28.4165
  Prefactor  = 0.0001
  Normalizat = 0.807575
  Prefactor  = 1.09413
 **********
 **   18 **HESSE 
 **********

 FCN=   9650.613     FROM HESSE     STATUS=OK           309 CALLS     2518 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.2673        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    24.165        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     117.57        137.20        .18550E-03   -1.3535    
   4  Prefactor     .10000E-03    4.2102        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    24.281        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.2499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.7776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     48.822        60.840        .28742E-03   -1.4309    
   9  norm          4.3584        5.4481        .19290E-03   -1.5290    
  10  Prefactor     .10000E-03    3.6626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.9574        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          25.401        16.222        .79482E-04   -1.4700    
  13  Prefactor     .10000E-03    7.0997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    6.5246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.0717        .13781E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          36.207        10.066        .66606E-04   -1.4504    
  17  Prefactor     .10000E-03    6658.0        .18620E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          28.417        36.671        .75272E-04   -1.4641    
  19  Prefactor     .10000E-03    15.254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .80758        .34200        .63158E-03   -.99788    
  21  Prefactor     1.0941        .97538E-01    .15420E-03   -.89654    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38577e-11
Minuit parameter uncertainties:
  1  6.98592e-06
  2  4.17319e-05
  3  137.577
  4  2.04712e-05
  5  1.3024e-05
  6  5.07577e-06
  7  1.40888e-05
  8  60.9173
  9  5.44867
  10  6.82246e-06
  11  1.54321e-05
  12  16.2248
  13  2.05714e-05
  14  9.7432e-06
  15  3.82515e-06
  16  10.066
  17  0.00407258
  18  36.7
  19  4.93727e-06
  20  0.342918
  21  0.0975543
Done.

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

Extracting fit parameters...

4FGL J1304.3-4353
   Spectrum: LogParabola
429         norm:  2.540e+01  1.622e+01  1.000e-04  1.000e+04 ( 1.000e-13)
430        alpha:  1.738e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
431         beta:  9.492e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
432           Eb:  1.934e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1002    Prefactor:  1.094e+00  9.755e-02  0.000e+00  1.000e+01 ( 1.000e+00)
1003        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1004        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
990   Normalization:  8.076e-01  3.429e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.04
Ra Dec: 196.088 -43.896
Photon Index (Fixed Index): 1.74 +/- 0.00
Photon Flux (Fixed Index): 4.07e-08 +/- 2.60e-08
Energy Flux (Fixed Index): 5.50e-05 +/- 3.51e-05

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) = 9650.50444688
delta logL = 0.108731831013

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9650.49710677
delta logL = 0.116071934492

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    23.755       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1015       1.0000          .0000       5.0000    
     3 'Normalizat'    .78690       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0950       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1014E+06   .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=   9650.497     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      263 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          23.747        16.996        .41093E-03   -.16599E-06
   2  alpha         2.1026        .78018        .17274E-01    .26176E-03
   3  Normalizat    .78683        .34222        .63881E-03    .53034E-05
   4  Prefactor     1.0950        .95463E-01    .15409E-03   -.18149E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 23.7473
  alpha      = 2.1026
  Normalizat = 0.786834
  Prefactor  = 1.09499
 **********
 **   18 **HESSE 
 **********

 FCN=   9650.497     FROM HESSE     STATUS=OK            25 CALLS      288 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          23.747        16.344        .16437E-04   -1.4733    
   2  alpha         2.1026        .75018        .34549E-02   -.15964    
   3  Normalizat    .78683        .34145        .25552E-04   -1.0056    
   4  Prefactor     1.0950        .95442E-01    .61638E-05   -.89627    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0578e-11
Minuit parameter uncertainties:
  1  16.3473
  2  0.762236
  3  0.342383
  4  0.095457
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/200203': 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) = 9650.49710524
delta logL = 0.116073466812

Extracting fit parameters...

4FGL J1304.3-4353
   Spectrum: LogParabola
429         norm:  2.375e+01  1.635e+01  1.000e-04  1.000e+04 ( 1.000e-13)
430        alpha:  2.103e+00  7.622e-01  0.000e+00  5.000e+00 ( 1.000e+00)
431         beta:  9.492e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
432           Eb:  1.934e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1002    Prefactor:  1.095e+00  9.546e-02  0.000e+00  1.000e+01 ( 1.000e+00)
1003        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1004        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
990   Normalization:  7.868e-01  3.424e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.31
Ra Dec: 196.088 -43.896
Photon Index (Free Index): 2.10 +/- 0.76
Photon Flux (Free Index): 6.98e-08 +/- 8.50e-08
Energy Flux (Free Index): 4.36e-05 +/- 2.89e-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/200203/cmap_HighResolution_429580801_429840001_4FGL_J1304.3-4353_daily_bin734.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.07e-08', energy_flux2='4.36e-05', photon_flux_error='2.60e-08', dlogl='1.16e-01', energy_flux='5.50e-05', photon_flux2='6.98e-08', job_status='DONE', time_completed='2021-09-06 20:36:45.887160', photon_index_error2='0.76', photon_index2='2.10', ts='8.04', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', energy_flux_error2='2.89e-05', EG='0.81', time_epoch_completed='1630985805.89', return_code='0', job_id='200203', GAL2='1.09', EG2='0.79', return_code2='0', energy_flux_error='3.51e-05', photon_flux_error2='8.50e-08', ts2='8.31', photon_index='1.74' WHERE bin_id='734' AND source_name='4FGL J1304.3-4353' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 20:36:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 200203: <4FGL_J1304.3-4353_daily_bin734> in cluster <slac> Done

Job <4FGL_J1304.3-4353_daily_bin734> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Sep  6 20:20:39 2021
Job was executed on host(s) <bullet0189>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 20:21:06 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 20:21:06 2021
Terminated at Mon Sep  6 20:36:46 2021
Results reported at Mon Sep  6 20:36:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.3-4353_daily_bin734 196.088 -43.8957 429580801 429840001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1304.3-4353 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   921.00 sec.
    Max Memory :                                 1261 MB
    Average Memory :                             370.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   940 sec.
    Turnaround time :                            967 sec.

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

