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


Performing analysis on: 4FGL_J1304.6-0348_daily_bin500
RA = 196.172, Dec = -3.8139
tmin = 368928001, tmax = 369187201
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='209913', job_status='RUN', time_executed='2021-09-06 20:58:55.229321', time_epoch_executed='1630987135.23' WHERE source_name='4FGL J1304.6-0348' and cadence='daily' and bin_id='500'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/209913

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/209913/ft1_4FGL_J1304.6-0348_daily_bin500.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/209913/ft2_4FGL_J1304.6-0348_daily_bin500.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/209913/ft1_4FGL_J1304.6-0348_daily_bin500.fits outfile=/scratch/kocevski/209913/ft1_filteredMKT_4FGL_J1304.6-0348_daily_bin500.fits ra=196.172 dec=-3.8139 rad=12.0 tmin=368928001.0 tmax=369187201.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.35
user 3.15
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/209913/ft1_filtered_4FGL_J1304.6-0348_daily_bin500.fits" evtable="EVENTS" scfile=/scratch/kocevski/209913/ft2_4FGL_J1304.6-0348_daily_bin500.fits sctable="SC_DATA" outfile=/scratch/kocevski/209913/ltcube_368928001_369187201_4FGL_J1304.6-0348_daily_bin500.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/209913/ft2_4FGL_J1304.6-0348_daily_bin500.fits
.....................!
real 15.52
user 15.14
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/209913/ft1_filtered_4FGL_J1304.6-0348_daily_bin500.fits evtable="EVENTS" scfile=/scratch/kocevski/209913/ft2_4FGL_J1304.6-0348_daily_bin500.fits sctable="SC_DATA" expcube=/scratch/kocevski/209913/ltcube_368928001_369187201_4FGL_J1304.6-0348_daily_bin500.fits outfile=/scratch/kocevski/209913/expmap_368928001_369187201_4FGL_J1304.6-0348_daily_bin500.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/209913/ltcube_368928001_369187201_4FGL_J1304.6-0348_daily_bin500.fits
.....................!
real 191.04
user 186.55
sys 4.01

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/209913/ft1_filtered_4FGL_J1304.6-0348_daily_bin500.fits scfile=/scratch/kocevski/209913/ft2_4FGL_J1304.6-0348_daily_bin500.fits outfile=/scratch/kocevski/209913/cmap_368928001_369187201_4FGL_J1304.6-0348_daily_bin500.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/209913/ft1_filtered_4FGL_J1304.6-0348_daily_bin500.fits scfile=/scratch/kocevski/209913/ft2_4FGL_J1304.6-0348_daily_bin500.fits outfile=/scratch/kocevski/209913/cmap_HighResolution_368928001_369187201_4FGL_J1304.6-0348_daily_bin500.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.41
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/209913/ft1_filtered_4FGL_J1304.6-0348_daily_bin500.fits evtable="EVENTS" scfile=/scratch/kocevski/209913/ft2_4FGL_J1304.6-0348_daily_bin500.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/209913/Model_4FGL_J1304.6-0348_daily_bin500.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/209913/ft1_filtered_4FGL_J1304.6-0348_daily_bin500.fits.....................!
real 50.57
user 49.16
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .95584       1.0000         .10000E-03   10000.    
     2 'norm      '    .64713       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    8.7415       1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.763       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .50984       1.0000         .10000E-03   10000.    
    11 'Prefactor '    28.103       1.0000         .10000E-03   10000.    
    12 'norm      '    43.671       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.704       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.5228       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    40.848       1.0000         .10000E-03   10000.    
    18 'norm      '    1.6187       1.0000         .10000E-03   10000.    
    19 'norm      '    4.1389       1.0000         .10000E-03   10000.    
    20 'norm      '    45.335       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.4744       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .86500       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=   6059.334     FROM MIGRAD    STATUS=CONVERGED    505 CALLS     2395 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .95417        2.4210        .64853E-06    .20111E-03
   2  norm          .64729        .57422        .14153E-07   -.27052E-03
   3  Prefactor     .10000E-03    4.2807       -.54625E-07** at limit **
   4  Prefactor     .10000E-03    13.751        .85625E-06** at limit **
   5  norm          8.7416        2.5226       -.38911E-08   -.15197E-05
   6  Prefactor     12.763        9.3090       -.12440E-06   -.21902E-03
   7  Prefactor     .10000E-03    7.7194       -.10962E-07** at limit **
   8  Prefactor     .10000E-03    12.224        .20066E-07** at limit **
   9  norm          .10000E-03    13.754       -.89516E-06** at limit **
  10  norm          .50994        .23064        .90289E-08   -.23705E-04
  11  Prefactor     27.661        107.23       -.27279E-05   -.61650E-04
  12  norm          43.696        19.327        .19451E-06    .43041E-04
  13  norm          .10000E-03    5.8136        .14168E-07** at limit **
  14  Prefactor     15.704        13.553        .10043E-05    .71008E-03
  15  Prefactor     6.5249        14.906       -.70153E-07   -.58337E-04
  16  Prefactor     .10000E-03    6.2352        .68202E-07** at limit **
  17  Prefactor     40.850        30.467       -.63652E-05   -.84939E-03
  18  norm          1.6186        1.7865        .88592E-07   -.13971E-03
  19  norm          4.1380        5.5927        .51893E-05   -.13200E-02
  20  norm          45.331        41.157        .13797E-05    .31775E-03
  21  Normalizat    1.4741        .25323        .14384E-05   -.12825E-03
  22  Prefactor     .86519        .16790       -.17325E-05    .47705E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.954174
  norm       = 0.647294
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 8.74158
  Prefactor  = 12.7634
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 0.509941
  Prefactor  = 27.6608
  norm       = 43.6961
  norm       = 0.0001
  Prefactor  = 15.7038
  Prefactor  = 6.52495
  Prefactor  = 0.0001
  Prefactor  = 40.8498
  norm       = 1.61865
  norm       = 4.13804
  norm       = 45.331
  Normalizat = 1.47414
  Prefactor  = 0.865185
 **********
 **   18 **HESSE 
 **********

 FCN=   6059.334     FROM HESSE     STATUS=OK           344 CALLS     2739 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .95417        2.0633        .18834E-02   -1.5513    
   2  norm          .64729        .54864        .52127E-03   -1.5547    
   3  Prefactor     .10000E-03    4.2918        .15726E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    13.952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          8.7416        2.5188        .62973E-04   -1.5117    
   6  Prefactor     12.763        9.3174        .11212E-03   -1.4993    
   7  Prefactor     .10000E-03    7.7205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    12.227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    13.867        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .50994        .23053        .23596E-04   -1.5565    
  11  Prefactor     27.661        107.73        .75572E-04   -1.4656    
  12  norm          43.696        19.321        .60666E-04   -1.4385    
  13  norm          .10000E-03    5.8560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     15.704        13.885        .10107E-03   -1.4915    
  15  Prefactor     6.5249        14.926        .15714E-03   -1.5197    
  16  Prefactor     .10000E-03    6.3022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     40.850        30.911        .62718E-04   -1.4429    
  18  norm          1.6186        1.7785        .10261E-03   -1.5454    
  19  norm          4.1380        5.6111        .88028E-03   -1.5301    
  20  norm          45.331        41.573        .59547E-04   -1.4360    
  21  Normalizat    1.4741        .29771        .29478E-03   -.78508    
  22  Prefactor     .86519        .19621        .25911E-03   -.97368    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.99786e-09
Minuit parameter uncertainties:
  1  2.06346
  2  0.548644
  3  3.95912e-07
  4  0.00028434
  5  2.51883
  6  9.31843
  7  4.79064e-07
  8  1.34469e-05
  9  0.000283706
  10  0.230526
  11  108.496
  12  19.324
  13  1.35136e-06
  14  13.8877
  15  14.935
  16  9.64941e-06
  17  30.9229
  18  1.77853
  19  5.61178
  20  41.5996
  21  0.298066
  22  0.196371
Done.

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

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  2.766e+01  1.085e+02  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:  8.652e-01  1.964e-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.474e+00  2.981e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/209913/likelihoodResults_368928001_369187201_4FGL_J1304.6-0348_daily_bin500.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) = 6057.06250945
delta logL = 2.27141904293

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6057.02595322
delta logL = 2.30797527161

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6284       1.0000         .10000E-03   10000.    
     2 'Index     '    4.2233       1.0000          .0000       10.000    
     3 'Normalizat'    1.2875       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94618       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=   6057.026     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      253 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6070        11.923        .82863E-02    .72198E-03
   2  Index         4.2283        1.7443        .63296E-01    .26047E-03
   3  Normalizat    1.2875        .79013E-01    .70107E-01    .15071E-04
   4  Prefactor     .94601        .54951E-01    .45591E-01    .10175E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.60696
  Index      = 4.22829
  Normalizat = 1.28753
  Prefactor  = 0.946012
 **********
 **   18 **HESSE 
 **********

 FCN=   6057.026     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      286 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6070        21.101        .48874E-04   -1.5454    
   2  Index         4.2283        2.5263        .25514E-02   -.15496    
   3  Normalizat    1.2875        .25622        .31019E-03   -.83939    
   4  Prefactor     .94601        .17655        .24867E-03   -.94551    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.22972e-10
Minuit parameter uncertainties:
  1  11.6509
  2  2.65183
  3  0.25647
  4  0.176653
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/209913': 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) = 6057.02594386
delta logL = 2.30798463136

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  1.607e+00  1.165e+01  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  4.228e+00  2.652e+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.460e-01  1.767e-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.288e+00  2.565e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.08
Ra Dec: 196.172 -3.814
Photon Index (Free Index): 4.23 +/- 2.65
Photon Flux (Free Index): 1.85e-07 +/- 9.58e-08
Energy Flux (Free Index): 2.68e-05 +/- 1.72e-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/209913/cmap_HighResolution_368928001_369187201_4FGL_J1304.6-0348_daily_bin500.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.11e-02', comment='SUCCESS', energy_flux2='2.68e-05', dlogl='2.31e+00', photon_flux2='1.85e-07', job_status='DONE', time_completed='2021-09-06 21:10:02.504447', photon_index_error2='2.65', photon_index2='4.23', ts='0.09', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='1.46e-07', energy_flux_error2='1.72e-05', EG='1.47', time_epoch_completed='1630987802.5', return_code='0', job_id='209913', GAL2='0.95', EG2='1.29', return_code2='102', photon_flux_error2='9.58e-08', ts2='5.08', photon_index='2.18' WHERE bin_id='500' AND source_name='4FGL J1304.6-0348' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 21:10:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 209913: <4FGL_J1304.6-0348_daily_bin500> in cluster <slac> Done

Job <4FGL_J1304.6-0348_daily_bin500> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Sep  6 20:55:39 2021
Job was executed on host(s) <bullet0250>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 20:56:39 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:56:39 2021
Terminated at Mon Sep  6 21:10:03 2021
Results reported at Mon Sep  6 21:10:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.6-0348_daily_bin500 196.172 -3.8139 368928001 369187201 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 :                                   665.19 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             313.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   803 sec.
    Turnaround time :                            864 sec.

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

