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


Performing analysis on: 4FGL_J1111.8+4858_daily_bin1226
RA = 167.969, Dec = 48.9798
tmin = 557107201, tmax = 557366401
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='598143', job_status='RUN', time_executed='2021-09-03 12:25:02.933866', time_epoch_executed='1630697102.93' WHERE source_name='4FGL J1111.8+4858' and cadence='daily' and bin_id='1226'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/598143

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/598143/ft1_4FGL_J1111.8+4858_daily_bin1226.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/598143/ft2_4FGL_J1111.8+4858_daily_bin1226.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/598143/ft1_4FGL_J1111.8+4858_daily_bin1226.fits outfile=/scratch/kocevski/598143/ft1_filteredMKT_4FGL_J1111.8+4858_daily_bin1226.fits ra=167.969 dec=48.9798 rad=12.0 tmin=557107201.0 tmax=557366401.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.73
user 3.50
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/598143/ft1_filtered_4FGL_J1111.8+4858_daily_bin1226.fits evtable="EVENTS" scfile=/scratch/kocevski/598143/ft2_4FGL_J1111.8+4858_daily_bin1226.fits sctable="SC_DATA" expcube=/scratch/kocevski/598143/ltcube_557107201_557366401_4FGL_J1111.8+4858_daily_bin1226.fits outfile=/scratch/kocevski/598143/expmap_557107201_557366401_4FGL_J1111.8+4858_daily_bin1226.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/598143/ltcube_557107201_557366401_4FGL_J1111.8+4858_daily_bin1226.fits
.....................!
real 191.54
user 186.96
sys 4.12

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/598143/ft1_filtered_4FGL_J1111.8+4858_daily_bin1226.fits scfile=/scratch/kocevski/598143/ft2_4FGL_J1111.8+4858_daily_bin1226.fits outfile=/scratch/kocevski/598143/cmap_557107201_557366401_4FGL_J1111.8+4858_daily_bin1226.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.40
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    10.356       1.0000         .10000E-03   10000.    
     3 'Prefactor '    19.825       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    7.7010       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10207E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1512.9       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10863E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    10 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2313.8       1.0000         .10000E-03   10000.    
    12 'norm      '    183.63       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    105.44       1.0000         .10000E-03   10000.    
    18 'Prefactor '    117.42       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.9882       1.0000         .10000E-03   10000.    
    22 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.5338       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    2.8790       1.0000         .10000E-03   10000.    
    27 'norm      '    13.509       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    29 'Prefactor '    .99950       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=   1033.129     FROM MIGRAD    STATUS=CONVERGED    717 CALLS     3687 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    29.462        .79763E-05** at limit **
   2  norm          10.354        10.268        .67302E-06   -.25416E-03
   3  Prefactor     19.822        25.819       -.13218E-05    .95637E-06
   4  Prefactor     .10000E-03    26.938       -.65127E-05** at limit **
   5  norm          7.7008        4.5937       -.72273E-06    .10978E-03
   6  Prefactor     .10000E-03    8015.6       -.16554E-02** at limit **
   7  Prefactor     1511.6        2193.9       -.35673E-03    .32197E-05
   8  Prefactor     .10046E-03    2083.2       -.10272E-02** at limit **
   9  Prefactor    10000.0        1505.9        .69289E-03** at limit **
  10  norm          .10000E-03    9.8473       -.11276E-05** at limit **
  11  Prefactor     2315.5        2203.5        .39934E-03    .39612E-04
  12  norm          183.62        113.86       -.38476E-05    .64063E-05
  13  Prefactor     .10000E-03    72.109        .18513E-05** at limit **
  14  Prefactor     .10000E-03    619.53        .36603E-03** at limit **
  15  Prefactor     .10000E-03    906.12       -.98555E-04** at limit **
  16  norm          .10000E-03    149.08       -.13844E-04** at limit **
  17  Prefactor     105.41        63.097       -.99421E-05    .46712E-04
  18  Prefactor     117.45        115.31        .18834E-04    .33487E-05
  19  norm          .10000E-03    4.3150        .17054E-07** at limit **
  20  Prefactor     .10000E-03    33.619       -.85601E-05** at limit **
  21  norm          2.9881        2.2280        .13543E-07    .42532E-06
  22  norm          .10000E-03    27.517        .31856E-05** at limit **
  23  Prefactor     2.5336        3.3496       -.20365E-06   -.57088E-04
  24  Prefactor     .10000E-03    36.681        .21696E-05** at limit **
  25  Prefactor     .10000E-03    22.520        .56768E-06** at limit **
  26  norm          2.8784        3.1969       -.58619E-06   -.13057E-03
  27  norm          13.508        14.005       -.12391E-05   -.13190E-04
  28  Normalizat    .10000E-01    .24967       -.24879E-05** at limit **
  29  Prefactor     .99957        .26368       -.23481E-05   -.33295E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 10.3544
  Prefactor  = 19.822
  Prefactor  = 0.0001
  norm       = 7.70082
  Prefactor  = 0.0001
  Prefactor  = 1511.58
  Prefactor  = 0.000100459
  Prefactor  = 10000
  norm       = 0.000100003
  Prefactor  = 2315.52
  norm       = 183.622
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 105.409
  Prefactor  = 117.445
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.98813
  norm       = 0.0001
  Prefactor  = 2.53358
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.87844
  norm       = 13.5077
  Normalizat = 0.01
  Prefactor  = 0.999569
 **********
 **   18 **HESSE 
 **********

 FCN=   1033.129     FROM HESSE     STATUS=OK           543 CALLS     4230 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    30.358        .33917E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          10.354        10.263        .94185E-04   -1.5064    
   3  Prefactor     19.822        25.822        .89954E-04   -1.4817    
   4  Prefactor     .10000E-03    26.939        .16303E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          7.7008        4.5963        .51615E-04   -1.5153    
   6  Prefactor     .10000E-03    8011.9        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1511.6        2196.4        .55815E-04   -.77216    
   8  Prefactor     .10046E-03    2089.5        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor    10000.0        1503.7        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    9.8542        .98512E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2315.5        2208.9        .47425E-04   -.56675    
  12  norm          183.62        113.90        .14896E-03   -1.2989    
  13  Prefactor     .10000E-03    72.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    618.93        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    906.07        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    149.07        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     105.41        63.167        .39162E-04   -1.3651    
  18  Prefactor     117.45        115.45        .18566E-03   -1.3536    
  19  norm          .10000E-03    4.3151        .65222E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    33.619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.9881        2.2332        .40372E-04   -1.5362    
  22  norm          .10000E-03    27.685        .16473E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     2.5336        3.3433        .65276E-04   -1.5390    
  24  Prefactor     .10000E-03    36.681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    22.539        .14902E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          2.8784        3.2065        .55015E-04   -1.5369    
  27  norm          13.508        14.014        .10898E-03   -1.4973    
  28  Normalizat    .10000E-01    .25059        .49457E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .99957        .26681        .23272E-03   -.92744    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14482e-09
Minuit parameter uncertainties:
  1  0.000301098
  2  10.2643
  3  25.8369
  4  1.34318e-05
  5  4.59654
  6  0.00292774
  7  2364.35
  8  0.0643471
  9  0.000309561
  10  0.000355337
  11  2324.82
  12  114.033
  13  0.000757945
  14  7.6126e-05
  15  2.17999e-05
  16  1.74259e-06
  17  63.2074
  18  115.674
  19  1.38234e-06
  20  1.70355e-07
  21  2.23329
  22  2.26233e-05
  23  3.34358
  24  1.22675e-06
  25  6.01991e-05
  26  3.20666
  27  14.0171
  28  4.01076e-06
  29  0.267164
Done.

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

Extracting fit parameters...

4FGL J1111.8+4858
   Spectrum: PowerLaw
372    Prefactor:  1.000e-04  2.180e-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:  9.996e-01  2.672e-01  0.000e+00  1.000e+01 ( 1.000e+00)
698        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
699        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
696   Normalization:  1.000e-02  4.011e-06  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.09e-06 ph cm-2 s-1
Energy Flux Upper Limit: 8.03e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/598143/likelihoodResults_557107201_557366401_4FGL_J1111.8+4858_daily_bin1226.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) = 1033.12884037
delta logL = -6.5085953338e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1033.12883387
delta logL = -1.45660123962e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10290E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8101       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99958       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=   1033.129     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      232 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10023E-03    5625.6        .90712E-02** at limit **
   2  Index         1.7687        9.1152        .50000        .30069E-06
   3  Normalizat    .10000E-01    .60714E-01    .32094E-01** at limit **
   4  Prefactor     .99957        .11514        .46262E-01    .32191E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100232
  Index      = 1.76872
  Normalizat = 0.01
  Prefactor  = 0.99957
 **********
 **   18 **HESSE 
 **********

 FCN=   1033.129     FROM HESSE     STATUS=OK            29 CALLS      261 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10023E-03    1685.4        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7687        5.2947        .50000       -.70267    
   3  Normalizat    .10000E-01    .22772        .49453E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .99957        .22149        .23272E-03   -.92744    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.20445e-10
Minuit parameter uncertainties:
  1  0.0407514
  2  5.98753
  3  1.10586e-06
  4  0.221694
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/598143': 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) = 1033.12883385
delta logL = 4.57202986581e-09

Extracting fit parameters...

4FGL J1111.8+4858
   Spectrum: PowerLaw
372    Prefactor:  1.002e-04  4.075e-02  1.000e-04  1.000e+04 ( 1.000e-15)
373        Index:  1.769e+00  5.988e+00  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:  9.996e-01  2.217e-01  0.000e+00  1.000e+01 ( 1.000e+00)
698        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
699        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
696   Normalization:  1.000e-02  1.106e-06  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/598143/cmap_HighResolution_557107201_557366401_4FGL_J1111.8+4858_daily_bin1226.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.03e-02', job_status='DONE', photon_flux_upper_limit='1.09e-06', time_completed='2021-09-03 12:33:05.081036', job_id='598143', GAL2='1.00', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630697585.08', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='4.57e-09', ts2='-0.00', photon_index_error='0.00', photon_index='1.82' WHERE bin_id='1226' AND source_name='4FGL J1111.8+4858' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 12:33:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0154>
Subject: Job 598143: <4FGL_J1111.8+4858_daily_bin1226> in cluster <slac> Done

Job <4FGL_J1111.8+4858_daily_bin1226> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep  3 12:21:09 2021
Job was executed on host(s) <bullet0154>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 12:21:14 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep  3 12:21:14 2021
Terminated at Fri Sep  3 12:33:05 2021
Results reported at Fri Sep  3 12:33:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1111.8+4858_daily_bin1226 167.969 48.9798 557107201 557366401 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 :                                   447.05 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             219.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   711 sec.
    Turnaround time :                            716 sec.

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

