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


Performing analysis on: 4FGL_J1131.0+3815_monthly_bin169
RA = 172.755, Dec = 38.2565
tmin = 675043201, tmax = 677635201
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='165966', job_status='RUN', time_executed='2022-06-23 02:08:43.971881', time_epoch_executed='1655975323.97' WHERE source_name='4FGL J1131.0+3815' and cadence='monthly' and bin_id='169'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/165966

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

Retrieving the FT1 file...

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

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

Retrieving 456 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/165966/ft1_4FGL_J1131.0+3815_monthly_bin169.fits


Retrieving the FT1 file...

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

Retrieving 456 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/165966/ft2_4FGL_J1131.0+3815_monthly_bin169.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/165966/ft1_4FGL_J1131.0+3815_monthly_bin169.fits outfile=/scratch/kocevski/165966/ft1_filteredMKT_4FGL_J1131.0+3815_monthly_bin169.fits ra=172.755 dec=38.2565 rad=12.0 tmin=675043201.0 tmax=677635201.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 27.82
user 27.08
sys 0.63

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/165966/ft2_4FGL_J1131.0+3815_monthly_bin169.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/165966/ft1_filteredMKT_4FGL_J1131.0+3815_monthly_bin169.fits evtable="EVENTS" outfile="/scratch/kocevski/165966/ft1_filtered_4FGL_J1131.0+3815_monthly_bin169.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.86
user 0.67
sys 0.19

Number of photons that the gtmktime cut: 9142

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/165966/ft1_filtered_4FGL_J1131.0+3815_monthly_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/165966/ft2_4FGL_J1131.0+3815_monthly_bin169.fits sctable="SC_DATA" expcube=/scratch/kocevski/165966/ltcube_675043201_677635201_4FGL_J1131.0+3815_monthly_bin169.fits outfile=/scratch/kocevski/165966/expmap_675043201_677635201_4FGL_J1131.0+3815_monthly_bin169.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/165966/ltcube_675043201_677635201_4FGL_J1131.0+3815_monthly_bin169.fits
.....................!
real 193.46
user 187.39
sys 5.31

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/165966/ft1_filtered_4FGL_J1131.0+3815_monthly_bin169.fits scfile=/scratch/kocevski/165966/ft2_4FGL_J1131.0+3815_monthly_bin169.fits outfile=/scratch/kocevski/165966/cmap_675043201_677635201_4FGL_J1131.0+3815_monthly_bin169.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.79
user 0.62
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/165966/ft1_filtered_4FGL_J1131.0+3815_monthly_bin169.fits scfile=/scratch/kocevski/165966/ft2_4FGL_J1131.0+3815_monthly_bin169.fits outfile=/scratch/kocevski/165966/cmap_HighResolution_675043201_677635201_4FGL_J1131.0+3815_monthly_bin169.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.80
user 0.63
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.895       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.2414       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11493E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12061E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.3734       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.6653       1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.147       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.4626       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.3240       1.0000         .10000E-03   10000.    
    12 'norm      '    .23034E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .12290E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.4038       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.3415       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.3991       1.0000         .10000E-03   10000.    
    17 'norm      '    2.2207       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .21834E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .26187       1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.1122       1.0000         .10000E-03   10000.    
    21 'norm      '    1.9307       1.0000         .10000E-03   10000.    
    22 'norm      '    5.1172       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10757E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .73830       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .62705E-02   1.0000         .10000E-03   10000.    
    26 'Prefactor '    15.815       1.0000         .10000E-03   10000.    
    27 'norm      '    26.968       1.0000         .10000E-03   10000.    
    28 'Prefactor '    10.472       1.0000         .10000E-03   10000.    
    29 'Prefactor '    1.8172       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .96421       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0765       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=   95900.53     FROM MIGRAD    STATUS=CONVERGED    846 CALLS     3691 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.895        6.8717        .34334E-06    .26683E-04
   2  Prefactor     .10000E-03    .37542        .19383E-07** at limit **
   3  Prefactor     .10000E-03    .28168       -.72498E-08** at limit **
   4  Prefactor     2.2355        3.4583       -.12163E-05   -.13318E-03
   5  Prefactor     .10000E-03    1.5447       -.41152E-07** at limit **
   6  Prefactor     .10000E-03    4.9978        .10659E-05** at limit **
   7  norm          1.3734        .92321E-01   -.38644E-08    .66215E-03
   8  Prefactor     3.6653        .85740        .13893E-07   -.41639E-03
   9  Prefactor     11.151        3.7629        .55207E-06    .71982E-04
  10  Prefactor     1.4629        1.7660       -.75043E-07   -.44224E-03
  11  Prefactor     5.2789        14.095        .17829E-04    .38120E-04
  12  norm          .10000E-03    .60085       -.37724E-07** at limit **
  13  norm          .10000E-03    6.1341        .25473E-05** at limit **
  14  Prefactor     4.4042        .75781        .11802E-07   -.15994E-04
  15  Prefactor     5.3396        7.0935       -.18911E-06   -.84375E-05
  16  Prefactor     2.3917        .84395        .17014E-06   -.62357E-02
  17  norm          2.2209        .59102        .18234E-07   -.28287E-03
  18  Prefactor     .10000E-03    .43320       -.24480E-07** at limit **
  19  Prefactor     .25940        .45148       -.27537E-08   -.19843E-03
  20  Prefactor     9.1121        8.3570       -.75677E-07    .67962E-04
  21  norm          1.9307        .29347        .48205E-07    .23831E-02
  22  norm          5.1198        1.7762        .68184E-07    .27204E-03
  23  Prefactor     .10000E-03    5.4253       -.32762E-05** at limit **
  24  Prefactor     .73800        .74021       -.26385E-07   -.38100E-03
  25  Prefactor     .10073E-03    2.2600       -.63838E-06** at limit **
  26  Prefactor     15.821        5.1177        .10915E-06   -.37384E-03
  27  norm          26.968        .80868       -.12845E-07    .26205E-02
  28  Prefactor     10.507        7.4549        .33893E-05    .18279E-03
  29  Prefactor     1.8168        1.2572       -.61612E-07   -.55302E-03
  30  Normalizat    .96422        .47046E-01   -.30899E-06    .54032E-03
  31  Prefactor     1.0765        .55169E-01   -.20088E-06    .34664E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.8948
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.23549
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.37343
  Prefactor  = 3.6653
  Prefactor  = 11.1507
  Prefactor  = 1.46291
  Prefactor  = 5.27892
  norm       = 0.000100003
  norm       = 0.0001
  Prefactor  = 4.40421
  Prefactor  = 5.33958
  Prefactor  = 2.39174
  norm       = 2.22091
  Prefactor  = 0.0001
  Prefactor  = 0.259404
  Prefactor  = 9.11208
  norm       = 1.93075
  norm       = 5.11979
  Prefactor  = 0.0001
  Prefactor  = 0.737998
  Prefactor  = 0.000100726
  Prefactor  = 15.8211
  norm       = 26.9676
  Prefactor  = 10.5073
  Prefactor  = 1.81684
  Normalizat = 0.964216
  Prefactor  = 1.0765
 **********
 **   18 **HESSE 
 **********

 FCN=   95900.53     FROM HESSE     STATUS=OK           662 CALLS     4353 TOTAL
                     EDM=   .31E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.895        6.4642        .11155E-03   -1.4990    
   2  Prefactor     .10000E-03    .39067        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    .88870        .29929E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.2355        3.4401        .27452E-03   -1.5409    
   5  Prefactor     .10000E-03    1.5579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.0072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.3734        .92623E-01    .22997E-04   -1.5474    
   8  Prefactor     3.6653        .85642        .13384E-03   -1.5325    
   9  Prefactor     11.151        3.7588        .11999E-03   -1.5040    
  10  Prefactor     1.4629        1.7451        .35569E-03   -1.5466    
  11  Prefactor     5.2789        14.065        .17418E-03   -1.5248    
  12  norm          .10000E-03    .69656        .78937E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    6.3446        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.4042        .75382        .98082E-04   -1.5288    
  15  Prefactor     5.3396        7.0695        .17389E-03   -1.5246    
  16  Prefactor     2.3917        2.6294        .13219E-02   -1.5399    
  17  norm          2.2209        .58500        .11332E-03   -1.5410    
  18  Prefactor     .10000E-03    1.8555        .39303E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .25940        1.4571        .25439E-02   -1.5606    
  20  Prefactor     9.1121        8.3394        .13277E-03   -1.5104    
  21  norm          1.9307        .29235        .58537E-04   -1.5430    
  22  norm          5.1198        1.7764        .17773E-03   -1.5255    
  23  Prefactor     .10000E-03    5.5800        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .73800        .72733        .24718E-03   -1.5536    
  25  Prefactor     .10073E-03    2.2981        .15280       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     15.821        5.0433        .50357E-03   -1.4912    
  27  norm          26.968        .80823        .23242E-03   -1.4669    
  28  Prefactor     10.507        7.4671        .12381E-03   -1.5060    
  29  Prefactor     1.8168        1.2561        .28017E-03   -1.5438    
  30  Normalizat    .96422        .55372E-01    .26312E-03   -.94239    
  31  Prefactor     1.0765        .65163E-01    .30476E-03   -.90221    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.0815e-07
Minuit parameter uncertainties:
  1  6.4646
  2  1.87808e-06
  3  8.96597e-07
  4  3.44042
  5  1.391e-06
  6  4.93551e-06
  7  0.0926233
  8  0.856418
  9  3.75885
  10  1.74513
  11  14.0735
  12  8.77713e-05
  13  2.76884e-05
  14  0.753823
  15  7.07064
  16  2.62951
  17  0.585004
  18  3.64168e-05
  19  1.2294
  20  8.34043
  21  0.292346
  22  1.77645
  23  3.29208e-05
  24  0.727335
  25  0.00258266
  26  5.04346
  27  0.808231
  28  7.46773
  29  1.25611
  30  0.0553749
  31  0.0651676
Done.

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

Extracting fit parameters...

4FGL J1131.0+3815
   Spectrum: LogParabola
342         norm:  2.221e+00  5.850e-01  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.077e+00  6.517e-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:  9.642e-01  5.537e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 27.37
Ra Dec: 172.755 38.257
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 3.00e-08 +/- 7.91e-09
Energy Flux (Fixed Index): 9.40e-06 +/- 2.48e-06

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) = 95900.0840391
delta logL = 0.44639289772

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 95900.0757174
delta logL = 0.454714601481

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.6017       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2818       1.0000          .0000       5.0000    
     3 'Normalizat'    .97107       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0715       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   95900.08     FROM MIGRAD    STATUS=FAILED        95 CALLS      259 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.6016        .75659        .12550E-03   -.13044E-04
   2  alpha         2.2818        .28555        .22121E-01    .16470E-02
   3  Normalizat    .97108        .53595E-01    .26236E-03    .72106E-05
   4  Prefactor     1.0715        .65054E-01    .30540E-03    .59560E-06
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   95900.08     FROM SIMPLEX   STATUS=UNCHANGED     74 CALLS      333 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.6016        .75659        .18361E-04   -1.5385    
   2  alpha         2.2818        .28555        .41136E-03   -.87407E-01
   3  Normalizat    .97108        .53595E-01    .82416E-04   -.94006    
   4  Prefactor     1.0715        .65054E-01    .70277E-04   -.90382    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   95900.08     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      361 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.6016        .73687        .50201E-05   -.21741E-04
   2  alpha         2.2818        .27806        .44242E-02    .64402E-04
   3  Normalizat    .97108        .53597E-01    .52471E-04    .72106E-05
   4  Prefactor     1.0715        .65090E-01    .12216E-04    .29780E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.60155
  alpha      = 2.28176
  Normalizat = 0.971081
  Prefactor  = 1.07151
 **********
 **   18 **HESSE 
 **********

 FCN=   95900.08     FROM HESSE     STATUS=OK            25 CALLS      386 TOTAL
                     EDM=   .33E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.6016        .73370        .10040E-05   -1.5385    
   2  alpha         2.2818        .27680        .88484E-03   -.87407E-01
   3  Normalizat    .97108        .53562E-01    .52471E-04   -.94006    
   4  Prefactor     1.0715        .65042E-01    .24432E-05   -.90382    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.30795e-14
Minuit parameter uncertainties:
  1  0.7337
  2  0.277371
  3  0.0535651
  4  0.065047
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/165966': 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) = 95900.0757173
delta logL = 0.454714712891

Extracting fit parameters...

4FGL J1131.0+3815
   Spectrum: LogParabola
342         norm:  2.602e+00  7.337e-01  1.000e-04  1.000e+04 ( 1.000e-12)
343        alpha:  2.282e+00  2.774e-01  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.072e+00  6.505e-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:  9.711e-01  5.357e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 28.33
Ra Dec: 172.755 38.257
Photon Index (Free Index): 2.28 +/- 0.28
Photon Flux (Free Index): 2.41e-08 +/- 8.83e-09
Energy Flux (Free Index): 9.77e-06 +/- 2.57e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/165966/cmap_HighResolution_675043201_677635201_4FGL_J1131.0+3815_monthly_bin169.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.00e-08', energy_flux2='9.77e-06', photon_flux_error='7.91e-09', dlogl='4.55e-01', energy_flux='9.40e-06', photon_flux2='2.41e-08', job_status='DONE', time_completed='2022-06-23 04:34:07.258689', photon_index_error2='0.28', photon_index2='2.28', ts='27.37', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='2.57e-06', EG='0.96', time_epoch_completed='1655984047.26', return_code='0', job_id='165966', GAL2='1.07', EG2='0.97', return_code2='0', energy_flux_error='2.48e-06', photon_flux_error2='8.83e-09', ts2='28.33', photon_index='2.55' WHERE bin_id='169' AND source_name='4FGL J1131.0+3815' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Thu Jun 23 04:34:07 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 165966: <4FGL_J1131.0+3815_monthly_bin169> in cluster <slac> Done

Job <4FGL_J1131.0+3815_monthly_bin169> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Jun 23 01:35:29 2022
Job was executed on host(s) <bullet0263>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jun 23 02:07:45 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jun 23 02:07:45 2022
Terminated at Thu Jun 23 04:34:08 2022
Results reported at Thu Jun 23 04:34:08 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1131.0+3815_monthly_bin169 172.755 38.2565 675043201 677635201 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 :                                   8693.00 sec.
    Max Memory :                                 1262 MB
    Average Memory :                             453.01 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   8782 sec.
    Turnaround time :                            10719 sec.

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

