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 22 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J1312.6+4828_daily_bin1694
RA = 198.169, Dec = 48.4701
tmin = 678412801, tmax = 678672001
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='640205', job_status='RUN', time_executed='2022-07-05 03:47:09.162760', time_epoch_executed='1657018029.16' WHERE source_name='4FGL J1312.6+4828' and cadence='daily' and bin_id='1694'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/640205

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/640205/ft1_4FGL_J1312.6+4828_daily_bin1694.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/640205/ft2_4FGL_J1312.6+4828_daily_bin1694.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/640205/ft1_4FGL_J1312.6+4828_daily_bin1694.fits outfile=/scratch/kocevski/640205/ft1_filteredMKT_4FGL_J1312.6+4828_daily_bin1694.fits ra=198.169 dec=48.4701 rad=12.0 tmin=678412801.0 tmax=678672001.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.74
user 3.45
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/640205/ft2_4FGL_J1312.6+4828_daily_bin1694.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/640205/ft1_filteredMKT_4FGL_J1312.6+4828_daily_bin1694.fits evtable="EVENTS" outfile="/scratch/kocevski/640205/ft1_filtered_4FGL_J1312.6+4828_daily_bin1694.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.52
user 0.34
sys 0.16

Number of photons that the gtmktime cut: 578

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/640205/ft1_filtered_4FGL_J1312.6+4828_daily_bin1694.fits evtable="EVENTS" scfile=/scratch/kocevski/640205/ft2_4FGL_J1312.6+4828_daily_bin1694.fits sctable="SC_DATA" expcube=/scratch/kocevski/640205/ltcube_678412801_678672001_4FGL_J1312.6+4828_daily_bin1694.fits outfile=/scratch/kocevski/640205/expmap_678412801_678672001_4FGL_J1312.6+4828_daily_bin1694.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/640205/ltcube_678412801_678672001_4FGL_J1312.6+4828_daily_bin1694.fits
.....................!
real 192.56
user 186.52
sys 5.14

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/640205/ft1_filtered_4FGL_J1312.6+4828_daily_bin1694.fits scfile=/scratch/kocevski/640205/ft2_4FGL_J1312.6+4828_daily_bin1694.fits outfile=/scratch/kocevski/640205/cmap_678412801_678672001_4FGL_J1312.6+4828_daily_bin1694.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.60
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/640205/ft1_filtered_4FGL_J1312.6+4828_daily_bin1694.fits scfile=/scratch/kocevski/640205/ft2_4FGL_J1312.6+4828_daily_bin1694.fits outfile=/scratch/kocevski/640205/cmap_HighResolution_678412801_678672001_4FGL_J1312.6+4828_daily_bin1694.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.56
user 0.40
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/640205/ft1_filtered_4FGL_J1312.6+4828_daily_bin1694.fits', '/scratch/kocevski/640205/ft2_4FGL_J1312.6+4828_daily_bin1694.fits', expMap='/scratch/kocevski/640205/expmap_678412801_678672001_4FGL_J1312.6+4828_daily_bin1694.fits', expCube='/scratch/kocevski/640205/ltcube_678412801_678672001_4FGL_J1312.6+4828_daily_bin1694.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/640205/Model_4FGL_J1312.6+4828_daily_bin1694.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  1.000e-04  1.000e+04 ( 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  0.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/640205/ft1_filtered_4FGL_J1312.6+4828_daily_bin1694.fits
Spacecraft file(s): /scratch/kocevski/640205/ft2_4FGL_J1312.6+4828_daily_bin1694.fits
Exposure map: /scratch/kocevski/640205/expmap_678412801_678672001_4FGL_J1312.6+4828_daily_bin1694.fits
Exposure cube: /scratch/kocevski/640205/ltcube_678412801_678672001_4FGL_J1312.6+4828_daily_bin1694.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/640205/Model_4FGL_J1312.6+4828_daily_bin1694.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) = 6301.73352579

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1309       1.0000         .10000E-03   10000.    
     2 'norm      '    2.6531       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .38996       1.0000         .10000E-03   10000.    
     5 'norm      '    .73789       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.7569       1.0000         .10000E-03   10000.    
     7 'norm      '    3.0740       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .24900E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    24.545       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .11209E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    37.016       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .15470E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.2882       1.0000         .10000E-03   10000.    
    17 'Prefactor '    46.351       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .63186E-01   1.0000         .10000E-03   10000.    
    21 'norm      '    43.116       1.0000         .10000E-03   10000.    
    22 'norm      '    .10144E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    4.1760       1.0000         .10000E-03   10000.    
    27 'Prefactor '    13.958       1.0000         .10000E-03   10000.    
    28 'Prefactor '    3.7448       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.2106       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .87379       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6301.702     FROM MIGRAD    STATUS=CONVERGED    772 CALLS     3966 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1321        3.1210        .84786E-08   -.48399E-04
   2  norm          2.6491        5.4634        .43617E-05   -.24381E-03
   3  Prefactor     .10000E-03    20.677        .10436E-05** at limit **
   4  Prefactor     .33690        3.8886       -.77938E-06    .11103E-03
   5  norm          .73922        1.7243        .26468E-07   -.38742E-03
   6  Prefactor     8.7564        14.860       -.10963E-06   -.15793E-04
   7  norm          3.0743        1.9040        .85998E-08   -.58448E-04
   8  Prefactor     .10000E-03    15.637       -.30386E-06** at limit **
   9  Prefactor     .10000E-03    4.5605        .15968E-05** at limit **
  10  Prefactor     24.547        19.312        .15956E-06   -.34106E-05
  11  norm          .10000E-03    5.3892       -.30043E-08** at limit **
  12  norm          .10000E-03    2.6793       -.81974E-06** at limit **
  13  Prefactor     36.990        32.372        .35161E-05    .15913E-03
  14  Prefactor     .10000E-03    4.0323       -.85873E-08** at limit **
  15  Prefactor     .10000E-03    18.431       -.13035E-05** at limit **
  16  norm          1.2889        1.8034       -.86871E-07   -.21408E-03
  17  Prefactor     46.360        51.685       -.12053E-05   -.46265E-04
  18  Prefactor     .10000E-03    35.553       -.52728E-06** at limit **
  19  Prefactor     .10000E-03    26.676        .14450E-06** at limit **
  20  norm          .63409E-01    .44657        .49668E-07   -.40772E-03
  21  norm          43.098        64.128        .33208E-05    .39789E-04
  22  norm          .10000E-03    2.1838        .16006E-06** at limit **
  23  norm          .10000E-03    8.1586       -.27700E-07** at limit **
  24  Prefactor     .10000E-03    14.546       -.45079E-06** at limit **
  25  Prefactor     .10000E-03    11.512        .42281E-06** at limit **
  26  Prefactor     4.1753        3.6866        .45057E-07   -.18551E-04
  27  Prefactor     13.957        18.783        .31193E-06    .69233E-06
  28  Prefactor     3.7442        3.7316        .11485E-05   -.11082E-03
  29  Normalizat    1.2103        .17268       -.44393E-06   -.51864E-04
  30  Prefactor     .87433        .20187       -.11737E-05   -.93955E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.13207
  norm       = 2.64911
  Prefactor  = 0.0001
  Prefactor  = 0.336896
  norm       = 0.739221
  Prefactor  = 8.75643
  norm       = 3.07428
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 24.5471
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 36.9895
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 1.28893
  Prefactor  = 46.3598
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0634087
  norm       = 43.0984
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.17531
  Prefactor  = 13.9574
  Prefactor  = 3.74418
  Normalizat = 1.21029
  Prefactor  = 0.874334
 **********
 **   18 **HESSE 
 **********

 FCN=   6301.702     FROM HESSE     STATUS=OK           592 CALLS     4558 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1321        3.1237        .13273E-03   -1.5354    
   2  norm          2.6491        5.5221        .12513E-02   -1.5382    
   3  Prefactor     .10000E-03    20.800        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .33690        29.737        .26496E-02   -1.5592    
   5  norm          .73922        1.5206        .13874E-02   -1.5536    
   6  Prefactor     8.7564        14.863        .13545E-03   -1.5116    
   7  norm          3.0743        1.9052        .83525E-04   -1.5357    
   8  Prefactor     .10000E-03    15.642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    14.998        .31759E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     24.547        19.353        .80854E-04   -1.4717    
  11  norm          .10000E-03    5.3986        .17998E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.7580        .12750E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     36.990        32.570        .65873E-04   -1.4491    
  14  Prefactor     .10000E-03    4.0355        .15567E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    18.546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.2889        1.7744        .12260E-03   -1.5481    
  17  Prefactor     46.360        51.962        .58893E-04   -1.4345    
  18  Prefactor     .10000E-03    35.582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    26.767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .63409E-01    .84483        .10301E-02   -1.5658    
  21  norm          43.098        64.177        .61053E-04   -1.4394    
  22  norm          .10000E-03    2.2262        .11446E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    8.1794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    14.549        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    11.520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     4.1753        3.6834        .13864E-03   -1.5299    
  27  Prefactor     13.957        18.801        .10721E-03   -1.4961    
  28  Prefactor     3.7442        3.7340        .73821E-03   -1.5321    
  29  Normalizat    1.2103        .20492        .21282E-03   -.86285    
  30  Prefactor     .87433        .23763        .30238E-03   -.97044    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.45162e-08
Minuit parameter uncertainties:
  1  3.12383
  2  5.52319
  3  8.38136e-05
  4  6.33267
  5  1.52072
  6  14.8695
  7  1.90522
  8  2.24686e-05
  9  0.000187849
  10  19.3576
  11  1.20379e-06
  12  7.31585e-05
  13  32.5857
  14  1.66688e-06
  15  0.000404252
  16  1.77451
  17  52.0128
  18  2.78919e-05
  19  0.000106536
  20  0.462545
  21  64.2806
  22  1.14086e-05
  23  2.44077e-06
  24  1.89509e-05
  25  2.05419e-05
  26  3.68355
  27  18.8089
  28  3.73422
  29  0.205059
  30  0.237909
Done.

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

Extracting fit parameters...

4FGL J1312.6+4828
   Spectrum: LogParabola
360         norm:  1.000e-04  7.316e-05  1.000e-04  1.000e+04 ( 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  0.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:  8.743e-01  2.379e-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:  1.210e+00  2.051e-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: 5.19e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.69e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/640205/likelihoodResults_678412801_678672001_4FGL_J1312.6+4828_daily_bin1694.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) = 6301.7034079
delta logL = -0.00172606869728

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6301.70168355
delta logL = -1.71615374711e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11277E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0967       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2104       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87424       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6301.702     FROM MIGRAD    STATUS=CONVERGED    189 CALLS      336 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .13990E-01    1.6484        .44039E-01    .29173E-03
   2  alpha         3.2763        3.1299        .50000        .19164E-04
   3  Normalizat    1.2098        .71958E-02    .21282E-03    .20780E-04
   4  Prefactor     .87462        .88767E-02    .30237E-03    .11806E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0139898
  alpha      = 3.2763
  Normalizat = 1.2098
  Prefactor  = 0.874619
 **********
 **   18 **HESSE 
 **********

 FCN=   6301.702     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      375 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .13990E-01    12.339        .18947E-01   -1.5684    
   2  alpha         3.2763        2.6257        .50000        .31574    
   3  Normalizat    1.2098        .10604E-01    .85128E-05   -.86301    
   4  Prefactor     .87462        .13069E-01    .12095E-04   -.97034    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.61083e-08
Minuit parameter uncertainties:
  1  0.828136
  2  23.6503
  3  0.0106042
  4  0.0130689
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/640205': 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) = 6301.70160202
delta logL = 7.98088713054e-05

Extracting fit parameters...

4FGL J1312.6+4828
   Spectrum: LogParabola
360         norm:  1.399e-02  8.281e-01  1.000e-04  1.000e+04 ( 1.000e-12)
361        alpha:  3.276e+00  2.365e+01  0.000e+00  5.000e+00 ( 1.000e+00)
362         beta:  6.200e-02  0.000e+00  0.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:  8.746e-01  1.307e-02  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:  1.210e+00  1.060e-02  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/640205/cmap_HighResolution_678412801_678672001_4FGL_J1312.6+4828_daily_bin1694.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.69e-05', job_status='DONE', photon_flux_upper_limit='5.19e-08', time_completed='2022-07-05 04:03:36.262195', job_id='640205', GAL2='0.87', fit_tolerance='1e-08', EG2='1.21', EG='1.21', time_epoch_completed='1657019016.26', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='7.98e-05', ts2='0.00', photon_index_error='0.00', photon_index='2.07' WHERE bin_id='1694' AND source_name='4FGL J1312.6+4828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jul  5 04:03:36 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 640105: <4FGL_J1312.6+4828_daily_bin1694> in cluster <slac> Done

Job <4FGL_J1312.6+4828_daily_bin1694> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Tue Jul  5 00:06:28 2022
Job was executed on host(s) <bullet0209>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jul  5 03:45:20 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jul  5 03:45:20 2022
Terminated at Tue Jul  5 04:02:38 2022
Results reported at Tue Jul  5 04:02:38 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1312.6+4828_daily_bin1694 198.169 48.4701 678412801 678672001 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 :                                   989.25 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             303.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1037 sec.
    Turnaround time :                            14170 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0145>
Subject: Job 640205: <4FGL_J1312.6+4828_daily_bin1694> in cluster <slac> Done

Job <4FGL_J1312.6+4828_daily_bin1694> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Tue Jul  5 00:06:32 2022
Job was executed on host(s) <bullet0145>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jul  5 03:46:32 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jul  5 03:46:32 2022
Terminated at Tue Jul  5 04:03:36 2022
Results reported at Tue Jul  5 04:03:36 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1312.6+4828_daily_bin1694 198.169 48.4701 678412801 678672001 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 :                                   986.84 sec.
    Max Memory :                                 656 MB
    Average Memory :                             314.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2930 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   1024 sec.
    Turnaround time :                            14224 sec.

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

