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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin1752
RA = 197.363, Dec = 43.085
tmin = 693446401, tmax = 693705601
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='263415', job_status='RUN', time_executed='2022-12-26 00:59:36.256428', time_epoch_executed='1672045176.26' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='1752'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/263415

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/263415/ft1_4FGL_J1309.4+4305_daily_bin1752.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/263415/ft2_4FGL_J1309.4+4305_daily_bin1752.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/263415/ft1_4FGL_J1309.4+4305_daily_bin1752.fits outfile=/scratch/kocevski/263415/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin1752.fits ra=197.363 dec=43.085 rad=12.0 tmin=693446401.0 tmax=693705601.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.57
user 3.29
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/263415/ft2_4FGL_J1309.4+4305_daily_bin1752.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/263415/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin1752.fits evtable="EVENTS" outfile="/scratch/kocevski/263415/ft1_filtered_4FGL_J1309.4+4305_daily_bin1752.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.55
user 0.35
sys 0.16

Number of photons that the gtmktime cut: 477

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/263415/ft1_filtered_4FGL_J1309.4+4305_daily_bin1752.fits" evtable="EVENTS" scfile=/scratch/kocevski/263415/ft2_4FGL_J1309.4+4305_daily_bin1752.fits sctable="SC_DATA" outfile=/scratch/kocevski/263415/ltcube_693446401_693705601_4FGL_J1309.4+4305_daily_bin1752.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/263415/ft2_4FGL_J1309.4+4305_daily_bin1752.fits
.....................!
real 16.30
user 15.85
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/263415/ft1_filtered_4FGL_J1309.4+4305_daily_bin1752.fits evtable="EVENTS" scfile=/scratch/kocevski/263415/ft2_4FGL_J1309.4+4305_daily_bin1752.fits sctable="SC_DATA" expcube=/scratch/kocevski/263415/ltcube_693446401_693705601_4FGL_J1309.4+4305_daily_bin1752.fits outfile=/scratch/kocevski/263415/expmap_693446401_693705601_4FGL_J1309.4+4305_daily_bin1752.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/263415/ltcube_693446401_693705601_4FGL_J1309.4+4305_daily_bin1752.fits
.....................!
real 193.06
user 187.27
sys 5.23

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/263415/ft1_filtered_4FGL_J1309.4+4305_daily_bin1752.fits scfile=/scratch/kocevski/263415/ft2_4FGL_J1309.4+4305_daily_bin1752.fits outfile=/scratch/kocevski/263415/cmap_693446401_693705601_4FGL_J1309.4+4305_daily_bin1752.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.91
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/263415/ft1_filtered_4FGL_J1309.4+4305_daily_bin1752.fits scfile=/scratch/kocevski/263415/ft2_4FGL_J1309.4+4305_daily_bin1752.fits outfile=/scratch/kocevski/263415/cmap_HighResolution_693446401_693705601_4FGL_J1309.4+4305_daily_bin1752.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.59
user 0.39
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/263415/ft1_filtered_4FGL_J1309.4+4305_daily_bin1752.fits', '/scratch/kocevski/263415/ft2_4FGL_J1309.4+4305_daily_bin1752.fits', expMap='/scratch/kocevski/263415/expmap_693446401_693705601_4FGL_J1309.4+4305_daily_bin1752.fits', expCube='/scratch/kocevski/263415/ltcube_693446401_693705601_4FGL_J1309.4+4305_daily_bin1752.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/263415/Model_4FGL_J1309.4+4305_daily_bin1752.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/263415/ft1_filtered_4FGL_J1309.4+4305_daily_bin1752.fits
Spacecraft file(s): /scratch/kocevski/263415/ft2_4FGL_J1309.4+4305_daily_bin1752.fits
Exposure map: /scratch/kocevski/263415/expmap_693446401_693705601_4FGL_J1309.4+4305_daily_bin1752.fits
Exposure cube: /scratch/kocevski/263415/ltcube_693446401_693705601_4FGL_J1309.4+4305_daily_bin1752.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/263415/Model_4FGL_J1309.4+4305_daily_bin1752.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) = 5136.4296664

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.3659       1.0000          .0000       .10000E+07
     2 'Prefactor '    3.7451       1.0000          .0000       .10000E+07
     3 'Prefactor '    7.0865       1.0000          .0000       .10000E+07
     4 'Prefactor '    .13063E-02   1.0000          .0000       .10000E+07
     5 'norm      '    6.4373       1.0000          .0000       .10000E+07
     6 'Prefactor '    .67727E-04   1.0000          .0000       .10000E+07
     7 'norm      '    .23634E-05   1.0000          .0000       .10000E+07
     8 'Prefactor '    42.484       1.0000          .0000       .10000E+07
     9 'Prefactor '    .68044E-04   1.0000          .0000       .10000E+07
    10 'norm      '    .17685E-01   1.0000          .0000       .10000E+07
    11 'norm      '    2.9740       1.0000          .0000       .10000E+07
    12 'norm      '    31.036       1.0000          .0000       .10000E+07
    13 'norm      '    .45995E-04   1.0000          .0000       .10000E+07
    14 'norm      '    .81778E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    3.8309       1.0000          .0000       .10000E+07
    16 'Prefactor '    .36222E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    .40952E-04   1.0000          .0000       .10000E+07
    18 'Prefactor '    70.386       1.0000          .0000       .10000E+07
    19 'Prefactor '    .36532E-01   1.0000          .0000       .10000E+07
    20 'norm      '    1.3836       1.0000          .0000       .10000E+07
    21 'norm      '    .69540       1.0000          .0000       .10000E+07
    22 'norm      '    .12212E-08   1.0000          .0000       .10000E+07
    23 'Normalizat'    .92647       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .78127       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=   5136.393     FROM MIGRAD    STATUS=CONVERGED    171 CALLS     2011 TOTAL
                     EDM=   .79E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.4014        6.8855       -.37194E-06   -.40855E-02
   2  Prefactor     3.6428        10.884       -.19975E-08    .13877E-01
   3  Prefactor     7.1561        2.9132       -.56618E-07   -.31971E-02
   4  Prefactor      .0000        7.1049       -.64507E-06** at limit **
   5  norm          6.4369        2.6147       -.27656E-07    .82742E-03
   6  Prefactor      .0000        2.1338        .53272E-06** at limit **
   7  norm           .0000        1.8248        .85588E-07** at limit **
   8  Prefactor     42.726        26.605       -.82043E-06    .20716E-01
   9  Prefactor     .22760E-08    11.101       -.26928E-05** at limit **
  10  norm          .55511E-10    26.299       -.20898E-06** at limit **
  11  norm          3.0055        10.542       -.32055E-05   -.58837E-03
  12  norm          31.007        6.8481        .14118E-06   -.31137E-02
  13  norm           .0000        15.854       -.36048E-06** at limit **
  14  norm           .0000        4.7337       -.46165E-06** at limit **
  15  Prefactor     3.8519        4.0904       -.56648E-07   -.60959E-03
  16  Prefactor      .0000        5.8218        .45831E-06** at limit **
  17  Prefactor     .31641E-08    12.120        .33351E-05** at limit **
  18  Prefactor     69.443        61.978       -.91132E-06    .67016E-03
  19  Prefactor     .11546E-07    .95658        .31614E-06** at limit **
  20  norm          1.3836        1.9953        .11077E-06   -.16880E-03
  21  norm          .69543        .68795        .17066E-09    .19708E-02
  22  norm          .55511E-10    8.2503        .52910E-06** at limit **
  23  Normalizat    .92644        .18248        .34064E-05    .12805E-04
  24  Prefactor     .78134        .22439       -.14259E-05    .21499E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.40136
  Prefactor  = 3.64276
  Prefactor  = 7.15611
  Prefactor  = 0
  norm       = 6.4369
  Prefactor  = 0
  norm       = 0
  Prefactor  = 42.7263
  Prefactor  = 2.27596e-09
  norm       = 5.55112e-11
  norm       = 3.00553
  norm       = 31.0068
  norm       = 0
  norm       = 0
  Prefactor  = 3.85191
  Prefactor  = 0
  Prefactor  = 3.16414e-09
  Prefactor  = 69.4434
  Prefactor  = 1.15463e-08
  norm       = 1.3836
  norm       = 0.695433
  norm       = 5.55112e-11
  Normalizat = 0.926435
  Prefactor  = 0.781344
 **********
 **   18 **HESSE 
 **********

 FCN=   5136.393     FROM HESSE     STATUS=OK           459 CALLS     2470 TOTAL
                     EDM=   .19E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.4014        9.2838        .55133E-03   -1.5671    
   2  Prefactor     3.6428        56.262        .52149E-03   -1.5670    
   3  Prefactor     7.1561        18.578        .37660E-03   -1.5654    
   4  Prefactor      .0000        7.1016        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.4369        2.6160        .39534E-03   -1.5657    
   6  Prefactor      .0000        2.1317        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm           .0000        1.8223        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     42.726        29.538        .15343E-03   -1.5577    
   9  Prefactor     .22760E-08    11.126        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .55511E-10    2.9740        .71590E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.0055        10.561        .58850E-03   -1.5673    
  12  norm          31.007        6.8965        .17953E-03   -1.5597    
  13  norm           .0000        15.831        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        4.6540        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.8519        4.1793        .51540E-03   -1.5669    
  16  Prefactor      .0000        5.8225        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .31641E-08    12.173        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     69.443        62.163        .11920E-03   -1.5541    
  19  Prefactor     .11546E-07    16.605        .10308E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.3836        2.0258        .92455E-03   -1.5684    
  21  norm          .69543        .68054        .61082E-03   -1.5691    
  22  norm          .55511E-10    8.2467        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .92644        .15675        .45239E-01   -.95537    
  24  Prefactor     .78134        .18931        .63321E-01   -1.0042    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.86549e-07
Minuit parameter uncertainties:
  1  9.28385
  2  28.6323
  3  18.5786
  4  1.16901e-05
  5  2.61603
  6  6.19873e-06
  7  2.51799e-06
  8  29.5382
  9  0.000318698
  10  1.90366e-05
  11  10.5614
  12  6.89653
  13  1.86434e-05
  14  1.84881e-05
  15  4.1793
  16  1.29676e-05
  17  0.00039095
  18  62.1637
  19  0.000875548
  20  2.02581
  21  0.680538
  22  4.31639e-05
  23  0.156823
  24  0.189467
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  3.006e+00  1.056e+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.813e-01  1.895e-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:  9.264e-01  1.568e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/263415/likelihoodResults_693446401_693705601_4FGL_J1309.4+4305_daily_bin1752.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) = 5136.30376104
delta logL = 0.0895027478546

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5136.30141882
delta logL = 0.0918449600631

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.2806       1.0000          .0000       .10000E+07
     2 'alpha     '    2.3701       1.0000          .0000       5.0000    
     3 'Normalizat'    .92335       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77951       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=   5136.301     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      209 TOTAL
                     EDM=   .64E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.2841        347.51        .55880E-03    .25719E-02
   2  alpha         2.3732        2.7538        .41222        .27581E-04
   3  Normalizat    .92329        .48322E-01    .45199E-01    .60271E-05
   4  Prefactor     .77995        .52770E-01    .63360E-01    .12925E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.28406
  alpha      = 2.37325
  Normalizat = 0.923289
  Prefactor  = 0.779945
 **********
 **   18 **HESSE 
 **********

 FCN=   5136.301     FROM HESSE     STATUS=OK            33 CALLS      242 TOTAL
                     EDM=   .83E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.2841        9.1636        .22352E-04   -1.5672    
   2  alpha         2.3732        1.4179        .23562E-01   -.50724E-01
   3  Normalizat    .92329        .17878        .20855E-03   -.95647    
   4  Prefactor     .77995        .22321        .28026E-03   -1.0047    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.31314e-12
Minuit parameter uncertainties:
  1  9.16363
  2  1.50789
  3  0.178898
  4  0.223464
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/263415': 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) = 5136.30140697
delta logL = 0.091856810518

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  3.284e+00  9.164e+00  0.000e+00  1.000e+06 ( 1.000e-13)
350        alpha:  2.373e+00  1.508e+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.799e-01  2.235e-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:  9.233e-01  1.789e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.10
Ra Dec: 197.363 43.085

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/263415/cmap_HighResolution_693446401_693705601_4FGL_J1309.4+4305_daily_bin1752.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.32e-05', job_status='DONE', photon_flux_upper_limit='3.94e-08', time_completed='2022-12-26 01:09:48.943613', job_id='263415', GAL2='0.78', fit_tolerance='1e-08', EG2='0.92', EG='0.93', time_epoch_completed='1672045788.94', return_code2='0', ts='0.10', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='9.19e-02', ts2='0.29', photon_index_error='0.00', photon_index='1.77' WHERE bin_id='1752' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Dec 26 01:09:48 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 263415: <4FGL_J1309.4+4305_daily_bin1752> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin1752> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Dec 26 00:55:18 2022
Job was executed on host(s) <bullet0243>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Dec 26 00:55:56 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Dec 26 00:55:56 2022
Terminated at Mon Dec 26 01:09:49 2022
Results reported at Mon Dec 26 01:09:49 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin1752 197.363 43.085 693446401 693705601 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 :                                   613.43 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             272.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   833 sec.
    Turnaround time :                            871 sec.

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

