aklog: Couldn't determine realm of user:aklog: unknown RPC error (-1765328189)  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 4 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 = 17147
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1131.0+3815_weekly_bin655
RA = 172.755, Dec = 38.2565
tmin = 635126401, tmax = 635731201
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='900682', job_status='RUN', time_executed='2021-07-18 05:31:27.046910', time_epoch_executed='1626611487.05' WHERE source_name='4FGL J1131.0+3815' and cadence='weekly' and bin_id='655'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/900682

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/900682/ft1_4FGL_J1131.0+3815_weekly_bin655.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/900682/ft2_4FGL_J1131.0+3815_weekly_bin655.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/900682/ft1_4FGL_J1131.0+3815_weekly_bin655.fits outfile=/scratch/kocevski/900682/ft1_filteredMKT_4FGL_J1131.0+3815_weekly_bin655.fits ra=172.755 dec=38.2565 rad=12.0 tmin=635126401.0 tmax=635731201.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 6.04
user 5.73
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/900682/ft2_4FGL_J1131.0+3815_weekly_bin655.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/900682/ft1_filteredMKT_4FGL_J1131.0+3815_weekly_bin655.fits evtable="EVENTS" outfile="/scratch/kocevski/900682/ft1_filtered_4FGL_J1131.0+3815_weekly_bin655.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.56
user 0.39
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/900682/ft1_filtered_4FGL_J1131.0+3815_weekly_bin655.fits evtable="EVENTS" scfile=/scratch/kocevski/900682/ft2_4FGL_J1131.0+3815_weekly_bin655.fits sctable="SC_DATA" expcube=/scratch/kocevski/900682/ltcube_635126401_635731201_4FGL_J1131.0+3815_weekly_bin655.fits outfile=/scratch/kocevski/900682/expmap_635126401_635731201_4FGL_J1131.0+3815_weekly_bin655.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/900682/ltcube_635126401_635731201_4FGL_J1131.0+3815_weekly_bin655.fits
.....................!
real 192.73
user 187.03
sys 4.67

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/900682/ft1_filtered_4FGL_J1131.0+3815_weekly_bin655.fits scfile=/scratch/kocevski/900682/ft2_4FGL_J1131.0+3815_weekly_bin655.fits outfile=/scratch/kocevski/900682/cmap_635126401_635731201_4FGL_J1131.0+3815_weekly_bin655.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.59
user 0.42
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/900682/ft1_filtered_4FGL_J1131.0+3815_weekly_bin655.fits scfile=/scratch/kocevski/900682/ft2_4FGL_J1131.0+3815_weekly_bin655.fits outfile=/scratch/kocevski/900682/cmap_HighResolution_635126401_635731201_4FGL_J1131.0+3815_weekly_bin655.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.61
user 0.45
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/900682/ft1_filtered_4FGL_J1131.0+3815_weekly_bin655.fits', '/scratch/kocevski/900682/ft2_4FGL_J1131.0+3815_weekly_bin655.fits', expMap='/scratch/kocevski/900682/expmap_635126401_635731201_4FGL_J1131.0+3815_weekly_bin655.fits', expCube='/scratch/kocevski/900682/ltcube_635126401_635731201_4FGL_J1131.0+3815_weekly_bin655.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/900682/Model_4FGL_J1131.0+3815_weekly_bin655.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/900682/ft1_filtered_4FGL_J1131.0+3815_weekly_bin655.fits
Spacecraft file(s): /scratch/kocevski/900682/ft2_4FGL_J1131.0+3815_weekly_bin655.fits
Exposure map: /scratch/kocevski/900682/expmap_635126401_635731201_4FGL_J1131.0+3815_weekly_bin655.fits
Exposure cube: /scratch/kocevski/900682/ltcube_635126401_635731201_4FGL_J1131.0+3815_weekly_bin655.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/900682/Model_4FGL_J1131.0+3815_weekly_bin655.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) = 3077.51157362

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11040E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13866E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .83059       1.0000         .10000E-03   10000.    
     8 'Prefactor '    37.632       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .18131E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    27.718       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    22.216       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .13607E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10367E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    19.456       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    6.1697       1.0000         .10000E-03   10000.    
    22 'norm      '    12.081       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10542E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10209E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    61.531       1.0000         .10000E-03   10000.    
    27 'norm      '    8.4268       1.0000         .10000E-03   10000.    
    28 'Prefactor '    7.9505       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .11117E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .50567       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.2684       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=   3077.500     FROM MIGRAD    STATUS=CONVERGED    781 CALLS     4115 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    415.03        .15799E-04** at limit **
   2  Prefactor     .10000E-03    27.394       -.25058E-06** at limit **
   3  Prefactor     .10000E-03    73.398        .21698E-05** at limit **
   4  Prefactor     .10000E-03    102.44       -.19516E-05** at limit **
   5  Prefactor     .10000E-03    210.25       -.91183E-05** at limit **
   6  Prefactor     .10000E-03    231.56       -.48931E-05** at limit **
   7  norm          .83399        1.0807        .26477E-05    .50650E-03
   8  Prefactor     37.634        28.354       -.25320E-06    .37020E-04
   9  Prefactor     .10001E-03    54.105       -.95582E-05** at limit **
  10  Prefactor     27.589        75.490       -.31058E-04    .12857E-03
  11  Prefactor     .10000E-03    49.085       -.13269E-05** at limit **
  12  norm          22.103        61.054        .13822E-04    .28106E-04
  13  norm          .10000E-03    21.120        .39171E-07** at limit **
  14  Prefactor     .10000E-03    4.9888       -.33319E-05** at limit **
  15  Prefactor     .10000E-03    37.791        .35947E-06** at limit **
  16  Prefactor     .10000E-03    89.545        .63660E-07** at limit **
  17  norm          .10000E-03    1.6597       -.46655E-06** at limit **
  18  Prefactor     .10000E-03    99.674       -.11836E-05** at limit **
  19  Prefactor     19.468        14.560        .38116E-06    .20509E-03
  20  Prefactor     .10000E-03    47.085       -.16325E-05** at limit **
  21  norm          6.1710        2.2268        .60033E-07    .31796E-03
  22  norm          12.081        12.466        .72756E-06    .14326E-03
  23  Prefactor     .10000E-03    78.147        .16741E-05** at limit **
  24  Prefactor     .10000E-03    2.1776        .57139E-07** at limit **
  25  Prefactor     .10000E-03    55.849        .36756E-06** at limit **
  26  Prefactor     61.530        28.673        .19210E-06   -.11051E-04
  27  norm          8.4266        2.7837       -.31874E-07   -.10134E-03
  28  Prefactor     7.9108        70.609        .11946E-05   -.18065E-04
  29  Prefactor     .10000E-03    10.892       -.10974E-07** at limit **
  30  Normalizat    .50559        .26575       -.56549E-06    .31299E-04
  31  Prefactor     1.2685        .29713       -.56829E-06    .46908E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100017
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.833993
  Prefactor  = 37.6342
  Prefactor  = 0.000100015
  Prefactor  = 27.5889
  Prefactor  = 0.0001
  norm       = 22.103
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.4677
  Prefactor  = 0.0001
  norm       = 6.17096
  norm       = 12.0812
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 61.5305
  norm       = 8.42661
  Prefactor  = 7.91079
  Prefactor  = 0.0001
  Normalizat = 0.505586
  Prefactor  = 1.26846
 **********
 **   18 **HESSE 
 **********

 FCN=   3077.500     FROM HESSE     STATUS=OK           606 CALLS     4721 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    413.47        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    27.395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    73.341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    102.43        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    210.40        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    231.50        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .83399        1.0715        .43489E-04   -1.5525    
   8  Prefactor     37.634        28.340        .65334E-04   -1.4480    
   9  Prefactor     .10001E-03    55.045        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     27.589        74.952        .76095E-04   -1.4657    
  11  Prefactor     .10000E-03    49.073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          22.103        60.918        .84980E-04   -1.4767    
  13  norm          .10000E-03    21.120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.1899        .12201E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    37.782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    90.195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.6679        .69806E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    100.42        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     19.468        14.539        .45401E-03   -1.4825    
  20  Prefactor     .10000E-03    47.104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          6.1710        2.2269        .45482E-04   -1.5211    
  22  norm          12.081        12.490        .57626E-03   -1.5013    
  23  Prefactor     .10000E-03    78.273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    2.1898        .79851E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    55.875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     61.530        28.641        .51152E-04   -1.4138    
  27  norm          8.4266        2.7822        .50785E-04   -1.5127    
  28  Prefactor     7.9108        70.336        .14220E-03   -1.5145    
  29  Prefactor     .10000E-03    11.002        .17859E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .50559        .30543        .33993E-03   -1.1216    
  31  Prefactor     1.2685        .34664        .26023E-03   -.84250    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07184e-09
Minuit parameter uncertainties:
  1  0.00534516
  2  7.79785e-07
  3  0.000475446
  4  0.000258654
  5  0.000648149
  6  0.0012479
  7  1.07156
  8  28.3505
  9  0.00179279
  10  75.209
  11  0.000162658
  12  61.0904
  13  1.40299e-06
  14  0.000210145
  15  0.000291417
  16  0.000322862
  17  1.57871e-05
  18  0.000225045
  19  14.5415
  20  0.000159176
  21  2.22694
  22  12.4929
  23  0.000522905
  24  2.62251e-06
  25  1.6553e-06
  26  28.647
  27  2.78224
  28  47.2508
  29  5.63265e-06
  30  0.306453
  31  0.34727
Done.

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

Extracting fit parameters...

4FGL J1131.0+3815
   Spectrum: LogParabola
342         norm:  1.000e-04  1.579e-05  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:  1.268e+00  3.473e-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:  5.056e-01  3.065e-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: 1.09e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.42e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/900682/likelihoodResults_635126401_635731201_4FGL_J1131.0+3815_weekly_bin655.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3077.5029523
delta logL = -0.00255864770179

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3077.50039362
delta logL = 3.19764694723e-08

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3077.500     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      235 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    180.00        .69943E-02** at limit **
   2  alpha         2.0397        2.5949        .16464        .80101E-08
   3  Normalizat    .50559        .69834E-01    .33992E-03    .67643E-04
   4  Prefactor     1.2685        .82194E-01    .26023E-03    .96031E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.0397
  Normalizat = 0.505587
  Prefactor  = 1.26846
 **********
 **   18 **HESSE 
 **********

 FCN=   3077.500     FROM HESSE     STATUS=OK            23 CALLS      258 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.8011        .72674E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0397        3.3845        .65855E-02   -.18518    
   3  Normalizat    .50559        .29271        .13597E-04   -1.1216    
   4  Prefactor     1.2685        .34494        .52047E-04   -.84250    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.20859e-11
Minuit parameter uncertainties:
  1  1.05582e-06
  2  233.842
  3  0.293608
  4  0.345564
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/900682': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3077.50039144
delta logL = 2.20820629693e-06

Extracting fit parameters...

4FGL J1131.0+3815
   Spectrum: LogParabola
342         norm:  1.000e-04  1.056e-06  1.000e-04  1.000e+04 ( 1.000e-12)
343        alpha:  2.040e+00  2.338e+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:  1.268e+00  3.456e-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:  5.056e-01  2.936e-01  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/900682/cmap_HighResolution_635126401_635731201_4FGL_J1131.0+3815_weekly_bin655.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.42e-05', job_status='DONE', photon_flux_upper_limit='1.09e-07', time_completed='2021-07-18 05:43:17.192292', job_id='900682', GAL2='1.27', fit_tolerance='1e-08', EG2='0.51', EG='0.51', time_epoch_completed='1626612197.19', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.27', dlogl='2.21e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='655' AND source_name='4FGL J1131.0+3815' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul 18 05:43:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 900682: <4FGL_J1131.0+3815_weekly_bin655> in cluster <slac> Done

Job <4FGL_J1131.0+3815_weekly_bin655> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Sun Jul 18 05:30:56 2021
Job was executed on host(s) <bullet0234>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul 18 05:31:14 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jul 18 05:31:14 2021
Terminated at Sun Jul 18 05:43:17 2021
Results reported at Sun Jul 18 05:43:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1131.0+3815_weekly_bin655 172.755 38.2565 635126401 635731201 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 :                                   678.00 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             310.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   723 sec.
    Turnaround time :                            741 sec.

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

