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


Performing analysis on: 4FGL_J1111.8+4858_daily_bin1366
RA = 167.969, Dec = 48.9798
tmin = 593395201, tmax = 593654401
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='599559', job_status='RUN', time_executed='2021-09-03 12:26:53.591904', time_epoch_executed='1630697213.59' WHERE source_name='4FGL J1111.8+4858' and cadence='daily' and bin_id='1366'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/599559

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/599559/ft1_4FGL_J1111.8+4858_daily_bin1366.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/599559/ft2_4FGL_J1111.8+4858_daily_bin1366.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/599559/ft1_4FGL_J1111.8+4858_daily_bin1366.fits outfile=/scratch/kocevski/599559/ft1_filteredMKT_4FGL_J1111.8+4858_daily_bin1366.fits ra=167.969 dec=48.9798 rad=12.0 tmin=593395201.0 tmax=593654401.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.19
user 3.87
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/599559/ft1_filtered_4FGL_J1111.8+4858_daily_bin1366.fits" evtable="EVENTS" scfile=/scratch/kocevski/599559/ft2_4FGL_J1111.8+4858_daily_bin1366.fits sctable="SC_DATA" outfile=/scratch/kocevski/599559/ltcube_593395201_593654401_4FGL_J1111.8+4858_daily_bin1366.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/599559/ft2_4FGL_J1111.8+4858_daily_bin1366.fits
.....................!
real 16.88
user 16.34
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/599559/ft1_filtered_4FGL_J1111.8+4858_daily_bin1366.fits evtable="EVENTS" scfile=/scratch/kocevski/599559/ft2_4FGL_J1111.8+4858_daily_bin1366.fits sctable="SC_DATA" expcube=/scratch/kocevski/599559/ltcube_593395201_593654401_4FGL_J1111.8+4858_daily_bin1366.fits outfile=/scratch/kocevski/599559/expmap_593395201_593654401_4FGL_J1111.8+4858_daily_bin1366.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/599559/ltcube_593395201_593654401_4FGL_J1111.8+4858_daily_bin1366.fits
.....................!
real 192.41
user 186.62
sys 5.28

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/599559/ft1_filtered_4FGL_J1111.8+4858_daily_bin1366.fits scfile=/scratch/kocevski/599559/ft2_4FGL_J1111.8+4858_daily_bin1366.fits outfile=/scratch/kocevski/599559/cmap_593395201_593654401_4FGL_J1111.8+4858_daily_bin1366.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.57
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/599559/ft1_filtered_4FGL_J1111.8+4858_daily_bin1366.fits scfile=/scratch/kocevski/599559/ft2_4FGL_J1111.8+4858_daily_bin1366.fits outfile=/scratch/kocevski/599559/cmap_HighResolution_593395201_593654401_4FGL_J1111.8+4858_daily_bin1366.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.2101       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.991       1.0000         .10000E-03   10000.    
     5 'norm      '    1.1999       1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.132       1.0000         .10000E-03   10000.    
     7 'Prefactor '    40.122       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .50992E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .99685       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    55.991       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10106E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.136       1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.611       1.0000         .10000E-03   10000.    
    19 'norm      '    .63474       1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.5546       1.0000         .10000E-03   10000.    
    21 'norm      '    3.6431       1.0000         .10000E-03   10000.    
    22 'norm      '    5.3305       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .80407       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .86055E-01   1.0000         .10000E-03   10000.    
    27 'norm      '    19.328       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0318       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .76263       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=   5599.940     FROM MIGRAD    STATUS=CONVERGED    739 CALLS     3689 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.3707        .18030E-06** at limit **
   2  norm          1.2102        1.1841       -.20283E-07   -.19699E-04
   3  Prefactor     .10000E-03    8.2096        .91173E-07** at limit **
   4  Prefactor     10.993        5.3897       -.23006E-07    .35575E-04
   5  norm          1.1999        1.0279        .15490E-08   -.29731E-06
   6  Prefactor     14.133        23.227        .29880E-07    .32524E-05
   7  Prefactor     40.115        44.779       -.11018E-06   -.16978E-05
   8  Prefactor     .10000E-03    41.385        .24378E-06** at limit **
   9  Prefactor     .10000E-03    46.632        .18101E-06** at limit **
  10  norm          .10000E-03    .55099        .62682E-07** at limit **
  11  Prefactor     .10000E-03    239.41        .35323E-05** at limit **
  12  norm          .99689        .32313       -.18200E-08    .43451E-03
  13  Prefactor     .10000E-03    11.588        .25845E-06** at limit **
  14  Prefactor     55.990        24.338        .36102E-06    .73669E-04
  15  Prefactor     .10000E-03    127.97        .13223E-05** at limit **
  16  norm          .10000E-03    68.820       -.23303E-06** at limit **
  17  Prefactor     13.136        8.9782       -.30997E-06    .10060E-03
  18  Prefactor     15.618        27.243       -.11290E-06    .12513E-04
  19  norm          .64167        2.6748       -.28721E-05   -.25158E-03
  20  Prefactor     9.3827        81.587        .52701E-05    .28475E-04
  21  norm          3.6436        1.5530        .15037E-06    .79325E-03
  22  norm          5.3309        6.0617       -.21309E-06   -.55542E-05
  23  Prefactor     .80653        2.1629        .10065E-05    .53994E-03
  24  Prefactor     .10000E-03    37.174       -.23552E-06** at limit **
  25  Prefactor     .10000E-03    7.3853       -.13520E-07** at limit **
  26  norm          .89079E-01    1.3019       -.68748E-06    .11371E-02
  27  norm          19.330        11.942       -.25787E-06    .25497E-04
  28  Normalizat    1.0314        .17931        .31428E-05    .12568E-05
  29  Prefactor     .76284        .21526       -.45765E-05    .16933E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.21024
  Prefactor  = 0.0001
  Prefactor  = 10.9933
  norm       = 1.19991
  Prefactor  = 14.133
  Prefactor  = 40.115
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.996886
  Prefactor  = 0.0001
  Prefactor  = 55.9902
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 13.1357
  Prefactor  = 15.6184
  norm       = 0.641671
  Prefactor  = 9.38274
  norm       = 3.64359
  norm       = 5.33087
  Prefactor  = 0.806534
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0890792
  norm       = 19.33
  Normalizat = 1.03137
  Prefactor  = 0.762843
 **********
 **   18 **HESSE 
 **********

 FCN=   5599.940     FROM HESSE     STATUS=OK           559 CALLS     4248 TOTAL
                     EDM=   .97E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.4180        .13414E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.2102        1.2083        .78558E-04   -1.5488    
   3  Prefactor     .10000E-03    8.2150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.993        5.3940        .11502E-03   -1.5045    
   5  norm          1.1999        1.0198        .68429E-04   -1.5489    
   6  Prefactor     14.133        23.220        .10655E-03   -1.4956    
   7  Prefactor     40.115        44.791        .63281E-04   -1.4440    
   8  Prefactor     .10000E-03    41.378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    46.678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .55202        .54237E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    243.12        .21148E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .99689        .32471        .22759E-04   -1.5508    
  13  Prefactor     .10000E-03    11.606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     55.990        24.456        .53609E-04   -1.4210    
  15  Prefactor     .10000E-03    128.20        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    69.038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     13.136        9.0049        .11052E-03   -1.4983    
  18  Prefactor     15.618        27.217        .10137E-03   -1.4917    
  19  norm          .64167        2.7102        .22633E-03   -1.5548    
  20  Prefactor     9.3827        83.559        .12965E-03   -1.5095    
  21  norm          3.6436        1.5563        .51558E-04   -1.5326    
  22  norm          5.3309        6.0637        .17407E-03   -1.5246    
  23  Prefactor     .80653        1.9819        .17596E-02   -1.5528    
  24  Prefactor     .10000E-03    37.218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    7.3970        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .89079E-01    15.734        .15303E-02   -1.5648    
  27  norm          19.330        11.932        .91104E-04   -1.4828    
  28  Normalizat    1.0314        .19553        .21533E-03   -.91987    
  29  Prefactor     .76284        .23309        .31364E-03   -1.0111    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.72284e-09
Minuit parameter uncertainties:
  1  1.43782e-06
  2  1.20835
  3  1.90874e-06
  4  5.39427
  5  1.01985
  6  23.2351
  7  44.8284
  8  9.5959e-05
  9  5.41665e-05
  10  1.16995e-07
  11  0.000137043
  12  0.324714
  13  2.06155e-06
  14  24.4601
  15  0.000760518
  16  0.000306146
  17  9.00586
  18  27.2383
  19  2.63744
  20  56.1049
  21  1.5563
  22  6.06443
  23  1.98201
  24  0.000104244
  25  1.12238e-05
  26  2.36709
  27  11.9336
  28  0.195662
  29  0.23339
Done.

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

Extracting fit parameters...

4FGL J1111.8+4858
   Spectrum: PowerLaw
372    Prefactor:  1.000e-04  7.605e-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:  7.628e-01  2.334e-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.031e+00  1.957e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/599559/likelihoodResults_593395201_593654401_4FGL_J1111.8+4858_daily_bin1366.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) = 5599.94030674
delta logL = -3.70367451978e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5599.94026978
delta logL = -7.8187440522e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12364E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8612       1.0000          .0000       10.000    
     3 'Normalizat'    1.0314       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76284       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=   5599.940     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      266 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1613.5        .18142E-02** at limit **
   2  Index         1.8827        8.8747        .50000       -.13739E-05
   3  Normalizat    1.0314        .14745E-01    .21533E-03    .54307E-03
   4  Prefactor     .76284        .18800E-01    .31364E-03    .48233E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.88267
  Normalizat = 1.03137
  Prefactor  = 0.762843
 **********
 **   18 **HESSE 
 **********

 FCN=   5599.940     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      295 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7708.2        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8827        5.9209        .50000       -.67317    
   3  Normalizat    1.0314        .30950E-01    .43066E-04   -.91987    
   4  Prefactor     .76284        .39460E-01    .62728E-04   -1.0111    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.14563e-10
Minuit parameter uncertainties:
  1  0.00294724
  2  28.5723
  3  0.0309509
  4  0.0394615
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/599559': 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) = 5599.94026968
delta logL = 1.79061316885e-08

Extracting fit parameters...

4FGL J1111.8+4858
   Spectrum: PowerLaw
372    Prefactor:  1.000e-04  2.947e-03  1.000e-04  1.000e+04 ( 1.000e-15)
373        Index:  1.883e+00  2.857e+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:  7.628e-01  3.946e-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.031e+00  3.095e-02  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/599559/cmap_HighResolution_593395201_593654401_4FGL_J1111.8+4858_daily_bin1366.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.28e-03', job_status='DONE', photon_flux_upper_limit='4.44e-08', time_completed='2021-09-03 12:41:50.966085', job_id='599559', GAL2='0.76', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1630698110.97', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='1.79e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.82' WHERE bin_id='1366' AND source_name='4FGL J1111.8+4858' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 12:41:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 599559: <4FGL_J1111.8+4858_daily_bin1366> in cluster <slac> Done

Job <4FGL_J1111.8+4858_daily_bin1366> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Fri Sep  3 12:26:22 2021
Job was executed on host(s) <bullet0089>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 12:26:38 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:38 2021
Terminated at Fri Sep  3 12:41:51 2021
Results reported at Fri Sep  3 12:41:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1111.8+4858_daily_bin1366 167.969 48.9798 593395201 593654401 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 :                                   889.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             339.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   913 sec.
    Turnaround time :                            929 sec.

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

