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


Performing analysis on: 4FGL_J1304.6-0348_daily_bin1013
RA = 196.172, Dec = -3.8139
tmin = 501897601, tmax = 502156801
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='214960', job_status='RUN', time_executed='2021-09-06 21:12:59.339973', time_epoch_executed='1630987979.34' WHERE source_name='4FGL J1304.6-0348' and cadence='daily' and bin_id='1013'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/214960

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/214960/ft1_4FGL_J1304.6-0348_daily_bin1013.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/214960/ft2_4FGL_J1304.6-0348_daily_bin1013.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/214960/ft1_4FGL_J1304.6-0348_daily_bin1013.fits outfile=/scratch/kocevski/214960/ft1_filteredMKT_4FGL_J1304.6-0348_daily_bin1013.fits ra=196.172 dec=-3.8139 rad=12.0 tmin=501897601.0 tmax=502156801.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.55
user 3.28
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/214960/ft1_filtered_4FGL_J1304.6-0348_daily_bin1013.fits" evtable="EVENTS" scfile=/scratch/kocevski/214960/ft2_4FGL_J1304.6-0348_daily_bin1013.fits sctable="SC_DATA" outfile=/scratch/kocevski/214960/ltcube_501897601_502156801_4FGL_J1304.6-0348_daily_bin1013.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/214960/ft2_4FGL_J1304.6-0348_daily_bin1013.fits
.....................!
real 14.91
user 14.35
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/214960/ft1_filtered_4FGL_J1304.6-0348_daily_bin1013.fits evtable="EVENTS" scfile=/scratch/kocevski/214960/ft2_4FGL_J1304.6-0348_daily_bin1013.fits sctable="SC_DATA" expcube=/scratch/kocevski/214960/ltcube_501897601_502156801_4FGL_J1304.6-0348_daily_bin1013.fits outfile=/scratch/kocevski/214960/expmap_501897601_502156801_4FGL_J1304.6-0348_daily_bin1013.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/214960/ltcube_501897601_502156801_4FGL_J1304.6-0348_daily_bin1013.fits
.....................!
real 193.61
user 186.47
sys 5.74

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/214960/ft1_filtered_4FGL_J1304.6-0348_daily_bin1013.fits scfile=/scratch/kocevski/214960/ft2_4FGL_J1304.6-0348_daily_bin1013.fits outfile=/scratch/kocevski/214960/cmap_501897601_502156801_4FGL_J1304.6-0348_daily_bin1013.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/214960/ft1_filtered_4FGL_J1304.6-0348_daily_bin1013.fits scfile=/scratch/kocevski/214960/ft2_4FGL_J1304.6-0348_daily_bin1013.fits outfile=/scratch/kocevski/214960/cmap_HighResolution_501897601_502156801_4FGL_J1304.6-0348_daily_bin1013.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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/214960/ft1_filtered_4FGL_J1304.6-0348_daily_bin1013.fits evtable="EVENTS" scfile=/scratch/kocevski/214960/ft2_4FGL_J1304.6-0348_daily_bin1013.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/214960/Model_4FGL_J1304.6-0348_daily_bin1013.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/214960/ft1_filtered_4FGL_J1304.6-0348_daily_bin1013.fits.....................!
real 54.76
user 53.30
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1555       1.0000         .10000E-03   10000.    
     2 'norm      '    .70082       1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.184       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.4803       1.0000         .10000E-03   10000.    
     5 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.3856       1.0000         .10000E-03   10000.    
     7 'Prefactor '    43.738       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .74423       1.0000         .10000E-03   10000.    
    10 'norm      '    1.5401       1.0000         .10000E-03   10000.    
    11 'Prefactor '    148.75       1.0000         .10000E-03   10000.    
    12 'norm      '    53.178       1.0000         .10000E-03   10000.    
    13 'norm      '    .20234E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10353E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .17210E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.3272       1.0000         .10000E-03   10000.    
    19 'norm      '    11.662       1.0000         .10000E-03   10000.    
    20 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .60728       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.4810       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=   6877.228     FROM MIGRAD    STATUS=CONVERGED    500 CALLS     2766 TOTAL
                     EDM=   .20E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1555        2.0925       -.36594E-07    .24792E-04
   2  norm          .70028        .52366       -.10994E-06    .17495E-03
   3  Prefactor     11.184        8.9805        .12634E-06    .47925E-04
   4  Prefactor     4.4781        11.759       -.11269E-06    .16433E-04
   5  norm          .10000E-03    .78868       -.46305E-07** at limit **
   6  Prefactor     2.3831        9.8671       -.22340E-05    .17021E-04
   7  Prefactor     43.764        43.615       -.54769E-06    .18430E-04
   8  Prefactor     .10000E-03    12.976       -.75070E-07** at limit **
   9  norm          .75022        134.34       -.12680E-04    .38599E-06
  10  norm          1.5401        .32743       -.24661E-08    .24472E-03
  11  Prefactor     148.73        82.823        .26105E-05   -.20951E-05
  12  norm          53.174        17.037       -.87374E-06    .41328E-05
  13  norm          .10009E-03    12.154       -.79647E-06** at limit **
  14  Prefactor     .10000E-03    7.3603       -.13745E-06** at limit **
  15  Prefactor     .10000E-03    10.873        .17517E-06** at limit **
  16  Prefactor     .10000E-03    4.8077       -.13598E-06** at limit **
  17  Prefactor     .10000E-03    41.528        .90897E-07** at limit **
  18  norm          2.3269        1.4865       -.91692E-07    .38697E-04
  19  norm          11.665        5.1792       -.75348E-07    .95466E-05
  20  norm          .10000E-03    10.599       -.35004E-06** at limit **
  21  Normalizat    .60720        .25246        .14596E-05    .56024E-04
  22  Prefactor     1.4812        .18071        .42577E-06    .89233E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.15555
  norm       = 0.700279
  Prefactor  = 11.1843
  Prefactor  = 4.47811
  norm       = 0.0001
  Prefactor  = 2.38313
  Prefactor  = 43.7636
  Prefactor  = 0.0001
  norm       = 0.750217
  norm       = 1.54011
  Prefactor  = 148.73
  norm       = 53.1742
  norm       = 0.000100091
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.32694
  norm       = 11.6654
  norm       = 0.0001
  Normalizat = 0.607204
  Prefactor  = 1.48115
 **********
 **   18 **HESSE 
 **********

 FCN=   6877.228     FROM HESSE     STATUS=OK           362 CALLS     3128 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1555        2.0853        .11518E-03   -1.5414    
   2  norm          .70028        .50212        .48643E-03   -1.5541    
   3  Prefactor     11.184        8.9644        .11979E-03   -1.5039    
   4  Prefactor     4.4781        11.895        .19022E-03   -1.5285    
   5  norm          .10000E-03    1.3561        .14112E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.3831        9.9590        .26519E-03   -1.5399    
   7  Prefactor     43.764        43.653        .60619E-04   -1.4384    
   8  Prefactor     .10000E-03    12.980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .75022        132.53        .71951E-02   -1.5535    
  10  norm          1.5401        .32713        .20610E-04   -1.5460    
  11  Prefactor     148.73        83.163        .16522E-03   -1.3263    
  12  norm          53.174        17.201        .55001E-04   -1.4248    
  13  norm          .10009E-03    15.172        .85057E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.4664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.8440        .17758E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    41.722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.3269        1.4850        .77227E-04   -1.5403    
  19  norm          11.665        5.1613        .11731E-03   -1.5025    
  20  norm          .10000E-03    10.604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .60720        .28036        .43509E-03   -1.0768    
  22  Prefactor     1.4812        .20495        .21671E-03   -.78069    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.45473e-10
Minuit parameter uncertainties:
  1  2.08534
  2  0.502125
  3  8.96549
  4  11.901
  5  1.39655e-05
  6  9.74601
  7  43.6851
  8  2.3356e-06
  9  19.9863
  10  0.327129
  11  83.2289
  12  17.2026
  13  0.00235318
  14  1.24602e-05
  15  1.29594e-05
  16  6.8282e-06
  17  3.35848e-05
  18  1.48501
  19  5.16148
  20  2.00624e-06
  21  0.281016
  22  0.205067
Done.

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

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  1.487e+02  8.323e+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:  1.481e+00  2.051e-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:  6.072e-01  2.810e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.88
Ra Dec: 196.172 -3.814
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 9.29e-08 +/- 5.20e-08
Energy Flux (Fixed Index): 4.37e-05 +/- 2.44e-05

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) = 6877.21755826
delta logL = 0.0101989881905

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6877.20273202
delta logL = 0.0250252248215

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    130.61       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2714       1.0000          .0000       10.000    
     3 'Normalizat'    .59897       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4850       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=   6877.203     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      271 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     130.68        116.61        .17616E-03    .16685E-03
   2  Index         2.2716        .46772        .42685E-02    .10732E-03
   3  Normalizat    .59820        .27248        .43803E-03   -.98313E-04
   4  Prefactor     1.4856        .20227        .21642E-03    .20025E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 130.685
  Index      = 2.27159
  Normalizat = 0.598197
  Prefactor  = 1.48557
 **********
 **   18 **HESSE 
 **********

 FCN=   6877.203     FROM HESSE     STATUS=OK            25 CALLS      296 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     130.68        108.35        .35232E-04   -1.3417    
   2  Index         2.2716        .43430        .17074E-03   -.57720    
   3  Normalizat    .59820        .27211        .17521E-04   -1.0806    
   4  Prefactor     1.4856        .20213        .43285E-04   -.77945    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.11321e-10
Minuit parameter uncertainties:
  1  108.518
  2  0.435085
  3  0.272718
  4  0.202236
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/214960': 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) = 6877.20272667
delta logL = 0.0250305752434

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  1.307e+02  1.085e+02  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  2.272e+00  4.351e-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.486e+00  2.022e-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:  5.982e-01  2.727e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.04
Ra Dec: 196.172 -3.814
Photon Index (Free Index): 2.27 +/- 0.44
Photon Flux (Free Index): 1.01e-07 +/- 6.38e-08
Energy Flux (Free Index): 4.00e-05 +/- 2.61e-05

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/214960/cmap_HighResolution_501897601_502156801_4FGL_J1304.6-0348_daily_bin1013.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.29e-08', energy_flux2='4.00e-05', photon_flux_error='5.20e-08', dlogl='2.50e-02', energy_flux='4.37e-05', photon_flux2='1.01e-07', job_status='DONE', time_completed='2021-09-06 21:24:14.434681', photon_index_error2='0.44', photon_index2='2.27', ts='6.88', fit_tolerance='1e-08', GAL='1.48', photon_index_error='0.00', energy_flux_error2='2.61e-05', EG='0.61', time_epoch_completed='1630988654.43', return_code='0', job_id='214960', GAL2='1.49', EG2='0.60', return_code2='0', energy_flux_error='2.44e-05', photon_flux_error2='6.38e-08', ts2='7.04', photon_index='2.18' WHERE bin_id='1013' AND source_name='4FGL J1304.6-0348' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 21:24:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0101>
Subject: Job 214960: <4FGL_J1304.6-0348_daily_bin1013> in cluster <slac> Done

Job <4FGL_J1304.6-0348_daily_bin1013> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Sep  6 21:10:49 2021
Job was executed on host(s) <bullet0101>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 21:11:51 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:11:51 2021
Terminated at Mon Sep  6 21:24:15 2021
Results reported at Mon Sep  6 21:24:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.6-0348_daily_bin1013 196.172 -3.8139 501897601 502156801 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 :                                   668.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             333.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   743 sec.
    Turnaround time :                            806 sec.

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

