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


Performing analysis on: 4FGL_J1304.6-0348_daily_bin727
RA = 196.172, Dec = -3.8139
tmin = 427766401, tmax = 428025601
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='212633', job_status='RUN', time_executed='2021-09-06 21:09:24.718882', time_epoch_executed='1630987764.72' WHERE source_name='4FGL J1304.6-0348' and cadence='daily' and bin_id='727'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/212633

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/212633/ft1_4FGL_J1304.6-0348_daily_bin727.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/212633/ft2_4FGL_J1304.6-0348_daily_bin727.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/212633/ft1_4FGL_J1304.6-0348_daily_bin727.fits outfile=/scratch/kocevski/212633/ft1_filteredMKT_4FGL_J1304.6-0348_daily_bin727.fits ra=196.172 dec=-3.8139 rad=12.0 tmin=427766401.0 tmax=428025601.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 5.48
user 5.13
sys 0.26

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/212633/ft1_filtered_4FGL_J1304.6-0348_daily_bin727.fits" evtable="EVENTS" scfile=/scratch/kocevski/212633/ft2_4FGL_J1304.6-0348_daily_bin727.fits sctable="SC_DATA" outfile=/scratch/kocevski/212633/ltcube_427766401_428025601_4FGL_J1304.6-0348_daily_bin727.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/212633/ft2_4FGL_J1304.6-0348_daily_bin727.fits
.....................!
real 14.58
user 14.16
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/212633/ft1_filtered_4FGL_J1304.6-0348_daily_bin727.fits evtable="EVENTS" scfile=/scratch/kocevski/212633/ft2_4FGL_J1304.6-0348_daily_bin727.fits sctable="SC_DATA" expcube=/scratch/kocevski/212633/ltcube_427766401_428025601_4FGL_J1304.6-0348_daily_bin727.fits outfile=/scratch/kocevski/212633/expmap_427766401_428025601_4FGL_J1304.6-0348_daily_bin727.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/212633/ltcube_427766401_428025601_4FGL_J1304.6-0348_daily_bin727.fits
.....................!
real 191.60
user 185.89
sys 5.13

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/212633/ft1_filtered_4FGL_J1304.6-0348_daily_bin727.fits scfile=/scratch/kocevski/212633/ft2_4FGL_J1304.6-0348_daily_bin727.fits outfile=/scratch/kocevski/212633/cmap_427766401_428025601_4FGL_J1304.6-0348_daily_bin727.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.54
user 0.39
sys 0.14

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

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

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/212633/ft1_filtered_4FGL_J1304.6-0348_daily_bin727.fits evtable="EVENTS" scfile=/scratch/kocevski/212633/ft2_4FGL_J1304.6-0348_daily_bin727.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/212633/Model_4FGL_J1304.6-0348_daily_bin727.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/212633/ft1_filtered_4FGL_J1304.6-0348_daily_bin727.fits.....................!
real 55.04
user 53.65
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.3894       1.0000         .10000E-03   10000.    
     2 'norm      '    2.7855       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.5967       1.0000         .10000E-03   10000.    
     5 'norm      '    2.2441       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    34.656       1.0000         .10000E-03   10000.    
     8 'Prefactor '    18.891       1.0000         .10000E-03   10000.    
     9 'norm      '    .10731E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.1292       1.0000         .10000E-03   10000.    
    11 'Prefactor '    69.786       1.0000         .10000E-03   10000.    
    12 'norm      '    .16438E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .21984E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    30.909       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10485E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .87525       1.0000         .10000E-03   10000.    
    19 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1627       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .95820       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=   6607.756     FROM MIGRAD    STATUS=CONVERGED    478 CALLS     2345 TOTAL
                     EDM=   .49E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.3899        3.3532        .55053E-08   -.10420E-04
   2  norm          2.7857        .89130       -.94636E-08   -.34999E-04
   3  Prefactor     .10000E-03    3.7754        .71963E-07** at limit **
   4  Prefactor     7.6022        14.451        .24501E-06   -.18067E-05
   5  norm          2.2445        2.0372        .10054E-06    .68302E-05
   6  Prefactor     .10000E-03    2.7421       -.30454E-07** at limit **
   7  Prefactor     34.654        38.987       -.81799E-07   -.89790E-07
   8  Prefactor     18.881        47.477       -.10761E-05    .18705E-05
   9  norm          .10000E-03    32.784       -.76290E-06** at limit **
  10  norm          4.1295        .53702        .54104E-07    .20367E-03
  11  Prefactor     69.631        100.88       -.85409E-06   -.29146E-05
  12  norm          .10000E-03    16.172       -.49515E-05** at limit **
  13  norm          .10000E-03    5.1679       -.52953E-07** at limit **
  14  Prefactor     .10000E-03    2.1155        .42982E-07** at limit **
  15  Prefactor     .10000E-03    76.088       -.27016E-05** at limit **
  16  Prefactor     30.908        13.243        .44003E-08   -.41485E-04
  17  Prefactor     .10000E-03    37.218        .17882E-05** at limit **
  18  norm          .87649        1.7930        .58853E-06    .12939E-03
  19  norm          .10000E-03    2.3153        .37683E-06** at limit **
  20  norm          .10000E-03    12.193        .57879E-07** at limit **
  21  Normalizat    1.1625        .25837       -.50490E-06    .19897E-05
  22  Prefactor     .95816        .17041       -.23487E-06   -.72234E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.38985
  norm       = 2.78571
  Prefactor  = 0.0001
  Prefactor  = 7.60215
  norm       = 2.2445
  Prefactor  = 0.0001
  Prefactor  = 34.6544
  Prefactor  = 18.8813
  norm       = 0.0001
  norm       = 4.12952
  Prefactor  = 69.6306
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.908
  Prefactor  = 0.0001
  norm       = 0.876492
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.16245
  Prefactor  = 0.958162
 **********
 **   18 **HESSE 
 **********

 FCN=   6607.756     FROM HESSE     STATUS=OK           344 CALLS     2689 TOTAL
                     EDM=   .96E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.3899        3.3530        .12651E-03   -1.5289    
   2  norm          2.7857        .89212        .41018E-04   -1.5374    
   3  Prefactor     .10000E-03    3.7837        .15425E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.6022        14.453        .14550E-03   -1.5156    
   5  norm          2.2445        2.0259        .10537E-03   -1.5408    
   6  Prefactor     .10000E-03    2.7452        .13145E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     34.654        38.977        .68073E-04   -1.4530    
   8  Prefactor     18.881        47.651        .92151E-04   -1.4839    
   9  norm          .10000E-03    32.920        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.1295        .54211        .19361E-04   -1.5302    
  11  Prefactor     69.631        101.07        .24026E-03   -1.4037    
  12  norm          .10000E-03    16.092        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    5.1777        .18047E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.1161        .11546E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    77.465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     30.908        13.255        .72068E-04   -1.4595    
  17  Prefactor     .10000E-03    38.110        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .87649        1.7690        .14411E-03   -1.5521    
  19  norm          .10000E-03    2.3632        .12065E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    12.195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1625        .30243        .34863E-03   -.87771    
  22  Prefactor     .95816        .20028        .25820E-03   -.94137    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.64806e-12
Minuit parameter uncertainties:
  1  3.3531
  2  0.892127
  3  1.07722e-06
  4  14.4592
  5  2.02591
  6  4.36141e-07
  7  39.0061
  8  47.7469
  9  3.53462e-05
  10  0.542115
  11  101.322
  12  2.15392e-05
  13  6.44815e-09
  14  1.50447e-07
  15  8.65482e-05
  16  13.256
  17  3.37109e-05
  18  1.76912
  19  1.19882e-06
  20  1.09712e-06
  21  0.302885
  22  0.200431
Done.

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

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  6.963e+01  1.013e+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:  9.582e-01  2.004e-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.162e+00  3.029e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/212633/likelihoodResults_427766401_428025601_4FGL_J1304.6-0348_daily_bin727.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) = 6607.73178979
delta logL = 0.02392252755

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6607.72373956
delta logL = 0.0319727533397

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    83.776       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9320       1.0000          .0000       10.000    
     3 'Normalizat'    1.1756       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95248       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=   6607.724     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      237 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     83.776        6580.2        .10972E-02   -.65186E-04
   2  Index         1.9320        5.2378        .20042        .18227E-04
   3  Normalizat    1.1760        .15899        .78388E-01    .89592E-05
   4  Prefactor     .95224        .59997E-01    .45670E-01    .10004E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 83.7757
  Index      = 1.93196
  Normalizat = 1.17597
  Prefactor  = 0.95224
 **********
 **   18 **HESSE 
 **********

 FCN=   6607.724     FROM HESSE     STATUS=OK            31 CALLS      268 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     83.776        121.10        .43887E-04   -1.3875    
   2  Index         1.9320        .89305        .11999E-01   -.66062    
   3  Normalizat    1.1760        .29149        .34698E-03   -.87349    
   4  Prefactor     .95224        .19811        .25892E-03   -.94339    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.44357e-10
Minuit parameter uncertainties:
  1  121.457
  2  0.900845
  3  0.291888
  4  0.198263
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/212633': 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) = 6607.72373882
delta logL = 0.0319734990235

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  8.378e+01  1.215e+02  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  1.932e+00  9.008e-01  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.522e-01  1.983e-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.176e+00  2.919e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/212633/cmap_HighResolution_427766401_428025601_4FGL_J1304.6-0348_daily_bin727.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.36e-02', job_status='DONE', photon_flux_upper_limit='1.79e-07', time_completed='2021-09-06 21:21:03.170294', job_id='212633', GAL2='0.95', fit_tolerance='1e-08', EG2='1.18', EG='1.16', time_epoch_completed='1630988463.17', return_code2='0', ts='0.58', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='3.20e-02', ts2='0.66', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='727' AND source_name='4FGL J1304.6-0348' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 21:21:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 212633: <4FGL_J1304.6-0348_daily_bin727> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.6-0348_daily_bin727 196.172 -3.8139 427766401 428025601 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 :                                   695.46 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             276.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   917 sec.
    Turnaround time :                            931 sec.

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

