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


Performing analysis on: 4FGL_J1131.0+3815_weekly_bin760
RA = 172.755, Dec = 38.2565
tmin = 698630401, tmax = 699235201
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='20074', job_status='RUN', time_executed='2023-02-28 01:02:17.511846', time_epoch_executed='1677574937.51' WHERE source_name='4FGL J1131.0+3815' and cadence='weekly' and bin_id='760'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/20074

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/20074/ft1_4FGL_J1131.0+3815_weekly_bin760.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/20074/ft2_4FGL_J1131.0+3815_weekly_bin760.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/20074/ft1_4FGL_J1131.0+3815_weekly_bin760.fits outfile=/scratch/kocevski/20074/ft1_filteredMKT_4FGL_J1131.0+3815_weekly_bin760.fits ra=172.755 dec=38.2565 rad=12.0 tmin=698630401.0 tmax=699235201.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.22
user 5.96
sys 0.23

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

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

Number of photons that the gtmktime cut: 140

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/20074/ft1_filtered_4FGL_J1131.0+3815_weekly_bin760.fits" evtable="EVENTS" scfile=/scratch/kocevski/20074/ft2_4FGL_J1131.0+3815_weekly_bin760.fits sctable="SC_DATA" outfile=/scratch/kocevski/20074/ltcube_698630401_699235201_4FGL_J1131.0+3815_weekly_bin760.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/20074/ft2_4FGL_J1131.0+3815_weekly_bin760.fits
.....................!
real 31.16
user 30.76
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/20074/ft1_filtered_4FGL_J1131.0+3815_weekly_bin760.fits evtable="EVENTS" scfile=/scratch/kocevski/20074/ft2_4FGL_J1131.0+3815_weekly_bin760.fits sctable="SC_DATA" expcube=/scratch/kocevski/20074/ltcube_698630401_699235201_4FGL_J1131.0+3815_weekly_bin760.fits outfile=/scratch/kocevski/20074/expmap_698630401_699235201_4FGL_J1131.0+3815_weekly_bin760.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/20074/ltcube_698630401_699235201_4FGL_J1131.0+3815_weekly_bin760.fits
.....................!
real 190.00
user 184.67
sys 4.91

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/20074/ft1_filtered_4FGL_J1131.0+3815_weekly_bin760.fits scfile=/scratch/kocevski/20074/ft2_4FGL_J1131.0+3815_weekly_bin760.fits outfile=/scratch/kocevski/20074/cmap_698630401_699235201_4FGL_J1131.0+3815_weekly_bin760.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.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/20074/ft1_filtered_4FGL_J1131.0+3815_weekly_bin760.fits scfile=/scratch/kocevski/20074/ft2_4FGL_J1131.0+3815_weekly_bin760.fits outfile=/scratch/kocevski/20074/cmap_HighResolution_698630401_699235201_4FGL_J1131.0+3815_weekly_bin760.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.58
user 0.42
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.860       1.0000          .0000       .10000E+07
     2 'Prefactor '    .26116E+06   1.0000          .0000       .10000E+07
     3 'Prefactor '    3.0049       1.0000          .0000       .10000E+07
     4 'Prefactor '    .11055E-02   1.0000          .0000       .10000E+07
     5 'norm      '    .24036E-07   1.0000          .0000       .10000E+07
     6 'Prefactor '    .19354       1.0000          .0000       .10000E+07
     7 'Prefactor '    .27957       1.0000          .0000       .10000E+07
     8 'Prefactor '    .16185       1.0000          .0000       .10000E+07
     9 'Prefactor '    .44329       1.0000          .0000       .10000E+07
    10 'norm      '    .60142       1.0000          .0000       .10000E+07
    11 'norm      '    .63627E-01   1.0000          .0000       .10000E+07
    12 'Prefactor '    .37303E-06   1.0000          .0000       .10000E+07
    13 'Prefactor '    .18837       1.0000          .0000       .10000E+07
    14 'Prefactor '    .18430E-01   1.0000          .0000       .10000E+07
    15 'norm      '    .19632E-05   1.0000          .0000       .10000E+07
    16 'Prefactor '    .42517E-01   1.0000          .0000       .10000E+07
    17 'Prefactor '    .44774E-01   1.0000          .0000       .10000E+07
    18 'Prefactor '    .12738E-02   1.0000          .0000       .10000E+07
    19 'norm      '    .10775E-06   1.0000          .0000       .10000E+07
    20 'norm      '    41.728       1.0000          .0000       .10000E+07
    21 'Prefactor '    4.7607       1.0000          .0000       .10000E+07
    22 'Prefactor '    42.435       1.0000          .0000       .10000E+07
    23 'Prefactor '    .73455E-01   1.0000          .0000       .10000E+07
    24 'norm      '    42.873       1.0000          .0000       .10000E+07
    25 'Prefactor '    1.0722       1.0000          .0000       .10000E+07
    26 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.4026       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=   1659.959     FROM MIGRAD    STATUS=CONVERGED    195 CALLS     2373 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.917        4.3203        .66534E-06   -.98177E-02
   2  Prefactor     .26116E+06    1.9331        .23026E-08   -.44165    
   3  Prefactor     3.0933        6.7303        .23154E-05   -.67358E-02
   4  Prefactor     .47860E-03    472.24       -.78342E-05** at limit **
   5  norm           .0000        1.9580       -.19149E-07** at limit **
   6  Prefactor     .36082E-08    93.870       -.76613E-06** at limit **
   7  Prefactor     .92149E-08    116.32        .49150E-06** at limit **
   8  Prefactor     .79825E-07    86.558        .52458E-05** at limit **
   9  Prefactor     .63555E-06    174.54       -.22888E-06** at limit **
  10  norm          .28240E-02    611.64        .19613E-04** at limit **
  11  norm           .0000        64.521       -.20940E-06** at limit **
  12  Prefactor     .66613E-09    6.5121        .26306E-06** at limit **
  13  Prefactor     .52902E-07    70.749       -.46398E-05** at limit **
  14  Prefactor     .22204E-09    52.841       -.23821E-06** at limit **
  15  norm          .55511E-10    3.0911       -.13064E-06** at limit **
  16  Prefactor     .14009E-05    9.6177       -.66155E-05** at limit **
  17  Prefactor     .71609E-08    77.553       -.19319E-05** at limit **
  18  Prefactor     .97922E-07    31.716        .73003E-06** at limit **
  19  norm           .0000        .74930       -.63513E-07** at limit **
  20  norm          41.179        25.584       -.23711E-05   -.87228E-01
  21  Prefactor     4.7573        5.4020       -.53052E-06   -.42460E-02
  22  Prefactor     42.484        44.316       -.14265E-05   -.16952    
  23  Prefactor     .20373E-07    75.624        .31153E-05** at limit **
  24  norm          42.789        7.3813        .86980E-07    .76531E-02
  25  Prefactor     1.1796        55.806       -.15549E-04   -.46211E-02
  26  Normalizat    .10000E-01    .10265        .69442E-05** at limit **
  27  Prefactor     1.4036        .25073        .46584E-04    .27790E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.917
  Prefactor  = 261159
  Prefactor  = 3.0933
  Prefactor  = 0.000478601
  norm       = 0
  Prefactor  = 3.60822e-09
  Prefactor  = 9.21485e-09
  Prefactor  = 7.9825e-08
  Prefactor  = 6.35547e-07
  norm       = 0.00282396
  norm       = 0
  Prefactor  = 6.66134e-10
  Prefactor  = 5.29021e-08
  Prefactor  = 2.22045e-10
  norm       = 5.55112e-11
  Prefactor  = 1.40093e-06
  Prefactor  = 7.16094e-09
  Prefactor  = 9.79217e-08
  norm       = 0
  norm       = 41.1793
  Prefactor  = 4.75734
  Prefactor  = 42.4836
  Prefactor  = 2.03726e-08
  norm       = 42.7892
  Prefactor  = 1.17961
  Normalizat = 0.01
  Prefactor  = 1.40355
 **********
 **   18 **HESSE 
 **********

 FCN=   1659.959     FROM HESSE     STATUS=OK           540 CALLS     2913 TOTAL
                     EDM=   .50E-02    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.917        .14452E+06    .25956E-03   -1.5631    
   2  Prefactor     .26116E+06    69580.        .23747E-04   -.49802    
   3  Prefactor     3.0933        .61418E+06    .58529E-03   -1.5673    
   4  Prefactor     .47860E-03    558.13        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm           .0000        1.9595        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .36082E-08    93.787        .11892E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .92149E-08    116.22        .10502E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .79825E-07    86.541        .12498E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .63555E-06    174.32        .84633E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .28240E-02    1113.6        .69101E-03   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm           .0000        64.492        .15034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .66613E-09    6.5342        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .52902E-07    70.761        .11987E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .22204E-09    52.790        .17142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .55511E-10    3.0927        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .14009E-05    91.670        .15852E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .71609E-08    31.074        .70473E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .97922E-07    31.731        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm           .0000        .74908        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          41.179        25.726        .15482E-03   -1.5580    
  21  Prefactor     4.7573        5.4059        .46090E-03   -1.5664    
  22  Prefactor     42.484        54.925        .15353E-03   -1.5578    
  23  Prefactor     .20373E-07    73.794        .14706E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          42.789        7.3861        .15274E-03   -1.5577    
  25  Prefactor     1.1796        18.049        .86794E-02   -1.5686    
  26  Normalizat    .10000E-01    .87092E-01    .18240       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     1.4036        .26653        .57709E-01   -.80278    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 0.00503993
Minuit parameter uncertainties:
  1  3012.27
  2  69874
  3  1758.78
  4  1.03377
  5  4.3449e-06
  6  0.00116126
  7  0.00207097
  8  0.00525602
  9  0.021052
  10  3.54732
  11  7.6895e-05
  12  0.000131267
  13  0.00386947
  14  0.000223928
  15  2.46843e-05
  16  0.0226652
  17  0.000942145
  18  0.00352496
  19  5.86907e-06
  20  25.7265
  21  5.40591
  22  54.9254
  23  0.00245308
  24  7.38611
  25  9.22847
  26  3.7128e-07
  27  0.26679
Done.

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

Extracting fit parameters...

4FGL J1131.0+3815
   Spectrum: LogParabola
342         norm:  5.551e-11  2.468e-05  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:  1.404e+00  2.668e-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.000e-02  3.713e-07  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/20074/likelihoodResults_698630401_699235201_4FGL_J1131.0+3815_weekly_bin760.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) = 1659.96051535
delta logL = -0.00143919866809

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1659.95907685
delta logL = -6.96418965163e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .34578E-06   1.0000          .0000       .10000E+07
     2 'alpha     '    .43357       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4035       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   1659.959     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      253 TOTAL
                     EDM=   .13E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        1.9513        .42118E-03** at limit **
   2  alpha         3.0097        1.3085        .30008E-04     .0000    
   3  Normalizat    .10000E-01    .25505        .15449E-04** at limit **
   4  Prefactor     1.4035        1.0601        .62885E-05   -.20380E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  alpha      = 3.00972
  Normalizat = 0.01
  Prefactor  = 1.40355
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   1659.959     FROM HESSE     STATUS=FAILED         7 CALLS      260 TOTAL
                     EDM=   .13E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        1.9513        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7500        1.3085        .30008E-04    .20533    
   3  Normalizat    .10000E-01    .25505        .15449E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.4035        1.0601        .62885E-05   -.80278    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.28973e-12
Minuit parameter uncertainties:
  1  1.00388e-06
  2  1.38056
  3  1.73842e-07
  4  1.07727
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/20074': 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): 101
logL (Free Index) = 1659.95907615
delta logL = 1.666649041e-10

Extracting fit parameters...

4FGL J1131.0+3815
   Spectrum: LogParabola
342         norm:  0.000e+00  1.004e-06  0.000e+00  1.000e+06 ( 1.000e-12)
343        alpha:  3.010e+00  1.381e+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:  1.404e+00  1.077e+00  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.000e-02  1.738e-07  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/20074/cmap_HighResolution_698630401_699235201_4FGL_J1131.0+3815_weekly_bin760.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.66e-05', job_status='DONE', photon_flux_upper_limit='2.45e-07', time_completed='2023-02-28 01:10:20.964006', job_id='20074', GAL2='1.40', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1677575420.96', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.40', dlogl='1.67e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='760' AND source_name='4FGL J1131.0+3815' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Feb 28 01:10:20 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 20074: <4FGL_J1131.0+3815_weekly_bin760> in cluster <slac> Done

Job <4FGL_J1131.0+3815_weekly_bin760> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Feb 28 01:00:35 2023
Job was executed on host(s) <bullet0222>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb 28 01:00:37 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb 28 01:00:37 2023
Terminated at Tue Feb 28 01:10:21 2023
Results reported at Tue Feb 28 01:10:21 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1131.0+3815_weekly_bin760 172.755 38.2565 698630401 699235201 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 :                                   484.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             315.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   585 sec.
    Turnaround time :                            586 sec.

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

