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


Performing analysis on: 4FGL_J1304.6-0348_daily_bin726
RA = 196.172, Dec = -3.8139
tmin = 427507201, tmax = 427766401
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='212631', job_status='RUN', time_executed='2021-09-06 21:06:39.791971', time_epoch_executed='1630987599.79' WHERE source_name='4FGL J1304.6-0348' and cadence='daily' and bin_id='726'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/212631

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/212631/ft1_4FGL_J1304.6-0348_daily_bin726.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/212631/ft2_4FGL_J1304.6-0348_daily_bin726.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/212631/ft1_4FGL_J1304.6-0348_daily_bin726.fits outfile=/scratch/kocevski/212631/ft1_filteredMKT_4FGL_J1304.6-0348_daily_bin726.fits ra=196.172 dec=-3.8139 rad=12.0 tmin=427507201.0 tmax=427766401.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.47
user 5.22
sys 0.23

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/212631/ft1_filtered_4FGL_J1304.6-0348_daily_bin726.fits" evtable="EVENTS" scfile=/scratch/kocevski/212631/ft2_4FGL_J1304.6-0348_daily_bin726.fits sctable="SC_DATA" outfile=/scratch/kocevski/212631/ltcube_427507201_427766401_4FGL_J1304.6-0348_daily_bin726.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/212631/ft2_4FGL_J1304.6-0348_daily_bin726.fits
.....................!
real 15.66
user 15.30
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/212631/ft1_filtered_4FGL_J1304.6-0348_daily_bin726.fits evtable="EVENTS" scfile=/scratch/kocevski/212631/ft2_4FGL_J1304.6-0348_daily_bin726.fits sctable="SC_DATA" expcube=/scratch/kocevski/212631/ltcube_427507201_427766401_4FGL_J1304.6-0348_daily_bin726.fits outfile=/scratch/kocevski/212631/expmap_427507201_427766401_4FGL_J1304.6-0348_daily_bin726.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/212631/ltcube_427507201_427766401_4FGL_J1304.6-0348_daily_bin726.fits
.....................!
real 193.89
user 188.51
sys 5.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
Added 185 point sources and 0 extended sources

Setting source of interest to:
4FGL J1304.6-0348 @ 196.172 -3.8139

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/212631/ft1_filtered_4FGL_J1304.6-0348_daily_bin726.fits scfile=/scratch/kocevski/212631/ft2_4FGL_J1304.6-0348_daily_bin726.fits outfile=/scratch/kocevski/212631/cmap_427507201_427766401_4FGL_J1304.6-0348_daily_bin726.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=196.172 yref=-3.8139 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/212631/ft1_filtered_4FGL_J1304.6-0348_daily_bin726.fits scfile=/scratch/kocevski/212631/ft2_4FGL_J1304.6-0348_daily_bin726.fits outfile=/scratch/kocevski/212631/cmap_HighResolution_427507201_427766401_4FGL_J1304.6-0348_daily_bin726.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=196.172 yref=-3.8139 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/212631/ft1_filtered_4FGL_J1304.6-0348_daily_bin726.fits evtable="EVENTS" scfile=/scratch/kocevski/212631/ft2_4FGL_J1304.6-0348_daily_bin726.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/212631/Model_4FGL_J1304.6-0348_daily_bin726.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/212631/ft1_filtered_4FGL_J1304.6-0348_daily_bin726.fits.....................!
real 63.65
user 62.27
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/212631/ft1_filtered_4FGL_J1304.6-0348_daily_bin726.fits', '/scratch/kocevski/212631/ft2_4FGL_J1304.6-0348_daily_bin726.fits', expMap='/scratch/kocevski/212631/expmap_427507201_427766401_4FGL_J1304.6-0348_daily_bin726.fits', expCube='/scratch/kocevski/212631/ltcube_427507201_427766401_4FGL_J1304.6-0348_daily_bin726.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/212631/Model_4FGL_J1304.6-0348_daily_bin726.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1304.6-0348'

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  2.667e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  2.176e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  2.075e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/212631/ft1_filtered_4FGL_J1304.6-0348_daily_bin726.fits
Spacecraft file(s): /scratch/kocevski/212631/ft2_4FGL_J1304.6-0348_daily_bin726.fits
Exposure map: /scratch/kocevski/212631/expmap_427507201_427766401_4FGL_J1304.6-0348_daily_bin726.fits
Exposure cube: /scratch/kocevski/212631/ltcube_427507201_427766401_4FGL_J1304.6-0348_daily_bin726.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/212631/Model_4FGL_J1304.6-0348_daily_bin726.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) = 7769.00769536

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.5270       1.0000         .10000E-03   10000.    
     2 'norm      '    1.1946       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .21516       1.0000         .10000E-03   10000.    
     5 'norm      '    2.8841       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10605E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.6993       1.0000         .10000E-03   10000.    
    10 'norm      '    5.1209       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    12.786       1.0000         .10000E-03   10000.    
    13 'norm      '    .10048E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.5824       1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.811       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.5181       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.1778       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .11031E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0073       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2040       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6070E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7769.005     FROM MIGRAD    STATUS=CONVERGED    509 CALLS     2400 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.5269        4.3030       -.61647E-07    .57734E-04
   2  norm          1.1944        .71231       -.39087E-07   -.41121E-03
   3  Prefactor     .10000E-03    9.9888       -.77788E-06** at limit **
   4  Prefactor     .10002E-03    8.4454       -.39976E-06** at limit **
   5  norm          2.8835        2.0200       -.11003E-06   -.36437E-03
   6  Prefactor     .10000E-03    12.108       -.32163E-05** at limit **
   7  Prefactor     .10000E-03    13.427        .67016E-06** at limit **
   8  Prefactor     .10000E-03    38.182        .27590E-05** at limit **
   9  norm          3.6971        45.676       -.24652E-04   -.13566E-04
  10  norm          5.1209        .53279        .28292E-07    .90526E-03
  11  Prefactor     .10000E-03    32.807       -.23567E-05** at limit **
  12  norm          12.784        10.495       -.15298E-05   -.58073E-05
  13  norm          .10000E-03    4.6657        .71973E-07** at limit **
  14  Prefactor     3.5745        12.370       -.44643E-05   -.11128E-03
  15  Prefactor     12.786        22.862        .10047E-04   -.13104E-05
  16  Prefactor     5.5138        11.622       -.48015E-05   -.98476E-04
  17  Prefactor     .10000E-03    11.666        .34995E-05** at limit **
  18  norm          3.1768        1.8067       -.86811E-07   -.32334E-03
  19  norm          .10000E-03    2.6400        .11855E-06** at limit **
  20  norm          .10000E-03    9.1177        .19392E-06** at limit **
  21  Normalizat    1.0071        .26149        .23034E-06    .11786E-03
  22  Prefactor     1.2044        .16906        .13205E-05    .83544E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.5269
  norm       = 1.19438
  Prefactor  = 0.0001
  Prefactor  = 0.000100024
  norm       = 2.88346
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.69709
  norm       = 5.12095
  Prefactor  = 0.0001
  norm       = 12.7843
  norm       = 0.0001
  Prefactor  = 3.57455
  Prefactor  = 12.7858
  Prefactor  = 5.5138
  Prefactor  = 0.0001
  norm       = 3.17678
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.00714
  Prefactor  = 1.2044
 **********
 **   18 **HESSE 
 **********

 FCN=   7769.005     FROM HESSE     STATUS=OK           352 CALLS     2752 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.5269        4.3008        .14367E-03   -1.5197    
   2  norm          1.1944        .69880        .54610E-04   -1.5489    
   3  Prefactor     .10000E-03    10.080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10002E-03    13.291        .74664E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.8835        2.0129        .10069E-03   -1.5368    
   6  Prefactor     .10000E-03    12.332        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    13.435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    38.206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.6971        45.993        .20998E-03   -1.5323    
  10  norm          5.1209        .53442        .19592E-04   -1.5255    
  11  Prefactor     .10000E-03    32.816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          12.784        10.494        .11202E-03   -1.4993    
  13  norm          .10000E-03    4.6817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.5745        12.354        .21351E-03   -1.5330    
  15  Prefactor     12.786        22.794        .11191E-03   -1.4993    
  16  Prefactor     5.5138        11.626        .17104E-03   -1.5238    
  17  Prefactor     .10000E-03    11.732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.1768        1.8058        .83338E-04   -1.5351    
  19  norm          .10000E-03    2.7264        .27947E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    9.1201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0071        .31498        .39198E-03   -.92791    
  22  Prefactor     1.2044        .20476        .24852E-03   -.86196    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.95069e-10
Minuit parameter uncertainties:
  1  4.301
  2  0.698805
  3  2.75763e-06
  4  0.00112323
  5  2.01299
  6  0.000148821
  7  6.06697e-06
  8  5.82605e-06
  9  26.1043
  10  0.534422
  11  1.52467e-07
  12  10.4956
  13  8.6821e-06
  14  12.3633
  15  22.8096
  16  11.6312
  17  5.88844e-05
  18  1.80583
  19  2.02349e-05
  20  4.02002e-06
  21  0.315565
  22  0.204899
Done.

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

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  1.525e-07  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  2.176e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  2.075e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
604    Prefactor:  1.204e+00  2.049e-01  0.000e+00  1.000e+01 ( 1.000e+00)
605        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
606        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
603   Normalization:  1.007e+00  3.156e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 196.172 -3.814
Photon Flux Upper Limit: 8.86e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.74e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/212631/likelihoodResults_427507201_427766401_4FGL_J1304.6-0348_daily_bin726.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): 102
logL (Free Index) = 7769.00479519
delta logL = -0.000145074750435

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7769.00465211
delta logL = -1.9939361664e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10171E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9182       1.0000          .0000       10.000    
     3 'Normalizat'    1.0071       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2044       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6070E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7769.005     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      244 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    63.872        .90712E-02** at limit **
   2  Index         2.8844        5.4366        .50000        .20836E-04
   3  Normalizat    1.0071        .12619E-01    .88521E-01   -.14148E-04
   4  Prefactor     1.2044        .87009E-02    .56205E-01    .86089E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.88442
  Normalizat = 1.00714
  Prefactor  = 1.20441
 **********
 **   18 **HESSE 
 **********

 FCN=   7769.005     FROM HESSE     STATUS=OK            31 CALLS      275 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    74.881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8844        5.0812        .50000       -.43688    
   3  Normalizat    1.0071        .28993        .39198E-03   -.92792    
   4  Prefactor     1.2044        .20048        .24852E-03   -.86196    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14514e-09
Minuit parameter uncertainties:
  1  0.000497295
  2  10.1103
  3  0.290388
  4  0.200609
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/212631': 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) = 7769.00465189
delta logL = -1.77485981112e-06

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  4.973e-04  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  2.884e+00  1.011e+01  0.000e+00  1.000e+01 (-1.000e+00)
316        Scale:  2.075e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
604    Prefactor:  1.204e+00  2.006e-01  0.000e+00  1.000e+01 ( 1.000e+00)
605        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
606        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
603   Normalization:  1.007e+00  2.904e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 196.172 -3.814

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/212631/cmap_HighResolution_427507201_427766401_4FGL_J1304.6-0348_daily_bin726.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.74e-03', job_status='DONE', photon_flux_upper_limit='8.86e-08', time_completed='2021-09-06 21:19:28.250851', job_id='212631', GAL2='1.20', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1630988368.25', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.20', dlogl='-1.77e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='726' AND source_name='4FGL J1304.6-0348' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 21:19:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 212631: <4FGL_J1304.6-0348_daily_bin726> in cluster <slac> Done

Job <4FGL_J1304.6-0348_daily_bin726> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 21:05:32 2021
Job was executed on host(s) <bullet0070>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 21:05:46 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 21:05:46 2021
Terminated at Mon Sep  6 21:19:28 2021
Results reported at Mon Sep  6 21:19:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.6-0348_daily_bin726 196.172 -3.8139 427507201 427766401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1304.6-0348 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   761.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             330.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   822 sec.
    Turnaround time :                            836 sec.

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

