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 65 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7584
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1131.0+3815_daily_bin1755
RA = 172.755, Dec = 38.2565
tmin = 694224001, tmax = 694483201
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='820647', job_status='RUN', time_executed='2023-01-04 00:52:56.877868', time_epoch_executed='1672822376.88' WHERE source_name='4FGL J1131.0+3815' and cadence='daily' and bin_id='1755'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/820647

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/820647/ft1_4FGL_J1131.0+3815_daily_bin1755.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/820647/ft2_4FGL_J1131.0+3815_daily_bin1755.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/820647/ft1_4FGL_J1131.0+3815_daily_bin1755.fits outfile=/scratch/kocevski/820647/ft1_filteredMKT_4FGL_J1131.0+3815_daily_bin1755.fits ra=172.755 dec=38.2565 rad=12.0 tmin=694224001.0 tmax=694483201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.12
user 2.82
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/820647/ft2_4FGL_J1131.0+3815_daily_bin1755.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/820647/ft1_filteredMKT_4FGL_J1131.0+3815_daily_bin1755.fits evtable="EVENTS" outfile="/scratch/kocevski/820647/ft1_filtered_4FGL_J1131.0+3815_daily_bin1755.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.53
user 0.33
sys 0.17

Number of photons that the gtmktime cut: 504

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/820647/ft1_filtered_4FGL_J1131.0+3815_daily_bin1755.fits" evtable="EVENTS" scfile=/scratch/kocevski/820647/ft2_4FGL_J1131.0+3815_daily_bin1755.fits sctable="SC_DATA" outfile=/scratch/kocevski/820647/ltcube_694224001_694483201_4FGL_J1131.0+3815_daily_bin1755.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/820647/ft2_4FGL_J1131.0+3815_daily_bin1755.fits
.....................!
real 16.44
user 15.86
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/820647/ft1_filtered_4FGL_J1131.0+3815_daily_bin1755.fits evtable="EVENTS" scfile=/scratch/kocevski/820647/ft2_4FGL_J1131.0+3815_daily_bin1755.fits sctable="SC_DATA" expcube=/scratch/kocevski/820647/ltcube_694224001_694483201_4FGL_J1131.0+3815_daily_bin1755.fits outfile=/scratch/kocevski/820647/expmap_694224001_694483201_4FGL_J1131.0+3815_daily_bin1755.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/820647/ltcube_694224001_694483201_4FGL_J1131.0+3815_daily_bin1755.fits
.....................!
real 193.79
user 186.39
sys 6.04

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/820647/ft1_filtered_4FGL_J1131.0+3815_daily_bin1755.fits scfile=/scratch/kocevski/820647/ft2_4FGL_J1131.0+3815_daily_bin1755.fits outfile=/scratch/kocevski/820647/cmap_694224001_694483201_4FGL_J1131.0+3815_daily_bin1755.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.57
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/820647/ft1_filtered_4FGL_J1131.0+3815_daily_bin1755.fits scfile=/scratch/kocevski/820647/ft2_4FGL_J1131.0+3815_daily_bin1755.fits outfile=/scratch/kocevski/820647/cmap_HighResolution_694224001_694483201_4FGL_J1131.0+3815_daily_bin1755.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.39
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/820647/ft1_filtered_4FGL_J1131.0+3815_daily_bin1755.fits', '/scratch/kocevski/820647/ft2_4FGL_J1131.0+3815_daily_bin1755.fits', expMap='/scratch/kocevski/820647/expmap_694224001_694483201_4FGL_J1131.0+3815_daily_bin1755.fits', expCube='/scratch/kocevski/820647/ltcube_694224001_694483201_4FGL_J1131.0+3815_daily_bin1755.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/820647/Model_4FGL_J1131.0+3815_daily_bin1755.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  0.000e+00  1.000e+06 ( 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 -5.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/820647/ft1_filtered_4FGL_J1131.0+3815_daily_bin1755.fits
Spacecraft file(s): /scratch/kocevski/820647/ft2_4FGL_J1131.0+3815_daily_bin1755.fits
Exposure map: /scratch/kocevski/820647/expmap_694224001_694483201_4FGL_J1131.0+3815_daily_bin1755.fits
Exposure cube: /scratch/kocevski/820647/ltcube_694224001_694483201_4FGL_J1131.0+3815_daily_bin1755.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/820647/Model_4FGL_J1131.0+3815_daily_bin1755.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) = 5188.02214632

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18947       1.0000          .0000       .10000E+07
     2 'Prefactor '    11.382       1.0000          .0000       .10000E+07
     3 'Prefactor '    141.11       1.0000          .0000       .10000E+07
     4 'Prefactor '    .75495E-07   1.0000          .0000       .10000E+07
     5 'norm      '    3.4323       1.0000          .0000       .10000E+07
     6 'Prefactor '    2.3121       1.0000          .0000       .10000E+07
     7 'Prefactor '    23.872       1.0000          .0000       .10000E+07
     8 'Prefactor '    .47703E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .38087E-02   1.0000          .0000       .10000E+07
    10 'norm      '    3.0988       1.0000          .0000       .10000E+07
    11 'norm      '    124.19       1.0000          .0000       .10000E+07
    12 'Prefactor '    .19143E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .15649E-01   1.0000          .0000       .10000E+07
    14 'Prefactor '    6.1411       1.0000          .0000       .10000E+07
    15 'norm      '    3.0648       1.0000          .0000       .10000E+07
    16 'Prefactor '    .35534E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    .47544E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .23359E-02   1.0000          .0000       .10000E+07
    19 'norm      '    .97486       1.0000          .0000       .10000E+07
    20 'norm      '    8.2202       1.0000          .0000       .10000E+07
    21 'Prefactor '    .24847E-06   1.0000          .0000       .10000E+07
    22 'Prefactor '    34.832       1.0000          .0000       .10000E+07
    23 'Prefactor '    2.5001       1.0000          .0000       .10000E+07
    24 'norm      '    47.764       1.0000          .0000       .10000E+07
    25 'Prefactor '    .33126E-04   1.0000          .0000       .10000E+07
    26 'Normalizat'    1.0264       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .75089       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6710E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5187.949     FROM MIGRAD    STATUS=CONVERGED    191 CALLS     2440 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .81032E-04    367.79       -.24126E-05** at limit **
   2  Prefactor     11.372        5.0437        .72339E-06    .49938E-01
   3  Prefactor     141.69        14.086        .61594E-06   -.50428E-01
   4  Prefactor     .74403E-04    117.73        .94659E-05** at limit **
   5  norm          3.4329        .76323       -.90367E-07    .39479E-03
   6  Prefactor     2.3103        2.9644       -.58748E-07    .75686E-04
   7  Prefactor     23.714        15.253        .21633E-05    .38300E-01
   8  Prefactor     .58210E-05    24.916       -.13461E-05** at limit **
   9  Prefactor     .12687E-04    96.737        .83677E-06** at limit **
  10  norm          2.5204        16.142        .46694E-05   -.14561E-02
  11  norm          124.39        6.1109        .28459E-06   -.25065E-01
  12  Prefactor     .55511E-10    4.5120       -.83142E-06** at limit **
  13  Prefactor      .0000        30.296        .18850E-06** at limit **
  14  Prefactor     5.9717        16.399       -.24579E-05   -.99599E-01
  15  norm          3.0649        3.1601        .18553E-06    .13279E-03
  16  Prefactor     .55511E-10    6.3344        .23187E-07** at limit **
  17  Prefactor     .22204E-09    7.6602        .65028E-06** at limit **
  18  Prefactor     .55417E-05    23.800       -.31889E-05** at limit **
  19  norm          .98757        .96294        .15309E-06    .57508E-03
  20  norm          8.4264        13.300        .17926E-05   -.13116E-03
  21  Prefactor      .0000        1.7704        .26959E-06** at limit **
  22  Prefactor     31.098        61.655       -.39576E-05    .44502E-01
  23  Prefactor     2.4535        18.597       -.20012E-05   -.21073E-02
  24  norm          47.758        4.1841       -.39613E-07    .14583E-02
  25  Prefactor     .11102E-09    4.3660       -.51514E-06** at limit **
  26  Normalizat    1.0285        .25613        .20991E-04    .20378E-04
  27  Prefactor     .75113        .28387       -.33563E-04    .48243E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.10317e-05
  Prefactor  = 11.3716
  Prefactor  = 141.688
  Prefactor  = 7.44029e-05
  norm       = 3.43293
  Prefactor  = 2.31034
  Prefactor  = 23.7135
  Prefactor  = 5.82101e-06
  Prefactor  = 1.2687e-05
  norm       = 2.52043
  norm       = 124.393
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 5.97167
  norm       = 3.06494
  Prefactor  = 5.55112e-11
  Prefactor  = 2.22045e-10
  Prefactor  = 5.54168e-06
  norm       = 0.987574
  norm       = 8.42637
  Prefactor  = 0
  Prefactor  = 31.0985
  Prefactor  = 2.45347
  norm       = 47.7579
  Prefactor  = 1.11022e-10
  Normalizat = 1.02851
  Prefactor  = 0.751127
 **********
 **   18 **HESSE 
 **********

 FCN=   5187.949     FROM HESSE     STATUS=OK           542 CALLS     2982 TOTAL
                     EDM=   .26E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .81032E-04    399.45        .11966E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     11.372        21.542        .29670E-03   -1.5641    
   3  Prefactor     141.69        87.490        .84189E-04   -1.5470    
   4  Prefactor     .74403E-04    150.67        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.4329        .76450        .54572E-03   -1.5671    
   6  Prefactor     2.3103        2.9746        .67444E-03   -1.5678    
   7  Prefactor     23.714        22.117        .20472E-03   -1.5611    
   8  Prefactor     .58210E-05    27.315        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .12687E-04    102.14        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.5204        42.663        .57583E-03   -1.5676    
  11  norm          124.39        87.494        .89740E-04   -1.5485    
  12  Prefactor     .55511E-10    4.4589        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        30.245        .17342E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.9717        20.877        .40489E-03   -1.5659    
  15  norm          3.0649        3.1712        .57919E-03   -1.5673    
  16  Prefactor     .55511E-10    6.3459        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .22204E-09    7.6268        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .55417E-05    26.320        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .98757        .97301        .42874E-03   -1.5688    
  20  norm          8.4264        13.422        .34944E-03   -1.5650    
  21  Prefactor      .0000        1.7716        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     31.098        68.591        .16946E-03   -1.5596    
  23  Prefactor     2.4535        18.709        .64607E-03   -1.5677    
  24  norm          47.758        4.1860        .14470E-03   -1.5570    
  25  Prefactor     .11102E-09    4.3553        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0285        .21485        .62987E-01   -.92081    
  27  Prefactor     .75113        .23923        .82783E-01   -1.0156    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.5817e-06
Minuit parameter uncertainties:
  1  0.359846
  2  21.5418
  3  87.4911
  4  0.211763
  5  0.764495
  6  2.9746
  7  22.1175
  8  0.0252194
  9  0.0719974
  10  20.7395
  11  87.4946
  12  3.39027e-05
  13  8.82842e-06
  14  20.8768
  15  3.1712
  16  4.05968e-05
  17  8.42459e-05
  18  0.0241545
  19  0.973007
  20  13.4224
  21  2.02019e-06
  22  68.5924
  23  13.5502
  24  4.18601
  25  4.78625e-05
  26  0.215035
  27  0.239556
Done.

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

Extracting fit parameters...

4FGL J1131.0+3815
   Spectrum: LogParabola
342         norm:  3.065e+00  3.171e+00  0.000e+00  1.000e+06 ( 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 -5.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:  7.511e-01  2.396e-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.029e+00  2.150e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.40
Ra Dec: 172.755 38.257
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 4.14e-08 +/- 4.29e-08
Energy Flux (Fixed Index): 1.30e-05 +/- 1.34e-05

TS (Fixed Index): 1.40
Ra Dec: 172.755 38.257
Photon Flux Upper Limit: 1.39e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.36e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/820647/likelihoodResults_694224001_694483201_4FGL_J1131.0+3815_daily_bin1755.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) = 5185.97824702
delta logL = 1.97120819814

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5185.91958787
delta logL = 2.02986734235

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .35288       1.0000          .0000       .10000E+07
     2 'alpha     '    4.5999       1.0000          .0000       5.0000    
     3 'Normalizat'    .86011       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87475       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=   5185.920     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      264 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .35233        2.9803        .45333E-03    .82812E-03
   2  alpha         4.6007        4.7976        .30143       -.99215E-06
   3  Normalizat    .86000        .83442E-01    .67841E-01   -.80104E-05
   4  Prefactor     .87491        .96308E-01    .77184E-01   -.10729E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.352328
  alpha      = 4.60071
  Normalizat = 0.860003
  Prefactor  = 0.874912
 **********
 **   18 **HESSE 
 **********

 FCN=   5185.920     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      297 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .35233        4.0756        .20290E-05   -1.5696    
   2  alpha         4.6007        4.7902        .14717E-01    .99781    
   3  Normalizat    .86000        .26789        .30014E-03   -.97880    
   4  Prefactor     .87491        .29951        .34161E-03   -.97023    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.37201e-11
Minuit parameter uncertainties:
  1  2.39662
  2  3.65416
  3  0.268302
  4  0.300078
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/820647': 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) = 5185.91958749
delta logL = 2.0298677311

Extracting fit parameters...

4FGL J1131.0+3815
   Spectrum: LogParabola
342         norm:  3.523e-01  2.397e+00  0.000e+00  1.000e+06 ( 1.000e-12)
343        alpha:  4.601e+00  3.654e+00  0.000e+00  5.000e+00 ( 1.000e+00)
344         beta:  1.620e-01  0.000e+00 -5.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:  8.749e-01  3.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:  8.600e-01  2.683e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.88
Ra Dec: 172.755 38.257
Photon Index (Free Index): 4.60 +/- 3.65
Photon Flux (Free Index): 1.85e-07 +/- 1.15e-07
Energy Flux (Free Index): 2.72e-05 +/- 1.45e-05

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/820647/cmap_HighResolution_694224001_694483201_4FGL_J1131.0+3815_daily_bin1755.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.36e-05', comment='SUCCESS', photon_flux='4.14e-08', energy_flux2='2.72e-05', photon_flux_error='4.29e-08', dlogl='2.03e+00', energy_flux='1.30e-05', photon_flux2='1.85e-07', job_status='DONE', time_completed='2023-01-04 01:04:34.687081', photon_index_error2='3.65', photon_index2='4.60', ts='1.40', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', photon_flux_upper_limit='1.39e-07', energy_flux_error2='1.45e-05', EG='1.03', time_epoch_completed='1672823074.69', return_code='0', job_id='820647', GAL2='0.87', EG2='0.86', return_code2='102', energy_flux_error='1.34e-05', photon_flux_error2='1.15e-07', ts2='5.88', photon_index='2.55' WHERE bin_id='1755' AND source_name='4FGL J1131.0+3815' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jan  4 01:04:34 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 820647: <4FGL_J1131.0+3815_daily_bin1755> in cluster <slac> Done

Job <4FGL_J1131.0+3815_daily_bin1755> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Jan  4 00:50:26 2023
Job was executed on host(s) <bullet0214>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jan  4 00:51:37 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jan  4 00:51:37 2023
Terminated at Wed Jan  4 01:04:35 2023
Results reported at Wed Jan  4 01:04:35 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1131.0+3815_daily_bin1755 172.755 38.2565 694224001 694483201 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 :                                   699.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             313.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   777 sec.
    Turnaround time :                            849 sec.

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

