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


Performing analysis on: 4FGL_J1111.8+4858_daily_bin1180
RA = 167.969, Dec = 48.9798
tmin = 545184001, tmax = 545443201
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='598077', job_status='RUN', time_executed='2021-09-03 12:25:05.476439', time_epoch_executed='1630697105.48' WHERE source_name='4FGL J1111.8+4858' and cadence='daily' and bin_id='1180'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/598077

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/598077/ft1_4FGL_J1111.8+4858_daily_bin1180.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/598077/ft2_4FGL_J1111.8+4858_daily_bin1180.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/598077/ft1_4FGL_J1111.8+4858_daily_bin1180.fits outfile=/scratch/kocevski/598077/ft1_filteredMKT_4FGL_J1111.8+4858_daily_bin1180.fits ra=167.969 dec=48.9798 rad=12.0 tmin=545184001.0 tmax=545443201.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.99
user 3.76
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/598077/ft2_4FGL_J1111.8+4858_daily_bin1180.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/598077/ft1_filteredMKT_4FGL_J1111.8+4858_daily_bin1180.fits evtable="EVENTS" outfile="/scratch/kocevski/598077/ft1_filtered_4FGL_J1111.8+4858_daily_bin1180.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/598077/ft1_filtered_4FGL_J1111.8+4858_daily_bin1180.fits" evtable="EVENTS" scfile=/scratch/kocevski/598077/ft2_4FGL_J1111.8+4858_daily_bin1180.fits sctable="SC_DATA" outfile=/scratch/kocevski/598077/ltcube_545184001_545443201_4FGL_J1111.8+4858_daily_bin1180.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/598077/ft2_4FGL_J1111.8+4858_daily_bin1180.fits
.....................!
real 14.66
user 14.29
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/598077/ft1_filtered_4FGL_J1111.8+4858_daily_bin1180.fits evtable="EVENTS" scfile=/scratch/kocevski/598077/ft2_4FGL_J1111.8+4858_daily_bin1180.fits sctable="SC_DATA" expcube=/scratch/kocevski/598077/ltcube_545184001_545443201_4FGL_J1111.8+4858_daily_bin1180.fits outfile=/scratch/kocevski/598077/expmap_545184001_545443201_4FGL_J1111.8+4858_daily_bin1180.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/598077/ltcube_545184001_545443201_4FGL_J1111.8+4858_daily_bin1180.fits
.....................!
real 191.91
user 186.67
sys 4.63

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/598077/ft1_filtered_4FGL_J1111.8+4858_daily_bin1180.fits scfile=/scratch/kocevski/598077/ft2_4FGL_J1111.8+4858_daily_bin1180.fits outfile=/scratch/kocevski/598077/cmap_545184001_545443201_4FGL_J1111.8+4858_daily_bin1180.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/598077/ft1_filtered_4FGL_J1111.8+4858_daily_bin1180.fits scfile=/scratch/kocevski/598077/ft2_4FGL_J1111.8+4858_daily_bin1180.fits outfile=/scratch/kocevski/598077/cmap_HighResolution_545184001_545443201_4FGL_J1111.8+4858_daily_bin1180.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.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2352       1.0000         .10000E-03   10000.    
     2 'norm      '    6.9652       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.3057       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11404E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.7184       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .45347E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.5771       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.7572       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.3765       1.0000         .10000E-03   10000.    
    10 'norm      '    2.5251       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.3765       1.0000         .10000E-03   10000.    
    12 'norm      '    1.4353       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.7144       1.0000         .10000E-03   10000.    
    14 'Prefactor '    65.651       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .89081       1.0000         .10000E-03   10000.    
    16 'norm      '    4.5260       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      '    14.637       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .13558E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.7422       1.0000         .10000E-03   10000.    
    22 'norm      '    15.607       1.0000         .10000E-03   10000.    
    23 'Prefactor '    53.112       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .17761E-01   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .13065       1.0000         .10000E-03   10000.    
    26 'norm      '    2.7286       1.0000         .10000E-03   10000.    
    27 'norm      '    .66313E-01   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    29 'Prefactor '    .65293E-01   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=   260.1828     FROM MIGRAD    STATUS=CONVERGED    277 CALLS      638 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2352        1.1226         .0000         .0000    
   2  norm          6.9652        1.0026         .0000         .0000    
   3  Prefactor     7.3057        1.0024         .0000         .0000    
   4  Prefactor     .10000E-03    .20571        .57128E-06** at limit **
   5  norm          1.7184        1.0502         .0000         .0000    
   6  Prefactor     .10000E-03    .23363        .40850E-05** at limit **
   7  Prefactor     .10028E-03    .26201E-01    .14689E-04** at limit **
   8  Prefactor     5.7572        1.0038         .0000         .0000    
   9  Prefactor     .10000E-03    .46934E-01    .24648E-04** at limit **
  10  norm          2.5251        1.0211         .0000         .0000    
  11  Prefactor     9.3765        1.0014         .0000         .0000    
  12  norm          1.4349        1.0790        .10888E-06    .67304E-03
  13  Prefactor     2.7144        1.0181         .0000         .0000    
  14  Prefactor     65.751        1.0008        .55039E-05    .51681E-04
  15  Prefactor     .10000E-03    .40794        .25639E-06** at limit **
  16  norm          .10003E-03    .55953E-01    .18837E-04** at limit **
  17  Prefactor     1.9060        1.0394         .0000         .0000    
  18  Prefactor     9.7272        1.0013         .0000         .0000    
  19  norm          14.625        1.0002        .27016E-06    .24600E-03
  20  Prefactor     .10000E-03    .20571        .75434E-06** at limit **
  21  norm          2.7429        1.0178       -.55322E-06    .27312E-03
  22  norm          15.501        .99711       -.98753E-06    .60276E-04
  23  Prefactor     53.154        1.0004       -.52605E-06    .69153E-05
  24  Prefactor     .10000E-03    .20755        .65082E-05** at limit **
  25  Prefactor     .10000E-03    .23311        .73046E-06** at limit **
  26  norm          2.7286        1.0179         .0000         .0000    
  27  norm          .10000E-03    .21853       -.19719E-05** at limit **
  28  Normalizat    .10000E-01    .25764        .63401E-03** at limit **
  29  Prefactor     .67360E-01    .26856        .63972E-04    .50321E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.23522
  norm       = 6.96518
  Prefactor  = 7.30573
  Prefactor  = 0.0001
  norm       = 1.71843
  Prefactor  = 0.0001
  Prefactor  = 0.000100283
  Prefactor  = 5.75724
  Prefactor  = 0.000100003
  norm       = 2.52509
  Prefactor  = 9.37655
  norm       = 1.43493
  Prefactor  = 2.71437
  Prefactor  = 65.751
  Prefactor  = 0.000100003
  norm       = 0.00010003
  Prefactor  = 1.90603
  Prefactor  = 9.72722
  norm       = 14.6253
  Prefactor  = 0.0001
  norm       = 2.7429
  norm       = 15.5015
  Prefactor  = 53.1545
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.72859
  norm       = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.0673603
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   260.1828     FROM HESSE     STATUS=FAILED         9 CALLS      647 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     583.10        581.61         .0000       -1.5486    
   2  norm          6.9652        1.0026         .0000       -1.5180    
   3  Prefactor     7.3057        1.0024         .0000       -1.5167    
   4  Prefactor     .10000E-03    .20571        .57128E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.7184        1.0502         .0000       -1.5446    
   6  Prefactor     .10000E-03    .23363        .40850E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10028E-03    .26201E-01    .14689E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.7572        1.0038         .0000       -1.5228    
   9  Prefactor     .10000E-03    .46934E-01    .24648E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.5251        1.0211         .0000       -1.5390    
  11  Prefactor     9.3765        1.0014         .0000       -1.5095    
  12  norm          1.4349        1.0790        .10888E-06   -1.5468    
  13  Prefactor     2.7144        1.0181         .0000       -1.5378    
  14  Prefactor     65.751        1.0008        .55039E-05   -1.4084    
  15  Prefactor     .10000E-03    .40794        .25639E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10003E-03    .55953E-01    .18837E-04   -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          14.625        1.0002        .27016E-06   -1.4943    
  20  Prefactor     .10000E-03    .20571        .75434E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.7429        1.0178       -.55322E-06   -1.5377    
  22  norm          15.501        .99711       -.98753E-06   -1.4920    
  23  Prefactor     53.154        1.0004       -.52605E-06   -1.4249    
  24  Prefactor     .10000E-03    .20755        .65082E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    .23311        .73046E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          2.7286        1.0179         .0000       -1.5378    
  27  norm          .10000E-03    .21853       -.19719E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .10000E-01    .25764        .63401E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .67360E-01    .26856        .63972E-04   -1.4065    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.812e-10
Minuit parameter uncertainties:
  1  1.12262
  2  1.0026
  3  1.00236
  4  7.21432e-07
  5  1.05024
  6  7.06438e-06
  7  0.000172254
  8  1.00382
  9  2.35208e-05
  10  1.02109
  11  1.00143
  12  1.07902
  13  1.01806
  14  1.00079
  15  7.25447e-05
  16  8.15946e-05
  17  1.03938
  18  1.00133
  19  1.00018
  20  1.85292e-05
  21  1.0178
  22  0.997115
  23  1.00044
  24  2.60245e-06
  25  7.16723e-06
  26  1.01786
  27  1.60783e-05
  28  3.0722e-05
  29  0.271158
Done.

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

Extracting fit parameters...

4FGL J1111.8+4858
   Spectrum: PowerLaw
372    Prefactor:  1.000e-04  7.254e-05  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:  6.736e-02  2.712e-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  3.072e-05  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/598077/likelihoodResults_545184001_545443201_4FGL_J1111.8+4858_daily_bin1180.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) = 260.182797433
delta logL = -4.59705432831e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 260.182797401
delta logL = -4.56509991409e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96144E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8248       1.0000          .0000       10.000    
     3 'Normalizat'    .10008E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67361E-01   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=   260.1828     FROM MIGRAD    STATUS=CONVERGED     71 CALLS      251 TOTAL
                     EDM=   .73E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10046E-03    714.59        .90734E-02** at limit **
   2  Index         1.7731        9.0070        .50000        .32058E-06
   3  Normalizat    .10000E-01    .12811E-02    .14000    ** at limit **
   4  Prefactor     .67359E-01    .95836E-02    .12142        .43133E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100463
  Index      = 1.77313
  Normalizat = 0.01
  Prefactor  = 0.067359
 **********
 **   18 **HESSE 
 **********

 FCN=   260.1828     FROM HESSE     STATUS=NOT POSDEF    41 CALLS      292 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10046E-03    6594.5        .18147E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7731        6.2365        .50000       -.70151    
   3  Normalizat    .10000E-01    .75034E-02    .12667       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .67359E-01    .21401E-01    .53420E-03   -1.4065    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.59832e-10
Minuit parameter uncertainties:
  1  0.0816816
  2  621.836
  3  2.59475e-05
  4  0.0214038
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/598077': 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) = 260.182792832
delta logL = 3.8052689888e-09

Extracting fit parameters...

4FGL J1111.8+4858
   Spectrum: PowerLaw
372    Prefactor:  1.005e-04  8.168e-02  1.000e-04  1.000e+04 ( 1.000e-15)
373        Index:  1.773e+00  6.218e+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:  6.736e-02  2.140e-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  2.595e-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/598077/cmap_HighResolution_545184001_545443201_4FGL_J1111.8+4858_daily_bin1180.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.30e-02', job_status='DONE', photon_flux_upper_limit='1.26e-06', time_completed='2021-09-03 12:31:15.500188', job_id='598077', GAL2='0.07', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630697475.5', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.07', dlogl='3.81e-09', ts2='-0.00', photon_index_error='0.00', photon_index='1.82' WHERE bin_id='1180' AND source_name='4FGL J1111.8+4858' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 12:31:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0146>
Subject: Job 598077: <4FGL_J1111.8+4858_daily_bin1180> in cluster <slac> Done

Job <4FGL_J1111.8+4858_daily_bin1180> 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) <bullet0146>, 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:31:16 2021
Results reported at Fri Sep  3 12:31:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1111.8+4858_daily_bin1180 167.969 48.9798 545184001 545443201 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 :                                   344.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             232.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   609 sec.
    Turnaround time :                            612 sec.

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

