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


Performing analysis on: 4FGL_J1304.6-0348_daily_bin516
RA = 196.172, Dec = -3.8139
tmin = 373075201, tmax = 373334401
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='211150', job_status='RUN', time_executed='2021-09-06 21:03:40.314048', time_epoch_executed='1630987420.31' WHERE source_name='4FGL J1304.6-0348' and cadence='daily' and bin_id='516'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/211150

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/211150/ft1_4FGL_J1304.6-0348_daily_bin516.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/211150/ft2_4FGL_J1304.6-0348_daily_bin516.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/211150/ft1_4FGL_J1304.6-0348_daily_bin516.fits outfile=/scratch/kocevski/211150/ft1_filteredMKT_4FGL_J1304.6-0348_daily_bin516.fits ra=196.172 dec=-3.8139 rad=12.0 tmin=373075201.0 tmax=373334401.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.76
user 3.46
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/211150/ft2_4FGL_J1304.6-0348_daily_bin516.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/211150/ft1_filteredMKT_4FGL_J1304.6-0348_daily_bin516.fits evtable="EVENTS" outfile="/scratch/kocevski/211150/ft1_filtered_4FGL_J1304.6-0348_daily_bin516.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.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/211150/ft1_filtered_4FGL_J1304.6-0348_daily_bin516.fits" evtable="EVENTS" scfile=/scratch/kocevski/211150/ft2_4FGL_J1304.6-0348_daily_bin516.fits sctable="SC_DATA" outfile=/scratch/kocevski/211150/ltcube_373075201_373334401_4FGL_J1304.6-0348_daily_bin516.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/211150/ft2_4FGL_J1304.6-0348_daily_bin516.fits
.....................!
real 15.83
user 15.39
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/211150/ft1_filtered_4FGL_J1304.6-0348_daily_bin516.fits evtable="EVENTS" scfile=/scratch/kocevski/211150/ft2_4FGL_J1304.6-0348_daily_bin516.fits sctable="SC_DATA" expcube=/scratch/kocevski/211150/ltcube_373075201_373334401_4FGL_J1304.6-0348_daily_bin516.fits outfile=/scratch/kocevski/211150/expmap_373075201_373334401_4FGL_J1304.6-0348_daily_bin516.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/211150/ltcube_373075201_373334401_4FGL_J1304.6-0348_daily_bin516.fits
.....................!
real 192.70
user 186.86
sys 5.14

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/211150/ft1_filtered_4FGL_J1304.6-0348_daily_bin516.fits scfile=/scratch/kocevski/211150/ft2_4FGL_J1304.6-0348_daily_bin516.fits outfile=/scratch/kocevski/211150/cmap_373075201_373334401_4FGL_J1304.6-0348_daily_bin516.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/211150/ft1_filtered_4FGL_J1304.6-0348_daily_bin516.fits scfile=/scratch/kocevski/211150/ft2_4FGL_J1304.6-0348_daily_bin516.fits outfile=/scratch/kocevski/211150/cmap_HighResolution_373075201_373334401_4FGL_J1304.6-0348_daily_bin516.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/211150/ft1_filtered_4FGL_J1304.6-0348_daily_bin516.fits evtable="EVENTS" scfile=/scratch/kocevski/211150/ft2_4FGL_J1304.6-0348_daily_bin516.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/211150/Model_4FGL_J1304.6-0348_daily_bin516.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/211150/ft1_filtered_4FGL_J1304.6-0348_daily_bin516.fits.....................!
real 61.90
user 60.19
sys 1.33

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/211150/ft1_filtered_4FGL_J1304.6-0348_daily_bin516.fits', '/scratch/kocevski/211150/ft2_4FGL_J1304.6-0348_daily_bin516.fits', expMap='/scratch/kocevski/211150/expmap_373075201_373334401_4FGL_J1304.6-0348_daily_bin516.fits', expCube='/scratch/kocevski/211150/ltcube_373075201_373334401_4FGL_J1304.6-0348_daily_bin516.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/211150/Model_4FGL_J1304.6-0348_daily_bin516.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/211150/ft1_filtered_4FGL_J1304.6-0348_daily_bin516.fits
Spacecraft file(s): /scratch/kocevski/211150/ft2_4FGL_J1304.6-0348_daily_bin516.fits
Exposure map: /scratch/kocevski/211150/expmap_373075201_373334401_4FGL_J1304.6-0348_daily_bin516.fits
Exposure cube: /scratch/kocevski/211150/ltcube_373075201_373334401_4FGL_J1304.6-0348_daily_bin516.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/211150/Model_4FGL_J1304.6-0348_daily_bin516.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) = 7559.14666254

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.6573       1.0000         .10000E-03   10000.    
     2 'norm      '    .58406       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.708       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .21502       1.0000         .10000E-03   10000.    
     5 'norm      '    23.266       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.0337       1.0000         .10000E-03   10000.    
     7 'Prefactor '    67.377       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .60120       1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.177       1.0000         .10000E-03   10000.    
    12 'norm      '    33.509       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.7063       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.2017       1.0000         .10000E-03   10000.    
    17 'Prefactor '    43.661       1.0000         .10000E-03   10000.    
    18 'norm      '    1.3391       1.0000         .10000E-03   10000.    
    19 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.7988       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .83846       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=   7559.096     FROM MIGRAD    STATUS=CONVERGED    483 CALLS     2482 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.6568        3.1634        .15696E-08   -.28062E-04
   2  norm          .58437        .55932       -.76986E-07   -.82761E-03
   3  Prefactor     10.704        11.559        .57416E-07   -.14515E-05
   4  Prefactor     .16511        7.3571       -.42691E-07    .44608E-04
   5  norm          23.265        3.5539       -.11464E-06    .31098E-04
   6  Prefactor     8.0326        7.6543       -.28590E-06   -.21292E-04
   7  Prefactor     67.393        56.327        .96820E-05    .82818E-04
   8  Prefactor     .10000E-03    11.631       -.18516E-06** at limit **
   9  norm          .10000E-03    13.606        .36322E-06** at limit **
  10  norm          .60118        .23949        .29365E-07   -.10649E-03
  11  Prefactor     16.171        64.124       -.10813E-04   -.19123E-04
  12  norm          33.506        16.104        .31235E-06   -.14796E-04
  13  norm          .10000E-03    3.9031        .63963E-07** at limit **
  14  Prefactor     2.7050        5.5471        .74012E-06   -.12185E-02
  15  Prefactor     .10000E-03    7.4556        .58031E-07** at limit **
  16  Prefactor     4.2001        7.5811        .20611E-06   -.91478E-03
  17  Prefactor     43.663        24.620       -.19755E-05   -.70897E-04
  18  norm          1.3389        1.2373        .31861E-07   -.56006E-04
  19  norm          .10000E-03    2.5722        .11747E-06** at limit **
  20  norm          .10000E-03    25.222       -.17049E-06** at limit **
  21  Normalizat    1.7992        .25500       -.93125E-06    .33086E-04
  22  Prefactor     .83830        .16879        .17983E-06   -.45218E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.65681
  norm       = 0.584367
  Prefactor  = 10.7041
  Prefactor  = 0.16511
  norm       = 23.2647
  Prefactor  = 8.03256
  Prefactor  = 67.3934
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.601179
  Prefactor  = 16.1708
  norm       = 33.5061
  norm       = 0.0001
  Prefactor  = 2.70497
  Prefactor  = 0.0001
  Prefactor  = 4.20014
  Prefactor  = 43.6628
  norm       = 1.33887
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.79916
  Prefactor  = 0.838299
 **********
 **   18 **HESSE 
 **********

 FCN=   7559.096     FROM HESSE     STATUS=OK           358 CALLS     2840 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.6568        3.1614        .13949E-03   -1.5325    
   2  norm          .58437        .52993        .60184E-03   -1.5555    
   3  Prefactor     10.704        11.538        .12244E-03   -1.5054    
   4  Prefactor     .16511        12.596        .70380E-01   -1.5627    
   5  norm          23.265        3.5491        .60772E-04   -1.4743    
   6  Prefactor     8.0326        7.6505        .14146E-03   -1.5141    
   7  Prefactor     67.393        56.423        .48897E-04   -1.4064    
   8  Prefactor     .10000E-03    11.634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    13.630        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .60118        .23798        .25471E-04   -1.5553    
  11  Prefactor     16.171        64.141        .99580E-04   -1.4903    
  12  norm          33.506        16.097        .69224E-04   -1.4550    
  13  norm          .10000E-03    3.9068        .16775E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.7050        9.2914        .12380E-02   -1.5379    
  15  Prefactor     .10000E-03    7.4635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.2001        8.1082        .98301E-03   -1.5298    
  17  Prefactor     43.663        24.655        .60672E-04   -1.4385    
  18  norm          1.3389        1.2210        .89524E-04   -1.5477    
  19  norm          .10000E-03    2.5908        .13577E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    25.370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.7992        .30852        .31221E-03   -.69686    
  22  Prefactor     .83830        .20363        .29463E-03   -.98332    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.98203e-09
Minuit parameter uncertainties:
  1  3.16151
  2  0.529932
  3  11.5408
  4  2.88397
  5  3.54917
  6  7.65142
  7  56.4683
  8  1.46795e-06
  9  5.78678e-06
  10  0.237978
  11  64.4161
  12  16.0986
  13  1.44582e-06
  14  9.29639
  15  3.93259e-06
  16  8.11027
  17  24.6609
  18  1.22105
  19  2.6496e-05
  20  2.02332e-07
  21  0.308859
  22  0.203812
Done.

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

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  1.617e+01  6.442e+01  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:  8.383e-01  2.038e-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.799e+00  3.089e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.08
Ra Dec: 196.172 -3.814
Photon Flux Upper Limit: 1.09e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.26e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/211150/likelihoodResults_373075201_373334401_4FGL_J1304.6-0348_daily_bin516.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) = 7559.09574666
delta logL = 5.20811772731e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7559.09574662
delta logL = 5.24824554304e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.171       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1719       1.0000          .0000       10.000    
     3 'Normalizat'    1.7992       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83830       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7559.096     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      238 TOTAL
                     EDM=   .50E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.282        87.442        .99599E-04    .15752E-04
   2  Index         2.1708        1.5558        .13140E-01    .19799E-04
   3  Normalizat    1.7992        .29614        .31221E-03    .88929E-04
   4  Prefactor     .83827        .20161        .29464E-03    .60271E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.2824
  Index      = 2.17077
  Normalizat = 1.79922
  Prefactor  = 0.838267
 **********
 **   18 **HESSE 
 **********

 FCN=   7559.096     FROM HESSE     STATUS=OK            25 CALLS      263 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.282        73.386        .39840E-05   -1.4901    
   2  Index         2.1708        1.4332        .52560E-03   -.60146    
   3  Normalizat    1.7992        .29637        .62442E-04   -.69684    
   4  Prefactor     .83827        .20169        .11785E-04   -.98333    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.52751e-11
Minuit parameter uncertainties:
  1  69.2761
  2  1.46376
  3  0.296667
  4  0.201872
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/211150': 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) = 7559.09574531
delta logL = 6.56290376355e-06

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  1.628e+01  6.928e+01  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  2.171e+00  1.464e+00  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:  8.383e-01  2.019e-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.799e+00  2.967e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.08
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/211150/cmap_HighResolution_373075201_373334401_4FGL_J1304.6-0348_daily_bin516.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.26e-03', job_status='DONE', photon_flux_upper_limit='1.09e-07', time_completed='2021-09-06 21:16:23.972996', job_id='211150', GAL2='0.84', fit_tolerance='1e-08', EG2='1.80', EG='1.80', time_epoch_completed='1630988183.97', return_code2='0', ts='0.08', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='6.56e-06', ts2='0.08', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='516' AND source_name='4FGL J1304.6-0348' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 21:16:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 211150: <4FGL_J1304.6-0348_daily_bin516> in cluster <slac> Done

Job <4FGL_J1304.6-0348_daily_bin516> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 21:00:32 2021
Job was executed on host(s) <bullet0054>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 21:00:34 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:00:34 2021
Terminated at Mon Sep  6 21:16:24 2021
Results reported at Mon Sep  6 21:16:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.6-0348_daily_bin516 196.172 -3.8139 373075201 373334401 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.51 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             272.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   950 sec.
    Turnaround time :                            952 sec.

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

