/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 135 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 = 7390
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1304.6-0348_daily_bin199
RA = 196.172, Dec = -3.8139
tmin = 290908801, tmax = 291168001
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='208392', job_status='RUN', time_executed='2021-09-06 20:53:01.369568', time_epoch_executed='1630986781.37' WHERE source_name='4FGL J1304.6-0348' and cadence='daily' and bin_id='199'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/208392

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/208392/ft1_4FGL_J1304.6-0348_daily_bin199.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/208392/ft2_4FGL_J1304.6-0348_daily_bin199.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/208392/ft1_4FGL_J1304.6-0348_daily_bin199.fits outfile=/scratch/kocevski/208392/ft1_filteredMKT_4FGL_J1304.6-0348_daily_bin199.fits ra=196.172 dec=-3.8139 rad=12.0 tmin=290908801.0 tmax=291168001.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.45
user 3.24
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/208392/ft1_filtered_4FGL_J1304.6-0348_daily_bin199.fits" evtable="EVENTS" scfile=/scratch/kocevski/208392/ft2_4FGL_J1304.6-0348_daily_bin199.fits sctable="SC_DATA" outfile=/scratch/kocevski/208392/ltcube_290908801_291168001_4FGL_J1304.6-0348_daily_bin199.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/208392/ft2_4FGL_J1304.6-0348_daily_bin199.fits
.....................!
real 15.73
user 15.34
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/208392/ft1_filtered_4FGL_J1304.6-0348_daily_bin199.fits evtable="EVENTS" scfile=/scratch/kocevski/208392/ft2_4FGL_J1304.6-0348_daily_bin199.fits sctable="SC_DATA" expcube=/scratch/kocevski/208392/ltcube_290908801_291168001_4FGL_J1304.6-0348_daily_bin199.fits outfile=/scratch/kocevski/208392/expmap_290908801_291168001_4FGL_J1304.6-0348_daily_bin199.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/208392/ltcube_290908801_291168001_4FGL_J1304.6-0348_daily_bin199.fits
.....................!
real 194.10
user 188.72
sys 4.92

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/208392/ft1_filtered_4FGL_J1304.6-0348_daily_bin199.fits scfile=/scratch/kocevski/208392/ft2_4FGL_J1304.6-0348_daily_bin199.fits outfile=/scratch/kocevski/208392/cmap_290908801_291168001_4FGL_J1304.6-0348_daily_bin199.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=196.172 yref=-3.8139 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.15

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

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

This is gtbin version HEAD
real 0.56
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    9.1345       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.782       1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.973       1.0000         .10000E-03   10000.    
     5 'norm      '    .96164       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.7708       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.631       1.0000         .10000E-03   10000.    
     9 'norm      '    26.752       1.0000         .10000E-03   10000.    
    10 'norm      '    1.3595       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    29.466       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .82403       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .13981E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    7.3023       1.0000         .10000E-03   10000.    
    19 'norm      '    11.366       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3656       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .73369       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=   6334.806     FROM MIGRAD    STATUS=CONVERGED    456 CALLS     2005 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.0478       -.25835E-07** at limit **
   2  norm          9.1343        1.1771       -.12580E-07    .17728E-03
   3  Prefactor     10.782        9.9406       -.15728E-07    .14313E-04
   4  Prefactor     15.974        13.236       -.43678E-06   -.21787E-04
   5  norm          .96163        1.0991       -.47246E-07   -.16331E-03
   6  Prefactor     5.7718        9.5057        .19332E-06   -.10778E-03
   7  Prefactor     .10000E-03    10.045        .47176E-05** at limit **
   8  Prefactor     17.624        28.294       -.10166E-04    .91046E-05
   9  norm          26.749        27.919       -.34482E-05    .17157E-04
  10  norm          1.3593        .33373        .78534E-07    .23540E-03
  11  Prefactor     .10000E-03    38.077       -.20980E-04** at limit **
  12  norm          .10000E-03    6.5021       -.33689E-06** at limit **
  13  norm          .10000E-03    13.263        .79139E-06** at limit **
  14  Prefactor     29.465        13.861       -.22707E-06   -.10470E-03
  15  Prefactor     .81661        14.422       -.35496E-05    .32400E-03
  16  Prefactor     .10000E-03    5.7387        .18422E-06** at limit **
  17  Prefactor     .10000E-03    35.178        .20282E-04** at limit **
  18  norm          7.3019        2.2898       -.20951E-07    .31349E-03
  19  norm          11.367        5.4853       -.19710E-06   -.80027E-03
  20  norm          .10000E-03    10.823       -.59295E-05** at limit **
  21  Normalizat    1.3658        .24798        .10096E-05    .21895E-03
  22  Prefactor     .73355        .16030        .48605E-06    .18931E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 9.13432
  Prefactor  = 10.7815
  Prefactor  = 15.9738
  norm       = 0.961629
  Prefactor  = 5.77179
  Prefactor  = 0.0001
  Prefactor  = 17.624
  norm       = 26.7495
  norm       = 1.35931
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 29.4646
  Prefactor  = 0.816612
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.30188
  norm       = 11.3666
  norm       = 0.0001
  Normalizat = 1.36578
  Prefactor  = 0.73355
 **********
 **   18 **HESSE 
 **********

 FCN=   6334.806     FROM HESSE     STATUS=OK           344 CALLS     2349 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.0750        .11120E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          9.1343        1.1822        .29473E-04   -1.5103    
   3  Prefactor     10.782        9.9356        .12202E-03   -1.5051    
   4  Prefactor     15.974        13.246        .10021E-03   -1.4908    
   5  norm          .96163        1.0715        .86415E-04   -1.5512    
   6  Prefactor     5.7718        9.4873        .16719E-03   -1.5227    
   7  Prefactor     .10000E-03    10.048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     17.624        28.350        .95385E-04   -1.4868    
   9  norm          26.749        27.887        .77453E-04   -1.4673    
  10  norm          1.3593        .33537        .21380E-04   -1.5475    
  11  Prefactor     .10000E-03    38.115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    6.5514        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    13.477        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     29.465        13.865        .73808E-04   -1.4622    
  15  Prefactor     .81661        111.14        .55727E-02   -1.5527    
  16  Prefactor     .10000E-03    5.7717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    35.327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          7.3019        2.2963        .63925E-04   -1.5167    
  19  norm          11.367        5.4802        .11883E-03   -1.5034    
  20  norm          .10000E-03    10.827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.3658        .29922        .31062E-03   -.81624    
  22  Prefactor     .73355        .19134        .27763E-03   -1.0223    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.43227e-09
Minuit parameter uncertainties:
  1  2.09997e-06
  2  1.18223
  3  9.9371
  4  13.2488
  5  1.07154
  6  9.48976
  7  5.35296e-08
  8  28.3712
  9  27.9004
  10  0.335371
  11  1.17408e-05
  12  2.95022e-06
  13  1.80396e-05
  14  13.8664
  15  19.0889
  16  6.65007e-06
  17  5.20459e-05
  18  2.29632
  19  5.48044
  20  9.51844e-07
  21  0.299604
  22  0.191509
Done.

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

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  1.174e-05  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:  7.335e-01  1.915e-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.366e+00  2.996e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/208392/likelihoodResults_290908801_291168001_4FGL_J1304.6-0348_daily_bin199.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) = 6334.80612774
delta logL = -0.000124915945889

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6334.80600452
delta logL = -1.70229395735e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10584E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.1210       1.0000          .0000       10.000    
     3 'Normalizat'    1.3658       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73355       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=   6334.806     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      259 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .45681        .90712E-02** at limit **
   2  Index         3.1001        5.7068        .50000        .11285E-04
   3  Normalizat    1.3658        .98920E-03    .70209E-01    .10783E-03
   4  Prefactor     .73355        .67373E-03    .62764E-01    .82156E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 3.10013
  Normalizat = 1.36578
  Prefactor  = 0.73355
 **********
 **   18 **HESSE 
 **********

 FCN=   6334.806     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      292 TOTAL
                     EDM=   .66E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    566.86        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.1001        5.3284        .50000       -.38977    
   3  Normalizat    1.3658        .36566E-01    .31062E-03   -.81624    
   4  Prefactor     .73355        .24552E-01    .27763E-03   -1.0223    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.55622e-06
Minuit parameter uncertainties:
  1  0.00218943
  2  1074.57
  3  0.0365663
  4  0.0245521
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/208392': 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) = 6334.8060043
delta logL = -1.48442995851e-06

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  2.189e-03  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  3.100e+00  1.075e+03  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:  7.335e-01  2.455e-02  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.366e+00  3.657e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.80e-03', job_status='DONE', photon_flux_upper_limit='8.93e-08', time_completed='2021-09-06 21:03:59.037160', job_id='208392', GAL2='0.73', fit_tolerance='1e-08', EG2='1.37', EG='1.37', time_epoch_completed='1630987439.04', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='-1.48e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='199' AND source_name='4FGL J1304.6-0348' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 21:03:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 208392: <4FGL_J1304.6-0348_daily_bin199> in cluster <slac> Done

Job <4FGL_J1304.6-0348_daily_bin199> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 20:50:34 2021
Job was executed on host(s) <bullet0242>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 20:50:37 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 20:50:37 2021
Terminated at Mon Sep  6 21:03:59 2021
Results reported at Mon Sep  6 21:03:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.6-0348_daily_bin199 196.172 -3.8139 290908801 291168001 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 :                                   655.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             265.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   802 sec.
    Turnaround time :                            805 sec.

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

