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


Performing analysis on: 4FGL_J1131.0+3815_weekly_bin759
RA = 172.755, Dec = 38.2565
tmin = 698025601, tmax = 698630401
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='588556', job_status='RUN', time_executed='2023-02-21 03:26:53.534611', time_epoch_executed='1676978813.53' WHERE source_name='4FGL J1131.0+3815' and cadence='weekly' and bin_id='759'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/588556

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/588556/ft1_4FGL_J1131.0+3815_weekly_bin759.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/588556/ft2_4FGL_J1131.0+3815_weekly_bin759.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/588556/ft1_4FGL_J1131.0+3815_weekly_bin759.fits outfile=/scratch/kocevski/588556/ft1_filteredMKT_4FGL_J1131.0+3815_weekly_bin759.fits ra=172.755 dec=38.2565 rad=12.0 tmin=698025601.0 tmax=698630401.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 8.50
user 8.19
sys 0.28

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/588556/ft2_4FGL_J1131.0+3815_weekly_bin759.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/588556/ft1_filteredMKT_4FGL_J1131.0+3815_weekly_bin759.fits evtable="EVENTS" outfile="/scratch/kocevski/588556/ft1_filtered_4FGL_J1131.0+3815_weekly_bin759.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.38
sys 0.14

Number of photons that the gtmktime cut: 736

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/588556/ft1_filtered_4FGL_J1131.0+3815_weekly_bin759.fits" evtable="EVENTS" scfile=/scratch/kocevski/588556/ft2_4FGL_J1131.0+3815_weekly_bin759.fits sctable="SC_DATA" outfile=/scratch/kocevski/588556/ltcube_698025601_698630401_4FGL_J1131.0+3815_weekly_bin759.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/588556/ft2_4FGL_J1131.0+3815_weekly_bin759.fits
.....................!
real 26.82
user 26.42
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/588556/ft1_filtered_4FGL_J1131.0+3815_weekly_bin759.fits evtable="EVENTS" scfile=/scratch/kocevski/588556/ft2_4FGL_J1131.0+3815_weekly_bin759.fits sctable="SC_DATA" expcube=/scratch/kocevski/588556/ltcube_698025601_698630401_4FGL_J1131.0+3815_weekly_bin759.fits outfile=/scratch/kocevski/588556/expmap_698025601_698630401_4FGL_J1131.0+3815_weekly_bin759.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/588556/ltcube_698025601_698630401_4FGL_J1131.0+3815_weekly_bin759.fits
.....................!
real 192.47
user 187.46
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/588556/ft1_filtered_4FGL_J1131.0+3815_weekly_bin759.fits scfile=/scratch/kocevski/588556/ft2_4FGL_J1131.0+3815_weekly_bin759.fits outfile=/scratch/kocevski/588556/cmap_698025601_698630401_4FGL_J1131.0+3815_weekly_bin759.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.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/588556/ft1_filtered_4FGL_J1131.0+3815_weekly_bin759.fits scfile=/scratch/kocevski/588556/ft2_4FGL_J1131.0+3815_weekly_bin759.fits outfile=/scratch/kocevski/588556/cmap_HighResolution_698025601_698630401_4FGL_J1131.0+3815_weekly_bin759.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.59
user 0.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.550       1.0000          .0000       .10000E+07
     2 'Prefactor '    1.9345       1.0000          .0000       .10000E+07
     3 'Prefactor '    .51262E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .15081       1.0000          .0000       .10000E+07
     5 'norm      '    2.1668       1.0000          .0000       .10000E+07
     6 'Prefactor '    .32668E-05   1.0000          .0000       .10000E+07
     7 'Prefactor '    .12137E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .53450E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .20522E-02   1.0000          .0000       .10000E+07
    10 'norm      '    .47407E-07   1.0000          .0000       .10000E+07
    11 'norm      '    .75353E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    1.8484       1.0000          .0000       .10000E+07
    13 'Prefactor '    .49335E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    12.803       1.0000          .0000       .10000E+07
    15 'norm      '    8.3153       1.0000          .0000       .10000E+07
    16 'Prefactor '    9.5353       1.0000          .0000       .10000E+07
    17 'Prefactor '    11.499       1.0000          .0000       .10000E+07
    18 'Prefactor '    59.002       1.0000          .0000       .10000E+07
    19 'norm      '    .33058       1.0000          .0000       .10000E+07
    20 'norm      '    .32778E-04   1.0000          .0000       .10000E+07
    21 'Prefactor '    .53105E-03   1.0000          .0000       .10000E+07
    22 'Prefactor '    .90179E-03   1.0000          .0000       .10000E+07
    23 'Prefactor '    .52675       1.0000          .0000       .10000E+07
    24 'norm      '    52.923       1.0000          .0000       .10000E+07
    25 'Prefactor '    .53025E-04   1.0000          .0000       .10000E+07
    26 'Normalizat'    .83346       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .92287       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=   7415.732     FROM MIGRAD    STATUS=CONVERGED    142 CALLS     2359 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.543        1.0177        .11383E-07   -.71819E-03
   2  Prefactor     1.9348        2.2838       -.17988E-06   -.11196E-02
   3  Prefactor     .97866E-06    8.6431       -.16666E-05** at limit **
   4  Prefactor     .16720E-06    1.7898       -.94707E-06** at limit **
   5  norm          2.1669        .39679        .38099E-07    .23602E-01
   6  Prefactor      .0000        2.2931       -.38737E-06** at limit **
   7  Prefactor     .38858E-08    6.9598       -.17361E-05** at limit **
   8  Prefactor     .38858E-09    4.7181        .51564E-06** at limit **
   9  Prefactor     .10449E-05    17.498       -.35146E-05** at limit **
  10  norm          .22760E-08    8.7391        .14659E-05** at limit **
  11  norm          .68556E-07    13.504       -.23622E-05** at limit **
  12  Prefactor     1.8469        2.4968        .89030E-06    .10772E-02
  13  Prefactor     .45952E-06    9.2789        .10678E-05** at limit **
  14  Prefactor     12.803        1.5463        .21525E-06    .51981E-01
  15  norm          8.3102        3.1218       -.97254E-07    .37460E-02
  16  Prefactor     9.5371        2.9825        .59949E-06    .11679    
  17  Prefactor     11.502        5.7279       -.27735E-06   -.81480E-02
  18  Prefactor     59.177        5.5803        .44499E-06   -.13061    
  19  norm          .32966        .64741       -.47924E-06    .48318E-02
  20  norm           .0000        2.6319       -.94795E-06** at limit **
  21  Prefactor     .15543E-08    6.1841        .70350E-06** at limit **
  22  Prefactor     .13099E-05    10.798        .13284E-05** at limit **
  23  Prefactor     .45137        21.662        .54826E-05   -.34745E-01
  24  norm          52.924        4.0200       -.19463E-07    .15444E-02
  25  Prefactor      .0000        2.5754       -.10453E-05** at limit **
  26  Normalizat    .83329        .18700       -.19804E-04    .10017E-03
  27  Prefactor     .92309        .22633        .32869E-04    .67926E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.5426
  Prefactor  = 1.93483
  Prefactor  = 9.78662e-07
  Prefactor  = 1.672e-07
  norm       = 2.16691
  Prefactor  = 0
  Prefactor  = 3.88578e-09
  Prefactor  = 3.88578e-10
  Prefactor  = 1.04494e-06
  norm       = 2.27596e-09
  norm       = 6.85563e-08
  Prefactor  = 1.84687
  Prefactor  = 4.59521e-07
  Prefactor  = 12.8026
  norm       = 8.31019
  Prefactor  = 9.53715
  Prefactor  = 11.5022
  Prefactor  = 59.1767
  norm       = 0.329662
  norm       = 0
  Prefactor  = 1.55431e-09
  Prefactor  = 1.3099e-06
  Prefactor  = 0.451374
  norm       = 52.9242
  Prefactor  = 0
  Normalizat = 0.833287
  Prefactor  = 0.923093
 **********
 **   18 **HESSE 
 **********

 FCN=   7415.732     FROM HESSE     STATUS=OK           550 CALLS     2909 TOTAL
                     EDM=   .90E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.543        18.612        .25373E-03   -1.5629    
   2  Prefactor     1.9348        2.2885        .74634E-03   -1.5680    
   3  Prefactor     .97866E-06    26.379        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .16720E-06    60.061        .12726E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.1669        .39713        .50709E-03   -1.5679    
   6  Prefactor      .0000        2.2812        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .38858E-08    7.3101        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .38858E-09    4.7319        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10449E-05    27.672        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .22760E-08    9.0574        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .68556E-07    13.755        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.8469        2.5323        .76664E-03   -1.5681    
  13  Prefactor     .45952E-06    22.857        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     12.803        12.750        .27969E-03   -1.5636    
  15  norm          8.3102        3.1772        .34742E-03   -1.5650    
  16  Prefactor     9.5371        10.073        .32429E-03   -1.5646    
  17  Prefactor     11.502        5.7621        .29518E-03   -1.5640    
  18  Prefactor     59.177        42.303        .13020E-03   -1.5554    
  19  norm          .32966        .76893        .22395E-02   -1.5696    
  20  norm           .0000        2.6375        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .15543E-08    6.2134        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .13099E-05    22.263        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .45137        14.413        .10595E-01   -1.5695    
  24  norm          52.924        4.0265        .13747E-03   -1.5562    
  25  Prefactor      .0000        2.5772        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .83329        .15927        .62958E-01   -.98846    
  27  Prefactor     .92309        .18929        .72924E-01   -.95339    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.00247e-07
Minuit parameter uncertainties:
  1  18.6118
  2  2.28854
  3  0.0101619
  4  0.00633757
  5  0.397126
  6  2.21479e-06
  7  0.000336749
  8  8.66302e-05
  9  0.0107547
  10  0.000286846
  11  0.00194231
  12  2.53234
  13  0.00648193
  14  12.7498
  15  3.17718
  16  10.0735
  17  5.76209
  18  42.303
  19  0.768932
  20  1.19252e-05
  21  0.000196791
  22  0.0108004
  23  5.10119
  24  4.02647
  25  1.15519e-05
  26  0.15936
  27  0.189425
Done.

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

Extracting fit parameters...

4FGL J1131.0+3815
   Spectrum: LogParabola
342         norm:  8.310e+00  3.177e+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:  9.231e-01  1.894e-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.333e-01  1.594e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 20.44
Ra Dec: 172.755 38.257
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 1.12e-07 +/- 4.30e-08
Energy Flux (Fixed Index): 3.52e-05 +/- 1.34e-05

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) = 7413.81690044
delta logL = 1.9151362612

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7413.81637027
delta logL = 1.91566642928

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.675       1.0000          .0000       .10000E+07
     2 'alpha     '    1.8135       1.0000          .0000       5.0000    
     3 'Normalizat'    .87774       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89133       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=   7413.816     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      239 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.661        9.7624        .28110E-03    .21827E-03
   2  alpha         1.8122        .64462        .28833        .22431E-04
   3  Normalizat    .87780        .16251        .44616E-01    .22823E-04
   4  Prefactor     .89138        .19493        .74171E-01    .22276E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 12.6614
  alpha      = 1.81221
  Normalizat = 0.877803
  Prefactor  = 0.891382
 **********
 **   18 **HESSE 
 **********

 FCN=   7413.816     FROM HESSE     STATUS=OK            33 CALLS      272 TOTAL
                     EDM=   .19E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.661        5.0130        .11244E-04   -1.5637    
   2  alpha         1.8122        .36778        .11460E-01   -.27871    
   3  Normalizat    .87780        .18616        .27257E-03   -.97245    
   4  Prefactor     .89138        .22630        .32821E-03   -.96443    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.93662e-12
Minuit parameter uncertainties:
  1  5.01304
  2  0.369235
  3  0.186301
  4  0.226541
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/588556': 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) = 7413.81635971
delta logL = 1.91567698837

Extracting fit parameters...

4FGL J1131.0+3815
   Spectrum: LogParabola
342         norm:  1.266e+01  5.013e+00  0.000e+00  1.000e+06 ( 1.000e-12)
343        alpha:  1.812e+00  3.692e-01  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.914e-01  2.265e-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.778e-01  1.863e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 24.19
Ra Dec: 172.755 38.257
Photon Index (Free Index): 1.81 +/- 0.37
Photon Flux (Free Index): 6.78e-08 +/- 3.52e-08
Energy Flux (Free Index): 5.29e-05 +/- 2.58e-05

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/588556/cmap_HighResolution_698025601_698630401_4FGL_J1131.0+3815_weekly_bin759.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.12e-07', energy_flux2='5.29e-05', photon_flux_error='4.30e-08', dlogl='1.92e+00', energy_flux='3.52e-05', photon_flux2='6.78e-08', job_status='DONE', time_completed='2023-02-21 03:40:37.740972', photon_index_error2='0.37', photon_index2='1.81', ts='20.44', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='2.58e-05', EG='0.83', time_epoch_completed='1676979637.74', return_code='0', job_id='588556', GAL2='0.89', EG2='0.88', return_code2='0', energy_flux_error='1.34e-05', photon_flux_error2='3.52e-08', ts2='24.19', photon_index='2.55' WHERE bin_id='759' AND source_name='4FGL J1131.0+3815' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Feb 21 03:40:37 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 588556: <4FGL_J1131.0+3815_weekly_bin759> in cluster <slac> Done

Job <4FGL_J1131.0+3815_weekly_bin759> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Feb 21 03:25:25 2023
Job was executed on host(s) <bullet0032>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb 21 03:25:25 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb 21 03:25:25 2023
Terminated at Tue Feb 21 03:40:38 2023
Results reported at Tue Feb 21 03:40:38 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1131.0+3815_weekly_bin759 172.755 38.2565 698025601 698630401 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 :                                   808.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             312.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   913 sec.
    Turnaround time :                            913 sec.

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

