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


Performing analysis on: 4FGL_J1304.6-0348_daily_bin505
RA = 196.172, Dec = -3.8139
tmin = 370224001, tmax = 370483201
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='209920', job_status='RUN', time_executed='2021-09-06 21:00:23.669979', time_epoch_executed='1630987223.67' WHERE source_name='4FGL J1304.6-0348' and cadence='daily' and bin_id='505'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/209920

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/209920/ft1_4FGL_J1304.6-0348_daily_bin505.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/209920/ft2_4FGL_J1304.6-0348_daily_bin505.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/209920/ft1_4FGL_J1304.6-0348_daily_bin505.fits outfile=/scratch/kocevski/209920/ft1_filteredMKT_4FGL_J1304.6-0348_daily_bin505.fits ra=196.172 dec=-3.8139 rad=12.0 tmin=370224001.0 tmax=370483201.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 16.56
user 16.03
sys 0.47

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/209920/ft1_filtered_4FGL_J1304.6-0348_daily_bin505.fits" evtable="EVENTS" scfile=/scratch/kocevski/209920/ft2_4FGL_J1304.6-0348_daily_bin505.fits sctable="SC_DATA" outfile=/scratch/kocevski/209920/ltcube_370224001_370483201_4FGL_J1304.6-0348_daily_bin505.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/209920/ft2_4FGL_J1304.6-0348_daily_bin505.fits
.....................!
real 16.08
user 15.70
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/209920/ft1_filtered_4FGL_J1304.6-0348_daily_bin505.fits evtable="EVENTS" scfile=/scratch/kocevski/209920/ft2_4FGL_J1304.6-0348_daily_bin505.fits sctable="SC_DATA" expcube=/scratch/kocevski/209920/ltcube_370224001_370483201_4FGL_J1304.6-0348_daily_bin505.fits outfile=/scratch/kocevski/209920/expmap_370224001_370483201_4FGL_J1304.6-0348_daily_bin505.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/209920/ltcube_370224001_370483201_4FGL_J1304.6-0348_daily_bin505.fits
.....................!
real 192.92
user 188.06
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/209920/ft1_filtered_4FGL_J1304.6-0348_daily_bin505.fits scfile=/scratch/kocevski/209920/ft2_4FGL_J1304.6-0348_daily_bin505.fits outfile=/scratch/kocevski/209920/cmap_370224001_370483201_4FGL_J1304.6-0348_daily_bin505.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/209920/ft1_filtered_4FGL_J1304.6-0348_daily_bin505.fits scfile=/scratch/kocevski/209920/ft2_4FGL_J1304.6-0348_daily_bin505.fits outfile=/scratch/kocevski/209920/cmap_HighResolution_370224001_370483201_4FGL_J1304.6-0348_daily_bin505.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.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/209920/ft1_filtered_4FGL_J1304.6-0348_daily_bin505.fits evtable="EVENTS" scfile=/scratch/kocevski/209920/ft2_4FGL_J1304.6-0348_daily_bin505.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/209920/Model_4FGL_J1304.6-0348_daily_bin505.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/209920/ft1_filtered_4FGL_J1304.6-0348_daily_bin505.fits.....................!
real 20.45
user 19.20
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.3442       1.0000         .10000E-03   10000.    
     2 'norm      '    .51141E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.5535       1.0000         .10000E-03   10000.    
     5 'norm      '    15.248       1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.383       1.0000         .10000E-03   10000.    
     7 'Prefactor '    189.07       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .86869       1.0000         .10000E-03   10000.    
    11 'Prefactor '    258.23       1.0000         .10000E-03   10000.    
    12 'norm      '    99.010       1.0000         .10000E-03   10000.    
    13 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12838E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10363E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10255E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10132E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    239.22       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .99959       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.8084       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=   976.7117     FROM MIGRAD    STATUS=CONVERGED    482 CALLS     2379 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.3453        7.6597        .48389E-06   -.60550E-05
   2  norm          .51531E-01    2.0920        .74912E-07   -.52182E-03
   3  Prefactor     .10000E-03    19.528       -.11781E-06** at limit **
   4  Prefactor     4.8739        1530.8       -.53400E-04   -.11887E-04
   5  norm          15.246        7.0172       -.93152E-07    .46998E-05
   6  Prefactor     18.379        28.373       -.56926E-07   -.14327E-05
   7  Prefactor     189.05        169.27       -.55466E-06   -.29384E-05
   8  Prefactor     .10000E-03    89.611        .23272E-06** at limit **
   9  norm          .10000E-03    47.359       -.31423E-07** at limit **
  10  norm          .86857        .89357        .59104E-07   -.15418E-05
  11  Prefactor     258.26        336.95        .15572E-06    .71816E-06
  12  norm          99.013        86.660        .10955E-06    .19604E-05
  13  norm          .10000E-03    93.745        .64101E-08** at limit **
  14  Prefactor     .10000E-03    511.03        .85755E-06** at limit **
  15  Prefactor     .10000E-03    188.34       -.49020E-06** at limit **
  16  Prefactor     .10000E-03    163.38        .82519E-07** at limit **
  17  Prefactor     .10001E-03    7002.7       -.14101E-05** at limit **
  18  norm          .10000E-03    7.5770       -.91810E-06** at limit **
  19  norm          .10000E-03    866.08       -.76600E-07** at limit **
  20  norm          238.81        313.78        .35416E-06   -.93652E-05
  21  Normalizat    1.0018        .96494        .21355E-04   -.62099E-05
  22  Prefactor     1.8067        .70999       -.86524E-05    .56306E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.34529
  norm       = 0.0515314
  Prefactor  = 0.0001
  Prefactor  = 4.87386
  norm       = 15.2462
  Prefactor  = 18.3792
  Prefactor  = 189.053
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.868565
  Prefactor  = 258.263
  norm       = 99.013
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 238.806
  Normalizat = 1.00176
  Prefactor  = 1.80669
 **********
 **   18 **HESSE 
 **********

 FCN=   976.7117     FROM HESSE     STATUS=OK           342 CALLS     2721 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.3453        7.6266        .15036E-03   -1.5402    
   2  norm          .51531E-01    14.819        .80189E-03   -1.5663    
   3  Prefactor     .10000E-03    19.544        .13494E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.8739        1649.1        .18865E-02   -1.5266    
   5  norm          15.246        7.0074        .51596E-04   -1.4927    
   6  Prefactor     18.379        28.364        .93415E-04   -1.4850    
   7  Prefactor     189.05        169.08        .14685E-03   -1.2949    
   8  Prefactor     .10000E-03    89.591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    47.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .86857        .90032        .29096E-04   -1.5522    
  11  Prefactor     258.26        336.95        .12610E-03   -1.2480    
  12  norm          99.013        86.642        .20200E-03   -1.3715    
  13  norm          .10000E-03    93.732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    510.78        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    188.89        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    163.34        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    6997.6        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    7.5839        .84050E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    865.32        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          238.81        313.86        .13088E-03   -1.2605    
  21  Normalizat    1.0018        1.0156        .51280E-03   -.92972    
  22  Prefactor     1.8067        .76040        .29485E-03   -.69276    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.89342e-09
Minuit parameter uncertainties:
  1  7.62971
  2  1.74647
  3  1.4978e-05
  4  184.687
  5  7.0078
  6  28.3846
  7  169.515
  8  7.10808e-05
  9  1.28688e-05
  10  0.900332
  11  339.533
  12  86.7531
  13  5.85144e-05
  14  0.000688538
  15  0.00025692
  16  0.000111552
  17  0.0133723
  18  1.88885e-05
  19  0.00128334
  20  316.11
  21  1.03627
  22  0.765437
Done.

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

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  2.583e+02  3.395e+02  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:  1.807e+00  7.654e-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.002e+00  1.036e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.25
Ra Dec: 196.172 -3.814
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 1.61e-07 +/- 2.12e-07
Energy Flux (Fixed Index): 7.58e-05 +/- 9.97e-05

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

Saving results to:
/scratch/kocevski/209920/likelihoodResults_370224001_370483201_4FGL_J1304.6-0348_daily_bin505.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 976.283532173
delta logL = 0.428199256392

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 976.15902997
delta logL = 0.552701459536

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    493.30       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3274       1.0000          .0000       10.000    
     3 'Normalizat'    1.0728       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.7632       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=   976.1590     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      207 TOTAL
                     EDM=   .70E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     493.82        557.04        .30415E-04   -.32468E-05
   2  Index         1.3281        .66130        .63271E-04   -.29380E-05
   3  Normalizat    1.0726        .84367       -.16637E-05   -.69133E-04
   4  Prefactor     1.7631        .62912       -.19849E-05   -.88856E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 493.822
  Index      = 1.32806
  Normalizat = 1.07256
  Prefactor  = 1.76308
 **********
 **   18 **HESSE 
 **********

 FCN=   976.1590     FROM HESSE     STATUS=OK            27 CALLS      234 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     493.82        555.86        .92355E-04   -1.1226    
   2  Index         1.3281        .65989        .57365E-02   -.82477    
   3  Normalizat    1.0726        .96877        .49753E-03   -.90638    
   4  Prefactor     1.7631        .72653        .29707E-03   -.70415    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29767e-10
Minuit parameter uncertainties:
  1  562.145
  2  0.664117
  3  0.985496
  4  0.731005
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/209920': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 976.159028958
delta logL = 0.552702471713

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  4.938e+02  5.621e+02  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  1.328e+00  6.641e-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:  1.763e+00  7.310e-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.073e+00  9.855e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.37
Ra Dec: 196.172 -3.814
Photon Index (Free Index): 1.33 +/- 0.66
Photon Flux (Free Index): 7.57e-08 +/- 9.89e-08
Energy Flux (Free Index): 4.24e-04 +/- 7.94e-04

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/209920/cmap_HighResolution_370224001_370483201_4FGL_J1304.6-0348_daily_bin505.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.48e-02', comment='SUCCESS', photon_flux='1.61e-07', energy_flux2='4.24e-04', photon_flux_error='2.12e-07', dlogl='5.53e-01', energy_flux='7.58e-05', photon_flux2='7.57e-08', job_status='DONE', time_completed='2021-09-06 21:07:51.071592', photon_index_error2='0.66', photon_index2='1.33', ts='1.25', fit_tolerance='1e-08', GAL='1.81', photon_index_error='0.00', photon_flux_upper_limit='8.52e-07', energy_flux_error2='7.94e-04', EG='1.00', time_epoch_completed='1630987671.07', return_code='0', job_id='209920', GAL2='1.76', EG2='1.07', return_code2='0', energy_flux_error='9.97e-05', photon_flux_error2='9.89e-08', ts2='2.37', photon_index='2.18' WHERE bin_id='505' AND source_name='4FGL J1304.6-0348' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 21:07:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 209920: <4FGL_J1304.6-0348_daily_bin505> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.6-0348_daily_bin505 196.172 -3.8139 370224001 370483201 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 :                                   441.23 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             201.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   671 sec.
    Turnaround time :                            731 sec.

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

