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


Performing analysis on: 4FGL_J1304.3-4353_daily_bin1277
RA = 196.088, Dec = -43.8957
tmin = 570326401, tmax = 570585601
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='205470', job_status='RUN', time_executed='2021-09-06 20:41:00.205362', time_epoch_executed='1630986060.21' WHERE source_name='4FGL J1304.3-4353' and cadence='daily' and bin_id='1277'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/205470

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/205470/ft1_4FGL_J1304.3-4353_daily_bin1277.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/205470/ft2_4FGL_J1304.3-4353_daily_bin1277.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/205470/ft1_4FGL_J1304.3-4353_daily_bin1277.fits outfile=/scratch/kocevski/205470/ft1_filteredMKT_4FGL_J1304.3-4353_daily_bin1277.fits ra=196.088 dec=-43.8957 rad=12.0 tmin=570326401.0 tmax=570585601.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 3.56
user 3.30
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/205470/ft2_4FGL_J1304.3-4353_daily_bin1277.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/205470/ft1_filteredMKT_4FGL_J1304.3-4353_daily_bin1277.fits evtable="EVENTS" outfile="/scratch/kocevski/205470/ft1_filtered_4FGL_J1304.3-4353_daily_bin1277.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.53
user 0.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/205470/ft1_filtered_4FGL_J1304.3-4353_daily_bin1277.fits" evtable="EVENTS" scfile=/scratch/kocevski/205470/ft2_4FGL_J1304.3-4353_daily_bin1277.fits sctable="SC_DATA" outfile=/scratch/kocevski/205470/ltcube_570326401_570585601_4FGL_J1304.3-4353_daily_bin1277.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/205470/ft2_4FGL_J1304.3-4353_daily_bin1277.fits
.....................!
real 17.52
user 17.07
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/205470/ft1_filtered_4FGL_J1304.3-4353_daily_bin1277.fits evtable="EVENTS" scfile=/scratch/kocevski/205470/ft2_4FGL_J1304.3-4353_daily_bin1277.fits sctable="SC_DATA" expcube=/scratch/kocevski/205470/ltcube_570326401_570585601_4FGL_J1304.3-4353_daily_bin1277.fits outfile=/scratch/kocevski/205470/expmap_570326401_570585601_4FGL_J1304.3-4353_daily_bin1277.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/205470/ltcube_570326401_570585601_4FGL_J1304.3-4353_daily_bin1277.fits
.....................!
real 194.30
user 187.80
sys 5.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
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/205470/ft1_filtered_4FGL_J1304.3-4353_daily_bin1277.fits scfile=/scratch/kocevski/205470/ft2_4FGL_J1304.3-4353_daily_bin1277.fits outfile=/scratch/kocevski/205470/cmap_570326401_570585601_4FGL_J1304.3-4353_daily_bin1277.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.56
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/205470/ft1_filtered_4FGL_J1304.3-4353_daily_bin1277.fits scfile=/scratch/kocevski/205470/ft2_4FGL_J1304.3-4353_daily_bin1277.fits outfile=/scratch/kocevski/205470/cmap_HighResolution_570326401_570585601_4FGL_J1304.3-4353_daily_bin1277.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.58
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/205470/ft1_filtered_4FGL_J1304.3-4353_daily_bin1277.fits evtable="EVENTS" scfile=/scratch/kocevski/205470/ft2_4FGL_J1304.3-4353_daily_bin1277.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/205470/Model_4FGL_J1304.3-4353_daily_bin1277.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/205470/ft1_filtered_4FGL_J1304.3-4353_daily_bin1277.fits.....................!
real 90.58
user 89.08
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/205470/ft1_filtered_4FGL_J1304.3-4353_daily_bin1277.fits', '/scratch/kocevski/205470/ft2_4FGL_J1304.3-4353_daily_bin1277.fits', expMap='/scratch/kocevski/205470/expmap_570326401_570585601_4FGL_J1304.3-4353_daily_bin1277.fits', expCube='/scratch/kocevski/205470/ltcube_570326401_570585601_4FGL_J1304.3-4353_daily_bin1277.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/205470/Model_4FGL_J1304.3-4353_daily_bin1277.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/205470/ft1_filtered_4FGL_J1304.3-4353_daily_bin1277.fits
Spacecraft file(s): /scratch/kocevski/205470/ft2_4FGL_J1304.3-4353_daily_bin1277.fits
Exposure map: /scratch/kocevski/205470/expmap_570326401_570585601_4FGL_J1304.3-4353_daily_bin1277.fits
Exposure cube: /scratch/kocevski/205470/ltcube_570326401_570585601_4FGL_J1304.3-4353_daily_bin1277.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/205470/Model_4FGL_J1304.3-4353_daily_bin1277.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) = 4237.00855983

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.109       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.455       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.078       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10170E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    6.2634       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.064       1.0000         .10000E-03   10000.    
    12 'norm      '    40.015       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    6.3527       1.0000         .10000E-03   10000.    
    17 'Prefactor '    512.58       1.0000         .10000E-03   10000.    
    18 'norm      '    22.396       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    2.2257       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .84254       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=   4236.942     FROM MIGRAD    STATUS=CONVERGED    433 CALLS     2226 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.289       -.13848E-05** at limit **
   2  Prefactor     11.098        73.893       -.12047E-04   -.39264E-04
   3  Prefactor     .10000E-03    192.96       -.87154E-04** at limit **
   4  Prefactor     .10000E-03    9.5365        .16936E-05** at limit **
   5  Prefactor     15.396        372.65       -.13886E-03   -.48631E-06
   6  Prefactor     .10000E-03    13.331        .72717E-06** at limit **
   7  Prefactor     12.073        31.394        .78062E-05   -.11198E-03
   8  Prefactor     .10000E-03    113.28        .96925E-04** at limit **
   9  norm          6.2636        6.2731        .92053E-07    .51812E-05
  10  Prefactor     .10000E-03    7.0573        .14738E-06** at limit **
  11  Prefactor     13.065        30.136        .35858E-07   -.34265E-04
  12  norm          40.015        34.238       -.32388E-06   -.58376E-05
  13  Prefactor     .10000E-03    6.3620       -.30483E-07** at limit **
  14  norm          .10000E-03    4.2399        .57409E-07** at limit **
  15  norm          .10000E-03    8.3250       -.45349E-06** at limit **
  16  norm          6.3525        8.2068       -.83785E-06   -.82696E-03
  17  Prefactor     512.85        602.35        .12193E-03    .31367E-06
  18  norm          22.396        39.020       -.62924E-06   -.34551E-05
  19  Prefactor     .10000E-03    89.012       -.42959E-04** at limit **
  20  Normalizat    2.2256        .47526       -.51999E-05    .40589E-04
  21  Prefactor     .84258        .13109        .11412E-05   -.24342E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 11.0976
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 15.3958
  Prefactor  = 0.0001
  Prefactor  = 12.0725
  Prefactor  = 0.0001
  norm       = 6.26359
  Prefactor  = 0.0001
  Prefactor  = 13.0653
  norm       = 40.0146
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 6.35255
  Prefactor  = 512.849
  norm       = 22.3962
  Prefactor  = 0.0001
  Normalizat = 2.2256
  Prefactor  = 0.842577
 **********
 **   18 **HESSE 
 **********

 FCN=   4236.942     FROM HESSE     STATUS=OK           311 CALLS     2537 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     11.098        72.697        .12020E-03   -1.5042    
   3  Prefactor     .10000E-03    192.92        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.6469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     15.396        376.36        .10188E-03   -1.4923    
   6  Prefactor     .10000E-03    13.353        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.073        31.185        .11526E-03   -1.5013    
   8  Prefactor     .10000E-03    113.15        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          6.2636        6.2768        .15874E-03   -1.5207    
  10  Prefactor     .10000E-03    7.0747        .16888E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     13.065        30.129        .11082E-03   -1.4985    
  12  norm          40.015        34.231        .63366E-04   -1.4442    
  13  Prefactor     .10000E-03    6.3676        .16033E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    4.2419        .13090E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    8.4246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          6.3525        8.2264        .79625E-03   -1.5204    
  17  Prefactor     512.85        602.28        .90693E-04   -1.1139    
  18  norm          22.396        39.021        .84639E-04   -1.4761    
  19  Prefactor     .10000E-03    89.038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    2.2256        .55162        .44649E-03   -.59009    
  21  Prefactor     .84258        .15271        .18362E-03   -.98177    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16177e-09
Minuit parameter uncertainties:
  1  5.13514e-06
  2  56.908
  3  5.59207e-05
  4  0.000175042
  5  153.334
  6  1.41991e-05
  7  31.2273
  8  0.000206109
  9  6.2775
  10  4.29509e-06
  11  30.1643
  12  34.248
  13  5.68728e-06
  14  2.73099e-06
  15  1.41585e-05
  16  8.2279
  17  610.024
  18  39.0658
  19  6.31682e-05
  20  0.553253
  21  0.152785
Done.

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

Extracting fit parameters...

4FGL J1304.3-4353
   Spectrum: LogParabola
429         norm:  4.001e+01  3.425e+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:  8.426e-01  1.528e-01  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:  2.226e+00  5.533e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.32
Ra Dec: 196.088 -43.896
Photon Index (Fixed Index): 1.74 +/- 0.00
Photon Flux (Fixed Index): 6.41e-08 +/- 5.49e-08
Energy Flux (Fixed Index): 8.66e-05 +/- 7.41e-05

TS (Fixed Index): 3.32
Ra Dec: 196.088 -43.896
Photon Flux Upper Limit: 2.12e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.86e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/205470/likelihoodResults_570326401_570585601_4FGL_J1304.3-4353_daily_bin1277.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) = 4235.76812758
delta logL = 1.17429254391

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4235.73849044
delta logL = 1.20392968435

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    17.466       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8989       1.0000          .0000       5.0000    
     3 'Normalizat'    2.0652       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85859       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=   4235.738     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      296 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          17.458        30.750        .95835E-04    .34402E-04
   2  alpha         2.8993        .91184        .67686E-02    .16707E-04
   3  Normalizat    2.0639        .55812        .45713E-03    .20250E-03
   4  Prefactor     .85887        .15058        .18166E-03    .80682E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 17.4575
  alpha      = 2.89928
  Normalizat = 2.06387
  Prefactor  = 0.858872
 **********
 **   18 **HESSE 
 **********

 FCN=   4235.738     FROM HESSE     STATUS=OK            25 CALLS      321 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          17.458        23.984        .38334E-05   -1.4872    
   2  alpha         2.8993        .71706        .27075E-03    .16040    
   3  Normalizat    2.0639        .55237        .91426E-04   -.62959    
   4  Prefactor     .85887        .14976        .36331E-04   -.97593    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.8219e-10
Minuit parameter uncertainties:
  1  23.9968
  2  0.727551
  3  0.554112
  4  0.149835
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/205470': 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) = 4235.73848739
delta logL = 1.20393274289

Extracting fit parameters...

4FGL J1304.3-4353
   Spectrum: LogParabola
429         norm:  1.746e+01  2.400e+01  1.000e-04  1.000e+04 ( 1.000e-13)
430        alpha:  2.899e+00  7.276e-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:  8.589e-01  1.498e-01  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:  2.064e+00  5.541e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.75
Ra Dec: 196.088 -43.896
Photon Index (Free Index): 2.90 +/- 0.73
Photon Flux (Free Index): 2.80e-07 +/- 2.05e-07
Energy Flux (Free Index): 6.95e-05 +/- 4.05e-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/205470/cmap_HighResolution_570326401_570585601_4FGL_J1304.3-4353_daily_bin1277.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.86e-04', comment='SUCCESS', photon_flux='6.41e-08', energy_flux2='6.95e-05', photon_flux_error='5.49e-08', dlogl='1.20e+00', energy_flux='8.66e-05', photon_flux2='2.80e-07', job_status='DONE', time_completed='2021-09-06 20:53:50.026361', photon_index_error2='0.73', photon_index2='2.90', ts='3.32', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='2.12e-07', energy_flux_error2='4.05e-05', EG='2.23', time_epoch_completed='1630986830.03', return_code='0', job_id='205470', GAL2='0.86', EG2='2.06', return_code2='0', energy_flux_error='7.41e-05', photon_flux_error2='2.05e-07', ts2='5.75', photon_index='1.74' WHERE bin_id='1277' AND source_name='4FGL J1304.3-4353' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 20:53:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 205470: <4FGL_J1304.3-4353_daily_bin1277> in cluster <slac> Done

Job <4FGL_J1304.3-4353_daily_bin1277> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 20:40:26 2021
Job was executed on host(s) <bullet0205>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 20:40:29 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:40:29 2021
Terminated at Mon Sep  6 20:53:50 2021
Results reported at Mon Sep  6 20:53:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.3-4353_daily_bin1277 196.088 -43.8957 570326401 570585601 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 :                                   762.29 sec.
    Max Memory :                                 1260 MB
    Average Memory :                             347.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   801 sec.
    Turnaround time :                            804 sec.

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

