/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 18 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 = 7350
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1304.3-4353_daily_bin1603
RA = 196.088, Dec = -43.8957
tmin = 654825601, tmax = 655084801
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='913896', job_status='RUN', time_executed='2021-10-05 00:03:25.661038', time_epoch_executed='1633417405.66' WHERE source_name='4FGL J1304.3-4353' and cadence='daily' and bin_id='1603'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/913896

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/913896/ft1_4FGL_J1304.3-4353_daily_bin1603.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/913896/ft2_4FGL_J1304.3-4353_daily_bin1603.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/913896/ft1_4FGL_J1304.3-4353_daily_bin1603.fits outfile=/scratch/kocevski/913896/ft1_filteredMKT_4FGL_J1304.3-4353_daily_bin1603.fits ra=196.088 dec=-43.8957 rad=12.0 tmin=654825601.0 tmax=655084801.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.17
user 2.80
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/913896/ft1_filtered_4FGL_J1304.3-4353_daily_bin1603.fits" evtable="EVENTS" scfile=/scratch/kocevski/913896/ft2_4FGL_J1304.3-4353_daily_bin1603.fits sctable="SC_DATA" outfile=/scratch/kocevski/913896/ltcube_654825601_655084801_4FGL_J1304.3-4353_daily_bin1603.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/913896/ft2_4FGL_J1304.3-4353_daily_bin1603.fits
.....................!
real 12.02
user 11.64
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/913896/ft1_filtered_4FGL_J1304.3-4353_daily_bin1603.fits evtable="EVENTS" scfile=/scratch/kocevski/913896/ft2_4FGL_J1304.3-4353_daily_bin1603.fits sctable="SC_DATA" expcube=/scratch/kocevski/913896/ltcube_654825601_655084801_4FGL_J1304.3-4353_daily_bin1603.fits outfile=/scratch/kocevski/913896/expmap_654825601_655084801_4FGL_J1304.3-4353_daily_bin1603.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/913896/ltcube_654825601_655084801_4FGL_J1304.3-4353_daily_bin1603.fits
.....................!
real 189.20
user 185.17
sys 3.61

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/913896/ft1_filtered_4FGL_J1304.3-4353_daily_bin1603.fits scfile=/scratch/kocevski/913896/ft2_4FGL_J1304.3-4353_daily_bin1603.fits outfile=/scratch/kocevski/913896/cmap_654825601_655084801_4FGL_J1304.3-4353_daily_bin1603.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/913896/ft1_filtered_4FGL_J1304.3-4353_daily_bin1603.fits scfile=/scratch/kocevski/913896/ft2_4FGL_J1304.3-4353_daily_bin1603.fits outfile=/scratch/kocevski/913896/cmap_HighResolution_654825601_655084801_4FGL_J1304.3-4353_daily_bin1603.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.53
user 0.36
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/913896/ft1_filtered_4FGL_J1304.3-4353_daily_bin1603.fits evtable="EVENTS" scfile=/scratch/kocevski/913896/ft2_4FGL_J1304.3-4353_daily_bin1603.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/913896/Model_4FGL_J1304.3-4353_daily_bin1603.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/913896/ft1_filtered_4FGL_J1304.3-4353_daily_bin1603.fits......................!
real 32.76
user 30.99
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10260E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    85.139       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10360E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    10000.       1.0000         .10000E-03   10000.    
    10 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2656.7       1.0000         .10000E-03   10000.    
    12 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    14 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10261E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    325.43       1.0000         .10000E-03   10000.    
    17 'Prefactor '    650.22       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    21 'Prefactor '    .34909       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=   858.9200     FROM MIGRAD    STATUS=CONVERGED     99 CALLS     2342 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .25667E-03    108.23        .23790E-05** at limit **
   2  Prefactor     .10056E-03    45.866       -.12761E-05** at limit **
   3  Prefactor     .12032E-03    91.999       -.33899E-05** at limit **
   4  Prefactor     .10000E-03    4.9525       -.56366E-07** at limit **
   5  Prefactor     85.145        1.3241       -.20218E-07   -.93486E-03
   6  Prefactor     .10000E-03    14.666        .96099E-07** at limit **
   7  Prefactor     .10000E-03    10.435        .95448E-06** at limit **
   8  Prefactor     .10015E-03    49.847        .13066E-05** at limit **
   9  norm         10000.0        22.867       -.20382E-05   -.12922E-02
  10  Prefactor    10000.0        86.250       -.37452E-05** at limit **
  11  Prefactor     2656.7        1.0006        .17013E-09    .21761E-03
  12  norm          .11801E-03    127.73        .37656E-05** at limit **
  13  Prefactor    10000.0        126.84       -.36196E-05** at limit **
  14  norm          .10035E-03    79.732       -.27727E-05** at limit **
  15  norm          .13063E-02    71.640        .34721E-05** at limit **
  16  norm          325.43        1.0148       -.21042E-08   -.42541E-03
  17  Prefactor     650.22        1.0246        .19855E-08    .78540E-03
  18  norm          .10045E-03    45.528        .20691E-05** at limit **
  19  Prefactor     .10020E-03    50.142        .13247E-05** at limit **
  20  Normalizat    .10000E-01    .20906        .84459E-06** at limit **
  21  Prefactor     .34903        .83947E-01   -.21902E-06   -.80807E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000256673
  Prefactor  = 0.000100556
  Prefactor  = 0.000120318
  Prefactor  = 0.0001
  Prefactor  = 85.1446
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100148
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 2656.72
  norm       = 0.000118009
  Prefactor  = 10000
  norm       = 0.000100348
  norm       = 0.00130634
  norm       = 325.432
  Prefactor  = 650.222
  norm       = 0.00010045
  Prefactor  = 0.000100202
  Normalizat = 0.01
  Prefactor  = 0.349028
 **********
 **   18 **HESSE 
 **********

 FCN=   858.9200     FROM HESSE     STATUS=OK           343 CALLS     2685 TOTAL
                     EDM=   .44E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .25667E-03    331.26        .90712E-02   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10056E-03    45.984        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .12032E-03    160.81        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.9108        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     85.145        120.42        .10884E-02   -1.3860    
   6  Prefactor     .10000E-03    14.667        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.440        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10015E-03    99.824        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm         10000.0        2290.0        .90712E-02    1.5695    
  10  Prefactor    10000.0        937.19        .90712E-02    1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2656.7        1712.5        .22640E-03   -.48777    
  12  norm          .11801E-03    481.31        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor    10000.0        455.54        .90712E-02    1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10035E-03    184.06        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .13063E-02    1097.1        .90712E-02   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          325.43        178.90        .56358E-03   -1.2080    
  17  Prefactor     650.22        1391.3        .40557E-03   -1.0551    
  18  norm          .10045E-03    45.639        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10020E-03    99.689        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .10000E-01    .20322        .18785       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .34903        .97256E-01    .37513E-01   -1.1949    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.41602e-06
Minuit parameter uncertainties:
  1  0.458186
  2  0.0101214
  3  0.114629
  4  9.53685e-06
  5  120.772
  6  2.78668e-05
  7  0.000234504
  8  0.00769435
  9  6.4223
  10  1.68243
  11  1758.58
  12  0.187727
  13  0.265794
  14  0.0160477
  15  2.34519
  16  179.2
  17  1478.31
  18  0.00907117
  19  0.00898301
  20  9.18389e-07
  21  0.0973018
Done.

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

Extracting fit parameters...

4FGL J1304.3-4353
   Spectrum: LogParabola
429         norm:  1.180e-04  1.877e-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:  3.490e-01  9.730e-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:  1.000e-02  9.184e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 196.088 -43.896
Photon Flux Upper Limit: 4.62e-06 ph cm-2 s-1
Energy Flux Upper Limit: 6.24e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/913896/likelihoodResults_654825601_655084801_4FGL_J1304.3-4353_daily_bin1603.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) = 858.920013275
delta logL = -1.00772402902e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 858.920012935
delta logL = -9.73660496584e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .96235E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7379       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .34905       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.

 FCN=   858.9200     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      199 TOTAL
                     EDM=   .41E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    403.75        .90725E-02** at limit **
   2  alpha         1.7351        3.3256        .43875        .25477E-07
   3  Normalizat    .10000E-01    .18730        .18785    ** at limit **
   4  Prefactor     .34903        .86087E-01    .37512E-01   -.43631E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.73515
  Normalizat = 0.01
  Prefactor  = 0.349028
 **********
 **   18 **HESSE 
 **********

 FCN=   858.9200     FROM HESSE     STATUS=OK            31 CALLS      230 TOTAL
                     EDM=   .44E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    403.71        .18145E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7351        3.3256        .50000       -.31093    
   3  Normalizat    .10000E-01    .19295        .79569E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .34903        .83867E-01    .13108E-03   -1.1949    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.39057e-12
Minuit parameter uncertainties:
  1  0.000256568
  2  2.38015
  3  2.03789e-07
  4  0.083896
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/913896': 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) = 858.92000318
delta logL = 1.84390955837e-08

Extracting fit parameters...

4FGL J1304.3-4353
   Spectrum: LogParabola
429         norm:  1.000e-04  2.566e-04  1.000e-04  1.000e+04 ( 1.000e-13)
430        alpha:  1.735e+00  2.380e+00  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.490e-01  8.390e-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:  1.000e-02  2.038e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 196.088 -43.896

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/913896/cmap_HighResolution_654825601_655084801_4FGL_J1304.3-4353_daily_bin1603.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.24e-03', job_status='DONE', photon_flux_upper_limit='4.62e-06', time_completed='2021-10-05 00:10:38.235781', job_id='913896', GAL2='0.35', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1633417838.24', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.35', dlogl='1.84e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.74' WHERE bin_id='1603' AND source_name='4FGL J1304.3-4353' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Oct  5 00:10:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 913896: <4FGL_J1304.3-4353_daily_bin1603> in cluster <slac> Done

Job <4FGL_J1304.3-4353_daily_bin1603> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Oct  5 00:02:32 2021
Job was executed on host(s) <bullet0278>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Oct  5 00:02:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Oct  5 00:02:33 2021
Terminated at Tue Oct  5 00:10:38 2021
Results reported at Tue Oct  5 00:10:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.3-4353_daily_bin1603 196.088 -43.8957 654825601 655084801 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 :                                   428.27 sec.
    Max Memory :                                 1097 MB
    Average Memory :                             316.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   485 sec.
    Turnaround time :                            486 sec.

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

