/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 162 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 = 7474
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1304.6-0348_daily_bin443
RA = 196.172, Dec = -3.8139
tmin = 354153601, tmax = 354412801
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='209832', job_status='RUN', time_executed='2021-09-06 20:59:13.560115', time_epoch_executed='1630987153.56' WHERE source_name='4FGL J1304.6-0348' and cadence='daily' and bin_id='443'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/209832

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/209832/ft1_4FGL_J1304.6-0348_daily_bin443.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/209832/ft2_4FGL_J1304.6-0348_daily_bin443.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/209832/ft1_4FGL_J1304.6-0348_daily_bin443.fits outfile=/scratch/kocevski/209832/ft1_filteredMKT_4FGL_J1304.6-0348_daily_bin443.fits ra=196.172 dec=-3.8139 rad=12.0 tmin=354153601.0 tmax=354412801.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.98
user 3.70
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/209832/ft1_filtered_4FGL_J1304.6-0348_daily_bin443.fits" evtable="EVENTS" scfile=/scratch/kocevski/209832/ft2_4FGL_J1304.6-0348_daily_bin443.fits sctable="SC_DATA" outfile=/scratch/kocevski/209832/ltcube_354153601_354412801_4FGL_J1304.6-0348_daily_bin443.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/209832/ft2_4FGL_J1304.6-0348_daily_bin443.fits
.....................!
real 15.15
user 14.77
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/209832/ft1_filtered_4FGL_J1304.6-0348_daily_bin443.fits evtable="EVENTS" scfile=/scratch/kocevski/209832/ft2_4FGL_J1304.6-0348_daily_bin443.fits sctable="SC_DATA" expcube=/scratch/kocevski/209832/ltcube_354153601_354412801_4FGL_J1304.6-0348_daily_bin443.fits outfile=/scratch/kocevski/209832/expmap_354153601_354412801_4FGL_J1304.6-0348_daily_bin443.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/209832/ltcube_354153601_354412801_4FGL_J1304.6-0348_daily_bin443.fits
.....................!
real 193.11
user 186.62
sys 5.52

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/209832/ft1_filtered_4FGL_J1304.6-0348_daily_bin443.fits scfile=/scratch/kocevski/209832/ft2_4FGL_J1304.6-0348_daily_bin443.fits outfile=/scratch/kocevski/209832/cmap_354153601_354412801_4FGL_J1304.6-0348_daily_bin443.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.55
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/209832/ft1_filtered_4FGL_J1304.6-0348_daily_bin443.fits scfile=/scratch/kocevski/209832/ft2_4FGL_J1304.6-0348_daily_bin443.fits outfile=/scratch/kocevski/209832/cmap_HighResolution_354153601_354412801_4FGL_J1304.6-0348_daily_bin443.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12255E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.5300       1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.773       1.0000         .10000E-03   10000.    
     4 'Prefactor '    22.055       1.0000         .10000E-03   10000.    
     5 'norm      '    6.4637       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.6811       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.1669       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .11725E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .27953E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    11.057       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.827       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.0809       1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.7481       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .69694       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=   6440.858     FROM MIGRAD    STATUS=CONVERGED    479 CALLS     2386 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.9623       -.12443E-06** at limit **
   2  norm          2.5302        .79852       -.31117E-08    .33869E-03
   3  Prefactor     11.776        10.020        .56464E-06    .79844E-04
   4  Prefactor     22.054        14.691       -.26022E-08   -.29145E-04
   5  norm          6.4638        2.5629        .50530E-07    .27314E-04
   6  Prefactor     6.6644        11.963       -.11534E-05    .47488E-03
   7  Prefactor     4.1374        37.555       -.23692E-04   -.90276E-06
   8  Prefactor     .10000E-03    66.919        .62729E-04** at limit **
   9  norm          .10001E-03    89.943       -.62186E-04** at limit **
  10  norm          .10017E-03    .19141       -.73964E-07** at limit **
  11  Prefactor     .10000E-03    35.975       -.11193E-04** at limit **
  12  norm          11.058        14.840       -.22050E-05   -.96585E-03
  13  norm          .10000E-03    4.2605        .83062E-07** at limit **
  14  Prefactor     .10000E-03    4.5696       -.79731E-08** at limit **
  15  Prefactor     .10000E-03    15.168       -.22894E-05** at limit **
  16  Prefactor     11.825        11.028       -.36803E-06   -.56535E-04
  17  Prefactor     .10000E-03    17.201        .42516E-05** at limit **
  18  norm          1.0807        1.2311        .12132E-07   -.67681E-04
  19  norm          .10000E-03    1.7463       -.20681E-06** at limit **
  20  norm          .10000E-03    8.1531        .26394E-06** at limit **
  21  Normalizat    1.7482        .24229        .81744E-06    .14738E-03
  22  Prefactor     .69697        .15606        .90785E-06    .13615E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 2.53019
  Prefactor  = 11.7758
  Prefactor  = 22.0541
  norm       = 6.46384
  Prefactor  = 6.66436
  Prefactor  = 4.13738
  Prefactor  = 0.0001
  norm       = 0.000100006
  norm       = 0.000100171
  Prefactor  = 0.0001
  norm       = 11.0576
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.8247
  Prefactor  = 0.0001
  norm       = 1.08075
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.74821
  Prefactor  = 0.696965
 **********
 **   18 **HESSE 
 **********

 FCN=   6440.858     FROM HESSE     STATUS=OK           352 CALLS     2738 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.0589        .21834E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.5302        .79823        .38082E-04   -1.5390    
   3  Prefactor     11.776        10.001        .11675E-03   -1.5022    
   4  Prefactor     22.054        14.710        .85290E-04   -1.4768    
   5  norm          6.4638        2.5640        .76625E-04   -1.5199    
   6  Prefactor     6.6644        11.914        .15524E-03   -1.5192    
   7  Prefactor     4.1374        37.658        .19744E-03   -1.5301    
   8  Prefactor     .10000E-03    66.785        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10001E-03    89.638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10017E-03    .30110        .90419E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    35.966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          11.058        15.001        .60242E-03   -1.5043    
  13  norm          .10000E-03    4.2646        .16178E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.5814        .16753E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    15.218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     11.825        11.041        .11649E-03   -1.5020    
  17  Prefactor     .10000E-03    17.262        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.0807        1.2318        .46333E-04   -1.5500    
  19  norm          .10000E-03    1.7555        .10355E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    8.1533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.7482        .29050        .27736E-03   -.71023    
  22  Prefactor     .69697        .18378        .27725E-03   -1.0365    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.49587e-09
Minuit parameter uncertainties:
  1  5.90878e-06
  2  0.798238
  3  10.0026
  4  14.7128
  5  2.56408
  6  11.918
  7  24.985
  8  0.000120654
  9  0.00151456
  10  0.000453997
  11  4.39239e-05
  12  15.006
  13  1.8155e-06
  14  4.27819e-06
  15  6.19508e-06
  16  11.0432
  17  2.06039e-05
  18  1.23185
  19  2.47179e-06
  20  6.61911e-07
  21  0.29079
  22  0.183942
Done.

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

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  4.392e-05  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.970e-01  1.839e-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.748e+00  2.908e-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: 8.74e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.65e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/209832/likelihoodResults_354153601_354412801_4FGL_J1304.6-0348_daily_bin443.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) = 6440.85858742
delta logL = -0.000132384793687

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6440.85845506
delta logL = -2.88246155833e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10371E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1075       1.0000          .0000       10.000    
     3 'Normalizat'    1.7482       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69697       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=   6440.858     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      239 TOTAL
                     EDM=   .84E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2135.6        .90712E-02** at limit **
   2  Index         2.1010        5.3864        .50000        .14163E-05
   3  Normalizat    1.7482        .51505E-01    .62720E-01   -.15559E-05
   4  Prefactor     .69697        .34612E-01    .62673E-01    .21682E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.10102
  Normalizat = 1.74821
  Prefactor  = 0.696965
 **********
 **   18 **HESSE 
 **********

 FCN=   6440.858     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      270 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7459.9        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1010        5.6056        .50000       -.61848    
   3  Normalizat    1.7482        .10491        .27736E-03   -.71023    
   4  Prefactor     .69697        .70434E-01    .27725E-03   -1.0365    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.20666e-10
Minuit parameter uncertainties:
  1  0.000253097
  2  52.6047
  3  0.104924
  4  0.0704428
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/209832': 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) = 6440.85845501
delta logL = 2.89655872621e-08

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  2.531e-04  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  2.101e+00  5.260e+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:  6.970e-01  7.044e-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.748e+00  1.049e-01  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/209832/cmap_HighResolution_354153601_354412801_4FGL_J1304.6-0348_daily_bin443.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.65e-03', job_status='DONE', photon_flux_upper_limit='8.74e-08', time_completed='2021-09-06 21:10:34.399412', job_id='209832', GAL2='0.70', fit_tolerance='1e-08', EG2='1.75', EG='1.75', time_epoch_completed='1630987834.4', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.70', dlogl='2.90e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='443' AND source_name='4FGL J1304.6-0348' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 21:10:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0125>
Subject: Job 209832: <4FGL_J1304.6-0348_daily_bin443> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.6-0348_daily_bin443 196.172 -3.8139 354153601 354412801 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 :                                   678.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   853 sec.
    Turnaround time :                            901 sec.

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

