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


Performing analysis on: 4FGL_J1304.6-0348_daily_bin955
RA = 196.172, Dec = -3.8139
tmin = 486864001, tmax = 487123201
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='214880', job_status='RUN', time_executed='2021-09-06 21:14:58.445654', time_epoch_executed='1630988098.45' WHERE source_name='4FGL J1304.6-0348' and cadence='daily' and bin_id='955'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/214880

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/214880/ft1_4FGL_J1304.6-0348_daily_bin955.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/214880/ft2_4FGL_J1304.6-0348_daily_bin955.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/214880/ft1_4FGL_J1304.6-0348_daily_bin955.fits outfile=/scratch/kocevski/214880/ft1_filteredMKT_4FGL_J1304.6-0348_daily_bin955.fits ra=196.172 dec=-3.8139 rad=12.0 tmin=486864001.0 tmax=487123201.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.53
user 3.30
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/214880/ft1_filtered_4FGL_J1304.6-0348_daily_bin955.fits" evtable="EVENTS" scfile=/scratch/kocevski/214880/ft2_4FGL_J1304.6-0348_daily_bin955.fits sctable="SC_DATA" outfile=/scratch/kocevski/214880/ltcube_486864001_487123201_4FGL_J1304.6-0348_daily_bin955.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/214880/ft2_4FGL_J1304.6-0348_daily_bin955.fits
.....................!
real 14.34
user 13.94
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/214880/ft1_filtered_4FGL_J1304.6-0348_daily_bin955.fits evtable="EVENTS" scfile=/scratch/kocevski/214880/ft2_4FGL_J1304.6-0348_daily_bin955.fits sctable="SC_DATA" expcube=/scratch/kocevski/214880/ltcube_486864001_487123201_4FGL_J1304.6-0348_daily_bin955.fits outfile=/scratch/kocevski/214880/expmap_486864001_487123201_4FGL_J1304.6-0348_daily_bin955.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/214880/ltcube_486864001_487123201_4FGL_J1304.6-0348_daily_bin955.fits
.....................!
real 191.30
user 185.93
sys 4.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/214880/ft1_filtered_4FGL_J1304.6-0348_daily_bin955.fits scfile=/scratch/kocevski/214880/ft2_4FGL_J1304.6-0348_daily_bin955.fits outfile=/scratch/kocevski/214880/cmap_486864001_487123201_4FGL_J1304.6-0348_daily_bin955.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/214880/ft1_filtered_4FGL_J1304.6-0348_daily_bin955.fits scfile=/scratch/kocevski/214880/ft2_4FGL_J1304.6-0348_daily_bin955.fits outfile=/scratch/kocevski/214880/cmap_HighResolution_486864001_487123201_4FGL_J1304.6-0348_daily_bin955.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/214880/ft1_filtered_4FGL_J1304.6-0348_daily_bin955.fits evtable="EVENTS" scfile=/scratch/kocevski/214880/ft2_4FGL_J1304.6-0348_daily_bin955.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/214880/Model_4FGL_J1304.6-0348_daily_bin955.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/214880/ft1_filtered_4FGL_J1304.6-0348_daily_bin955.fits.....................!
real 56.89
user 55.53
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.4081       1.0000         .10000E-03   10000.    
     2 'norm      '    1.7849       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.672       1.0000         .10000E-03   10000.    
     5 'norm      '    6.2999       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10362E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    34.309       1.0000         .10000E-03   10000.    
     9 'norm      '    24.037       1.0000         .10000E-03   10000.    
    10 'norm      '    .74728       1.0000         .10000E-03   10000.    
    11 'Prefactor '    125.94       1.0000         .10000E-03   10000.    
    12 'norm      '    5.6452       1.0000         .10000E-03   10000.    
    13 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.698       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    7.9285       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .68635       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.3369       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=   7352.775     FROM MIGRAD    STATUS=CONVERGED    472 CALLS     2346 TOTAL
                     EDM=   .51E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.4082        3.3279        .66770E-07   -.12050E-03
   2  norm          1.7848        .62002        .53789E-07   -.56899E-04
   3  Prefactor     .10000E-03    3.4175       -.52018E-07** at limit **
   4  Prefactor     16.673        11.429       -.65419E-06   -.38175E-04
   5  norm          6.2992        2.1265       -.14041E-06   -.88193E-04
   6  Prefactor     .10000E-03    3.1975        .25409E-06** at limit **
   7  Prefactor     .10000E-03    56.731       -.11918E-05** at limit **
   8  Prefactor     34.307        33.587       -.19131E-05    .54241E-05
   9  norm          24.024        25.803       -.94937E-05   -.35415E-05
  10  norm          .74736        .26440        .47321E-07   -.29124E-03
  11  Prefactor     125.94        73.587       -.52601E-05    .12671E-04
  12  norm          5.6499        11.755       -.19467E-05   -.77974E-04
  13  norm          .10000E-03    10.768        .46611E-06** at limit **
  14  Prefactor     .10000E-03    3.5039        .20924E-06** at limit **
  15  Prefactor     .10000E-03    11.006       -.12450E-06** at limit **
  16  Prefactor     10.704        10.364       -.22434E-05   -.54265E-04
  17  Prefactor     .10000E-03    9.0079        .25621E-06** at limit **
  18  norm          .10000E-03    .75441       -.19522E-06** at limit **
  19  norm          7.9298        4.2520        .10791E-06   -.52403E-04
  20  norm          .10000E-03    12.913       -.56234E-06** at limit **
  21  Normalizat    .68617        .23830        .33141E-05    .82934E-05
  22  Prefactor     1.3369        .16206       -.30653E-06    .10951E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.40822
  norm       = 1.78476
  Prefactor  = 0.0001
  Prefactor  = 16.6735
  norm       = 6.29924
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.3075
  norm       = 24.0244
  norm       = 0.747362
  Prefactor  = 125.938
  norm       = 5.64987
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.7036
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 7.92979
  norm       = 0.0001
  Normalizat = 0.686172
  Prefactor  = 1.33695
 **********
 **   18 **HESSE 
 **********

 FCN=   7352.775     FROM HESSE     STATUS=OK           342 CALLS     2688 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.4082        3.3248        .13140E-03   -1.5288    
   2  norm          1.7848        .61728        .37814E-04   -1.5441    
   3  Prefactor     .10000E-03    3.4244        .15479E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.673        11.425        .98089E-04   -1.4891    
   5  norm          6.2992        2.1250        .69494E-04   -1.5206    
   6  Prefactor     .10000E-03    3.2119        .14978E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    57.123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     34.307        33.668        .34207E-03   -1.4536    
   9  norm          24.024        25.784        .81704E-04   -1.4727    
  10  norm          .74736        .26272        .23991E-04   -1.5535    
  11  Prefactor     125.94        73.231        .35870E-04   -1.3459    
  12  norm          5.6499        11.750        .16907E-03   -1.5233    
  13  norm          .10000E-03    10.936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.5177        .15674E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    11.048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     10.704        10.375        .12249E-03   -1.5054    
  17  Prefactor     .10000E-03    9.0176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.2360        .14228E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          7.9298        4.2474        .12434E-03   -1.5145    
  20  norm          .10000E-03    12.918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .68617        .27021        .39894E-03   -1.0444    
  22  Prefactor     1.3369        .18805        .21293E-03   -.82215    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31319e-10
Minuit parameter uncertainties:
  1  3.3249
  2  0.617285
  3  1.10089e-06
  4  11.426
  5  2.12504
  6  1.94847e-05
  7  0.000105277
  8  33.6868
  9  25.7959
  10  0.26272
  11  73.2834
  12  11.755
  13  2.97883e-05
  14  3.38957e-06
  15  4.52512e-06
  16  10.3768
  17  4.66847e-06
  18  1.90961e-05
  19  4.24757
  20  3.40938e-06
  21  0.270732
  22  0.188147
Done.

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

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  1.259e+02  7.328e+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.337e+00  1.881e-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.862e-01  2.707e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.37
Ra Dec: 196.172 -3.814
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 7.87e-08 +/- 4.58e-08
Energy Flux (Fixed Index): 3.70e-05 +/- 2.15e-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) = 7352.5853511
delta logL = 0.18924208326

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7352.5595866
delta logL = 0.215006583696

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    90.104       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4663       1.0000          .0000       10.000    
     3 'Normalizat'    .65219       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3507       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=   7352.560     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      299 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     90.042        81.340        .21166E-03    .73694E-04
   2  Index         2.4666        .48541        .40110E-02    .13575E-03
   3  Normalizat    .65147        .26706        .40843E-03    .14087E-03
   4  Prefactor     1.3512        .18941        .21187E-03   -.21339E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 90.0423
  Index      = 2.46662
  Normalizat = 0.651473
  Prefactor  = 1.35117
 **********
 **   18 **HESSE 
 **********

 FCN=   7352.560     FROM HESSE     STATUS=OK            25 CALLS      324 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     90.042        73.970        .84662E-05   -1.3807    
   2  Index         2.4666        .44083        .16044E-03   -.53132    
   3  Normalizat    .65147        .26643        .16337E-04   -1.0584    
   4  Prefactor     1.3512        .18925        .42374E-04   -.81798    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.69926e-10
Minuit parameter uncertainties:
  1  74.0457
  2  0.441601
  3  0.26696
  4  0.18935
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/214880': 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) = 7352.55958253
delta logL = 0.215010661309

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  9.004e+01  7.405e+01  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  2.467e+00  4.416e-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.351e+00  1.894e-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.515e-01  2.670e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.86
Ra Dec: 196.172 -3.814
Photon Index (Free Index): 2.47 +/- 0.44
Photon Flux (Free Index): 1.09e-07 +/- 6.94e-08
Energy Flux (Free Index): 3.29e-05 +/- 1.71e-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/214880/cmap_HighResolution_486864001_487123201_4FGL_J1304.6-0348_daily_bin955.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.87e-08', energy_flux2='3.29e-05', photon_flux_error='4.58e-08', dlogl='2.15e-01', energy_flux='3.70e-05', photon_flux2='1.09e-07', job_status='DONE', time_completed='2021-09-06 21:25:47.429366', photon_index_error2='0.44', photon_index2='2.47', ts='8.37', fit_tolerance='1e-08', GAL='1.34', photon_index_error='0.00', energy_flux_error2='1.71e-05', EG='0.69', time_epoch_completed='1630988747.43', return_code='0', job_id='214880', GAL2='1.35', EG2='0.65', return_code2='0', energy_flux_error='2.15e-05', photon_flux_error2='6.94e-08', ts2='8.86', photon_index='2.18' WHERE bin_id='955' AND source_name='4FGL J1304.6-0348' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 21:25:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 214880: <4FGL_J1304.6-0348_daily_bin955> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.6-0348_daily_bin955 196.172 -3.8139 486864001 487123201 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 :                                   642.45 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             283.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   877 sec.
    Turnaround time :                            905 sec.

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

