/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 6 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 = 7403
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1111.8+4858_daily_bin1402
RA = 167.969, Dec = 48.9798
tmin = 602726401, tmax = 602985601
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='599616', job_status='RUN', time_executed='2021-09-03 12:27:09.717740', time_epoch_executed='1630697229.72' WHERE source_name='4FGL J1111.8+4858' and cadence='daily' and bin_id='1402'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/599616

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/599616/ft1_4FGL_J1111.8+4858_daily_bin1402.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/599616/ft2_4FGL_J1111.8+4858_daily_bin1402.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/599616/ft1_4FGL_J1111.8+4858_daily_bin1402.fits outfile=/scratch/kocevski/599616/ft1_filteredMKT_4FGL_J1111.8+4858_daily_bin1402.fits ra=167.969 dec=48.9798 rad=12.0 tmin=602726401.0 tmax=602985601.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 3.06
user 2.85
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/599616/ft2_4FGL_J1111.8+4858_daily_bin1402.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/599616/ft1_filteredMKT_4FGL_J1111.8+4858_daily_bin1402.fits evtable="EVENTS" outfile="/scratch/kocevski/599616/ft1_filtered_4FGL_J1111.8+4858_daily_bin1402.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.34
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/599616/ft1_filtered_4FGL_J1111.8+4858_daily_bin1402.fits evtable="EVENTS" scfile=/scratch/kocevski/599616/ft2_4FGL_J1111.8+4858_daily_bin1402.fits sctable="SC_DATA" expcube=/scratch/kocevski/599616/ltcube_602726401_602985601_4FGL_J1111.8+4858_daily_bin1402.fits outfile=/scratch/kocevski/599616/expmap_602726401_602985601_4FGL_J1111.8+4858_daily_bin1402.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/599616/ltcube_602726401_602985601_4FGL_J1111.8+4858_daily_bin1402.fits
.....................!
real 191.91
user 187.00
sys 4.40

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/599616/ft1_filtered_4FGL_J1111.8+4858_daily_bin1402.fits scfile=/scratch/kocevski/599616/ft2_4FGL_J1111.8+4858_daily_bin1402.fits outfile=/scratch/kocevski/599616/cmap_602726401_602985601_4FGL_J1111.8+4858_daily_bin1402.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/599616/ft1_filtered_4FGL_J1111.8+4858_daily_bin1402.fits scfile=/scratch/kocevski/599616/ft2_4FGL_J1111.8+4858_daily_bin1402.fits outfile=/scratch/kocevski/599616/cmap_HighResolution_602726401_602985601_4FGL_J1111.8+4858_daily_bin1402.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.57
user 0.40
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/599616/ft1_filtered_4FGL_J1111.8+4858_daily_bin1402.fits', '/scratch/kocevski/599616/ft2_4FGL_J1111.8+4858_daily_bin1402.fits', expMap='/scratch/kocevski/599616/expmap_602726401_602985601_4FGL_J1111.8+4858_daily_bin1402.fits', expCube='/scratch/kocevski/599616/ltcube_602726401_602985601_4FGL_J1111.8+4858_daily_bin1402.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/599616/Model_4FGL_J1111.8+4858_daily_bin1402.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/599616/ft1_filtered_4FGL_J1111.8+4858_daily_bin1402.fits
Spacecraft file(s): /scratch/kocevski/599616/ft2_4FGL_J1111.8+4858_daily_bin1402.fits
Exposure map: /scratch/kocevski/599616/expmap_602726401_602985601_4FGL_J1111.8+4858_daily_bin1402.fits
Exposure cube: /scratch/kocevski/599616/ltcube_602726401_602985601_4FGL_J1111.8+4858_daily_bin1402.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/599616/Model_4FGL_J1111.8+4858_daily_bin1402.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) = 609.211003219

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .50947E-01   1.0000         .10000E-03   10000.    
     2 'norm      '    451.72       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .84167E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9995.0       1.0000         .10000E-03   10000.    
     5 'norm      '   10000.0       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .70368E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    179.56       1.0000         .10000E-03   10000.    
     8 'Prefactor '    52.119       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.9585       1.0000         .10000E-03   10000.    
    10 'norm      '    1605.8       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.6762       1.0000         .10000E-03   10000.    
    12 'norm      '    .10134E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13180       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.9182       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1306.2       1.0000         .10000E-03   10000.    
    16 'norm      '    .11805E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10262E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12937E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    9.4193       1.0000         .10000E-03   10000.    
    20 'Prefactor '    112.77       1.0000         .10000E-03   10000.    
    21 'norm      '    .79893       1.0000         .10000E-03   10000.    
    22 'norm      '    .87822       1.0000         .10000E-03   10000.    
    23 'Prefactor '    13.523       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10391E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    142.60       1.0000         .10000E-03   10000.    
    26 'norm      '    .10324E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    29 'Prefactor '    .76010       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=   592.6591     FROM MIGRAD    STATUS=CONVERGED    682 CALLS     3657 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10473E-03    7502.7       -.48336E-04** at limit **
   2  norm          9983.1        2012.4       -.16780E-04   -.41650E-01
   3  Prefactor     .10000E-03    2122.5        .26981E-05** at limit **
   4  Prefactor    10000.0        2163.2       -.33026E-04** at limit **
   5  norm         10000.0        720.13        .14407E-04** at limit **
   6  Prefactor     .10004E-03    6716.7       -.52347E-05** at limit **
   7  Prefactor     9999.9        6633.9        .11108E-07    .25134E-02
   8  Prefactor     9935.7        7761.5       -.67519E-04    .24673E-01
   9  Prefactor     .10000E-03    1123.5        .68798E-05** at limit **
  10  norm          855.04        349.73       -.13404E-05   -.12203    
  11  Prefactor     .10013E-03    6541.9       -.14423E-04** at limit **
  12  norm          .10000E-03    1.9537       -.22460E-07** at limit **
  13  Prefactor     .10000E-03    8872.0        .47532E-04** at limit **
  14  Prefactor     .10000E-03    394.70       -.43651E-05** at limit **
  15  Prefactor     1072.9        1441.0        .15259E-04    .52302E-01
  16  norm          .10000E-03    363.47       -.72614E-05** at limit **
  17  Prefactor     .10000E-03    26.239       -.28907E-07** at limit **
  18  Prefactor     .10000E-03    55.750        .50119E-06** at limit **
  19  norm          9.4222        11.831        .13548E-06    .35867E-04
  20  Prefactor     105.94        174.06       -.53531E-05   -.16851E-03
  21  norm          .77075        3.8726       -.26287E-05   -.14332E-03
  22  norm          .41969        441.15        .21051E-04    .13165E-04
  23  Prefactor     13.590        13.544       -.15905E-05   -.94317E-04
  24  Prefactor     .10000E-03    536.58        .15018E-04** at limit **
  25  Prefactor     137.83        97.954       -.16304E-05   -.13315E-03
  26  norm          .10000E-03    2.0495       -.87361E-06** at limit **
  27  norm          .10000E-03    9.4346       -.34784E-08** at limit **
  28  Normalizat    .10000E-01    .16812        .42287E-05** at limit **
  29  Prefactor     .77559        .34287        .35905E-05   -.50350E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104729
  norm       = 9983.13
  Prefactor  = 0.000100002
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 0.00010004
  Prefactor  = 9999.89
  Prefactor  = 9935.72
  Prefactor  = 0.000100004
  norm       = 855.038
  Prefactor  = 0.000100134
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 1072.86
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.42222
  Prefactor  = 105.937
  norm       = 0.770752
  norm       = 0.419688
  Prefactor  = 13.5895
  Prefactor  = 0.000100004
  Prefactor  = 137.828
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.77559
 **********
 **   18 **HESSE 
 **********

 FCN=   592.6591     FROM HESSE     STATUS=OK           603 CALLS     4260 TOTAL
                     EDM=   .17E-01    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10473E-03    7491.5        .92747E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          9983.1        7285.6        .48151E-03    1.4886    
   3  Prefactor     .10000E-03    2126.1        .91943E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor    10000.0        2167.4        .44811E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm         10000.0        721.99        .91114E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10004E-03    6708.0        .93690E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9999.9        7585.4        .75307E-03    1.5773    
   8  Prefactor     9935.7        9313.4        .13889E-02    1.7313    
   9  Prefactor     .10000E-03    1124.0        .74109E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          855.04        1820.0        .27237E-03   -.97730    
  11  Prefactor     .10013E-03    6598.4        .42151E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.8618        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    8904.2        .96618E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    398.78        .33554E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1072.9        1982.6        .29675E-03   -.90339    
  16  norm          .10000E-03    359.44        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    27.352        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    58.858        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          9.4222        11.802        .32645E-02   -1.5094    
  20  Prefactor     105.94        166.54        .94705E-03   -1.3646    
  21  norm          .77075        3.2738        .12436E-01   -1.5884    
  22  norm          .41969        41.577        .93684E-01   -1.5838    
  23  Prefactor     13.590        13.645        .27230E-02   -1.4971    
  24  Prefactor     .10000E-03    542.99        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     137.83        98.027        .84344E-03   -1.3355    
  26  norm          .10000E-03    2.1206        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    9.1621        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .10000E-01    .16465        .13954       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .77559        .36784        .43196E-01   -1.0063    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 0.0171155
Minuit parameter uncertainties:
  1  0.340849
  2  577.087
  3  0.00416663
  4  0.0668605
  5  0.005385
  6  0.0248377
  7  52.5919
  8  2047.28
  9  0.00416572
  10  1981.81
  11  0.04405
  12  1.50782e-07
  13  0.0028074
  14  0.00198269
  15  2151.82
  16  0.000504673
  17  1.42048e-06
  18  3.00022e-05
  19  11.805
  20  167.284
  21  3.17706
  22  8.35942
  23  13.6477
  24  0.00292969
  25  98.1426
  26  7.42799e-06
  27  2.04885e-07
  28  6.53525e-07
  29  0.369008
Done.

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

Extracting fit parameters...

4FGL J1111.8+4858
   Spectrum: PowerLaw
372    Prefactor:  1.073e+03  2.152e+03  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:  7.756e-01  3.690e-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.000e-02  6.535e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.33
Ra Dec: 167.969 48.980
Photon Flux Upper Limit: 1.46e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.08e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/599616/likelihoodResults_602726401_602985601_4FGL_J1111.8+4858_daily_bin1402.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) = 592.497238214
delta logL = 0.161888581666

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 592.493271878
delta logL = 0.165854918147

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    342.47       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4891       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75575       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=   592.4933     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      295 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     341.78        1174.2        .10997E-03    .10022E-04
   2  Index         2.4896        1.2990        .25632E-02    .33676E-04
   3  Normalizat    .10000E-01    .16351        .58338E-02** at limit **
   4  Prefactor     .75582        .29364        .25966E-03    .89865E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 341.782
  Index      = 2.48958
  Normalizat = 0.01
  Prefactor  = 0.755817
 **********
 **   18 **HESSE 
 **********

 FCN=   592.4933     FROM HESSE     STATUS=OK            25 CALLS      320 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     341.78        1027.0        .21995E-04   -1.1989    
   2  Index         2.4896        1.1151        .10253E-03   -.52601    
   3  Normalizat    .10000E-01    .16351        .11668E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .75582        .29366        .10386E-04   -1.0138    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.53421e-11
Minuit parameter uncertainties:
  1  1091.51
  2  1.12782
  3  1.09837e-06
  4  0.29427
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/599616': 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) = 592.493271572
delta logL = 0.165855223982

Extracting fit parameters...

4FGL J1111.8+4858
   Spectrum: PowerLaw
372    Prefactor:  3.418e+02  1.092e+03  1.000e-04  1.000e+04 ( 1.000e-15)
373        Index:  2.490e+00  1.128e+00  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:  7.558e-01  2.943e-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.000e-02  1.098e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.33
Ra Dec: 167.969 48.980

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/599616/cmap_HighResolution_602726401_602985601_4FGL_J1111.8+4858_daily_bin1402.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.08e-01', job_status='DONE', photon_flux_upper_limit='1.46e-06', time_completed='2021-09-03 12:33:58.308833', job_id='599616', GAL2='0.76', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630697638.31', return_code2='0', ts='0.33', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='1.66e-01', ts2='0.68', photon_index_error='0.00', photon_index='1.82' WHERE bin_id='1402' AND source_name='4FGL J1111.8+4858' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 12:33:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0287>
Subject: Job 599616: <4FGL_J1111.8+4858_daily_bin1402> in cluster <slac> Done

Job <4FGL_J1111.8+4858_daily_bin1402> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Fri Sep  3 12:26:27 2021
Job was executed on host(s) <bullet0287>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 12:26:54 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep  3 12:26:54 2021
Terminated at Fri Sep  3 12:33:58 2021
Results reported at Fri Sep  3 12:33:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1111.8+4858_daily_bin1402 167.969 48.9798 602726401 602985601 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 :                                   400.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             324.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   424 sec.
    Turnaround time :                            451 sec.

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

