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


Performing analysis on: 4FGL_J1304.0+3704_daily_bin1746
RA = 196.008, Dec = 37.071
tmin = 691891201, tmax = 692150401
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='727212', job_status='RUN', time_executed='2022-12-08 00:58:58.043908', time_epoch_executed='1670489938.04' WHERE source_name='4FGL J1304.0+3704' and cadence='daily' and bin_id='1746'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/727212

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/727212/ft1_4FGL_J1304.0+3704_daily_bin1746.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/727212/ft2_4FGL_J1304.0+3704_daily_bin1746.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/727212/ft1_4FGL_J1304.0+3704_daily_bin1746.fits outfile=/scratch/kocevski/727212/ft1_filteredMKT_4FGL_J1304.0+3704_daily_bin1746.fits ra=196.008 dec=37.071 rad=12.0 tmin=691891201.0 tmax=692150401.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 4.77
user 4.52
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/727212/ft2_4FGL_J1304.0+3704_daily_bin1746.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/727212/ft1_filteredMKT_4FGL_J1304.0+3704_daily_bin1746.fits evtable="EVENTS" outfile="/scratch/kocevski/727212/ft1_filtered_4FGL_J1304.0+3704_daily_bin1746.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.52
user 0.34
sys 0.16

Number of photons that the gtmktime cut: 629

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/727212/ft1_filtered_4FGL_J1304.0+3704_daily_bin1746.fits" evtable="EVENTS" scfile=/scratch/kocevski/727212/ft2_4FGL_J1304.0+3704_daily_bin1746.fits sctable="SC_DATA" outfile=/scratch/kocevski/727212/ltcube_691891201_692150401_4FGL_J1304.0+3704_daily_bin1746.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/727212/ft2_4FGL_J1304.0+3704_daily_bin1746.fits
.....................!
real 12.42
user 12.03
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/727212/ft1_filtered_4FGL_J1304.0+3704_daily_bin1746.fits evtable="EVENTS" scfile=/scratch/kocevski/727212/ft2_4FGL_J1304.0+3704_daily_bin1746.fits sctable="SC_DATA" expcube=/scratch/kocevski/727212/ltcube_691891201_692150401_4FGL_J1304.0+3704_daily_bin1746.fits outfile=/scratch/kocevski/727212/expmap_691891201_692150401_4FGL_J1304.0+3704_daily_bin1746.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/727212/ltcube_691891201_692150401_4FGL_J1304.0+3704_daily_bin1746.fits
.....................!
real 190.40
user 185.39
sys 4.57

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/727212/ft1_filtered_4FGL_J1304.0+3704_daily_bin1746.fits scfile=/scratch/kocevski/727212/ft2_4FGL_J1304.0+3704_daily_bin1746.fits outfile=/scratch/kocevski/727212/cmap_691891201_692150401_4FGL_J1304.0+3704_daily_bin1746.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/727212/ft1_filtered_4FGL_J1304.0+3704_daily_bin1746.fits scfile=/scratch/kocevski/727212/ft2_4FGL_J1304.0+3704_daily_bin1746.fits outfile=/scratch/kocevski/727212/cmap_HighResolution_691891201_692150401_4FGL_J1304.0+3704_daily_bin1746.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.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.4707       1.0000          .0000       .10000E+07
     2 'Prefactor '    .63315       1.0000          .0000       .10000E+07
     3 'Prefactor '    .17875E-07   1.0000          .0000       .10000E+07
     4 'Prefactor '    .10825E-07   1.0000          .0000       .10000E+07
     5 'Prefactor '    .53671E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .10188E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    4.0413       1.0000          .0000       .10000E+07
     8 'norm      '    3.8248       1.0000          .0000       .10000E+07
     9 'Prefactor '    .86413E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .10797E-02   1.0000          .0000       .10000E+07
    11 'norm      '    .47390E-06   1.0000          .0000       .10000E+07
    12 'norm      '    17.591       1.0000          .0000       .10000E+07
    13 'norm      '    30.960       1.0000          .0000       .10000E+07
    14 'norm      '    12.939       1.0000          .0000       .10000E+07
    15 'norm      '    .43982E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    .10172E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    18.426       1.0000          .0000       .10000E+07
    18 'Prefactor '    .41277E-01   1.0000          .0000       .10000E+07
    19 'Prefactor '    .58870E-05   1.0000          .0000       .10000E+07
    20 'Prefactor '    .45248E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    .11705E-02   1.0000          .0000       .10000E+07
    22 'Prefactor '    .14373E-03   1.0000          .0000       .10000E+07
    23 'norm      '    1.3360       1.0000          .0000       .10000E+07
    24 'Prefactor '    .27648E-03   1.0000          .0000       .10000E+07
    25 'norm      '    .13354E-02   1.0000          .0000       .10000E+07
    26 'Normalizat'    1.1643       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .83837       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=   6876.129     FROM MIGRAD    STATUS=CONVERGED    143 CALLS     1834 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.4716        2.8110        .16481E-06    .80308E-03
   2  Prefactor     .63060        2.3201       -.39645E-05   -.37470E-01
   3  Prefactor      .0000        .68342        .11858E-06** at limit **
   4  Prefactor      .0000        2.7451       -.62725E-07** at limit **
   5  Prefactor     .50554E-06    7.6354       -.46050E-06** at limit **
   6  Prefactor     .16653E-09    5.5914       -.17907E-05** at limit **
   7  Prefactor     4.0688        4.7849       -.65928E-07   -.14722E-03
   8  norm          3.8235        3.1908        .75104E-07   -.24212E-02
   9  Prefactor     .84099E-07    2.2529       -.59744E-07** at limit **
  10  Prefactor     .62172E-08    3.3800        .14545E-05** at limit **
  11  norm           .0000        1.3772       -.13193E-06** at limit **
  12  norm          17.598        1.0441       -.38214E-07    .11091E-01
  13  norm          30.947        5.0818       -.50313E-07    .46904E-02
  14  norm          13.015        2.8325       -.99303E-07    .20253E-02
  15  norm          .66724E-07    1.3987        .96288E-06** at limit **
  16  Prefactor      .0000        1.8531        .77020E-07** at limit **
  17  Prefactor     18.371        2.3609        .19815E-06   -.52368E-01
  18  Prefactor     .32507E-06    42.475       -.16611E-04** at limit **
  19  Prefactor     .14438E-06    12.883        .17420E-05** at limit **
  20  Prefactor     .63627E-06    10.864        .19209E-05** at limit **
  21  Prefactor     .34295E-06    8.9869       -.47499E-07** at limit **
  22  Prefactor     .26812E-07    38.089       -.23051E-05** at limit **
  23  norm          1.3363        .96389       -.17097E-06    .73724E-02
  24  Prefactor     .11102E-09    2.2155       -.30211E-06** at limit **
  25  norm          .72164E-09    4.5824        .21836E-06** at limit **
  26  Normalizat    1.1644        .18771        .17227E-04    .28905E-03
  27  Prefactor     .83821        .22947       -.32016E-04    .14051E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.47159
  Prefactor  = 0.630604
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 5.0554e-07
  Prefactor  = 1.66533e-10
  Prefactor  = 4.06878
  norm       = 3.82347
  Prefactor  = 8.40994e-08
  Prefactor  = 6.21725e-09
  norm       = 0
  norm       = 17.5976
  norm       = 30.9468
  norm       = 13.0154
  norm       = 6.67244e-08
  Prefactor  = 0
  Prefactor  = 18.3708
  Prefactor  = 3.25073e-07
  Prefactor  = 1.44385e-07
  Prefactor  = 6.36269e-07
  Prefactor  = 3.42948e-07
  Prefactor  = 2.68119e-08
  norm       = 1.33627
  Prefactor  = 1.11022e-10
  norm       = 7.21645e-10
  Normalizat = 1.16444
  Prefactor  = 0.838211
 **********
 **   18 **HESSE 
 **********

 FCN=   6876.129     FROM HESSE     STATUS=OK           538 CALLS     2372 TOTAL
                     EDM=   .19E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.4716        2.8050        .47597E-03   -1.5666    
   2  Prefactor     .63060        7.5790        .66309E-03   -1.5692    
   3  Prefactor      .0000        .68218        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        2.7510        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .50554E-06    16.683        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .16653E-09    5.8197        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.0688        4.7970        .50136E-03   -1.5668    
   8  norm          3.8235        3.2001        .51583E-03   -1.5669    
   9  Prefactor     .84099E-07    6.3477        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .62172E-08    6.4943        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm           .0000        1.3796        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          17.598        16.622        .23852E-03   -1.5624    
  13  norm          30.947        9.0421        .17975E-03   -1.5597    
  14  norm          13.015        13.928        .27821E-03   -1.5636    
  15  norm          .66724E-07    7.1932        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        1.8508        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     18.371        18.448        .23305E-03   -1.5622    
  18  Prefactor     .32507E-06    11.550        .15907E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .14438E-06    23.425        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .63627E-06    24.728        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .34295E-06    16.267        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .26812E-07    38.119        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.3363        .97463        .94874E-03   -1.5685    
  24  Prefactor     .11102E-09    2.2123        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .72164E-09    4.6212        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.1644        .16213        .35832E-01   -.87709    
  27  Prefactor     .83821        .19772        .71284E-01   -.98335    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9392e-07
Minuit parameter uncertainties:
  1  2.80496
  2  4.37235
  3  1.30261e-07
  4  1.58152e-05
  5  0.00580828
  6  5.86543e-05
  7  4.79701
  8  3.20015
  9  0.00146107
  10  0.000402735
  11  1.14387e-05
  12  16.6222
  13  9.04214
  14  13.9283
  15  0.00138577
  16  1.02044e-05
  17  18.4485
  18  0.00387532
  19  0.00367818
  20  0.00793319
  21  0.00472403
  22  0.00202222
  23  0.97463
  24  2.84762e-05
  25  0.000113876
  26  0.162197
  27  0.197888
Done.

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

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  6.217e-09  4.027e-04  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.382e-01  1.979e-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.164e+00  1.622e-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: 5.41e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.19e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/727212/likelihoodResults_691891201_692150401_4FGL_J1304.0+3704_daily_bin1746.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) = 6876.13015904
delta logL = -0.00140563847162

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6876.12875412
delta logL = -7.24156052456e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14058E-04   1.0000          .0000       .10000E+07
     2 'Index     '    2.9338       1.0000          .0000       10.000    
     3 'Normalizat'    1.1644       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83826       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=   6874.702     FROM MIGRAD    STATUS=CONVERGED    194 CALLS      379 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .15783E-03    .16592E-02    .18740E-04** at limit **
   2  Index         8.3722        2.3156        .15409        .44960E-04
   3  Normalizat    1.0782        .38326E-01    .51804E-01   -.81914E-04
   4  Prefactor     .91146        .47356E-01    .68687E-01   -.29406E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000157832
  Index      = 8.37221
  Normalizat = 1.07822
  Prefactor  = 0.911462
 **********
 **   18 **HESSE 
 **********

 FCN=   6874.702     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      414 TOTAL
                     EDM=   .38E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .15783E-03    .41178E-02    .74900E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.3722        7.8763        .61867E-02    .74021    
   3  Normalizat    1.0782        .14199        .22905E-03   -.90454    
   4  Prefactor     .91146        .17293        .30387E-03   -.95742    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.81821e-06
Minuit parameter uncertainties:
  1  0.00161235
  2  4.56429
  3  0.142035
  4  0.173037
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/727212': 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) = 6874.70155287
delta logL = 1.42720053156

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  1.578e-04  1.612e-03  0.000e+00  1.000e+06 ( 1.000e-13)
314        Index:  8.372e+00  4.564e+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:  9.115e-01  1.730e-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.078e+00  1.420e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.02
Ra Dec: 196.008 37.071
Photon Index (Free Index): 8.37 +/- 4.56
Photon Flux (Free Index): 6.70e-08 +/- 4.57e-08
Energy Flux (Free Index): 7.71e-06 +/- 5.50e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/727212/cmap_HighResolution_691891201_692150401_4FGL_J1304.0+3704_daily_bin1746.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.19e-03', comment='SUCCESS', energy_flux2='7.71e-06', dlogl='1.43e+00', photon_flux2='6.70e-08', job_status='DONE', time_completed='2022-12-08 01:10:20.329072', photon_index_error2='4.56', photon_index2='8.37', ts='-0.00', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='5.41e-08', energy_flux_error2='5.50e-06', EG='1.16', time_epoch_completed='1670490620.33', return_code='0', job_id='727212', GAL2='0.91', EG2='1.08', return_code2='102', photon_flux_error2='4.57e-08', ts2='3.02', photon_index='2.44' WHERE bin_id='1746' AND source_name='4FGL J1304.0+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Dec  8 01:10:20 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 727212: <4FGL_J1304.0+3704_daily_bin1746> in cluster <slac> Done

Job <4FGL_J1304.0+3704_daily_bin1746> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Dec  8 00:55:12 2022
Job was executed on host(s) <bullet0246>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Dec  8 00:55:13 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Dec  8 00:55:13 2022
Terminated at Thu Dec  8 01:10:21 2022
Results reported at Thu Dec  8 01:10:21 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.0+3704_daily_bin1746 196.008 37.071 691891201 692150401 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.51 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             273.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   907 sec.
    Turnaround time :                            909 sec.

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

