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


Performing analysis on: 4FGL_J1131.0+3815_daily_bin1674
RA = 172.755, Dec = 38.2565
tmin = 673228801, tmax = 673488001
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='670043', job_status='RUN', time_executed='2022-05-06 02:50:29.458879', time_epoch_executed='1651830629.46' WHERE source_name='4FGL J1131.0+3815' and cadence='daily' and bin_id='1674'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/670043

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/670043/ft1_4FGL_J1131.0+3815_daily_bin1674.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/670043/ft2_4FGL_J1131.0+3815_daily_bin1674.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/670043/ft1_4FGL_J1131.0+3815_daily_bin1674.fits outfile=/scratch/kocevski/670043/ft1_filteredMKT_4FGL_J1131.0+3815_daily_bin1674.fits ra=172.755 dec=38.2565 rad=12.0 tmin=673228801.0 tmax=673488001.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 2.77
user 2.52
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/670043/ft2_4FGL_J1131.0+3815_daily_bin1674.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/670043/ft2_4FGL_J1131.0+3815_daily_bin1674.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/670043/ft1_filteredMKT_4FGL_J1131.0+3815_daily_bin1674.fits evtable="EVENTS" outfile="/scratch/kocevski/670043/ft1_filtered_4FGL_J1131.0+3815_daily_bin1674.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.50
user 0.34
sys 0.15

Number of photons that the gtmktime cut: 963

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/670043/ft1_filtered_4FGL_J1131.0+3815_daily_bin1674.fits" evtable="EVENTS" scfile=/scratch/kocevski/670043/ft2_4FGL_J1131.0+3815_daily_bin1674.fits sctable="SC_DATA" outfile=/scratch/kocevski/670043/ltcube_673228801_673488001_4FGL_J1131.0+3815_daily_bin1674.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/670043/ft2_4FGL_J1131.0+3815_daily_bin1674.fits
.....................!
real 15.03
user 14.61
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/670043/ft1_filtered_4FGL_J1131.0+3815_daily_bin1674.fits evtable="EVENTS" scfile=/scratch/kocevski/670043/ft2_4FGL_J1131.0+3815_daily_bin1674.fits sctable="SC_DATA" expcube=/scratch/kocevski/670043/ltcube_673228801_673488001_4FGL_J1131.0+3815_daily_bin1674.fits outfile=/scratch/kocevski/670043/expmap_673228801_673488001_4FGL_J1131.0+3815_daily_bin1674.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/670043/ltcube_673228801_673488001_4FGL_J1131.0+3815_daily_bin1674.fits
.....................!
real 192.29
user 186.31
sys 5.29

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

Setting source of interest to:
4FGL J1131.0+3815 @ 172.755 38.2565

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/670043/ft1_filtered_4FGL_J1131.0+3815_daily_bin1674.fits scfile=/scratch/kocevski/670043/ft2_4FGL_J1131.0+3815_daily_bin1674.fits outfile=/scratch/kocevski/670043/cmap_673228801_673488001_4FGL_J1131.0+3815_daily_bin1674.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=172.755 yref=38.2565 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.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/670043/ft1_filtered_4FGL_J1131.0+3815_daily_bin1674.fits scfile=/scratch/kocevski/670043/ft2_4FGL_J1131.0+3815_daily_bin1674.fits outfile=/scratch/kocevski/670043/cmap_HighResolution_673228801_673488001_4FGL_J1131.0+3815_daily_bin1674.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=172.755 yref=38.2565 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.36
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/670043/ft1_filtered_4FGL_J1131.0+3815_daily_bin1674.fits evtable="EVENTS" scfile=/scratch/kocevski/670043/ft2_4FGL_J1131.0+3815_daily_bin1674.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/670043/Model_4FGL_J1131.0+3815_daily_bin1674.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/670043/ft1_filtered_4FGL_J1131.0+3815_daily_bin1674.fits.....................!
real 82.86
user 81.29
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/670043/ft1_filtered_4FGL_J1131.0+3815_daily_bin1674.fits', '/scratch/kocevski/670043/ft2_4FGL_J1131.0+3815_daily_bin1674.fits', expMap='/scratch/kocevski/670043/expmap_673228801_673488001_4FGL_J1131.0+3815_daily_bin1674.fits', expCube='/scratch/kocevski/670043/ltcube_673228801_673488001_4FGL_J1131.0+3815_daily_bin1674.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/670043/Model_4FGL_J1131.0+3815_daily_bin1674.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1131.0+3815'

4FGL J1131.0+3815
   Spectrum: LogParabola
342         norm:  1.699e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
343        alpha:  2.549e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
344         beta:  1.620e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
345           Eb:  9.785e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/670043/ft1_filtered_4FGL_J1131.0+3815_daily_bin1674.fits
Spacecraft file(s): /scratch/kocevski/670043/ft2_4FGL_J1131.0+3815_daily_bin1674.fits
Exposure map: /scratch/kocevski/670043/expmap_673228801_673488001_4FGL_J1131.0+3815_daily_bin1674.fits
Exposure cube: /scratch/kocevski/670043/ltcube_673228801_673488001_4FGL_J1131.0+3815_daily_bin1674.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/670043/Model_4FGL_J1131.0+3815_daily_bin1674.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) = 10407.4869483

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    34.492       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.7492       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11259E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    17.968       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .28959E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .25308E-02   1.0000         .10000E-03   10000.    
     7 'norm      '    1.4193       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.9684       1.0000         .10000E-03   10000.    
     9 'Prefactor '    29.708       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.8874       1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.802       1.0000         .10000E-03   10000.    
    12 'norm      '    .17666E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10559E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.8641       1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.925       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .20910E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.2193       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.3264       1.0000         .10000E-03   10000.    
    22 'norm      '    14.590       1.0000         .10000E-03   10000.    
    23 'Prefactor '    11.702       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .72012       1.0000         .10000E-03   10000.    
    25 'Prefactor '    9.1636       1.0000         .10000E-03   10000.    
    26 'Prefactor '    20.206       1.0000         .10000E-03   10000.    
    27 'norm      '    9.9582       1.0000         .10000E-03   10000.    
    28 'Prefactor '    10.373       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .30081       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.1813       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .91046       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6710E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10407.25     FROM MIGRAD    STATUS=CONVERGED    888 CALLS     3799 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     34.708        32.744        .31290E-05    .29512E-03
   2  Prefactor     4.7545        5.0575       -.34622E-06    .36396E-04
   3  Prefactor     .10002E-03    5.5381       -.59165E-06** at limit **
   4  Prefactor     17.815        37.996        .34268E-05    .11947E-03
   5  Prefactor     .10000E-03    10.970       -.30575E-07** at limit **
   6  Prefactor     .10000E-03    65.514       -.49481E-06** at limit **
   7  norm          1.4206        .31334        .15397E-07   -.19872E-03
   8  Prefactor     3.9657        3.0209       -.34995E-08   -.35565E-04
   9  Prefactor     29.619        14.875       -.19488E-07   -.18844E-03
  10  Prefactor     3.7791        11.246       -.46879E-06    .10935E-04
  11  Prefactor     14.245        35.284        .50451E-06    .35112E-05
  12  norm          .10007E-03    11.610       -.19566E-05** at limit **
  13  norm          .10000E-03    10.657       -.18557E-07** at limit **
  14  Prefactor     5.8677        2.3282        .97764E-07   -.29479E-03
  15  Prefactor     12.822        26.933       -.12622E-05   -.31591E-04
  16  Prefactor     .10000E-03    6.5839       -.44506E-07** at limit **
  17  norm          .10000E-03    .75322       -.79543E-08** at limit **
  18  Prefactor     6.1655        9.3786       -.39932E-07   -.17591E-04
  19  Prefactor     .10000E-03    3.8115       -.28360E-07** at limit **
  20  Prefactor     .10000E-03    48.389       -.43640E-06** at limit **
  21  norm          1.3330        1.1127        .60756E-07    .32921E-03
  22  norm          14.641        9.7094       -.60103E-08   -.50876E-05
  23  Prefactor     11.802        24.371       -.44681E-06   -.38851E-04
  24  Prefactor     .71718        2.7625       -.48275E-07    .10927E-03
  25  Prefactor     8.4250        98.672       -.24560E-05   -.68488E-05
  26  Prefactor     20.227        16.413       -.24527E-06   -.78711E-04
  27  norm          9.9568        1.9007        .85601E-08   -.15053E-03
  28  Prefactor     10.380        27.520       -.12197E-05   -.56287E-04
  29  Prefactor     .23102        42.185        .64642E-05   -.27973E-03
  30  Normalizat    1.1816        .14851        .21172E-07   -.16312E-03
  31  Prefactor     .91069        .16838        .14429E-06   -.13893E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 34.7076
  Prefactor  = 4.75452
  Prefactor  = 0.000100025
  Prefactor  = 17.815
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.4206
  Prefactor  = 3.96568
  Prefactor  = 29.6188
  Prefactor  = 3.7791
  Prefactor  = 14.2445
  norm       = 0.000100066
  norm       = 0.0001
  Prefactor  = 5.86775
  Prefactor  = 12.8224
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.16553
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.33303
  norm       = 14.6408
  Prefactor  = 11.8023
  Prefactor  = 0.717175
  Prefactor  = 8.42497
  Prefactor  = 20.2271
  norm       = 9.95676
  Prefactor  = 10.3802
  Prefactor  = 0.231022
  Normalizat = 1.18163
  Prefactor  = 0.910686
 **********
 **   18 **HESSE 
 **********

 FCN=   10407.25     FROM HESSE     STATUS=OK           638 CALLS     4437 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     34.708        33.464        .68233E-04   -1.4529    
   2  Prefactor     4.7545        5.0457        .18463E-03   -1.5272    
   3  Prefactor     .10002E-03    15.590        .33795E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     17.815        37.934        .94487E-04   -1.4864    
   5  Prefactor     .10000E-03    11.029        .21405E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    65.649        .20006E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.4206        .31451        .24169E-04   -1.5470    
   8  Prefactor     3.9657        3.0192        .14867E-03   -1.5310    
   9  Prefactor     29.619        14.698        .73507E-04   -1.4619    
  10  Prefactor     3.7791        11.259        .10232E-02   -1.5319    
  11  Prefactor     14.245        35.283        .10410E-03   -1.4953    
  12  norm          .10007E-03    36.925        .47695E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    10.658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.8677        2.3234        .87595E-04   -1.5223    
  15  Prefactor     12.822        26.906        .11142E-03   -1.4992    
  16  Prefactor     .10000E-03    6.5977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .77667        .17249E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.1655        9.3665        .16097E-03   -1.5211    
  19  Prefactor     .10000E-03    3.9693        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    48.802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.3330        1.0878        .75394E-04   -1.5477    
  22  norm          14.641        9.6976        .10486E-03   -1.4943    
  23  Prefactor     11.802        24.393        .11711E-03   -1.5021    
  24  Prefactor     .71718        2.7085        .30062E-03   -1.5539    
  25  Prefactor     8.4250        97.079        .13240E-03   -1.5127    
  26  Prefactor     20.227        16.100        .89102E-04   -1.4808    
  27  norm          9.9568        1.9001        .58691E-04   -1.5077    
  28  Prefactor     10.380        27.383        .12440E-03   -1.5063    
  29  Prefactor     .23102        57.253        .36592E-02   -1.5612    
  30  Normalizat    1.1816        .17827        .24662E-03   -.87172    
  31  Prefactor     .91069        .19994        .32626E-03   -.95769    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.63795e-09
Minuit parameter uncertainties:
  1  33.4818
  2  5.04611
  3  0.00124256
  4  37.9858
  5  2.74629e-06
  6  1.03879e-05
  7  0.314511
  8  3.01933
  9  14.7001
  10  11.2657
  11  35.3347
  12  0.00312639
  13  4.5092e-07
  14  2.32346
  15  26.9312
  16  4.8494e-06
  17  5.0385e-06
  18  9.36868
  19  1.45582e-05
  20  7.07116e-06
  21  1.08779
  22  9.69868
  23  24.4135
  24  2.70893
  25  57.3144
  26  16.1031
  27  1.90014
  28  27.4164
  29  7.27918
  30  0.178362
  31  0.200099
Done.

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

Extracting fit parameters...

4FGL J1131.0+3815
   Spectrum: LogParabola
342         norm:  1.000e-04  5.038e-06  1.000e-04  1.000e+04 ( 1.000e-12)
343        alpha:  2.549e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
344         beta:  1.620e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
345           Eb:  9.785e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
668    Prefactor:  9.107e-01  2.001e-01  0.000e+00  1.000e+01 ( 1.000e+00)
669        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
670        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
667   Normalization:  1.182e+00  1.784e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 172.755 38.257
Photon Flux Upper Limit: 4.02e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.26e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/670043/likelihoodResults_673228801_673488001_4FGL_J1131.0+3815_daily_bin1674.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) = 10407.2536728
delta logL = -0.00608795295375

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10407.2475868
delta logL = -1.96227665583e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10390E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5308       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1817       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91066       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6710E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10407.25     FROM MIGRAD    STATUS=CONVERGED     69 CALLS      219 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    11.899        .90712E-02** at limit **
   2  alpha         2.1450        3.2791        .41156        .13618E-06
   3  Normalizat    1.1816        .13228E-01    .55772E-01   -.11620E-03
   4  Prefactor     .91069        .15664E-01    .73732E-01   -.25554E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.14495
  Normalizat = 1.18163
  Prefactor  = 0.910687
 **********
 **   18 **HESSE 
 **********

 FCN=   10407.25     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      252 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    79.828        .93693E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1450        3.8688        .50000       -.14250    
   3  Normalizat    1.1816        .37627E-01    .24662E-03   -.87172    
   4  Prefactor     .91069        .44508E-01    .32626E-03   -.95769    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.59735e-09
Minuit parameter uncertainties:
  1  6.01914e-06
  2  787.985
  3  0.037628
  4  0.0445101
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/670043': 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) = 10407.247576
delta logL = 8.81757841853e-06

Extracting fit parameters...

4FGL J1131.0+3815
   Spectrum: LogParabola
342         norm:  1.000e-04  6.019e-06  1.000e-04  1.000e+04 ( 1.000e-12)
343        alpha:  2.145e+00  7.880e+02  0.000e+00  5.000e+00 ( 1.000e+00)
344         beta:  1.620e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
345           Eb:  9.785e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
668    Prefactor:  9.107e-01  4.451e-02  0.000e+00  1.000e+01 ( 1.000e+00)
669        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
670        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
667   Normalization:  1.182e+00  3.763e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 172.755 38.257

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/670043/cmap_HighResolution_673228801_673488001_4FGL_J1131.0+3815_daily_bin1674.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.26e-05', job_status='DONE', photon_flux_upper_limit='4.02e-08', time_completed='2022-05-06 03:13:58.346247', job_id='670043', GAL2='0.91', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1651832038.35', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='8.82e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='1674' AND source_name='4FGL J1131.0+3815' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri May  6 03:13:58 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0006>
Subject: Job 669972: <4FGL_J1131.0+3815_daily_bin1674> in cluster <slac> Done

Job <4FGL_J1131.0+3815_daily_bin1674> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri May  6 00:07:11 2022
Job was executed on host(s) <bullet0006>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri May  6 02:48:43 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri May  6 02:48:43 2022
Terminated at Fri May  6 03:12:37 2022
Results reported at Fri May  6 03:12:37 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1131.0+3815_daily_bin1674 172.755 38.2565 673228801 673488001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1131.0+3815 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1403.45 sec.
    Max Memory :                                 619 MB
    Average Memory :                             326.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1434 sec.
    Turnaround time :                            11126 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0249>
Subject: Job 670043: <4FGL_J1131.0+3815_daily_bin1674> in cluster <slac> Done

Job <4FGL_J1131.0+3815_daily_bin1674> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri May  6 00:07:15 2022
Job was executed on host(s) <bullet0249>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri May  6 02:49:07 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri May  6 02:49:07 2022
Terminated at Fri May  6 03:13:59 2022
Results reported at Fri May  6 03:13:59 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1131.0+3815_daily_bin1674 172.755 38.2565 673228801 673488001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1131.0+3815 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1409.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             312.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1491 sec.
    Turnaround time :                            11204 sec.

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

