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


Performing analysis on: 4FGL_J1111.8+4858_daily_bin1525
RA = 167.969, Dec = 48.9798
tmin = 634608001, tmax = 634867201
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='600810', job_status='RUN', time_executed='2021-09-03 12:35:38.123548', time_epoch_executed='1630697738.12' WHERE source_name='4FGL J1111.8+4858' and cadence='daily' and bin_id='1525'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/600810

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/600810/ft1_4FGL_J1111.8+4858_daily_bin1525.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/600810/ft2_4FGL_J1111.8+4858_daily_bin1525.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/600810/ft1_4FGL_J1111.8+4858_daily_bin1525.fits outfile=/scratch/kocevski/600810/ft1_filteredMKT_4FGL_J1111.8+4858_daily_bin1525.fits ra=167.969 dec=48.9798 rad=12.0 tmin=634608001.0 tmax=634867201.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.14
user 2.90
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/600810/ft1_filtered_4FGL_J1111.8+4858_daily_bin1525.fits evtable="EVENTS" scfile=/scratch/kocevski/600810/ft2_4FGL_J1111.8+4858_daily_bin1525.fits sctable="SC_DATA" expcube=/scratch/kocevski/600810/ltcube_634608001_634867201_4FGL_J1111.8+4858_daily_bin1525.fits outfile=/scratch/kocevski/600810/expmap_634608001_634867201_4FGL_J1111.8+4858_daily_bin1525.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/600810/ltcube_634608001_634867201_4FGL_J1111.8+4858_daily_bin1525.fits
.....................!
real 192.66
user 187.27
sys 4.91

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/600810/ft1_filtered_4FGL_J1111.8+4858_daily_bin1525.fits scfile=/scratch/kocevski/600810/ft2_4FGL_J1111.8+4858_daily_bin1525.fits outfile=/scratch/kocevski/600810/cmap_634608001_634867201_4FGL_J1111.8+4858_daily_bin1525.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/600810/ft1_filtered_4FGL_J1111.8+4858_daily_bin1525.fits scfile=/scratch/kocevski/600810/ft2_4FGL_J1111.8+4858_daily_bin1525.fits outfile=/scratch/kocevski/600810/cmap_HighResolution_634608001_634867201_4FGL_J1111.8+4858_daily_bin1525.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.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '   10000.0       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
     5 'norm      '    .10301E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     7 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     8 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     9 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    10 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    11 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    8502.0       1.0000         .10000E-03   10000.    
    16 'norm      '    .54028E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1274.3       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .61464E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .11042E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    9.8069       1.0000         .10000E-03   10000.    
    22 'norm      '    .10613E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10867E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    35.887       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    29 'Prefactor '    .49480E-07   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=   224.5223     FROM MIGRAD    STATUS=CONVERGED    679 CALLS     4305 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    141.87       -.11772E-04** at limit **
   2  norm         10000.0        7946.2        .11557E-03** at limit **
   3  Prefactor     .10001E-03    238.14        .15555E-04** at limit **
   4  Prefactor    10000.0        8061.9        .17972E-03** at limit **
   5  norm          .10000E-03    34.332        .12697E-05** at limit **
   6  Prefactor    10000.0        6557.5        .34018E-03** at limit **
   7  Prefactor    10000.0        9991.9        .76234E-04** at limit **
   8  Prefactor    10000.0        6588.8        .13651E-03** at limit **
   9  Prefactor    10000.0        9649.3        .28387E-03** at limit **
  10  norm         10000.0        1324.4        .59883E-04** at limit **
  11  Prefactor    10000.0        7833.5        .34479E-04** at limit **
  12  norm          .10000E-03    8.6290       -.10444E-05** at limit **
  13  Prefactor    10000.0        9803.7        .16163E-03** at limit **
  14  Prefactor     .10008E-03    645.41       -.45658E-04** at limit **
  15  Prefactor     8159.1        8008.1        .32712E-02    .45448E-06
  16  norm          .10020E-03    1136.2       -.68389E-04** at limit **
  17  Prefactor     1277.8        1561.4        .19062E-04    .18702E-04
  18  Prefactor     .10001E-03    1080.0       -.15214E-04** at limit **
  19  norm          .10000E-03    37.658       -.15058E-05** at limit **
  20  Prefactor     .10000E-03    320.49        .33359E-05** at limit **
  21  norm          9.8140        7.2883        .11088E-05    .49419E-03
  22  norm          .10000E-03    21.148       -.19066E-05** at limit **
  23  Prefactor     .10000E-03    4.7819       -.25623E-05** at limit **
  24  Prefactor     .10000E-03    201.93        .70466E-05** at limit **
  25  Prefactor     .10000E-03    43.011       -.57965E-05** at limit **
  26  norm          .10000E-03    2.3784        .15106E-05** at limit **
  27  norm          35.892        20.899        .16460E-05    .55973E-03
  28  Normalizat    .10000E-01    .13040       -.45094E-04** at limit **
  29  Prefactor     .13608E-09    .21359       -.69857E-04** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100006
  norm       = 10000
  Prefactor  = 0.00010001
  Prefactor  = 10000
  norm       = 0.0001
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 10000
  norm       = 0.0001
  Prefactor  = 10000
  Prefactor  = 0.000100083
  Prefactor  = 8159.08
  norm       = 0.000100197
  Prefactor  = 1277.82
  Prefactor  = 0.000100008
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 9.81397
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.000100002
  norm       = 0.0001
  norm       = 35.8922
  Normalizat = 0.01
  Prefactor  = 1.36081e-10
 **********
 **   18 **HESSE 
 **********

 FCN=   224.5223     FROM HESSE     STATUS=OK           525 CALLS     4830 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    141.78        .17485E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm         10000.0        7943.2        .19389E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    237.99        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor    10000.0        8052.3        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    34.331        .85882E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor    10000.0        6577.3        .18347E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor    10000.0        9993.1        .20655E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor    10000.0        6600.3        .19297E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor    10000.0        9670.0        .18244E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm         10000.0        1320.6        .19767E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor    10000.0        7828.1        .21405E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    8.6309        .43037E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor    10000.0        9799.1        .18757E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10008E-03    644.15        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     8159.1        7659.6        .56042E-03    .68389    
  16  norm          .10020E-03    1134.1        .19094E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1277.8        1556.3        .59978E-04   -.83969    
  18  Prefactor     .10001E-03    1079.8        .21051E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    37.903        .89850E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    320.97        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          9.8140        7.2749        .33696E-04   -1.5081    
  22  norm          .10000E-03    21.157        .67388E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    4.7833        .32028E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    202.13        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    43.103        .96130E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    2.3775        .22548E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          35.892        20.889        .50990E-04   -1.4509    
  28  Normalizat    .10000E-01    .13123        .16732E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .13608E-09    .21725        .42748E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.83525e-09
Minuit parameter uncertainties:
  1  0.00180837
  2  0.129779
  3  0.00310073
  4  0.204167
  5  9.59784e-05
  6  1.09798
  7  0.15429
  8  0.439145
  9  0.627342
  10  0.0280222
  11  0.0369456
  12  3.90874e-05
  13  0.272976
  14  0.0147739
  15  28732.9
  16  0.0304908
  17  1619.02
  18  0.00611369
  19  0.000134561
  20  0.00131813
  21  7.27555
  22  0.000109631
  23  7.32159e-05
  24  0.00164264
  25  0.000530036
  26  6.08053e-05
  27  20.8933
  28  5.37344e-06
  29  1.09143e-05
Done.

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

Extracting fit parameters...

4FGL J1111.8+4858
   Spectrum: PowerLaw
372    Prefactor:  8.159e+03  2.873e+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.361e-10  1.091e-05  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.373e-06  1.000e-02  1.000e+01 ( 1.000e+00)

calc_int error: parameter max 10000.0 is not large enough
delta logLike = -0.00211379258155

TS (Fixed Index): 0.10
Ra Dec: 167.969 48.980
Photon Flux Upper Limit: -1.00e+00 ph cm-2 s-1
Energy Flux Upper Limit: -7.39e+04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/600810/likelihoodResults_634608001_634867201_4FGL_J1111.8+4858_daily_bin1525.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 222.931938426
delta logL = 1.5903664926

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 222.931933954
delta logL = 1.59037096411

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Index     '    2.7256       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=   222.9319     FROM MIGRAD    STATUS=CONVERGED     13 CALLS       65 TOTAL
                     EDM=   .92E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1    Index       2.7256        .20052        .14747E-01    .21249E-04
                               ERR DEF=  .500    
Final values: 
  Index      = 2.72564
 **********
 **   18 **HESSE 
 **********

 FCN=   222.9319     FROM HESSE     STATUS=OK             7 CALLS       72 TOTAL
                     EDM=   .21E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1    Index       2.7256        .20183        .65759E-04   -.47223    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.11192e-13
Minuit parameter uncertainties:
  1  0.201898
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/600810': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 222.931933954
delta logL = 1.59037096411

Extracting fit parameters...

4FGL J1111.8+4858
   Spectrum: PowerLaw
372    Prefactor:  8.170e+03  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-15) fixed
373        Index:  2.726e+00  2.019e-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:  3.502e-09  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
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  0.000e+00  1.000e-02  1.000e+01 ( 1.000e+00) fixed


TS (Free Index): 3.28
Ra Dec: 167.969 48.980
Photon Index (Free Index): 2.73 +/- 0.20
Photon Flux (Free Index): 3.11e-05 +/- 2.19e-05
Energy Flux (Free Index): 7.34e-03 +/- 4.06e-03

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/600810/cmap_HighResolution_634608001_634867201_4FGL_J1111.8+4858_daily_bin1525.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='-7.39e+04', comment='SUCCESS', energy_flux2='7.34e-03', dlogl='1.59e+00', photon_flux2='3.11e-05', job_status='DONE', time_completed='2021-09-03 12:41:48.971406', photon_index_error2='0.20', photon_index2='2.73', ts='0.10', fit_tolerance='1e-08', GAL='0.00', photon_index_error='0.00', photon_flux_upper_limit='-1.00e+00', energy_flux_error2='4.06e-03', EG='0.01', time_epoch_completed='1630698108.97', return_code='0', job_id='600810', GAL2='0.00', EG2='0.01', return_code2='0', photon_flux_error2='2.19e-05', ts2='3.28', photon_index='1.82' WHERE bin_id='1525' AND source_name='4FGL J1111.8+4858' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 12:41:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0220>
Subject: Job 600810: <4FGL_J1111.8+4858_daily_bin1525> in cluster <slac> Done

Job <4FGL_J1111.8+4858_daily_bin1525> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep  3 12:31:32 2021
Job was executed on host(s) <bullet0220>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 12:31:56 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:31:56 2021
Terminated at Fri Sep  3 12:41:49 2021
Results reported at Fri Sep  3 12:41:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1111.8+4858_daily_bin1525 167.969 48.9798 634608001 634867201 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 :                                   367.54 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             222.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   593 sec.
    Turnaround time :                            617 sec.

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

