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


Performing analysis on: 4FGL_J1304.6-0348_daily_bin214
RA = 196.172, Dec = -3.8139
tmin = 294796801, tmax = 295056001
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='208415', job_status='RUN', time_executed='2021-09-06 20:53:26.953281', time_epoch_executed='1630986806.95' WHERE source_name='4FGL J1304.6-0348' and cadence='daily' and bin_id='214'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/208415

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/208415/ft1_4FGL_J1304.6-0348_daily_bin214.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/208415/ft2_4FGL_J1304.6-0348_daily_bin214.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/208415/ft1_4FGL_J1304.6-0348_daily_bin214.fits outfile=/scratch/kocevski/208415/ft1_filteredMKT_4FGL_J1304.6-0348_daily_bin214.fits ra=196.172 dec=-3.8139 rad=12.0 tmin=294796801.0 tmax=295056001.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 2.38
user 2.16
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/208415/ft2_4FGL_J1304.6-0348_daily_bin214.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/208415/ft1_filteredMKT_4FGL_J1304.6-0348_daily_bin214.fits evtable="EVENTS" outfile="/scratch/kocevski/208415/ft1_filtered_4FGL_J1304.6-0348_daily_bin214.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.36
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/208415/ft1_filtered_4FGL_J1304.6-0348_daily_bin214.fits" evtable="EVENTS" scfile=/scratch/kocevski/208415/ft2_4FGL_J1304.6-0348_daily_bin214.fits sctable="SC_DATA" outfile=/scratch/kocevski/208415/ltcube_294796801_295056001_4FGL_J1304.6-0348_daily_bin214.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/208415/ft2_4FGL_J1304.6-0348_daily_bin214.fits
.....................!
real 16.35
user 15.94
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/208415/ft1_filtered_4FGL_J1304.6-0348_daily_bin214.fits evtable="EVENTS" scfile=/scratch/kocevski/208415/ft2_4FGL_J1304.6-0348_daily_bin214.fits sctable="SC_DATA" expcube=/scratch/kocevski/208415/ltcube_294796801_295056001_4FGL_J1304.6-0348_daily_bin214.fits outfile=/scratch/kocevski/208415/expmap_294796801_295056001_4FGL_J1304.6-0348_daily_bin214.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/208415/ltcube_294796801_295056001_4FGL_J1304.6-0348_daily_bin214.fits
.....................!
real 192.82
user 186.81
sys 5.24

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/208415/ft1_filtered_4FGL_J1304.6-0348_daily_bin214.fits scfile=/scratch/kocevski/208415/ft2_4FGL_J1304.6-0348_daily_bin214.fits outfile=/scratch/kocevski/208415/cmap_294796801_295056001_4FGL_J1304.6-0348_daily_bin214.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.57
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/208415/ft1_filtered_4FGL_J1304.6-0348_daily_bin214.fits scfile=/scratch/kocevski/208415/ft2_4FGL_J1304.6-0348_daily_bin214.fits outfile=/scratch/kocevski/208415/cmap_HighResolution_294796801_295056001_4FGL_J1304.6-0348_daily_bin214.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.57
user 0.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/208415/ft1_filtered_4FGL_J1304.6-0348_daily_bin214.fits evtable="EVENTS" scfile=/scratch/kocevski/208415/ft2_4FGL_J1304.6-0348_daily_bin214.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/208415/Model_4FGL_J1304.6-0348_daily_bin214.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/208415/ft1_filtered_4FGL_J1304.6-0348_daily_bin214.fits.....................!
real 54.46
user 53.00
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    1.4934       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.6606       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10643E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .28467       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.3683       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .46247E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .52105       1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.808       1.0000         .10000E-03   10000.    
    12 'norm      '    4.6236       1.0000         .10000E-03   10000.    
    13 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.778       1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.205       1.0000         .10000E-03   10000.    
    18 'norm      '    4.8680       1.0000         .10000E-03   10000.    
    19 'norm      '    2.5749       1.0000         .10000E-03   10000.    
    20 'norm      '    2.3791       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3184       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .95620       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=   6540.703     FROM MIGRAD    STATUS=CONVERGED    856 CALLS     3104 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.1153        .83186E-03** at limit **
   2  norm          1.4935        .68046        .41987E-04    .12228E-02
   3  Prefactor     5.6617        11.541        .16884E-03   -.56427E-04
   4  Prefactor     .10000E-03    74.490        .43449E-02** at limit **
   5  norm          .28374        1.5933        .15070E-02    .11969E-02
   6  Prefactor     5.3675        9.9409        .86724E-03    .62962E-04
   7  Prefactor     .10000E-03    49.311        .13870    ** at limit **
   8  Prefactor     .10000E-03    35.833        .18142E-02** at limit **
   9  norm          .10000E-03    13.930        .18142E-02** at limit **
  10  norm          .52111        .21898        .23379E-04    .33067E-04
  11  Prefactor     13.809        43.042        .10779E-03   -.35121E-04
  12  norm          4.6251        9.7617        .18718E-03   -.55514E-04
  13  norm          .10000E-03    3.1862        .14095E-02** at limit **
  14  Prefactor     .10000E-03    2.8801        .13394E-02** at limit **
  15  Prefactor     .10000E-03    15.588        .18142E-02** at limit **
  16  Prefactor     10.779        8.5371        .61019E-03    .80133E-04
  17  Prefactor     14.209        30.931        .10627E-03   -.84833E-04
  18  norm          4.8687        1.7980        .62848E-04    .43053E-04
  19  norm          2.5761        5.9597        .21815E-03   -.85782E-04
  20  norm          2.3778        37.127        .13279E-02    .45579E-04
  21  Normalizat    1.3179        .27591        .29456E-03    .31790E-03
  22  Prefactor     .95647        .18106        .23699E-03    .32109E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 1.49346
  Prefactor  = 5.66174
  Prefactor  = 0.000100002
  norm       = 0.283742
  Prefactor  = 5.36754
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.521107
  Prefactor  = 13.8092
  norm       = 4.62515
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.7787
  Prefactor  = 14.2094
  norm       = 4.8687
  norm       = 2.57607
  norm       = 2.37778
  Normalizat = 1.31785
  Prefactor  = 0.956471
 **********
 **   18 **HESSE 
 **********

 FCN=   6540.703     FROM HESSE     STATUS=OK           336 CALLS     3440 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.1153        .16637E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.4935        .68016        .16795E-05   -1.5464    
   3  Prefactor     5.6617        11.536        .67535E-05   -1.5232    
   4  Prefactor     .10000E-03    76.562        .17380E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .28374        1.5863        .60280E-04   -1.5601    
   6  Prefactor     5.3675        9.9306        .34690E-04   -1.5245    
   7  Prefactor     .10000E-03    48.995        .13920       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    35.837        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    13.930        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .52111        .21897        .93515E-06   -1.5564    
  11  Prefactor     13.809        43.038        .43116E-05   -1.4965    
  12  norm          4.6251        9.7608        .74872E-05   -1.5278    
  13  norm          .10000E-03    3.1862        .28190E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.8802        .26789E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    15.600        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     10.779        8.5357        .24408E-04   -1.5051    
  17  Prefactor     14.209        30.897        .42509E-05   -1.4954    
  18  norm          4.8687        1.7978        .25139E-05   -1.5267    
  19  norm          2.5761        5.9521        .87258E-05   -1.5387    
  20  norm          2.3778        37.121        .53118E-04   -1.5400    
  21  Normalizat    1.3179        .27588        .58912E-04   -.83035    
  22  Prefactor     .95647        .18119        .47399E-04   -.94195    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.25411e-10
Minuit parameter uncertainties:
  1  5.5887e-06
  2  0.68016
  3  11.5402
  4  0.000733736
  5  1.34159
  6  9.9336
  7  0.000405438
  8  0.000243669
  9  9.95799e-06
  10  0.218967
  11  43.1345
  12  9.76411
  13  9.26851e-06
  14  1.2075e-06
  15  6.38682e-05
  16  8.53664
  17  30.9315
  18  1.79787
  19  5.95351
  20  18.8034
  21  0.276191
  22  0.181304
Done.

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

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  1.381e+01  4.313e+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.565e-01  1.813e-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.318e+00  2.762e-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: 8.66e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.58e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/208415/likelihoodResults_294796801_295056001_4FGL_J1304.6-0348_daily_bin214.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6540.70122975
delta logL = 0.00145081992741

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6540.70091601
delta logL = 0.00176455761903

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.690       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2618       1.0000          .0000       10.000    
     3 'Normalizat'    1.3167       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95665       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=   6540.701     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      248 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.683        48.056        .11244E-03    .40341E-04
   2  Index         2.2599        1.5077        .12249E-01    .28590E-04
   3  Normalizat    1.3169        .25480        .29465E-03   -.52295E-03
   4  Prefactor     .95683        .17864        .23695E-03   -.66419E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.6831
  Index      = 2.25987
  Normalizat = 1.31688
  Prefactor  = 0.956829
 **********
 **   18 **HESSE 
 **********

 FCN=   6540.701     FROM HESSE     STATUS=OK            25 CALLS      273 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.683        44.383        .44978E-05   -1.4996    
   2  Index         2.2599        1.3976        .48995E-03   -.58000    
   3  Normalizat    1.3169        .25489        .58930E-04   -.83064    
   4  Prefactor     .95683        .17870        .47391E-04   -.94183    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.03549e-10
Minuit parameter uncertainties:
  1  44.4987
  2  1.42506
  3  0.255133
  4  0.178814
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/208415': 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) = 6540.7009095
delta logL = 0.00177106240517

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  1.268e+01  4.450e+01  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  2.260e+00  1.425e+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:  9.568e-01  1.788e-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.317e+00  2.551e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.13
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/208415/cmap_HighResolution_294796801_295056001_4FGL_J1304.6-0348_daily_bin214.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.58e-03', job_status='DONE', photon_flux_upper_limit='8.66e-08', time_completed='2021-09-06 21:05:46.855219', job_id='208415', GAL2='0.96', fit_tolerance='1e-08', EG2='1.32', EG='1.32', time_epoch_completed='1630987546.86', return_code2='0', ts='0.13', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='1.77e-03', ts2='0.13', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='214' AND source_name='4FGL J1304.6-0348' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 21:05:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 208415: <4FGL_J1304.6-0348_daily_bin214> in cluster <slac> Done

Job <4FGL_J1304.6-0348_daily_bin214> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 20:50:35 2021
Job was executed on host(s) <bullet0105>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 20:50:40 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:40 2021
Terminated at Mon Sep  6 21:05:47 2021
Results reported at Mon Sep  6 21:05:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.6-0348_daily_bin214 196.172 -3.8139 294796801 295056001 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 :                                   738.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             280.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   907 sec.
    Turnaround time :                            912 sec.

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

