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


Performing analysis on: 4FGL_J1111.8+4858_daily_bin1730
RA = 167.969, Dec = 48.9798
tmin = 687744001, tmax = 688003201
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='590201', job_status='RUN', time_executed='2022-10-21 08:32:06.684581', time_epoch_executed='1666366326.68' WHERE source_name='4FGL J1111.8+4858' and cadence='daily' and bin_id='1730'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/590201

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/590201/ft1_4FGL_J1111.8+4858_daily_bin1730.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/590201/ft2_4FGL_J1111.8+4858_daily_bin1730.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/590201/ft1_4FGL_J1111.8+4858_daily_bin1730.fits outfile=/scratch/kocevski/590201/ft1_filteredMKT_4FGL_J1111.8+4858_daily_bin1730.fits ra=167.969 dec=48.9798 rad=12.0 tmin=687744001.0 tmax=688003201.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 4.96
user 4.66
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/590201/ft2_4FGL_J1111.8+4858_daily_bin1730.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/590201/ft2_4FGL_J1111.8+4858_daily_bin1730.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/590201/ft1_filteredMKT_4FGL_J1111.8+4858_daily_bin1730.fits evtable="EVENTS" outfile="/scratch/kocevski/590201/ft1_filtered_4FGL_J1111.8+4858_daily_bin1730.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.58
user 0.34
sys 0.14

Number of photons that the gtmktime cut: 632

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/590201/ft1_filtered_4FGL_J1111.8+4858_daily_bin1730.fits" evtable="EVENTS" scfile=/scratch/kocevski/590201/ft2_4FGL_J1111.8+4858_daily_bin1730.fits sctable="SC_DATA" outfile=/scratch/kocevski/590201/ltcube_687744001_688003201_4FGL_J1111.8+4858_daily_bin1730.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/590201/ft2_4FGL_J1111.8+4858_daily_bin1730.fits
.....................!
real 12.43
user 12.00
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/590201/ft1_filtered_4FGL_J1111.8+4858_daily_bin1730.fits evtable="EVENTS" scfile=/scratch/kocevski/590201/ft2_4FGL_J1111.8+4858_daily_bin1730.fits sctable="SC_DATA" expcube=/scratch/kocevski/590201/ltcube_687744001_688003201_4FGL_J1111.8+4858_daily_bin1730.fits outfile=/scratch/kocevski/590201/expmap_687744001_688003201_4FGL_J1111.8+4858_daily_bin1730.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/590201/ltcube_687744001_688003201_4FGL_J1111.8+4858_daily_bin1730.fits
.....................!
real 191.99
user 185.04
sys 6.09

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 220 point sources and 0 extended sources

Setting source of interest to:
4FGL J1111.8+4858 @ 167.969 48.9798

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/590201/ft1_filtered_4FGL_J1111.8+4858_daily_bin1730.fits scfile=/scratch/kocevski/590201/ft2_4FGL_J1111.8+4858_daily_bin1730.fits outfile=/scratch/kocevski/590201/cmap_687744001_688003201_4FGL_J1111.8+4858_daily_bin1730.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=167.969 yref=48.9798 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.54
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/590201/ft1_filtered_4FGL_J1111.8+4858_daily_bin1730.fits scfile=/scratch/kocevski/590201/ft2_4FGL_J1111.8+4858_daily_bin1730.fits outfile=/scratch/kocevski/590201/cmap_HighResolution_687744001_688003201_4FGL_J1111.8+4858_daily_bin1730.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=167.969 yref=48.9798 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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/590201/ft1_filtered_4FGL_J1111.8+4858_daily_bin1730.fits evtable="EVENTS" scfile=/scratch/kocevski/590201/ft2_4FGL_J1111.8+4858_daily_bin1730.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/590201/Model_4FGL_J1111.8+4858_daily_bin1730.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/590201/ft1_filtered_4FGL_J1111.8+4858_daily_bin1730.fits.....................!
real 60.15
user 58.45
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/590201/ft1_filtered_4FGL_J1111.8+4858_daily_bin1730.fits', '/scratch/kocevski/590201/ft2_4FGL_J1111.8+4858_daily_bin1730.fits', expMap='/scratch/kocevski/590201/expmap_687744001_688003201_4FGL_J1111.8+4858_daily_bin1730.fits', expCube='/scratch/kocevski/590201/ltcube_687744001_688003201_4FGL_J1111.8+4858_daily_bin1730.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/590201/Model_4FGL_J1111.8+4858_daily_bin1730.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1111.8+4858'

4FGL J1111.8+4858
   Spectrum: PowerLaw
372    Prefactor:  2.239e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-15)
373        Index:  1.825e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
374        Scale:  5.853e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/590201/ft1_filtered_4FGL_J1111.8+4858_daily_bin1730.fits
Spacecraft file(s): /scratch/kocevski/590201/ft2_4FGL_J1111.8+4858_daily_bin1730.fits
Exposure map: /scratch/kocevski/590201/expmap_687744001_688003201_4FGL_J1111.8+4858_daily_bin1730.fits
Exposure cube: /scratch/kocevski/590201/ltcube_687744001_688003201_4FGL_J1111.8+4858_daily_bin1730.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/590201/Model_4FGL_J1111.8+4858_daily_bin1730.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) = 6921.21806766

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .82474E-03   1.0000          .0000       .10000E+07
     2 'norm      '    .29810E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    .41215E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .29302E-02   1.0000          .0000       .10000E+07
     5 'norm      '    1.0329       1.0000          .0000       .10000E+07
     6 'Prefactor '    .12460       1.0000          .0000       .10000E+07
     7 'Prefactor '    25.549       1.0000          .0000       .10000E+07
     8 'norm      '    1.1079       1.0000          .0000       .10000E+07
     9 'Prefactor '    .22174E-01   1.0000          .0000       .10000E+07
    10 'norm      '    1.9247       1.0000          .0000       .10000E+07
    11 'Prefactor '    .46068E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    1.4332       1.0000          .0000       .10000E+07
    13 'Prefactor '    55.111       1.0000          .0000       .10000E+07
    14 'norm      '    21.428       1.0000          .0000       .10000E+07
    15 'Prefactor '    3.4028       1.0000          .0000       .10000E+07
    16 'Prefactor '    6.3649       1.0000          .0000       .10000E+07
    17 'norm      '    .19771E-05   1.0000          .0000       .10000E+07
    18 'Prefactor '    29.310       1.0000          .0000       .10000E+07
    19 'norm      '    1.9554       1.0000          .0000       .10000E+07
    20 'norm      '    .77476E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    .15081E-03   1.0000          .0000       .10000E+07
    22 'Prefactor '    1.9017       1.0000          .0000       .10000E+07
    23 'Prefactor '    .13031E-04   1.0000          .0000       .10000E+07
    24 'norm      '    .22100E-03   1.0000          .0000       .10000E+07
    25 'norm      '    .19259E-03   1.0000          .0000       .10000E+07
    26 'Normalizat'    1.1951       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .90235       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6921.206     FROM MIGRAD    STATUS=CONVERGED    190 CALLS     2376 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.9010        .25266E-06** at limit **
   2  norm           .0000        2.3108        .10442E-06** at limit **
   3  Prefactor     .13323E-08    11.268       -.94454E-07** at limit **
   4  Prefactor      .0000        4.2040        .73639E-07** at limit **
   5  norm          1.0328        1.2356       -.56372E-07   -.25101E-03
   6  Prefactor     .55511E-10    35.356       -.12481E-06** at limit **
   7  Prefactor     25.774        10.640       -.51460E-07    .58996E-01
   8  norm          1.1088        1.1718        .46704E-07    .34877E-04
   9  Prefactor      .0000        22.640       -.19724E-06** at limit **
  10  norm          1.9245        .38755       -.89902E-09    .36430E-03
  11  Prefactor     .14988E-08    9.6481       -.85855E-07** at limit **
  12  Prefactor     1.4368        23.021       -.72323E-06   -.19464E-01
  13  Prefactor     55.707        31.901       -.44364E-07    .14739    
  14  norm          21.842        38.101       -.36062E-06   -.12602E-01
  15  Prefactor     3.4119        6.9750        .83889E-07   -.13359E-02
  16  Prefactor     6.3528        6.6108       -.38596E-06    .34035E-01
  17  norm           .0000        .93371        .26819E-07** at limit **
  18  Prefactor     29.371        5.2905       -.79481E-07    .53196E-01
  19  norm          1.9713        1.3775       -.12249E-06   -.36597E-02
  20  norm          .66169E-07    14.302        .18646E-06** at limit **
  21  Prefactor      .0000        1.8592       -.87843E-07** at limit **
  22  Prefactor     .23735        2528.4       -.92830E-06** at limit **
  23  Prefactor     .55511E-10    6.4370       -.17622E-06** at limit **
  24  norm           .0000        2.2717       -.50247E-07** at limit **
  25  norm          .13800E-06    16.468       -.12298E-05** at limit **
  26  Normalizat    1.1953        .18169       -.34110E-06    .14961E-04
  27  Prefactor     .90225        .23032        .34714E-05    .17812E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 0
  Prefactor  = 1.33227e-09
  Prefactor  = 0
  norm       = 1.03282
  Prefactor  = 5.55112e-11
  Prefactor  = 25.7739
  norm       = 1.10881
  Prefactor  = 0
  norm       = 1.92449
  Prefactor  = 1.4988e-09
  Prefactor  = 1.43682
  Prefactor  = 55.7073
  norm       = 21.8421
  Prefactor  = 3.41192
  Prefactor  = 6.35279
  norm       = 0
  Prefactor  = 29.3714
  norm       = 1.97134
  norm       = 6.61693e-08
  Prefactor  = 0
  Prefactor  = 0.237348
  Prefactor  = 5.55112e-11
  norm       = 0
  norm       = 1.38001e-07
  Normalizat = 1.1953
  Prefactor  = 0.90225
 **********
 **   18 **HESSE 
 **********

 FCN=   6921.206     FROM HESSE     STATUS=OK           544 CALLS     2920 TOTAL
                     EDM=   .31E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.9029        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm           .0000        2.2816        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .13323E-08    11.275        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        4.1762        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.0328        1.3851        .23002E-02   -1.5688    
   6  Prefactor     .55511E-10    35.623        .13311E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     25.774        64.283        .19788E-03   -1.5606    
   8  norm          1.1088        1.1736        .11233E-03   -1.5687    
   9  Prefactor      .0000        22.562        .16898E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.9245        .38872        .49965E-03   -1.5680    
  11  Prefactor     .14988E-08    9.6869        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.4368        23.852        .90168E-03   -1.5684    
  13  Prefactor     55.707        69.956        .13471E-03   -1.5559    
  14  norm          21.842        38.575        .21609E-03   -1.5614    
  15  Prefactor     3.4119        7.1814        .54819E-03   -1.5671    
  16  Prefactor     6.3528        21.119        .39761E-03   -1.5658    
  17  norm           .0000        .93178        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     29.371        47.961        .18474E-03   -1.5600    
  19  norm          1.9713        1.5760        .74168E-03   -1.5680    
  20  norm          .66169E-07    14.647        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor      .0000        1.8502        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .23735        90.556        .14447E-01   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .55511E-10    6.4445        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm           .0000        2.2363        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .13800E-06    16.878        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.1953        .15818        .35013E-01   -.86748    
  27  Prefactor     .90225        .19939        .71050E-01   -.96063    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.08293e-06
Minuit parameter uncertainties:
  1  1.48104e-05
  2  1.16415e-08
  3  0.000246217
  4  1.05005e-05
  5  1.38508
  6  7.31997e-05
  7  64.2851
  8  1.17357
  9  2.63504e-05
  10  0.388721
  11  0.000240525
  12  11.7083
  13  69.9567
  14  38.5752
  15  7.1814
  16  21.119
  17  2.47704e-07
  18  47.9616
  19  1.57599
  20  0.00196856
  21  1.79398e-06
  22  9.27229
  23  3.48753e-05
  24  2.7711e-06
  25  0.00305258
  26  0.158245
  27  0.199554
Done.

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

Extracting fit parameters...

4FGL J1111.8+4858
   Spectrum: PowerLaw
372    Prefactor:  5.571e+01  6.996e+01  0.000e+00  1.000e+06 ( 1.000e-15)
373        Index:  1.825e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
374        Scale:  5.853e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
697    Prefactor:  9.023e-01  1.996e-01  0.000e+00  1.000e+01 ( 1.000e+00)
698        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
699        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
696   Normalization:  1.195e+00  1.582e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.10
Ra Dec: 167.969 48.980
Photon Index (Fixed Index): 1.82 +/- 0.00
Photon Flux (Fixed Index): 1.13e-08 +/- 1.42e-08
Energy Flux (Fixed Index): 1.26e-05 +/- 1.58e-05

TS (Fixed Index): 1.10
Ra Dec: 167.969 48.980
Photon Flux Upper Limit: 5.04e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.72e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/590201/likelihoodResults_687744001_688003201_4FGL_J1111.8+4858_daily_bin1730.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) = 6921.14727883
delta logL = 0.0589313861738

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6921.14315727
delta logL = 0.0630529434784

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    36.196       1.0000          .0000       .10000E+07
     2 'Index     '    2.0725       1.0000          .0000       10.000    
     3 'Normalizat'    1.1917       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90291       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6921.143     FROM MIGRAD    STATUS=CONVERGED     67 CALLS      282 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     36.072        1494.6        .16623E-03   -.14642E-02
   2  Index         2.0752        3.1269        .11678        .13574E-04
   3  Normalizat    1.1915        .61300E-01    .35099E-01   -.19962E-04
   4  Prefactor     .90368        .67670E-01    .70995E-01    .12875E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 36.0723
  Index      = 2.07519
  Normalizat = 1.1915
  Prefactor  = 0.90368
 **********
 **   18 **HESSE 
 **********

 FCN=   6921.143     FROM HESSE     STATUS=OK            31 CALLS      313 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     36.072        84.973        .66493E-05   -1.5588    
   2  Index         2.0752        .86419        .64613E-02   -.62483    
   3  Normalizat    1.1915        .17861        .21714E-03   -.86866    
   4  Prefactor     .90368        .22876        .31411E-03   -.96013    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49329e-10
Minuit parameter uncertainties:
  1  84.9761
  2  0.870871
  3  0.178703
  4  0.229002
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/590201': 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) = 6921.14313203
delta logL = 0.0630781856216

Extracting fit parameters...

4FGL J1111.8+4858
   Spectrum: PowerLaw
372    Prefactor:  3.607e+01  8.498e+01  0.000e+00  1.000e+06 ( 1.000e-15)
373        Index:  2.075e+00  8.709e-01  0.000e+00  1.000e+01 (-1.000e+00)
374        Scale:  5.853e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
697    Prefactor:  9.037e-01  2.290e-01  0.000e+00  1.000e+01 ( 1.000e+00)
698        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
699        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
696   Normalization:  1.192e+00  1.787e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.23
Ra Dec: 167.969 48.980
Photon Index (Free Index): 2.08 +/- 0.87
Photon Flux (Free Index): 1.56e-08 +/- 2.14e-08
Energy Flux (Free Index): 9.04e-06 +/- 1.55e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/590201/cmap_HighResolution_687744001_688003201_4FGL_J1111.8+4858_daily_bin1730.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.72e-03', comment='SUCCESS', photon_flux='1.13e-08', energy_flux2='9.04e-06', photon_flux_error='1.42e-08', dlogl='6.31e-02', energy_flux='1.26e-05', photon_flux2='1.56e-08', job_status='DONE', time_completed='2022-10-21 08:45:34.224763', photon_index_error2='0.87', photon_index2='2.08', ts='1.10', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='5.04e-08', energy_flux_error2='1.55e-05', EG='1.20', time_epoch_completed='1666367134.22', return_code='0', job_id='590201', GAL2='0.90', EG2='1.19', return_code2='0', energy_flux_error='1.58e-05', photon_flux_error2='2.14e-08', ts2='1.23', photon_index='1.82' WHERE bin_id='1730' AND source_name='4FGL J1111.8+4858' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Oct 21 08:45:34 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0195>
Subject: Job 590201: <4FGL_J1111.8+4858_daily_bin1730> in cluster <slac> Done

Job <4FGL_J1111.8+4858_daily_bin1730> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Fri Oct 21 08:30:27 2022
Job was executed on host(s) <bullet0195>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Oct 21 08:30:28 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Oct 21 08:30:28 2022
Terminated at Fri Oct 21 08:45:35 2022
Results reported at Fri Oct 21 08:45:35 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1111.8+4858_daily_bin1730 167.969 48.9798 687744001 688003201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1111.8+4858 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   807.53 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             281.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   906 sec.
    Turnaround time :                            908 sec.

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

