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


Performing analysis on: 4FGL_J1304.0+3704_daily_bin1774
RA = 196.008, Dec = 37.071
tmin = 699148801, tmax = 699408001
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='682654', job_status='RUN', time_executed='2023-03-02 00:47:38.176575', time_epoch_executed='1677746858.18' WHERE source_name='4FGL J1304.0+3704' and cadence='daily' and bin_id='1774'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/682654

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/682654/ft1_4FGL_J1304.0+3704_daily_bin1774.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/682654/ft2_4FGL_J1304.0+3704_daily_bin1774.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/682654/ft1_4FGL_J1304.0+3704_daily_bin1774.fits outfile=/scratch/kocevski/682654/ft1_filteredMKT_4FGL_J1304.0+3704_daily_bin1774.fits ra=196.008 dec=37.071 rad=12.0 tmin=699148801.0 tmax=699408001.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 2.77
user 2.57
sys 0.19

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

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

Number of photons that the gtmktime cut: 281

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/682654/ft1_filtered_4FGL_J1304.0+3704_daily_bin1774.fits evtable="EVENTS" scfile=/scratch/kocevski/682654/ft2_4FGL_J1304.0+3704_daily_bin1774.fits sctable="SC_DATA" expcube=/scratch/kocevski/682654/ltcube_699148801_699408001_4FGL_J1304.0+3704_daily_bin1774.fits outfile=/scratch/kocevski/682654/expmap_699148801_699408001_4FGL_J1304.0+3704_daily_bin1774.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/682654/ltcube_699148801_699408001_4FGL_J1304.0+3704_daily_bin1774.fits
.....................!
real 190.64
user 185.16
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/682654/ft1_filtered_4FGL_J1304.0+3704_daily_bin1774.fits scfile=/scratch/kocevski/682654/ft2_4FGL_J1304.0+3704_daily_bin1774.fits outfile=/scratch/kocevski/682654/cmap_699148801_699408001_4FGL_J1304.0+3704_daily_bin1774.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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/682654/ft1_filtered_4FGL_J1304.0+3704_daily_bin1774.fits scfile=/scratch/kocevski/682654/ft2_4FGL_J1304.0+3704_daily_bin1774.fits outfile=/scratch/kocevski/682654/cmap_HighResolution_699148801_699408001_4FGL_J1304.0+3704_daily_bin1774.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.54
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .55456E-06   1.0000          .0000       .10000E+07
     2 'Prefactor '    11.229       1.0000          .0000       .10000E+07
     3 'Prefactor '    7.2808       1.0000          .0000       .10000E+07
     4 'Prefactor '    22.093       1.0000          .0000       .10000E+07
     5 'Prefactor '    .24400E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    36.603       1.0000          .0000       .10000E+07
     7 'Prefactor '    4.5008       1.0000          .0000       .10000E+07
     8 'norm      '    .14988E-05   1.0000          .0000       .10000E+07
     9 'Prefactor '    .20241E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    2.7176       1.0000          .0000       .10000E+07
    11 'norm      '    .15450E-04   1.0000          .0000       .10000E+07
    12 'norm      '    37.073       1.0000          .0000       .10000E+07
    13 'norm      '    13.323       1.0000          .0000       .10000E+07
    14 'norm      '    11.525       1.0000          .0000       .10000E+07
    15 'norm      '    3.3618       1.0000          .0000       .10000E+07
    16 'Prefactor '    .79381E-08   1.0000          .0000       .10000E+07
    17 'Prefactor '    .86941E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .65433E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    .75137E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    .64018E-04   1.0000          .0000       .10000E+07
    21 'Prefactor '    .29130E-03   1.0000          .0000       .10000E+07
    22 'Prefactor '    51.772       1.0000          .0000       .10000E+07
    23 'norm      '    .31266       1.0000          .0000       .10000E+07
    24 'Prefactor '    .79675E-04   1.0000          .0000       .10000E+07
    25 'norm      '    14.493       1.0000          .0000       .10000E+07
    26 'Normalizat'    1.3884       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .62670       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=   3186.027     FROM MIGRAD    STATUS=CONVERGED    189 CALLS     2417 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .27756E-09    8.0436       -.16864E-07** at limit **
   2  Prefactor     11.395        2.0499        .13355E-07    .85759E-02
   3  Prefactor     7.2779        6.9696       -.23392E-06    .14005E-03
   4  Prefactor     22.188        1.2805       -.17032E-06    .34524E-02
   5  Prefactor     .77359E-05    18.283        .10360E-05** at limit **
   6  Prefactor     38.122        23.782       -.36598E-05    .39049E-01
   7  Prefactor     4.3331        9.7609        .67969E-06    .19047E-02
   8  norm           .0000        2.4139        .16834E-06** at limit **
   9  Prefactor     .10325E-07    10.109       -.62207E-06** at limit **
  10  Prefactor     2.5853        3.0156       -.81137E-06   -.35427E-02
  11  norm           .0000        2.3898        .18370E-06** at limit **
  12  norm          37.137        2.7085       -.22939E-06   -.20614E-01
  13  norm          13.246        6.0377        .20610E-06   -.33693E-02
  14  norm          11.613        3.4886       -.15789E-06    .96909E-02
  15  norm          3.3647        4.3608        .24076E-07    .21296E-03
  16  Prefactor      .0000        1.6720        .19727E-06** at limit **
  17  Prefactor     .99920E-09    8.2486       -.36013E-06** at limit **
  18  Prefactor     .33712E-06    22.946       -.83170E-06** at limit **
  19  Prefactor     .26192E-05    60.662       -.71124E-05** at limit **
  20  Prefactor     .60716E-05    21.354        .69363E-06** at limit **
  21  Prefactor     .11147E-05    196.64       -.40524E-05** at limit **
  22  Prefactor     53.614        31.386       -.39628E-05    .48520E-01
  23  norm          .31409        .87759        .41240E-07    .16881E-03
  24  Prefactor     .16542E-07    9.4959        .55289E-06** at limit **
  25  norm          14.521        13.850        .37849E-05    .10283    
  26  Normalizat    1.3880        .29574        .80300E-05    .14595E-04
  27  Prefactor     .62580        .35207       -.63858E-05    .10115E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.77556e-10
  Prefactor  = 11.395
  Prefactor  = 7.27793
  Prefactor  = 22.1881
  Prefactor  = 7.73587e-06
  Prefactor  = 38.1224
  Prefactor  = 4.33309
  norm       = 0
  Prefactor  = 1.03251e-08
  Prefactor  = 2.58532
  norm       = 0
  norm       = 37.1374
  norm       = 13.246
  norm       = 11.6132
  norm       = 3.36466
  Prefactor  = 0
  Prefactor  = 9.99201e-10
  Prefactor  = 3.37119e-07
  Prefactor  = 2.61924e-06
  Prefactor  = 6.07164e-06
  Prefactor  = 1.11472e-06
  Prefactor  = 53.6144
  norm       = 0.314088
  Prefactor  = 1.65423e-08
  norm       = 14.5214
  Normalizat = 1.38805
  Prefactor  = 0.6258
 **********
 **   18 **HESSE 
 **********

 FCN=   3186.027     FROM HESSE     STATUS=OK           546 CALLS     2963 TOTAL
                     EDM=   .93E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .27756E-09    8.0476        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     11.395        31.273        .29872E-03   -1.5640    
   3  Prefactor     7.2779        7.1074        .37149E-03   -1.5654    
   4  Prefactor     22.188        27.435        .21281E-03   -1.5614    
   5  Prefactor     .77359E-05    27.192        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     38.122        43.469        .16531E-03   -1.5584    
   7  Prefactor     4.3331        12.092        .47434E-03   -1.5666    
   8  norm           .0000        2.4139        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10325E-07    10.131        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.5853        77.848        .61753E-03   -1.5676    
  11  norm           .0000        2.3898        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          37.137        25.829        .16425E-03   -1.5586    
  13  norm          13.246        11.366        .27417E-03   -1.5635    
  14  norm          11.613        19.677        .29485E-03   -1.5640    
  15  norm          3.3647        4.3722        .55168E-03   -1.5671    
  16  Prefactor      .0000        1.6713        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .99920E-09    8.2506        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .33712E-06    23.346        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .26192E-05    63.544        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .60716E-05    28.507        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .11147E-05    197.19        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     53.614        42.875        .13899E-03   -1.5562    
  23  norm          .31409        .99851        .20664E-02   -1.5697    
  24  Prefactor     .16542E-07    9.4704        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          14.521        15.513        .26284E-03   -1.5632    
  26  Normalizat    1.3880        .25797        .48860E-01   -.80975    
  27  Prefactor     .62580        .30646        .83250E-01   -1.0651    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.31368e-07
Minuit parameter uncertainties:
  1  9.6991e-05
  2  31.2735
  3  7.10746
  4  27.4356
  5  0.0290074
  6  43.4693
  7  12.0918
  8  1.58042e-07
  9  0.000646498
  10  28.3737
  11  3.48106e-06
  12  25.8293
  13  11.3659
  14  19.6772
  15  4.37218
  16  3.73074e-06
  17  0.000181469
  18  0.00561082
  19  0.0258023
  20  0.0263124
  21  0.0296527
  22  42.8751
  23  0.998515
  24  0.000791699
  25  15.5128
  26  0.258208
  27  0.307283
Done.

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

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  2.585e+00  2.837e+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:  6.258e-01  3.073e-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.388e+00  2.582e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 196.008 37.071
Photon Flux Upper Limit: 1.37e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.06e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/682654/likelihoodResults_699148801_699408001_4FGL_J1304.0+3704_daily_bin1774.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) = 3185.9661348
delta logL = 0.0610841858211

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3185.96307853
delta logL = 0.0641404502258

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4399       1.0000          .0000       .10000E+07
     2 'Index     '    3.1268       1.0000          .0000       10.000    
     3 'Normalizat'    1.3693       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63681       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5990E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3185.963     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      257 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4396        20.483        .21803E-04   -.62857E-03
   2  Index         3.1269        2.1194        .85601E-02   -.16172E-04
   3  Normalizat    1.3693        .30005        .21715E-03   -.11324E-03
   4  Prefactor     .63680        .35249        .36564E-03   -.46872E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.43955
  Index      = 3.12693
  Normalizat = 1.36934
  Prefactor  = 0.6368
 **********
 **   18 **HESSE 
 **********

 FCN=   3185.963     FROM HESSE     STATUS=OK            25 CALLS      282 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4396        13.915        .87214E-06   -1.5671    
   2  Index         3.1269        1.7673        .34240E-03   -.38398    
   3  Normalizat    1.3693        .30045        .43430E-04   -.81520    
   4  Prefactor     .63680        .35278        .14625E-04   -1.0606    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.17803e-11
Minuit parameter uncertainties:
  1  13.8367
  2  1.81322
  3  0.300832
  4  0.354019
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/682654': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3185.96307853
delta logL = 0.0641404579196

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  3.440e+00  1.384e+01  0.000e+00  1.000e+06 ( 1.000e-13)
314        Index:  3.127e+00  1.813e+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:  6.368e-01  3.540e-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.369e+00  3.008e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
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/682654/cmap_HighResolution_699148801_699408001_4FGL_J1304.0+3704_daily_bin1774.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.06e-02', job_status='DONE', photon_flux_upper_limit='1.37e-07', time_completed='2023-03-02 00:55:47.739738', job_id='682654', GAL2='0.64', fit_tolerance='1e-08', EG2='1.37', EG='1.39', time_epoch_completed='1677747347.74', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.63', dlogl='6.41e-02', ts2='0.14', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='1774' AND source_name='4FGL J1304.0+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Mar  2 00:55:47 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0194>
Subject: Job 682654: <4FGL_J1304.0+3704_daily_bin1774> in cluster <slac> Done

Job <4FGL_J1304.0+3704_daily_bin1774> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Mar  2 00:45:17 2023
Job was executed on host(s) <bullet0194>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Mar  2 00:45:18 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Mar  2 00:45:18 2023
Terminated at Thu Mar  2 00:55:48 2023
Results reported at Thu Mar  2 00:55:48 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.0+3704_daily_bin1774 196.008 37.071 699148801 699408001 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 :                                   492.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             261.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   630 sec.
    Turnaround time :                            631 sec.

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

