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


Performing analysis on: 4FGL_J1304.0+3704_daily_bin818
RA = 196.008, Dec = 37.071
tmin = 451353601, tmax = 451612801
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='190881', job_status='RUN', time_executed='2021-09-06 19:53:53.526475', time_epoch_executed='1630983233.53' WHERE source_name='4FGL J1304.0+3704' and cadence='daily' and bin_id='818'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/190881

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/190881/ft1_4FGL_J1304.0+3704_daily_bin818.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/190881/ft2_4FGL_J1304.0+3704_daily_bin818.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/190881/ft1_4FGL_J1304.0+3704_daily_bin818.fits outfile=/scratch/kocevski/190881/ft1_filteredMKT_4FGL_J1304.0+3704_daily_bin818.fits ra=196.008 dec=37.071 rad=12.0 tmin=451353601.0 tmax=451612801.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.91
user 3.64
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/190881/ft2_4FGL_J1304.0+3704_daily_bin818.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/190881/ft2_4FGL_J1304.0+3704_daily_bin818.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/190881/ft1_filteredMKT_4FGL_J1304.0+3704_daily_bin818.fits evtable="EVENTS" outfile="/scratch/kocevski/190881/ft1_filtered_4FGL_J1304.0+3704_daily_bin818.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.53
user 0.35
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/190881/ft1_filtered_4FGL_J1304.0+3704_daily_bin818.fits" evtable="EVENTS" scfile=/scratch/kocevski/190881/ft2_4FGL_J1304.0+3704_daily_bin818.fits sctable="SC_DATA" outfile=/scratch/kocevski/190881/ltcube_451353601_451612801_4FGL_J1304.0+3704_daily_bin818.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/190881/ft2_4FGL_J1304.0+3704_daily_bin818.fits
.....................!
real 16.87
user 16.32
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/190881/ft1_filtered_4FGL_J1304.0+3704_daily_bin818.fits evtable="EVENTS" scfile=/scratch/kocevski/190881/ft2_4FGL_J1304.0+3704_daily_bin818.fits sctable="SC_DATA" expcube=/scratch/kocevski/190881/ltcube_451353601_451612801_4FGL_J1304.0+3704_daily_bin818.fits outfile=/scratch/kocevski/190881/expmap_451353601_451612801_4FGL_J1304.0+3704_daily_bin818.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/190881/ltcube_451353601_451612801_4FGL_J1304.0+3704_daily_bin818.fits
.....................!
real 196.68
user 188.83
sys 5.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 187 point sources and 0 extended sources

Setting source of interest to:
4FGL J1304.0+3704 @ 196.008 37.071

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/190881/ft1_filtered_4FGL_J1304.0+3704_daily_bin818.fits scfile=/scratch/kocevski/190881/ft2_4FGL_J1304.0+3704_daily_bin818.fits outfile=/scratch/kocevski/190881/cmap_451353601_451612801_4FGL_J1304.0+3704_daily_bin818.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.008 yref=37.071 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.64
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/190881/ft1_filtered_4FGL_J1304.0+3704_daily_bin818.fits scfile=/scratch/kocevski/190881/ft2_4FGL_J1304.0+3704_daily_bin818.fits outfile=/scratch/kocevski/190881/cmap_HighResolution_451353601_451612801_4FGL_J1304.0+3704_daily_bin818.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.008 yref=37.071 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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/190881/ft1_filtered_4FGL_J1304.0+3704_daily_bin818.fits evtable="EVENTS" scfile=/scratch/kocevski/190881/ft2_4FGL_J1304.0+3704_daily_bin818.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/190881/Model_4FGL_J1304.0+3704_daily_bin818.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/190881/ft1_filtered_4FGL_J1304.0+3704_daily_bin818.fits.....................!
real 44.81
user 42.40
sys 1.47

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/190881/ft1_filtered_4FGL_J1304.0+3704_daily_bin818.fits', '/scratch/kocevski/190881/ft2_4FGL_J1304.0+3704_daily_bin818.fits', expMap='/scratch/kocevski/190881/expmap_451353601_451612801_4FGL_J1304.0+3704_daily_bin818.fits', expCube='/scratch/kocevski/190881/ltcube_451353601_451612801_4FGL_J1304.0+3704_daily_bin818.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/190881/Model_4FGL_J1304.0+3704_daily_bin818.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1304.0+3704'

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  2.111e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.436e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
315        Scale:  1.032e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/190881/ft1_filtered_4FGL_J1304.0+3704_daily_bin818.fits
Spacecraft file(s): /scratch/kocevski/190881/ft2_4FGL_J1304.0+3704_daily_bin818.fits
Exposure map: /scratch/kocevski/190881/expmap_451353601_451612801_4FGL_J1304.0+3704_daily_bin818.fits
Exposure cube: /scratch/kocevski/190881/ltcube_451353601_451612801_4FGL_J1304.0+3704_daily_bin818.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/190881/Model_4FGL_J1304.0+3704_daily_bin818.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) = 5141.2940304

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .65679       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.5728       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10200E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.935       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.1925       1.0000         .10000E-03   10000.    
     9 'norm      '    6.5037       1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.356       1.0000         .10000E-03   10000.    
    11 'Prefactor '    24.274       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.908       1.0000         .10000E-03   10000.    
    13 'norm      '    10.429       1.0000         .10000E-03   10000.    
    14 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    6.7876       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .31774       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    20.675       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .30281       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .69564       1.0000         .10000E-03   10000.    
    28 'norm      '    30.314       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .78266       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0590       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5990E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5141.266     FROM MIGRAD    STATUS=CONVERGED    758 CALLS     3338 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .65787        4.4200        .21660E-05   -.16490E-03
   2  Prefactor     .10000E-03    2.6086        .25611E-07** at limit **
   3  Prefactor     7.5713        3.4768       -.39238E-06   -.20309E-03
   4  Prefactor     .10000E-03    3.6601        .49365E-08** at limit **
   5  Prefactor     .10000E-03    45.105        .53518E-06** at limit **
   6  Prefactor     .10000E-03    7.9745        .44419E-06** at limit **
   7  Prefactor     10.927        56.350       -.11711E-05   -.80116E-04
   8  Prefactor     6.1932        8.5726        .24302E-06   -.51680E-04
   9  norm          6.5043        4.9176       -.58150E-07   -.43006E-03
  10  Prefactor     18.352        29.084       -.15756E-06   -.47752E-04
  11  Prefactor     24.270        26.422       -.64100E-07   -.10188E-03
  12  Prefactor     11.908        19.043        .63079E-08   -.17639E-04
  13  norm          10.429        6.4924        .31516E-07   -.42716E-04
  14  norm          .10000E-03    7.5011       -.25701E-06** at limit **
  15  norm          6.7851        4.2417       -.38809E-07    .15479E-03
  16  norm          .10000E-03    8.8817       -.42913E-06** at limit **
  17  norm          .32073        3.0196       -.10920E-05    .22067E-03
  18  Prefactor     .10000E-03    1.9773        .13151E-07** at limit **
  19  Prefactor     20.676        14.947        .73377E-07   -.23264E-05
  20  Prefactor     .10000E-03    16.759       -.12462E-05** at limit **
  21  Prefactor     .10000E-03    15.546        .60549E-06** at limit **
  22  Prefactor     .10000E-03    5.3282        .12255E-07** at limit **
  23  Prefactor     .10000E-03    15.541        .53824E-06** at limit **
  24  Prefactor     .10000E-03    8.3606        .32312E-06** at limit **
  25  Prefactor     .10000E-03    94.600       -.54792E-06** at limit **
  26  norm          .30246        1.2707        .84834E-06   -.18886E-03
  27  Prefactor     .69564        5.2792        .27781E-05   -.96465E-05
  28  norm          30.314        20.826        .13794E-06   -.44232E-04
  29  Normalizat    .78255        .16504       -.73348E-06   -.90158E-04
  30  Prefactor     1.0592        .20664       -.20271E-06   -.96969E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.657872
  Prefactor  = 0.0001
  Prefactor  = 7.57127
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 10.927
  Prefactor  = 6.19321
  norm       = 6.50434
  Prefactor  = 18.3524
  Prefactor  = 24.2702
  Prefactor  = 11.9082
  norm       = 10.4291
  norm       = 0.0001
  norm       = 6.78508
  norm       = 0.000100001
  norm       = 0.320728
  Prefactor  = 0.0001
  Prefactor  = 20.6758
  Prefactor  = 0.000100003
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.302462
  Prefactor  = 0.69564
  norm       = 30.3142
  Normalizat = 0.782553
  Prefactor  = 1.05917
 **********
 **   18 **HESSE 
 **********

 FCN=   5141.266     FROM HESSE     STATUS=OK           590 CALLS     3928 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .65787        4.3850        .24675E-03   -1.5546    
   2  Prefactor     .10000E-03    2.6215        .11309E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.5713        3.4098        .73358E-04   -1.5158    
   4  Prefactor     .10000E-03    3.6767        .13397E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    45.657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.0125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.927        56.691        .12116E-03   -1.5047    
   8  Prefactor     6.1932        8.5298        .16132E-03   -1.5210    
   9  norm          6.5043        4.9128        .12386E-03   -1.5198    
  10  Prefactor     18.352        29.093        .93482E-04   -1.4851    
  11  Prefactor     24.270        26.394        .81303E-04   -1.4722    
  12  Prefactor     11.908        18.969        .11609E-03   -1.5018    
  13  norm          10.429        6.4839        .12407E-03   -1.5062    
  14  norm          .10000E-03    7.5360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          6.7851        4.2034        .10710E-03   -1.5187    
  16  norm          .10000E-03    9.0143        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .32073        5.5111        .22731E-02   -1.5595    
  18  Prefactor     .10000E-03    2.0093        .98087E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     20.676        14.935        .88089E-04   -1.4798    
  20  Prefactor     .10000E-03    16.985        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    15.607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    5.3422        .16164E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    15.608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    8.3871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    94.971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .30246        1.2740        .15496E-03   -1.5598    
  27  Prefactor     .69564        5.3679        .31533E-03   -1.5541    
  28  norm          30.314        20.817        .36386E-03   -1.4606    
  29  Normalizat    .78255        .19640        .23274E-03   -1.0072    
  30  Prefactor     1.0592        .24725        .26160E-03   -.90782    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07015e-09
Minuit parameter uncertainties:
  1  3.39702
  2  2.53264e-06
  3  3.40994
  4  5.30022e-07
  5  0.000337872
  6  0.000126437
  7  49.8524
  8  8.53142
  9  4.91311
  10  29.1156
  11  26.4063
  12  18.9791
  13  6.48434
  14  6.84909e-05
  15  4.20354
  16  0.000152876
  17  2.65887
  18  3.28341e-07
  19  14.9372
  20  0.000470112
  21  0.000236091
  22  2.76966e-06
  23  0.000233389
  24  8.77219e-05
  25  0.000587324
  26  1.24133
  27  3.86499
  28  20.8219
  29  0.196577
  30  0.247518
Done.

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

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  1.191e+01  1.898e+01  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.436e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
315        Scale:  1.032e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
596    Prefactor:  1.059e+00  2.475e-01  0.000e+00  1.000e+01 ( 1.000e+00)
597        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
598        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
595   Normalization:  7.826e-01  1.966e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.71
Ra Dec: 196.008 37.071
Photon Flux Upper Limit: 1.02e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.87e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/190881/likelihoodResults_451353601_451612801_4FGL_J1304.0+3704_daily_bin818.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) = 5141.25699709
delta logL = 0.00889062196529

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5141.25229984
delta logL = 0.0135878662095

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.227       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6018       1.0000          .0000       10.000    
     3 'Normalizat'    .77826       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0628       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5990E+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=   5141.252     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      234 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.221        19.856        .12529E-03    .79803E-03
   2  Index         2.6026        1.1509        .92157E-02    .22405E-03
   3  Normalizat    .77820        .19313        .23331E-03   -.12579E-02
   4  Prefactor     1.0628        .24697        .26120E-03   -.11990E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.2207
  Index      = 2.60259
  Normalizat = 0.778202
  Prefactor  = 1.06284
 **********
 **   18 **HESSE 
 **********

 FCN=   5141.252     FROM HESSE     STATUS=OK            25 CALLS      259 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.221        17.907        .50117E-05   -1.5068    
   2  Index         2.6026        1.0388        .36863E-03   -.50007    
   3  Normalizat    .77820        .19302        .46662E-04   -1.0088    
   4  Prefactor     1.0628        .24690        .52241E-04   -.90663    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.33961e-09
Minuit parameter uncertainties:
  1  17.9167
  2  1.0488
  3  0.193194
  4  0.24716
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/190881': 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) = 5141.25229955
delta logL = 0.0135881613905

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  1.022e+01  1.792e+01  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.603e+00  1.049e+00  0.000e+00  1.000e+01 (-1.000e+00)
315        Scale:  1.032e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
596    Prefactor:  1.063e+00  2.472e-01  0.000e+00  1.000e+01 ( 1.000e+00)
597        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
598        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
595   Normalization:  7.782e-01  1.932e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.71
Ra Dec: 196.008 37.071

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/190881/cmap_HighResolution_451353601_451612801_4FGL_J1304.0+3704_daily_bin818.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.87e-03', job_status='DONE', photon_flux_upper_limit='1.02e-07', time_completed='2021-09-06 20:06:41.895171', job_id='190881', GAL2='1.06', fit_tolerance='1e-08', EG2='0.78', EG='0.78', time_epoch_completed='1630984001.9', return_code2='0', ts='0.71', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='1.36e-02', ts2='0.75', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='818' AND source_name='4FGL J1304.0+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 20:06:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 190881: <4FGL_J1304.0+3704_daily_bin818> in cluster <slac> Done

Job <4FGL_J1304.0+3704_daily_bin818> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep  6 19:50:26 2021
Job was executed on host(s) <bullet0205>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 19:50:58 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 19:50:58 2021
Terminated at Mon Sep  6 20:06:42 2021
Results reported at Mon Sep  6 20:06:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.0+3704_daily_bin818 196.008 37.071 451353601 451612801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1304.0+3704 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   758.16 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             286.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   945 sec.
    Turnaround time :                            976 sec.

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

