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


Performing analysis on: 4FGL_J1304.0+3704_daily_bin1763
RA = 196.008, Dec = 37.071
tmin = 696297601, tmax = 696556801
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='280878', job_status='RUN', time_executed='2023-01-28 00:59:10.992859', time_epoch_executed='1674896350.99' WHERE source_name='4FGL J1304.0+3704' and cadence='daily' and bin_id='1763'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/280878

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/280878/ft1_4FGL_J1304.0+3704_daily_bin1763.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/280878/ft2_4FGL_J1304.0+3704_daily_bin1763.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/280878/ft1_4FGL_J1304.0+3704_daily_bin1763.fits outfile=/scratch/kocevski/280878/ft1_filteredMKT_4FGL_J1304.0+3704_daily_bin1763.fits ra=196.008 dec=37.071 rad=12.0 tmin=696297601.0 tmax=696556801.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.66
user 3.39
sys 0.22

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

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

Number of photons that the gtmktime cut: 581

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/280878/ft1_filtered_4FGL_J1304.0+3704_daily_bin1763.fits" evtable="EVENTS" scfile=/scratch/kocevski/280878/ft2_4FGL_J1304.0+3704_daily_bin1763.fits sctable="SC_DATA" outfile=/scratch/kocevski/280878/ltcube_696297601_696556801_4FGL_J1304.0+3704_daily_bin1763.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/280878/ft2_4FGL_J1304.0+3704_daily_bin1763.fits
.....................!
real 13.64
user 13.18
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/280878/ft1_filtered_4FGL_J1304.0+3704_daily_bin1763.fits evtable="EVENTS" scfile=/scratch/kocevski/280878/ft2_4FGL_J1304.0+3704_daily_bin1763.fits sctable="SC_DATA" expcube=/scratch/kocevski/280878/ltcube_696297601_696556801_4FGL_J1304.0+3704_daily_bin1763.fits outfile=/scratch/kocevski/280878/expmap_696297601_696556801_4FGL_J1304.0+3704_daily_bin1763.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/280878/ltcube_696297601_696556801_4FGL_J1304.0+3704_daily_bin1763.fits
.....................!
real 192.44
user 186.30
sys 5.18

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/280878/ft1_filtered_4FGL_J1304.0+3704_daily_bin1763.fits scfile=/scratch/kocevski/280878/ft2_4FGL_J1304.0+3704_daily_bin1763.fits outfile=/scratch/kocevski/280878/cmap_696297601_696556801_4FGL_J1304.0+3704_daily_bin1763.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/280878/ft1_filtered_4FGL_J1304.0+3704_daily_bin1763.fits scfile=/scratch/kocevski/280878/ft2_4FGL_J1304.0+3704_daily_bin1763.fits outfile=/scratch/kocevski/280878/cmap_HighResolution_696297601_696556801_4FGL_J1304.0+3704_daily_bin1763.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.55
user 0.37
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.7786       1.0000          .0000       .10000E+07
     2 'Prefactor '    .26213E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    .15458E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .11263E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    2.6268       1.0000          .0000       .10000E+07
     6 'Prefactor '    .49147E-05   1.0000          .0000       .10000E+07
     7 'Prefactor '    .38886E-04   1.0000          .0000       .10000E+07
     8 'norm      '    2.5102       1.0000          .0000       .10000E+07
     9 'Prefactor '    .55143E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .58364E-04   1.0000          .0000       .10000E+07
    11 'norm      '    5.9926       1.0000          .0000       .10000E+07
    12 'norm      '    .48663E-04   1.0000          .0000       .10000E+07
    13 'norm      '    20.619       1.0000          .0000       .10000E+07
    14 'norm      '    60.620       1.0000          .0000       .10000E+07
    15 'norm      '    .55226E-05   1.0000          .0000       .10000E+07
    16 'Prefactor '    .60728E-04   1.0000          .0000       .10000E+07
    17 'Prefactor '    2.3835       1.0000          .0000       .10000E+07
    18 'Prefactor '    27.403       1.0000          .0000       .10000E+07
    19 'Prefactor '    .39932E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    .16872E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    .68230E-03   1.0000          .0000       .10000E+07
    22 'Prefactor '    .52745E-02   1.0000          .0000       .10000E+07
    23 'norm      '    1.5398       1.0000          .0000       .10000E+07
    24 'Prefactor '    .58907E-02   1.0000          .0000       .10000E+07
    25 'norm      '    .22271E-03   1.0000          .0000       .10000E+07
    26 'Normalizat'    1.6508       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .44825       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=   6460.492     FROM MIGRAD    STATUS=CONVERGED    206 CALLS     1925 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.7852        4.4549        .97329E-08   -.36085E-05
   2  Prefactor     .15496E-05    14.091       -.54685E-07** at limit **
   3  Prefactor      .0000        1.8736        .35343E-08** at limit **
   4  Prefactor      .0000        5.2807       -.16486E-07** at limit **
   5  Prefactor     2.6008        1.5854        .52067E-07    .23021E-03
   6  Prefactor     .11102E-09    6.9779        .47348E-07** at limit **
   7  Prefactor      .0000        1.5063       -.17525E-08** at limit **
   8  norm          2.5116        4.8663        .31298E-07    .23878E-03
   9  Prefactor     .14649E-05    10.278        .11987E-06** at limit **
  10  Prefactor     .55511E-10    3.7138        .19019E-07** at limit **
  11  norm          5.9803        4.5824        .41585E-08   -.56554E-03
  12  norm          .88818E-09    7.6622       -.32698E-07** at limit **
  13  norm          20.604        6.6698        .21444E-08    .27750E-02
  14  norm          60.580        3.2364        .41322E-08    .48470E-03
  15  norm           .0000        1.7592        .17032E-08** at limit **
  16  Prefactor      .0000        1.9575       -.35328E-09** at limit **
  17  Prefactor     2.4043        4.6498       -.78999E-07   -.93443E-02
  18  Prefactor     28.916        28.025       -.40516E-06    .10600    
  19  Prefactor     .26892E-05    17.838       -.11539E-07** at limit **
  20  Prefactor     .65570E-06    10.553       -.18007E-07** at limit **
  21  Prefactor     .52228E-05    21.696        .15741E-06** at limit **
  22  Prefactor     .64094E-05    33.138       -.20789E-06** at limit **
  23  norm          1.5385        1.3712        .11100E-07   -.31466E-03
  24  Prefactor     .87860E-02    573.27        .50232E-05** at limit **
  25  norm           .0000        3.9560        .79399E-08** at limit **
  26  Normalizat    1.6501        .21860       -.19937E-05   -.73815E-03
  27  Prefactor     .44834        .24827        .85511E-06   -.29385E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.78516
  Prefactor  = 1.54965e-06
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 2.60082
  Prefactor  = 1.11022e-10
  Prefactor  = 0
  norm       = 2.51156
  Prefactor  = 1.46488e-06
  Prefactor  = 5.55112e-11
  norm       = 5.98031
  norm       = 8.88178e-10
  norm       = 20.6037
  norm       = 60.5796
  norm       = 0
  Prefactor  = 0
  Prefactor  = 2.40429
  Prefactor  = 28.9155
  Prefactor  = 2.68924e-06
  Prefactor  = 6.55698e-07
  Prefactor  = 5.22277e-06
  Prefactor  = 6.40943e-06
  norm       = 1.53849
  Prefactor  = 0.00878603
  norm       = 0
  Normalizat = 1.6501
  Prefactor  = 0.448344
 **********
 **   18 **HESSE 
 **********

 FCN=   6460.492     FROM HESSE     STATUS=OK           544 CALLS     2469 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.7852        4.4626        .41757E-03   -1.5660    
   2  Prefactor     .15496E-05    15.120        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        1.8668        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        5.2883        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.6008        29.388        .62896E-03   -1.5676    
   6  Prefactor     .11102E-09    7.0036        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        1.5062        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.5116        4.9208        .64465E-03   -1.5676    
   9  Prefactor     .14649E-05    11.826        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .55511E-10    3.7219        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.9803        4.5912        .40994E-03   -1.5659    
  12  norm          .88818E-09    7.6890        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          20.604        12.289        .22029E-03   -1.5617    
  14  norm          60.580        22.330        .12845E-03   -1.5552    
  15  norm           .0000        1.7580        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        1.9566        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.4043        29.443        .66321E-03   -1.5677    
  18  Prefactor     28.916        33.745        .19106E-03   -1.5600    
  19  Prefactor     .26892E-05    19.744        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .65570E-06    11.371        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .52228E-05    25.204        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .64094E-05    37.278        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.5385        1.3882        .85895E-03   -1.5683    
  24  Prefactor     .87860E-02    5.1617        .55340E-02   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm           .0000        3.9604        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.6501        .19993        .48532E-01   -.73644    
  27  Prefactor     .44834        .22728        .10048       -1.1441    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26279e-06
Minuit parameter uncertainties:
  1  4.46262
  2  0.00968102
  3  2.37444e-06
  4  1.24455e-05
  5  17.4852
  6  5.48921e-05
  7  1.26682e-06
  8  4.92076
  9  0.00832435
  10  2.17429e-05
  11  4.59125
  12  0.000165371
  13  12.2895
  14  22.33
  15  1.91488e-06
  16  6.29751e-07
  17  16.8274
  18  33.7457
  19  0.0145736
  20  0.00546108
  21  0.0229467
  22  0.0309148
  23  1.38823
  24  0.425914
  25  1.58813e-05
  26  0.200028
  27  0.227736
Done.

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

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  5.551e-11  2.174e-05  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:  4.483e-01  2.277e-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.650e+00  2.000e-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: 4.32e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.35e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/280878/likelihoodResults_696297601_696556801_4FGL_J1304.0+3704_daily_bin1763.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) = 6460.51236121
delta logL = -0.0202402014284

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6460.49212101
delta logL = -1.02854755824e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .47740E-08   1.0000          .0000       .10000E+07
     2 'Index     '    2.8861       1.0000          .0000       10.000    
     3 'Normalizat'    1.6501       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .44834       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=   6460.492     FROM MIGRAD    STATUS=CONVERGED     35 CALLS      235 TOTAL
                     EDM=   .66E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        3.8833       -.18517E-05** at limit **
   2  Index         1.3013        2.2347       -.14900E-03     .0000    
   3  Normalizat    1.6501        .21245        .26776E-04   -.10194E-03
   4  Prefactor     .44834        .24288       -.20806E-04   -.13214E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.30134
  Normalizat = 1.6501
  Prefactor  = 0.448341
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6460.492     FROM HESSE     STATUS=FAILED        11 CALLS      246 TOTAL
                     EDM=   .66E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        3.8984        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .12954        1.2641       -.14900E-03   -.83267    
   3  Normalizat    1.6501        1.0370        .26776E-04   -.73644    
   4  Prefactor     .44834        .78568       -.20806E-04   -1.1441    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 6.55078e-11
Minuit parameter uncertainties:
  1  5.74889e-07
  2  0.753017
  3  1.05105
  4  0.805898
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/280878': 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) = 6460.492121
delta logL = 1.537046046e-10

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  0.000e+00  5.749e-07  0.000e+00  1.000e+06 ( 1.000e-13)
314        Index:  1.301e+00  7.530e-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:  4.483e-01  8.059e-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.650e+00  1.051e+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/280878/cmap_HighResolution_696297601_696556801_4FGL_J1304.0+3704_daily_bin1763.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.35e-03', job_status='DONE', photon_flux_upper_limit='4.32e-08', time_completed='2023-01-28 01:10:01.989871', job_id='280878', GAL2='0.45', fit_tolerance='1e-08', EG2='1.65', EG='1.65', time_epoch_completed='1674897001.99', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.45', dlogl='1.54e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='1763' AND source_name='4FGL J1304.0+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Jan 28 01:10:02 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 280878: <4FGL_J1304.0+3704_daily_bin1763> in cluster <slac> Done

Job <4FGL_J1304.0+3704_daily_bin1763> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Jan 28 00:55:21 2023
Job was executed on host(s) <bullet0244>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jan 28 00:55:48 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jan 28 00:55:48 2023
Terminated at Sat Jan 28 01:10:02 2023
Results reported at Sat Jan 28 01:10:02 2023

Your job looked like:

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

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

