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


Performing analysis on: 4FGL_J1131.0+3815_daily_bin1760
RA = 172.755, Dec = 38.2565
tmin = 695520001, tmax = 695779201
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='734889', job_status='RUN', time_executed='2023-01-19 00:46:41.200957', time_epoch_executed='1674118001.2' WHERE source_name='4FGL J1131.0+3815' and cadence='daily' and bin_id='1760'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/734889

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/734889/ft1_4FGL_J1131.0+3815_daily_bin1760.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/734889/ft2_4FGL_J1131.0+3815_daily_bin1760.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/734889/ft1_4FGL_J1131.0+3815_daily_bin1760.fits outfile=/scratch/kocevski/734889/ft1_filteredMKT_4FGL_J1131.0+3815_daily_bin1760.fits ra=172.755 dec=38.2565 rad=12.0 tmin=695520001.0 tmax=695779201.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 2.45
user 2.21
sys 0.19

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

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

Number of photons that the gtmktime cut: 568

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/734889/ft1_filtered_4FGL_J1131.0+3815_daily_bin1760.fits evtable="EVENTS" scfile=/scratch/kocevski/734889/ft2_4FGL_J1131.0+3815_daily_bin1760.fits sctable="SC_DATA" expcube=/scratch/kocevski/734889/ltcube_695520001_695779201_4FGL_J1131.0+3815_daily_bin1760.fits outfile=/scratch/kocevski/734889/expmap_695520001_695779201_4FGL_J1131.0+3815_daily_bin1760.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/734889/ltcube_695520001_695779201_4FGL_J1131.0+3815_daily_bin1760.fits
.....................!
real 193.34
user 187.38
sys 4.80

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/734889/ft1_filtered_4FGL_J1131.0+3815_daily_bin1760.fits scfile=/scratch/kocevski/734889/ft2_4FGL_J1131.0+3815_daily_bin1760.fits outfile=/scratch/kocevski/734889/cmap_695520001_695779201_4FGL_J1131.0+3815_daily_bin1760.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/734889/ft1_filtered_4FGL_J1131.0+3815_daily_bin1760.fits scfile=/scratch/kocevski/734889/ft2_4FGL_J1131.0+3815_daily_bin1760.fits outfile=/scratch/kocevski/734889/cmap_HighResolution_695520001_695779201_4FGL_J1131.0+3815_daily_bin1760.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.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26390E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    6.4775       1.0000          .0000       .10000E+07
     3 'Prefactor '    .81317E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    6.7738       1.0000          .0000       .10000E+07
     5 'norm      '    2.6644       1.0000          .0000       .10000E+07
     6 'Prefactor '    1.1576       1.0000          .0000       .10000E+07
     7 'Prefactor '    .43024E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    .54112E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .23284E-03   1.0000          .0000       .10000E+07
    10 'norm      '    23.148       1.0000          .0000       .10000E+07
    11 'norm      '    .19372E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    .18017       1.0000          .0000       .10000E+07
    13 'Prefactor '    .38555E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    .69328E-01   1.0000          .0000       .10000E+07
    15 'norm      '    3.9154       1.0000          .0000       .10000E+07
    16 'Prefactor '    13.553       1.0000          .0000       .10000E+07
    17 'Prefactor '    .24036E-07   1.0000          .0000       .10000E+07
    18 'Prefactor '    49.385       1.0000          .0000       .10000E+07
    19 'norm      '    2.7804       1.0000          .0000       .10000E+07
    20 'norm      '    .91102E-05   1.0000          .0000       .10000E+07
    21 'Prefactor '    13.438       1.0000          .0000       .10000E+07
    22 'Prefactor '    .97757E-03   1.0000          .0000       .10000E+07
    23 'Prefactor '    .43636E-02   1.0000          .0000       .10000E+07
    24 'norm      '    78.324       1.0000          .0000       .10000E+07
    25 'Prefactor '    3.7024       1.0000          .0000       .10000E+07
    26 'Normalizat'    .80502       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .90980       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=   5920.650     FROM MIGRAD    STATUS=CONVERGED    317 CALLS     2535 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    36.574        .94824E-05** at limit **
   2  Prefactor     6.3002        15.799       -.58821E-06    .29736E-03
   3  Prefactor      .0000        34.073       -.12084E-05** at limit **
   4  Prefactor     13.900        501.27        .23820E-04    .35070E-03
   5  norm          2.6635        .65015        .10911E-07    .64778E-02
   6  Prefactor     1.1524        3.0050       -.11754E-06    .46333E-03
   7  Prefactor      .0000        12.418        .55580E-06** at limit **
   8  Prefactor      .0000        12.481        .17080E-06** at limit **
   9  Prefactor     .83267E-09    296.04        .49329E-04** at limit **
  10  norm          23.179        19.609       -.43095E-07    .27822E-03
  11  norm          .22204E-09    68.722       -.89252E-05** at limit **
  12  Prefactor     .16067        21.087        .59790E-06** at limit **
  13  Prefactor     .11102E-09    37.212       -.98769E-05** at limit **
  14  Prefactor     .11102E-09    140.53       -.64864E-06** at limit **
  15  norm          3.9578        3.5843        .47575E-06    .95155E-03
  16  Prefactor     13.709        15.170        .76873E-07    .78898E-03
  17  Prefactor      .0000        2.5229       -.64100E-07** at limit **
  18  Prefactor     44.903        65.598       -.12608E-04    .40557E-03
  19  norm          2.8308        1.8044        .55486E-06    .10889E-02
  20  norm           .0000        8.1741        .10248E-06** at limit **
  21  Prefactor     13.464        7.8172        .25731E-06    .39517E-03
  22  Prefactor     .55511E-10    99.749        .86318E-05** at limit **
  23  Prefactor      .0000        57.982        .60766E-05** at limit **
  24  norm          78.334        5.3888        .45640E-07    .83601E-03
  25  Prefactor     3.6335        7.8094       -.23831E-06   -.33969E-03
  26  Normalizat    .80680        .29414        .15033E-04    .14599E-03
  27  Prefactor     .90808        .31737       -.14748E-04    .12731E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  Prefactor  = 6.30025
  Prefactor  = 0
  Prefactor  = 13.9005
  norm       = 2.66352
  Prefactor  = 1.15238
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 8.32667e-10
  norm       = 23.179
  norm       = 2.22045e-10
  Prefactor  = 0.160672
  Prefactor  = 1.11022e-10
  Prefactor  = 1.11022e-10
  norm       = 3.95785
  Prefactor  = 13.7092
  Prefactor  = 0
  Prefactor  = 44.9027
  norm       = 2.83082
  norm       = 0
  Prefactor  = 13.4644
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  norm       = 78.3335
  Prefactor  = 3.6335
  Normalizat = 0.806804
  Prefactor  = 0.908085
 **********
 **   18 **HESSE 
 **********

 FCN=   5920.650     FROM HESSE     STATUS=OK           554 CALLS     3089 TOTAL
                     EDM=   .55E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    36.526        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.3002        15.839        .39410E-03   -1.5658    
   3  Prefactor      .0000        34.020        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     13.900        491.62        .38528E-03   -1.5633    
   5  norm          2.6635        .64622        .62415E-03   -1.5675    
   6  Prefactor     1.1524        3.0769        .10719E-02   -1.5686    
   7  Prefactor      .0000        12.410        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        12.479        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .83267E-09    294.81        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          23.179        19.534        .20790E-03   -1.5612    
  11  norm          .22204E-09    68.337        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .16067        1.8400        .69152E-02   -1.5716    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .11102E-09    37.187        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .11102E-09    13.295        .14840E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.9578        3.5004        .50962E-03   -1.5668    
  16  Prefactor     13.709        16.076        .27182E-03   -1.5634    
  17  Prefactor      .0000        2.5177        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     44.903        65.281        .14231E-03   -1.5574    
  19  norm          2.8308        1.8097        .61000E-03   -1.5674    
  20  norm           .0000        8.1702        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     13.464        7.7818        .27298E-03   -1.5635    
  22  Prefactor     .55511E-10    99.719        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor      .0000        57.876        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          78.334        5.3970        .11300E-03   -1.5531    
  25  Prefactor     3.6335        7.7795        .52460E-03   -1.5670    
  26  Normalizat    .80680        .23551        .79437E-01   -.99817    
  27  Prefactor     .90808        .25490        .85120E-01   -.95859    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.5384e-08
Minuit parameter uncertainties:
  1  8.42487e-05
  2  15.8388
  3  5.90436e-05
  4  165.348
  5  0.646221
  6  3.07693
  7  1.27491e-05
  8  5.3508e-06
  9  0.000980729
  10  19.5336
  11  0.000244968
  12  1.08744
  13  0.000129863
  14  7.08022e-05
  15  3.50045
  16  16.0756
  17  3.45152e-06
  18  65.2823
  19  1.8097
  20  2.69765e-05
  21  7.78183
  22  0.000159162
  23  5.02696e-05
  24  5.39702
  25  7.77956
  26  0.23581
  27  0.255238
Done.

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

Extracting fit parameters...

4FGL J1131.0+3815
   Spectrum: LogParabola
342         norm:  3.958e+00  3.500e+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.081e-01  2.552e-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.068e-01  2.358e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.37
Ra Dec: 172.755 38.257
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 5.35e-08 +/- 4.73e-08
Energy Flux (Fixed Index): 1.68e-05 +/- 1.48e-05

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

Saving results to:
/scratch/kocevski/734889/likelihoodResults_695520001_695779201_4FGL_J1131.0+3815_daily_bin1760.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) = 5919.55819106
delta logL = 1.09194169512

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5919.55057387
delta logL = 1.09955888396

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1443       1.0000          .0000       .10000E+07
     2 'alpha     '    3.8050       1.0000          .0000       5.0000    
     3 'Normalizat'    .72471       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96964       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=   5919.551     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      248 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1437        11.508        .10636E-02    .10257E-01
   2  alpha         3.8057        4.2547        .27090        .78138E-04
   3  Normalizat    .72467        .72384E-01    .83116E-01   -.20030E-04
   4  Prefactor     .96968        .81009E-01    .82555E-01   -.44060E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.14369
  alpha      = 3.80571
  Normalizat = 0.72467
  Prefactor  = 0.96968
 **********
 **   18 **HESSE 
 **********

 FCN=   5919.551     FROM HESSE     STATUS=OK            33 CALLS      281 TOTAL
                     EDM=   .72E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1437        2.7238        .48024E-05   -1.5687    
   2  alpha         3.8057        1.2981        .11519E-01    .54953    
   3  Normalizat    .72467        .28833        .36816E-03   -1.0293    
   4  Prefactor     .96968        .32328        .36542E-03   -.93747    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.23702e-11
Minuit parameter uncertainties:
  1  2.72382
  2  1.39562
  3  0.288937
  4  0.323929
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/734889': 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) = 5919.55057309
delta logL = 1.09955965911

Extracting fit parameters...

4FGL J1131.0+3815
   Spectrum: LogParabola
342         norm:  1.144e+00  2.724e+00  0.000e+00  1.000e+06 ( 1.000e-12)
343        alpha:  3.806e+00  1.396e+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:  9.697e-01  3.239e-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:  7.247e-01  2.889e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.65
Ra Dec: 172.755 38.257
Photon Index (Free Index): 3.81 +/- 1.40
Photon Flux (Free Index): 1.32e-07 +/- 8.79e-08
Energy Flux (Free Index): 2.25e-05 +/- 1.38e-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/734889/cmap_HighResolution_695520001_695779201_4FGL_J1131.0+3815_daily_bin1760.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.99e-05', comment='SUCCESS', photon_flux='5.35e-08', energy_flux2='2.25e-05', photon_flux_error='4.73e-08', dlogl='1.10e+00', energy_flux='1.68e-05', photon_flux2='1.32e-07', job_status='DONE', time_completed='2023-01-19 00:59:20.333516', photon_index_error2='1.40', photon_index2='3.81', ts='2.37', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='1.60e-07', energy_flux_error2='1.38e-05', EG='0.81', time_epoch_completed='1674118760.33', return_code='0', job_id='734889', GAL2='0.97', EG2='0.72', return_code2='0', energy_flux_error='1.48e-05', photon_flux_error2='8.79e-08', ts2='4.65', photon_index='2.55' WHERE bin_id='1760' AND source_name='4FGL J1131.0+3815' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Jan 19 00:59:20 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0110>
Subject: Job 734889: <4FGL_J1131.0+3815_daily_bin1760> in cluster <slac> Done

Job <4FGL_J1131.0+3815_daily_bin1760> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Jan 19 00:45:16 2023
Job was executed on host(s) <bullet0110>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jan 19 00:46:12 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jan 19 00:46:12 2023
Terminated at Thu Jan 19 00:59:21 2023
Results reported at Thu Jan 19 00:59:21 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1131.0+3815_daily_bin1760 172.755 38.2565 695520001 695779201 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 :                                   759.46 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             340.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   788 sec.
    Turnaround time :                            845 sec.

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

