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


Performing analysis on: 4FGL_J1312.6+4828_daily_bin1776
RA = 198.169, Dec = 48.4701
tmin = 699667201, tmax = 699926401
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='833829', job_status='RUN', time_executed='2023-03-08 00:40:30.914542', time_epoch_executed='1678264830.91' WHERE source_name='4FGL J1312.6+4828' and cadence='daily' and bin_id='1776'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/833829

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/833829/ft1_4FGL_J1312.6+4828_daily_bin1776.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/833829/ft2_4FGL_J1312.6+4828_daily_bin1776.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/833829/ft1_4FGL_J1312.6+4828_daily_bin1776.fits outfile=/scratch/kocevski/833829/ft1_filteredMKT_4FGL_J1312.6+4828_daily_bin1776.fits ra=198.169 dec=48.4701 rad=12.0 tmin=699667201.0 tmax=699926401.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.89
user 3.65
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/833829/ft2_4FGL_J1312.6+4828_daily_bin1776.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/833829/ft1_filteredMKT_4FGL_J1312.6+4828_daily_bin1776.fits evtable="EVENTS" outfile="/scratch/kocevski/833829/ft1_filtered_4FGL_J1312.6+4828_daily_bin1776.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: 569

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/833829/ft1_filtered_4FGL_J1312.6+4828_daily_bin1776.fits" evtable="EVENTS" scfile=/scratch/kocevski/833829/ft2_4FGL_J1312.6+4828_daily_bin1776.fits sctable="SC_DATA" outfile=/scratch/kocevski/833829/ltcube_699667201_699926401_4FGL_J1312.6+4828_daily_bin1776.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/833829/ft2_4FGL_J1312.6+4828_daily_bin1776.fits
.....................!
real 12.29
user 11.93
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/833829/ft1_filtered_4FGL_J1312.6+4828_daily_bin1776.fits evtable="EVENTS" scfile=/scratch/kocevski/833829/ft2_4FGL_J1312.6+4828_daily_bin1776.fits sctable="SC_DATA" expcube=/scratch/kocevski/833829/ltcube_699667201_699926401_4FGL_J1312.6+4828_daily_bin1776.fits outfile=/scratch/kocevski/833829/expmap_699667201_699926401_4FGL_J1312.6+4828_daily_bin1776.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/833829/ltcube_699667201_699926401_4FGL_J1312.6+4828_daily_bin1776.fits
.....................!
real 190.05
user 185.21
sys 4.45

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/833829/ft1_filtered_4FGL_J1312.6+4828_daily_bin1776.fits scfile=/scratch/kocevski/833829/ft2_4FGL_J1312.6+4828_daily_bin1776.fits outfile=/scratch/kocevski/833829/cmap_699667201_699926401_4FGL_J1312.6+4828_daily_bin1776.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.56
user 0.37
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/833829/ft1_filtered_4FGL_J1312.6+4828_daily_bin1776.fits scfile=/scratch/kocevski/833829/ft2_4FGL_J1312.6+4828_daily_bin1776.fits outfile=/scratch/kocevski/833829/cmap_HighResolution_699667201_699926401_4FGL_J1312.6+4828_daily_bin1776.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.54
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/833829/ft1_filtered_4FGL_J1312.6+4828_daily_bin1776.fits evtable="EVENTS" scfile=/scratch/kocevski/833829/ft2_4FGL_J1312.6+4828_daily_bin1776.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/833829/Model_4FGL_J1312.6+4828_daily_bin1776.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/833829/ft1_filtered_4FGL_J1312.6+4828_daily_bin1776.fits.....................!
real 51.71
user 50.30
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/833829/ft1_filtered_4FGL_J1312.6+4828_daily_bin1776.fits', '/scratch/kocevski/833829/ft2_4FGL_J1312.6+4828_daily_bin1776.fits', expMap='/scratch/kocevski/833829/expmap_699667201_699926401_4FGL_J1312.6+4828_daily_bin1776.fits', expCube='/scratch/kocevski/833829/ltcube_699667201_699926401_4FGL_J1312.6+4828_daily_bin1776.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/833829/Model_4FGL_J1312.6+4828_daily_bin1776.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/833829/ft1_filtered_4FGL_J1312.6+4828_daily_bin1776.fits
Spacecraft file(s): /scratch/kocevski/833829/ft2_4FGL_J1312.6+4828_daily_bin1776.fits
Exposure map: /scratch/kocevski/833829/expmap_699667201_699926401_4FGL_J1312.6+4828_daily_bin1776.fits
Exposure cube: /scratch/kocevski/833829/ltcube_699667201_699926401_4FGL_J1312.6+4828_daily_bin1776.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/833829/Model_4FGL_J1312.6+4828_daily_bin1776.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) = 6287.46299017

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.0111       1.0000          .0000       .10000E+07
     2 'norm      '    .13989E-07   1.0000          .0000       .10000E+07
     3 'Prefactor '    .18905E-01   1.0000          .0000       .10000E+07
     4 'Prefactor '    .32196E-08   1.0000          .0000       .10000E+07
     5 'norm      '    1.7789       1.0000          .0000       .10000E+07
     6 'Prefactor '    .14916E-06   1.0000          .0000       .10000E+07
     7 'norm      '    1.6951       1.0000          .0000       .10000E+07
     8 'Prefactor '    .13733E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .30060E-01   1.0000          .0000       .10000E+07
    10 'norm      '    .33192E-02   1.0000          .0000       .10000E+07
    11 'norm      '    .98220E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    93.349       1.0000          .0000       .10000E+07
    13 'Prefactor '    1.1143       1.0000          .0000       .10000E+07
    14 'norm      '    .77707E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    68.543       1.0000          .0000       .10000E+07
    16 'norm      '    .41063       1.0000          .0000       .10000E+07
    17 'norm      '    .97017E-04   1.0000          .0000       .10000E+07
    18 'norm      '    36.079       1.0000          .0000       .10000E+07
    19 'Prefactor '    .32901E-01   1.0000          .0000       .10000E+07
    20 'Prefactor '    12.802       1.0000          .0000       .10000E+07
    21 'Prefactor '    .29859E-06   1.0000          .0000       .10000E+07
    22 'Prefactor '    .38303E-08   1.0000          .0000       .10000E+07
    23 'Prefactor '    2.3115       1.0000          .0000       .10000E+07
    24 'Normalizat'    .77624       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2748       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=   6287.187     FROM MIGRAD    STATUS=CONVERGED    185 CALLS     2185 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.0191        2.2056        .10394E-07    .32345E-02
   2  norm          .55511E-10    3.2133        .48515E-07** at limit **
   3  Prefactor     .12212E-08    28.486       -.21529E-06** at limit **
   4  Prefactor      .0000        2.4996       -.43528E-07** at limit **
   5  norm          1.7794        1.5663       -.17273E-07   -.34220E-02
   6  Prefactor     .78065E-06    9.8100       -.16999E-07** at limit **
   7  norm          1.6967        1.4835       -.15922E-07   -.33571E-02
   8  Prefactor     .12212E-08    7.9149       -.14718E-06** at limit **
   9  Prefactor      .0000        35.223        .11360E-08** at limit **
  10  norm          .10408E-06    17.585        .35996E-07** at limit **
  11  norm          .19060E-05    8.0040        .18051E-07** at limit **
  12  Prefactor     95.126        34.692        .13930E-06    .54838E-02
  13  Prefactor     .69537E-04    160.88       -.98714E-06** at limit **
  14  norm          .52880E-06    8.5894       -.47703E-07** at limit **
  15  Prefactor     73.827        56.173        .95508E-07   -.19761E-01
  16  norm          .41977        1.3981       -.12157E-07    .93877E-03
  17  norm          .33307E-09    3.3762       -.95554E-07** at limit **
  18  norm          36.161        7.8713       -.10020E-07   -.15093E-01
  19  Prefactor      .0000        32.382       -.34999E-07** at limit **
  20  Prefactor     12.609        19.626       -.13147E-06    .63025E-01
  21  Prefactor      .0000        2.8262       -.19269E-07** at limit **
  22  Prefactor     .33684E-06    14.172       -.71943E-07** at limit **
  23  Prefactor     2.3068        3.0339        .50355E-07    .54918E-02
  24  Normalizat    .77167        .18806       -.17051E-06    .44941E-03
  25  Prefactor     1.2777        .23371        .12612E-05    .46271E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.01912
  norm       = 5.55112e-11
  Prefactor  = 1.22125e-09
  Prefactor  = 0
  norm       = 1.77943
  Prefactor  = 7.80653e-07
  norm       = 1.69668
  Prefactor  = 1.22125e-09
  Prefactor  = 0
  norm       = 1.04083e-07
  norm       = 1.90598e-06
  Prefactor  = 95.1256
  Prefactor  = 6.95366e-05
  norm       = 5.28799e-07
  Prefactor  = 73.8266
  norm       = 0.419771
  norm       = 3.33067e-10
  norm       = 36.1609
  Prefactor  = 0
  Prefactor  = 12.6093
  Prefactor  = 0
  Prefactor  = 3.36842e-07
  Prefactor  = 2.30683
  Normalizat = 0.771673
  Prefactor  = 1.27771
 **********
 **   18 **HESSE 
 **********

 FCN=   6287.187     FROM HESSE     STATUS=OK           497 CALLS     2682 TOTAL
                     EDM=   .51E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.0191        2.2117        .58464E-03   -1.5673    
   2  norm          .55511E-10    3.2034        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .12212E-08    10.079        .81770E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        2.5002        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.7794        1.5591        .78445E-03   -1.5681    
   6  Prefactor     .78065E-06    11.276        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.6967        1.4992        .80795E-03   -1.5682    
   8  Prefactor     .12212E-08    7.8843        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        13.121        .95771E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10408E-06    17.932        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .19060E-05    11.104        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     95.126        50.558        .10351E-03   -1.5513    
  13  Prefactor     .69537E-04    52.650        .13201E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .52880E-06    1.9483        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     73.827        56.793        .12079E-03   -1.5536    
  16  norm          .41977        1.4167        .88265E-03   -1.5695    
  17  norm          .33307E-09    3.3542        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          36.161        21.633        .16650E-03   -1.5588    
  19  Prefactor      .0000        31.811        .16301E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     12.609        26.057        .27970E-03   -1.5637    
  21  Prefactor      .0000        2.8181        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .33684E-06    14.962        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     2.3068        3.0519        .67454E-03   -1.5678    
  24  Normalizat    .77167        .16008        .43299E-01   -1.0113    
  25  Prefactor     1.2777        .19545        .56585E-01   -.83972    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.10351e-07
Minuit parameter uncertainties:
  1  2.21173
  2  2.27374e-05
  3  0.000221331
  4  6.31126e-06
  5  1.55907
  6  0.00593397
  7  1.49916
  8  0.000196027
  9  5.01945e-06
  10  0.0027321
  11  0.00920101
  12  50.558
  13  0.121015
  14  0.00203004
  15  56.7938
  16  1.41668
  17  6.71643e-05
  18  21.6335
  19  3.79888e-05
  20  26.0571
  21  7.61545e-07
  22  0.00448991
  23  3.0519
  24  0.160174
  25  0.195566
Done.

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

Extracting fit parameters...

4FGL J1312.6+4828
   Spectrum: LogParabola
360         norm:  1.906e-06  9.201e-03  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:  1.278e+00  1.956e-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:  7.717e-01  1.602e-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.90e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.54e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/833829/likelihoodResults_699667201_699926401_4FGL_J1312.6+4828_daily_bin1776.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) = 6287.18688176
delta logL = -3.91988442061e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6287.18684312
delta logL = -5.62997229281e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .29260E-04   1.0000          .0000       .10000E+07
     2 'alpha     '    1.7808       1.0000          .0000       5.0000    
     3 'Normalizat'    .77170       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2776       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=   6287.187     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      256 TOTAL
                     EDM=   .69E-13    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .22204E-09    .26671        .42118E-03** at limit **
   2  alpha         2.1173        3.4813        .43543        .67884E-10
   3  Normalizat    .77167        .61978E-03    .43240E-01   -.70906E-05
   4  Prefactor     1.2777        .79807E-03    .56585E-01   -.18742E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.22045e-10
  alpha      = 2.11734
  Normalizat = 0.771672
  Prefactor  = 1.27771
 **********
 **   18 **HESSE 
 **********

 FCN=   6287.187     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      285 TOTAL
                     EDM=   .28E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .22204E-09    7.0874        .16847E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1173        3.7105        .51000       -.15367    
   3  Normalizat    .77167        .31255E-02    .24467E-03   -1.0113    
   4  Prefactor     1.2777        .40247E-02    .25021E-03   -.83972    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.84716e-12
Minuit parameter uncertainties:
  1  8.34265e-05
  2  89486.6
  3  0.0031255
  4  0.00402474
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/833829': 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) = 6287.18684248
delta logL = 8.20691639092e-08

Extracting fit parameters...

4FGL J1312.6+4828
   Spectrum: LogParabola
360         norm:  2.220e-10  8.343e-05  0.000e+00  1.000e+06 ( 1.000e-12)
361        alpha:  2.117e+00  8.949e+04  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:  1.278e+00  4.025e-03  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:  7.717e-01  3.125e-03  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/833829/cmap_HighResolution_699667201_699926401_4FGL_J1312.6+4828_daily_bin1776.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.54e-05', job_status='DONE', photon_flux_upper_limit='4.90e-08', time_completed='2023-03-08 00:52:07.931760', job_id='833829', GAL2='1.28', fit_tolerance='1e-08', EG2='0.77', EG='0.77', time_epoch_completed='1678265527.93', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.28', dlogl='8.21e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.07' WHERE bin_id='1776' AND source_name='4FGL J1312.6+4828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Mar  8 00:52:07 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0253>
Subject: Job 833829: <4FGL_J1312.6+4828_daily_bin1776> in cluster <slac> Done

Job <4FGL_J1312.6+4828_daily_bin1776> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Mar  8 00:40:19 2023
Job was executed on host(s) <bullet0253>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Mar  8 00:40:20 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Mar  8 00:40:20 2023
Terminated at Wed Mar  8 00:52:08 2023
Results reported at Wed Mar  8 00:52:08 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1312.6+4828_daily_bin1776 198.169 48.4701 699667201 699926401 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 :                                   698.44 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             351.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   708 sec.
    Turnaround time :                            709 sec.

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

