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


Performing analysis on: 4FGL_J1111.8+4858_daily_bin1182
RA = 167.969, Dec = 48.9798
tmin = 545702401, tmax = 545961601
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='598080', job_status='RUN', time_executed='2021-09-03 12:21:18.875541', time_epoch_executed='1630696878.88' WHERE source_name='4FGL J1111.8+4858' and cadence='daily' and bin_id='1182'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/598080

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/598080/ft1_4FGL_J1111.8+4858_daily_bin1182.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/598080/ft2_4FGL_J1111.8+4858_daily_bin1182.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/598080/ft1_4FGL_J1111.8+4858_daily_bin1182.fits outfile=/scratch/kocevski/598080/ft1_filteredMKT_4FGL_J1111.8+4858_daily_bin1182.fits ra=167.969 dec=48.9798 rad=12.0 tmin=545702401.0 tmax=545961601.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.08
user 3.79
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/598080/ft1_filtered_4FGL_J1111.8+4858_daily_bin1182.fits" evtable="EVENTS" scfile=/scratch/kocevski/598080/ft2_4FGL_J1111.8+4858_daily_bin1182.fits sctable="SC_DATA" outfile=/scratch/kocevski/598080/ltcube_545702401_545961601_4FGL_J1111.8+4858_daily_bin1182.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/598080/ft2_4FGL_J1111.8+4858_daily_bin1182.fits
.....................!
real 15.00
user 14.63
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/598080/ft1_filtered_4FGL_J1111.8+4858_daily_bin1182.fits evtable="EVENTS" scfile=/scratch/kocevski/598080/ft2_4FGL_J1111.8+4858_daily_bin1182.fits sctable="SC_DATA" expcube=/scratch/kocevski/598080/ltcube_545702401_545961601_4FGL_J1111.8+4858_daily_bin1182.fits outfile=/scratch/kocevski/598080/expmap_545702401_545961601_4FGL_J1111.8+4858_daily_bin1182.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/598080/ltcube_545702401_545961601_4FGL_J1111.8+4858_daily_bin1182.fits
.....................!
real 192.27
user 187.58
sys 4.25

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/598080/ft1_filtered_4FGL_J1111.8+4858_daily_bin1182.fits scfile=/scratch/kocevski/598080/ft2_4FGL_J1111.8+4858_daily_bin1182.fits outfile=/scratch/kocevski/598080/cmap_545702401_545961601_4FGL_J1111.8+4858_daily_bin1182.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/598080/ft1_filtered_4FGL_J1111.8+4858_daily_bin1182.fits scfile=/scratch/kocevski/598080/ft2_4FGL_J1111.8+4858_daily_bin1182.fits outfile=/scratch/kocevski/598080/cmap_HighResolution_545702401_545961601_4FGL_J1111.8+4858_daily_bin1182.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.56
user 0.38
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/598080/ft1_filtered_4FGL_J1111.8+4858_daily_bin1182.fits', '/scratch/kocevski/598080/ft2_4FGL_J1111.8+4858_daily_bin1182.fits', expMap='/scratch/kocevski/598080/expmap_545702401_545961601_4FGL_J1111.8+4858_daily_bin1182.fits', expCube='/scratch/kocevski/598080/ltcube_545702401_545961601_4FGL_J1111.8+4858_daily_bin1182.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/598080/Model_4FGL_J1111.8+4858_daily_bin1182.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/598080/ft1_filtered_4FGL_J1111.8+4858_daily_bin1182.fits
Spacecraft file(s): /scratch/kocevski/598080/ft2_4FGL_J1111.8+4858_daily_bin1182.fits
Exposure map: /scratch/kocevski/598080/expmap_545702401_545961601_4FGL_J1111.8+4858_daily_bin1182.fits
Exposure cube: /scratch/kocevski/598080/ltcube_545702401_545961601_4FGL_J1111.8+4858_daily_bin1182.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/598080/Model_4FGL_J1111.8+4858_daily_bin1182.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 937.92869502

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 934.963330697

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .36556       1.0000         .10000E-03   10000.    
     2 'norm      '    34.289       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.3057       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .14732E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.7184       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .37975E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.6378       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.7572       1.0000         .10000E-03   10000.    
     9 'Prefactor '    599.25       1.0000         .10000E-03   10000.    
    10 'norm      '    2.5251       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.4046       1.0000         .10000E-03   10000.    
    12 'norm      '    2.2835       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.7144       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10262E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .52761E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    .10360E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.9060       1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.7272       1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .40458       1.0000         .10000E-03   10000.    
    21 'norm      '    3.9806       1.0000         .10000E-03   10000.    
    22 'norm      '    .10705E-01   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .12262E-02   1.0000         .10000E-03   10000.    
    24 'Prefactor '    19.506       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .41069E-01   1.0000         .10000E-03   10000.    
    26 'norm      '    .10197E-01   1.0000         .10000E-03   10000.    
    27 'norm      '    .40098E-01   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .10016E-01   1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.9775       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   934.9416     FROM MIGRAD    STATUS=CONVERGED    241 CALLS      673 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    167.66        .10709E-01** at limit **
   2  norm          33.924        32.786        .17109E-02   -.58248E-03
   3  Prefactor     7.3057        1.0024         .0000         .0000    
   4  Prefactor     .10000E-03    .20571       -.12326E-05** at limit **
   5  norm          1.7184        1.0502         .0000         .0000    
   6  Prefactor     .10000E-03    .28321       -.14093E-06** at limit **
   7  Prefactor     .10001E-03    .17040        .62744E-06** at limit **
   8  Prefactor     5.7572        1.0038         .0000         .0000    
   9  Prefactor     599.64        1.0003        .70296E-07   -.33175E-01
  10  norm          2.5251        1.0211         .0000         .0000    
  11  Prefactor     .10175E-03    .57536E-01    .84603E-06** at limit **
  12  norm          2.2866        1.0269       -.26775E-07    .17399E-02
  13  Prefactor     2.7144        1.0181         .0000         .0000    
  14  Prefactor     .10000E-03    .20571       -.80413E-06** at limit **
  15  Prefactor     .10009E-03    .22866       -.26935E-05** at limit **
  16  norm          .10172E-03    .20588       -.30032E-05** at limit **
  17  Prefactor     1.9060        1.0394         .0000         .0000    
  18  Prefactor     9.7272        1.0013         .0000         .0000    
  19  norm          .10000E-03    .20571        .18163E-07** at limit **
  20  Prefactor     .10000E-03    .29565        .36494E-06** at limit **
  21  norm          3.4110        .93323       -.29669E-06    .47832E-03
  22  norm          .10000E-03    .20596       -.19193E-06** at limit **
  23  Prefactor     .10000E-03    .26580        .50351E-06** at limit **
  24  Prefactor     59.418        1.7424        .53666E-05    .14686E-03
  25  Prefactor     .10000E-03    .21281        .16771E-06** at limit **
  26  norm          .10015E-03    .20584       -.28492E-06** at limit **
  27  norm          .10000E-03    .21260        .91829E-06** at limit **
  28  Normalizat    .10000E-01    .25505       -.47334E-03** at limit **
  29  Prefactor     1.9735        1.0201       -.23778E-06    .21813E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 33.9235
  Prefactor  = 7.30573
  Prefactor  = 0.0001
  norm       = 1.71843
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 5.75724
  Prefactor  = 599.642
  norm       = 2.52509
  Prefactor  = 0.000101746
  norm       = 2.28662
  Prefactor  = 2.71437
  Prefactor  = 0.0001
  Prefactor  = 0.000100094
  norm       = 0.00010172
  Prefactor  = 1.90603
  Prefactor  = 9.72722
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.41103
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 59.4183
  Prefactor  = 0.0001
  norm       = 0.000100153
  norm       = 0.0001
  Normalizat = 0.0100001
  Prefactor  = 1.97352
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   934.9416     FROM HESSE     STATUS=FAILED        15 CALLS      688 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    167.66        .10709E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          33.924        32.786        .17109E-02   -1.4542    
   3  Prefactor     510.75        503.41         .0000       -1.5167    
   4  Prefactor     .10000E-03    .20571       -.12326E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.7184        1.0502         .0000       -1.5446    
   6  Prefactor     .10000E-03    .28321       -.14093E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    .17040        .62744E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.7572        1.0038         .0000       -1.5228    
   9  Prefactor     599.64        1.0003        .70296E-07   -1.0760    
  10  norm          2.5251        1.0211         .0000       -1.5390    
  11  Prefactor     .10175E-03    .57536E-01    .84603E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.2866        1.0269       -.26775E-07   -1.5406    
  13  Prefactor     2.7144        1.0181         .0000       -1.5378    
  14  Prefactor     .10000E-03    .20571       -.80413E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10009E-03    .22866       -.26935E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10172E-03    .20588       -.30032E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.9060        1.0394         .0000       -1.5432    
  18  Prefactor     9.7272        1.0013         .0000       -1.5084    
  19  norm          .10000E-03    .20571        .18163E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    .29565        .36494E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.4110        .93323       -.29669E-06   -1.5339    
  22  norm          .10000E-03    .20596       -.19193E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    .26580        .50351E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     59.418        1.7424        .53666E-05   -1.4165    
  25  Prefactor     .10000E-03    .21281        .16771E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10015E-03    .20584       -.28492E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    .21260        .91829E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .10000E-01    .25505       -.47334E-03   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     1.9735        1.0201       -.23778E-06   -.65014    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.4644e-10
Minuit parameter uncertainties:
  1  2.48822e-05
  2  32.8037
  3  1.00236
  4  1.84043e-05
  5  1.05024
  6  3.94495e-06
  7  5.88381e-05
  8  1.00382
  9  1.00031
  10  1.02109
  11  0.000633959
  12  1.02694
  13  1.01806
  14  1.50524e-05
  15  0.000293448
  16  0.00119025
  17  1.03938
  18  1.00133
  19  4.47052e-08
  20  1.15182e-05
  21  0.933231
  22  1.47809e-06
  23  7.02194e-06
  24  1.74243
  25  3.1803e-06
  26  0.000355092
  27  1.46443e-06
  28  0.000314029
  29  1.03162
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 934.941559532

Extracting fit parameters...

4FGL J1111.8+4858
   Spectrum: PowerLaw
372    Prefactor:  1.001e-04  2.934e-04  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:  1.974e+00  1.032e+00  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  3.140e-04  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 167.969 48.980
Photon Flux Upper Limit: 3.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.26e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/598080/likelihoodResults_545702401_545961601_4FGL_J1111.8+4858_daily_bin1182.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): 102
logL (Free Index) = 934.941575974
delta logL = -1.64418296436e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 934.941575968
delta logL = -1.64353843957e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96296E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8248       1.0000          .0000       10.000    
     3 'Normalizat'    .10009E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.9735       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=   934.9416     FROM MIGRAD    STATUS=CONVERGED     69 CALLS      236 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10011E-03    201.94        .90719E-02** at limit **
   2  Index         1.7842        7.0018        .50000        .97882E-06
   3  Normalizat    .10000E-01    .53982E-03    .32095    ** at limit **
   4  Prefactor     1.9735        .13463E-01    .63180E-01    .62157E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100105
  Index      = 1.78422
  Normalizat = 0.0100001
  Prefactor  = 1.97352
 **********
 **   18 **HESSE 
 **********

 FCN=   934.9416     FROM HESSE     STATUS=NOT POSDEF    41 CALLS      277 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10011E-03    987.69        .18144E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7842        6.6048        .50000       -.69861    
   3  Normalizat    .10000E-01    .74348E-02    .18759       -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.9735        .30258E-01    .27928E-03   -.65014    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.75503e-09
Minuit parameter uncertainties:
  1  0.0207604
  2  370.192
  3  5.42485e-05
  4  0.030258
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/598080': 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): 102
logL (Free Index) = 934.941559521
delta logL = 1.10252358354e-08

Extracting fit parameters...

4FGL J1111.8+4858
   Spectrum: PowerLaw
372    Prefactor:  1.001e-04  2.076e-02  1.000e-04  1.000e+04 ( 1.000e-15)
373        Index:  1.784e+00  3.702e+02  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:  1.974e+00  3.026e-02  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  5.425e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/598080/cmap_HighResolution_545702401_545961601_4FGL_J1111.8+4858_daily_bin1182.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.26e-02', job_status='DONE', photon_flux_upper_limit='3.05e-07', time_completed='2021-09-03 12:30:36.019430', job_id='598080', GAL2='1.97', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630697436.02', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='1.97', dlogl='1.10e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.82' WHERE bin_id='1182' AND source_name='4FGL J1111.8+4858' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 12:30:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0163>
Subject: Job 598080: <4FGL_J1111.8+4858_daily_bin1182> in cluster <slac> Done

Job <4FGL_J1111.8+4858_daily_bin1182> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep  3 12:21:04 2021
Job was executed on host(s) <bullet0163>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 12:21:06 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:21:06 2021
Terminated at Fri Sep  3 12:30:36 2021
Results reported at Fri Sep  3 12:30:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1111.8+4858_daily_bin1182 167.969 48.9798 545702401 545961601 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 :                                   362.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             254.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   570 sec.
    Turnaround time :                            572 sec.

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

