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


Performing analysis on: 4FGL_J1304.6-0348_daily_bin365
RA = 196.172, Dec = -3.8139
tmin = 333936001, tmax = 334195201
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='209719', job_status='RUN', time_executed='2021-09-06 20:56:03.945649', time_epoch_executed='1630986963.95' WHERE source_name='4FGL J1304.6-0348' and cadence='daily' and bin_id='365'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/209719

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/209719/ft1_4FGL_J1304.6-0348_daily_bin365.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/209719/ft2_4FGL_J1304.6-0348_daily_bin365.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/209719/ft1_4FGL_J1304.6-0348_daily_bin365.fits outfile=/scratch/kocevski/209719/ft1_filteredMKT_4FGL_J1304.6-0348_daily_bin365.fits ra=196.172 dec=-3.8139 rad=12.0 tmin=333936001.0 tmax=334195201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.62
user 3.37
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/209719/ft1_filtered_4FGL_J1304.6-0348_daily_bin365.fits" evtable="EVENTS" scfile=/scratch/kocevski/209719/ft2_4FGL_J1304.6-0348_daily_bin365.fits sctable="SC_DATA" outfile=/scratch/kocevski/209719/ltcube_333936001_334195201_4FGL_J1304.6-0348_daily_bin365.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/209719/ft2_4FGL_J1304.6-0348_daily_bin365.fits
.....................!
real 17.12
user 16.73
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/209719/ft1_filtered_4FGL_J1304.6-0348_daily_bin365.fits evtable="EVENTS" scfile=/scratch/kocevski/209719/ft2_4FGL_J1304.6-0348_daily_bin365.fits sctable="SC_DATA" expcube=/scratch/kocevski/209719/ltcube_333936001_334195201_4FGL_J1304.6-0348_daily_bin365.fits outfile=/scratch/kocevski/209719/expmap_333936001_334195201_4FGL_J1304.6-0348_daily_bin365.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/209719/ltcube_333936001_334195201_4FGL_J1304.6-0348_daily_bin365.fits
.....................!
real 194.32
user 189.36
sys 4.32

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/209719/ft1_filtered_4FGL_J1304.6-0348_daily_bin365.fits scfile=/scratch/kocevski/209719/ft2_4FGL_J1304.6-0348_daily_bin365.fits outfile=/scratch/kocevski/209719/cmap_333936001_334195201_4FGL_J1304.6-0348_daily_bin365.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.57
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/209719/ft1_filtered_4FGL_J1304.6-0348_daily_bin365.fits scfile=/scratch/kocevski/209719/ft2_4FGL_J1304.6-0348_daily_bin365.fits outfile=/scratch/kocevski/209719/cmap_HighResolution_333936001_334195201_4FGL_J1304.6-0348_daily_bin365.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.58
user 0.42
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/209719/ft1_filtered_4FGL_J1304.6-0348_daily_bin365.fits evtable="EVENTS" scfile=/scratch/kocevski/209719/ft2_4FGL_J1304.6-0348_daily_bin365.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/209719/Model_4FGL_J1304.6-0348_daily_bin365.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/209719/ft1_filtered_4FGL_J1304.6-0348_daily_bin365.fits.....................!
real 74.28
user 72.79
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0239       1.0000         .10000E-03   10000.    
     2 'norm      '    .13630E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.7690       1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.318       1.0000         .10000E-03   10000.    
     5 'norm      '    19.595       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.4965       1.0000         .10000E-03   10000.    
     9 'norm      '    .10065E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.5308       1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.950       1.0000         .10000E-03   10000.    
    12 'norm      '    4.9339       1.0000         .10000E-03   10000.    
    13 'norm      '    11.091       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10352       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .14047E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10074E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    28.297       1.0000         .10000E-03   10000.    
    21 'Normalizat'    2.0438       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .65456       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=   9439.481     FROM MIGRAD    STATUS=CONVERGED    509 CALLS     2411 TOTAL
                     EDM=   .91E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0238        2.4812       -.10143E-05   -.14807E-02
   2  norm          .10000E-03    .19997        .32070E-07** at limit **
   3  Prefactor     4.7682        7.5759       -.28766E-05    .10803E-03
   4  Prefactor     13.314        11.253       -.13059E-06   -.56447E-04
   5  norm          19.595        3.0716       -.14407E-07   -.30537E-04
   6  Prefactor     .10000E-03    3.2367        .38773E-07** at limit **
   7  Prefactor     .10000E-03    10.959       -.73637E-07** at limit **
   8  Prefactor     3.4913        42.379       -.20853E-05   -.18604E-04
   9  norm          .10000E-03    25.758       -.98414E-07** at limit **
  10  norm          1.5307        .27791        .26507E-07    .18856E-03
  11  Prefactor     13.945        36.524       -.91047E-05    .11706E-03
  12  norm          4.9331        6.1020       -.90716E-06   -.47843E-04
  13  norm          11.091        8.4054       -.11607E-05    .19031E-03
  14  Prefactor     .10000E-03    5.6647       -.32876E-06** at limit **
  15  Prefactor     .10000E-03    3.5039        .54591E-08** at limit **
  16  Prefactor     .10000E-03    2.9399       -.41412E-09** at limit **
  17  Prefactor     .10000E-03    38.885        .17675E-06** at limit **
  18  norm          .10000E-03    .30875       -.78080E-08** at limit **
  19  norm          .10000E-03    1.5848       -.14929E-07** at limit **
  20  norm          28.297        21.648       -.90773E-06    .62484E-04
  21  Normalizat    2.0442        .20834        .49196E-06    .82532E-04
  22  Prefactor     .65447        .13901        .72747E-06    .51569E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.02378
  norm       = 0.0001
  Prefactor  = 4.76817
  Prefactor  = 13.3144
  norm       = 19.5947
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.49131
  norm       = 0.0001
  norm       = 1.53069
  Prefactor  = 13.9449
  norm       = 4.93308
  norm       = 11.0911
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 28.2966
  Normalizat = 2.04417
  Prefactor  = 0.65447
 **********
 **   18 **HESSE 
 **********

 FCN=   9439.481     FROM HESSE     STATUS=OK           352 CALLS     2763 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0238        2.6972        .25330E-03   -1.5506    
   2  norm          .10000E-03    1.5556        .83157E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.7682        7.4802        .18424E-03   -1.5271    
   4  Prefactor     13.314        11.278        .10976E-03   -1.4978    
   5  norm          19.595        3.0534        .64510E-04   -1.4822    
   6  Prefactor     .10000E-03    3.2505        .17067E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.4913        42.597        .21623E-03   -1.5334    
   9  norm          .10000E-03    26.009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.5307        .27850        .20435E-04   -1.5461    
  11  Prefactor     13.945        35.543        .10724E-03   -1.4961    
  12  norm          4.9331        6.1250        .18107E-03   -1.5264    
  13  norm          11.091        8.3641        .12030E-03   -1.5042    
  14  Prefactor     .10000E-03    11.023        .63508E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.5062        .17761E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.9620        .16262E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    40.486        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .31653        .10537E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.6184        .11934E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          28.297        21.620        .75313E-04   -1.4644    
  21  Normalizat    2.0442        .24573        .27646E-03   -.63448    
  22  Prefactor     .65447        .16240        .30618E-03   -1.0534    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.7697e-09
Minuit parameter uncertainties:
  1  2.6975
  2  3.94965e-06
  3  7.48164
  4  11.2798
  5  3.05345
  6  6.98799e-06
  7  3.07031e-06
  8  24.4113
  9  1.06912e-05
  10  0.2785
  11  35.5965
  12  6.12577
  13  8.36497
  14  0.000310021
  15  3.21357e-07
  16  1.60901e-06
  17  0.000104824
  18  3.50966e-07
  19  2.70556e-06
  20  21.6265
  21  0.245882
  22  0.162514
Done.

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

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  1.394e+01  3.560e+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:  6.545e-01  1.625e-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:  2.044e+00  2.459e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.19
Ra Dec: 196.172 -3.814
Photon Flux Upper Limit: 7.06e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.37e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/209719/likelihoodResults_333936001_334195201_4FGL_J1304.6-0348_daily_bin365.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) = 9439.47316097
delta logL = 0.00820237057269

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9439.47122381
delta logL = 0.0101395211259

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.785       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3408       1.0000          .0000       10.000    
     3 'Normalizat'    2.0418       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65491       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=   9439.471     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      264 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.765        38.116        .11669E-03   -.31004E-03
   2  Index         2.3460        1.3074        .10915E-01   -.13381E-03
   3  Normalizat    2.0423        .23786        .27654E-03    .19568E-04
   4  Prefactor     .65512        .16124        .30603E-03   -.74298E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.7651
  Index      = 2.34596
  Normalizat = 2.04227
  Prefactor  = 0.655118
 **********
 **   18 **HESSE 
 **********

 FCN=   9439.471     FROM HESSE     STATUS=OK            25 CALLS      289 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.765        34.460        .23339E-04   -1.5022    
   2  Index         2.3460        1.1862        .43659E-03   -.55955    
   3  Normalizat    2.0423        .23802        .11062E-04   -.63495    
   4  Prefactor     .65512        .16135        .12241E-04   -1.0531    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23386e-09
Minuit parameter uncertainties:
  1  34.5188
  2  1.20231
  3  0.238163
  4  0.161465
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/209719': 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) = 9439.47119011
delta logL = 0.0101732254316

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  1.177e+01  3.452e+01  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  2.346e+00  1.202e+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:  6.551e-01  1.615e-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:  2.042e+00  2.382e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.19
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/209719/cmap_HighResolution_333936001_334195201_4FGL_J1304.6-0348_daily_bin365.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.37e-03', job_status='DONE', photon_flux_upper_limit='7.06e-08', time_completed='2021-09-06 21:10:53.798037', job_id='209719', GAL2='0.66', fit_tolerance='1e-08', EG2='2.04', EG='2.04', time_epoch_completed='1630987853.8', return_code2='0', ts='0.19', comment='SUCCESS', return_code='0', GAL='0.65', dlogl='1.02e-02', ts2='0.21', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='365' AND source_name='4FGL J1304.6-0348' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 21:10:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 209719: <4FGL_J1304.6-0348_daily_bin365> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.6-0348_daily_bin365 196.172 -3.8139 333936001 334195201 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 :                                   884.20 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             349.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   900 sec.
    Turnaround time :                            928 sec.

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

