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


Performing analysis on: 4FGL_J1304.0+3704_daily_bin933
RA = 196.008, Dec = 37.071
tmin = 481161601, tmax = 481420801
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='192212', job_status='RUN', time_executed='2021-09-06 19:57:38.293747', time_epoch_executed='1630983458.29' WHERE source_name='4FGL J1304.0+3704' and cadence='daily' and bin_id='933'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/192212

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/192212/ft1_4FGL_J1304.0+3704_daily_bin933.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/192212/ft2_4FGL_J1304.0+3704_daily_bin933.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/192212/ft1_4FGL_J1304.0+3704_daily_bin933.fits outfile=/scratch/kocevski/192212/ft1_filteredMKT_4FGL_J1304.0+3704_daily_bin933.fits ra=196.008 dec=37.071 rad=12.0 tmin=481161601.0 tmax=481420801.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.65
user 3.36
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/192212/ft2_4FGL_J1304.0+3704_daily_bin933.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/192212/ft1_filteredMKT_4FGL_J1304.0+3704_daily_bin933.fits evtable="EVENTS" outfile="/scratch/kocevski/192212/ft1_filtered_4FGL_J1304.0+3704_daily_bin933.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.31
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/192212/ft1_filtered_4FGL_J1304.0+3704_daily_bin933.fits" evtable="EVENTS" scfile=/scratch/kocevski/192212/ft2_4FGL_J1304.0+3704_daily_bin933.fits sctable="SC_DATA" outfile=/scratch/kocevski/192212/ltcube_481161601_481420801_4FGL_J1304.0+3704_daily_bin933.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/192212/ft2_4FGL_J1304.0+3704_daily_bin933.fits
.....................!
real 15.45
user 15.02
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/192212/ft1_filtered_4FGL_J1304.0+3704_daily_bin933.fits evtable="EVENTS" scfile=/scratch/kocevski/192212/ft2_4FGL_J1304.0+3704_daily_bin933.fits sctable="SC_DATA" expcube=/scratch/kocevski/192212/ltcube_481161601_481420801_4FGL_J1304.0+3704_daily_bin933.fits outfile=/scratch/kocevski/192212/expmap_481161601_481420801_4FGL_J1304.0+3704_daily_bin933.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/192212/ltcube_481161601_481420801_4FGL_J1304.0+3704_daily_bin933.fits
.....................!
real 192.24
user 185.58
sys 5.95

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/192212/ft1_filtered_4FGL_J1304.0+3704_daily_bin933.fits scfile=/scratch/kocevski/192212/ft2_4FGL_J1304.0+3704_daily_bin933.fits outfile=/scratch/kocevski/192212/cmap_481161601_481420801_4FGL_J1304.0+3704_daily_bin933.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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/192212/ft1_filtered_4FGL_J1304.0+3704_daily_bin933.fits scfile=/scratch/kocevski/192212/ft2_4FGL_J1304.0+3704_daily_bin933.fits outfile=/scratch/kocevski/192212/cmap_HighResolution_481161601_481420801_4FGL_J1304.0+3704_daily_bin933.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.56
user 0.39
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/192212/ft1_filtered_4FGL_J1304.0+3704_daily_bin933.fits', '/scratch/kocevski/192212/ft2_4FGL_J1304.0+3704_daily_bin933.fits', expMap='/scratch/kocevski/192212/expmap_481161601_481420801_4FGL_J1304.0+3704_daily_bin933.fits', expCube='/scratch/kocevski/192212/ltcube_481161601_481420801_4FGL_J1304.0+3704_daily_bin933.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/192212/Model_4FGL_J1304.0+3704_daily_bin933.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/192212/ft1_filtered_4FGL_J1304.0+3704_daily_bin933.fits
Spacecraft file(s): /scratch/kocevski/192212/ft2_4FGL_J1304.0+3704_daily_bin933.fits
Exposure map: /scratch/kocevski/192212/expmap_481161601_481420801_4FGL_J1304.0+3704_daily_bin933.fits
Exposure cube: /scratch/kocevski/192212/ltcube_481161601_481420801_4FGL_J1304.0+3704_daily_bin933.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/192212/Model_4FGL_J1304.0+3704_daily_bin933.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) = 5102.33163965

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    26.780       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.7699       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.1187       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.8134       1.0000         .10000E-03   10000.    
     9 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    10.911       1.0000         .10000E-03   10000.    
    15 'norm      '    3.6274       1.0000         .10000E-03   10000.    
    16 'norm      '    3.5117       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.169       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11673E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.0721       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    19.650       1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.8534       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10400E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    3.0540       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .91396       1.0000         .10000E-03   10000.    
    28 'norm      '    7.2421       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .98123       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .78053       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=   5102.275     FROM MIGRAD    STATUS=CONVERGED    767 CALLS     3936 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          26.780        6.4472       -.89119E-07    .36945E-05
   2  Prefactor     1.7696        6.7621        .90416E-05   -.13846E-03
   3  Prefactor     .10000E-03    1.1706        .70546E-08** at limit **
   4  Prefactor     .10000E-03    2.9999        .21071E-07** at limit **
   5  Prefactor     9.1086        29.580        .72892E-06    .69075E-05
   6  Prefactor     .10000E-03    9.4843       -.12623E-06** at limit **
   7  Prefactor     .10000E-03    29.676        .18389E-05** at limit **
   8  Prefactor     4.8139        4.6319        .65159E-07    .11604E-03
   9  norm          .10000E-03    2.3164        .79596E-07** at limit **
  10  Prefactor     .10000E-03    32.259       -.86361E-06** at limit **
  11  Prefactor     .10000E-03    32.107       -.54687E-06** at limit **
  12  Prefactor     .10000E-03    11.297        .36132E-06** at limit **
  13  norm          .10000E-03    5.3292        .85800E-09** at limit **
  14  norm          10.911        11.067        .13792E-06    .30598E-04
  15  norm          3.6195        8.0255       -.61996E-07    .55248E-03
  16  norm          3.5182        13.649        .11429E-05    .36093E-03
  17  norm          .10000E-03    1.3272       -.13380E-06** at limit **
  18  Prefactor     .10000E-03    2.3282       -.94746E-06** at limit **
  19  Prefactor     15.161        14.272        .18822E-06    .26327E-03
  20  Prefactor     .10000E-03    16.555       -.19809E-05** at limit **
  21  Prefactor     3.0505        172.50        .67549E-05    .30614E-04
  22  Prefactor     .10000E-03    8.2215        .17414E-06** at limit **
  23  Prefactor     19.596        37.083        .23777E-05    .34843E-04
  24  Prefactor     3.8470        16.050       -.36576E-06   -.38396E-04
  25  Prefactor     .10000E-03    198.24        .78865E-06** at limit **
  26  norm          3.0547        1.5530        .22308E-08   -.11067E-03
  27  Prefactor     .91383        6.1350        .10721E-05   -.47767E-04
  28  norm          7.2308        20.684       -.11655E-06    .49325E-06
  29  Normalizat    .98094        .16965       -.45840E-06    .15419E-03
  30  Prefactor     .78090        .19992       -.12228E-05    .26369E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 26.7804
  Prefactor  = 1.76965
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.10859
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.81389
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 10.9107
  norm       = 3.61948
  norm       = 3.51822
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 15.1606
  Prefactor  = 0.000100003
  Prefactor  = 3.05047
  Prefactor  = 0.0001
  Prefactor  = 19.5963
  Prefactor  = 3.84696
  Prefactor  = 0.000100001
  norm       = 3.05471
  Prefactor  = 0.913832
  norm       = 7.23078
  Normalizat = 0.980942
  Prefactor  = 0.780901
 **********
 **   18 **HESSE 
 **********

 FCN=   5102.275     FROM HESSE     STATUS=OK           586 CALLS     4522 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          26.780        6.4341        .77413E-04   -1.4673    
   2  Prefactor     1.7696        6.7782        .15739E-02   -1.5442    
   3  Prefactor     .10000E-03    1.1835        .75311E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.0028        .12083E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.1086        29.642        .13272E-03   -1.5104    
   6  Prefactor     .10000E-03    9.5135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    29.623        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.8139        4.6332        .14618E-03   -1.5269    
   9  norm          .10000E-03    2.3337        .10608E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    32.274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    32.245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    5.4892        .32163E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          10.911        11.066        .12129E-03   -1.5047    
  15  norm          3.6195        7.7098        .14836E-03   -1.5327    
  16  norm          3.5182        13.211        .21574E-03   -1.5333    
  17  norm          .10000E-03    1.3314        .80382E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.7648        .20122E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     15.161        13.948        .10284E-03   -1.4929    
  20  Prefactor     .10000E-03    16.743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.0505        171.59        .23143E-03   -1.5359    
  22  Prefactor     .10000E-03    8.2494        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     19.596        37.175        .90354E-04   -1.4822    
  24  Prefactor     3.8470        16.020        .20558E-03   -1.5316    
  25  Prefactor     .10000E-03    199.13        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          3.0547        1.5519        .61133E-04   -1.5358    
  27  Prefactor     .91383        6.2463        .33691E-03   -1.5517    
  28  norm          7.2308        20.673        .14905E-03   -1.5170    
  29  Normalizat    .98094        .20524        .21376E-03   -.93672    
  30  Prefactor     .78090        .24089        .28591E-03   -1.0044    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.24956e-10
Minuit parameter uncertainties:
  1  6.43424
  2  6.78118
  3  5.21599e-07
  4  2.6842e-06
  5  29.6902
  6  3.32109e-05
  7  5.52579e-05
  8  4.6335
  9  7.81951e-06
  10  3.83015e-05
  11  0.00014651
  12  1.1736e-05
  13  2.94136e-06
  14  11.0685
  15  7.71193
  16  13.2222
  17  1.09935e-05
  18  9.84183e-05
  19  13.9514
  20  0.000472691
  21  45.8958
  22  1.76857e-05
  23  37.2189
  24  15.7077
  25  0.00101575
  26  1.55189
  27  4.77875
  28  20.6933
  29  0.205403
  30  0.241217
Done.

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

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  1.174e-05  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:  7.809e-01  2.412e-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:  9.809e-01  2.054e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 196.008 37.071
Photon Flux Upper Limit: 6.59e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.10e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/192212/likelihoodResults_481161601_481420801_4FGL_J1304.0+3704_daily_bin933.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) = 5102.27516746
delta logL = -0.000419110275288

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5102.27474834
delta logL = 6.34736352367e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4444       1.0000          .0000       10.000    
     3 'Normalizat'    .98094       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78091       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.

 FCN=   5102.275     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      209 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    998.20        .90712E-02** at limit **
   2  Index         2.4529        7.8287        .50000       -.66029E-05
   3  Normalizat    .98094        .43730E-01    .45928E-01   -.87277E-04
   4  Prefactor     .78090        .52924E-01    .64631E-01    .63621E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.45293
  Normalizat = 0.980939
  Prefactor  = 0.780904
 **********
 **   18 **HESSE 
 **********

 FCN=   5102.275     FROM HESSE     STATUS=OK            33 CALLS      242 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4529        6.2259        .50000       -.53450    
   3  Normalizat    .98094        .19469        .21376E-03   -.93672    
   4  Prefactor     .78090        .23565        .28591E-03   -1.0044    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12216e-10
Minuit parameter uncertainties:
  1  0.00011734
  2  4.36667
  3  0.194831
  4  0.235951
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/192212': 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) = 5102.27474832
delta logL = 2.64408299699e-08

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  1.173e-04  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.453e+00  4.367e+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:  7.809e-01  2.360e-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:  9.809e-01  1.948e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/192212/cmap_HighResolution_481161601_481420801_4FGL_J1304.0+3704_daily_bin933.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.10e-03', job_status='DONE', photon_flux_upper_limit='6.59e-08', time_completed='2021-09-06 20:10:30.435955', job_id='192212', GAL2='0.78', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1630984230.44', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='2.64e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='933' AND source_name='4FGL J1304.0+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 20:10:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 192212: <4FGL_J1304.0+3704_daily_bin933> in cluster <slac> Done

Job <4FGL_J1304.0+3704_daily_bin933> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Sep  6 19:55:22 2021
Job was executed on host(s) <bullet0217>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 19:55:25 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:55:25 2021
Terminated at Mon Sep  6 20:10:31 2021
Results reported at Mon Sep  6 20:10:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.0+3704_daily_bin933 196.008 37.071 481161601 481420801 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 :                                   768.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             319.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   905 sec.
    Turnaround time :                            909 sec.

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

