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


Performing analysis on: 4FGL_J1304.6-0348_daily_bin567
RA = 196.172, Dec = -3.8139
tmin = 386294401, tmax = 386553601
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='211230', job_status='RUN', time_executed='2021-09-06 21:01:27.506279', time_epoch_executed='1630987287.51' WHERE source_name='4FGL J1304.6-0348' and cadence='daily' and bin_id='567'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/211230

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/211230/ft1_4FGL_J1304.6-0348_daily_bin567.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/211230/ft2_4FGL_J1304.6-0348_daily_bin567.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/211230/ft1_4FGL_J1304.6-0348_daily_bin567.fits outfile=/scratch/kocevski/211230/ft1_filteredMKT_4FGL_J1304.6-0348_daily_bin567.fits ra=196.172 dec=-3.8139 rad=12.0 tmin=386294401.0 tmax=386553601.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.95
user 3.73
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/211230/ft1_filtered_4FGL_J1304.6-0348_daily_bin567.fits" evtable="EVENTS" scfile=/scratch/kocevski/211230/ft2_4FGL_J1304.6-0348_daily_bin567.fits sctable="SC_DATA" outfile=/scratch/kocevski/211230/ltcube_386294401_386553601_4FGL_J1304.6-0348_daily_bin567.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/211230/ft2_4FGL_J1304.6-0348_daily_bin567.fits
.....................!
real 14.97
user 14.62
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/211230/ft1_filtered_4FGL_J1304.6-0348_daily_bin567.fits evtable="EVENTS" scfile=/scratch/kocevski/211230/ft2_4FGL_J1304.6-0348_daily_bin567.fits sctable="SC_DATA" expcube=/scratch/kocevski/211230/ltcube_386294401_386553601_4FGL_J1304.6-0348_daily_bin567.fits outfile=/scratch/kocevski/211230/expmap_386294401_386553601_4FGL_J1304.6-0348_daily_bin567.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/211230/ltcube_386294401_386553601_4FGL_J1304.6-0348_daily_bin567.fits
.....................!
real 191.98
user 187.06
sys 4.54

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/211230/ft1_filtered_4FGL_J1304.6-0348_daily_bin567.fits scfile=/scratch/kocevski/211230/ft2_4FGL_J1304.6-0348_daily_bin567.fits outfile=/scratch/kocevski/211230/cmap_386294401_386553601_4FGL_J1304.6-0348_daily_bin567.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.56
user 0.38
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/211230/ft1_filtered_4FGL_J1304.6-0348_daily_bin567.fits evtable="EVENTS" scfile=/scratch/kocevski/211230/ft2_4FGL_J1304.6-0348_daily_bin567.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/211230/Model_4FGL_J1304.6-0348_daily_bin567.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/211230/ft1_filtered_4FGL_J1304.6-0348_daily_bin567.fits.....................!
real 55.61
user 54.17
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .33782       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.7072       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11454       1.0000         .10000E-03   10000.    
     5 'norm      '    9.3651       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .21031E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    7.2318       1.0000         .10000E-03   10000.    
    10 'norm      '    .57972       1.0000         .10000E-03   10000.    
    11 'Prefactor '    68.934       1.0000         .10000E-03   10000.    
    12 'norm      '    22.196       1.0000         .10000E-03   10000.    
    13 'norm      '    3.3564       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10192E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.395       1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.676       1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.597       1.0000         .10000E-03   10000.    
    18 'norm      '    3.5314       1.0000         .10000E-03   10000.    
    19 'norm      '    5.0553       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3505       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .71447       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=   6408.008     FROM MIGRAD    STATUS=CONVERGED    502 CALLS     2409 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .74996       -.15446E-07** at limit **
   2  norm          .33766        .56593       -.24062E-07   -.16767E-02
   3  Prefactor     9.6963        11.033       -.49592E-05   -.19923E-03
   4  Prefactor     .11175E-03    8.9936       -.13773E-05** at limit **
   5  norm          9.3643        2.4905       -.30041E-07   -.14874E-04
   6  Prefactor     .10000E-03    3.3623        .13938E-05** at limit **
   7  Prefactor     .10000E-03    8.8763        .11826E-05** at limit **
   8  Prefactor     .10000E-03    27.003        .85766E-06** at limit **
   9  norm          7.2248        15.498        .70726E-06   -.62577E-04
  10  norm          .57970        .23130        .15637E-06    .62367E-04
  11  Prefactor     68.885        68.175       -.31520E-04    .10198E-05
  12  norm          22.193        15.096        .33411E-05    .33598E-05
  13  norm          3.3555        6.6870        .78080E-06   -.15658E-03
  14  Prefactor     .10000E-03    8.5543       -.33802E-05** at limit **
  15  Prefactor     16.381        22.381       -.38806E-05   -.23158E-05
  16  Prefactor     15.672        10.115       -.73934E-05    .43656E-04
  17  Prefactor     19.571        27.990        .37282E-04   -.26655E-04
  18  norm          3.5306        1.8785       -.20301E-07   -.16420E-03
  19  norm          5.0579        5.1851       -.86017E-05    .19876E-03
  20  norm          .10000E-03    17.038        .35584E-06** at limit **
  21  Normalizat    1.3506        .23429        .25590E-05    .55401E-04
  22  Prefactor     .71463        .15035        .53191E-06    .17574E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.337655
  Prefactor  = 9.69632
  Prefactor  = 0.000111753
  norm       = 9.36427
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.22477
  norm       = 0.579696
  Prefactor  = 68.8851
  norm       = 22.1933
  norm       = 3.35547
  Prefactor  = 0.0001
  Prefactor  = 16.3809
  Prefactor  = 15.6721
  Prefactor  = 19.5707
  norm       = 3.53063
  norm       = 5.05788
  norm       = 0.0001
  Normalizat = 1.35061
  Prefactor  = 0.714635
 **********
 **   18 **HESSE 
 **********

 FCN=   6408.008     FROM HESSE     STATUS=OK           360 CALLS     2769 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .75132        .67695E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .33766        .55361        .71387E-04   -1.5592    
   3  Prefactor     9.6963        10.936        .12862E-03   -1.5085    
   4  Prefactor     .11175E-03    17.519        .64485E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          9.3643        2.4819        .61783E-04   -1.5096    
   6  Prefactor     .10000E-03    8.5263        .28297E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.8797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    27.056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          7.2248        15.464        .14916E-03   -1.5170    
  10  norm          .57970        .23074        .22938E-04   -1.5556    
  11  Prefactor     68.885        68.247        .48346E-04   -1.4046    
  12  norm          22.193        15.086        .85018E-04   -1.4765    
  13  norm          3.3555        6.6690        .22090E-03   -1.5342    
  14  Prefactor     .10000E-03    8.6320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     16.381        22.470        .98917E-04   -1.4898    
  16  Prefactor     15.672        10.120        .10116E-03   -1.4916    
  17  Prefactor     19.571        28.039        .90476E-04   -1.4823    
  18  norm          3.5306        1.8782        .75448E-04   -1.5332    
  19  norm          5.0579        5.2004        .14019E-03   -1.5258    
  20  norm          .10000E-03    17.066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.3506        .27933        .28345E-03   -.82068    
  22  Prefactor     .71463        .17724        .25473E-03   -1.0296    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.60313e-10
Minuit parameter uncertainties:
  1  1.09046e-06
  2  0.55362
  3  10.9387
  4  0.0287069
  5  2.48193
  6  0.000199601
  7  3.15631e-06
  8  1.52806e-05
  9  15.4722
  10  0.230743
  11  68.3242
  12  15.0885
  13  6.67045
  14  8.75143e-05
  15  22.4815
  16  10.1209
  17  28.0573
  18  1.87824
  19  5.20086
  20  9.67326e-06
  21  0.279647
  22  0.177385
Done.

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

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  6.889e+01  6.832e+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:  7.146e-01  1.774e-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.351e+00  2.796e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.86
Ra Dec: 196.172 -3.814
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 4.30e-08 +/- 4.27e-08
Energy Flux (Fixed Index): 2.02e-05 +/- 2.01e-05

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

Saving results to:
/scratch/kocevski/211230/likelihoodResults_386294401_386553601_4FGL_J1304.6-0348_daily_bin567.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) = 6407.94996998
delta logL = 0.0582422402049

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6407.94541046
delta logL = 0.062801758525

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    52.105       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4100       1.0000          .0000       10.000    
     3 'Normalizat'    1.3372       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72007       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=   6407.945     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      284 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     52.080        78.859        .55562E-04    .40289E-03
   2  Index         2.4095        .76127        .65210E-02    .25606E-03
   3  Normalizat    1.3373        .26280        .28456E-03   -.10682E-02
   4  Prefactor     .72019        .17643        .25381E-03   -.13976E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 52.08
  Index      = 2.40954
  Normalizat = 1.33733
  Prefactor  = 0.720191
 **********
 **   18 **HESSE 
 **********

 FCN=   6407.945     FROM HESSE     STATUS=OK            25 CALLS      309 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     52.080        70.260        .11112E-04   -1.4263    
   2  Index         2.4095        .67787        .26084E-03   -.54462    
   3  Normalizat    1.3373        .26235        .56911E-04   -.82459    
   4  Prefactor     .72019        .17628        .50762E-04   -1.0274    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.2873e-09
Minuit parameter uncertainties:
  1  70.3716
  2  0.680743
  3  0.262612
  4  0.176413
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/211230': 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) = 6407.94540743
delta logL = 0.06280478802

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  5.208e+01  7.037e+01  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  2.410e+00  6.807e-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:  7.202e-01  1.764e-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.337e+00  2.626e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.00
Ra Dec: 196.172 -3.814
Photon Index (Free Index): 2.41 +/- 0.68
Photon Flux (Free Index): 5.52e-08 +/- 5.83e-08
Energy Flux (Free Index): 1.78e-05 +/- 1.69e-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/211230/cmap_HighResolution_386294401_386553601_4FGL_J1304.6-0348_daily_bin567.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.04e-02', comment='SUCCESS', photon_flux='4.30e-08', energy_flux2='1.78e-05', photon_flux_error='4.27e-08', dlogl='6.28e-02', energy_flux='2.02e-05', photon_flux2='5.52e-08', job_status='DONE', time_completed='2021-09-06 21:12:50.990539', photon_index_error2='0.68', photon_index2='2.41', ts='1.86', fit_tolerance='1e-08', GAL='0.71', photon_index_error='0.00', photon_flux_upper_limit='1.37e-07', energy_flux_error2='1.69e-05', EG='1.35', time_epoch_completed='1630987970.99', return_code='0', job_id='211230', GAL2='0.72', EG2='1.34', return_code2='0', energy_flux_error='2.01e-05', photon_flux_error2='5.83e-08', ts2='2.00', photon_index='2.18' WHERE bin_id='567' AND source_name='4FGL J1304.6-0348' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 21:12:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0143>
Subject: Job 211230: <4FGL_J1304.6-0348_daily_bin567> in cluster <slac> Done

Job <4FGL_J1304.6-0348_daily_bin567> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 21:00:40 2021
Job was executed on host(s) <bullet0143>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 21:01:10 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:01:10 2021
Terminated at Mon Sep  6 21:12:51 2021
Results reported at Mon Sep  6 21:12:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.6-0348_daily_bin567 196.172 -3.8139 386294401 386553601 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 :                                   680.44 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             355.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   701 sec.
    Turnaround time :                            731 sec.

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

