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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin1772
RA = 197.363, Dec = 43.085
tmin = 698630401, tmax = 698889601
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='633281', job_status='RUN', time_executed='2023-02-24 01:41:53.892461', time_epoch_executed='1677231713.89' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='1772'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/633281

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/633281/ft1_4FGL_J1309.4+4305_daily_bin1772.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/633281/ft2_4FGL_J1309.4+4305_daily_bin1772.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/633281/ft1_4FGL_J1309.4+4305_daily_bin1772.fits outfile=/scratch/kocevski/633281/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin1772.fits ra=197.363 dec=43.085 rad=12.0 tmin=698630401.0 tmax=698889601.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.03
user 2.86
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/633281/ft2_4FGL_J1309.4+4305_daily_bin1772.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/633281/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin1772.fits evtable="EVENTS" outfile="/scratch/kocevski/633281/ft1_filtered_4FGL_J1309.4+4305_daily_bin1772.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: 324

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/633281/ft1_filtered_4FGL_J1309.4+4305_daily_bin1772.fits" evtable="EVENTS" scfile=/scratch/kocevski/633281/ft2_4FGL_J1309.4+4305_daily_bin1772.fits sctable="SC_DATA" outfile=/scratch/kocevski/633281/ltcube_698630401_698889601_4FGL_J1309.4+4305_daily_bin1772.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/633281/ft2_4FGL_J1309.4+4305_daily_bin1772.fits
.....................!
real 12.38
user 12.07
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/633281/ft1_filtered_4FGL_J1309.4+4305_daily_bin1772.fits evtable="EVENTS" scfile=/scratch/kocevski/633281/ft2_4FGL_J1309.4+4305_daily_bin1772.fits sctable="SC_DATA" expcube=/scratch/kocevski/633281/ltcube_698630401_698889601_4FGL_J1309.4+4305_daily_bin1772.fits outfile=/scratch/kocevski/633281/expmap_698630401_698889601_4FGL_J1309.4+4305_daily_bin1772.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/633281/ltcube_698630401_698889601_4FGL_J1309.4+4305_daily_bin1772.fits
.....................!
real 189.38
user 185.04
sys 4.04

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/633281/ft1_filtered_4FGL_J1309.4+4305_daily_bin1772.fits scfile=/scratch/kocevski/633281/ft2_4FGL_J1309.4+4305_daily_bin1772.fits outfile=/scratch/kocevski/633281/cmap_698630401_698889601_4FGL_J1309.4+4305_daily_bin1772.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/633281/ft1_filtered_4FGL_J1309.4+4305_daily_bin1772.fits scfile=/scratch/kocevski/633281/ft2_4FGL_J1309.4+4305_daily_bin1772.fits outfile=/scratch/kocevski/633281/cmap_HighResolution_698630401_698889601_4FGL_J1309.4+4305_daily_bin1772.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4784       1.0000          .0000       .10000E+07
     2 'Prefactor '    .66909E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    12.622       1.0000          .0000       .10000E+07
     4 'Prefactor '    23.239       1.0000          .0000       .10000E+07
     5 'norm      '    2.0603       1.0000          .0000       .10000E+07
     6 'Prefactor '    .54401E-08   1.0000          .0000       .10000E+07
     7 'norm      '    .64393E-08   1.0000          .0000       .10000E+07
     8 'Prefactor '    .22445E-05   1.0000          .0000       .10000E+07
     9 'Prefactor '    15.258       1.0000          .0000       .10000E+07
    10 'norm      '    .18874E-08   1.0000          .0000       .10000E+07
    11 'norm      '    4.3010       1.0000          .0000       .10000E+07
    12 'norm      '    50.222       1.0000          .0000       .10000E+07
    13 'norm      '    .10236E-06   1.0000          .0000       .10000E+07
    14 'norm      '    4.5837       1.0000          .0000       .10000E+07
    15 'Prefactor '    .22638       1.0000          .0000       .10000E+07
    16 'Prefactor '    .56460E-06   1.0000          .0000       .10000E+07
    17 'Prefactor '    .16954E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    .21660E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    33.837       1.0000          .0000       .10000E+07
    20 'norm      '    1.8005       1.0000          .0000       .10000E+07
    21 'norm      '    .47189       1.0000          .0000       .10000E+07
    22 'norm      '    .21649E-08   1.0000          .0000       .10000E+07
    23 'Normalizat'    .84199       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0089       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=   3640.088     FROM MIGRAD    STATUS=CONVERGED    210 CALLS     2465 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4852        27.588        .12075E-05    .87772E-04
   2  Prefactor     .23783E-05    126.22        .10063E-04** at limit **
   3  Prefactor     12.628        2.2243        .21348E-06    .10728E-01
   4  Prefactor     23.241        1.5461       -.56773E-07   -.57585E-02
   5  norm          2.0604        2.0329       -.23764E-06    .73079E-02
   6  Prefactor      .0000        4.4762        .85258E-07** at limit **
   7  norm          .16653E-09    3.3072        .47888E-06** at limit **
   8  Prefactor     .12718E-06    39.649       -.45245E-06** at limit **
   9  Prefactor     15.253        20.535       -.26771E-06    .76480E-03
  10  norm           .0000        5.3815        .16385E-06** at limit **
  11  norm          4.3021        16.339       -.15794E-05   -.95410E-03
  12  norm          50.214        11.627       -.34063E-07   -.64096E-04
  13  norm          .11102E-09    8.2289        .27903E-06** at limit **
  14  norm          4.5819        4.8034       -.15657E-06    .11800E-02
  15  Prefactor     .22705        35.781        .27250E-05** at limit **
  16  Prefactor     .55511E-10    24.525       -.15534E-05** at limit **
  17  Prefactor     .47077E-05    109.04       -.78863E-05** at limit **
  18  Prefactor     .68689E-06    341.03       -.21670E-05** at limit **
  19  Prefactor     33.792        14.016        .13090E-05    .93538E-01
  20  norm          1.8007        3.1287       -.57028E-07   -.13955E-03
  21  norm          .47239        1.0424       -.70209E-07    .28826E-03
  22  norm          .16653E-09    5.2381       -.49709E-06** at limit **
  23  Normalizat    .84170        .24142       -.18172E-05   -.11629E-03
  24  Prefactor     1.0090        .29816        .64780E-05   -.10293E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.48522
  Prefactor  = 2.37826e-06
  Prefactor  = 12.6276
  Prefactor  = 23.2409
  norm       = 2.06041
  Prefactor  = 0
  norm       = 1.66533e-10
  Prefactor  = 1.27176e-07
  Prefactor  = 15.253
  norm       = 0
  norm       = 4.30212
  norm       = 50.2137
  norm       = 1.11022e-10
  norm       = 4.58192
  Prefactor  = 0.227051
  Prefactor  = 5.55112e-11
  Prefactor  = 4.70773e-06
  Prefactor  = 6.86895e-07
  Prefactor  = 33.792
  norm       = 1.80069
  norm       = 0.472391
  norm       = 1.66533e-10
  Normalizat = 0.841698
  Prefactor  = 1.00902
 **********
 **   18 **HESSE 
 **********

 FCN=   3640.088     FROM HESSE     STATUS=OK           451 CALLS     2916 TOTAL
                     EDM=   .42E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4852        28.184        .64916E-03   -1.5676    
   2  Prefactor     .23783E-05    132.15        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     12.628        25.598        .28170E-03   -1.5637    
   4  Prefactor     23.241        45.496        .20749E-03   -1.5612    
   5  norm          2.0604        2.0574        .71966E-03   -1.5679    
   6  Prefactor      .0000        4.4695        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .16653E-09    3.3165        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .12718E-06    39.984        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     15.253        20.713        .25615E-03   -1.5630    
  10  norm           .0000        5.3663        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.3021        16.365        .48553E-03   -1.5666    
  12  norm          50.214        11.694        .14112E-03   -1.5566    
  13  norm          .11102E-09    8.2223        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.5819        4.8180        .46992E-03   -1.5665    
  15  Prefactor     .22705        3.7604        .74941E-02   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .55511E-10    24.536        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .47077E-05    119.95        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .68689E-06    343.11        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     33.792        36.412        .17193E-03   -1.5592    
  20  norm          1.8007        3.1588        .77876E-03   -1.5681    
  21  norm          .47239        1.0738        .81589E-03   -1.5694    
  22  norm          .16653E-09    5.2249        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .84170        .21002        .44156E-01   -.98540    
  24  Prefactor     1.0090        .25776        .43499E-01   -.92430    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.19829e-07
Minuit parameter uncertainties:
  1  16.7385
  2  0.0354566
  3  25.5978
  4  45.4967
  5  2.05737
  6  1.29366e-05
  7  4.83212e-05
  8  0.00450987
  9  20.7134
  10  1.59946e-05
  11  16.3651
  12  11.6935
  13  5.70643e-05
  14  4.81804
  15  1.84802
  16  7.6787e-05
  17  0.0475274
  18  0.0307053
  19  36.4126
  20  3.15875
  21  1.07381
  22  6.14042e-05
  23  0.210226
  24  0.258076
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  4.302e+00  1.637e+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:  1.009e+00  2.581e-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:  8.417e-01  2.102e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/633281/likelihoodResults_698630401_698889601_4FGL_J1309.4+4305_daily_bin1772.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) = 3639.74385702
delta logL = 0.344298967286

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3639.72821703
delta logL = 0.359938957344

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.9988       1.0000          .0000       .10000E+07
     2 'alpha     '    2.9393       1.0000          .0000       5.0000    
     3 'Normalizat'    .81772       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0166       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3639.728     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      269 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.9971        14.620        .14846E-04   -.43218E-02
   2  alpha         2.9401        1.7892        .13420E-01   -.46327E-04
   3  Normalizat    .81719        .24131        .23944E-03   -.19651E-03
   4  Prefactor     1.0171        .29901        .27053E-03   -.29718E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.99711
  alpha      = 2.94009
  Normalizat = 0.817189
  Prefactor  = 1.01715
 **********
 **   18 **HESSE 
 **********

 FCN=   3639.728     FROM HESSE     STATUS=OK            25 CALLS      294 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.9971        10.125        .59382E-06   -1.5668    
   2  alpha         2.9401        1.3141        .53678E-03    .17696    
   3  Normalizat    .81719        .23941        .47888E-04   -.99434    
   4  Prefactor     1.0171        .29697        .54106E-04   -.92160    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.92527e-10
Minuit parameter uncertainties:
  1  10.1255
  2  1.38621
  3  0.239721
  4  0.297448
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/633281': 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) = 3639.72821443
delta logL = 0.359941553389

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  3.997e+00  1.013e+01  0.000e+00  1.000e+06 ( 1.000e-13)
350        alpha:  2.940e+00  1.386e+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:  1.017e+00  2.974e-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:  8.172e-01  2.397e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.08
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/633281/cmap_HighResolution_698630401_698889601_4FGL_J1309.4+4305_daily_bin1772.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.41e-05', job_status='DONE', photon_flux_upper_limit='5.84e-08', time_completed='2023-02-24 01:50:42.410495', job_id='633281', GAL2='1.02', fit_tolerance='1e-08', EG2='0.82', EG='0.84', time_epoch_completed='1677232242.41', return_code2='0', ts='0.08', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='3.60e-01', ts2='0.81', photon_index_error='0.00', photon_index='1.77' WHERE bin_id='1772' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Feb 24 01:50:42 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 633281: <4FGL_J1309.4+4305_daily_bin1772> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin1772> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Feb 24 01:40:14 2023
Job was executed on host(s) <bullet0242>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Feb 24 01:40:15 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Feb 24 01:40:15 2023
Terminated at Fri Feb 24 01:50:43 2023
Results reported at Fri Feb 24 01:50:43 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin1772 197.363 43.085 698630401 698889601 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 :                                   530.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             326.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   627 sec.
    Turnaround time :                            629 sec.

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

