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


Performing analysis on: 4FGL_J1111.8+4858_daily_bin637
RA = 167.969, Dec = 48.9798
tmin = 404438401, tmax = 404697601
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='594038', job_status='RUN', time_executed='2021-09-03 12:13:43.758356', time_epoch_executed='1630696423.76' WHERE source_name='4FGL J1111.8+4858' and cadence='daily' and bin_id='637'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/594038

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/594038/ft1_4FGL_J1111.8+4858_daily_bin637.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/594038/ft2_4FGL_J1111.8+4858_daily_bin637.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/594038/ft1_4FGL_J1111.8+4858_daily_bin637.fits outfile=/scratch/kocevski/594038/ft1_filteredMKT_4FGL_J1111.8+4858_daily_bin637.fits ra=167.969 dec=48.9798 rad=12.0 tmin=404438401.0 tmax=404697601.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 12.71
user 12.37
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/594038/ft1_filtered_4FGL_J1111.8+4858_daily_bin637.fits" evtable="EVENTS" scfile=/scratch/kocevski/594038/ft2_4FGL_J1111.8+4858_daily_bin637.fits sctable="SC_DATA" outfile=/scratch/kocevski/594038/ltcube_404438401_404697601_4FGL_J1111.8+4858_daily_bin637.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/594038/ft2_4FGL_J1111.8+4858_daily_bin637.fits
.....................!
real 13.72
user 13.34
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/594038/ft1_filtered_4FGL_J1111.8+4858_daily_bin637.fits evtable="EVENTS" scfile=/scratch/kocevski/594038/ft2_4FGL_J1111.8+4858_daily_bin637.fits sctable="SC_DATA" expcube=/scratch/kocevski/594038/ltcube_404438401_404697601_4FGL_J1111.8+4858_daily_bin637.fits outfile=/scratch/kocevski/594038/expmap_404438401_404697601_4FGL_J1111.8+4858_daily_bin637.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/594038/ltcube_404438401_404697601_4FGL_J1111.8+4858_daily_bin637.fits
.....................!
real 193.49
user 186.93
sys 5.16

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/594038/ft1_filtered_4FGL_J1111.8+4858_daily_bin637.fits scfile=/scratch/kocevski/594038/ft2_4FGL_J1111.8+4858_daily_bin637.fits outfile=/scratch/kocevski/594038/cmap_404438401_404697601_4FGL_J1111.8+4858_daily_bin637.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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/594038/ft1_filtered_4FGL_J1111.8+4858_daily_bin637.fits scfile=/scratch/kocevski/594038/ft2_4FGL_J1111.8+4858_daily_bin637.fits outfile=/scratch/kocevski/594038/cmap_HighResolution_404438401_404697601_4FGL_J1111.8+4858_daily_bin637.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/594038/ft1_filtered_4FGL_J1111.8+4858_daily_bin637.fits evtable="EVENTS" scfile=/scratch/kocevski/594038/ft2_4FGL_J1111.8+4858_daily_bin637.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/594038/Model_4FGL_J1111.8+4858_daily_bin637.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/594038/ft1_filtered_4FGL_J1111.8+4858_daily_bin637.fits.....................!
real 26.94
user 25.70
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.056       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10657E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .66256E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11564E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    467.60       1.0000         .10000E-03   10000.    
    12 'norm      '    1.5260       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10075E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.602       1.0000         .10000E-03   10000.    
    21 'norm      '    1.9036       1.0000         .10000E-03   10000.    
    22 'norm      '    .24688E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.4035       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .40019       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=   1783.442     FROM MIGRAD    STATUS=CONVERGED    747 CALLS     3743 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.089        86.217       -.10783E-06   -.31404E-04
   2  norm          .10000E-03    5.8294        .19221E-06** at limit **
   3  Prefactor     .10000E-03    737.07        .21508E-05** at limit **
   4  Prefactor     .10000E-03    5.2758       -.74629E-07** at limit **
   5  norm          .10000E-03    6.3084        .23257E-06** at limit **
   6  Prefactor     .10000E-03    23.713       -.54219E-07** at limit **
   7  Prefactor     .10000E-03    251.82        .15087E-05** at limit **
   8  Prefactor     .10005E-03    2186.4        .17199E-04** at limit **
   9  Prefactor     .10000E-03    479.53       -.10838E-05** at limit **
  10  norm          .10000E-03    9.9305        .10512E-05** at limit **
  11  Prefactor     468.05        546.10        .37429E-06   -.59662E-05
  12  norm          1.5260        .46713        .10555E-07   -.75029E-04
  13  Prefactor     .10000E-03    158.50        .71051E-06** at limit **
  14  Prefactor     .10000E-03    9.2154       -.53583E-07** at limit **
  15  Prefactor     .10000E-03    102.40        .24800E-06** at limit **
  16  norm          .10000E-03    74.748        .43440E-06** at limit **
  17  Prefactor     .10000E-03    30.276        .51403E-06** at limit **
  18  Prefactor     .10000E-03    229.75        .56638E-06** at limit **
  19  norm          .10000E-03    3.4059       -.32360E-06** at limit **
  20  Prefactor     14.602        94.075        .27453E-05    .17323E-04
  21  norm          1.9037        1.8556        .51834E-09    .39443E-03
  22  norm          .10002E-03    19.867       -.36320E-05** at limit **
  23  Prefactor     .10000E-03    8.2873       -.17132E-06** at limit **
  24  Prefactor     .10000E-03    37.095       -.18355E-08** at limit **
  25  Prefactor     .10000E-03    40.808       -.66919E-06** at limit **
  26  norm          .10000E-03    6.0231       -.13945E-06** at limit **
  27  norm          .10000E-03    7.2985       -.12098E-06** at limit **
  28  Normalizat    1.4033        .39530       -.70575E-05    .95738E-04
  29  Prefactor     .40026        .38694        .12296E-04    .87238E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.0887
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100045
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 468.051
  norm       = 1.52604
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 14.6019
  norm       = 1.90372
  norm       = 0.000100021
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.40332
  Prefactor  = 0.400264
 **********
 **   18 **HESSE 
 **********

 FCN=   1783.442     FROM HESSE     STATUS=OK           533 CALLS     4276 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.089        86.951        .73081E-04   -1.4610    
   2  norm          .10000E-03    5.8358        .99630E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    737.27        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.2900        .94727E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    6.3135        .10365E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    23.718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    252.00        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10005E-03    2206.9        .21010E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    480.55        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    10.037        .13069E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     468.05        546.82        .94731E-04   -1.1347    
  12  norm          1.5260        .46704        .15398E-04   -1.5461    
  13  Prefactor     .10000E-03    158.52        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.2225        .12522E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    102.40        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    74.765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    30.300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    229.77        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    3.5361        .15179E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     14.602        92.005        .10482E-03   -1.4944    
  21  norm          1.9037        1.8295        .44558E-04   -1.5432    
  22  norm          .10002E-03    39.310        .31219E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    8.3801        .11861E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    37.111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    40.956        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    6.1008        .10125E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    7.3110        .11146E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.4033        .40777        .22085E-03   -.80533    
  29  Prefactor     .40026        .40500        .41253E-03   -1.1679    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.24089e-10
Minuit parameter uncertainties:
  1  87.3205
  2  1.48179e-05
  3  0.000590435
  4  2.81179e-07
  5  1.64184e-05
  6  4.5598e-07
  7  0.0011013
  8  0.0207557
  9  0.000397227
  10  9.33174e-05
  11  553.125
  12  0.467042
  13  9.05743e-05
  14  5.29775e-06
  15  5.6845e-05
  16  0.000176859
  17  7.24137e-05
  18  0.000545392
  19  1.77359e-05
  20  73.473
  21  1.82951
  22  0.0018259
  23  1.01929e-06
  24  9.40197e-05
  25  0.000149175
  26  1.70417e-05
  27  1.05817e-05
  28  0.408721
  29  0.407941
Done.

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

Extracting fit parameters...

4FGL J1111.8+4858
   Spectrum: PowerLaw
372    Prefactor:  1.000e-04  5.684e-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:  4.003e-01  4.079e-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.403e+00  4.087e-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: 1.08e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/594038/likelihoodResults_404438401_404697601_4FGL_J1111.8+4858_daily_bin637.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) = 1783.44220868
delta logL = -4.63217231754e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1783.44216248
delta logL = -1.25337464851e-07

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 'Index     '    1.9445       1.0000          .0000       10.000    
     3 'Normalizat'    1.4033       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .40026       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=   1783.442     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      248 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    49.844        .90712E-02** at limit **
   2  Index         1.8945        5.8904        .50000        .42313E-05
   3  Normalizat    1.4033        .61661E-02    .49959E-01   -.36183E-05
   4  Prefactor     .40026        .65232E-02    .93036E-01    .12914E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Index      = 1.89452
  Normalizat = 1.40332
  Prefactor  = 0.400261
 **********
 **   18 **HESSE 
 **********

 FCN=   1783.442     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      281 TOTAL
                     EDM=   .44E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    275.39        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8945        8.0644        .50000       -.67014    
   3  Normalizat    1.4033        .14579E-01    .22085E-03   -.80533    
   4  Prefactor     .40026        .15369E-01    .41252E-03   -1.1679    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.42241e-08
Minuit parameter uncertainties:
  1  0.00198321
  2  184.582
  3  0.0145788
  4  0.0153692
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/594038': 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) = 1783.44216242
delta logL = -6.7926976044e-08

Extracting fit parameters...

4FGL J1111.8+4858
   Spectrum: PowerLaw
372    Prefactor:  1.000e-04  1.983e-03  1.000e-04  1.000e+04 ( 1.000e-15)
373        Index:  1.895e+00  1.846e+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:  4.003e-01  1.537e-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.403e+00  1.458e-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/594038/cmap_HighResolution_404438401_404697601_4FGL_J1111.8+4858_daily_bin637.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.97e-03', job_status='DONE', photon_flux_upper_limit='1.08e-07', time_completed='2021-09-03 12:23:01.248766', job_id='594038', GAL2='0.40', fit_tolerance='1e-08', EG2='1.40', EG='1.40', time_epoch_completed='1630696981.25', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.40', dlogl='-6.79e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.82' WHERE bin_id='637' AND source_name='4FGL J1111.8+4858' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 12:23:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0011>
Subject: Job 594038: <4FGL_J1111.8+4858_daily_bin637> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1111.8+4858_daily_bin637 167.969 48.9798 404438401 404697601 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 :                                   539.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             353.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   571 sec.
    Turnaround time :                            992 sec.

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

