/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 214 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 = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1304.6-0348_daily_bin608
RA = 196.172, Dec = -3.8139
tmin = 396921601, tmax = 397180801
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='211294', job_status='RUN', time_executed='2021-09-06 21:05:21.727992', time_epoch_executed='1630987521.73' WHERE source_name='4FGL J1304.6-0348' and cadence='daily' and bin_id='608'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/211294

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/211294/ft1_4FGL_J1304.6-0348_daily_bin608.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/211294/ft2_4FGL_J1304.6-0348_daily_bin608.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/211294/ft1_4FGL_J1304.6-0348_daily_bin608.fits outfile=/scratch/kocevski/211294/ft1_filteredMKT_4FGL_J1304.6-0348_daily_bin608.fits ra=196.172 dec=-3.8139 rad=12.0 tmin=396921601.0 tmax=397180801.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 4.54
user 4.29
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/211294/ft1_filtered_4FGL_J1304.6-0348_daily_bin608.fits" evtable="EVENTS" scfile=/scratch/kocevski/211294/ft2_4FGL_J1304.6-0348_daily_bin608.fits sctable="SC_DATA" outfile=/scratch/kocevski/211294/ltcube_396921601_397180801_4FGL_J1304.6-0348_daily_bin608.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/211294/ft2_4FGL_J1304.6-0348_daily_bin608.fits
.....................!
real 14.73
user 14.30
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/211294/ft1_filtered_4FGL_J1304.6-0348_daily_bin608.fits evtable="EVENTS" scfile=/scratch/kocevski/211294/ft2_4FGL_J1304.6-0348_daily_bin608.fits sctable="SC_DATA" expcube=/scratch/kocevski/211294/ltcube_396921601_397180801_4FGL_J1304.6-0348_daily_bin608.fits outfile=/scratch/kocevski/211294/expmap_396921601_397180801_4FGL_J1304.6-0348_daily_bin608.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/211294/ltcube_396921601_397180801_4FGL_J1304.6-0348_daily_bin608.fits
.....................!
real 190.82
user 185.84
sys 4.56

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/211294/ft1_filtered_4FGL_J1304.6-0348_daily_bin608.fits scfile=/scratch/kocevski/211294/ft2_4FGL_J1304.6-0348_daily_bin608.fits outfile=/scratch/kocevski/211294/cmap_396921601_397180801_4FGL_J1304.6-0348_daily_bin608.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/211294/ft1_filtered_4FGL_J1304.6-0348_daily_bin608.fits scfile=/scratch/kocevski/211294/ft2_4FGL_J1304.6-0348_daily_bin608.fits outfile=/scratch/kocevski/211294/cmap_HighResolution_396921601_397180801_4FGL_J1304.6-0348_daily_bin608.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/211294/ft1_filtered_4FGL_J1304.6-0348_daily_bin608.fits evtable="EVENTS" scfile=/scratch/kocevski/211294/ft2_4FGL_J1304.6-0348_daily_bin608.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/211294/Model_4FGL_J1304.6-0348_daily_bin608.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/211294/ft1_filtered_4FGL_J1304.6-0348_daily_bin608.fits.....................!
real 48.23
user 46.87
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4311       1.0000         .10000E-03   10000.    
     2 'norm      '    .92751       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.2818       1.0000         .10000E-03   10000.    
     4 'Prefactor '    34.003       1.0000         .10000E-03   10000.    
     5 'norm      '    2.0181       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10855E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.069       1.0000         .10000E-03   10000.    
     8 'Prefactor '    29.861       1.0000         .10000E-03   10000.    
     9 'norm      '    .23030E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    2.5291       1.0000         .10000E-03   10000.    
    11 'Prefactor '    29.050       1.0000         .10000E-03   10000.    
    12 'norm      '    15.782       1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .24299E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    41.041       1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.9590       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.7752       1.0000         .10000E-03   10000.    
    19 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    18.935       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1253       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .97082       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=   5680.818     FROM MIGRAD    STATUS=CONVERGED    862 CALLS     3166 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4312        2.3734        .11121E-03    .30463E-04
   2  norm          .92764        .60625        .45768E-03   -.64929E-03
   3  Prefactor     9.2814        8.5130        .13155E-03   -.62138E-04
   4  Prefactor     34.005        16.645        .68721E-04   -.21837E-04
   5  norm          2.0183        1.5380        .78700E-04   -.20325E-03
   6  Prefactor     .10001E-03    21.098        .33233E-02** at limit **
   7  Prefactor     12.117        45.602        .11531E-03   -.48508E-04
   8  Prefactor     29.904        54.952        .73320E-04   -.32717E-04
   9  norm          .10030E-03    29.467        .12137    ** at limit **
  10  norm          2.5289        .47886        .19916E-04   -.52345E-03
  11  Prefactor     29.081        87.318        .74333E-04   -.11318E-04
  12  norm          15.784        15.774        .10082E-03   -.68786E-05
  13  norm          .10000E-03    4.6407        .15853E-02** at limit **
  14  Prefactor     .10056E-03    53.374        .38435E-02** at limit **
  15  Prefactor     41.068        32.679        .62571E-04   -.69224E-04
  16  Prefactor     8.9589        11.842        .13391E-03   -.43468E-04
  17  Prefactor     .10000E-03    33.529        .18142E-02** at limit **
  18  norm          5.7758        2.1481        .64187E-04   -.73858E-04
  19  norm          .10000E-03    3.5403        .27274E-03** at limit **
  20  norm          18.938        27.743        .92043E-04   -.75344E-05
  21  Normalizat    1.1247        .31753        .33533E-03   -.15565E-03
  22  Prefactor     .97109        .20482        .24983E-03   -.55746E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.43123
  norm       = 0.927644
  Prefactor  = 9.28138
  Prefactor  = 34.0052
  norm       = 2.01828
  Prefactor  = 0.000100013
  Prefactor  = 12.1171
  Prefactor  = 29.9039
  norm       = 0.000100296
  norm       = 2.52889
  Prefactor  = 29.0813
  norm       = 15.7837
  norm       = 0.0001
  Prefactor  = 0.000100557
  Prefactor  = 41.0676
  Prefactor  = 8.95889
  Prefactor  = 0.0001
  norm       = 5.77578
  norm       = 0.0001
  norm       = 18.9376
  Normalizat = 1.12467
  Prefactor  = 0.97109
 **********
 **   18 **HESSE 
 **********

 FCN=   5680.818     FROM HESSE     STATUS=OK           332 CALLS     3498 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4312        2.3734        .44485E-05   -1.5396    
   2  norm          .92764        .60619        .18307E-04   -1.5515    
   3  Prefactor     9.2814        8.5127        .52619E-05   -1.5099    
   4  Prefactor     34.005        16.645        .27488E-05   -1.4541    
   5  norm          2.0183        1.5380        .31480E-05   -1.5424    
   6  Prefactor     .10001E-03    21.238        .66467E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.117        45.611        .46124E-05   -1.5012    
   8  Prefactor     29.904        54.950        .14664E-04   -1.4614    
   9  norm          .10030E-03    28.723        .12375       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.5289        .47888        .79664E-06   -1.5390    
  11  Prefactor     29.081        87.312        .29733E-05   -1.4629    
  12  norm          15.784        15.773        .40327E-05   -1.4913    
  13  norm          .10000E-03    4.6408        .31705E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10056E-03    54.621        .76870E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     41.068        32.689        .25029E-05   -1.4425    
  16  Prefactor     8.9589        11.840        .53563E-05   -1.5109    
  17  Prefactor     .10000E-03    33.543        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.7758        2.1481        .25675E-05   -1.5227    
  19  norm          .10000E-03    3.5404        .54549E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          18.938        27.750        .36817E-05   -1.4837    
  21  Normalizat    1.1247        .31786        .13413E-04   -.88964    
  22  Prefactor     .97109        .20500        .99930E-05   -.93699    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09792e-08
Minuit parameter uncertainties:
  1  2.37345
  2  0.606192
  3  8.51384
  4  16.6475
  5  1.53805
  6  0.00106282
  7  45.7426
  8  55.0437
  9  0.00583263
  10  0.478882
  11  87.6987
  12  15.7774
  13  1.01224e-05
  14  0.0110461
  15  32.7033
  16  11.8431
  17  0.000167563
  18  2.14809
  19  1.62946e-05
  20  27.7684
  21  0.318407
  22  0.205161
Done.

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

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  2.908e+01  8.770e+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:  9.711e-01  2.052e-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.125e+00  3.184e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.13
Ra Dec: 196.172 -3.814
Photon Flux Upper Limit: 1.49e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.14e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/211294/likelihoodResults_396921601_397180801_4FGL_J1304.6-0348_daily_bin608.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) = 5675.8080371
delta logL = 5.0099809673

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5675.62763997
delta logL = 5.19037809533

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15840       1.0000         .10000E-03   10000.    
     2 'Index     '    5.3211       1.0000          .0000       10.000    
     3 'Normalizat'    .77598       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1308       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=   5675.628     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      270 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .15825        .68278        .22923E-02    .12884E-02
   2  Index         5.3216        1.3937        .40646E-01    .23925E-03
   3  Normalizat    .77593        .98830E-01    .87980E-01    .10870E-04
   4  Prefactor     1.1307        .69275E-01    .52651E-01   -.22473E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.158251
  Index      = 5.32159
  Normalizat = 0.775932
  Prefactor  = 1.13069
 **********
 **   18 **HESSE 
 **********

 FCN=   5675.628     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      303 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .15825        .98324        .10195E-04   -1.5628    
   2  Index         5.3216        1.7350        .17445E-02    .64362E-01
   3  Normalizat    .77593        .27692        .38968E-03   -1.0097    
   4  Prefactor     1.1307        .19184        .23277E-03   -.88492    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.23185e-07
Minuit parameter uncertainties:
  1  0.78869
  2  1.77201
  3  0.277422
  4  0.191954
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/211294': 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): 102
logL (Free Index) = 5675.62763897
delta logL = 5.19037909274

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  1.583e-01  7.887e-01  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  5.322e+00  1.772e+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:  1.131e+00  1.920e-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:  7.759e-01  2.774e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.86
Ra Dec: 196.172 -3.814
Photon Index (Free Index): 5.32 +/- 1.77
Photon Flux (Free Index): 3.77e-07 +/- 1.35e-07
Energy Flux (Free Index): 4.89e-05 +/- 1.87e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/211294/cmap_HighResolution_396921601_397180801_4FGL_J1304.6-0348_daily_bin608.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.14e-02', comment='SUCCESS', energy_flux2='4.89e-05', dlogl='5.19e+00', photon_flux2='3.77e-07', job_status='DONE', time_completed='2021-09-06 21:17:05.323630', photon_index_error2='1.77', photon_index2='5.32', ts='0.13', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='1.49e-07', energy_flux_error2='1.87e-05', EG='1.12', time_epoch_completed='1630988225.32', return_code='0', job_id='211294', GAL2='1.13', EG2='0.78', return_code2='102', photon_flux_error2='1.35e-07', ts2='11.86', photon_index='2.18' WHERE bin_id='608' AND source_name='4FGL J1304.6-0348' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 21:17:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 211294: <4FGL_J1304.6-0348_daily_bin608> in cluster <slac> Done

Job <4FGL_J1304.6-0348_daily_bin608> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 21:00:45 2021
Job was executed on host(s) <bullet0254>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 21:01:38 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:01:38 2021
Terminated at Mon Sep  6 21:17:06 2021
Results reported at Mon Sep  6 21:17:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.6-0348_daily_bin608 196.172 -3.8139 396921601 397180801 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 :                                   703.25 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             267.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   927 sec.
    Turnaround time :                            981 sec.

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

