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


Performing analysis on: 4FGL_J1304.3-4353_daily_bin1305
RA = 196.088, Dec = -43.8957
tmin = 577584001, tmax = 577843201
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='205514', job_status='RUN', time_executed='2021-09-06 20:41:45.572364', time_epoch_executed='1630986105.57' WHERE source_name='4FGL J1304.3-4353' and cadence='daily' and bin_id='1305'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/205514

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/205514/ft1_4FGL_J1304.3-4353_daily_bin1305.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/205514/ft2_4FGL_J1304.3-4353_daily_bin1305.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/205514/ft1_4FGL_J1304.3-4353_daily_bin1305.fits outfile=/scratch/kocevski/205514/ft1_filteredMKT_4FGL_J1304.3-4353_daily_bin1305.fits ra=196.088 dec=-43.8957 rad=12.0 tmin=577584001.0 tmax=577843201.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 2.78
user 2.58
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/205514/ft2_4FGL_J1304.3-4353_daily_bin1305.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/205514/ft1_filteredMKT_4FGL_J1304.3-4353_daily_bin1305.fits evtable="EVENTS" outfile="/scratch/kocevski/205514/ft1_filtered_4FGL_J1304.3-4353_daily_bin1305.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/205514/ft1_filtered_4FGL_J1304.3-4353_daily_bin1305.fits" evtable="EVENTS" scfile=/scratch/kocevski/205514/ft2_4FGL_J1304.3-4353_daily_bin1305.fits sctable="SC_DATA" outfile=/scratch/kocevski/205514/ltcube_577584001_577843201_4FGL_J1304.3-4353_daily_bin1305.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/205514/ft2_4FGL_J1304.3-4353_daily_bin1305.fits
.....................!
real 15.23
user 14.88
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/205514/ft1_filtered_4FGL_J1304.3-4353_daily_bin1305.fits evtable="EVENTS" scfile=/scratch/kocevski/205514/ft2_4FGL_J1304.3-4353_daily_bin1305.fits sctable="SC_DATA" expcube=/scratch/kocevski/205514/ltcube_577584001_577843201_4FGL_J1304.3-4353_daily_bin1305.fits outfile=/scratch/kocevski/205514/expmap_577584001_577843201_4FGL_J1304.3-4353_daily_bin1305.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/205514/ltcube_577584001_577843201_4FGL_J1304.3-4353_daily_bin1305.fits
.....................!
real 190.39
user 185.93
sys 4.01

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
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/205514/ft1_filtered_4FGL_J1304.3-4353_daily_bin1305.fits scfile=/scratch/kocevski/205514/ft2_4FGL_J1304.3-4353_daily_bin1305.fits outfile=/scratch/kocevski/205514/cmap_577584001_577843201_4FGL_J1304.3-4353_daily_bin1305.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/205514/ft1_filtered_4FGL_J1304.3-4353_daily_bin1305.fits scfile=/scratch/kocevski/205514/ft2_4FGL_J1304.3-4353_daily_bin1305.fits outfile=/scratch/kocevski/205514/cmap_HighResolution_577584001_577843201_4FGL_J1304.3-4353_daily_bin1305.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.55
user 0.41
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/205514/ft1_filtered_4FGL_J1304.3-4353_daily_bin1305.fits evtable="EVENTS" scfile=/scratch/kocevski/205514/ft2_4FGL_J1304.3-4353_daily_bin1305.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/205514/Model_4FGL_J1304.3-4353_daily_bin1305.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/205514/ft1_filtered_4FGL_J1304.3-4353_daily_bin1305.fits.............!
real 17.07
user 15.83
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/205514/ft1_filtered_4FGL_J1304.3-4353_daily_bin1305.fits', '/scratch/kocevski/205514/ft2_4FGL_J1304.3-4353_daily_bin1305.fits', expMap='/scratch/kocevski/205514/expmap_577584001_577843201_4FGL_J1304.3-4353_daily_bin1305.fits', expCube='/scratch/kocevski/205514/ltcube_577584001_577843201_4FGL_J1304.3-4353_daily_bin1305.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/205514/Model_4FGL_J1304.3-4353_daily_bin1305.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/205514/ft1_filtered_4FGL_J1304.3-4353_daily_bin1305.fits
Spacecraft file(s): /scratch/kocevski/205514/ft2_4FGL_J1304.3-4353_daily_bin1305.fits
Exposure map: /scratch/kocevski/205514/expmap_577584001_577843201_4FGL_J1304.3-4353_daily_bin1305.fits
Exposure cube: /scratch/kocevski/205514/ltcube_577584001_577843201_4FGL_J1304.3-4353_daily_bin1305.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/205514/Model_4FGL_J1304.3-4353_daily_bin1305.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 168.637044118

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 168.460531301

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .45880       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.4568       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.5355       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.9806       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.1850       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.9976       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.8953       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.1973       1.0000         .10000E-03   10000.    
     9 'norm      '    1.8971       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.9453       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.8518       1.0000         .10000E-03   10000.    
    12 'norm      '    6.7475       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.7576       1.0000         .10000E-03   10000.    
    14 'norm      '    .18616E-02   1.0000         .10000E-03   10000.    
    15 'norm      '    5.4290       1.0000         .10000E-03   10000.    
    16 'norm      '    .13669E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.8016       1.0000         .10000E-03   10000.    
    18 'norm      '    7.4011       1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.6861       1.0000         .10000E-03   10000.    
    20 'Normalizat'    2.0018       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .26100       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1014E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   163.3198     FROM MIGRAD    STATUS=CONVERGED    273 CALLS      455 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    157.32       -.52541E-05** at limit **
   2  Prefactor     .10017E-03    9103.3        .14534E-03** at limit **
   3  Prefactor     .10086E-03    7488.0        .17310E-03** at limit **
   4  Prefactor     .10001E-03    1430.6        .16542E-04** at limit **
   5  Prefactor    10000.0        5009.4        .29853E-04** at limit **
   6  Prefactor    10000.0        7223.7        .96200E-04** at limit **
   7  Prefactor    10000.0        7365.9       -.10342E-03** at limit **
   8  Prefactor    10000.0        9556.7        .14233E-03** at limit **
   9  norm          1.8971        6678.2         .0000         .0000    
  10  Prefactor     1.9453        6677.4         .0000         .0000    
  11  Prefactor    10000.0        6962.6        .17790E-04** at limit **
  12  norm         10000.0        6651.2       -.55176E-03** at limit **
  13  Prefactor    10000.0        9883.6        .19806E-03** at limit **
  14  norm          .10000E-03    42.079       -.17945E-05** at limit **
  15  norm          5.4290        6631.5         .0000         .0000    
  16  norm          .10000E-03    23.601        .11669E-05** at limit **
  17  Prefactor     .10015E-03    9663.7       -.15195E-03** at limit **
  18  norm          .10000E-03    7219.8        .39158E-04** at limit **
  19  Prefactor     .10012E-03    6154.6       -.26901E-04** at limit **
  20  Normalizat    .10000E-01    9.0515        .11577E-03** at limit **
  21  Prefactor     .36624        .16227       -.60951E-05    .68627E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Prefactor  = 0.000100172
  Prefactor  = 0.000100861
  Prefactor  = 0.000100007
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 1.8971
  Prefactor  = 1.9453
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 10000
  norm       = 0.0001
  norm       = 5.42897
  norm       = 0.0001
  Prefactor  = 0.000100147
  norm       = 0.000100002
  Prefactor  = 0.000100124
  Normalizat = 0.01
  Prefactor  = 0.366238
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   163.3198     FROM HESSE     STATUS=FAILED        41 CALLS      496 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    162.09        .11101E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10017E-03    9159.3        .34462E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10086E-03    7380.0        .42691E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    1471.5        .58790E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor    10000.0        5038.9        .37411E-02   -4.7124    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor    10000.0        7232.4        .73265E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor    10000.0        7332.8        .75545E-02   -4.7124    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor    10000.0        9582.9        .33038E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          570.70        568.66         .0000       -1.5432    
  10  Prefactor     1.9453        1.0376         .0000       -1.5429    
  11  Prefactor    10000.0        .14665        .17790E-04   -4.7124    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm         10000.0        .37282E-01   -.55176E-03   -10.996    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor    10000.0        .93883E-01    .19806E-03   -10.996    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .25736       -.17945E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.4290        1.0043         .0000       -1.5242    
  16  norm          .10000E-03    .20571        .11669E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10015E-03    .25598E-01   -.15195E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .33960E-01    .39158E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10012E-03    .28903E-01   -.26901E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .10000E-01    .16599        .11577E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .36624        .66530       -.60951E-05   -1.1857    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.72333e-10
Minuit parameter uncertainties:
  1  0.00144585
  2  0.0953468
  3  0.441823
  4  0.00680252
  5  0.279651
  6  0.0761797
  7  0.00480727
  8  0.0890631
  9  1.03981
  10  1.03758
  11  0.000114314
  12  0.000974065
  13  7.34685e-05
  14  1.29093e-05
  15  1.0043
  16  1.1821e-05
  17  0.000122524
  18  1.83386e-05
  19  0.000119528
  20  2.68468e-05
  21  0.680063
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 163.319782464

Extracting fit parameters...

4FGL J1304.3-4353
   Spectrum: LogParabola
429         norm:  1.000e+04  9.741e-04  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:  3.662e-01  6.801e-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:  1.000e-02  2.685e-05  1.000e-02  1.000e+01 ( 1.000e+00)

calc_int error: parameter max 10000.0 is not large enough
delta logLike = 3.41143220339e-08

TS (Fixed Index): 0.07
Ra Dec: 196.088 -43.896
Photon Flux Upper Limit: -1.00e+00 ph cm-2 s-1
Energy Flux Upper Limit: -1.35e+03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/205514/likelihoodResults_577584001_577843201_4FGL_J1304.3-4353_daily_bin1305.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) = 159.002156756
delta logL = 4.31762570712

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 159.00123718
delta logL = 4.31854528389

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'alpha     '    5.0000       1.0000          .0000       5.0000    
 **********
 **   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.

 FCN=   159.0012     FROM MIGRAD    STATUS=CONVERGED     11 CALLS       51 TOTAL
                     EDM=   .11E-17    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1    alpha       5.0000        .21355        .11612    ** at limit **
                               ERR DEF=  .500    
Final values: 
  alpha      = 5
 **********
 **   18 **HESSE 
 **********

 FCN=   159.0012     FROM HESSE     STATUS=OK             5 CALLS       56 TOTAL
                     EDM=   .11E-17    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1    alpha       5.0000        .21326        .25674E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14668e-18
Minuit parameter uncertainties:
  1  4.61817e-10
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/205514': 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) = 159.00123718
delta logL = 4.31854528389

Extracting fit parameters...

4FGL J1304.3-4353
   Spectrum: LogParabola
429         norm:  1.000e+04  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13) fixed
430        alpha:  5.000e+00  4.618e-10  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:  3.657e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
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:  1.001e-02  0.000e+00  1.000e-02  1.000e+01 ( 1.000e+00) fixed


TS (Free Index): 8.71
Ra Dec: 196.088 -43.896
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 3.39e-02 +/- 4.18e-11
Energy Flux (Free Index): 4.70e+00 +/- 5.58e-09

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/205514/cmap_HighResolution_577584001_577843201_4FGL_J1304.3-4353_daily_bin1305.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='-1.35e+03', comment='SUCCESS', energy_flux2='4.70e+00', dlogl='4.32e+00', photon_flux2='3.39e-02', job_status='DONE', time_completed='2021-09-06 20:48:03.055891', photon_index_error2='0.00', photon_index2='5.00', ts='0.07', fit_tolerance='1e-08', GAL='0.37', photon_index_error='0.00', photon_flux_upper_limit='-1.00e+00', energy_flux_error2='5.58e-09', EG='0.01', time_epoch_completed='1630986483.06', return_code='101', job_id='205514', GAL2='0.37', EG2='0.01', return_code2='0', photon_flux_error2='4.18e-11', ts2='8.71', photon_index='1.74' WHERE bin_id='1305' AND source_name='4FGL J1304.3-4353' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 20:48:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0304>
Subject: Job 205514: <4FGL_J1304.3-4353_daily_bin1305> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.3-4353_daily_bin1305 196.088 -43.8957 577584001 577843201 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 :                                   352.00 sec.
    Max Memory :                                 1259 MB
    Average Memory :                             414.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   450 sec.
    Turnaround time :                            454 sec.

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

