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


Performing analysis on: 4FGL_J1304.6-0348_daily_bin697
RA = 196.172, Dec = -3.8139
tmin = 419990401, tmax = 420249601
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='212584', job_status='RUN', time_executed='2021-09-06 21:08:31.457612', time_epoch_executed='1630987711.46' WHERE source_name='4FGL J1304.6-0348' and cadence='daily' and bin_id='697'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/212584

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/212584/ft1_4FGL_J1304.6-0348_daily_bin697.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/212584/ft2_4FGL_J1304.6-0348_daily_bin697.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/212584/ft1_4FGL_J1304.6-0348_daily_bin697.fits outfile=/scratch/kocevski/212584/ft1_filteredMKT_4FGL_J1304.6-0348_daily_bin697.fits ra=196.172 dec=-3.8139 rad=12.0 tmin=419990401.0 tmax=420249601.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.45
user 3.16
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/212584/ft1_filtered_4FGL_J1304.6-0348_daily_bin697.fits" evtable="EVENTS" scfile=/scratch/kocevski/212584/ft2_4FGL_J1304.6-0348_daily_bin697.fits sctable="SC_DATA" outfile=/scratch/kocevski/212584/ltcube_419990401_420249601_4FGL_J1304.6-0348_daily_bin697.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/212584/ft2_4FGL_J1304.6-0348_daily_bin697.fits
.....................!
real 15.63
user 15.17
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/212584/ft1_filtered_4FGL_J1304.6-0348_daily_bin697.fits evtable="EVENTS" scfile=/scratch/kocevski/212584/ft2_4FGL_J1304.6-0348_daily_bin697.fits sctable="SC_DATA" expcube=/scratch/kocevski/212584/ltcube_419990401_420249601_4FGL_J1304.6-0348_daily_bin697.fits outfile=/scratch/kocevski/212584/expmap_419990401_420249601_4FGL_J1304.6-0348_daily_bin697.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/212584/ltcube_419990401_420249601_4FGL_J1304.6-0348_daily_bin697.fits
.....................!
real 192.30
user 185.88
sys 5.59

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/212584/ft1_filtered_4FGL_J1304.6-0348_daily_bin697.fits scfile=/scratch/kocevski/212584/ft2_4FGL_J1304.6-0348_daily_bin697.fits outfile=/scratch/kocevski/212584/cmap_419990401_420249601_4FGL_J1304.6-0348_daily_bin697.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/212584/ft1_filtered_4FGL_J1304.6-0348_daily_bin697.fits scfile=/scratch/kocevski/212584/ft2_4FGL_J1304.6-0348_daily_bin697.fits outfile=/scratch/kocevski/212584/cmap_HighResolution_419990401_420249601_4FGL_J1304.6-0348_daily_bin697.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.56
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/212584/ft1_filtered_4FGL_J1304.6-0348_daily_bin697.fits evtable="EVENTS" scfile=/scratch/kocevski/212584/ft2_4FGL_J1304.6-0348_daily_bin697.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/212584/Model_4FGL_J1304.6-0348_daily_bin697.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/212584/ft1_filtered_4FGL_J1304.6-0348_daily_bin697.fits.....................!
real 48.66
user 47.29
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .17326E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.4031       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.3605       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.164       1.0000         .10000E-03   10000.    
     5 'norm      '    1.1816       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.817       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    7.2068       1.0000         .10000E-03   10000.    
    10 'norm      '    2.5013       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12126E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .14402E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.1911       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .25058E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10599E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.6395       1.0000         .10000E-03   10000.    
    19 'norm      '    2.0414       1.0000         .10000E-03   10000.    
    20 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0591       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .97176       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=   5819.451     FROM MIGRAD    STATUS=CONVERGED    494 CALLS     2398 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.5643        .12769E-06** at limit **
   2  norm          2.4029        .73377        .11740E-07    .24283E-03
   3  Prefactor     3.3586        8.4357       -.10703E-05    .30903E-04
   4  Prefactor     10.165        17.080       -.44412E-06   -.20601E-05
   5  norm          1.1824        1.5402       -.38579E-06   -.91437E-04
   6  Prefactor     .10001E-03    8.9988        .12948E-05** at limit **
   7  Prefactor     17.828        28.449       -.10629E-05   -.44514E-04
   8  Prefactor     .10000E-03    19.168        .12332E-05** at limit **
   9  norm          7.2058        15.439       -.96739E-07    .21060E-04
  10  norm          2.5012        .40070        .10590E-07   -.27987E-03
  11  Prefactor     .10000E-03    58.041        .38164E-05** at limit **
  12  norm          .10003E-03    30.746        .44254E-05** at limit **
  13  norm          2.1886        15.059       -.29067E-05   -.34646E-04
  14  Prefactor     .10000E-03    3.1578        .36884E-07** at limit **
  15  Prefactor     .10000E-03    12.567        .98262E-06** at limit **
  16  Prefactor     .10000E-03    8.0003        .12501E-06** at limit **
  17  Prefactor     .10000E-03    28.046        .93773E-06** at limit **
  18  norm          1.6396        1.5062       -.21829E-06   -.20485E-03
  19  norm          2.0374        3.5522       -.91757E-06   -.10599E-03
  20  norm          .10000E-03    9.7501       -.47510E-07** at limit **
  21  Normalizat    1.0589        .23949        .68914E-06   -.85718E-04
  22  Prefactor     .97164        .16268        .68122E-07   -.10575E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 2.40288
  Prefactor  = 3.35862
  Prefactor  = 10.165
  norm       = 1.18238
  Prefactor  = 0.00010001
  Prefactor  = 17.8281
  Prefactor  = 0.0001
  norm       = 7.20576
  norm       = 2.50124
  Prefactor  = 0.000100002
  norm       = 0.000100034
  norm       = 2.18861
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 1.63958
  norm       = 2.03744
  norm       = 0.0001
  Normalizat = 1.05885
  Prefactor  = 0.97164
 **********
 **   18 **HESSE 
 **********

 FCN=   5819.451     FROM HESSE     STATUS=OK           352 CALLS     2750 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.2230        .23609E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.4029        .73211        .34107E-04   -1.5398    
   3  Prefactor     3.3586        8.3784        .22076E-03   -1.5341    
   4  Prefactor     10.165        17.032        .12568E-03   -1.5070    
   5  norm          1.1824        1.5095        .10301E-03   -1.5490    
   6  Prefactor     .10001E-03    14.613        .31266E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     17.828        28.503        .94887E-04   -1.4863    
   8  Prefactor     .10000E-03    19.277        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          7.2058        15.403        .14942E-03   -1.5171    
  10  norm          2.5012        .40118        .18256E-04   -1.5392    
  11  Prefactor     .10000E-03    59.045        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10003E-03    45.802        .43777E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.1886        15.132        .27803E-03   -1.5412    
  14  Prefactor     .10000E-03    3.1604        .13238E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    12.670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    32.824        .40056E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    28.398        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.6396        1.4928        .85359E-04   -1.5452    
  19  norm          2.0374        3.5540        .18429E-03   -1.5422    
  20  norm          .10000E-03    9.7513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0589        .28045        .31523E-03   -.91084    
  22  Prefactor     .97164        .19300        .22981E-03   -.93681    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56505e-09
Minuit parameter uncertainties:
  1  3.37792e-05
  2  0.732108
  3  8.38136
  4  17.0399
  5  1.50952
  6  0.000768414
  7  28.5251
  8  0.00012344
  9  15.4112
  10  0.401178
  11  0.000638019
  12  0.00251345
  13  11.5137
  14  4.22749e-07
  15  5.81527e-05
  16  0.000510582
  17  0.000150668
  18  1.49281
  19  3.5544
  20  4.68144e-06
  21  0.280846
  22  0.19314
Done.

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

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  6.380e-04  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.716e-01  1.931e-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.059e+00  2.808e-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: 9.81e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.46e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/212584/likelihoodResults_419990401_420249601_4FGL_J1304.6-0348_daily_bin697.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) = 5819.45062862
delta logL = -8.05964409665e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5819.45054803
delta logL = 1.34514266392e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1231       1.0000          .0000       10.000    
     3 'Normalizat'    1.0589       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97164       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=   5819.451     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      234 TOTAL
                     EDM=   .23E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1982.1        .90712E-02** at limit **
   2  Index         2.1221        5.4730        .50000        .12001E-06
   3  Normalizat    1.0589        .36541E-01    .71241E-01    .12063E-04
   4  Prefactor     .97164        .25775E-01    .45912E-01    .45631E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.12208
  Normalizat = 1.05885
  Prefactor  = 0.97164
 **********
 **   18 **HESSE 
 **********

 FCN=   5819.451     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      267 TOTAL
                     EDM=   .60E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7494.8        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1221        8.9317        .50000       -.61332    
   3  Normalizat    1.0589        .68975E-01    .31523E-03   -.91084    
   4  Prefactor     .97164        .48710E-01    .22981E-03   -.93681    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.98218e-13
Minuit parameter uncertainties:
  1  5.50753e-05
  2  42.1383
  3  0.0689811
  4  0.0487117
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/212584': 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) = 5819.45054802
delta logL = 1.97542249225e-09

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  5.508e-05  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  2.122e+00  4.214e+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.716e-01  4.871e-02  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.059e+00  6.898e-02  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/212584/cmap_HighResolution_419990401_420249601_4FGL_J1304.6-0348_daily_bin697.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.46e-03', job_status='DONE', photon_flux_upper_limit='9.81e-08', time_completed='2021-09-06 21:19:16.596347', job_id='212584', GAL2='0.97', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1630988356.6', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='1.98e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='697' AND source_name='4FGL J1304.6-0348' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 21:19:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 212584: <4FGL_J1304.6-0348_daily_bin697> in cluster <slac> Done

Job <4FGL_J1304.6-0348_daily_bin697> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 21:05:28 2021
Job was executed on host(s) <bullet0266>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 21:05:37 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:37 2021
Terminated at Mon Sep  6 21:19:17 2021
Results reported at Mon Sep  6 21:19:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.6-0348_daily_bin697 196.172 -3.8139 419990401 420249601 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 :                                   642.38 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             272.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   819 sec.
    Turnaround time :                            829 sec.

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

