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


Performing analysis on: 4FGL_J1304.6-0348_daily_bin487
RA = 196.172, Dec = -3.8139
tmin = 365558401, tmax = 365817601
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='209894', job_status='RUN', time_executed='2021-09-06 20:59:08.720792', time_epoch_executed='1630987148.72' WHERE source_name='4FGL J1304.6-0348' and cadence='daily' and bin_id='487'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/209894

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/209894/ft1_4FGL_J1304.6-0348_daily_bin487.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/209894/ft2_4FGL_J1304.6-0348_daily_bin487.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/209894/ft1_4FGL_J1304.6-0348_daily_bin487.fits outfile=/scratch/kocevski/209894/ft1_filteredMKT_4FGL_J1304.6-0348_daily_bin487.fits ra=196.172 dec=-3.8139 rad=12.0 tmin=365558401.0 tmax=365817601.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.62
user 3.36
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/209894/ft1_filtered_4FGL_J1304.6-0348_daily_bin487.fits" evtable="EVENTS" scfile=/scratch/kocevski/209894/ft2_4FGL_J1304.6-0348_daily_bin487.fits sctable="SC_DATA" outfile=/scratch/kocevski/209894/ltcube_365558401_365817601_4FGL_J1304.6-0348_daily_bin487.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/209894/ft2_4FGL_J1304.6-0348_daily_bin487.fits
.....................!
real 17.22
user 16.83
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/209894/ft1_filtered_4FGL_J1304.6-0348_daily_bin487.fits evtable="EVENTS" scfile=/scratch/kocevski/209894/ft2_4FGL_J1304.6-0348_daily_bin487.fits sctable="SC_DATA" expcube=/scratch/kocevski/209894/ltcube_365558401_365817601_4FGL_J1304.6-0348_daily_bin487.fits outfile=/scratch/kocevski/209894/expmap_365558401_365817601_4FGL_J1304.6-0348_daily_bin487.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/209894/ltcube_365558401_365817601_4FGL_J1304.6-0348_daily_bin487.fits
.....................!
real 192.82
user 187.98
sys 4.31

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/209894/ft1_filtered_4FGL_J1304.6-0348_daily_bin487.fits scfile=/scratch/kocevski/209894/ft2_4FGL_J1304.6-0348_daily_bin487.fits outfile=/scratch/kocevski/209894/cmap_365558401_365817601_4FGL_J1304.6-0348_daily_bin487.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.58
user 0.39
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/209894/ft1_filtered_4FGL_J1304.6-0348_daily_bin487.fits evtable="EVENTS" scfile=/scratch/kocevski/209894/ft2_4FGL_J1304.6-0348_daily_bin487.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/209894/Model_4FGL_J1304.6-0348_daily_bin487.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/209894/ft1_filtered_4FGL_J1304.6-0348_daily_bin487.fits.....................!
real 59.71
user 58.27
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    1.4354       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    27.487       1.0000         .10000E-03   10000.    
     5 'norm      '    4.3744       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.2718       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .99638E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    15.053       1.0000         .10000E-03   10000.    
    10 'norm      '    .77825       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10204E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    11.569       1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.666       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    21.131       1.0000         .10000E-03   10000.    
    18 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10099E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.5646       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .89832       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=   7255.250     FROM MIGRAD    STATUS=CONVERGED    473 CALLS     2032 TOTAL
                     EDM=   .60E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.0346        .28682E-08** at limit **
   2  norm          1.4353        .68856        .37126E-07    .45116E-04
   3  Prefactor     .10000E-03    3.6346        .70914E-09** at limit **
   4  Prefactor     27.486        15.235        .21255E-07    .73642E-05
   5  norm          4.3743        1.8967        .28811E-07   -.38738E-05
   6  Prefactor     5.2716        11.459       -.34713E-06    .17746E-04
   7  Prefactor     .10000E-03    15.733        .39159E-07** at limit **
   8  Prefactor     .10000E-03    391.58       -.11104E-04** at limit **
   9  norm          15.058        26.030       -.38539E-07    .10359E-04
  10  norm          .77837        .25627       -.18143E-06    .18797E-03
  11  Prefactor     .10000E-03    72.530        .28744E-06** at limit **
  12  norm          11.568        9.8221        .15243E-06   -.28678E-05
  13  norm          .10000E-03    4.5913        .20735E-07** at limit **
  14  Prefactor     10.665        9.1114        .11687E-06   -.37949E-05
  15  Prefactor     .10000E-03    18.724        .68018E-07** at limit **
  16  Prefactor     .10000E-03    2.9137        .24451E-07** at limit **
  17  Prefactor     21.133        19.808        .16356E-06   -.52766E-05
  18  norm          .10000E-03    .56320        .10393E-06** at limit **
  19  norm          .10000E-03    1.6402        .12504E-07** at limit **
  20  norm          .10000E-03    9.3193        .81479E-08** at limit **
  21  Normalizat    1.5647        .23076       -.76153E-06   -.38460E-04
  22  Prefactor     .89833        .15150       -.30298E-06   -.52786E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 1.43534
  Prefactor  = 0.0001
  Prefactor  = 27.4857
  norm       = 4.37425
  Prefactor  = 5.27164
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 15.0575
  norm       = 0.778372
  Prefactor  = 0.0001
  norm       = 11.5676
  norm       = 0.0001
  Prefactor  = 10.665
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.1333
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.56467
  Prefactor  = 0.898327
 **********
 **   18 **HESSE 
 **********

 FCN=   7255.250     FROM HESSE     STATUS=OK           344 CALLS     2376 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.0378        .84606E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.4353        .68451        .46241E-04   -1.5468    
   3  Prefactor     .10000E-03    3.6389        .15856E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     27.486        15.241        .76413E-04   -1.4659    
   5  norm          4.3743        1.8958        .74237E-04   -1.5290    
   6  Prefactor     5.2716        11.398        .17506E-03   -1.5249    
   7  Prefactor     .10000E-03    15.745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    390.35        .41530E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          15.058        25.938        .10323E-03   -1.4932    
  10  norm          .77837        .25536        .23327E-04   -1.5532    
  11  Prefactor     .10000E-03    72.740        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          11.568        9.8251        .11778E-03   -1.5028    
  13  norm          .10000E-03    4.6006        .17825E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.665        9.1094        .12268E-03   -1.5055    
  15  Prefactor     .10000E-03    18.917        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.9209        .14197E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     21.133        19.764        .87133E-04   -1.4788    
  18  norm          .10000E-03    .98889        .12396E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.6465        .10626E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    9.3207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.5647        .27254        .29454E-03   -.75977    
  22  Prefactor     .89833        .17820        .25462E-03   -.96200    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20533e-11
Minuit parameter uncertainties:
  1  7.43123e-07
  2  0.684511
  3  4.3552e-06
  4  15.2429
  5  1.89578
  6  11.4025
  7  1.61043e-05
  8  0.000363958
  9  25.9576
  10  0.255364
  11  0.000221757
  12  9.82644
  13  3.04841e-06
  14  9.11053
  15  2.54597e-05
  16  3.166e-06
  17  19.7701
  18  3.00441e-06
  19  6.77814e-07
  20  1.55385e-06
  21  0.272798
  22  0.178314
Done.

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

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  2.218e-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:  8.983e-01  1.783e-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.565e+00  2.728e-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.49e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.22e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/209894/likelihoodResults_365558401_365817601_4FGL_J1304.6-0348_daily_bin487.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) = 7255.2505306
delta logL = -6.53927099847e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7255.25046531
delta logL = -1.0176881915e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1279       1.0000          .0000       10.000    
     3 'Normalizat'    1.5647       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89833       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=   7255.250     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      239 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    635.29        .90712E-02** at limit **
   2  Index         2.1895        7.4233        .50000       -.98281E-05
   3  Normalizat    1.5647        .17126E-01    .66587E-01   -.38484E-03
   4  Prefactor     .89833        .11692E-01    .44984E-01   -.63489E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.18948
  Normalizat = 1.56466
  Prefactor  = 0.89833
 **********
 **   18 **HESSE 
 **********

 FCN=   7255.250     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      270 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2175.8        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1895        6.5249        .50000       -.59693    
   3  Normalizat    1.5647        .33385E-01    .29454E-03   -.75977    
   4  Prefactor     .89833        .22800E-01    .25462E-03   -.96199    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.45335e-09
Minuit parameter uncertainties:
  1  0.00280609
  2  23.3166
  3  0.0333854
  4  0.0228001
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/209894': 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) = 7255.25046517
delta logL = 3.05135472445e-08

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  2.806e-03  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  2.189e+00  2.332e+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:  8.983e-01  2.280e-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.565e+00  3.339e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/209894/cmap_HighResolution_365558401_365817601_4FGL_J1304.6-0348_daily_bin487.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.22e-03', job_status='DONE', photon_flux_upper_limit='9.49e-08', time_completed='2021-09-06 21:10:44.539705', job_id='209894', GAL2='0.90', fit_tolerance='1e-08', EG2='1.56', EG='1.56', time_epoch_completed='1630987844.54', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='3.05e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='487' AND source_name='4FGL J1304.6-0348' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 21:10:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0149>
Subject: Job 209894: <4FGL_J1304.6-0348_daily_bin487> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.6-0348_daily_bin487 196.172 -3.8139 365558401 365817601 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 :                                   693.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             326.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   849 sec.
    Turnaround time :                            907 sec.

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

