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


Performing analysis on: 4FGL_J1304.0+3704_daily_bin1762
RA = 196.008, Dec = 37.071
tmin = 696038401, tmax = 696297601
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='109170', job_status='RUN', time_executed='2023-01-25 01:00:23.778057', time_epoch_executed='1674637223.78' WHERE source_name='4FGL J1304.0+3704' and cadence='daily' and bin_id='1762'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/109170

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/109170/ft1_4FGL_J1304.0+3704_daily_bin1762.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/109170/ft2_4FGL_J1304.0+3704_daily_bin1762.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/109170/ft1_4FGL_J1304.0+3704_daily_bin1762.fits outfile=/scratch/kocevski/109170/ft1_filteredMKT_4FGL_J1304.0+3704_daily_bin1762.fits ra=196.008 dec=37.071 rad=12.0 tmin=696038401.0 tmax=696297601.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.68
user 3.41
sys 0.23

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

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

Number of photons that the gtmktime cut: 560

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/109170/ft1_filtered_4FGL_J1304.0+3704_daily_bin1762.fits" evtable="EVENTS" scfile=/scratch/kocevski/109170/ft2_4FGL_J1304.0+3704_daily_bin1762.fits sctable="SC_DATA" outfile=/scratch/kocevski/109170/ltcube_696038401_696297601_4FGL_J1304.0+3704_daily_bin1762.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/109170/ft2_4FGL_J1304.0+3704_daily_bin1762.fits
.....................!
real 14.66
user 14.19
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/109170/ft1_filtered_4FGL_J1304.0+3704_daily_bin1762.fits evtable="EVENTS" scfile=/scratch/kocevski/109170/ft2_4FGL_J1304.0+3704_daily_bin1762.fits sctable="SC_DATA" expcube=/scratch/kocevski/109170/ltcube_696038401_696297601_4FGL_J1304.0+3704_daily_bin1762.fits outfile=/scratch/kocevski/109170/expmap_696038401_696297601_4FGL_J1304.0+3704_daily_bin1762.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/109170/ltcube_696038401_696297601_4FGL_J1304.0+3704_daily_bin1762.fits
.....................!
real 192.38
user 186.81
sys 4.99

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/109170/ft1_filtered_4FGL_J1304.0+3704_daily_bin1762.fits scfile=/scratch/kocevski/109170/ft2_4FGL_J1304.0+3704_daily_bin1762.fits outfile=/scratch/kocevski/109170/cmap_696038401_696297601_4FGL_J1304.0+3704_daily_bin1762.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.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/109170/ft1_filtered_4FGL_J1304.0+3704_daily_bin1762.fits scfile=/scratch/kocevski/109170/ft2_4FGL_J1304.0+3704_daily_bin1762.fits outfile=/scratch/kocevski/109170/cmap_HighResolution_696038401_696297601_4FGL_J1304.0+3704_daily_bin1762.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/109170/ft1_filtered_4FGL_J1304.0+3704_daily_bin1762.fits evtable="EVENTS" scfile=/scratch/kocevski/109170/ft2_4FGL_J1304.0+3704_daily_bin1762.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/109170/Model_4FGL_J1304.0+3704_daily_bin1762.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/109170/ft1_filtered_4FGL_J1304.0+3704_daily_bin1762.fits....................!
real 54.04
user 52.65
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1914       1.0000          .0000       .10000E+07
     2 'Prefactor '    7.2443       1.0000          .0000       .10000E+07
     3 'Prefactor '    .40523E-08   1.0000          .0000       .10000E+07
     4 'Prefactor '    .20778E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    .40384E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    17.938       1.0000          .0000       .10000E+07
     7 'Prefactor '    .20402E-02   1.0000          .0000       .10000E+07
     8 'norm      '    11.881       1.0000          .0000       .10000E+07
     9 'Prefactor '    34.720       1.0000          .0000       .10000E+07
    10 'Prefactor '    .16251E-03   1.0000          .0000       .10000E+07
    11 'norm      '    .15500E-04   1.0000          .0000       .10000E+07
    12 'norm      '    .74615E-04   1.0000          .0000       .10000E+07
    13 'norm      '    41.807       1.0000          .0000       .10000E+07
    14 'norm      '    20.280       1.0000          .0000       .10000E+07
    15 'norm      '    .22719E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .72020E-06   1.0000          .0000       .10000E+07
    17 'Prefactor '    .85522E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    57.356       1.0000          .0000       .10000E+07
    19 'Prefactor '    26.535       1.0000          .0000       .10000E+07
    20 'Prefactor '    20.857       1.0000          .0000       .10000E+07
    21 'Prefactor '    .30090E-03   1.0000          .0000       .10000E+07
    22 'Prefactor '    .85240E-02   1.0000          .0000       .10000E+07
    23 'norm      '    2.6073       1.0000          .0000       .10000E+07
    24 'Prefactor '    8.9859       1.0000          .0000       .10000E+07
    25 'norm      '    17.409       1.0000          .0000       .10000E+07
    26 'Normalizat'    1.0902       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .89641       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=   6285.703     FROM MIGRAD    STATUS=CONVERGED    163 CALLS     2386 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1929        2.5739       -.13743E-06    .14185E-02
   2  Prefactor     7.2492        6.7540        .21045E-06   -.22789E-04
   3  Prefactor      .0000        .77060        .87232E-08** at limit **
   4  Prefactor     .19262E-07    6.0005       -.58960E-06** at limit **
   5  Prefactor     .19090E-06    10.079       -.83342E-06** at limit **
   6  Prefactor     17.982        1.2639       -.17959E-08   -.92771E-02
   7  Prefactor     .10880E-07    5.0735        .10078E-06** at limit **
   8  norm          11.676        9.0439       -.13691E-06    .14210E-01
   9  Prefactor     35.598        32.761        .23560E-07   -.12549    
  10  Prefactor     .31958E-06    12.889        .26237E-06** at limit **
  11  norm          .14988E-08    2.2018       -.19719E-06** at limit **
  12  norm          .56066E-08    5.2905       -.20591E-06** at limit **
  13  norm          42.186        8.2378       -.92200E-07   -.57525E-01
  14  norm          19.707        7.7462        .18221E-07    .68785E-01
  15  norm          .14063E-04    2.6625       -.11441E-06** at limit **
  16  Prefactor     .83267E-09    8.9071       -.49777E-06** at limit **
  17  Prefactor     .11061E-04    52.934        .10273E-06** at limit **
  18  Prefactor     58.543        9.8339       -.20722E-10    .21018E-01
  19  Prefactor     26.325        6.0184        .12251E-07   -.45068E-01
  20  Prefactor     20.913        4.1131        .29243E-07    .68316E-01
  21  Prefactor     .14704E-05    15.255        .90010E-06** at limit **
  22  Prefactor     .17069E-04    49.312        .12459E-07** at limit **
  23  norm          2.6067        1.6506       -.20283E-06    .24597E-02
  24  Prefactor     8.9543        6.8078        .47529E-07   -.16734E-02
  25  norm          17.378        1.2314        .18832E-07    .50617E-02
  26  Normalizat    1.0879        .21465        .40210E-05    .42882E-05
  27  Prefactor     .89813        .25023       -.53346E-05    .98166E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.19287
  Prefactor  = 7.24918
  Prefactor  = 0
  Prefactor  = 1.92624e-08
  Prefactor  = 1.90903e-07
  Prefactor  = 17.9818
  Prefactor  = 1.08802e-08
  norm       = 11.6761
  Prefactor  = 35.5977
  Prefactor  = 3.19578e-07
  norm       = 1.4988e-09
  norm       = 5.60663e-09
  norm       = 42.1864
  norm       = 19.7074
  norm       = 1.40634e-05
  Prefactor  = 8.32667e-10
  Prefactor  = 1.10612e-05
  Prefactor  = 58.5428
  Prefactor  = 26.3248
  Prefactor  = 20.9126
  Prefactor  = 1.47043e-06
  Prefactor  = 1.70688e-05
  norm       = 2.6067
  Prefactor  = 8.95434
  norm       = 17.3778
  Normalizat = 1.08785
  Prefactor  = 0.898133
 **********
 **   18 **HESSE 
 **********

 FCN=   6285.703     FROM HESSE     STATUS=OK           548 CALLS     2934 TOTAL
                     EDM=   .23E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1929        2.5729        .56695E-03   -1.5672    
   2  Prefactor     7.2492        6.7664        .37243E-03   -1.5654    
   3  Prefactor      .0000        .76997        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .19262E-07    6.0192        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .19090E-06    10.251        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     17.982        15.566        .23621E-03   -1.5623    
   7  Prefactor     .10880E-07    5.0539        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          11.676        10.412        .29038E-03   -1.5640    
   9  Prefactor     35.598        51.012        .16973E-03   -1.5589    
  10  Prefactor     .31958E-06    13.430        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .14988E-08    2.2040        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .56066E-08    5.3043        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          42.186        12.628        .15467E-03   -1.5578    
  14  norm          19.707        17.300        .22213E-03   -1.5619    
  15  norm          .14063E-04    2.7338        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .83267E-09    8.8182        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .11061E-04    67.559        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     58.543        40.378        .13205E-03   -1.5555    
  19  Prefactor     26.325        67.876        .19417E-03   -1.5605    
  20  Prefactor     20.913        23.229        .21903E-03   -1.5617    
  21  Prefactor     .14704E-05    16.875        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .17069E-04    73.360        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.6067        1.6583        .63150E-03   -1.5676    
  24  Prefactor     8.9543        6.8468        .33412E-03   -1.5648    
  25  norm          17.378        16.177        .23977E-03   -1.5625    
  26  Normalizat    1.0879        .18326        .56964E-01   -.90143    
  27  Prefactor     .89813        .21142        .73856E-01   -.96206    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.26685e-06
Minuit parameter uncertainties:
  1  2.57292
  2  6.76636
  3  5.71508e-06
  4  0.000681472
  5  0.00279783
  6  15.566
  7  0.000469372
  8  10.4121
  9  51.0123
  10  0.00414334
  11  0.000115397
  12  0.00034449
  13  12.6278
  14  17.2996
  15  0.012401
  16  0.000171102
  17  0.0546734
  18  40.3782
  19  67.8778
  20  23.2295
  21  0.00996263
  22  0.070773
  23  1.65825
  24  6.8468
  25  16.1771
  26  0.18337
  27  0.211616
Done.

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

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  3.196e-07  4.143e-03  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:  8.981e-01  2.116e-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.088e+00  1.834e-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: 7.29e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.65e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/109170/likelihoodResults_696038401_696297601_4FGL_J1304.0+3704_daily_bin1762.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) = 6285.73927757
delta logL = -0.0365425060672

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6285.70273613
delta logL = -1.0649791875e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .25313E-07   1.0000          .0000       .10000E+07
     2 'Index     '    2.0332       1.0000          .0000       10.000    
     3 'Normalizat'    1.0878       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89839       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6285.703     FROM MIGRAD    STATUS=CONVERGED     41 CALLS      244 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        9.7446        .42118E-03** at limit **
   2  Index         1.3884        .87559        .21205E-04     .0000    
   3  Normalizat    1.0879        1.1646        .58873E-04   -.15912E-03
   4  Prefactor     .89813        1.2432       -.76290E-04   -.23318E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.38839
  Normalizat = 1.08785
  Prefactor  = 0.89813
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6285.703     FROM HESSE     STATUS=FAILED         9 CALLS      253 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        9.7446        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .15998        1.3461        .21205E-04   -.80715    
   3  Normalizat    1.0879        1.1646        .58873E-04   -.90143    
   4  Prefactor     .89813        1.2432       -.76290E-04   -.96206    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.31229e-10
Minuit parameter uncertainties:
  1  3.33269e-08
  2  0.88523
  3  1.1939
  4  1.28617
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/109170': 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): 101
logL (Free Index) = 6285.70273505
delta logL = 1.18079697131e-08

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  0.000e+00  3.333e-08  0.000e+00  1.000e+06 ( 1.000e-13)
314        Index:  1.388e+00  8.852e-01  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:  8.981e-01  1.286e+00  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.088e+00  1.194e+00  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/109170/cmap_HighResolution_696038401_696297601_4FGL_J1304.0+3704_daily_bin1762.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.65e-03', job_status='DONE', photon_flux_upper_limit='7.29e-08', time_completed='2023-01-25 01:11:45.599536', job_id='109170', GAL2='0.90', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1674637905.6', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='1.18e-08', ts2='0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='1762' AND source_name='4FGL J1304.0+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jan 25 01:11:45 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0112>
Subject: Job 109170: <4FGL_J1304.0+3704_daily_bin1762> in cluster <slac> Done

Job <4FGL_J1304.0+3704_daily_bin1762> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Wed Jan 25 00:55:24 2023
Job was executed on host(s) <bullet0112>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jan 25 00:56:41 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jan 25 00:56:41 2023
Terminated at Wed Jan 25 01:11:46 2023
Results reported at Wed Jan 25 01:11:46 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.0+3704_daily_bin1762 196.008 37.071 696038401 696297601 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 :                                   683.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             264.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   904 sec.
    Turnaround time :                            982 sec.

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

