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 25 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_J1312.6+4828_daily_bin1752
RA = 198.169, Dec = 48.4701
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='263422', job_status='RUN', time_executed='2022-12-26 00:56:33.174970', time_epoch_executed='1672044993.18' WHERE source_name='4FGL J1312.6+4828' and cadence='daily' and bin_id='1752'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/263422

Creating custom pfile directory:
/scratch/kocevski/263422/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/263422/ft1_4FGL_J1312.6+4828_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/263422/ft2_4FGL_J1312.6+4828_daily_bin1752.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/263422/ft1_4FGL_J1312.6+4828_daily_bin1752.fits outfile=/scratch/kocevski/263422/ft1_filteredMKT_4FGL_J1312.6+4828_daily_bin1752.fits ra=198.169 dec=48.4701 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.47
user 3.23
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/263422/ft2_4FGL_J1312.6+4828_daily_bin1752.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/263422/ft2_4FGL_J1312.6+4828_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/263422/ft1_filteredMKT_4FGL_J1312.6+4828_daily_bin1752.fits evtable="EVENTS" outfile="/scratch/kocevski/263422/ft1_filtered_4FGL_J1312.6+4828_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.51
user 0.33
sys 0.17

Number of photons that the gtmktime cut: 451

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/263422/ft1_filtered_4FGL_J1312.6+4828_daily_bin1752.fits" evtable="EVENTS" scfile=/scratch/kocevski/263422/ft2_4FGL_J1312.6+4828_daily_bin1752.fits sctable="SC_DATA" outfile=/scratch/kocevski/263422/ltcube_693446401_693705601_4FGL_J1312.6+4828_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/263422/ft2_4FGL_J1312.6+4828_daily_bin1752.fits
.....................!
real 14.01
user 13.63
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/263422/ft1_filtered_4FGL_J1312.6+4828_daily_bin1752.fits evtable="EVENTS" scfile=/scratch/kocevski/263422/ft2_4FGL_J1312.6+4828_daily_bin1752.fits sctable="SC_DATA" expcube=/scratch/kocevski/263422/ltcube_693446401_693705601_4FGL_J1312.6+4828_daily_bin1752.fits outfile=/scratch/kocevski/263422/expmap_693446401_693705601_4FGL_J1312.6+4828_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/263422/ltcube_693446401_693705601_4FGL_J1312.6+4828_daily_bin1752.fits
.....................!
real 192.94
user 186.97
sys 5.49

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

Setting source of interest to:
4FGL J1312.6+4828 @ 198.169 48.4701

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/263422/ft1_filtered_4FGL_J1312.6+4828_daily_bin1752.fits scfile=/scratch/kocevski/263422/ft2_4FGL_J1312.6+4828_daily_bin1752.fits outfile=/scratch/kocevski/263422/cmap_693446401_693705601_4FGL_J1312.6+4828_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=198.169 yref=48.4701 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/263422/ft1_filtered_4FGL_J1312.6+4828_daily_bin1752.fits scfile=/scratch/kocevski/263422/ft2_4FGL_J1312.6+4828_daily_bin1752.fits outfile=/scratch/kocevski/263422/cmap_HighResolution_693446401_693705601_4FGL_J1312.6+4828_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=198.169 yref=48.4701 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.57
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/263422/ft1_filtered_4FGL_J1312.6+4828_daily_bin1752.fits evtable="EVENTS" scfile=/scratch/kocevski/263422/ft2_4FGL_J1312.6+4828_daily_bin1752.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/263422/Model_4FGL_J1312.6+4828_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/263422/ft1_filtered_4FGL_J1312.6+4828_daily_bin1752.fits.....................!
real 44.07
user 42.66
sys 1.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/263422/ft1_filtered_4FGL_J1312.6+4828_daily_bin1752.fits', '/scratch/kocevski/263422/ft2_4FGL_J1312.6+4828_daily_bin1752.fits', expMap='/scratch/kocevski/263422/expmap_693446401_693705601_4FGL_J1312.6+4828_daily_bin1752.fits', expCube='/scratch/kocevski/263422/ltcube_693446401_693705601_4FGL_J1312.6+4828_daily_bin1752.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/263422/Model_4FGL_J1312.6+4828_daily_bin1752.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1312.6+4828'

4FGL J1312.6+4828
   Spectrum: LogParabola
360         norm:  4.452e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
361        alpha:  2.066e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
362         beta:  6.200e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
363           Eb:  7.916e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/263422/ft1_filtered_4FGL_J1312.6+4828_daily_bin1752.fits
Spacecraft file(s): /scratch/kocevski/263422/ft2_4FGL_J1312.6+4828_daily_bin1752.fits
Exposure map: /scratch/kocevski/263422/expmap_693446401_693705601_4FGL_J1312.6+4828_daily_bin1752.fits
Exposure cube: /scratch/kocevski/263422/ltcube_693446401_693705601_4FGL_J1312.6+4828_daily_bin1752.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/263422/Model_4FGL_J1312.6+4828_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) = 4949.73897076

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .16154E-07   1.0000          .0000       .10000E+07
     2 'norm      '    3.5050       1.0000          .0000       .10000E+07
     3 'Prefactor '    4.5956       1.0000          .0000       .10000E+07
     4 'Prefactor '    .23688E-04   1.0000          .0000       .10000E+07
     5 'norm      '    7.0798       1.0000          .0000       .10000E+07
     6 'Prefactor '    5.8868       1.0000          .0000       .10000E+07
     7 'norm      '    6.3088       1.0000          .0000       .10000E+07
     8 'Prefactor '    .12302E-05   1.0000          .0000       .10000E+07
     9 'Prefactor '    .45784E-04   1.0000          .0000       .10000E+07
    10 'norm      '    2.1638       1.0000          .0000       .10000E+07
    11 'norm      '    .25288E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .46167E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .20244       1.0000          .0000       .10000E+07
    14 'norm      '    1.3128       1.0000          .0000       .10000E+07
    15 'Prefactor '    .10795E-02   1.0000          .0000       .10000E+07
    16 'norm      '    .66130       1.0000          .0000       .10000E+07
    17 'norm      '    3.1942       1.0000          .0000       .10000E+07
    18 'norm      '    .21365E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    1.0741       1.0000          .0000       .10000E+07
    20 'Prefactor '    62.232       1.0000          .0000       .10000E+07
    21 'Prefactor '    .23378E-03   1.0000          .0000       .10000E+07
    22 'Prefactor '    7.2142       1.0000          .0000       .10000E+07
    23 'Prefactor '    .15070E-03   1.0000          .0000       .10000E+07
    24 'Normalizat'    .86867       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .91322       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6780E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4949.700     FROM MIGRAD    STATUS=CONVERGED    148 CALLS     2076 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        .98962       -.45686E-07** at limit **
   2  norm          3.8396        7.0464       -.69827E-07    .73696E-02
   3  Prefactor     3.9062        10.276       -.42271E-07   -.45998E-01
   4  Prefactor     .55511E-10    3.3656       -.26915E-06** at limit **
   5  norm          7.0787        2.8201        .65562E-07    .38323E-02
   6  Prefactor     5.9852        3.8751       -.11022E-07    .35923E-01
   7  norm          6.3065        2.5854        .95080E-08    .56841E-03
   8  Prefactor     .10048E-07    5.6188       -.35306E-07** at limit **
   9  Prefactor     .18430E-07    5.8566        .33118E-07** at limit **
  10  norm          2.1544        1.9021       -.22708E-08    .12859E-01
  11  norm          .81601E-08    4.0680       -.28134E-06** at limit **
  12  Prefactor     .39024E-07    11.692       -.19652E-06** at limit **
  13  Prefactor     .12041E-05    3.1905        .29859E-07** at limit **
  14  norm          1.3143        1.9685        .11262E-06    .27611E-02
  15  Prefactor     .11091E-05    28.963       -.18388E-06** at limit **
  16  norm          .66151        .65949       -.43008E-07   -.45185E-02
  17  norm          3.1963        4.4710       -.19198E-06   -.21658E-02
  18  norm          .29976E-08    9.4901        .33870E-07** at limit **
  19  Prefactor     .15838E-03    58.210       -.22168E-06** at limit **
  20  Prefactor     62.650        36.760        .16772E-07   -.13197    
  21  Prefactor      .0000        2.4480        .28026E-07** at limit **
  22  Prefactor     7.1171        1.2328       -.33352E-09    .36385E-02
  23  Prefactor     .23315E-08    3.7965       -.26577E-06** at limit **
  24  Normalizat    .86896        .18320        .52582E-06   -.52455E-04
  25  Prefactor     .91292        .23062       -.13879E-05   -.53734E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  norm       = 3.83963
  Prefactor  = 3.90622
  Prefactor  = 5.55112e-11
  norm       = 7.07871
  Prefactor  = 5.98517
  norm       = 6.30652
  Prefactor  = 1.00475e-08
  Prefactor  = 1.84297e-08
  norm       = 2.15445
  norm       = 8.16014e-09
  Prefactor  = 3.90243e-08
  Prefactor  = 1.20409e-06
  norm       = 1.3143
  Prefactor  = 1.10911e-06
  norm       = 0.661514
  norm       = 3.19629
  norm       = 2.9976e-09
  Prefactor  = 0.000158377
  Prefactor  = 62.6496
  Prefactor  = 0
  Prefactor  = 7.11708
  Prefactor  = 2.33147e-09
  Normalizat = 0.86896
  Prefactor  = 0.912921
 **********
 **   18 **HESSE 
 **********

 FCN=   4949.700     FROM HESSE     STATUS=OK           477 CALLS     2553 TOTAL
                     EDM=   .20E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        .98650        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.8396        9.4278        .53978E-03   -1.5669    
   3  Prefactor     3.9062        52.651        .46930E-03   -1.5668    
   4  Prefactor     .55511E-10    3.3646        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          7.0787        2.8261        .37677E-03   -1.5655    
   6  Prefactor     5.9852        18.507        .41366E-03   -1.5659    
   7  norm          6.3065        2.5882        .39940E-03   -1.5658    
   8  Prefactor     .10048E-07    5.6600        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .18430E-07    5.8909        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.1544        12.453        .69991E-03   -1.5679    
  11  norm          .81601E-08    4.0464        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .39024E-07    11.772        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .12041E-05    13.373        .11732E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.3143        2.0053        .96153E-03   -1.5685    
  15  Prefactor     .11091E-05    32.641        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .66151        .65073        .63907E-03   -1.5692    
  17  norm          3.1963        4.4908        .56669E-03   -1.5672    
  18  norm          .29976E-08    9.8443        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .15838E-03    226.33        .11680E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     62.650        43.915        .12677E-03   -1.5550    
  21  Prefactor      .0000        2.4437        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     7.1171        14.827        .37321E-03   -1.5655    
  23  Prefactor     .23315E-08    3.7982        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .86896        .15893        .44500E-01   -.97560    
  25  Prefactor     .91292        .19707        .45173E-01   -.95691    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.96986e-06
Minuit parameter uncertainties:
  1  2.00839e-06
  2  9.42785
  3  28.6824
  4  2.59564e-05
  5  2.82609
  6  18.5073
  7  2.58819
  8  0.000476929
  9  0.000659403
  10  10.3596
  11  0.000363088
  12  0.00135565
  13  0.00802547
  14  2.00527
  15  0.0120339
  16  0.65073
  17  4.49085
  18  0.000344791
  19  0.378673
  20  43.9151
  21  3.32237e-06
  22  14.8268
  23  0.00018841
  24  0.15902
  25  0.197225
Done.

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

Extracting fit parameters...

4FGL J1312.6+4828
   Spectrum: LogParabola
360         norm:  8.160e-09  3.631e-04  0.000e+00  1.000e+06 ( 1.000e-12)
361        alpha:  2.066e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
362         beta:  6.200e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
363           Eb:  7.916e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
675    Prefactor:  9.129e-01  1.972e-01  0.000e+00  1.000e+01 ( 1.000e+00)
676        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
677        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
674   Normalization:  8.690e-01  1.590e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 198.169 48.470
Photon Flux Upper Limit: 4.78e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.47e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/263422/likelihoodResults_693446401_693705601_4FGL_J1312.6+4828_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): 102
logL (Free Index) = 4949.68879438
delta logL = 0.0109425637011

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4949.6595759
delta logL = 0.0401610433009

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4949.660     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      263 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .24149        10.813        .26331E-02** at limit **
   2  alpha         3.3435        3.6691        .44587        .15100E-04
   3  Normalizat    .85859        .18235E-01    .44371E-01   -.83138E-04
   4  Prefactor     .91903        .23190E-01    .45246E-01    .83856E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.241488
  alpha      = 3.34345
  Normalizat = 0.858586
  Prefactor  = 0.919032
 **********
 **   18 **HESSE 
 **********

 FCN=   4949.660     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      298 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .24149        161.45        .96696E-04   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.3435        3.3269        .41829E-01    .34413    
   3  Normalizat    .85859        .13874        .21034E-03   -.97931    
   4  Prefactor     .91903        .17169        .25782E-03   -.95479    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.75982e-10
Minuit parameter uncertainties:
  1  12.4885
  2  26.5758
  3  0.138799
  4  0.171789
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/263422': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4949.65957575
delta logL = 0.0401611970256

Extracting fit parameters...

4FGL J1312.6+4828
   Spectrum: LogParabola
360         norm:  2.415e-01  1.249e+01  0.000e+00  1.000e+06 ( 1.000e-12)
361        alpha:  3.343e+00  2.658e+01  0.000e+00  5.000e+00 ( 1.000e+00)
362         beta:  6.200e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
363           Eb:  7.916e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
675    Prefactor:  9.190e-01  1.718e-01  0.000e+00  1.000e+01 ( 1.000e+00)
676        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
677        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
674   Normalization:  8.586e-01  1.388e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 198.169 48.470

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/263422/cmap_HighResolution_693446401_693705601_4FGL_J1312.6+4828_daily_bin1752.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.47e-05', job_status='DONE', photon_flux_upper_limit='4.78e-08', time_completed='2022-12-26 01:06:48.578596', job_id='263422', GAL2='0.92', fit_tolerance='1e-08', EG2='0.86', EG='0.87', time_epoch_completed='1672045608.58', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='4.02e-02', ts2='0.09', photon_index_error='0.00', photon_index='2.07' WHERE bin_id='1752' AND source_name='4FGL J1312.6+4828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Dec 26 01:06:48 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 263422: <4FGL_J1312.6+4828_daily_bin1752> in cluster <slac> Done

Job <4FGL_J1312.6+4828_daily_bin1752> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Dec 26 00:55:19 2022
Job was executed on host(s) <bullet0036>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Dec 26 00:55:59 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:59 2022
Terminated at Mon Dec 26 01:06:49 2022
Results reported at Mon Dec 26 01:06:49 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1312.6+4828_daily_bin1752 198.169 48.4701 693446401 693705601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1312.6+4828 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   617.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             333.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   649 sec.
    Turnaround time :                            690 sec.

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

