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


Performing analysis on: 4FGL_J1304.6-0348_daily_bin522
RA = 196.172, Dec = -3.8139
tmin = 374630401, tmax = 374889601
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='211160', job_status='RUN', time_executed='2021-09-06 21:00:55.559151', time_epoch_executed='1630987255.56' WHERE source_name='4FGL J1304.6-0348' and cadence='daily' and bin_id='522'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/211160

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/211160/ft1_4FGL_J1304.6-0348_daily_bin522.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/211160/ft2_4FGL_J1304.6-0348_daily_bin522.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/211160/ft1_4FGL_J1304.6-0348_daily_bin522.fits outfile=/scratch/kocevski/211160/ft1_filteredMKT_4FGL_J1304.6-0348_daily_bin522.fits ra=196.172 dec=-3.8139 rad=12.0 tmin=374630401.0 tmax=374889601.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 4.87
user 4.61
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/211160/ft2_4FGL_J1304.6-0348_daily_bin522.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/211160/ft1_filteredMKT_4FGL_J1304.6-0348_daily_bin522.fits evtable="EVENTS" outfile="/scratch/kocevski/211160/ft1_filtered_4FGL_J1304.6-0348_daily_bin522.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.55
user 0.39
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/211160/ft1_filtered_4FGL_J1304.6-0348_daily_bin522.fits" evtable="EVENTS" scfile=/scratch/kocevski/211160/ft2_4FGL_J1304.6-0348_daily_bin522.fits sctable="SC_DATA" outfile=/scratch/kocevski/211160/ltcube_374630401_374889601_4FGL_J1304.6-0348_daily_bin522.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/211160/ft2_4FGL_J1304.6-0348_daily_bin522.fits
.....................!
real 19.56
user 19.08
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/211160/ft1_filtered_4FGL_J1304.6-0348_daily_bin522.fits evtable="EVENTS" scfile=/scratch/kocevski/211160/ft2_4FGL_J1304.6-0348_daily_bin522.fits sctable="SC_DATA" expcube=/scratch/kocevski/211160/ltcube_374630401_374889601_4FGL_J1304.6-0348_daily_bin522.fits outfile=/scratch/kocevski/211160/expmap_374630401_374889601_4FGL_J1304.6-0348_daily_bin522.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/211160/ltcube_374630401_374889601_4FGL_J1304.6-0348_daily_bin522.fits
.....................!
real 195.76
user 190.44
sys 4.81

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/211160/ft1_filtered_4FGL_J1304.6-0348_daily_bin522.fits scfile=/scratch/kocevski/211160/ft2_4FGL_J1304.6-0348_daily_bin522.fits outfile=/scratch/kocevski/211160/cmap_374630401_374889601_4FGL_J1304.6-0348_daily_bin522.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.60
user 0.42
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/211160/ft1_filtered_4FGL_J1304.6-0348_daily_bin522.fits scfile=/scratch/kocevski/211160/ft2_4FGL_J1304.6-0348_daily_bin522.fits outfile=/scratch/kocevski/211160/cmap_HighResolution_374630401_374889601_4FGL_J1304.6-0348_daily_bin522.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.60
user 0.43
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8226       1.0000         .10000E-03   10000.    
     2 'norm      '    2.1576       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10554E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    16.920       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.3326       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10931E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .21074E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10390E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .55532       1.0000         .10000E-03   10000.    
    11 'Prefactor '    51.626       1.0000         .10000E-03   10000.    
    12 'norm      '    .10854E-01   1.0000         .10000E-03   10000.    
    13 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10368E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    34.604       1.0000         .10000E-03   10000.    
    18 'norm      '    .10265E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.9716       1.0000         .10000E-03   10000.    
    20 'norm      '    .10238E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.7244       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .82332       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=   7357.031     FROM MIGRAD    STATUS=CONVERGED    856 CALLS     2816 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8223        2.0076        .12425E-03    .16745E-04
   2  norm          2.1582        .80218        .44202E-04    .43004E-03
   3  Prefactor     .10000E-03    6.1438        .18142E-02** at limit **
   4  Prefactor     .10013E-03    48.142        .38678E-02** at limit **
   5  norm          16.922        3.1259        .62264E-04    .43372E-03
   6  Prefactor     5.3339        9.9745        .17404E-03    .55525E-05
   7  Prefactor     .10002E-03    293.59        .36285E-03** at limit **
   8  Prefactor     .10000E-03    38.018        .18142E-02** at limit **
   9  norm          .10000E-03    11.031        .18142E-02** at limit **
  10  norm          .55521        .24113        .26064E-04   -.15101E-02
  11  Prefactor     51.635        85.613        .55817E-04   -.97805E-04
  12  norm          .10002E-03    10.116        .75616E-01** at limit **
  13  norm          .10000E-03    8.7277        .18142E-02** at limit **
  14  Prefactor     .10000E-03    2.6278        .13568E-02** at limit **
  15  Prefactor     .10000E-03    5.7105        .18142E-02** at limit **
  16  Prefactor     .10000E-03    4.1981        .17129E-02** at limit **
  17  Prefactor     34.554        39.859        .68123E-04   -.15700E-03
  18  norm          .10000E-03    1.5187        .14545E-02** at limit **
  19  norm          1.9673        6.5307        .24173E-03   -.67207E-04
  20  norm          .10000E-03    10.053        .18142E-02** at limit **
  21  Normalizat    1.7242        .29443        .29422E-03   -.27233E-03
  22  Prefactor     .82353        .18942        .27186E-03   -.61313E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.82227
  norm       = 2.15817
  Prefactor  = 0.0001
  Prefactor  = 0.000100128
  norm       = 16.9218
  Prefactor  = 5.33395
  Prefactor  = 0.000100024
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.555214
  Prefactor  = 51.6348
  norm       = 0.000100016
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.5544
  norm       = 0.000100002
  norm       = 1.96734
  norm       = 0.0001
  Normalizat = 1.72424
  Prefactor  = 0.823533
 **********
 **   18 **HESSE 
 **********

 FCN=   7357.031     FROM HESSE     STATUS=OK           330 CALLS     3146 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8223        2.0076        .49698E-05   -1.5438    
   2  norm          2.1582        .80220        .17681E-05   -1.5414    
   3  Prefactor     .10000E-03    6.1452        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10013E-03    49.111        .77356E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          16.922        3.1260        .12453E-04   -1.4885    
   6  Prefactor     5.3339        9.9737        .69615E-05   -1.5246    
   7  Prefactor     .10002E-03    293.61        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    38.020        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    11.031        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .55521        .24112        .10425E-05   -1.5559    
  11  Prefactor     51.635        85.652        .11163E-04   -1.4270    
  12  norm          .10002E-03    9.6872        .78403E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    8.7303        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.6279        .27135E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.7107        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.1986        .34257E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     34.554        39.764        .13625E-04   -1.4532    
  18  norm          .10000E-03    1.5241        .29090E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.9673        6.5146        .96691E-05   -1.5427    
  20  norm          .10000E-03    10.053        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.7242        .29473        .58845E-04   -.71658    
  22  Prefactor     .82353        .18958        .54372E-04   -.98867    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.55249e-09
Minuit parameter uncertainties:
  1  2.00763
  2  0.8022
  3  1.81542e-05
  4  0.00502383
  5  3.12599
  6  9.97684
  7  0.00536494
  8  1.08203e-05
  9  1.67606e-05
  10  0.24112
  11  85.8569
  12  0.000788651
  13  5.82393e-06
  14  7.56702e-06
  15  6.20965e-06
  16  1.8061e-05
  17  39.7941
  18  9.67173e-05
  19  6.51696
  20  1.27965e-05
  21  0.295035
  22  0.189732
Done.

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

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  5.163e+01  8.586e+01  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.235e-01  1.897e-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.724e+00  2.950e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/211160/likelihoodResults_374630401_374889601_4FGL_J1304.6-0348_daily_bin522.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) = 7356.0079122
delta logL = 1.02305861259

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7355.94440482
delta logL = 1.08656599087

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0889       1.0000         .10000E-03   10000.    
     2 'Index     '    3.8629       1.0000          .0000       10.000    
     3 'Normalizat'    1.5850       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88983       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=   7355.944     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      275 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0701        32.753        .57690E-02    .67655E-03
   2  Index         3.8650        1.9186        .93809E-01    .26134E-03
   3  Normalizat    1.5851        .71149E-01    .68706E-01   -.10765E-04
   4  Prefactor     .88974        .46947E-01    .44875E-01    .82128E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.07011
  Index      = 3.86503
  Normalizat = 1.58506
  Prefactor  = 0.889742
 **********
 **   18 **HESSE 
 **********

 FCN=   7355.944     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      308 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0701        64.313        .94949E-04   -1.5358    
   2  Index         3.8650        3.1834        .33532E-02   -.22899    
   3  Normalizat    1.5851        .25400        .30393E-03   -.75415    
   4  Prefactor     .88974        .16864        .26262E-03   -.96500    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.38888e-10
Minuit parameter uncertainties:
  1  28.1374
  2  3.4696
  3  0.254208
  4  0.168743
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/211160': 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) = 7355.94440341
delta logL = 1.08656739739

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  3.070e+00  2.814e+01  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  3.865e+00  3.470e+00  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.897e-01  1.687e-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.585e+00  2.542e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.88
Ra Dec: 196.172 -3.814
Photon Index (Free Index): 3.87 +/- 3.47
Photon Flux (Free Index): 1.32e-07 +/- 9.13e-08
Energy Flux (Free Index): 2.03e-05 +/- 1.67e-05

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/211160/cmap_HighResolution_374630401_374889601_4FGL_J1304.6-0348_daily_bin522.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.06e-02', comment='SUCCESS', energy_flux2='2.03e-05', dlogl='1.09e+00', photon_flux2='1.32e-07', job_status='DONE', time_completed='2021-09-06 21:14:20.418210', photon_index_error2='3.47', photon_index2='3.87', ts='0.48', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='1.40e-07', energy_flux_error2='1.67e-05', EG='1.72', time_epoch_completed='1630988060.42', return_code='0', job_id='211160', GAL2='0.89', EG2='1.59', return_code2='102', photon_flux_error2='9.13e-08', ts2='2.88', photon_index='2.18' WHERE bin_id='522' AND source_name='4FGL J1304.6-0348' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 21:14:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 211160: <4FGL_J1304.6-0348_daily_bin522> in cluster <slac> Done

Job <4FGL_J1304.6-0348_daily_bin522> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 21:00:33 2021
Job was executed on host(s) <bullet0203>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 21:00:38 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:00:38 2021
Terminated at Mon Sep  6 21:14:21 2021
Results reported at Mon Sep  6 21:14:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.6-0348_daily_bin522 196.172 -3.8139 374630401 374889601 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 :                                   801.50 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             301.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   822 sec.
    Turnaround time :                            828 sec.

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

