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


Performing analysis on: 4FGL_J1304.6-0348_daily_bin902
RA = 196.172, Dec = -3.8139
tmin = 473126401, tmax = 473385601
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='212915', job_status='RUN', time_executed='2021-09-06 21:06:36.213219', time_epoch_executed='1630987596.21' WHERE source_name='4FGL J1304.6-0348' and cadence='daily' and bin_id='902'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/212915

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/212915/ft1_4FGL_J1304.6-0348_daily_bin902.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/212915/ft2_4FGL_J1304.6-0348_daily_bin902.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/212915/ft1_4FGL_J1304.6-0348_daily_bin902.fits outfile=/scratch/kocevski/212915/ft1_filteredMKT_4FGL_J1304.6-0348_daily_bin902.fits ra=196.172 dec=-3.8139 rad=12.0 tmin=473126401.0 tmax=473385601.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.55
user 3.29
sys 0.22

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/212915/ft1_filtered_4FGL_J1304.6-0348_daily_bin902.fits" evtable="EVENTS" scfile=/scratch/kocevski/212915/ft2_4FGL_J1304.6-0348_daily_bin902.fits sctable="SC_DATA" outfile=/scratch/kocevski/212915/ltcube_473126401_473385601_4FGL_J1304.6-0348_daily_bin902.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/212915/ft2_4FGL_J1304.6-0348_daily_bin902.fits
.....................!
real 16.96
user 16.49
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/212915/ft1_filtered_4FGL_J1304.6-0348_daily_bin902.fits evtable="EVENTS" scfile=/scratch/kocevski/212915/ft2_4FGL_J1304.6-0348_daily_bin902.fits sctable="SC_DATA" expcube=/scratch/kocevski/212915/ltcube_473126401_473385601_4FGL_J1304.6-0348_daily_bin902.fits outfile=/scratch/kocevski/212915/expmap_473126401_473385601_4FGL_J1304.6-0348_daily_bin902.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/212915/ltcube_473126401_473385601_4FGL_J1304.6-0348_daily_bin902.fits
.....................!
real 193.05
user 187.14
sys 5.10

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/212915/ft1_filtered_4FGL_J1304.6-0348_daily_bin902.fits scfile=/scratch/kocevski/212915/ft2_4FGL_J1304.6-0348_daily_bin902.fits outfile=/scratch/kocevski/212915/cmap_473126401_473385601_4FGL_J1304.6-0348_daily_bin902.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/212915/ft1_filtered_4FGL_J1304.6-0348_daily_bin902.fits scfile=/scratch/kocevski/212915/ft2_4FGL_J1304.6-0348_daily_bin902.fits outfile=/scratch/kocevski/212915/cmap_HighResolution_473126401_473385601_4FGL_J1304.6-0348_daily_bin902.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.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/212915/ft1_filtered_4FGL_J1304.6-0348_daily_bin902.fits evtable="EVENTS" scfile=/scratch/kocevski/212915/ft2_4FGL_J1304.6-0348_daily_bin902.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/212915/Model_4FGL_J1304.6-0348_daily_bin902.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/212915/ft1_filtered_4FGL_J1304.6-0348_daily_bin902.fits.....................!
real 69.33
user 67.85
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.9372       1.0000         .10000E-03   10000.    
     2 'norm      '    3.0177       1.0000         .10000E-03   10000.    
     3 'Prefactor '    22.312       1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.296       1.0000         .10000E-03   10000.    
     5 'norm      '    4.6832       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.9301       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10856E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.2372       1.0000         .10000E-03   10000.    
     9 'norm      '    .10304E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.5638       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10346E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    12.097       1.0000         .10000E-03   10000.    
    13 'norm      '    .10167E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.8680       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .51813E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .15321E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.0983       1.0000         .10000E-03   10000.    
    19 'norm      '    4.4738       1.0000         .10000E-03   10000.    
    20 'norm      '    .16996E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.4502       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .68077       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=   8786.639     FROM MIGRAD    STATUS=CONVERGED    478 CALLS     2030 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.9377        3.5833        .78114E-07   -.22015E-04
   2  norm          3.0174        .67489       -.51157E-08   -.26518E-03
   3  Prefactor     22.310        10.117       -.43382E-06   -.32191E-04
   4  Prefactor     19.285        10.316        .17085E-06   -.27866E-04
   5  norm          4.6828        1.5956        .18823E-07   -.34561E-04
   6  Prefactor     6.9334        8.6546        .38713E-05   -.11831E-03
   7  Prefactor     .10000E-03    17.734       -.49379E-06** at limit **
   8  Prefactor     1.2034        224.09       -.87735E-05   -.81516E-04
   9  norm          .10000E-03    6.2667       -.11265E-06** at limit **
  10  norm          1.5641        .28259       -.37779E-07   -.21664E-03
  11  Prefactor     .10000E-03    13.171        .33370E-06** at limit **
  12  norm          12.092        9.1694        .96712E-06   -.10015E-03
  13  norm          .10000E-03    12.060       -.19313E-06** at limit **
  14  Prefactor     8.8670        6.2909        .29311E-07   -.19751E-03
  15  Prefactor     .10000E-03    5.8001        .44982E-07** at limit **
  16  Prefactor     .10007E-03    4.6713        .12016E-05** at limit **
  17  Prefactor     .10000E-03    15.435        .33865E-06** at limit **
  18  norm          2.0982        1.3416        .89564E-07   -.33330E-03
  19  norm          4.4776        2.8578        .56918E-07   -.20618E-03
  20  norm          .10000E-03    38.724        .26565E-06** at limit **
  21  Normalizat    1.4504        .20042       -.12493E-05   -.16113E-03
  22  Prefactor     .68081        .13067       -.39779E-06   -.20167E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.93765
  norm       = 3.01743
  Prefactor  = 22.3097
  Prefactor  = 19.2848
  norm       = 4.68282
  Prefactor  = 6.93342
  Prefactor  = 0.000100001
  Prefactor  = 1.20345
  norm       = 0.0001
  norm       = 1.56406
  Prefactor  = 0.0001
  norm       = 12.0916
  norm       = 0.0001
  Prefactor  = 8.86701
  Prefactor  = 0.0001
  Prefactor  = 0.000100074
  Prefactor  = 0.0001
  norm       = 2.09817
  norm       = 4.47759
  norm       = 0.0001
  Normalizat = 1.45044
  Prefactor  = 0.680814
 **********
 **   18 **HESSE 
 **********

 FCN=   8786.639     FROM HESSE     STATUS=OK           350 CALLS     2380 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.9377        3.5821        .13276E-03   -1.5221    
   2  norm          3.0174        .67633        .34576E-04   -1.5361    
   3  Prefactor     22.310        10.114        .84797E-04   -1.4763    
   4  Prefactor     19.285        10.319        .91178E-04   -1.4829    
   5  norm          4.6828        1.5960        .66730E-04   -1.5275    
   6  Prefactor     6.9334        8.6903        .76199E-03   -1.5181    
   7  Prefactor     .10000E-03    17.819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.2034        233.99        .40354E-02   -1.5489    
   9  norm          .10000E-03    6.2690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.5641        .28344        .19227E-04   -1.5458    
  11  Prefactor     .10000E-03    13.173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          12.092        9.1629        .57588E-03   -1.5012    
  13  norm          .10000E-03    12.307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.8670        6.2795        .13460E-03   -1.5112    
  15  Prefactor     .10000E-03    5.8123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10007E-03    32.377        .37441E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    15.576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.0982        1.3387        .82183E-04   -1.5418    
  19  norm          4.4776        2.8515        .12238E-03   -1.5285    
  20  norm          .10000E-03    38.944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.4504        .23887        .28502E-03   -.79181    
  22  Prefactor     .68081        .15576        .27168E-03   -1.0428    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.77727e-09
Minuit parameter uncertainties:
  1  3.58225
  2  0.676334
  3  10.1147
  4  10.3203
  5  1.59599
  6  8.69184
  7  0.000194736
  8  33.6941
  9  1.36756e-05
  10  0.283441
  11  0.000120566
  12  9.16399
  13  8.70036e-05
  14  6.27999
  15  7.36511e-07
  16  0.00309701
  17  8.52907e-05
  18  1.33869
  19  2.8516
  20  5.38178e-05
  21  0.239052
  22  0.155856
Done.

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

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  1.206e-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:  6.808e-01  1.559e-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.450e+00  2.391e-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: 4.48e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.40e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/212915/likelihoodResults_473126401_473385601_4FGL_J1304.6-0348_daily_bin902.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) = 8786.63896425
delta logL = -0.000358524683179

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8786.63860571
delta logL = 2.22480593948e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1525       1.0000          .0000       10.000    
     3 'Normalizat'    1.4504       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68083       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=   8786.639     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      248 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10463E-03    8.1702        .18142E-01** at limit **
   2  Index         2.0221        7.2476        .50000        .11258E-04
   3  Normalizat    1.4504        .35873E-02    .28502E-03   -.15133E-03
   4  Prefactor     .68081        .24527E-02    .27168E-03   -.19442E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104628
  Index      = 2.02212
  Normalizat = 1.45044
  Prefactor  = 0.680814
 **********
 **   18 **HESSE 
 **********

 FCN=   8786.639     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      277 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10463E-03    107.76        .35600E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0221        5.2756        .50000       -.63798    
   3  Normalizat    1.4504        .13135E-01    .57004E-04   -.79181    
   4  Prefactor     .68081        .89805E-02    .10867E-04   -1.0428    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.20164e-09
Minuit parameter uncertainties:
  1  0.0447425
  2  536.872
  3  0.0131349
  4  0.00898049
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/212915': 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) = 8786.63860539
delta logL = 3.3644028008e-07

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  1.046e-04  4.474e-02  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  2.022e+00  5.369e+02  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:  6.808e-01  8.980e-03  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.450e+00  1.313e-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/212915/cmap_HighResolution_473126401_473385601_4FGL_J1304.6-0348_daily_bin902.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.40e-03', job_status='DONE', photon_flux_upper_limit='4.48e-08', time_completed='2021-09-06 21:19:43.130803', job_id='212915', GAL2='0.68', fit_tolerance='1e-08', EG2='1.45', EG='1.45', time_epoch_completed='1630988383.13', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.68', dlogl='3.36e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='902' AND source_name='4FGL J1304.6-0348' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 21:19:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0012>
Subject: Job 212915: <4FGL_J1304.6-0348_daily_bin902> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.6-0348_daily_bin902 196.172 -3.8139 473126401 473385601 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 :                                   778.38 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             339.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   799 sec.
    Turnaround time :                            827 sec.

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

