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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin1760
RA = 197.363, Dec = 43.085
tmin = 695520001, tmax = 695779201
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='737570', job_status='RUN', time_executed='2023-01-19 00:59:54.791449', time_epoch_executed='1674118794.79' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='1760'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/737570

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/737570/ft1_4FGL_J1309.4+4305_daily_bin1760.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/737570/ft2_4FGL_J1309.4+4305_daily_bin1760.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/737570/ft1_4FGL_J1309.4+4305_daily_bin1760.fits outfile=/scratch/kocevski/737570/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin1760.fits ra=197.363 dec=43.085 rad=12.0 tmin=695520001.0 tmax=695779201.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.04
user 2.19
sys 0.14

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/737570/ft2_4FGL_J1309.4+4305_daily_bin1760.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/737570/ft2_4FGL_J1309.4+4305_daily_bin1760.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/737570/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin1760.fits evtable="EVENTS" outfile="/scratch/kocevski/737570/ft1_filtered_4FGL_J1309.4+4305_daily_bin1760.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.34
sys 0.16

Number of photons that the gtmktime cut: 582

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/737570/ft1_filtered_4FGL_J1309.4+4305_daily_bin1760.fits" evtable="EVENTS" scfile=/scratch/kocevski/737570/ft2_4FGL_J1309.4+4305_daily_bin1760.fits sctable="SC_DATA" outfile=/scratch/kocevski/737570/ltcube_695520001_695779201_4FGL_J1309.4+4305_daily_bin1760.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/737570/ft2_4FGL_J1309.4+4305_daily_bin1760.fits
.....................!
real 15.17
user 14.72
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/737570/ft1_filtered_4FGL_J1309.4+4305_daily_bin1760.fits evtable="EVENTS" scfile=/scratch/kocevski/737570/ft2_4FGL_J1309.4+4305_daily_bin1760.fits sctable="SC_DATA" expcube=/scratch/kocevski/737570/ltcube_695520001_695779201_4FGL_J1309.4+4305_daily_bin1760.fits outfile=/scratch/kocevski/737570/expmap_695520001_695779201_4FGL_J1309.4+4305_daily_bin1760.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/737570/ltcube_695520001_695779201_4FGL_J1309.4+4305_daily_bin1760.fits
.....................!
real 195.99
user 188.90
sys 4.91

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 208 point sources and 0 extended sources

Setting source of interest to:
4FGL J1309.4+4305 @ 197.363 43.085

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/737570/ft1_filtered_4FGL_J1309.4+4305_daily_bin1760.fits scfile=/scratch/kocevski/737570/ft2_4FGL_J1309.4+4305_daily_bin1760.fits outfile=/scratch/kocevski/737570/cmap_695520001_695779201_4FGL_J1309.4+4305_daily_bin1760.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=197.363 yref=43.085 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.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/737570/ft1_filtered_4FGL_J1309.4+4305_daily_bin1760.fits scfile=/scratch/kocevski/737570/ft2_4FGL_J1309.4+4305_daily_bin1760.fits outfile=/scratch/kocevski/737570/cmap_HighResolution_695520001_695779201_4FGL_J1309.4+4305_daily_bin1760.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=197.363 yref=43.085 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.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/737570/ft1_filtered_4FGL_J1309.4+4305_daily_bin1760.fits evtable="EVENTS" scfile=/scratch/kocevski/737570/ft2_4FGL_J1309.4+4305_daily_bin1760.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/737570/Model_4FGL_J1309.4+4305_daily_bin1760.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/737570/ft1_filtered_4FGL_J1309.4+4305_daily_bin1760.fits.....................!
real 52.23
user 50.76
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/737570/ft1_filtered_4FGL_J1309.4+4305_daily_bin1760.fits', '/scratch/kocevski/737570/ft2_4FGL_J1309.4+4305_daily_bin1760.fits', expMap='/scratch/kocevski/737570/expmap_695520001_695779201_4FGL_J1309.4+4305_daily_bin1760.fits', expCube='/scratch/kocevski/737570/ltcube_695520001_695779201_4FGL_J1309.4+4305_daily_bin1760.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/737570/Model_4FGL_J1309.4+4305_daily_bin1760.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1309.4+4305'

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  8.179e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
350        alpha:  1.769e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
351         beta:  8.354e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
352           Eb:  1.387e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/737570/ft1_filtered_4FGL_J1309.4+4305_daily_bin1760.fits
Spacecraft file(s): /scratch/kocevski/737570/ft2_4FGL_J1309.4+4305_daily_bin1760.fits
Exposure map: /scratch/kocevski/737570/expmap_695520001_695779201_4FGL_J1309.4+4305_daily_bin1760.fits
Exposure cube: /scratch/kocevski/737570/ltcube_695520001_695779201_4FGL_J1309.4+4305_daily_bin1760.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/737570/Model_4FGL_J1309.4+4305_daily_bin1760.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) = 6325.65766272

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10226E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    33.546       1.0000          .0000       .10000E+07
     3 'Prefactor '    .45613E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    .12024       1.0000          .0000       .10000E+07
     5 'norm      '    4.3713       1.0000          .0000       .10000E+07
     6 'Prefactor '    1.2189       1.0000          .0000       .10000E+07
     7 'norm      '    2.2362       1.0000          .0000       .10000E+07
     8 'Prefactor '    .90929E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    17.677       1.0000          .0000       .10000E+07
    10 'norm      '    .10991E-06   1.0000          .0000       .10000E+07
    11 'norm      '    3.4929       1.0000          .0000       .10000E+07
    12 'norm      '    61.030       1.0000          .0000       .10000E+07
    13 'norm      '    11.215       1.0000          .0000       .10000E+07
    14 'norm      '    .51403E-07   1.0000          .0000       .10000E+07
    15 'Prefactor '    2.6344       1.0000          .0000       .10000E+07
    16 'Prefactor '    .14301E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    .38584E-01   1.0000          .0000       .10000E+07
    18 'Prefactor '    15.455       1.0000          .0000       .10000E+07
    19 'Prefactor '    24.077       1.0000          .0000       .10000E+07
    20 'norm      '    .68147E-03   1.0000          .0000       .10000E+07
    21 'norm      '    .42266       1.0000          .0000       .10000E+07
    22 'norm      '    .96036E-05   1.0000          .0000       .10000E+07
    23 'Normalizat'    1.2003       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .74940       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6660E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6325.521     FROM MIGRAD    STATUS=CONVERGED    141 CALLS     1604 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .22676E-06    13.121       -.67219E-06** at limit **
   2  Prefactor     33.332        19.589       -.42586E-05    .97318E-01
   3  Prefactor     .82362E-06    7.4394        .36751E-05** at limit **
   4  Prefactor     .20778E-06    1.9795       -.18543E-05** at limit **
   5  norm          4.3732        2.1819       -.63210E-07   -.13514E-01
   6  Prefactor     1.2140        4.4120       -.46930E-06   -.43244E-03
   7  norm          2.2500        4.1400       -.25343E-06    .11539E-02
   8  Prefactor     .11545E-05    7.6110       -.26416E-05** at limit **
   9  Prefactor     17.764        1.4031       -.79289E-07    .43859E-02
  10  norm           .0000        1.3279       -.15446E-06** at limit **
  11  norm          3.9034        1.9622       -.82736E-06   -.16371E-02
  12  norm          60.780        7.4593        .32333E-06    .27927E-01
  13  norm          11.613        7.3188       -.19507E-05   -.19540E-01
  14  norm          .77716E-09    2.2126       -.19961E-06** at limit **
  15  Prefactor     2.6358        2.6725       -.13807E-06   -.11776E-02
  16  Prefactor      .0000        5.4419        .30783E-06** at limit **
  17  Prefactor     .12768E-08    49.566       -.39156E-05** at limit **
  18  Prefactor     15.401        1.9212       -.42688E-06    .85320E-02
  19  Prefactor     22.160        34.883       -.23694E-05    .15061E-02
  20  norm          .22526E-06    8.7684       -.29476E-05** at limit **
  21  norm          .42631        .91802        .63859E-07    .41394E-02
  22  norm           .0000        4.4612        .13179E-06** at limit **
  23  Normalizat    1.2031        .20930        .28933E-05    .26809E-03
  24  Prefactor     .74744        .25131        .88122E-05    .34798E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.26763e-07
  Prefactor  = 33.3321
  Prefactor  = 8.23619e-07
  Prefactor  = 2.07778e-07
  norm       = 4.37322
  Prefactor  = 1.214
  norm       = 2.25001
  Prefactor  = 1.15452e-06
  Prefactor  = 17.7637
  norm       = 0
  norm       = 3.90339
  norm       = 60.7797
  norm       = 11.6129
  norm       = 7.77156e-10
  Prefactor  = 2.63578
  Prefactor  = 0
  Prefactor  = 1.27676e-09
  Prefactor  = 15.401
  Prefactor  = 22.1598
  norm       = 2.25264e-07
  norm       = 0.42631
  norm       = 0
  Normalizat = 1.20314
  Prefactor  = 0.747441
 **********
 **   18 **HESSE 
 **********

 FCN=   6325.521     FROM HESSE     STATUS=OK           459 CALLS     2063 TOTAL
                     EDM=   .45E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .22676E-06    14.227        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     33.332        26.546        .17268E-03   -1.5592    
   3  Prefactor     .82362E-06    9.6563        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .20778E-06    15.996        .13415E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.3732        2.1886        .48150E-03   -1.5666    
   6  Prefactor     1.2140        4.7234        .10217E-02   -1.5686    
   7  norm          2.2500        4.1777        .68709E-03   -1.5678    
   8  Prefactor     .11545E-05    11.077        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     17.764        14.082        .23794E-03   -1.5624    
  10  norm           .0000        1.3308        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.9034        17.330        .54075E-03   -1.5668    
  12  norm          60.780        12.195        .12801E-03   -1.5552    
  13  norm          11.613        17.675        .29891E-03   -1.5640    
  14  norm          .77716E-09    2.1926        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.6358        2.7092        .62797E-03   -1.5675    
  16  Prefactor      .0000        5.4539        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .12768E-08    49.069        .16028E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     15.401        31.343        .25451E-03   -1.5629    
  19  Prefactor     22.160        35.368        .20384E-03   -1.5614    
  20  norm          .22526E-06    9.2743        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .42631        1.0105        .25037E-02   -1.5695    
  22  norm           .0000        4.4743        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2031        .17316        .50534E-01   -.86506    
  24  Prefactor     .74744        .20895        .76097E-01   -1.0170    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.50834e-07
Minuit parameter uncertainties:
  1  0.00359231
  2  26.5462
  3  0.00564018
  4  0.003646
  5  2.18865
  6  4.72339
  7  4.17767
  8  0.00715242
  9  14.0819
  10  1.06963e-05
  11  16.4495
  12  12.1952
  13  17.6746
  14  8.16225e-05
  15  2.70922
  16  4.25637e-06
  17  0.000503109
  18  31.3436
  19  35.368
  20  0.00289093
  21  1.01055
  22  1.51259e-05
  23  0.173247
  24  0.209168
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  3.903e+00  1.645e+01  0.000e+00  1.000e+06 ( 1.000e-13)
350        alpha:  1.769e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
351         beta:  8.354e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
352           Eb:  1.387e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
663    Prefactor:  7.474e-01  2.092e-01  0.000e+00  1.000e+01 ( 1.000e+00)
664        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
665        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
662   Normalization:  1.203e+00  1.732e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.06
Ra Dec: 197.363 43.085
Photon Flux Upper Limit: 5.11e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.61e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/737570/likelihoodResults_695520001_695779201_4FGL_J1309.4+4305_daily_bin1760.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) = 6324.32132877
delta logL = 1.19968137715

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6324.30946279
delta logL = 1.21154736046

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.6929       1.0000          .0000       .10000E+07
     2 'alpha     '    3.1816       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1407       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77747       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6660E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6324.309     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      228 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.7036        68.478        .46429E-03    .45427E-02
   2  alpha         3.1807        3.9186        .25339        .88277E-04
   3  Normalizat    1.1407        .55654E-01    .36541E-01   -.10098E-03
   4  Prefactor     .77750        .65775E-01    .74668E-01   -.12142E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.70358
  alpha      = 3.1807
  Normalizat = 1.14067
  Prefactor  = 0.777504
 **********
 **   18 **HESSE 
 **********

 FCN=   6324.309     FROM HESSE     STATUS=OK            31 CALLS      259 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.7036        14.421        .11975E-04   -1.5665    
   2  alpha         3.1807        1.4151        .95122E-02    .27576    
   3  Normalizat    1.1407        .21312        .22842E-03   -.88457    
   4  Prefactor     .77750        .25709        .33049E-03   -1.0056    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14125e-10
Minuit parameter uncertainties:
  1  14.4215
  2  1.5129
  3  0.213282
  4  0.257485
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/737570': 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) = 6324.30946183
delta logL = 1.21154831518

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  4.704e+00  1.442e+01  0.000e+00  1.000e+06 ( 1.000e-13)
350        alpha:  3.181e+00  1.513e+00  0.000e+00  5.000e+00 ( 1.000e+00)
351         beta:  8.354e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
352           Eb:  1.387e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
663    Prefactor:  7.775e-01  2.575e-01  0.000e+00  1.000e+01 ( 1.000e+00)
664        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
665        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
662   Normalization:  1.141e+00  2.133e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.53
Ra Dec: 197.363 43.085
Photon Index (Free Index): 3.18 +/- 1.51
Photon Flux (Free Index): 6.21e-08 +/- 4.77e-08
Energy Flux (Free Index): 1.26e-05 +/- 1.09e-05

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/737570/cmap_HighResolution_695520001_695779201_4FGL_J1309.4+4305_daily_bin1760.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.61e-05', comment='SUCCESS', energy_flux2='1.26e-05', dlogl='1.21e+00', photon_flux2='6.21e-08', job_status='DONE', time_completed='2023-01-19 01:10:37.834387', photon_index_error2='1.51', photon_index2='3.18', ts='0.06', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', photon_flux_upper_limit='5.11e-08', energy_flux_error2='1.09e-05', EG='1.20', time_epoch_completed='1674119437.83', return_code='0', job_id='737570', GAL2='0.78', EG2='1.14', return_code2='0', photon_flux_error2='4.77e-08', ts2='2.53', photon_index='1.77' WHERE bin_id='1760' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Jan 19 01:10:37 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 737570: <4FGL_J1309.4+4305_daily_bin1760> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin1760> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Jan 19 00:55:17 2023
Job was executed on host(s) <bullet0082>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jan 19 00:56:57 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jan 19 00:56:57 2023
Terminated at Thu Jan 19 01:10:38 2023
Results reported at Thu Jan 19 01:10:38 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin1760 197.363 43.085 695520001 695779201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1309.4+4305 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   639.49 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             273.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   821 sec.
    Turnaround time :                            921 sec.

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

