aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 182 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 7548
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1304.0+3704_daily_bin1765
RA = 196.008, Dec = 37.071
tmin = 696816001, tmax = 697075201
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='635410', job_status='RUN', time_executed='2023-02-03 01:04:04.629692', time_epoch_executed='1675415044.63' WHERE source_name='4FGL J1304.0+3704' and cadence='daily' and bin_id='1765'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/635410

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/635410/ft1_4FGL_J1304.0+3704_daily_bin1765.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/635410/ft2_4FGL_J1304.0+3704_daily_bin1765.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/635410/ft1_4FGL_J1304.0+3704_daily_bin1765.fits outfile=/scratch/kocevski/635410/ft1_filteredMKT_4FGL_J1304.0+3704_daily_bin1765.fits ra=196.008 dec=37.071 rad=12.0 tmin=696816001.0 tmax=697075201.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.67
user 3.42
sys 0.22

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

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

Number of photons that the gtmktime cut: 606

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/635410/ft1_filtered_4FGL_J1304.0+3704_daily_bin1765.fits evtable="EVENTS" scfile=/scratch/kocevski/635410/ft2_4FGL_J1304.0+3704_daily_bin1765.fits sctable="SC_DATA" expcube=/scratch/kocevski/635410/ltcube_696816001_697075201_4FGL_J1304.0+3704_daily_bin1765.fits outfile=/scratch/kocevski/635410/expmap_696816001_697075201_4FGL_J1304.0+3704_daily_bin1765.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/635410/ltcube_696816001_697075201_4FGL_J1304.0+3704_daily_bin1765.fits
.....................!
real 191.43
user 186.25
sys 4.56

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/635410/ft1_filtered_4FGL_J1304.0+3704_daily_bin1765.fits scfile=/scratch/kocevski/635410/ft2_4FGL_J1304.0+3704_daily_bin1765.fits outfile=/scratch/kocevski/635410/cmap_696816001_697075201_4FGL_J1304.0+3704_daily_bin1765.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/635410/ft1_filtered_4FGL_J1304.0+3704_daily_bin1765.fits scfile=/scratch/kocevski/635410/ft2_4FGL_J1304.0+3704_daily_bin1765.fits outfile=/scratch/kocevski/635410/cmap_HighResolution_696816001_697075201_4FGL_J1304.0+3704_daily_bin1765.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.38
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/635410/ft1_filtered_4FGL_J1304.0+3704_daily_bin1765.fits', '/scratch/kocevski/635410/ft2_4FGL_J1304.0+3704_daily_bin1765.fits', expMap='/scratch/kocevski/635410/expmap_696816001_697075201_4FGL_J1304.0+3704_daily_bin1765.fits', expCube='/scratch/kocevski/635410/ltcube_696816001_697075201_4FGL_J1304.0+3704_daily_bin1765.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/635410/Model_4FGL_J1304.0+3704_daily_bin1765.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  0.000e+00  1.000e+06 ( 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/635410/ft1_filtered_4FGL_J1304.0+3704_daily_bin1765.fits
Spacecraft file(s): /scratch/kocevski/635410/ft2_4FGL_J1304.0+3704_daily_bin1765.fits
Exposure map: /scratch/kocevski/635410/expmap_696816001_697075201_4FGL_J1304.0+3704_daily_bin1765.fits
Exposure cube: /scratch/kocevski/635410/ltcube_696816001_697075201_4FGL_J1304.0+3704_daily_bin1765.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/635410/Model_4FGL_J1304.0+3704_daily_bin1765.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) = 6697.45961966

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.2873       1.0000          .0000       .10000E+07
     2 'Prefactor '    .60443       1.0000          .0000       .10000E+07
     3 'Prefactor '    3.9427       1.0000          .0000       .10000E+07
     4 'Prefactor '    .20613E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    .10159E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    5.3092       1.0000          .0000       .10000E+07
     7 'Prefactor '    6.5204       1.0000          .0000       .10000E+07
     8 'norm      '    5.3226       1.0000          .0000       .10000E+07
     9 'Prefactor '    .91070E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    6.5496       1.0000          .0000       .10000E+07
    11 'norm      '    4.9058       1.0000          .0000       .10000E+07
    12 'norm      '    8.7867       1.0000          .0000       .10000E+07
    13 'norm      '    48.229       1.0000          .0000       .10000E+07
    14 'norm      '    .19325E-02   1.0000          .0000       .10000E+07
    15 'norm      '    .44797E-06   1.0000          .0000       .10000E+07
    16 'Prefactor '    .20245E-04   1.0000          .0000       .10000E+07
    17 'Prefactor '    .60181E-01   1.0000          .0000       .10000E+07
    18 'Prefactor '    42.648       1.0000          .0000       .10000E+07
    19 'Prefactor '    58.284       1.0000          .0000       .10000E+07
    20 'Prefactor '    3.9995       1.0000          .0000       .10000E+07
    21 'Prefactor '    .21005E-02   1.0000          .0000       .10000E+07
    22 'Prefactor '    .97703E-03   1.0000          .0000       .10000E+07
    23 'norm      '    .34239E-06   1.0000          .0000       .10000E+07
    24 'Prefactor '    11.072       1.0000          .0000       .10000E+07
    25 'norm      '    10.768       1.0000          .0000       .10000E+07
    26 'Normalizat'    1.0088       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0591       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5990E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6697.453     FROM MIGRAD    STATUS=CONVERGED    153 CALLS     2371 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.2912        3.7990        .30743E-07   -.39332E-03
   2  Prefactor     .63136        2.4074        .60245E-06    .31673E-01
   3  Prefactor     3.9415        2.5520        .76350E-07    .19767E-03
   4  Prefactor      .0000        3.5472       -.26189E-07** at limit **
   5  Prefactor     .57027E-06    16.664        .25086E-05** at limit **
   6  Prefactor     5.3176        1.2164        .48224E-07    .22826E-02
   7  Prefactor     6.5301        5.6883       -.79200E-08    .20304E-04
   8  norm          5.2832        5.1142        .69399E-07    .17446E-03
   9  Prefactor     .46074E-08    43.212       -.12830E-05** at limit **
  10  Prefactor     6.5550        1.4266       -.58732E-07   -.49675E-02
  11  norm          4.9094        4.1736       -.19954E-06    .13407E-03
  12  norm          8.7873        1.3236       -.62043E-07   -.35679E-01
  13  norm          48.330        7.5692       -.59144E-07    .47687E-02
  14  norm          .47851E-07    12.805        .18195E-05** at limit **
  15  norm           .0000        1.1464       -.27434E-06** at limit **
  16  Prefactor      .0000        2.2713       -.19845E-06** at limit **
  17  Prefactor     .30189E-01    26.555        .55068E-06** at limit **
  18  Prefactor     43.070        35.672       -.15022E-06    .11141    
  19  Prefactor     58.472        22.322        .24958E-06   -.23522    
  20  Prefactor     4.0050        1.2455       -.68031E-08   -.85752E-03
  21  Prefactor     .77049E-06    14.101        .50727E-06** at limit **
  22  Prefactor      .0000        9.1480       -.99419E-08** at limit **
  23  norm           .0000        .43836        .75134E-07** at limit **
  24  Prefactor     11.070        6.0619        .26506E-06    .14889E-02
  25  norm          10.748        1.0904        .22854E-08   -.38076E-02
  26  Normalizat    1.0083        .20114        .69659E-05   -.20433E-04
  27  Prefactor     1.0594        .24200       -.13014E-04   -.30576E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.29124
  Prefactor  = 0.631359
  Prefactor  = 3.94146
  Prefactor  = 0
  Prefactor  = 5.70266e-07
  Prefactor  = 5.31756
  Prefactor  = 6.53012
  norm       = 5.28321
  Prefactor  = 4.60743e-09
  Prefactor  = 6.55502
  norm       = 4.90945
  norm       = 8.78729
  norm       = 48.3296
  norm       = 4.78506e-08
  norm       = 0
  Prefactor  = 0
  Prefactor  = 0.0301887
  Prefactor  = 43.0702
  Prefactor  = 58.4717
  Prefactor  = 4.00503
  Prefactor  = 7.70495e-07
  Prefactor  = 0
  norm       = 0
  Prefactor  = 11.0698
  norm       = 10.7477
  Normalizat = 1.00827
  Prefactor  = 1.05939
 **********
 **   18 **HESSE 
 **********

 FCN=   6697.453     FROM HESSE     STATUS=OK           550 CALLS     2921 TOTAL
                     EDM=   .41E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.2912        3.7999        .48632E-03   -1.5667    
   2  Prefactor     .63136        21.421        .68832E-03   -1.5692    
   3  Prefactor     3.9415        2.5461        .50779E-03   -1.5668    
   4  Prefactor      .0000        3.5464        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .57027E-06    17.271        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.3176        15.120        .43595E-03   -1.5662    
   7  Prefactor     6.5301        5.9750        .39278E-03   -1.5657    
   8  norm          5.2832        5.1330        .43539E-03   -1.5662    
   9  Prefactor     .46074E-08    42.501        .14176E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.5550        16.168        .39189E-03   -1.5657    
  11  norm          4.9094        4.2662        .45388E-03   -1.5664    
  12  norm          8.7873        9.7260        .33790E-03   -1.5649    
  13  norm          48.330        7.6904        .14401E-03   -1.5569    
  14  norm          .47851E-07    13.018        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm           .0000        1.1455        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        2.2582        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .30189E-01    11.905        .83924E-02   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     43.070        37.778        .15314E-03   -1.5577    
  19  Prefactor     58.472        61.616        .13100E-03   -1.5555    
  20  Prefactor     4.0050        17.927        .50405E-03   -1.5668    
  21  Prefactor     .77049E-06    15.344        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor      .0000        9.1519        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm           .0000        .43621        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     11.070        6.0972        .30083E-03   -1.5641    
  25  norm          10.748        13.496        .30507E-03   -1.5642    
  26  Normalizat    1.0083        .17344        .46278E-01   -.92754    
  27  Prefactor     1.0594        .20647        .69017E-01   -.90775    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.14317e-06
Minuit parameter uncertainties:
  1  3.79987
  2  7.35518
  3  2.5461
  4  3.3654e-06
  5  0.00627668
  6  15.12
  7  5.97505
  8  5.13301
  9  0.000885146
  10  16.1685
  11  4.26623
  12  9.72599
  13  7.69036
  14  0.00157838
  15  7.43832e-07
  16  1.01786e-06
  17  1.19899
  18  37.7782
  19  61.617
  20  16.9469
  21  0.00687682
  22  3.20001e-08
  23  4.80551e-07
  24  6.09721
  25  13.4959
  26  0.173541
  27  0.206627
Done.

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

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  6.555e+00  1.617e+01  0.000e+00  1.000e+06 ( 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.066e-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:  1.008e+00  1.735e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/635410/likelihoodResults_696816001_697075201_4FGL_J1304.0+3704_daily_bin1765.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) = 6696.6841305
delta logL = 0.769301658433

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6696.64376611
delta logL = 0.809666046575

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6064       1.0000          .0000       .10000E+07
     2 'Index     '    4.0849       1.0000          .0000       10.000    
     3 'Normalizat'    .94090       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1099       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=   6696.644     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      267 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6046        24.814        .83571E-03    .71812E-02
   2  Index         4.0855        3.0880        .10831        .17172E-03
   3  Normalizat    .94092        .49392E-01    .45422E-01    .87569E-05
   4  Prefactor     1.1099        .59365E-01    .67587E-01    .68777E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.60456
  Index      = 4.08548
  Normalizat = 0.940918
  Prefactor  = 1.10995
 **********
 **   18 **HESSE 
 **********

 FCN=   6696.644     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      300 TOTAL
                     EDM=   .70E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6046        51.757        .81057E-05   -1.5683    
   2  Index         4.0855        6.9986        .55198E-02   -.18394    
   3  Normalizat    .94092        .19451        .26100E-03   -.95037    
   4  Prefactor     1.1099        .23168        .29899E-03   -.89149    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.04687e-07
Minuit parameter uncertainties:
  1  18.2262
  2  5.8918
  3  0.194653
  4  0.231894
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/635410': 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) = 6696.64376596
delta logL = 0.809666191388

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  1.605e+00  1.823e+01  0.000e+00  1.000e+06 ( 1.000e-13)
314        Index:  4.085e+00  5.892e+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.110e+00  2.319e-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.409e-01  1.947e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.94
Ra Dec: 196.008 37.071
Photon Index (Free Index): 4.09 +/- 5.89
Photon Flux (Free Index): 7.22e-08 +/- 6.99e-08
Energy Flux (Free Index): 1.07e-05 +/- 9.78e-06

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/635410/cmap_HighResolution_696816001_697075201_4FGL_J1304.0+3704_daily_bin1765.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.13e-03', comment='SUCCESS', energy_flux2='1.07e-05', dlogl='8.10e-01', photon_flux2='7.22e-08', job_status='DONE', time_completed='2023-02-03 01:15:51.889616', photon_index_error2='5.89', photon_index2='4.09', ts='0.21', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='9.21e-08', energy_flux_error2='9.78e-06', EG='1.01', time_epoch_completed='1675415751.89', return_code='0', job_id='635410', GAL2='1.11', EG2='0.94', return_code2='102', photon_flux_error2='6.99e-08', ts2='1.94', photon_index='2.44' WHERE bin_id='1765' AND source_name='4FGL J1304.0+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Feb  3 01:15:51 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0121>
Subject: Job 635410: <4FGL_J1304.0+3704_daily_bin1765> in cluster <slac> Done

Job <4FGL_J1304.0+3704_daily_bin1765> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Fri Feb  3 01:00:22 2023
Job was executed on host(s) <bullet0121>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Feb  3 01:00:49 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Feb  3 01:00:49 2023
Terminated at Fri Feb  3 01:15:52 2023
Results reported at Fri Feb  3 01:15:52 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.0+3704_daily_bin1765 196.008 37.071 696816001 697075201 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 :                                   707.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             252.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   903 sec.
    Turnaround time :                            930 sec.

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

