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


Performing analysis on: 4FGL_J1111.8+4858_daily_bin1581
RA = 167.969, Dec = 48.9798
tmin = 649123201, tmax = 649382401
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='600892', job_status='RUN', time_executed='2021-09-03 12:32:40.341736', time_epoch_executed='1630697560.34' WHERE source_name='4FGL J1111.8+4858' and cadence='daily' and bin_id='1581'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/600892

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/600892/ft1_4FGL_J1111.8+4858_daily_bin1581.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/600892/ft2_4FGL_J1111.8+4858_daily_bin1581.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/600892/ft1_4FGL_J1111.8+4858_daily_bin1581.fits outfile=/scratch/kocevski/600892/ft1_filteredMKT_4FGL_J1111.8+4858_daily_bin1581.fits ra=167.969 dec=48.9798 rad=12.0 tmin=649123201.0 tmax=649382401.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 2.53
user 2.33
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/600892/ft2_4FGL_J1111.8+4858_daily_bin1581.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/600892/ft1_filteredMKT_4FGL_J1111.8+4858_daily_bin1581.fits evtable="EVENTS" outfile="/scratch/kocevski/600892/ft1_filtered_4FGL_J1111.8+4858_daily_bin1581.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.49
user 0.30
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/600892/ft1_filtered_4FGL_J1111.8+4858_daily_bin1581.fits" evtable="EVENTS" scfile=/scratch/kocevski/600892/ft2_4FGL_J1111.8+4858_daily_bin1581.fits sctable="SC_DATA" outfile=/scratch/kocevski/600892/ltcube_649123201_649382401_4FGL_J1111.8+4858_daily_bin1581.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/600892/ft2_4FGL_J1111.8+4858_daily_bin1581.fits
.....................!
real 16.74
user 16.39
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/600892/ft1_filtered_4FGL_J1111.8+4858_daily_bin1581.fits evtable="EVENTS" scfile=/scratch/kocevski/600892/ft2_4FGL_J1111.8+4858_daily_bin1581.fits sctable="SC_DATA" expcube=/scratch/kocevski/600892/ltcube_649123201_649382401_4FGL_J1111.8+4858_daily_bin1581.fits outfile=/scratch/kocevski/600892/expmap_649123201_649382401_4FGL_J1111.8+4858_daily_bin1581.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/600892/ltcube_649123201_649382401_4FGL_J1111.8+4858_daily_bin1581.fits
.....................!
real 158.15
user 153.56
sys 3.76

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/600892/ft1_filtered_4FGL_J1111.8+4858_daily_bin1581.fits scfile=/scratch/kocevski/600892/ft2_4FGL_J1111.8+4858_daily_bin1581.fits outfile=/scratch/kocevski/600892/cmap_649123201_649382401_4FGL_J1111.8+4858_daily_bin1581.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.52
user 0.34
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/600892/ft1_filtered_4FGL_J1111.8+4858_daily_bin1581.fits scfile=/scratch/kocevski/600892/ft2_4FGL_J1111.8+4858_daily_bin1581.fits outfile=/scratch/kocevski/600892/cmap_HighResolution_649123201_649382401_4FGL_J1111.8+4858_daily_bin1581.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.51
user 0.35
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13860E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    13.223       1.0000         .10000E-03   10000.    
     3 'Prefactor '    25.820       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.1734       1.0000         .10000E-03   10000.    
     5 'norm      '    2.9163       1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.461       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    21.368       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10164E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .74720       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10935E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.8669       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.162       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10156E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    27.257       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12920E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    40.116       1.0000         .10000E-03   10000.    
    19 'norm      '    3.2893       1.0000         .10000E-03   10000.    
    20 'Prefactor '    45.786       1.0000         .10000E-03   10000.    
    21 'norm      '    1.7621       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    48.637       1.0000         .10000E-03   10000.    
    26 'norm      '    .10051E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    6.2468       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3118       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .71232       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=   6813.223     FROM MIGRAD    STATUS=CONVERGED    758 CALLS     3840 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    49.777       -.22749E-04** at limit **
   2  norm          13.224        5.1141        .70381E-07    .66109E-03
   3  Prefactor     25.826        33.373        .49931E-06    .68661E-04
   4  Prefactor     1.1791        1.6388        .61734E-06   -.24143E-02
   5  norm          2.9166        1.7407       -.33028E-07    .18036E-03
   6  Prefactor     12.435        45.414       -.27371E-04   -.27197E-05
   7  Prefactor     .10000E-03    21.002        .97085E-05** at limit **
   8  Prefactor     21.379        119.03        .19560E-04    .30144E-04
   9  Prefactor     .10000E-03    23.481       -.30443E-04** at limit **
  10  norm          .74567        1.9802       -.50682E-06   -.71510E-03
  11  Prefactor     .10000E-03    208.41       -.38008E-04** at limit **
  12  norm          1.8669        .40799        .46862E-08    .27816E-03
  13  Prefactor     10.176        20.360       -.78169E-06    .97110E-04
  14  Prefactor     .10000E-03    8.1638        .11224E-06** at limit **
  15  Prefactor     .10000E-03    26.680        .25517E-04** at limit **
  16  norm          27.253        31.083       -.26005E-08    .41969E-06
  17  Prefactor     .10000E-03    3.0631       -.13178E-06** at limit **
  18  Prefactor     40.116        23.056        .25099E-06    .52246E-04
  19  norm          3.2892        2.2140       -.75162E-07   -.26065E-03
  20  Prefactor     45.794        38.842        .18747E-05   -.26752E-04
  21  norm          1.7621        1.0190       -.12397E-06   -.72934E-03
  22  norm          .10000E-03    3.3334        .14189E-06** at limit **
  23  Prefactor     .10000E-03    .60625       -.15870E-06** at limit **
  24  Prefactor     .10000E-03    79.832        .37184E-04** at limit **
  25  Prefactor     48.638        19.650       -.20710E-06    .22121E-04
  26  norm          .10000E-03    .86490        .12599E-07** at limit **
  27  norm          6.2470        6.6470        .76495E-06    .40365E-05
  28  Normalizat    1.3117        .17103        .13899E-05    .35660E-03
  29  Prefactor     .71248        .20893       -.70724E-06    .23330E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 13.2242
  Prefactor  = 25.8262
  Prefactor  = 1.17911
  norm       = 2.9166
  Prefactor  = 12.4345
  Prefactor  = 0.0001
  Prefactor  = 21.3792
  Prefactor  = 0.0001
  norm       = 0.745666
  Prefactor  = 0.0001
  norm       = 1.86691
  Prefactor  = 10.1755
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 27.253
  Prefactor  = 0.0001
  Prefactor  = 40.1157
  norm       = 3.28922
  Prefactor  = 45.7944
  norm       = 1.76206
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 48.6383
  norm       = 0.0001
  norm       = 6.24698
  Normalizat = 1.31165
  Prefactor  = 0.71248
 **********
 **   18 **HESSE 
 **********

 FCN=   6813.223     FROM HESSE     STATUS=OK           557 CALLS     4397 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    51.448        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          13.224        5.1128        .11015E-03   -1.4981    
   3  Prefactor     25.826        33.426        .78836E-04   -1.4691    
   4  Prefactor     1.1791        11.628        .21160E-02   -1.5491    
   5  norm          2.9166        1.7362        .81092E-04   -1.5366    
   6  Prefactor     12.435        48.733        .11348E-03   -1.5003    
   7  Prefactor     .10000E-03    21.002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     21.379        113.74        .86649E-04   -1.4783    
   9  Prefactor     .10000E-03    23.473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .74567        1.6515        .16258E-02   -1.5535    
  11  Prefactor     .10000E-03    212.96        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.8669        .40862        .23949E-04   -1.5435    
  13  Prefactor     10.176        19.599        .12569E-03   -1.5070    
  14  Prefactor     .10000E-03    8.1736        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    26.675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          27.253        31.087        .76734E-04   -1.4663    
  17  Prefactor     .10000E-03    9.4761        .27688E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     40.116        22.969        .63286E-04   -1.4440    
  19  norm          3.2892        2.2116        .48567E-03   -1.5345    
  20  Prefactor     45.794        38.745        .59254E-04   -1.4353    
  21  norm          1.7621        1.0179        .58609E-04   -1.5442    
  22  norm          .10000E-03    3.3377        .14717E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    .60874        .62734E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    80.055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     48.638        19.672        .57499E-04   -1.4312    
  26  norm          .10000E-03    2.1317        .14861E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          6.2470        6.6441        .16061E-03   -1.5208    
  28  Normalizat    1.3117        .20310        .22094E-03   -.83219    
  29  Prefactor     .71248        .24373        .36187E-03   -1.0304    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.73091e-08
Minuit parameter uncertainties:
  1  0.000548966
  2  5.11294
  3  33.4501
  4  7.40711
  5  1.73625
  6  48.89
  7  2.1375e-05
  8  98.9168
  9  7.61109e-05
  10  1.65155
  11  0.000149508
  12  0.408622
  13  19.6118
  14  5.02776e-07
  15  6.48905e-05
  16  31.1055
  17  5.39146e-05
  18  22.9737
  19  2.2117
  20  38.7664
  21  1.01795
  22  2.93884e-06
  23  7.48782e-07
  24  7.93398e-05
  25  19.6748
  26  3.70224e-05
  27  6.64486
  28  0.20322
  29  0.244094
Done.

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

Extracting fit parameters...

4FGL J1111.8+4858
   Spectrum: PowerLaw
372    Prefactor:  1.000e-04  6.489e-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:  7.125e-01  2.441e-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.312e+00  2.032e-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: 2.73e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.02e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/600892/likelihoodResults_649123201_649382401_4FGL_J1111.8+4858_daily_bin1581.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) = 6813.22341553
delta logL = -0.000178414571565

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6813.22323761
delta logL = -4.85692908114e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9829       1.0000          .0000       10.000    
     3 'Normalizat'    1.3116       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71248       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=   6813.223     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      239 TOTAL
                     EDM=   .97E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.8071        .90712E-02** at limit **
   2  Index         1.9444        5.9674        .50000        .13332E-04
   3  Normalizat    1.3117        .16955E-02    .49976E-01   -.15839E-03
   4  Prefactor     .71248        .21242E-02    .81721E-01   -.51110E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.94442
  Normalizat = 1.31165
  Prefactor  = 0.712479
 **********
 **   18 **HESSE 
 **********

 FCN=   6813.223     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      270 TOTAL
                     EDM=   .18E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    69.539        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9444        5.8163        .50000       -.65747    
   3  Normalizat    1.3117        .72692E-02    .22094E-03   -.83219    
   4  Prefactor     .71248        .90880E-02    .36188E-03   -1.0304    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.77579e-07
Minuit parameter uncertainties:
  1  0.000337463
  2  122.875
  3  0.00726925
  4  0.00908799
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/600892': 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) = 6813.22323747
delta logL = -3.50201844412e-07

Extracting fit parameters...

4FGL J1111.8+4858
   Spectrum: PowerLaw
372    Prefactor:  1.000e-04  3.375e-04  1.000e-04  1.000e+04 ( 1.000e-15)
373        Index:  1.944e+00  1.229e+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:  7.125e-01  9.088e-03  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.312e+00  7.269e-03  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/600892/cmap_HighResolution_649123201_649382401_4FGL_J1111.8+4858_daily_bin1581.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.02e-03', job_status='DONE', photon_flux_upper_limit='2.73e-08', time_completed='2021-09-03 12:47:15.788576', job_id='600892', GAL2='0.71', fit_tolerance='1e-08', EG2='1.31', EG='1.31', time_epoch_completed='1630698435.79', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='-3.50e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.82' WHERE bin_id='1581' AND source_name='4FGL J1111.8+4858' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 12:47:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 600892: <4FGL_J1111.8+4858_daily_bin1581> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1111.8+4858_daily_bin1581 167.969 48.9798 649123201 649382401 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 :                                   861.12 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             326.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   892 sec.
    Turnaround time :                            937 sec.

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

