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


Performing analysis on: 4FGL_J1304.6-0348_daily_bin215
RA = 196.172, Dec = -3.8139
tmin = 295056001, tmax = 295315201
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='208416', job_status='RUN', time_executed='2021-09-06 20:53:19.304504', time_epoch_executed='1630986799.3' WHERE source_name='4FGL J1304.6-0348' and cadence='daily' and bin_id='215'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/208416

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/208416/ft1_4FGL_J1304.6-0348_daily_bin215.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/208416/ft2_4FGL_J1304.6-0348_daily_bin215.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/208416/ft1_4FGL_J1304.6-0348_daily_bin215.fits outfile=/scratch/kocevski/208416/ft1_filteredMKT_4FGL_J1304.6-0348_daily_bin215.fits ra=196.172 dec=-3.8139 rad=12.0 tmin=295056001.0 tmax=295315201.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.61
user 2.39
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/208416/ft1_filtered_4FGL_J1304.6-0348_daily_bin215.fits" evtable="EVENTS" scfile=/scratch/kocevski/208416/ft2_4FGL_J1304.6-0348_daily_bin215.fits sctable="SC_DATA" outfile=/scratch/kocevski/208416/ltcube_295056001_295315201_4FGL_J1304.6-0348_daily_bin215.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/208416/ft2_4FGL_J1304.6-0348_daily_bin215.fits
.....................!
real 17.48
user 17.11
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/208416/ft1_filtered_4FGL_J1304.6-0348_daily_bin215.fits evtable="EVENTS" scfile=/scratch/kocevski/208416/ft2_4FGL_J1304.6-0348_daily_bin215.fits sctable="SC_DATA" expcube=/scratch/kocevski/208416/ltcube_295056001_295315201_4FGL_J1304.6-0348_daily_bin215.fits outfile=/scratch/kocevski/208416/expmap_295056001_295315201_4FGL_J1304.6-0348_daily_bin215.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/208416/ltcube_295056001_295315201_4FGL_J1304.6-0348_daily_bin215.fits
.....................!
real 192.08
user 187.20
sys 4.38

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/208416/ft1_filtered_4FGL_J1304.6-0348_daily_bin215.fits scfile=/scratch/kocevski/208416/ft2_4FGL_J1304.6-0348_daily_bin215.fits outfile=/scratch/kocevski/208416/cmap_295056001_295315201_4FGL_J1304.6-0348_daily_bin215.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/208416/ft1_filtered_4FGL_J1304.6-0348_daily_bin215.fits scfile=/scratch/kocevski/208416/ft2_4FGL_J1304.6-0348_daily_bin215.fits outfile=/scratch/kocevski/208416/cmap_HighResolution_295056001_295315201_4FGL_J1304.6-0348_daily_bin215.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.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/208416/ft1_filtered_4FGL_J1304.6-0348_daily_bin215.fits evtable="EVENTS" scfile=/scratch/kocevski/208416/ft2_4FGL_J1304.6-0348_daily_bin215.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/208416/Model_4FGL_J1304.6-0348_daily_bin215.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/208416/ft1_filtered_4FGL_J1304.6-0348_daily_bin215.fits.....................!
real 48.41
user 46.96
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    3.4576       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.7027       1.0000         .10000E-03   10000.    
     5 'norm      '    1.1853       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.0186       1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.504       1.0000         .10000E-03   10000.    
     8 'Prefactor '    47.743       1.0000         .10000E-03   10000.    
     9 'norm      '    9.8811       1.0000         .10000E-03   10000.    
    10 'norm      '    .44329       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    25.335       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .24672E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.2242       1.0000         .10000E-03   10000.    
    18 'norm      '    1.0059       1.0000         .10000E-03   10000.    
    19 'norm      '    7.6499       1.0000         .10000E-03   10000.    
    20 'norm      '    36.499       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .97337       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0015       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=   5749.325     FROM MIGRAD    STATUS=CONVERGED    459 CALLS     2340 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.4069        .90712E-02** at limit **
   2  norm          3.4578        .82847        .54373E-02   -.27562E-03
   3  Prefactor     .10000E-03    7.2192        .90712E-02** at limit **
   4  Prefactor     8.7040        11.087        .33969E-02    .82167E-04
   5  norm          1.1854        .93538        .10480E-01    .69349E-04
   6  Prefactor     6.0231        8.3611        .40917E-02   -.17894E-03
   7  Prefactor     23.505        31.819        .20655E-02   -.15881E-03
   8  Prefactor     47.743        54.620        .14508E-02   -.46901E-03
   9  norm          9.8810        21.644        .31869E-02    .19296E-03
  10  norm          .44330        .28857        .61493E-02    .10177E-02
  11  Prefactor     .10000E-03    21.735        .90712E-02** at limit **
  12  norm          25.332        12.526        .19896E-02   -.21138E-03
  13  norm          .10000E-03    2.9281        .90712E-02** at limit **
  14  Prefactor     .10000E-03    12.585        .90712E-02** at limit **
  15  Prefactor     .10000E-03    37.091        .90712E-02** at limit **
  16  Prefactor     .10001E-03    7.1183        .67790E-01** at limit **
  17  Prefactor     3.2222        59.514        .56401E-02    .42030E-03
  18  norm          1.0057        1.3930        .13401E-02    .59483E-02
  19  norm          7.6488        5.3822        .36247E-02   -.12384E-03
  20  norm          36.500        37.753        .16584E-02   -.16967E-03
  21  Normalizat    .97341        .22912        .70890E-01   -.88657E-04
  22  Prefactor     1.0014        .15588        .45172E-01   -.12954E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 3.45783
  Prefactor  = 0.0001
  Prefactor  = 8.70398
  norm       = 1.18538
  Prefactor  = 6.02306
  Prefactor  = 23.5048
  Prefactor  = 47.7431
  norm       = 9.88099
  norm       = 0.443298
  Prefactor  = 0.0001
  norm       = 25.332
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 3.22222
  norm       = 1.00567
  norm       = 7.6488
  norm       = 36.4995
  Normalizat = 0.973413
  Prefactor  = 1.00138
 **********
 **   18 **HESSE 
 **********

 FCN=   5749.325     FROM HESSE     STATUS=OK           340 CALLS     2680 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.4236        .87817E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.4578        .83022        .32000E-04   -1.5336    
   3  Prefactor     .10000E-03    7.2726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.7040        11.084        .13588E-03   -1.5118    
   5  norm          1.1854        .94079        .63312E-04   -1.5490    
   6  Prefactor     6.0231        8.3389        .16367E-03   -1.5217    
   7  Prefactor     23.505        31.809        .82622E-04   -1.4738    
   8  Prefactor     47.743        54.917        .58032E-04   -1.4325    
   9  norm          9.8810        21.615        .12748E-03   -1.5079    
  10  norm          .44330        .28431        .27640E-04   -1.5575    
  11  Prefactor     .10000E-03    21.741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          25.332        12.531        .79585E-04   -1.4701    
  13  norm          .10000E-03    2.9286        .12672E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    12.803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    37.668        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    44.480        .38122E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.2222        56.801        .22560E-03   -1.5349    
  18  norm          1.0057        1.3933        .26803E-03   -1.5507    
  19  norm          7.6488        5.2873        .11395E-03   -1.5155    
  20  norm          36.500        37.793        .66337E-04   -1.4499    
  21  Normalizat    .97341        .26504        .31363E-03   -.93927    
  22  Prefactor     1.0014        .18221        .22131E-03   -.92684    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.40938e-09
Minuit parameter uncertainties:
  1  2.15259e-06
  2  0.830221
  3  4.33333e-06
  4  11.0866
  5  0.940798
  6  8.34054
  7  31.8318
  8  54.9748
  9  21.6322
  10  0.284313
  11  2.80081e-05
  12  12.5318
  13  8.94845e-07
  14  6.00007e-06
  15  0.000274293
  16  0.000979262
  17  27.0871
  18  1.39338
  19  5.28762
  20  37.8178
  21  0.265398
  22  0.182327
Done.

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

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  2.801e-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:  1.001e+00  1.823e-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:  9.734e-01  2.654e-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: 6.56e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.99e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/208416/likelihoodResults_295056001_295315201_4FGL_J1304.6-0348_daily_bin215.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) = 5749.32493361
delta logL = -0.00021888579704

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5749.32471491
delta logL = -1.9252547645e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2646       1.0000          .0000       10.000    
     3 'Normalizat'    .97339       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0014       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=   5749.325     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      271 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2234.0        .18142E-02** at limit **
   2  Index         2.2432        8.5800        .50000        .87754E-05
   3  Normalizat    .97341        .72179E-01    .31363E-03    .12433E-04
   4  Prefactor     1.0014        .51935E-01    .22131E-03    .13356E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 2.24318
  Normalizat = 0.973414
  Prefactor  = 1.00138
 **********
 **   18 **HESSE 
 **********

 FCN=   5749.325     FROM HESSE     STATUS=OK            29 CALLS      300 TOTAL
                     EDM=   .92E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    37.181        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2432        5.9571        .50000       -.58400    
   3  Normalizat    .97341        .24953        .12545E-04   -.93926    
   4  Prefactor     1.0014        .17965        .88525E-05   -.92684    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.245e-11
Minuit parameter uncertainties:
  1  0.000487845
  2  5.63779
  3  0.249832
  4  0.179762
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/208416': 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) = 5749.32471486
delta logL = -1.3531462173e-07

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  4.878e-04  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  2.243e+00  5.638e+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.001e+00  1.798e-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:  9.734e-01  2.498e-01  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/208416/cmap_HighResolution_295056001_295315201_4FGL_J1304.6-0348_daily_bin215.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.99e-03', job_status='DONE', photon_flux_upper_limit='6.56e-08', time_completed='2021-09-06 21:03:56.493690', job_id='208416', GAL2='1.00', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1630987436.49', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='-1.35e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='215' AND source_name='4FGL J1304.6-0348' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 21:03:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 208416: <4FGL_J1304.6-0348_daily_bin215> in cluster <slac> Done

Job <4FGL_J1304.6-0348_daily_bin215> 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) <bullet0280>, 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:03:57 2021
Results reported at Mon Sep  6 21:03:57 2021

Your job looked like:

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

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

