/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 121 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J1111.8+4858_daily_bin1627
RA = 167.969, Dec = 48.9798
tmin = 661046401, tmax = 661305601
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='370927', job_status='RUN', time_executed='2021-12-16 08:32:37.625618', time_epoch_executed='1639672357.63' WHERE source_name='4FGL J1111.8+4858' and cadence='daily' and bin_id='1627'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/370927

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/370927/ft1_4FGL_J1111.8+4858_daily_bin1627.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/370927/ft2_4FGL_J1111.8+4858_daily_bin1627.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/370927/ft1_4FGL_J1111.8+4858_daily_bin1627.fits outfile=/scratch/kocevski/370927/ft1_filteredMKT_4FGL_J1111.8+4858_daily_bin1627.fits ra=167.969 dec=48.9798 rad=12.0 tmin=661046401.0 tmax=661305601.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.76
user 2.48
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/370927/ft2_4FGL_J1111.8+4858_daily_bin1627.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/370927/ft1_filteredMKT_4FGL_J1111.8+4858_daily_bin1627.fits evtable="EVENTS" outfile="/scratch/kocevski/370927/ft1_filtered_4FGL_J1111.8+4858_daily_bin1627.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.46
user 0.24
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/370927/ft1_filtered_4FGL_J1111.8+4858_daily_bin1627.fits" evtable="EVENTS" scfile=/scratch/kocevski/370927/ft2_4FGL_J1111.8+4858_daily_bin1627.fits sctable="SC_DATA" outfile=/scratch/kocevski/370927/ltcube_661046401_661305601_4FGL_J1111.8+4858_daily_bin1627.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/370927/ft2_4FGL_J1111.8+4858_daily_bin1627.fits
.....................!
real 8.95
user 8.59
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/370927/ft1_filtered_4FGL_J1111.8+4858_daily_bin1627.fits evtable="EVENTS" scfile=/scratch/kocevski/370927/ft2_4FGL_J1111.8+4858_daily_bin1627.fits sctable="SC_DATA" expcube=/scratch/kocevski/370927/ltcube_661046401_661305601_4FGL_J1111.8+4858_daily_bin1627.fits outfile=/scratch/kocevski/370927/expmap_661046401_661305601_4FGL_J1111.8+4858_daily_bin1627.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/370927/ltcube_661046401_661305601_4FGL_J1111.8+4858_daily_bin1627.fits
.....................!
real 142.09
user 137.69
sys 4.12

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/370927/ft1_filtered_4FGL_J1111.8+4858_daily_bin1627.fits scfile=/scratch/kocevski/370927/ft2_4FGL_J1111.8+4858_daily_bin1627.fits outfile=/scratch/kocevski/370927/cmap_661046401_661305601_4FGL_J1111.8+4858_daily_bin1627.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.49
user 0.29
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/370927/ft1_filtered_4FGL_J1111.8+4858_daily_bin1627.fits scfile=/scratch/kocevski/370927/ft2_4FGL_J1111.8+4858_daily_bin1627.fits outfile=/scratch/kocevski/370927/cmap_HighResolution_661046401_661305601_4FGL_J1111.8+4858_daily_bin1627.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.45
user 0.29
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/370927/ft1_filtered_4FGL_J1111.8+4858_daily_bin1627.fits', '/scratch/kocevski/370927/ft2_4FGL_J1111.8+4858_daily_bin1627.fits', expMap='/scratch/kocevski/370927/expmap_661046401_661305601_4FGL_J1111.8+4858_daily_bin1627.fits', expCube='/scratch/kocevski/370927/ltcube_661046401_661305601_4FGL_J1111.8+4858_daily_bin1627.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/370927/Model_4FGL_J1111.8+4858_daily_bin1627.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  1.000e-04  1.000e+04 ( 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/370927/ft1_filtered_4FGL_J1111.8+4858_daily_bin1627.fits
Spacecraft file(s): /scratch/kocevski/370927/ft2_4FGL_J1111.8+4858_daily_bin1627.fits
Exposure map: /scratch/kocevski/370927/expmap_661046401_661305601_4FGL_J1111.8+4858_daily_bin1627.fits
Exposure cube: /scratch/kocevski/370927/ltcube_661046401_661305601_4FGL_J1111.8+4858_daily_bin1627.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/370927/Model_4FGL_J1111.8+4858_daily_bin1627.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) = 6628.89526054

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.4587       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.4193       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .18087E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.4298       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    50.508       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    64.476       1.0000         .10000E-03   10000.    
    12 'norm      '    1.6670       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.3079       1.0000         .10000E-03   10000.    
    15 'Prefactor '    53.447       1.0000         .10000E-03   10000.    
    16 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.2850       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.1450       1.0000         .10000E-03   10000.    
    22 'norm      '    8.8615       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.7433       1.0000         .10000E-03   10000.    
    25 'Prefactor '    20.718       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .90264       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3129       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .38650       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6628.847     FROM MIGRAD    STATUS=CONVERGED    736 CALLS     4378 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.969       -.59124E-07** at limit **
   2  norm          1.4586        1.7371        .13857E-06    .24244E-04
   3  Prefactor     6.4181        16.267        .47928E-06   -.11910E-04
   4  Prefactor     .10080E-03    1.7193        .79784E-06** at limit **
   5  norm          2.4300        1.4612        .30776E-07   -.34006E-03
   6  Prefactor     .10000E-03    6.9862        .99321E-08** at limit **
   7  Prefactor     .10000E-03    28.512        .37420E-06** at limit **
   8  Prefactor     50.523        116.66       -.33531E-05   -.83455E-04
   9  Prefactor     .10000E-03    19.148       -.17820E-08** at limit **
  10  norm          .10000E-03    .78268        .10442E-05** at limit **
  11  Prefactor     64.540        58.812        .14802E-05   -.17457E-04
  12  norm          1.6670        .33323       -.13892E-07   -.29452E-04
  13  Prefactor     .10000E-03    7.8140        .26947E-06** at limit **
  14  Prefactor     6.3079        9.5644        .27586E-05    .92207E-04
  15  Prefactor     53.362        58.083        .24840E-07   -.81554E-04
  16  norm          .10000E-03    15.540       -.23278E-07** at limit **
  17  Prefactor     .10000E-03    2.6581        .23111E-06** at limit **
  18  Prefactor     3.2844        28.845        .17260E-05   -.13072E-04
  19  norm          .10000E-03    .97299        .13176E-06** at limit **
  20  Prefactor     .10000E-03    22.494       -.75890E-07** at limit **
  21  norm          3.1454        1.2772       -.28692E-06   -.79289E-03
  22  norm          8.8615        8.0052       -.89270E-06   -.11686E-03
  23  Prefactor     .10000E-03    1.5779        .10917E-06** at limit **
  24  Prefactor     1.6824        469.58        .94060E-05   -.53866E-05
  25  Prefactor     20.720        18.950        .21811E-06   -.10972E-03
  26  norm          .10000E-03    .48652        .12352E-07** at limit **
  27  norm          .89961        6.0100        .93395E-06   -.14117E-03
  28  Normalizat    1.3129        .15919       -.22082E-05   -.59253E-03
  29  Prefactor     .38651        .19238        .16730E-05   -.27901E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.45862
  Prefactor  = 6.41805
  Prefactor  = 0.000100805
  norm       = 2.43003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 50.5233
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 64.5402
  norm       = 1.66697
  Prefactor  = 0.0001
  Prefactor  = 6.30786
  Prefactor  = 53.3616
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.28443
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.14535
  norm       = 8.86149
  Prefactor  = 0.0001
  Prefactor  = 1.68244
  Prefactor  = 20.72
  norm       = 0.0001
  norm       = 0.899614
  Normalizat = 1.31289
  Prefactor  = 0.386514
 **********
 **   18 **HESSE 
 **********

 FCN=   6628.847     FROM HESSE     STATUS=OK           567 CALLS     4945 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.471        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.4586        1.7115        .11356E-03   -1.5466    
   3  Prefactor     6.4181        16.253        .15841E-03   -1.5201    
   4  Prefactor     .10080E-03    2.3084        .37877E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.4300        1.4597        .73907E-04   -1.5396    
   6  Prefactor     .10000E-03    6.9872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    28.519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     50.523        115.89        .56429E-04   -1.4285    
   9  Prefactor     .10000E-03    19.151        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.0527        .13107E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     64.540        59.011        .24989E-03   -1.4099    
  12  norm          1.6670        .33395        .20216E-04   -1.5450    
  13  Prefactor     .10000E-03    7.8295        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.3079        9.5535        .79910E-03   -1.5206    
  15  Prefactor     53.362        58.036        .27432E-03   -1.4246    
  16  norm          .10000E-03    15.544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.6995        .12960E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.2844        28.771        .22340E-03   -1.5345    
  19  norm          .10000E-03    1.6509        .15636E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    22.536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.1454        1.2799        .51325E-04   -1.5353    
  22  norm          8.8615        7.9948        .13465E-03   -1.5113    
  23  Prefactor     .10000E-03    3.0187        .18729E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     1.6824        490.20        .31770E-02   -1.5449    
  25  Prefactor     20.720        17.866        .87996E-04   -1.4797    
  26  norm          .10000E-03    .49120        .55446E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .89961        12.893        .37814E-02   -1.5518    
  28  Normalizat    1.3129        .16809        .18885E-03   -.83182    
  29  Prefactor     .38651        .19927        .40625E-03   -1.1750    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.70322e-08
Minuit parameter uncertainties:
  1  4.48084e-05
  2  1.71157
  3  16.2646
  4  0.00272599
  5  1.45974
  6  1.86391e-07
  7  1.71135e-05
  8  116.411
  9  8.53453e-06
  10  3.10998e-05
  11  59.0644
  12  0.333955
  13  9.36068e-06
  14  9.55577
  15  58.0978
  16  2.57306e-05
  17  6.28963e-06
  18  19.4541
  19  1.23696e-05
  20  3.94968e-05
  21  1.27995
  22  7.99578
  23  1.48683e-05
  24  57.9195
  25  17.8701
  26  1.11083e-06
  27  6.81272
  28  0.168164
  29  0.199624
Done.

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

Extracting fit parameters...

4FGL J1111.8+4858
   Spectrum: PowerLaw
372    Prefactor:  5.336e+01  5.810e+01  1.000e-04  1.000e+04 ( 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:  3.865e-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.313e+00  1.682e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.07
Ra Dec: 167.969 48.980
Photon Index (Fixed Index): 1.82 +/- 0.00
Photon Flux (Fixed Index): 1.08e-08 +/- 1.18e-08
Energy Flux (Fixed Index): 1.20e-05 +/- 1.31e-05

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

Saving results to:
/scratch/kocevski/370927/likelihoodResults_661046401_661305601_4FGL_J1111.8+4858_daily_bin1627.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) = 6627.65459071
delta logL = 1.19249509451

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6627.65184113
delta logL = 1.19524467285

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    60.633       1.0000         .10000E-03   10000.    
     2 'Index     '    .61925       1.0000          .0000       10.000    
     3 'Normalizat'    1.3160       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .39056       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6627.652     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      295 TOTAL
                     EDM=   .51E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     60.578        82.931        .25764E-03    .26035E-05
   2  Index         .61720        .77958        .21562E-01    .21038E-04
   3  Normalizat    1.3162        .16038        .18856E-03    .24660E-04
   4  Prefactor     .39073        .19684        .40413E-03    .49792E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 60.5784
  Index      = 0.617197
  Normalizat = 1.31621
  Prefactor  = 0.390729
 **********
 **   18 **HESSE 
 **********

 FCN=   6627.652     FROM HESSE     STATUS=OK            25 CALLS      320 TOTAL
                     EDM=   .68E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     60.578        85.519        .10306E-04   -1.4150    
   2  Index         .61720        .80277        .43125E-02   -1.0687    
   3  Normalizat    1.3162        .16044        .75422E-05   -.83084    
   4  Prefactor     .39073        .19692        .16165E-04   -1.1728    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.76723e-13
Minuit parameter uncertainties:
  1  85.693
  2  0.818456
  3  0.160503
  4  0.197257
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/370927': 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) = 6627.65182882
delta logL = 1.195256977

Extracting fit parameters...

4FGL J1111.8+4858
   Spectrum: PowerLaw
372    Prefactor:  6.058e+01  8.569e+01  1.000e-04  1.000e+04 ( 1.000e-15)
373        Index:  6.172e-01  8.185e-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:  3.907e-01  1.973e-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.316e+00  1.605e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.46
Ra Dec: 167.969 48.980
Photon Index (Free Index): 0.62 +/- 0.82
Photon Flux (Free Index): 2.55e-09 +/- 2.80e-09
Energy Flux (Free Index): 7.61e-05 +/- 9.88e-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/370927/cmap_HighResolution_661046401_661305601_4FGL_J1111.8+4858_daily_bin1627.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.34e-03', comment='SUCCESS', photon_flux='1.08e-08', energy_flux2='7.61e-05', photon_flux_error='1.18e-08', dlogl='1.20e+00', energy_flux='1.20e-05', photon_flux2='2.55e-09', job_status='DONE', time_completed='2021-12-16 08:45:26.417120', photon_index_error2='0.82', photon_index2='0.62', ts='2.07', fit_tolerance='1e-08', GAL='0.39', photon_index_error='0.00', photon_flux_upper_limit='4.53e-08', energy_flux_error2='9.88e-05', EG='1.31', time_epoch_completed='1639673126.42', return_code='0', job_id='370927', GAL2='0.39', EG2='1.32', return_code2='0', energy_flux_error='1.31e-05', photon_flux_error2='2.80e-09', ts2='4.46', photon_index='1.82' WHERE bin_id='1627' AND source_name='4FGL J1111.8+4858' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Dec 16 08:45:26 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 370927: <4FGL_J1111.8+4858_daily_bin1627> in cluster <slac> Done

Job <4FGL_J1111.8+4858_daily_bin1627> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Dec 16 08:30:21 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Dec 16 08:30:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Dec 16 08:30:23 2021
Terminated at Thu Dec 16 08:45:27 2021
Results reported at Thu Dec 16 08:45:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1111.8+4858_daily_bin1627 167.969 48.9798 661046401 661305601 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 :                                   768.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             291.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   903 sec.
    Turnaround time :                            906 sec.

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

